/* ES Architecte, direction : greige du récap, blanc du portfolio, sauge des studios, encre du logo */
/* Mise en page : chapitres plein écran, galerie horizontale épinglée, cartes empilées */
:root {
  --paper: #F6F5F2;
  --white: #FFFFFF;
  --greige: #E4E1DB;
  --stone: #CFC8BD;
  --sand: #C8B79E;
  --sage: #8A9C8D;
  --sage-deep: #5F7365;
  --ink: #141312;
  --ink-soft: #55514B;
  --mute: #8E8880;
  --display: 'Urbanist', 'Glacial Indifference', 'Helvetica Neue', Arial, sans-serif;
  --body: 'Montserrat', 'Gotham', 'Helvetica Neue', Arial, sans-serif;
  --serif: 'Bodoni Moda', 'Didot', Georgia, serif;
  --gutter: max(20px, 4vw);
  --max: 1400px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--paper); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--body); font-weight: 300; font-size: 16px; line-height: 1.7;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; text-transform: none; }
::selection { background: var(--sage); color: var(--white); }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }

.container {
  max-width: var(--max); margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.section { padding-block: clamp(90px, 13vw, 180px) 0; position: relative; overflow-x: clip; }
main { overflow-x: clip; }


.h-display {
  font-family: var(--display); font-weight: 300; text-transform: uppercase;
  font-size: clamp(38px, 6vw, 92px); line-height: 1; margin: 0; text-wrap: balance;
}
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; }
.split .w > span { display: inline-block; }

/* Bouton pilule (repris du récap) */
.pill {
  display: inline-flex; align-items: center; gap: 14px; padding: 12px 14px 12px 24px;
  border: 1px solid currentColor; border-radius: 999px; background: transparent; color: var(--ink);
  font: 500 11px/1 var(--body); text-transform: uppercase; text-decoration: none; cursor: pointer;
  transition: background .4s var(--ease), color .4s var(--ease);
}
.pill:hover { background: var(--ink); color: var(--paper); }
.pill--light { color: var(--white); }
.pill--light:hover { background: var(--white); color: var(--ink); }
.pill--dark { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pill--dark:hover { background: transparent; color: var(--ink); }
.arrow { position: relative; width: 30px; height: 18px; border: 1px solid currentColor; border-radius: 999px; transition: transform .4s var(--ease); }
.arrow::before { content: ''; position: absolute; left: 7px; right: 7px; top: 50%; height: 1px; background: currentColor; }
.arrow::after { content: ''; position: absolute; right: 7px; top: 50%; width: 5px; height: 5px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: translateY(-50%) rotate(45deg); }
.pill:hover .arrow { transform: translateX(4px); }

/* ─── Préchargement ─── */
.loader {
  position: fixed; inset: 0; z-index: 200; background: var(--greige);
  display: grid; place-items: center; align-content: center; gap: 24px;
}
.loader img { width: 96px; height: auto; }
.loader__count { font: 300 13px/1 var(--body); color: var(--mute); font-variant-numeric: tabular-nums; }
.no-loader .loader { display: none; }

/* ─── Curseur ─── */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 150; width: 92px; height: 92px; margin: -46px 0 0 -46px;
  border-radius: 50%; background: var(--ink); color: var(--paper); pointer-events: none;
  display: grid; place-items: center; font: 500 11px/1 var(--body); text-transform: uppercase;
  transform: scale(0); transition: transform .35s var(--ease);
}
.cursor.is-on { transform: scale(1); }
@media (hover: none) { .cursor { display: none; } }

