/* ==========================================================================
   LVNO — feuille de style du site
   Fond encre, halos dégradés, cartes en verre dépoli, grain fin.
   ========================================================================== */

body{
  --sans:    "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, sans-serif;
  --display: "Space Grotesk", var(--sans);

  --glass:        rgba(255,255,255,.045);
  --glass-line:   rgba(255,255,255,.10);
  --glass-line-2: rgba(107,190,172,.32);

  background:var(--ink);
  color:var(--on-dark);
  font-family:var(--sans);
  font-size:17px; font-weight:400; line-height:1.68; letter-spacing:-.004em;
}

/* ------------------------------------------------- Halos et grain de fond */
.aura{
  position:fixed; inset:0; z-index:0; pointer-events:none;
  background:
    radial-gradient(58vw 46vw at 74% -6%,  rgba(98,177,161,.30), transparent 62%),
    radial-gradient(46vw 40vw at 8%  22%, rgba(98,177,161,.14), transparent 66%),
    radial-gradient(60vw 50vw at 50% 108%, rgba(98,177,161,.16), transparent 64%);
  animation:breathe 20s ease-in-out infinite alternate;
}
@keyframes breathe{ from{ opacity:.85; transform:scale(1); } to{ opacity:1; transform:scale(1.06); } }

.grain{
  position:fixed; inset:0; z-index:1; pointer-events:none; opacity:.5;
  mix-blend-mode:overlay;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.42'/%3E%3C/svg%3E");
}

main,.hdr,.ftr{ position:relative; z-index:2; }

.progress{ position:fixed; top:0; left:0; right:0; height:2px; z-index:80; pointer-events:none; }
.progress::after{
  content:""; display:block; height:100%;
  background:linear-gradient(90deg, var(--brand-700), var(--brand));
  transform:scaleX(var(--p,0)); transform-origin:left;
}

/* ------------------------------------------------------- En-tête en pilule */
.hdr{ position:fixed; inset:14px 0 auto 0; z-index:70; padding-inline:var(--gutter); }
.hdr-pill{
  display:flex; align-items:center; gap:26px;
  max-width:var(--wrap); margin-inline:auto;
  padding:10px 12px 10px 20px; border-radius:999px;
  background:rgba(10,31,28,.42); border:1px solid transparent;
  transition:background .5s var(--ease), border-color .5s var(--ease),
             backdrop-filter .5s var(--ease), box-shadow .5s var(--ease);
}
.hdr.is-stuck .hdr-pill{
  background:rgba(10,31,28,.62); border-color:var(--glass-line);
  backdrop-filter:saturate(160%) blur(18px); -webkit-backdrop-filter:saturate(160%) blur(18px);
  box-shadow:0 20px 50px -34px rgba(0,0,0,.9);
}

.wordmark{ display:inline-flex; align-items:center; gap:11px; margin-right:auto; color:var(--brand); }
.wordmark .mark{ filter:drop-shadow(0 0 12px rgba(98,177,161,.5)); }
.wordmark-txt{
  font-family:var(--display); font-size:.95rem; font-weight:500;
  letter-spacing:.32em; text-indent:.32em; color:#fff;
}

