/* =================================================================
   TERRITOIRES NARRATIFS — Grégory Dayon
   Expérience web immersive (v2)
   -----------------------------------------------------------------
   Identité conservée du PDF : palette, typographie, hiérarchie, ton.
   Apport web : profondeur, lumière, débordements, courbes, respiration.
   Chaque section est indépendante (voir blocs numérotés).
   ================================================================= */

/* ---------- Variables ---------- */
:root {
  --ink:      #2c3032;   /* anthracite — texte */
  --teal:     #176a90;   /* bleu pétrole */
  --teal-dk:  #115472;
  --gold:     #ad8f56;   /* or / laiton */
  --gold-dk:  #957734;
  --grey:     #575b5c;
  --cream:    #f6f2ed;
  --cream-dk: #ece4d6;
  --white:    #ffffff;
  --line:     #e7e0d4;

  /* tons sombres (scènes immersives) */
  --night:    #11171b;
  --night-2:  #161e23;
  --deep:     #0c1115;
  --on-dark:  #e9e4da;
  --on-dark-soft: #b9b3a6;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Archivo Narrow", "Helvetica Neue", Arial, sans-serif;

  --maxw: 1240px;
  --maxw-narrow: 760px;
  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  --pad-y: clamp(5.5rem, 13vw, 12rem);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.1, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  font-size: clamp(1rem, 0.55vw + 0.92rem, 1.14rem);
  line-height: 1.78;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; transition: color .3s var(--ease); }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1,h2,h3,h4 { margin: 0; font-weight: 500; line-height: 1.08; }