/* ─── Navigation ─── */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 100;
  display: flex; align-items: center; gap: 36px;
  padding: calc(14px + env(safe-area-inset-top, 0px)) max(var(--gutter), env(safe-area-inset-right, 0px)) 14px max(var(--gutter), env(safe-area-inset-left, 0px));
  transition: background .5s, color .5s, transform .5s var(--ease);
}
.nav.is-scrolled { background: rgba(246,245,242,.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__logo { position: relative; display: block; width: 38px; }
.nav__logo img { width: 38px; height: auto; transition: opacity .4s; }
.nav__logo .logo-light { position: absolute; inset: 0; opacity: 0; }
.nav__links { display: flex; gap: 30px; margin-left: auto; }
.nav__links a { font-size: 11px; font-weight: 500; text-transform: uppercase; text-decoration: none; opacity: .7; transition: opacity .3s; }
.nav__links a:hover { opacity: 1; }
.nav--dark { color: var(--white); }
.nav--dark.is-scrolled { background: rgba(20,19,18,.82); }
.nav--dark .logo-dark { opacity: 0; }
.nav--dark .logo-light { opacity: 1; }
.nav--dark .nav__cta:hover { background: var(--white); color: var(--ink); }
.nav--dark .nav__cta { color: var(--white); }
.nav__burger { display: none; }

/* ─── Prologue ─── */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; background: var(--white); }
.hero__bg { position: absolute; inset: -6% 0 0; width: 100%; height: 112%; object-fit: cover; }
.hero__inner {
  position: relative; height: 100%; display: grid; grid-template-columns: 1fr auto; grid-template-rows: 1fr auto; column-gap: clamp(24px, 4vw, 64px);
  max-width: var(--max); margin: 0 auto;
  padding: 120px max(var(--gutter), env(safe-area-inset-right, 0px)) 36px max(var(--gutter), env(safe-area-inset-left, 0px));
}
.hero__brand { display: flex; align-items: center; gap: clamp(20px, 3vw, 48px); align-self: center; }
.hero__logo { width: clamp(150px, 22vw, 330px); height: auto; }
.hero__title {
  margin: 0; font-family: var(--display); font-weight: 300; text-transform: uppercase;
  font-size: clamp(30px, 4.4vw, 66px); line-height: 1.02;
}
.line { display: block; overflow: hidden; }
.line > span { display: block; }
.hero__person { margin: 0; align-self: center; display: grid; gap: 18px; width: clamp(200px, min(24vw, 34vh), 340px); }
.hero__photo { aspect-ratio: 3 / 4; overflow: hidden; background: var(--greige); max-width: 100%; box-shadow: 0 24px 60px rgba(20,19,18,.12); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__person figcaption { display: grid; gap: 8px; }
.hero__name { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(22px, 2vw, 30px); line-height: 1.05; }
.hero__role { font-size: 12px; font-weight: 500; line-height: 1.5; color: var(--ink-soft); }
.hero__quote { font-family: var(--serif); font-style: italic; font-size: 14px; line-height: 1.5; color: var(--ink-soft); }
.hero__person .pill { justify-self: start; margin-top: 6px; white-space: nowrap; background: rgba(255,255,255,.55); }
.hero__person .pill:hover { background: var(--ink); }
.hero__foot { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.hero__tag { margin: 0; font-size: 12px; font-weight: 500; text-transform: uppercase; }
.hero__scroll { display: flex; align-items: center; gap: 12px; font-size: 11px; text-transform: uppercase; color: var(--ink-soft); }
.hero__scroll i { width: 1px; height: 44px; background: var(--ink); transform-origin: top; animation: drip 2.2s var(--ease) infinite; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ─── L'atelier ─── */
.manifesto {
  font-family: var(--display); font-weight: 300; font-size: clamp(26px, 3.6vw, 54px); line-height: 1.2;
  margin: 0; max-width: 22ch; text-wrap: pretty;
}
.manifesto .mw { opacity: 1; }
.cutout { position: absolute; pointer-events: none; z-index: 1; height: auto; filter: drop-shadow(0 12px 18px rgba(0,0,0,.12)); }
.cutout--fleur { width: clamp(110px, 13vw, 190px); right: 6%; top: 18%; transform: rotate(12deg); }
.atelier > .container:first-of-type { position: relative; }

.about { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 7vw, 120px); margin-top: clamp(80px, 12vw, 170px); align-items: end; }
.about__portrait { margin: 0; aspect-ratio: 2 / 3; overflow: hidden; background: var(--greige); max-width: 100%; }
.about__portrait img { width: 100%; height: 100%; object-fit: cover; }
.about__text { min-width: 0; }
.about__text > p { color: var(--ink-soft); max-width: 58ch; }
.about__role { font-size: 12px; font-weight: 500; text-transform: uppercase; color: var(--ink) !important; margin: 18px 0 30px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 48px 0 0; border-top: 1px solid var(--stone); }
.stats div { padding: 22px 16px 0 0; }
.stats div + div { padding-left: 20px; border-left: 1px solid var(--stone); }
.stats dt { font-family: var(--display); font-weight: 200; font-size: clamp(44px, 5vw, 76px); line-height: 1; font-variant-numeric: tabular-nums; }
.stats dd { margin: 10px 0 0; font-size: 11px; font-weight: 500; text-transform: uppercase; color: var(--mute); }

.anniversary { position: relative; display: grid; grid-template-columns: 4fr 7fr; gap: clamp(32px, 7vw, 120px); align-items: center; margin-top: clamp(90px, 12vw, 170px); }
.anniversary__img { margin: 0; aspect-ratio: 3 / 4; overflow: hidden; max-width: 100%; transform: rotate(-2deg); box-shadow: 0 20px 50px rgba(0,0,0,.08); }
.anniversary__img img { width: 100%; height: 100%; object-fit: cover; }
.cutout--cle { width: clamp(60px, 6vw, 96px); left: calc(30% + 10px); top: -40px; transform: rotate(-24deg); }
.quote { font-family: var(--display); font-weight: 300; font-size: clamp(24px, 2.8vw, 40px); line-height: 1.3; margin: 0; max-width: 26ch; }

/* ─── Bandeau ─── */
.marquee { margin-top: clamp(90px, 12vw, 160px); padding-block: 26px; border-block: 1px solid var(--stone); overflow: hidden; background: var(--greige); }
.marquee__track { display: flex; gap: 48px; width: max-content; animation: marquee 38s linear infinite; align-items: center; }
.marquee span { font-family: var(--display); font-weight: 300; font-size: clamp(28px, 4vw, 56px); text-transform: uppercase; white-space: nowrap; }
.marquee i { font-style: normal; color: var(--sage); font-size: 18px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ─── Projets ─── */
.projects { background: var(--paper); }
.projects__pin { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding-block: 110px 50px; overflow: hidden; }
.projects__head { width: 100%; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 8px 40px; margin-bottom: clamp(32px, 4vw, 56px); }
.projects__head .h-display { font-size: clamp(34px, 4.6vw, 70px); }
.projects__hint { margin: 0; max-width: 32ch; font-size: 13px; color: var(--mute); }
.projects__track {
  display: flex; gap: clamp(20px, 2.4vw, 40px); width: max-content;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px), calc((100vw - var(--max)) / 2 + var(--gutter)));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.project { flex: 0 0 auto; width: clamp(280px, min(34vw, 62vh), 520px); cursor: pointer; outline-offset: 8px; }
.project:nth-child(even) { margin-top: 48px; }
.project__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--greige); max-width: 100%; }
.project__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.project:hover .project__media img { transform: scale(1.05); }
.project__body { padding-top: 18px; }
.tag { display: inline-block; font-size: 10px; font-weight: 500; text-transform: uppercase; color: var(--sage-deep); padding: 5px 10px; border: 1px solid currentColor; border-radius: 999px; }
.project h3 { font-family: var(--display); font-weight: 400; font-size: clamp(22px, 2vw, 30px); text-transform: uppercase; margin: 14px 0 6px; line-height: 1.1; }
.project h3 small { display: block; font-family: var(--body); font-size: 11px; font-weight: 500; color: var(--mute); margin-top: 6px; }
.project p { margin: 0; font-size: 14px; color: var(--ink-soft); max-width: 42ch; }
.meta { list-style: none; padding: 14px 0 0; margin: 16px 0 0; display: flex; justify-content: space-between; border-top: 1px solid var(--stone); }
.meta li { font-size: 10px; text-transform: uppercase; color: var(--mute); }
.meta b { display: block; font-family: var(--body); font-weight: 600; font-size: 14px; color: var(--ink); }
.meta b.ok::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--sage); margin-right: 7px; vertical-align: middle; }
.project--end { display: grid; align-content: center; gap: 24px; width: clamp(260px, 26vw, 380px); cursor: default; }
.project--end p { font-family: var(--display); font-weight: 300; font-size: clamp(28px, 3vw, 44px); text-transform: uppercase; line-height: 1.05; color: var(--ink); margin: 0; }
.projects__progress { width: min(320px, 60vw); height: 1px; background: var(--stone); margin: 44px auto 0; }
.projects__progress span { display: block; height: 100%; background: var(--ink); transform: scaleX(0); transform-origin: left; }