.nav ul{ display:flex; gap:28px; }
.nav a{
  font-size:.9rem; color:rgba(255,255,255,.66); padding:6px 0; position:relative;
  transition:color .35s var(--ease);
}
.nav a::after{
  content:""; position:absolute; left:0; right:0; bottom:-1px; height:1px;
  background:var(--brand); transform:scaleX(0); transform-origin:left;
  transition:transform .45s var(--ease);
}
.nav a:hover{ color:#fff; }
.nav a:hover::after,.nav a.is-active::after{ transform:scaleX(1); }
.nav a.is-active{ color:#fff; }

/* --------------------------------------------------- Sélecteur de langue */
.lang{
  display:flex; align-items:center; gap:2px; margin:0; padding:3px; flex:none;
  border-radius:999px; background:rgba(255,255,255,.05); border:1px solid var(--glass-line);
  font-size:.76rem; font-weight:500; letter-spacing:.06em;
}
.lang a,.lang .lang-on{ padding:5px 11px; border-radius:999px; line-height:1.2; }
.lang .lang-on{ background:var(--brand); color:var(--on-brand); }
.lang a{ color:rgba(255,255,255,.58); transition:color .3s var(--ease), background .3s var(--ease); }
.lang a:hover{ color:#fff; background:rgba(255,255,255,.07); }

.burger{
  display:none; width:40px; height:40px; padding:0; position:relative;
  background:none; border:1px solid var(--glass-line); border-radius:999px; cursor:pointer;
}
.burger span{
  position:absolute; left:11px; right:11px; height:1px; background:#fff;
  transition:transform .35s var(--ease);
}
.burger span:first-child{ top:16px; }
.burger span:last-child{ bottom:16px; }
.burger[aria-expanded="true"] span:first-child{ transform:translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child{ transform:translateY(-4px) rotate(-45deg); }

/* ------------------------------------------------------------- Boutons */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:.5em;
  padding:14px 28px; border:1px solid transparent; border-radius:999px;
  font-size:.84rem; font-weight:500; letter-spacing:.01em; cursor:pointer;
  transition:background .4s var(--ease), color .4s var(--ease),
             transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
/* Le vert du logo n'accepte pas de blanc lisible : texte encre. */
.btn-solid{ background:var(--brand); color:var(--on-brand); font-weight:500; box-shadow:0 0 0 0 rgba(98,177,161,.5); }
.btn-solid:hover{ background:#78C0B1; transform:translateY(-2px); box-shadow:0 16px 44px -18px rgba(98,177,161,.75); }
.btn-glass{ background:var(--glass); color:#fff; border-color:var(--glass-line);
  backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px); }
.btn-glass:hover{ border-color:var(--glass-line-2); transform:translateY(-2px); }
.btn-block{ width:100%; }
.btn[disabled]{ opacity:.55; cursor:progress; transform:none; }
.hdr-cta{ padding:11px 22px; font-size:.82rem; }
.btn-sm{ padding:11px 20px; font-size:.84rem; }
.ico{ width:16px; height:16px; flex:none; }

/* ---------------------------------------------------------------- Hero */
.hero{
  position:relative; min-height:100svh; display:grid; place-items:center;
  padding:170px 0 90px; text-align:center; overflow:hidden;
}
.hero-in{ position:relative; z-index:2; }
.hero-mark{
  position:absolute; z-index:0; bottom:-24vh; left:50%;
  width:min(96vw,1120px); transform:translateX(-50%);
  color:var(--brand); opacity:.07; pointer-events:none;
}

.badge{
  display:inline-flex; align-items:center; gap:9px; margin:0 auto 30px;
  padding:8px 17px 8px 13px; border-radius:999px;
  background:var(--glass); border:1px solid var(--glass-line);
  backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px);
  font-size:.8rem; letter-spacing:.01em; color:rgba(255,255,255,.8);
}
/* Le sigle plutôt qu'un point pulsé : la pastille n'annonce plus un statut. */
.badge .mark{ width:13px; color:var(--brand); flex:none; }

.display{
  font-family:var(--display); font-weight:400;
  font-size:clamp(2.7rem,7.4vw,5.6rem); line-height:1.02; letter-spacing:-.035em;
  color:#fff; margin:0 auto 26px; max-width:19ch;
}
.grad{
  background:linear-gradient(96deg,#8FCDBF 0%,#62B1A1 42%,#CFE7E0 100%);
  -webkit-background-clip:text; background-clip:text;
  -webkit-text-fill-color:transparent; color:transparent;
}
.lede{ font-size:clamp(1.02rem,1.5vw,1.16rem); color:rgba(255,255,255,.7); max-width:56ch; margin:0 auto 36px; }
.actions{ display:flex; justify-content:center; gap:12px; flex-wrap:wrap; }

.chips{ display:flex; justify-content:center; gap:9px; flex-wrap:wrap; margin-top:44px; }
.chips li{
  padding:7px 15px; border-radius:999px;
  background:rgba(255,255,255,.035); border:1px solid var(--glass-line);
  font-size:.76rem; letter-spacing:.09em; text-transform:uppercase; color:rgba(255,255,255,.62);
}

/* ---------------------------------------------- Repères sous le hero */
.stats-band{ position:relative; z-index:2; padding:0 0 clamp(16px,3vw,34px); }
.stats{
  display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1px;
  background:var(--glass-line);
  border:1px solid var(--glass-line); border-radius:20px; overflow:hidden;
}
.stats li{
  display:grid; gap:6px; align-content:start;
  padding:26px 26px 24px; background:rgba(10,31,28,.46);
  backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px);
  transition:background .45s var(--ease);
}
.stats li:hover{ background:rgba(98,177,161,.07); }
.stats strong{
  font-family:var(--display); font-weight:400;
  font-size:clamp(1.9rem,3.3vw,2.55rem); line-height:1; letter-spacing:-.035em; color:#fff;
}
/* Cible le libellé seul : le <span> du compteur vit dans <strong>. */
.stat-lbl{ font-size:.85rem; line-height:1.45; color:rgba(255,255,255,.55); }
@media (max-width:760px){ .stats{ grid-template-columns:1fr; } }

/* ------------------------------------------------------------ Sections */
.sec{ padding:clamp(80px,10vw,140px) 0; }
.tag{ margin:0 0 16px; font-size:.74rem; font-weight:500; letter-spacing:.22em; text-transform:uppercase; color:var(--brand); }
.h2{
  font-family:var(--display); font-weight:400;
  font-size:clamp(1.95rem,4.2vw,3.1rem); line-height:1.08; letter-spacing:-.03em; color:#fff; margin:0;
}
.sec-head{ max-width:46ch; margin-bottom:clamp(44px,5.5vw,72px); }
.sec-lede{ margin:20px 0 0; color:rgba(255,255,255,.62); max-width:50ch; }

/* Surface en verre, réutilisée par les tuiles et le formulaire */
.glass{
  position:relative;
  background:var(--glass); border:1px solid var(--glass-line); border-radius:20px;
  backdrop-filter:blur(14px) saturate(150%); -webkit-backdrop-filter:blur(14px) saturate(150%);
}
.glass::before{
  content:""; position:absolute; inset:0; border-radius:inherit; pointer-events:none;
  background:linear-gradient(180deg, rgba(255,255,255,.07), transparent 42%);
}

/* Grille de services + halo au curseur */
.bento{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.tile{ padding:34px 30px 36px; overflow:hidden; transition:border-color .45s var(--ease), transform .45s var(--ease); }
.tile::after{
  content:""; position:absolute; inset:0; border-radius:inherit; pointer-events:none;
  opacity:0; transition:opacity .4s var(--ease);
  background:radial-gradient(240px circle at var(--mx,50%) var(--my,50%), rgba(98,177,161,.16), transparent 70%);
}
.tile:hover{ border-color:var(--glass-line-2); transform:translateY(-3px); }
.tile:hover::after{ opacity:1; }
.tile-n{
  display:block; margin-bottom:22px;
  font-family:var(--display); font-size:.86rem; font-weight:500;
  letter-spacing:.16em; color:var(--brand);
}
.tile h3{
  font-family:var(--display); font-size:1.44rem; font-weight:400;
  letter-spacing:-.02em; line-height:1.2; color:#fff; margin:0 0 12px;
}
.tile p{ margin:0; font-size:.95rem; color:rgba(255,255,255,.62); }

/* Méthode : jalonnier vertical */
.stepper{ display:grid; gap:0; max-width:760px; }
.stp{ display:grid; grid-template-columns:52px 1fr; gap:24px; padding-bottom:36px; position:relative; }
.stp:not(:last-child)::before{
  content:""; position:absolute; left:25px; top:44px; bottom:0; width:1px;
  background:linear-gradient(180deg, var(--glass-line-2), transparent);
}
.stp-n{
  width:50px; height:50px; display:grid; place-items:center; border-radius:50%;
  background:rgba(98,177,161,.10); border:1px solid var(--glass-line-2);
  font-family:var(--display); font-size:.95rem; color:var(--brand);
  box-shadow:0 0 26px -10px rgba(98,177,161,.5);
}
.stp h3{ font-family:var(--display); font-size:1.24rem; font-weight:400; letter-spacing:-.02em; color:#fff; margin:11px 0 8px; }
.stp p{ margin:0; font-size:.95rem; color:rgba(255,255,255,.62); }

/* À propos : portrait à gauche, texte à droite */
.about-grid{
  display:grid; grid-template-columns:minmax(0,.58fr) minmax(0,1fr);
  gap:clamp(32px,5vw,72px);
  /* stretch plutôt que center : le portrait prend la hauteur du texte, donc
     les deux colonnes s'alignent en haut et en bas à toutes les largeurs. */
  align-items:stretch;
}
.portrait{ margin:0; max-width:390px; }
.portrait img{
  width:100%; height:100%; min-height:360px;
  object-fit:cover; object-position:50% 16%;
  border-radius:24px; border:1px solid var(--glass-line);
  box-shadow:0 40px 90px -50px rgba(0,0,0,.9), 0 0 70px -26px rgba(98,177,161,.32);
}
.about-text p{ color:rgba(255,255,255,.7); max-width:54ch; }
.about-text strong{ color:#fff; font-weight:500; }
.about-text .h2{ margin-bottom:22px; }
.about-text .btn{ margin-top:6px; }

/* Contact */
.contact-grid{ display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.05fr); gap:clamp(40px,5.5vw,84px); align-items:start; }
.meta{ margin-top:36px; padding-top:28px; border-top:1px solid var(--glass-line); display:grid; gap:19px; font-size:.95rem; color:rgba(255,255,255,.78); }
.meta li{ display:grid; gap:3px; }
.meta li>span{ font-size:.71rem; font-weight:500; letter-spacing:.2em; text-transform:uppercase; color:var(--brand); }
.meta a{ border-bottom:1px solid var(--glass-line-2); }

.form{ padding:clamp(24px,3.4vw,36px); }
.f{ display:grid; gap:7px; margin-bottom:18px; }
.f2{ display:grid; grid-template-columns:1fr 1fr; gap:0 16px; }
.f label{ font-size:.78rem; font-weight:500; letter-spacing:.03em; color:rgba(255,255,255,.72); }
.f label em{ font-style:normal; color:rgba(255,255,255,.42); }
.f input,.f textarea,.f select{
  width:100%; font:inherit; font-size:.97rem; color:#fff;
  background:rgba(0,0,0,.22); border:1px solid var(--glass-line);
  border-radius:12px; padding:13px 15px;
  transition:border-color .35s var(--ease), background .35s var(--ease), box-shadow .35s var(--ease);
}
.f textarea{ resize:vertical; min-height:110px; line-height:1.6; }
.f input::placeholder,.f textarea::placeholder{ color:rgba(255,255,255,.34); }
.f input:hover,.f textarea:hover,.f select:hover{ border-color:rgba(255,255,255,.2); }
.f input:focus,.f textarea:focus,.f select:focus{
  outline:none; border-color:var(--brand); background:rgba(0,0,0,.3);
  box-shadow:0 0 0 3px rgba(98,177,161,.16);
}
.f [aria-invalid="true"]{ border-color:#D98A72; box-shadow:0 0 0 3px rgba(217,138,114,.14); }
.sel{ position:relative; }
.sel::after{
  content:""; position:absolute; right:16px; top:47%; width:7px; height:7px;
  border-right:1.5px solid rgba(255,255,255,.5); border-bottom:1.5px solid rgba(255,255,255,.5);
  transform:translateY(-50%) rotate(45deg); pointer-events:none;
}
.f select{ appearance:none; -webkit-appearance:none; padding-right:38px; }
.f select option{ background:var(--ink-2); color:#fff; }
.consent{ display:flex; gap:11px; align-items:flex-start; margin:6px 0 24px; cursor:pointer; }
.consent input{ margin-top:3px; width:16px; height:16px; flex:none; accent-color:var(--brand); }
.consent span{ font-size:.87rem; color:rgba(255,255,255,.6); line-height:1.55; }
.form-status{ margin:14px 0 0; font-size:.9rem; min-height:1.4em; }
.form-status.is-ok{ color:var(--brand); }
.form-status.is-error{ color:#E6A38C; }
.form-note{ margin:16px 0 0; font-size:.79rem; line-height:1.55; color:rgba(255,255,255,.4); }
.form-note a{ color:rgba(255,255,255,.6); border-bottom:1px solid var(--glass-line); }
.form-note a:hover{ color:var(--brand); }
.form-sent .f,.form-sent .f2,.form-sent .consent,.form-sent [data-submit]{ display:none; }

/* ------------------------------------------ Bouton de remontée */
.to-top{
  position:fixed; z-index:60;
  right:clamp(16px,3vw,28px); bottom:clamp(16px,3vw,28px);
  width:48px; height:48px; display:grid; place-items:center;
  border-radius:50%; cursor:pointer;
  background:rgba(10,31,28,.66); border:1px solid var(--glass-line); color:#fff;
  backdrop-filter:blur(14px) saturate(150%); -webkit-backdrop-filter:blur(14px) saturate(150%);
  box-shadow:0 18px 40px -26px rgba(0,0,0,.9);
  /* Masqué mais présent : pointer-events le retire du survol et du clic. */
  opacity:0; transform:translateY(14px) scale(.92); pointer-events:none;
  transition:opacity .45s var(--ease), transform .45s var(--ease),
             background .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease);
}
.to-top.is-shown{ opacity:1; transform:none; pointer-events:auto; }
.to-top svg{ width:18px; height:18px; }
.to-top:hover{
  background:var(--brand); border-color:var(--brand); color:var(--on-brand);
  transform:translateY(-3px);
}
@media (max-width:680px){
  .to-top{ width:44px; height:44px; }
  .to-top svg{ width:16px; height:16px; }
}

/* ------------------------------------------------- Pages légales */
.legal{ padding:clamp(118px,13vw,168px) 0 clamp(56px,7vw,96px); }
.legal-in{ max-width:760px; }
.legal-title{
  font-family:var(--display); font-weight:400;
  font-size:clamp(2rem,4.6vw,3.05rem); line-height:1.06; letter-spacing:-.035em;
  color:#fff; margin:0 0 18px;
}
.legal-lede{
  margin:0 0 clamp(34px,5vw,54px); padding-bottom:clamp(26px,4vw,38px);
  border-bottom:1px solid var(--glass-line);
  font-size:.95rem; color:rgba(255,255,255,.55);
}
.legal section{ margin-bottom:clamp(28px,4vw,42px); }
.legal section:last-child{ margin-bottom:0; }
.legal h2{
  font-family:var(--display); font-weight:400; font-size:1.26rem;
  letter-spacing:-.025em; color:var(--brand); margin:0 0 12px;
}
.legal p{ font-size:.97rem; color:rgba(255,255,255,.7); }
.legal p:last-child{ margin-bottom:0; }
.legal strong{ color:#fff; font-weight:500; }
.legal a{ color:#fff; border-bottom:1px solid var(--glass-line-2); }
.legal a:hover{ color:var(--brand); }

/* --------------------------------------------------------------- Pied */
.ftr{ border-top:1px solid var(--glass-line); padding:clamp(52px,6vw,80px) 0 38px; }
.ftr-lockup{ display:flex; align-items:center; gap:22px; padding-bottom:38px; border-bottom:1px solid var(--glass-line); }
.ftr-lockup .mark{ width:clamp(52px,7vw,74px); color:var(--brand); filter:drop-shadow(0 0 22px rgba(98,177,161,.45)); }
.ftr-word{
  display:block; font-family:var(--display); font-weight:300;
  font-size:clamp(2rem,5.4vw,3.4rem); line-height:1;
  letter-spacing:.2em; text-indent:.2em; color:#fff;
}
.ftr-base{ display:block; margin-top:8px; font-size:.95rem; letter-spacing:.02em; color:var(--brand); }
.ftr-bottom{ display:flex; justify-content:space-between; align-items:center; gap:20px; flex-wrap:wrap; padding-top:24px; }
.ftr-slim{ padding-top:0; }
.ftr-nav{ display:flex; gap:12px 24px; flex-wrap:wrap; font-size:.9rem; color:rgba(255,255,255,.6); }
.ftr-nav a{ display:inline-flex; align-items:center; gap:6px; transition:color .35s var(--ease); }
.ftr-nav a:hover{ color:var(--brand); }
.ftr-legal{ margin:0; font-size:.8rem; color:rgba(255,255,255,.36); }

/* ---------------------------------------------------------- Responsive */
@media (max-width:980px){
  .contact-grid{ grid-template-columns:1fr; }
  .about-grid{ grid-template-columns:1fr; align-items:start; }
  .portrait{ max-width:320px; }
  .portrait img{ height:auto; min-height:0; aspect-ratio:4/5; }
}
@media (max-width:760px){ .bento{ grid-template-columns:1fr; } }
@media (max-width:900px){
  .nav,.hdr-cta{ display:none; }
  .burger{ display:block; }
  .hdr-pill{
    background:rgba(10,31,28,.72); border-color:var(--glass-line);
    backdrop-filter:saturate(160%) blur(18px); -webkit-backdrop-filter:saturate(160%) blur(18px);
    position:relative;
  }
  .nav.is-open{ display:block; position:absolute; top:calc(100% + 10px); left:0; right:0;
    background:rgba(10,31,28,.94); border:1px solid var(--glass-line); border-radius:18px;
    backdrop-filter:blur(18px); -webkit-backdrop-filter:blur(18px);
    box-shadow:0 30px 60px -40px rgba(0,0,0,.95); }
  .nav.is-open ul{ flex-direction:column; gap:0; padding:6px 20px 14px; }
  .nav.is-open li+li{ border-top:1px solid var(--glass-line); }
  .nav.is-open a{ display:block; padding:14px 0; font-size:1rem; color:#fff; }
  body.nav-open{ overflow:hidden; }
}
@media (max-width:680px){
  body{ font-size:16px; }
  .stats{ grid-template-columns:1fr; border-radius:16px; }
  .stats li{ padding:20px 22px; }
  .lang{ font-size:.72rem; }
  .lang a,.lang .lang-on{ padding:5px 9px; }
  .hero{ min-height:auto; padding:140px 0 70px; }
  .btn{ width:100%; }
  .f2{ grid-template-columns:1fr; gap:0; }
  .grain{ display:none; }
  .ftr-lockup{ flex-direction:column; align-items:flex-start; gap:16px; }
}

/* ==========================================================================
   MOUVEMENT — trois couches combinées
     A · révélation typographique du titre et des titres de section
     B · animations liées au défilement, natives et sans JavaScript
     D · signature de marque à l'ouverture, puis transitions entre pages

   Principe de sûreté : la révélation du hero est pilotée par des animations
   CSS à retard fixe, jamais par une classe posée en JavaScript. Un script
   qui échoue ne peut donc pas laisser le titre invisible.
   ========================================================================== */

/* Transitions fondues d'une page à l'autre — FR/EN et pages légales */
@view-transition{ navigation:auto; }

/* ------------------------------------------- A · révélation typographique */

.display .wr,.h2 .wr{
  display:inline-block; overflow:hidden;
  vertical-align:bottom;
  /* compense le rognage des jambages par overflow:hidden */
  padding-bottom:.12em; margin-bottom:-.12em;
}

.display .wi{
  display:inline-block;
  animation:word-in 1.05s var(--ease-out) both;
  animation-delay:calc(var(--i,0) * .095s + var(--start,.14s));
}
@keyframes word-in{
  from{ transform:translateY(118%); opacity:0; filter:blur(10px); }
  to  { transform:none; opacity:1; filter:none; }
}

/* Un seul dégradé réparti sur les deux mots, via background-position */
.display .g{
  background-image:linear-gradient(96deg,#8FCDBF 0%,#62B1A1 45%,#CFE7E0 100%);
  background-size:220% 100%;
  -webkit-background-clip:text; background-clip:text;
  color:transparent; -webkit-text-fill-color:transparent;
  animation:word-in 1.05s var(--ease-out) both,
            sweep 1.3s var(--ease-out) both;
}
/* Le balayage reste dans la plage 0-100 % : au-delà, l'image de fond se
   carrellerait et laisserait une couture visible en travers des lettres. */
.display .g1{
  background-position:0% 0;
  animation-delay:calc(var(--i) * .095s + var(--start,.14s)), calc(var(--start,.14s) + .48s);
}
.display .g2{
  background-position:100% 0;
  animation-delay:calc(var(--i) * .095s + var(--start,.14s)), calc(var(--start,.14s) + .56s);
}
@keyframes sweep{ from{ background-position-x:var(--bp-from); } to{ background-position-x:var(--bp-to); } }
.display .g1{ --bp-from:100%; --bp-to:0%; }
.display .g2{ --bp-from:0%;   --bp-to:100%; }

/* Titres de section : découpés par le script, donc invisibles seulement
   s'ils existent — sans JavaScript le texte s'affiche normalement. */
.h2 .wi{
  display:inline-block;
  transform:translateY(118%); opacity:0;
  transition:transform .95s var(--ease-out), opacity .7s var(--ease-out);
  transition-delay:calc(var(--i,0) * .06s);
}
.h2.is-lit .wi{ transform:none; opacity:1; }

/* --------------------------------------------------- B · défilement */

@supports (animation-timeline: view()){

  /* Ces éléments passent sous contrôle du défilement : on annule l'état
     initial des apparitions JS pour que les deux ne se marchent pas dessus. */
  .tile,.stats li,.stp,.portrait{ opacity:1; transform:none; }

  @keyframes b-rise{
    from{ opacity:0; transform:translateY(48px) scale(.955); }
    to  { opacity:1; transform:none; }
  }
  @keyframes b-slide{
    from{ opacity:0; transform:translateX(-28px); }
    to  { opacity:1; transform:none; }
  }
  /* Le sigle de fond remonte moins vite que la page */
  @keyframes b-para{
    from{ transform:translateX(-50%) translateY(0) scale(1); opacity:.07; }
    to  { transform:translateX(-50%) translateY(-26vh) scale(1.12); opacity:0; }
  }
  /* Duotone vert vers couleur pleine : adoucit l'arrivée d'une photo très
     claire sur un fond encre. */
  @keyframes b-colorize{
    from{ filter:grayscale(1) brightness(.8) sepia(.6) hue-rotate(112deg) saturate(2.8);
          transform:scale(1.06); }
    to  { filter:none; transform:none; }
  }
  @keyframes b-bar{ from{ width:0; } to{ width:100%; } }

  .tile    { animation:b-rise linear both;  animation-timeline:view(); animation-range:entry 5% entry 55%; }
  .stats li{ animation:b-rise linear both;  animation-timeline:view(); animation-range:entry 0% entry 48%; }
  .stp     { animation:b-slide linear both; animation-timeline:view(); animation-range:entry 5% entry 50%; }
  .hero-mark{ animation:b-para linear both; animation-timeline:scroll(root); animation-range:0% 65%; }
  .portrait img{ animation:b-colorize linear both; animation-timeline:view(); animation-range:entry 12% entry 78%; }

  /* La barre de progression n'a plus besoin de JavaScript */
  .progress::after{ transform:none; animation:b-bar linear both; animation-timeline:scroll(root); }
}

/* Le duotone agrandit l'image : on recadre au niveau du cadre */
.portrait{ overflow:hidden; border-radius:24px; }

/* ------------------------------------------------ D · signature de marque */

/* Posée sur <html> par un script en ligne dans le <head>, donc avant le
   premier rendu : le hero n'a jamais le temps d'apparaître puis d'être
   recouvert. Sans JavaScript la classe est absente et rien ne se déclenche. */
html.intro-pending{ overflow:hidden; }
html.intro-pending .display .wi{ --start:1.34s; }

html.intro-pending .hero-in > *:not(.display){
  animation:hero-in .85s var(--ease-out) both;
  animation-delay:calc(1.28s + var(--k,0) * .09s);
}
@keyframes hero-in{
  from{ opacity:0; transform:translateY(26px); }
  to  { opacity:1; transform:none; }
}

.intro{
  position:fixed; inset:0; z-index:300;
  display:grid; place-items:center;
  background:var(--ink);
  transition:opacity .55s var(--ease), visibility .55s;
}
.intro::before{
  content:""; position:absolute; inset:0;
  background:radial-gradient(52vw 42vw at 50% 46%, rgba(98,177,161,.24), transparent 66%);
}
.intro-in{ position:relative; display:grid; justify-items:center; gap:26px; }

.intro-mark{
  width:min(26vw,148px); color:var(--brand);
  /* Le masque se dévoile du bas vers le haut, avec un léger redressement */
  clip-path:inset(100% 0 0 0);
  filter:drop-shadow(0 0 34px rgba(98,177,161,.45));
  animation:d-build 820ms var(--ease-out) 100ms both;
  will-change:transform, clip-path;
}
@keyframes d-build{
  from{ clip-path:inset(100% 0 0 0); transform:scale(.86) rotate(-7deg); opacity:0; }
  to  { clip-path:inset(0 0 0 0);    transform:none;                    opacity:1; }
}

.intro-word{
  font-family:var(--display); font-size:.9rem; font-weight:500;
  letter-spacing:.42em; text-indent:.42em; color:rgba(255,255,255,.82);
  animation:d-fade .6s var(--ease-out) 620ms both;
}
@keyframes d-fade{ from{ opacity:0; transform:translateY(8px); } to{ opacity:1; transform:none; } }

/* Jauge de chargement : c'est elle qui donne l'impression que « ça charge » */
.intro-bar{
  width:132px; height:1px; background:rgba(255,255,255,.14); overflow:hidden;
  animation:d-fade .5s var(--ease-out) 560ms both;
}
.intro-bar i{
  display:block; height:100%; width:0; background:var(--brand);
  box-shadow:0 0 12px rgba(98,177,161,.9);
  animation:d-load 900ms cubic-bezier(.5,.05,.2,1) 180ms both;
}
@keyframes d-load{ from{ width:0; } to{ width:100%; } }

/* Sortie : le sigle rejoint exactement la place qu'il occupe dans l'en-tête,
   la cible étant mesurée par le script (variables --tx/--ty/--ts). */
.intro.is-leaving .intro-in > :not(.intro-mark){ opacity:0; transition:opacity .3s var(--ease); }
.intro.is-leaving .intro-mark{
  animation:none;
  transform:translate(var(--tx,0),var(--ty,0)) scale(var(--ts,.15));
  filter:drop-shadow(0 0 0 rgba(98,177,161,0));
  transition:transform .8s cubic-bezier(.66,0,.24,1), filter .8s ease;
}
.intro.is-done{ opacity:0; visibility:hidden; }

/* ------------------------------------------ Préférence de mouvement réduit */

@media (prefers-reduced-motion:reduce){
  .display .wi,.display .g,.h2 .wi{
    animation:none !important; transform:none !important;
    opacity:1 !important; filter:none !important;
  }
  .display .g{ -webkit-text-fill-color:transparent; }
  .intro{ display:none !important; }
  html.intro-pending{ overflow:auto; }
  html.intro-pending .hero-in > *:not(.display){ animation:none !important; opacity:1; transform:none; }
  .tile,.stats li,.stp,.portrait img,.hero-mark{ animation:none !important; }
  .portrait img{ filter:none !important; }
}
