/* Partim — One-page V1 affinée (max-width 1280) */

:root{
  --ink:#1E252B;
  --accent:#EC0044;
  --paper:#ffffff;
  --muted:#6b7280;
  --bg-soft:#f5f6f7;

  --container:1280px;
  --radius:18px;
  --shadow: 0 10px 30px rgba(0,0,0,.06);
}

*{ box-sizing:border-box; }

html{ scroll-behavior:smooth; }

body{
  margin:0;
  font-family: "Open Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--ink);
  background:var(--paper);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

a{ color:inherit; text-decoration:none; }
a:hover{ text-decoration:underline; }

/* Layout */
.container{
  max-width:var(--container);
  margin:0 auto;
  padding:0 clamp(18px, 3vw, 36px);
}

.section{
  padding: clamp(34px, 4vw, 64px) 0;
}



.section.intro .container p{
  max-width: none;
  font-size: clamp(16px, 1.2vw, 18px);
  margin: 0 0 14px 0;
}

/* Typography */
h1,h2{
  font-family:"Josefin Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight:400;
  letter-spacing:.02em;
  margin:0 0 12px 0;
}

.hero h1{
  font-size: clamp(26px, 3.2vw, 44px);
  text-transform: uppercase;
  letter-spacing:.08em;
  margin-top: 22px;
}

.hero p{
  margin: 10px 0 0 0;
  font-size: clamp(14px, 1.4vw, 18px);
  color: rgba(30,37,43,.82);
}

.section h2{
  font-size: clamp(20px, 2vw, 28px);
  text-transform: uppercase;
  letter-spacing:.06em;
}

.section p{
  margin: 0;
  color: rgba(30,37,43,.86);
}

/* Hero */
.hero{
  height: 400px;
  background-size: cover;
  background-position: center center;
  position: relative;
}


.hero::before{
  content:"";
  position:absolute;
  inset:0;
  background: rgba(255,255,255,.86);
}

.hero .overlay{
  position: relative;
  height: 400px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  text-align:center;
}


.logo{
  height: clamp(120px, 13vw, 180px);
  width:auto;
}

/* Blocks */
.grid-3{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 32px);
}

.grid-3 > div{
  padding: 22px 18px;
  border-top: 1px solid rgba(30,37,43,.12);
}

.grid-3 h2{
  margin-bottom: 10px;
}

.grid-3 p{
  font-size: 15px;
}

.two-cols{
  display:grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(18px, 3vw, 44px);
  align-items:center;
}