/* ─── Du rendu à la réalité ─── */
.reality { background: var(--greige); }
.reality__pin { min-height: 100vh; display: grid; grid-template-columns: 4fr 7fr; gap: clamp(32px, 5vw, 80px); align-items: center; max-width: var(--max); margin: 0 auto; padding: 110px max(var(--gutter), env(safe-area-inset-right, 0px)) 60px max(var(--gutter), env(safe-area-inset-left, 0px)); }
.reality__text { min-width: 0; }
.reality__text .h-display { font-size: clamp(34px, 4.2vw, 64px); margin-bottom: 24px; }
.reality__text > p:not(.kicker) { color: var(--ink-soft); max-width: 40ch; }
.reality__labels { display: flex; gap: 10px; margin-top: 28px; }
.reality__labels span { font-size: 10px; font-weight: 500; text-transform: uppercase; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--stone); color: var(--mute); transition: all .4s; }
.reality__labels span.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.reality__frames { position: relative; aspect-ratio: 3 / 2; overflow: hidden; max-width: 100%; }
.reality__frames img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reality__real { clip-path: inset(0 0 0 100%); }

/* ─── Expertises : cartes empilées ─── */
.services { background: var(--paper); padding-bottom: clamp(60px, 8vw, 120px); }
.services__head { margin-bottom: clamp(40px, 6vw, 80px); }
.stack { display: grid; gap: 28px; }
.card {
  position: sticky; top: 90px; display: grid; grid-template-columns: 1fr 1fr; min-height: min(78vh, 640px);
  background: var(--white); border: 1px solid var(--stone); overflow: hidden; transform-origin: 50% 0;
}
.card:nth-child(2) { top: 106px; }
.card:nth-child(3) { top: 122px; }
.card:nth-child(4) { top: 138px; }
.card__text { padding: clamp(28px, 4vw, 64px); display: flex; flex-direction: column; min-width: 0; }
.card__n { font-size: 11px; font-weight: 500; color: var(--mute); }
.card h3 { font-family: var(--display); font-weight: 300; text-transform: uppercase; font-size: clamp(30px, 3.6vw, 56px); line-height: 1.02; margin: auto 0 22px; padding-top: 40px; }
.card h3 em { display: block; }
.card p { margin: 0 0 22px; color: var(--ink-soft); max-width: 46ch; }
.card ul { list-style: none; margin: 0 0 8px; padding: 0; border-top: 1px solid var(--stone); }
.card li { padding: 11px 0; border-bottom: 1px solid var(--stone); font-size: 12px; font-weight: 500; text-transform: uppercase; }
.card .pill { margin-top: 26px; align-self: flex-start; }
.card__img { overflow: hidden; background: var(--greige); min-width: 0; }
.card__img img { width: 100%; height: 100%; object-fit: cover; }
.card__img--plan { background: var(--white); display: grid; place-items: center; padding: 8%; }
.card__img--plan img { object-fit: contain; height: auto; max-height: 100%; }
.card--sage { background: var(--sage); border-color: var(--sage); color: var(--white); }
.card--sage p, .card--sage .card__n { color: rgba(255,255,255,.8); }
.card--sage ul, .card--sage li { border-color: rgba(255,255,255,.35); }
.card--ink { background: var(--ink); border-color: var(--ink); color: var(--white); }
.card--ink p, .card--ink .card__n { color: rgba(255,255,255,.65); }
.card--ink ul, .card--ink li { border-color: rgba(255,255,255,.2); }
.card--ink .card__img--plan { background: var(--white); }
.card--greige { background: var(--greige); border-color: var(--stone); }
.card--greige .card__img--plan { background: var(--greige); }