::selection { background: var(--gold); color: #fff; }

/* ---------- Conteneurs / scènes ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: var(--maxw-narrow); }

.scene {
  position: relative;
  padding-block: var(--pad-y);
  overflow: clip;          /* contient les débordements tout en restant net */
}
.scene--cream { background: var(--cream); }
.scene--dark  { background: var(--night); color: var(--on-dark); }
.scene--deep  { background: var(--deep);  color: var(--on-dark); }
.metier, .approche { background: #fbfaf7; }
/* Territoires : fond blanc identique au fond du graphique (frise) */
.territoires { background: #ffffff; }

/* ---------- Typographie partagée ---------- */
.display {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--teal);
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: .9;            /* interlignage resserré, proche du PDF */
  letter-spacing: .005em;
  margin-bottom: clamp(.9rem, 1.8vw, 1.5rem);   /* un peu d'air sous le titre */
}
/* respiration renforcée quand le texte suit directement le titre */
.display + .prose,
.display + .prose--light { margin-top: .4rem; }
.scene--dark .display, .scene--deep .display { color: #cfe6f1; }

.cartouche {
  display: inline-block;
  margin: 0 0 -.15rem -1.05em;       /* le texte du cartouche s'aligne sur le titre */
  padding: .42em 1.05em .38em;
  background: var(--teal);
  color: #fff;
  font-family: var(--sans);
  font-weight: 700;
  font-size: .76rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  border-radius: 2px;
}
.lead {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  color: var(--grey);
  max-width: 60ch;
  margin: 1.4rem 0 0;
}
.scene--dark .lead, .scene--deep .lead { color: var(--on-dark-soft); }
.lead--gold { color: var(--gold); font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem,2.4vw,1.9rem); line-height:1.25; }

.scene-head { max-width: 70ch; margin-bottom: clamp(2.5rem, 6vw, 5rem); }

.prose p { margin: 0 0 1.2rem; }
.prose p:last-child { margin-bottom: 0; }
.prose--light { color: var(--on-dark); }

/* Citation / respiration */
.quote {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3.2vw, 2.4rem);
  line-height: 1.32;
  color: var(--ink);
  text-align: center;
  max-width: 24ch;
  margin: clamp(3rem, 7vw, 6rem) auto 0;
}
.quote em { color: var(--teal); font-style: italic; }
.quote--light { color: #fff; }
.quote--light em { color: var(--gold); }

.eyebrow {
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold);
  font-size: clamp(1rem, 1.6vw, 1.25rem);
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: .04em;
  font-size: .98rem;
  padding: .95em 2.1em;
  border-radius: 2px;
  cursor: pointer;
  transition: transform .35s var(--ease), background .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease);
}
.btn-primary { background: var(--gold); color: #fff !important; border: 1px solid var(--gold); }
.btn-primary:hover { background: var(--gold-dk); border-color: var(--gold-dk); transform: translateY(-3px); box-shadow: 0 16px 34px -16px rgba(173,143,86,.7); }
.btn-ghost { background: transparent; color: #fff !important; border: 1px solid rgba(255,255,255,.4); }
.btn-ghost:hover { background: rgba(255,255,255,.08); border-color: #fff; transform: translateY(-3px); }

/* =================================================================
   Barre de progression + grain
   ================================================================= */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 200; background: transparent; }
.progress-bar { display: block; height: 100%; width: 0%; background: linear-gradient(90deg, var(--gold), var(--teal)); transition: width .1s linear; }

.grain {
  position: fixed; inset: 0; z-index: 190; pointer-events: none; opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* =================================================================
   NAVIGATION
   ================================================================= */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .75rem var(--gutter);
  transition: background .45s var(--ease), box-shadow .45s var(--ease), padding .45s var(--ease);
}
.nav.scrolled { background: rgba(17,23,27,.78); backdrop-filter: blur(12px); padding-block: .5rem; box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.nav-brand img { height: 50px; width: auto; transition: height .45s var(--ease); filter: drop-shadow(0 2px 8px rgba(0,0,0,.35)); }
.nav.scrolled .nav-brand img { height: 40px; }

.nav-menu { display: flex; align-items: center; gap: clamp(.9rem, 1.9vw, 2rem); }
.nav-menu a { font-family: var(--sans); font-weight: 500; font-size: .92rem; letter-spacing: .04em; color: #fff; position: relative; mix-blend-mode: difference; }
.nav.scrolled .nav-menu a { mix-blend-mode: normal; }
.nav-menu a::after { content:""; position:absolute; left:0; bottom:-4px; width:0; height:1.5px; background: var(--gold); transition: width .3s var(--ease); }
.nav-menu a:hover::after { width: 100%; }
.nav-link-cta { padding: .42em 1.1em; background: var(--gold); border-radius: 2px; mix-blend-mode: normal !important; }
.nav-link-cta::after { display: none; }
.nav-link-cta:hover { background: var(--gold-dk); }

.nav-burger { display: none; flex-direction: column; gap: 6px; width: 42px; height: 38px; padding: 9px 6px; background: none; border: 0; cursor: pointer; }
.nav-burger span { display: block; height: 2px; width: 100%; background: #fff; border-radius: 2px; transition: transform .35s var(--ease), opacity .35s var(--ease); }
.nav.scrolled .nav-burger span { background: #fff; }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-8px) rotate(-45deg); }

/* =================================================================
   1. HERO
   ================================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: flex-end;
  padding: 8rem var(--gutter) clamp(4rem, 9vh, 8rem);
  background: var(--deep);
  overflow: hidden;
  isolation: isolate;
}
.hero-bg { position: absolute; inset: -8% 0 -8% 0; z-index: -3; will-change: transform; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; filter: brightness(1.12) saturate(1.08); }
.hero-veil {
  position: absolute; inset: 0; z-index: -2;
  /* voile allégé : la fresque colorée ressort, le bas/gauche restent assez
     sombres pour la lisibilité du titre */
  background:
    linear-gradient(180deg, rgba(8,11,14,.22) 0%, rgba(8,11,14,.04) 30%, rgba(8,11,14,.22) 60%, rgba(8,11,14,.8) 100%),
    linear-gradient(90deg, rgba(8,11,14,.52) 0%, rgba(8,11,14,0) 52%);
}
.hero-glow {
  position: absolute; z-index: -1; left: 50%; top: 44%; transform: translate(-50%,-50%);
  width: min(900px, 90vw); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(173,143,86,.22) 0%, rgba(23,106,144,.12) 38%, transparent 70%);
  filter: blur(10px);
}
.hero-content { position: relative; max-width: 980px; }
.hero-eyebrow { color: #d9c39a; margin: 0 0 1.1rem; letter-spacing:.02em; }
.hero-title { font-family: var(--serif); font-weight: 500; color: #fff; font-size: clamp(3.2rem, 12vw, 9.5rem); line-height: .86; letter-spacing: .01em; margin: 0; text-shadow: 0 8px 40px rgba(0,0,0,.45); }
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line > span { display: block; transform: translateY(110%); animation: heroIn 1.2s var(--ease) forwards; }
.hero-title .line:nth-child(2) > span { animation-delay: .14s; }
@keyframes heroIn { to { transform: translateY(0); } }
.hero-tagline { color: #e7e2d8; font-size: clamp(1.1rem, 2vw, 1.45rem); max-width: 40ch; margin: 1.6rem 0 0; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 1.8rem; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .7rem;
  color: #e7e2d8; font-family: var(--sans); font-size: .72rem; letter-spacing: .22em; text-transform: uppercase;
}
.scroll-cue-line { width: 1px; height: 54px; background: linear-gradient(var(--gold), transparent); position: relative; overflow: hidden; }
.scroll-cue-line::after { content:""; position:absolute; top:-50%; left:0; width:100%; height:50%; background: var(--gold); animation: cue 2s var(--ease) infinite; }
@keyframes cue { 0%{transform:translateY(-100%)} 60%{transform:translateY(300%)} 100%{transform:translateY(300%)} }

/* =================================================================
   2. CONVICTION
   ================================================================= */
.conviction { display: flex; align-items: center; min-height: 90vh; }
.conviction-illu {
  position: absolute; right: -5%; top: 50%; transform: translateY(-50%);
  width: clamp(420px, 60vw, 1040px); z-index: 0; opacity: .92;
  filter: drop-shadow(0 34px 56px rgba(44,48,50,.2));
  will-change: transform;
}
.conviction-text { position: relative; z-index: 1; margin-left: 0; }
.conviction .quote { text-align: left; max-width: 30ch; margin-left: 0; }
.conviction .quote em { display: inline; }

/* =================================================================
   3. CE QUE JE CONÇOIS — séquence éditoriale
   ================================================================= */
.verses { margin-top: clamp(1rem, 4vw, 3rem); }
.verse {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  gap: clamp(1.5rem, 6vw, 6rem);
  max-width: var(--maxw); margin-inline: auto; padding: clamp(2rem,5vw,4.5rem) var(--gutter);
}
.verse--reverse .verse-illu { order: 2; }
.verse-illu { overflow: hidden; border-radius: 4px; aspect-ratio: 16/11; background: var(--cream); }
.verse-illu > div { width: 100%; height: 100%; will-change: transform; }
.verse-illu img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); }
.verse-body { position: relative; }
.verse-index { font-family: var(--serif); font-size: clamp(3rem,7vw,5.5rem); color: var(--cream-dk); line-height: 1; display: block; margin-bottom: -.4rem; }
.verse-title { font-family: var(--serif); color: var(--gold); font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
.verse-tags { color: var(--grey); font-size: 1.05rem; letter-spacing: .02em; margin: .6rem 0 0; }

/* =================================================================
   4. ÉTUDES DE CAS
   ================================================================= */
.scene-head--light .cartouche { background: var(--gold); }
.cases { display: grid; gap: clamp(1.6rem, 3vw, 2.6rem); margin-top: clamp(1rem,3vw,2.5rem); }
.case {
  position: relative; border-radius: 8px; overflow: hidden;
  background: var(--deep); box-shadow: 0 30px 60px -36px rgba(0,0,0,.7);
}
.case-cover {
  position: relative; min-height: clamp(360px, 52vw, 540px);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(1.8rem, 4vw, 3.4rem); color: #fff;
  background-image:
    linear-gradient(180deg, rgba(12,17,21,.15) 0%, rgba(12,17,21,.5) 52%, rgba(8,11,14,.9) 100%),
    var(--case-bg);
  background-size: cover; background-position: center; isolation: isolate;
}
.case-illu { position: absolute; z-index: 2; pointer-events: none; will-change: transform; }
.case-illu img { filter: drop-shadow(0 20px 40px rgba(0,0,0,.5)); }
.case .case-illu { right: 4%; top: -6%; width: clamp(120px, 16vw, 230px); }     /* loup Moowis */

/* Variante « texte à droite » : l'illustration occupe la gauche (ex. Chat Racine, Gala) */
.case--right .case-cover {
  justify-content: center;          /* centrage vertical */
  align-items: flex-end;            /* contenu poussé à droite */
  text-align: left;
  background-position: left center;  /* on garde le sujet (chat) à gauche */
  background-image:
    linear-gradient(90deg, rgba(8,11,14,0) 0%, rgba(8,11,14,.12) 40%, rgba(8,11,14,.8) 70%, rgba(8,11,14,.95) 100%),
    var(--case-bg);
}
.case--right .case-verb,
.case--right .case-title,
.case--right .case-teaser { max-width: min(52%, 34rem); }
.case--right .case-toggle { align-self: flex-end; }
/* mobile : on revient au texte en bas (plus lisible sur écran étroit) */
@media (max-width: 760px) {
  .case--right .case-cover {
    justify-content: flex-end; align-items: flex-start; background-position: center;
    background-image:
      linear-gradient(180deg, rgba(12,17,21,.15) 0%, rgba(12,17,21,.5) 52%, rgba(8,11,14,.92) 100%),
      var(--case-bg);
  }
  .case--right .case-verb,
  .case--right .case-title,
  .case--right .case-teaser { max-width: 100%; }
  .case--right .case-toggle { align-self: flex-start; }
}
.case-verb { font-family: var(--sans); font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: .85rem; color: var(--gold); margin: 0 0 .55rem; }
.case-title { font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 4.6vw, 3.2rem); margin: 0 0 .6rem; color: #fff; }
.case-teaser { font-family: var(--serif); font-style: italic; font-size: clamp(1.1rem, 2.1vw, 1.45rem); max-width: 44ch; margin: 0 0 1.7rem; color: rgba(255,255,255,.92); }
.case-toggle { align-self: flex-start; font-family: var(--sans); font-weight: 600; letter-spacing: .04em; font-size: .92rem; color: #fff; background: transparent; border: 1.5px solid rgba(255,255,255,.6); padding: .72em 1.7em; border-radius: 2px; cursor: pointer; transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease); }
.case-toggle:hover { background: #fff; color: var(--ink); border-color: #fff; }
.case-toggle::after { content: " ↓"; }
.case-toggle[aria-expanded="true"]::after { content: " ↑"; }

.case-detail { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); background: var(--night-2); color: var(--on-dark); }
.case-detail.open { grid-template-rows: 1fr; }
.case-detail-inner { overflow: hidden; opacity: 0; transition: opacity .55s var(--ease) .12s; }
.case-detail.open .case-detail-inner { opacity: 1; }
.case-detail-inner > * { padding-inline: clamp(1.8rem, 4vw, 3.4rem); }
.case-context { padding-top: clamp(1.8rem, 4vw, 2.8rem); color: var(--on-dark-soft); max-width: 82ch; }
.case-kicker { padding-top: clamp(1.8rem, 4vw, 2.8rem); margin: 0 0 .3rem; font-family: var(--serif); font-style: italic; color: var(--gold); font-size: clamp(1.2rem, 2vw, 1.5rem); }
.case-kicker + .case-context { padding-top: 0; }
.case-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.4rem, 3vw, 2.8rem); padding-top: 2rem; }
.case-block h4 { font-family: var(--serif); color: var(--gold); font-size: 1.45rem; margin-bottom: .5rem; }
.case-block p { margin: 0 0 .6rem; color: var(--on-dark); }
.case-block ul li { position: relative; padding-left: 1.1em; color: var(--on-dark); margin-bottom: .25rem; }
.case-block ul li::before { content:"—"; position:absolute; left:0; color: var(--gold); }
.case-link { padding-top: 1.8rem; margin: 0; }
.case-link a {
  font-family: var(--sans); font-weight: 600; letter-spacing: .04em; font-size: 1rem;
  color: var(--gold); border-bottom: 1px solid rgba(173,143,86,.5); padding-bottom: 3px;
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.case-link a::after { content: " ↗"; }
.case-link a:hover { color: #fff; border-color: #fff; }
.gallery { display: grid; grid-template-columns: repeat(3,1fr); gap: .8rem; padding-top: 1.8rem; padding-bottom: clamp(2rem,4vw,3rem); }
.gallery--single { grid-template-columns: 1fr; max-width: 760px; }
.gallery--credited { padding-bottom: .5rem; }
.gallery-credit { margin: 0; padding-bottom: clamp(2rem, 4vw, 3rem); font-size: .8rem; letter-spacing: .03em; color: var(--on-dark-soft); text-align: right; }
.gallery figure { margin: 0; border-radius: 4px; overflow: hidden; background: #0e1316; }
.gallery img { width: 100%; height: 100%; max-height: 340px; object-fit: cover; transition: transform .6s var(--ease); }
.gallery--single img { max-height: none; object-fit: contain; }
.gallery figure:hover img { transform: scale(1.04); }

/* =================================================================
   5. TERRITOIRES NARRATIFS — cycle
   ================================================================= */
.territoires-head { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(2rem,5vw,4.5rem); align-items: start; }
.territoires-head .prose { margin-top: 1.4rem; }
.publics { background: var(--gold); color: #fff; padding: clamp(1.8rem,3vw,2.6rem); border-radius: 4px; box-shadow: 0 24px 50px -30px rgba(173,143,86,.6); }
.publics h3 { font-family: var(--sans); font-weight: 700; letter-spacing: .04em; font-size: 1.15rem; margin-bottom: 1rem; }
.publics li { position: relative; padding: .42rem 0 .42rem 1.2em; border-bottom: 1px solid rgba(255,255,255,.25); }
.publics li:last-child { border-bottom: 0; }
.publics li::before { content:"•"; position:absolute; left:0; }

.cycle { position: relative; margin-top: clamp(3rem, 8vw, 6.5rem); }
/* Desktop : courbe reprise du document (image) ; mobile : frise verticale */
.cycle-img { display: none; width: 100%; height: auto; }
.cycle-steps { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 3vw, 2.4rem); }
.cycle-step { padding-top: 2.4rem; }
.cycle-dot { display:block; width: 16px; height: 16px; margin-bottom: 1rem; background: var(--gold); clip-path: polygon(25% 6%,75% 6%,100% 50%,75% 94%,25% 94%,0 50%); box-shadow: 0 0 0 6px #fff; }
.cycle-step h3 { font-family: var(--serif); color: var(--gold-dk); font-size: 1.6rem; margin-bottom: .35rem; }
.cycle-step p { margin: 0; font-size: .96rem; color: var(--grey); }

/* Desktop : on montre l'image du document et on masque la frise CSS */
@media (min-width: 861px) {
  .cycle-img { display: block; }
  .cycle-steps { display: none; }
}

/* =================================================================
   6. SITUATIONS DE PROJET
   ================================================================= */
.situations { display: grid; grid-template-columns: repeat(4,1fr); gap: clamp(1rem,2vw,1.6rem); margin-top: clamp(1rem,3vw,2rem); }
.situation { background: var(--cream); border: 1px solid var(--cream-dk); border-radius: 6px; padding: clamp(1.4rem,2.4vw,2rem); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.situation:hover { transform: translateY(-6px); box-shadow: 0 26px 50px -30px rgba(44,48,50,.35); }
.situation h3 { font-family: var(--serif); color: var(--gold-dk); font-size: 1.55rem; margin-bottom: .7rem; }
.situation-q { color: var(--ink); margin: 0 0 1.3rem; }
.situation-cols h4 { font-family: var(--sans); font-weight: 700; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-dk); margin: 1rem 0 .4rem; }
.situation-cols ul li { position: relative; padding-left: 1em; font-size: .94rem; color: var(--grey); margin-bottom: .15rem; }
.situation-cols ul li::before { content:"•"; position:absolute; left:0; color: var(--gold); }

/* =================================================================
   7. COLLABORATION — timeline qui se dessine
   ================================================================= */
.timeline { position: relative; max-width: 820px; margin: clamp(2rem,5vw,4rem) auto 0; padding-left: 48px; }
.tl-line { position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; background: rgba(173,143,86,.2); overflow: hidden; }
.tl-line-fill { position: absolute; inset: 0; background: var(--gold); transform: scaleY(var(--tl, 0)); transform-origin: top; transition: transform .15s linear; }
.tl-step { position: relative; padding-bottom: clamp(2.2rem, 5vw, 3.4rem); }
.tl-step:last-of-type { padding-bottom: 0; }
.tl-dot { position: absolute; left: -44px; top: 6px; width: 18px; height: 18px; background: var(--night); border: 2px solid var(--gold); clip-path: polygon(25% 6%,75% 6%,100% 50%,75% 94%,25% 94%,0 50%); transition: background .4s var(--ease), transform .4s var(--ease); }
.tl-step.in-view .tl-dot { background: var(--gold); transform: scale(1.1); }
.tl-num { font-family: var(--serif); color: var(--gold); font-size: 1.1rem; letter-spacing: .1em; }
.tl-body h3 { font-family: var(--serif); color: #cfe6f1; font-size: clamp(1.5rem,2.6vw,2rem); margin: .1rem 0 .3rem; }
.tl-body p { margin: 0; color: var(--on-dark-soft); }

/* =================================================================
   8. DÉMARCHE
   ================================================================= */
.demarche-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(2rem,5vw,5rem); align-items: start; }
.lead-line { font-family: var(--serif); font-style: italic; color: var(--gold); font-size: clamp(1.3rem,2.2vw,1.7rem); line-height: 1.3; }
.reperes { margin-top: 2.4rem; padding-top: 1.8rem; border-top: 1px solid rgba(255,255,255,.14); }
.reperes h3 { font-family: var(--sans); font-weight: 700; letter-spacing: .04em; font-size: 1.05rem; color: #cfe6f1; margin-bottom: .9rem; }
.reperes ul { display: grid; grid-template-columns: repeat(2,1fr); gap: .15rem 1.4rem; }
.reperes li { position: relative; padding-left: 1.1em; color: var(--on-dark-soft); font-size: .98rem; padding-block: .15rem; }
.reperes li::before { content:"—"; position:absolute; left:0; color: var(--gold); }
.demarche-media { position: sticky; top: 92px; }
.demarche-img { border-radius: 6px; overflow: hidden; will-change: transform; box-shadow: 0 40px 80px -40px rgba(0,0,0,.8); }
.demarche-img img { width: 100%; }

.closing-quote { font-family: var(--serif); text-align: center; font-size: clamp(1.7rem, 4vw, 3rem); line-height: 1.25; margin: clamp(3.5rem,8vw,6.5rem) auto 0; max-width: 22ch; color: #fff; }
.closing-quote span { display: block; }
.closing-quote-em { font-style: italic; color: var(--gold); }

/* =================================================================
   9. CONTACT
   ================================================================= */
/* Contact sur fond clair */
.contact {
  min-height: 92vh; display: flex; align-items: center; color: var(--ink);
  background: radial-gradient(120% 120% at 50% 0%, #fbf9f5 0%, #f3ede2 100%);
}
.contact-mono { position: absolute; right: 2%; top: 50%; transform: translateY(-50%); width: clamp(180px, 26vw, 360px); z-index: 0; opacity: .9; will-change: transform; filter: drop-shadow(0 18px 40px rgba(23,106,144,.28)); }
.contact-inner { position: relative; z-index: 1; }
.contact-lead { font-size: clamp(1.15rem,2vw,1.45rem); color: var(--grey); max-width: 48ch; margin: 1.2rem 0 2.2rem; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
/* bouton fantôme adapté au fond clair */
.contact .btn-ghost { color: var(--ink) !important; border-color: rgba(44,48,50,.28); }
.contact .btn-ghost:hover { background: rgba(44,48,50,.06); border-color: var(--ink); }
.contact-list { margin-top: 2.6rem; display: grid; gap: .2rem; max-width: 480px; }
.contact-list li { display: grid; grid-template-columns: 110px 1fr; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.contact-list span { font-family: var(--sans); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: .74rem; color: var(--grey); }
.contact-list a { font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--teal); }
.contact-list a:hover { color: var(--gold-dk); }
.contact-closing { text-align: left; margin: 2.8rem 0 0; max-width: none; font-size: clamp(1.5rem,3vw,2.3rem); color: var(--ink); }

/* =================================================================
   FOOTER
   ================================================================= */
.footer { background: #0a0e11; color: #b9b3a6; padding-block: clamp(2.5rem,5vw,3.5rem); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.footer-brand { font-family: var(--serif); font-size: 1.4rem; color: #fff; margin: 0; }
.footer-brand span { color: var(--gold); }
.footer-tag { margin: 0; font-size: .92rem; color: #837e74; }
.footer-top { color: var(--gold); font-weight: 600; font-size: .92rem; }

/* =================================================================
   ANIMATIONS au défilement — discrètes, lentes
   ================================================================= */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); will-change: opacity, transform; }
.reveal.in-view { opacity: 1; transform: none; }
/* léger décalage en cascade pour les listes d'éléments voisins */
.verses .verse:nth-child(2){ transition-delay:.05s }
.cycle-step:nth-child(2){ transition-delay:.08s } .cycle-step:nth-child(3){ transition-delay:.16s } .cycle-step:nth-child(4){ transition-delay:.24s }
.situation:nth-child(2){ transition-delay:.08s } .situation:nth-child(3){ transition-delay:.16s } .situation:nth-child(4){ transition-delay:.24s }
.tl-step:nth-child(2){ transition-delay:.06s } .tl-step:nth-child(3){ transition-delay:.12s } .tl-step:nth-child(4){ transition-delay:.18s } .tl-step:nth-child(5){ transition-delay:.24s } .tl-step:nth-child(6){ transition-delay:.3s }

/* =================================================================
   RESPONSIVE
   ================================================================= */
@media (max-width: 1024px) {
  .verse { grid-template-columns: 1fr; gap: 1.4rem; }
  .verse--reverse .verse-illu { order: 0; }
  .territoires-head { grid-template-columns: 1fr; }
  .publics { max-width: 520px; }
  .situations { grid-template-columns: repeat(2,1fr); }
  .demarche-grid { grid-template-columns: 1fr; }
  .demarche-media { position: static; max-width: 460px; margin-inline: auto; }
}

/* Cycle Territoires en mode mobile : frise verticale à nœuds polygonaux */
@media (max-width: 860px) {
  .cycle-img { display: none; }
  .cycle-steps {
    display: block; position: relative;
    max-width: 560px; margin-inline: auto; padding-left: 40px;
  }
  .cycle-steps::before {
    content: ""; position: absolute; left: 11px; top: 10px; bottom: 10px;
    width: 2px; background: rgba(173,143,86,.32);
  }
  .cycle-step { position: relative; padding: 0 0 2.4rem; }
  .cycle-step:last-child { padding-bottom: 0; }
  .cycle-dot {
    position: absolute; left: -40px; top: 6px; margin: 0;
    width: 20px; height: 20px; box-shadow: 0 0 0 5px #fff;
  }
}

@media (max-width: 860px) {
  .nav-burger { display: flex; }
  .nav-menu {
    position: fixed; inset: 0 0 0 auto; width: min(84vw, 340px);
    flex-direction: column; align-items: flex-start; gap: .3rem;
    padding: 6.5rem 2rem 2rem; background: var(--night);
    transform: translateX(100%); transition: transform .45s var(--ease);
    box-shadow: -10px 0 50px -18px rgba(0,0,0,.6);
  }
  .nav-menu.open { transform: none; }
  .nav-menu a { mix-blend-mode: normal; display: block; padding: .6rem 0; font-size: 1.15rem; }
  .nav-link-cta { margin-top: .6rem; }
  .conviction-illu { position: relative; right: auto; top: auto; transform: none; width: min(70%, 360px); margin: 0 0 -2rem auto; opacity: .95; }
  .conviction { display: block; }
  .conviction .quote { max-width: none; }
}

@media (max-width: 600px) {
  .situations { grid-template-columns: 1fr; }
  .cycle-steps { grid-template-columns: 1fr; }
  .case-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .reperes ul { grid-template-columns: 1fr; }
  .contact-list li { grid-template-columns: 1fr; gap: .1rem; }
  .case-illu { display: none; }   /* on évite la surcharge sur petit écran */
}

/* =================================================================
   Préférences de mouvement réduit + focus clavier
   ================================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  .hero-title .line > span { animation: none; transform: none; }
  .scroll-cue-line::after { animation: none; }
  [data-parallax] { transform: none !important; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

/* =================================================================
   J'ACCOMPAGNE — publics visés (hook « pour qui » juste après le hero)
   ================================================================= */
.accompagne { background: #fbfaf7; }
.accompagne-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.2vw, 1.8rem); margin-top: clamp(2rem, 4vw, 3.4rem);
}
.aud-card {
  background: #fff; border: 1px solid var(--line); border-radius: 6px;
  padding: clamp(1.5rem, 2.4vw, 2.1rem);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s var(--ease);
}
.aud-card:hover { transform: translateY(-6px); box-shadow: 0 26px 50px -32px rgba(44,48,50,.3); border-color: var(--cream-dk); }
.aud-ico { width: 46px; height: 46px; color: var(--gold); margin-bottom: 1.1rem; }
.aud-ico svg { width: 100%; height: 100%; display: block; }
.aud-card h3 { font-family: var(--serif); color: var(--teal); font-size: 1.55rem; margin-bottom: .3rem; }
.aud-card p { margin: 0; color: var(--grey); font-size: 1.02rem; line-height: 1.5; }

/* =================================================================
   QUELQUES RÉALISATIONS — preuve concrète immédiate
   ================================================================= */
.realisations { background: #ffffff; }
.real-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: clamp(1.2rem, 2.4vw, 2rem); margin-top: clamp(2rem, 4vw, 3.4rem);
}
.real-card {
  display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.real-card:hover { transform: translateY(-7px); box-shadow: 0 32px 58px -34px rgba(44,48,50,.42); }
.real-media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--ink); }
.real-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.real-card:hover .real-media img { transform: scale(1.05); }
.real-ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--teal) 0%, #0f2230 60%, var(--ink) 100%); }
.real-ph img { width: 44%; max-width: 150px; opacity: .55; filter: brightness(0) invert(1); }
.real-body { display: flex; flex-direction: column; flex: 1; padding: clamp(1.3rem, 2vw, 1.7rem); }
.real-tag { font-family: var(--sans); font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  font-size: .68rem; color: var(--gold-dk); margin: 0 0 .45rem; }
.real-card h3 { font-family: var(--serif); color: var(--teal); font-size: 1.55rem; line-height: 1.05; margin-bottom: .45rem; }
.real-card p { margin: 0 0 1.2rem; color: var(--grey); font-size: .98rem; line-height: 1.45; }
.real-link {
  margin-top: auto; align-self: flex-start; font-family: var(--sans); font-weight: 600;
  letter-spacing: .03em; font-size: .92rem; color: var(--teal);
  border-bottom: 1px solid rgba(23,106,144,.4); padding-bottom: 2px;
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.real-link::after { content: " →"; }
.real-link:hover { color: var(--gold-dk); border-color: var(--gold-dk); }

/* =================================================================
   BANDEAU CTA (avant le contact)
   ================================================================= */
.cta-band { background: var(--teal); color: #fff; text-align: center; padding-block: clamp(3.5rem, 7vw, 6rem); }
.cta-band h2 { font-family: var(--serif); font-weight: 500; color: #fff;
  font-size: clamp(1.8rem, 3.6vw, 3rem); line-height: 1.14; max-width: 24ch; margin: 0 auto 1.9rem; }
.cta-band .btn-primary { background: var(--gold); border-color: var(--gold); }
.cta-band .btn-primary:hover { background: #fff; color: var(--teal) !important; border-color: #fff; }

/* cascades douces */
.aud-card:nth-child(2),.real-card:nth-child(2){transition-delay:.05s}
.aud-card:nth-child(3),.real-card:nth-child(3){transition-delay:.1s}
.aud-card:nth-child(4),.real-card:nth-child(4){transition-delay:.15s}
.aud-card:nth-child(5),.real-card:nth-child(5){transition-delay:.2s}
.aud-card:nth-child(6){transition-delay:.25s}

/* Responsive des nouvelles sections */
@media (max-width: 900px) { .accompagne-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .accompagne-grid { grid-template-columns: 1fr; } }

/* Bouton d'appel à l'action dans le hero */
.hero-cta { margin-top: 2.2rem; }

/* =================================================================
   RÉFÉRENCES / CONFIANCE
   ================================================================= */
.confiance { background: #ffffff; }

/* Mur de logos « Ils me font confiance » — monochromes sur fond blanc, espacés */
.logo-strip {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: clamp(2rem, 4.5vw, 4.5rem);
  margin-top: clamp(2.2rem, 4.5vw, 3.4rem);
}
.logo-strip li { display: flex; align-items: center; justify-content: center; }
.logo-strip img {
  height: 60px; width: auto; max-width: 165px; object-fit: contain;
  filter: grayscale(1); opacity: .82;
}
/* Shaka Nautique : logo clair par nature → on l'assombrit pour l'homogénéité */
.logo-strip img[alt="Shaka Nautique"] { filter: grayscale(1) brightness(.55) contrast(1.2); }
@media (max-width: 600px) { .logo-strip { gap: 1.8rem 2.6rem; } .logo-strip img { height: 46px; } }