.two-cols img{
  width:100%;
  height:auto;
  display:block;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.image-full{
  height: clamp(320px, 55vh, 720px);
  background-size:cover;
  background-position:center;
  position:relative;
}

.image-full::before{
  content:"";
  position:absolute;
  inset:0;
  background: rgba(255,255,255,.40);
}

/* Footer */
.footer{
  padding: 56px 0;
  background: var(--bg-soft);
}

.footer .container{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.footer .socials{
  display:flex;
  gap: 18px;
  align-items:center;
}

.footer .socials a{
  font-family:"Josefin Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing:.08em;
  font-size: 13px;
  opacity:.9;
}

.footer a:hover{ text-decoration:underline; }

/* Mentions page */
.section h1{
  font-family:"Josefin Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight:400;
  text-transform: uppercase;
  letter-spacing:.08em;
}

/* Responsive */
@media (max-width: 960px){
  .grid-3{ grid-template-columns: 1fr; }
  .two-cols{ grid-template-columns: 1fr; }
  .grid-3 > div{ padding: 18px 0; }
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
}


/* Section headers */
.section-head{
  margin-bottom: clamp(16px, 2.2vw, 24px);
}

.kicker{
  margin:0 0 8px 0;
  font-family:"Josefin Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 12px;
  color: rgba(30,37,43,.65);
}
.lead{
  margin: 10px 0 0 0;
  max-width: 78ch;
  color: rgba(30,37,43,.78);
}

/* Dividers (subtle) */
.divider{
  height: 1px;
  background: rgba(30,37,43,.10);
  max-width: var(--container);
  margin: 0 auto;
}

/* Icons */
.ico{
  width: 18px;
  height: 18px;
  fill: var(--accent);
  flex: 0 0 auto;
  margin-top: 2px;
}
.h2row, .h3row{
  display:flex;
  gap:10px;
  align-items:flex-start;
}

/* Expertise accents */
.expertise .grid-3 > div{
  position: relative;
}
.expertise .grid-3 > div::before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  width: 48px;
  height: 2px;
  background: var(--accent);
  opacity:.85;
}

/* Constrained image bands (same width as text container) */
.image-section{
  padding: clamp(26px, 3.5vw, 52px) 0;
}


.image-band{
  height: 300px;
  border-radius: var(--radius);
  background-size: cover;
  background-position: center center;
  position: relative;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.image-band::before{
  content:"";
  position:absolute;
  inset:0;
  background: rgba(255,255,255,.38);
}

/* Projects */
.projects .refs{
  align-items: stretch;
}
.ref{
  border-top: 1px solid rgba(30,37,43,.12);
  padding: 22px 18px 18px;
}
.ref-top{
  display:flex;
  gap:10px;
  align-items:center;
  margin-bottom: 12px;
  color: rgba(30,37,43,.70);
  font-size: 12px;
  letter-spacing:.12em;
  text-transform: uppercase;
}
.tag{
  color: rgba(30,37,43,.78);
}
.subtag{
  color: rgba(30,37,43,.62);
}
.ref h3{
  font-family:"Josefin Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight:400;
  margin: 0 0 10px 0;
  letter-spacing:.04em;
  text-transform: uppercase;
  font-size: 16px;
}
.ref p{
  margin: 0 0 14px 0;
  font-size: 15px;
}
.ph{
  height: 180px;
  border-radius: calc(var(--radius) - 6px);
  background: rgba(30,37,43,.06);
  border: 1px solid rgba(30,37,43,.10);
  display:flex;
  align-items:center;
  justify-content:center;
  font-family:"Josefin Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  letter-spacing:.10em;
  text-transform: uppercase;
  color: rgba(30,37,43,.55);
}

/* Footer tweak */
.footer{
  border-top: 1px solid rgba(30,37,43,.10);
}

/* Responsive */
@media (max-width: 960px){
  .divider{ margin: 0 18px; }
  .ref{ padding: 18px 0; }
  .ph{ height: 160px; }
}


/* Mentions: lien retour sobre */
.back{
  color: rgba(30,37,43,.62);
  font-family:"Josefin Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing:.10em;
  font-size: 12px;
}


/* Top navigation */
.topnav{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(30,37,43,.10);
}
.nav-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 0;
}
.brandmark{
  font-family:"Josefin Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  letter-spacing:.18em;
  text-transform: uppercase;
  font-size: 12px;
  opacity: .9;
}
.navlinks{
  display:flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.navlinks a{
  font-family:"Josefin Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  letter-spacing:.12em;
  text-transform: uppercase;
  font-size: 11px;
  opacity: .78;
}
.navlinks a:hover{ opacity: 1; }

/* Offset for anchor jumps (fixed header) */
#apropos, #expertises, #campus, #projets, #approche{
  scroll-margin-top: 80px;
}

/* Ensure hero not hidden behind nav */
.hero .overlay{
  padding-top: calc(clamp(24px, 5vw, 64px) + 64px);
}

/* Project images */
.refimg{
  width:100%;
  height: 180px;
  object-fit: cover;
  border-radius: calc(var(--radius) - 6px);
  box-shadow: var(--shadow);
  display:block;
}

/* Mobile nav */
@media (max-width: 760px){
  .nav-inner{ gap: 10px; }
  .navlinks{ gap: 12px; }
}


/* Contact section */
.contact-links{
  display:flex;
  gap: 28px;
  align-items:center;
  flex-wrap: wrap;
}
.contact-links a{
  font-family:"Josefin Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  letter-spacing:.14em;
  text-transform: uppercase;
  font-size: 13px;
  opacity:.85;
}
.contact-links a:hover{ opacity: 1; }


/* NAV — correctif iPhone (menu compact + hamburger) */
.topnav{
  -webkit-backdrop-filter: blur(10px);
}

.navtoggle{
  display:none;
  background: transparent;
  border: 0;
  padding: 8px;
  margin-left: 10px;
  cursor: pointer;
  border-radius: 10px;
}

.navtoggle:focus-visible{
  outline: 2px solid rgba(236,0,68,.35);
  outline-offset: 2px;
}

.navtoggle .bar{
  display:block;
  width: 20px;
  height: 2px;
  background: rgba(30,37,43,.85);
  margin: 4px 0;
  border-radius: 2px;
}

/* Desktop nav */
.navlinks{
  display:flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* Mobile: collapse links to avoid wrapping issues on iPhone */
@media (max-width: 860px){
  .navtoggle{ display:inline-flex; flex-direction:column; justify-content:center; }

  .nav-inner{
    position: relative;
  }

  .navlinks{
    display:none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    flex-direction: column;
    gap: 0;
    padding: 10px 0;
    background: rgba(255,255,255,.94);
    border: 1px solid rgba(30,37,43,.10);
    border-radius: 14px;
    box-shadow: 0 14px 40px rgba(0,0,0,.10);
    overflow: hidden;
  }

  .navlinks.is-open{ display:flex; }

  .navlinks a{
    padding: 12px 16px;
    font-size: 12px;
    opacity: .9;
  }

  .navlinks a + a{
    border-top: 1px solid rgba(30,37,43,.08);
  }
}

/* iOS safe-area padding */
@supports (padding: max(0px)){
  .topnav{
    padding-left: max(0px, env(safe-area-inset-left));
    padding-right: max(0px, env(safe-area-inset-right));
  }
}