/* Écrans peu hauts : pas d'empilement collant */
@media (max-height: 760px) { .card { position: relative; top: 0 !important; } }

/* ─── ERP & mairie ─── */
.erp { background: var(--ink); color: var(--white); padding-block: clamp(100px, 13vw, 180px); position: relative; }
.erp__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.erp__intro { position: sticky; top: 120px; min-width: 0; }
.erp__intro .h-display { font-size: clamp(34px, 4.4vw, 68px); margin-bottom: 28px; }
.erp__intro > p:not(.kicker) { color: rgba(255,255,255,.68); max-width: 44ch; margin: 0 0 32px; }
.cutout--branche { width: clamp(80px, 9vw, 130px); right: 0; bottom: -170px; transform: rotate(-18deg); opacity: .9; }
.dossiers { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255,255,255,.18); counter-reset: d; }
.dossier { padding: clamp(28px, 3.5vw, 46px) 0; border-bottom: 1px solid rgba(255,255,255,.18); display: grid; grid-template-columns: 60px 1fr; column-gap: 20px; counter-increment: d; min-width: 0; }
.dossier::before { content: counter(d, decimal-leading-zero); grid-row: 1 / span 3; font-family: var(--serif); font-style: italic; font-size: 26px; color: var(--sage); line-height: 1.2; }
.dossier__ref { font-size: 10px; font-weight: 500; text-transform: uppercase; color: rgba(255,255,255,.5); }
.dossier h3 { font-family: var(--display); font-weight: 300; text-transform: uppercase; font-size: clamp(24px, 2.6vw, 38px); line-height: 1.1; margin: 8px 0 12px; }
.dossier p { margin: 0; color: rgba(255,255,255,.68); max-width: 52ch; }

