/* Fichier css/fin.css · chargé par : toutes les pages sauf assistant */
/* IAI v8 — fin de page : Clients, Position → Équipe, pied de page animé */

/* ================= CLIENTS ================= */
.cl { position: relative; z-index: 4; background: var(--bg); }
.cl__stick { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.cl__bg { position: absolute; inset: 0; -webkit-mask: linear-gradient(180deg, transparent, #000 16%, #000 62%, transparent 96%); mask: linear-gradient(180deg, transparent, #000 16%, #000 62%, transparent 96%); background: radial-gradient(42% 46% at 50% 50%, rgb(var(--space-rgb) / .9), transparent 70%), radial-gradient(70% 50% at 50% 100%, rgb(var(--acc-rgb) / .1), transparent 70%); }
.cl__gl { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.cl__head { position: absolute; z-index: 3; left: var(--gutter); top: 128px; max-width: 360px; opacity: calc(.35 + .65 * var(--hud, 0)); }
.cl__title { margin: 6px 0 14px; font-size: clamp(2rem, 1.2rem + 2.4vw, 3.6rem); line-height: .98; }
.cl__lead { color: var(--muted); font-size: .95rem; line-height: 1.5; max-width: 30ch; margin: 0; }
.cl__hud { position: absolute; z-index: 3; right: calc(var(--gutter) + 40px); top: 200px; display: grid; justify-items: end; gap: 8px; opacity: var(--hud, 0); }
.cl__hud b { color: var(--action); font-weight: 600; }
.cl__name { font-family: inherit; font-size: clamp(1.1rem, .8rem + 1vw, 1.6rem); letter-spacing: -.01em; text-transform: none; color: var(--text); }
.cl__name.is-in { animation: clName .6s var(--ease) both; }
@keyframes clName { from { opacity: 0; transform: translateY(10px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.cl__ring { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.cl__tile { position: absolute; left: 0; top: 0; width: 128px; height: 46px; padding: 0; border: 0; background: none; cursor: pointer; transform-origin: 50% 50%; will-change: transform, opacity; pointer-events: auto; border-radius: 8px; }
.cl__tile img { width: 100%; height: 100%; object-fit: contain; display: block; opacity: .75; transition: opacity .4s, filter .4s; }
.cl__tile:hover img, .cl__tile:focus-visible img { opacity: 1; }
.cl__tile.is-front img { opacity: 1; filter: drop-shadow(0 0 10px rgb(var(--acc-rgb) / .7)); }
.cl__tile::after { content: ""; position: absolute; left: 50%; bottom: -14px; width: 0; height: 2px; border-radius: 2px; background: var(--action); box-shadow: 0 0 10px var(--action); transform: translateX(-50%); transition: width .5s var(--ease); }
.cl__tile.is-front::after { width: 46px; }

/* ================= POSITION : plus rapide, puis voile clair ================= */
.stance__reveal { position: absolute; inset: 0; z-index: 5; pointer-events: none; background: var(--bg); clip-path: circle(var(--rv, 0%) at 50% var(--ry, 30%)); }

/* ================= ÉQUIPE : une IA, dix spécialistes ================= */
.crew { position: relative; z-index: 4; background: var(--bg); }
.crew__stick { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  background: radial-gradient(45% 55% at 55% 56%, rgb(255 255 255 / .2), transparent 70%); }
.crew__links { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.crew__links line { stroke: rgb(var(--text-rgb) / .28); stroke-width: 1; stroke-dasharray: 3 7; animation: crewFlow 1.6s linear infinite; }
@keyframes crewFlow { to { stroke-dashoffset: -20; } }
.crew__gl { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.crew__labs { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.crew__lab { position: absolute; left: 0; top: 0; padding: 4px 8px; border: 0; border-radius: 99px; background: none; color: var(--text); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; pointer-events: auto; white-space: nowrap; will-change: transform, opacity; }
.crew__lab:hover, .crew__lab:focus-visible { background: rgb(var(--text-rgb)); color: rgb(var(--on-acc-rgb)); }
.crew__head { position: absolute; z-index: 4; left: var(--gutter); top: 118px; width: min(420px, 30vw); }
.crew__title { margin: 8px 0 14px; font-size: clamp(2rem, 1.1rem + 2.3vw, 3.5rem); line-height: .96; }
.crew__lead { color: var(--muted); line-height: 1.55; margin: 0; max-width: 34ch; }
.crew__focus { position: absolute; z-index: 4; left: var(--gutter); top: 50%; transform: translateY(-38%); width: min(560px, 44vw); opacity: 0; }
.crew__ft { color: rgb(var(--on-acc-rgb)); font-weight: 600; }
.crew__big { margin: 0; white-space: nowrap; font-size: clamp(3.2rem, 1.4rem + 5.6vw, 8rem); font-weight: 700; letter-spacing: -.06em; line-height: .86; color: var(--text); }
.crew__role { margin: 16px 0 8px; font-size: clamp(1rem, .8rem + .5vw, 1.3rem); font-weight: 650; color: var(--text); }
.crew__desc { margin: 0; color: var(--muted); line-height: 1.5; max-width: 36ch; }
.crew__focus.is-in .crew__big { animation: crewBig .8s cubic-bezier(.2, .8, .2, 1) both; }
.crew__focus.is-in :is(.crew__fk, .crew__role, .crew__desc) { animation: crewUp .7s var(--ease) both; }
.crew__focus.is-in .crew__role { animation-delay: .1s; } .crew__focus.is-in .crew__desc { animation-delay: .18s; }
@keyframes crewBig { from { opacity: 0; transform: translateY(30%); clip-path: inset(-10% -60% 100% 0); } to { opacity: 1; transform: none; clip-path: inset(-10% -60% -10% 0); } }
@keyframes crewUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.crew__go { position: absolute; z-index: 4; right: var(--gutter); bottom: 9vh; }
.crew__bar { position: absolute; z-index: 4; left: 50%; bottom: 5vh; width: min(320px, 50vw); height: 2px; transform: translateX(-50%); background: rgb(var(--text-rgb) / .16); border-radius: 2px; overflow: hidden; }
.crew__bar i { position: absolute; inset: 0; background: rgb(var(--text-rgb)); transform-origin: 0 50%; transform: scaleX(0); }
@media (prefers-reduced-motion: reduce) { .crew__links line { animation: none; } .crew__focus.is-in * { animation: none !important; } }

/* ================= PIED DE PAGE ================= */
.ft { isolation: isolate; padding-top: 140px; }
.ft__gl { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.ft__veil { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, var(--bg) 0%, rgb(var(--bg-rgb) / .55) 22%, rgb(var(--bg-rgb) / .15) 55%, rgb(var(--bg-rgb) / .35) 100%); }
.ft .wrap { position: relative; }
.ft__cta { padding-bottom: 110px; display: grid; justify-items: start; }
.ft__big { margin: 10px 0 22px; font-size: clamp(3rem, 1.4rem + 6.4vw, 8.4rem); font-weight: 700; line-height: .9; letter-spacing: -.055em; }
.ft__lead { color: var(--muted); max-width: 44ch; line-height: 1.55; margin: 0 0 34px; font-size: 1.05rem; }
.ft__go { box-shadow: 0 0 0 0 rgb(var(--acc-rgb) / .5); animation: ftPing 2.6s infinite; }
@keyframes ftPing { 0% { box-shadow: 0 0 0 0 rgb(var(--acc-rgb) / .45); } 70%, 100% { box-shadow: 0 0 0 22px rgb(var(--acc-rgb) / 0); } }
.ft__top, .ft__grid, .ft__bottom { position: relative; }
.ft__word { position: relative; background: linear-gradient(100deg, rgb(var(--text-rgb) / .1) 35%, rgb(var(--acc-rgb) / .85) 50%, rgb(var(--text-rgb) / .1) 65%) 0 0 / 260% 100%;
  -webkit-background-clip: text; background-clip: text; animation: ftSweep 6s cubic-bezier(.6, 0, .4, 1) infinite;
  -webkit-mask: linear-gradient(180deg, #000 30%, transparent 92%); mask: linear-gradient(180deg, #000 30%, transparent 92%); }
@keyframes ftSweep { 0% { background-position: 100% 0; } 60%, 100% { background-position: 0% 0; } }
@media (max-width: 900px) {
  .ft { padding-top: 96px; }
  .ft__cta { padding-bottom: 70px; }
  .ft__big { font-size: 2.6rem; }
}
@media (prefers-reduced-motion: reduce) { .ft__word, .ft__go { animation: none; } }


/* ================= CORRECTIONS DE L'AUDIT (lisibilité, accessibilité) — la mise en page par format est dans responsive.css ================= */
/* lien d'évitement : visible seulement au clavier */
.skip { position: fixed; left: 12px; top: -60px; z-index: 10001; padding: 12px 18px; border-radius: 10px; background: var(--action); color: var(--on-action); font-weight: 700; transition: top .2s; }
.skip:focus { top: 12px; }
/* contrastes */
.hero.dim-a .hero__q--a, .hero.dim-b .hero__q--b { color: rgb(var(--text-rgb) / .48); }
.cl__head { opacity: calc(.7 + .3 * var(--hud, 0)); }
.crew__ft { color: var(--text); text-decoration: underline; text-decoration-color: rgb(var(--on-acc-rgb)); text-decoration-thickness: 2px; text-underline-offset: 3px; }

html:not([data-da]) .crew .eyebrow, html:not([data-da]) .crew__lead, html:not([data-da]) .crew__fk { color: rgb(30 66 70); }
/* zones cliquables assez grandes au doigt */
.ft__bottom a, .ft__grid a { display: inline-flex; align-items: center; min-height: 36px; }
.svc__back, .svc__skip, .pj3__back, .pj3__skip { min-height: 44px; padding-inline: 14px; }
/* bouton haut de page : seulement une fois qu'on a défilé */
html.is-ready .to-top { opacity: var(--tt, 0); pointer-events: var(--ttp, none); }


/* équipe : le bouton suit le texte d'intro (plus de collision avec la constellation ni la bulle) */
.crew__head .crew__go { position: static; margin-top: 22px; }