/* ─── Méthode ─── */
.method .h-display { margin-bottom: clamp(48px, 6vw, 90px); }
.steps { position: relative; display: grid; gap: 0; max-width: 1000px; margin-left: auto; }
.steps__line { position: absolute; left: 31px; top: 12px; bottom: 12px; width: 1px; background: var(--stone); }
.steps__line span { display: block; width: 100%; height: 100%; background: var(--ink); transform-origin: top; transform: scaleY(1); }
.step { display: grid; grid-template-columns: 64px 1fr; gap: clamp(20px, 4vw, 60px); padding-bottom: clamp(36px, 5vw, 64px); }
.step__n { position: relative; z-index: 1; width: 63px; height: 63px; border-radius: 50%; border: 1px solid var(--ink); background: var(--paper); display: grid; place-items: center; font-family: var(--display); font-size: 17px; }
.step h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(22px, 2.4vw, 34px); margin: 12px 0 10px; line-height: 1.1; }
.step p { margin: 0; color: var(--ink-soft); max-width: 56ch; }

/* ─── Questions ─── */
.faq-grid { display: grid; grid-template-columns: 4fr 7fr; gap: clamp(32px, 6vw, 100px); }
.faq-grid .h-display { font-size: clamp(34px, 4.2vw, 62px); }
.faq { border-top: 1px solid var(--stone); min-width: 0; }
.faq details { border-bottom: 1px solid var(--stone); }
.faq summary { list-style: none; cursor: pointer; padding: 26px 48px 26px 0; position: relative; font-family: var(--display); font-weight: 400; font-size: clamp(18px, 1.7vw, 23px); text-transform: uppercase; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-weight: 200; font-size: 30px; transition: transform .4s var(--ease); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0 0 26px; color: var(--ink-soft); max-width: 62ch; }

/* ─── Épilogue ─── */
.contact { position: relative; margin-top: clamp(100px, 13vw, 180px); padding-block: clamp(90px, 11vw, 150px); background: var(--greige); overflow: hidden; }
.cutout--papillon { width: clamp(90px, 10vw, 150px); right: 8%; top: 60px; transform: rotate(10deg); }
.contact__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 7vw, 120px); align-items: end; position: relative; z-index: 2; }
.contact__title { font-family: var(--display); font-weight: 300; text-transform: uppercase; font-size: clamp(40px, 5.6vw, 88px); line-height: 1; margin: 0 0 40px; }
.contact__direct { display: grid; gap: 6px; }
.contact__direct a { font-family: var(--display); font-size: clamp(18px, 1.8vw, 24px); text-decoration: none; width: fit-content; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease); overflow-wrap: anywhere; }
.contact__direct a:hover { background-size: 100% 1px; }
.form { display: grid; gap: 22px; min-width: 0; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.form label { display: grid; gap: 6px; font-size: 10px; font-weight: 500; text-transform: uppercase; color: var(--mute); }
.form input, .form select, .form textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--stone); border-radius: 0; color: var(--ink);
  font: 300 16px/1.5 var(--body); padding: 8px 0; outline: none; transition: border-color .3s; text-transform: none;
}
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--ink); }
.form textarea { resize: vertical; }
.form .pill { justify-self: start; margin-top: 6px; }
.form__note { margin: 0; font-size: 14px; color: var(--ink-soft); }

/* ─── Pied de page ─── */
.footer { background: var(--paper); padding-block: 64px 32px; }
.footer__grid { display: grid; grid-template-columns: auto 1fr 1fr 1fr; gap: 40px; align-items: start; font-size: 13px; color: var(--ink-soft); }
.footer__grid p { margin: 0; }
.footer__grid a { text-decoration: none; }
.footer__grid a:hover { text-decoration: underline; }
.footer__legal { margin-top: 48px !important; padding-top: 22px; border-top: 1px solid var(--stone); font-size: 12px; color: var(--mute); }

/* ─── Galerie projet ─── */
.modal { position: fixed; inset: 0; z-index: 180; background: var(--paper); overflow-y: auto; overscroll-behavior: contain; }
.modal__close {
  position: sticky; top: calc(18px + env(safe-area-inset-top, 0px)); margin: 18px max(var(--gutter), env(safe-area-inset-right, 0px)) 0 auto; display: block; z-index: 2;
  background: var(--ink); color: var(--paper); border: 0; border-radius: 999px; padding: 12px 20px; cursor: pointer;
  font: 500 11px/1 var(--body); text-transform: uppercase;
}
.modal__inner { max-width: var(--max); margin: 0 auto; padding: 20px max(var(--gutter), env(safe-area-inset-right, 0px)) 80px max(var(--gutter), env(safe-area-inset-left, 0px)); }
.modal__head { margin-bottom: 40px; }
.modal__head h3 { font-family: var(--display); font-weight: 300; text-transform: uppercase; font-size: clamp(34px, 5vw, 72px); margin: 16px 0 10px; line-height: 1; }
.modal__head p { margin: 0; color: var(--ink-soft); max-width: 60ch; }
.modal__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.modal__grid figure { margin: 0; background: var(--greige); overflow: hidden; }
.modal__grid figure.wide { grid-column: 1 / -1; }
.modal__grid img { width: 100%; height: 100%; object-fit: cover; }
.modal__grid figure.contain { background: var(--white); }
.modal__grid figure.contain img { object-fit: contain; max-height: 70vh; margin: 0 auto; }
.modal__grid figcaption { padding: 10px 2px; font-size: 10px; text-transform: uppercase; color: var(--mute); background: var(--paper); }
.modal-open { overflow: hidden; }

/* ─── Tablette ─── */
@media (max-width: 1000px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: grid; gap: 7px; margin-left: auto; background: none; border: 0; padding: 10px; cursor: pointer; color: inherit; }
  .nav__burger span { width: 26px; height: 1px; background: currentColor; transition: transform .3s; }
  .nav.is-open { background: var(--paper); color: var(--ink); flex-wrap: wrap; }
  .nav.is-open .logo-dark { opacity: 1; } .nav.is-open .logo-light { opacity: 0; }
  .nav.is-open .nav__links { display: flex; flex-direction: column; gap: 18px; width: 100%; padding: 24px 0 12px; order: 3; }
  .nav.is-open .nav__links a { font-size: 14px; opacity: 1; }
  .nav.is-open .nav__burger span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav.is-open .nav__burger span:last-child { transform: translateY(-4px) rotate(-45deg); }

  .hero__brand { flex-direction: column; align-items: flex-start; }
  .hero__person { width: clamp(200px, 30vw, 280px); }
  .about, .anniversary, .reality__pin, .erp__grid, .faq-grid, .contact__grid { grid-template-columns: 1fr; }
  .about__portrait { max-width: 420px; }
  .anniversary__img { max-width: 340px; }
  .cutout--cle { left: 300px; }
  .erp__intro { position: relative; top: 0; }
  .cutout--branche { display: none; }
  .card { grid-template-columns: 1fr; min-height: 0; position: relative; top: 0 !important; }
  .card__img { aspect-ratio: 16 / 10; order: -1; }
  .card h3 { padding-top: 24px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

/* Projets : carrousel à faire glisser hors grand écran */
.hint-touch { display: none; }
@media (max-width: 900px), (prefers-reduced-motion: reduce) {
  .projects__pin { min-height: 0; padding-block: clamp(80px, 14vw, 120px) 40px; }
  .projects__track {
    width: auto; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
    scroll-padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); scrollbar-width: none; padding-bottom: 6px;
    padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  }
  .projects__track::-webkit-scrollbar { display: none; }
  .project { width: min(80vw, 420px); scroll-snap-align: start; }
  .project:nth-child(even) { margin-top: 0; }
  .project--end { width: min(72vw, 320px); }
  .projects__progress { margin-top: 28px; }
  .hint-desk { display: none; }
  .hint-touch { display: inline; }
}

/* ─── Mobile ─── */
@media (max-width: 640px) {
  body { font-size: 15px; }
  .hero__brand { flex-direction: column; align-items: flex-start; gap: 16px; }
  .hero { height: auto; min-height: 100svh; }
  .hero__inner { grid-template-columns: 1fr; grid-template-rows: auto; row-gap: 32px; padding-top: 96px; }
  .hero__logo { width: 120px; }
  .hero__person { width: 100%; grid-template-columns: 120px 1fr; align-items: start; gap: 16px; }
  .hero__quote { display: none; }
  .hero__person .pill { padding: 10px 12px 10px 18px; }
  .hero__foot { flex-direction: column; align-items: flex-start; }
  .hero__scroll { display: none; }
  .projects__head { grid-template-columns: 1fr; }
  .stats div { padding-right: 8px; }
  .stats div + div { padding-left: 12px; }
  .stats dd { font-size: 9px; }
  .dossier { grid-template-columns: 1fr; }
  .dossier::before { grid-row: auto; margin-bottom: 6px; }
  .steps__line { left: 21px; }
  .step { grid-template-columns: 44px 1fr; gap: 18px; }
  .step__n { width: 43px; height: 43px; font-size: 14px; }
  .step h3 { margin-top: 6px; }
  .form__row { grid-template-columns: 1fr; }
  .modal__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 20px; }
  .cutout--fleur { width: 84px; top: -96px; right: 12px; }
  .cutout--cle { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track, .hero__scroll i { animation: none; }
  .reality__real { clip-path: inset(0 0 0 50%); }
}

h1, h2, h3, .manifesto, .quote { overflow-wrap: break-word; }
@media (max-width: 640px) { h2, h3 { hyphens: auto; -webkit-hyphens: auto; } }

/* ─── Bandes de texte ─── */
.slides { overflow: hidden; padding-block: clamp(50px, 8vw, 110px); background: var(--paper); display: grid; gap: 6px; }
.slides__row { display: flex; gap: 0.4em; align-items: center; width: max-content; white-space: nowrap; font-family: var(--display); font-weight: 300; text-transform: uppercase; font-size: clamp(54px, 11vw, 170px); line-height: 1; }
.slides__row i { font-style: normal; font-size: .25em; color: var(--sage); }
.slides__row--outline { color: transparent; -webkit-text-stroke: 1px var(--ink); }
.slides__row--outline i { -webkit-text-stroke: 0; }

/* ─── Projets épinglés sur petit écran ─── */
@media (max-width: 900px) {
  .projects.is-pinned .projects__pin { min-height: 100vh; min-height: 100svh; padding-block: 76px 24px; }
  .projects.is-pinned .projects__track { width: max-content; overflow: visible; scroll-snap-type: none; padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
  .projects.is-pinned .project { width: min(78vw, 56svh, 420px); }
  .projects.is-pinned .project__media { aspect-ratio: 16 / 11; }
  .projects.is-pinned .project p { display: none; }
  .projects.is-pinned .project--end p { display: block; }
  .projects.is-pinned .projects__head { margin-bottom: 22px; }
  .projects.is-pinned .projects__hint { display: none; }
  .projects.is-pinned .projects__head .h-display { font-size: clamp(28px, 8vw, 44px); }
  .projects.is-pinned .projects__progress { margin-top: 22px; }
}
