/* Reach Adz v16 « Annoté » — L’agence (main de la maison). Loi §5.6 ; copie : docs/v16/copie/maison.md.
   Signature : l’interrupteur (CSS :has(:checked), transitions sur translate et rotate), puis le générique.
   Tout est préfixé .ag- ; les composants viennent de css/site.css (docs/v16/COMPOSANTS.md). */

/* ============================================================ 0. Le fil d’Ariane (propre à la maison) */
.ag-ariane ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0; padding: 0; font: 500 var(--fs-cartel)/1.2 var(--corps); color: var(--doux); }
.ag-ariane li { display: inline-flex; align-items: center; gap: 8px; }
.ag-ariane li + li::before { content: "›"; color: var(--ligne-2); color: var(--doux); opacity: .6; }
.ag-ariane a { display: inline-flex; align-items: center; min-height: 44px; color: var(--doux); text-decoration: none; }
.ag-ariane a:hover { color: var(--encre); text-decoration: underline; text-underline-offset: 3px; }
.ag-ariane [aria-current] { color: var(--encre); }

/* ============================================================ 1. Le héros : une phrase, un visage réel */
.ag-hero { padding-bottom: clamp(36px, 1rem + 2.4vw, 64px); overflow: clip; }   /* v23.2 · 75 → 50 px à 1440 : la table de la salle suivante se montre dans le premier écran */
.ag-hero__grille {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: clamp(24px, 2.6vw, 40px);
  grid-template-areas: "ariane ayoub" "titre ayoub" "chapo ayoub" "actions ayoub";
  grid-template-rows: auto auto auto 1fr;
}
.ag-ariane { grid-area: ariane; margin-bottom: clamp(8px, 1vw, 24px); }
.ag-hero__titre { grid-area: titre; max-width: 10.5em; word-spacing: .06em; text-wrap: balance; }
.ag-hero__l { display: block; }
.ag-hero__chapo { grid-area: chapo; margin-top: clamp(20px, 1rem + 1vw, 32px); max-width: 34em; }
.ag-hero__actions { grid-area: actions; align-self: start; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 32px; }

/* v23 · Le badge de l'agence : Ayoub (v19 : la découpe de 430 px, montrée à 190 px : nette sur les écrans 2x), sur une
   carte de badge pendue à son cordon cyan. Le cordon monte jusqu'au bord du héros (coupé par lui). La carte se balance
   autour de l'attache : une fois à l'arrivée, puis au survol (transform seul, ressort amorti). */
.ag-badge { --badge-l: 240px; grid-area: ayoub; align-self: start; justify-self: center; position: relative; display: block; width: var(--badge-l); margin: clamp(56px, 4vw, 72px) 0 0; }
.ag-badge__cordon { /* deux sangles tissées qui montent en V, puis l'attache de métal */
  position: absolute; z-index: 0; left: 50%; bottom: calc(100% - 12px); width: 0; height: 0;
}
.ag-badge__cordon::before, .ag-badge__cordon::after {
  content: ""; position: absolute; bottom: 0; width: 12px; height: 420px; border-radius: 3px;
  background: repeating-linear-gradient(180deg, rgb(255 255 255 / .22) 0 2px, transparent 2px 6px), linear-gradient(90deg, #5FE3F2, var(--cyan) 45%, #A6F6FF);
  box-shadow: 0 0 0 1px rgb(13 32 63 / .06);
}
.ag-badge__cordon::before { left: -14px; transform-origin: 50% 100%; rotate: 9deg; }
.ag-badge__cordon::after { left: 2px; transform-origin: 50% 100%; rotate: -9deg; }
.ag-badge__carte {
  position: relative; z-index: 1; display: grid; border-radius: 20px; background: var(--blanc);
  box-shadow: 0 0 0 1px var(--ligne), 0 2px 4px rgb(13 32 63 / .06), 0 34px 64px -26px rgb(13 32 63 / .42);
  transform-origin: 50% -18px;
}
.ag-badge__carte::before { /* l'attache : une pince de métal, passée dans la fente de la carte */
  content: ""; position: absolute; z-index: 2; left: 50%; top: -18px; width: 20px; height: 30px; margin-left: -10px; border-radius: 6px;
  background: linear-gradient(90deg, #A9B6CC, #EEF2F8 45%, #8D9AB1); box-shadow: 0 2px 4px rgb(13 32 63 / .3), inset 0 0 0 1px rgb(13 32 63 / .18);
}
.ag-badge__carte::after { /* le liseré cyan du bas, comme un badge d'accès */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 7px; border-radius: 0 0 20px 20px; background: var(--cyan);
}
.ag-badge__tete {
  position: relative; display: flex; align-items: center; gap: 8px; padding: 26px 16px 12px; border-radius: 20px 20px 0 0;
  background: var(--encre); color: #fff; font: 700 14px/1 var(--titre); letter-spacing: -.005em;
}
.ag-badge__tete::before { /* la fente du badge (on voit le papier au travers) */
  content: ""; position: absolute; left: 50%; top: 9px; width: 42px; height: 8px; margin-left: -21px; border-radius: 8px;
  background: var(--blanc); box-shadow: inset 0 1px 2px rgb(13 32 63 / .45);
}
.ag-badge__logo { width: 26px; height: 15px; fill: #fff; }
.ag-badge__lieu { margin-left: auto; font: 650 11px/1 var(--corps); letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); }
.ag-badge__photo {
  position: relative; display: block; height: 236px; overflow: hidden;
  background:
    radial-gradient(rgb(13 32 63 / .16) 1px, transparent 1.6px) 6px 6px / 14px 14px,
    radial-gradient(120% 80% at 50% 100%, rgb(128 242 255 / .55), rgb(128 242 255 / 0) 70%),
    linear-gradient(180deg, var(--glace), #E2F6FB);
}
.ag-badge__photo img { position: absolute; left: 50%; bottom: -2px; translate: -50% 0; width: 190px; height: auto; max-width: none; }
.ag-badge__nom { display: grid; gap: 3px; padding: 14px 18px 22px; }
.ag-badge__nom b { font: 750 26px/1.05 var(--titre); letter-spacing: -.025em; color: var(--encre); }
.ag-badge__nom span { font: 500 var(--fs-cartel)/1.3 var(--corps); color: var(--doux); }

/* Le lien de l'équipe : les sept, empilés comme dans une application (la photo d'Ayoub, puis « +6 », les autres) */
.ag-pile { display: inline-flex; align-items: center; margin-right: 4px; font-style: normal; }
.ag-pile > * {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; margin-left: -9px; overflow: hidden;
  box-shadow: 0 0 0 2.5px var(--blanc); font: 800 13px/1 var(--titre); font-style: normal; color: var(--encre); background: var(--glace-2);
  transition: translate var(--t-etat) var(--ease);
}
.ag-pile__ayoub { margin-left: 0 !important; background: url(/assets/v6/img/ayoub-cut-s.webp) 50% 9% / 205% auto no-repeat, linear-gradient(180deg, var(--glace), #CFF6FC) !important; }
.ag-pile > .ag-pile__plus { width: auto; padding: 0 10px 0 13px; border-radius: 999px; background: var(--encre); color: var(--cyan); font-size: 12.5px; letter-spacing: .02em; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .ag-equipe-lien:hover .ag-pile > * { translate: calc(var(--k, 0) * 2px) 0; }
  .ag-pile > :nth-child(2) { --k: 1; } .ag-pile > :nth-child(3) { --k: 2; } .ag-pile > :nth-child(4) { --k: 3; }
  .ag-pile > :nth-child(5) { --k: 4; } .ag-pile > :nth-child(6) { --k: 5; } .ag-pile > :nth-child(7) { --k: 6; }
}

/* L'arrivée : le H1 s'écrit phrase par phrase (un volet en clip-path, qui ne fausse pas la mesure du surligneur), puis le
   chapô et les actions montent ; la carte se balance une fois. Mouvement réduit : tout est posé.
   v23.2 · plus vive : chaque geste en 520 ms au plus, le titre entier en 0,7 s, le chapô et les actions lisibles avant 0,8 s
   (ils attendaient 1,5 s). */
@media (prefers-reduced-motion: no-preference) {
  html.js .ag-hero__l { animation: ag-ecrit 520ms cubic-bezier(.65, 0, .25, 1) both; }
  html.js .ag-hero__l:nth-child(2) { animation-delay: 90ms; }
  html.js .ag-hero__l:nth-child(3) { animation-delay: 180ms; }
  html.js :is(.ag-hero__chapo, .ag-hero__actions) { animation: ag-monte 460ms cubic-bezier(.2, .8, .2, 1) both; animation-delay: 260ms; }
  html.js .ag-hero__actions { animation-delay: 320ms; }
  html.js .ag-badge__carte { animation: ag-balance 1900ms cubic-bezier(.3, .6, .3, 1) 380ms both; }
  html.js .ag-badge { animation: ag-tombe 700ms cubic-bezier(.2, .9, .25, 1.1) 120ms both; }
}
/* (au survol, le petit balancement est joué par agence.js : une animation CSS au survol relancerait l'arrivée en sortant) */
@keyframes ag-ecrit {
  from { opacity: 0; clip-path: inset(-12% 100% -24% -4%); }
  30% { opacity: 1; }
  to { opacity: 1; clip-path: inset(-12% -6% -24% -4%); }
}
@keyframes ag-monte { from { opacity: 0; transform: translate3d(0, 22px, 0); } }
@keyframes ag-tombe { from { transform: translate3d(0, -64px, 0); } }
@keyframes ag-balance { 0% { rotate: 7deg; } 22% { rotate: -4.5deg; } 44% { rotate: 2.6deg; } 64% { rotate: -1.2deg; } 82% { rotate: .5deg; } 100% { rotate: 0deg; } }

/* ============================================================ 2. L’interrupteur */
.ag-balle { overflow-x: clip; }
.ag-balle__grille { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px clamp(40px, 5vw, 96px); align-items: center; }
.ag-balle__texte { display: grid; gap: 28px; align-content: center; }
.ag-balle__titre { max-width: 9em; word-spacing: .06em; }

/* Le contrôle : deux positions, un curseur qui glisse */
.ag-inter__choix { margin: 0; padding: 0; border: 0; min-width: 0; }
.ag-inter__piste {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; width: min(100%, 440px); padding: 5px;
  border-radius: 999px; background: var(--glace); box-shadow: inset 0 0 0 1px var(--ligne);
}
.ag-inter__radio { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.ag-inter__pos {
  position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 14px; border-radius: 999px; cursor: pointer; text-align: center;
  font: 600 var(--fs-cartel)/1.15 var(--corps); color: var(--doux); transition: color var(--t-etat) var(--ease);
}
.ag-inter__pos:hover { color: var(--encre); }
.ag-inter__radio:checked + .ag-inter__pos { color: var(--encre); }
.ag-inter__radio:focus-visible + .ag-inter__pos { outline: 2px solid var(--encre); outline-offset: 2px; box-shadow: 0 0 0 5px var(--cyan); }
.ag-inter__ra { width: 22px; height: 14px; flex: none; fill: currentColor; }
.ag-inter__curseur {
  position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: 999px;
  background: var(--blanc); box-shadow: var(--ombre-1);
  transition: translate var(--t-st) var(--ease), background-color var(--t-st) var(--ease);
}
.ag-inter__piste:has(#ag-inter-reach:checked) .ag-inter__curseur { translate: 100% 0; background: var(--cyan); }
.ag-inter__piste:has(.ag-inter__pos:active) .ag-inter__curseur { scale: .98; }

/* Les deux chutes, dans la même case (aucun saut de mise en page) */
.ag-inter__chutes { display: grid; }
.ag-inter__chute { grid-area: 1 / 1; margin: 0; font: 500 var(--fs-chapo)/1.45 var(--corps); color: var(--encre-2); max-width: 24em; text-wrap: pretty; }
.ag-inter__chute a { color: var(--cobalt); font-weight: 600; white-space: nowrap; }

/* La scène */
.ag-inter__scene { position: relative; container-type: inline-size; }
.ag-inter__desordre { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 28px; padding: 0; list-style: none; }
.ag-inter__desordre li, .ag-inter__etiquette {
  display: inline-flex; align-items: center; gap: 10px; width: max-content; max-width: 100%; min-height: 52px; padding: 8px 18px 8px 10px;
  border-radius: var(--rayon-1); background: var(--blanc); color: var(--encre); font: 600 var(--fs-corps)/1.2 var(--corps);
  box-shadow: var(--ombre-1), 0 0 0 1px var(--ligne);
}
.ag-inter__desordre li { rotate: var(--r); }
/* Le signe du service (jury A7) : pas un rond gris qui se lirait comme un profil vide. */
.ag-inter__avatar.signe { --signe-taille: 34px; --signe-coupe: 8px; border-radius: 0 8px 8px 8px; background: var(--glace); color: var(--cobalt); }

.ag-inter__carte {
  position: relative; width: min(100%, 540px); margin-inline: auto; padding: 0 0 12px;
  border-radius: var(--rayon-2); background: var(--blanc); box-shadow: var(--ombre-haute), 0 0 0 1px var(--ligne);
}
.ag-inter__tete { display: flex; align-items: center; gap: 12px; margin: 0; padding: 20px 24px 16px; border-bottom: 1px solid var(--ligne); font: 750 var(--fs-h3)/1.2 var(--titre); color: var(--encre); letter-spacing: -.01em; }
.ag-inter__logo { width: 34px; height: 22px; fill: var(--encre); }
.ag-inter__lignes { margin: 0; padding: 0 12px; list-style: none; }
.ag-inter__ligne {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 16px;
  min-height: 84px; padding: 14px 12px;
}
.ag-inter__ligne + .ag-inter__ligne { border-top: 1px solid var(--ligne); }
.ag-inter__ligne .signe { --signe-taille: 44px; }
.ag-inter__texte { margin: 0; font-size:var(--fs-corps); line-height: 1.45; color: var(--encre-2); text-wrap: pretty; }
.ag-inter__texte b { display: block; font: 700 var(--fs-h3)/1.25 var(--titre); color: var(--encre); }
.ag-inter__ligne .ag-inter__etiquette { display: none; }

/* Le geste, là où :has() existe : les étiquettes dispersées se rangent en une seule carte */
@supports selector(:has(*)) {
  /* le désordre reste lu par les lecteurs d'écran ; à l'œil, ce sont les étiquettes de la carte */
  .ag-inter__desordre { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  /* la table de travail : les étiquettes y traînent, la carte s'y pose */
  .ag-inter__scene { display: grid; align-items: center; min-height: 540px; padding: 28px; border-radius: var(--rayon-2); background: var(--glace); }
  .ag-inter__ligne {
    --dx: 0px; --dy: 0px;
    translate: var(--sx, var(--dx)) var(--sy, var(--dy)); rotate: var(--rot);
    transition: translate var(--t-main) var(--ease) calc(var(--i) * 50ms), rotate var(--t-main) var(--ease) calc(var(--i) * 50ms);
    z-index: 1;
  }
  /* Positions de départ sans script (agence.js les recalcule à la taille de la scène) */
  .ag-inter__ligne:nth-child(1) { --dx: -6cqw; --dy: -72px; }
  .ag-inter__ligne:nth-child(2) { --dx: 14cqw; --dy: -40px; }
  .ag-inter__ligne:nth-child(3) { --dx: -10cqw; --dy: 24px; }
  .ag-inter__ligne:nth-child(4) { --dx: 12cqw; --dy: 56px; }
  .ag-inter__ligne .ag-inter__etiquette {
    display: inline-flex; position: absolute; left: 12px; top: 50%; translate: 0 -50%;
    transition: opacity var(--t-st) var(--ease) calc(var(--i) * 50ms + 120ms), scale var(--t-st) var(--ease);
  }
  .ag-inter__ligne > .signe, .ag-inter__texte { opacity: 0; transition: opacity var(--t-st) var(--ease) calc(var(--i) * 50ms); }
  .ag-inter__ligne + .ag-inter__ligne { border-top-color: transparent; transition: border-color var(--t-st) var(--ease); }
  .ag-inter__carte { background: transparent; box-shadow: none; transition: background-color var(--t-st) var(--ease), box-shadow var(--t-st) var(--ease); }
  .ag-inter__tete { opacity: 0; translate: 0 8px; border-bottom-color: transparent; transition: opacity var(--t-st) var(--ease), translate var(--t-st) var(--ease), border-color var(--t-st); }
  .ag-inter__chute--apres { visibility: hidden; opacity: 0; }
  .ag-inter__chute { transition: opacity var(--t-st) var(--ease), visibility 0s linear var(--t-st); }

  /* Position « Reach Adz » */
  .ag-balle:has(#ag-inter-reach:checked) .ag-inter__ligne { translate: 0 0; rotate: 0deg; transition-delay: calc(var(--i) * 60ms); }
  .ag-balle:has(#ag-inter-reach:checked) .ag-inter__ligne .ag-inter__etiquette { opacity: 0; scale: .96; transition-delay: calc(var(--i) * 60ms + 200ms); }
  .ag-balle:has(#ag-inter-reach:checked) .ag-inter__ligne > .signe,
  .ag-balle:has(#ag-inter-reach:checked) .ag-inter__texte { opacity: 1; transition-delay: calc(var(--i) * 60ms + 320ms); }
  .ag-balle:has(#ag-inter-reach:checked) .ag-inter__ligne + .ag-inter__ligne { border-top-color: var(--ligne); transition-delay: 480ms; }
  .ag-balle:has(#ag-inter-reach:checked) .ag-inter__carte { background: var(--blanc); box-shadow: var(--ombre-haute), 0 0 0 1px var(--ligne); transition-delay: 240ms; }
  .ag-balle:has(#ag-inter-reach:checked) .ag-inter__tete { opacity: 1; translate: 0 0; border-bottom-color: var(--ligne); transition-delay: 320ms; }
  .ag-balle:has(#ag-inter-reach:checked) .ag-inter__chute--avant { visibility: hidden; opacity: 0; }
  .ag-balle:has(#ag-inter-reach:checked) .ag-inter__chute--apres { visibility: visible; opacity: 1; transition: opacity var(--t-st) var(--ease) 360ms, visibility 0s; }
  .ag-balle:has(#ag-inter-plusieurs:checked) .ag-inter__chute--avant { visibility: visible; opacity: 1; transition: opacity var(--t-st) var(--ease), visibility 0s; }
  /* Toucher la scène en désordre la range aussi */
  .ag-inter__scene { cursor: pointer; }
  .ag-balle:has(#ag-inter-reach:checked) .ag-inter__scene { cursor: auto; }
}

/* v23 · La balle qu'on se renvoie (agence.js) : une balle cyan, cerclée d'encre, qui saute d'étiquette en étiquette et
   s'écrase un peu à chaque contact (l'origine du saut est son point de contact) ; quand tout se range, elle se pose au bout
   de la ligne « Reach Adz ». Le saut est en transform ; mouvement réduit : pas de balle. */
.ag-balle__balle { position: absolute; z-index: 0; left: 0; top: 0; width: 21px; height: 21px; pointer-events: none; opacity: 0; }   /* v23.2 · sous les étiquettes (z 1) : elle ne passe plus sur leur texte */
.ag-balle__balle.est-la { opacity: 1; }
.ag-balle__balle > i {
  display: block; width: 100%; height: 100%; border-radius: 50%; transform-origin: 50% 100%;
  background: radial-gradient(circle at 34% 30%, #fff 0 13%, var(--cyan) 44%, #36D3E6 100%);
  box-shadow: inset 0 0 0 1.5px var(--encre), 0 7px 10px -5px rgb(13 32 63 / .5);
}
@media (prefers-reduced-motion: reduce) { .ag-balle__balle { display: none; } }

/* ============================================================ 3. Le générique, sur la nuit
   v23 · Plus rien ne se fige (la plaque collante tenait 1,1 écran) : la plaque ouvre le générique au centre, les métiers
   passent sur deux colonnes à l'ordinateur (une au téléphone), puis le renfort et le carton de fin. */
.ag-gen { display: grid; gap: clamp(28px, 1rem + 2.4vw, 56px); }
.ag-gen__plaque.plaque { margin: 0 auto; }
.ag-gen__defile { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 clamp(32px, 5vw, 96px); align-items: start; text-align: center; }
.ag-gen__colonne { display: grid; align-content: start; width: min(100%, 46rem); justify-self: center; }
.ag-gen__colonne + .ag-gen__colonne { margin-top: 22px; }
@media (min-width: 1024px) {
  /* deux colonnes ; le renfort se range sous la plus courte (Direction, Comptes), le carton de fin dessous, au centre */
  .ag-gen__defile { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto auto auto; }
  .ag-gen__colonne { width: auto; justify-self: stretch; }
  .ag-gen__colonne:first-child { grid-area: 1 / 1; }
  .ag-gen__colonne + .ag-gen__colonne { grid-area: 1 / 2 / span 2; margin-top: 0; }
  .ag-gen__defile > .ag-gen__experts { grid-area: 2 / 1; width: auto; margin-top: 26px !important; }
  .ag-gen__defile > .ag-gen__experts .ag-gen__experts-texte { font-size: var(--fs-corps); max-width: 30em; }
  .ag-gen__carton-fin { grid-area: 3 / 1 / auto / -1; }
}
.ag-gen__experts, .ag-gen__carton-fin { grid-column: 1 / -1; justify-self: center; width: min(100%, 52rem); }
.ag-gen__cartons { display: grid; gap: 0; width: 100%; margin: 0; }
.ag-gen__carton {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: baseline; column-gap: 24px;
  padding: 14px 0; border-top: 1px solid var(--nuit-ligne);
}
.ag-gen__carton:first-child { border-top: 0; }
.ag-gen__carton dt { text-align: right; font: 500 var(--fs-corps)/1.35 var(--corps); color: var(--nuit-doux); text-wrap: balance; }
.ag-gen__carton dd { margin: 0; text-align: left; font: 750 var(--fs-h2)/1.05 var(--titre); letter-spacing: -.025em; color: #fff; }
.ag-gen__groupe--direction dd { color: var(--cyan); }
/* le carton de fin : la production, puis les deux chiffres publiés, qui roulent à l'arrivée (site.js, [data-rouleau]) */
.ag-gen__carton-fin { display: grid; justify-items: center; gap: 14px; margin-top: clamp(30px, 2.4vw, 44px); padding-top: clamp(24px, 2vw, 32px); border-top: 1px solid var(--nuit-ligne); }
.ag-gen__fin { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 12px; margin: 0; font: 500 var(--fs-corps)/1.3 var(--corps); color: var(--nuit-texte); }
.ag-gen__fin b { font: 750 var(--fs-h3)/1 var(--titre); color: #fff; letter-spacing: -.01em; }
.ag-gen__logo { width: 34px; height: 22px; fill: #fff; }
.ag-gen__chiffres { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px clamp(32px, 4vw, 64px); margin: 4px 0 0; font: 500 var(--fs-corps)/1.3 var(--corps); color: var(--nuit-texte); }
.ag-gen__chiffres > span { display: grid; justify-items: center; gap: 6px; }
.ag-gen__chiffres b { position: relative; display: block; padding-bottom: 10px; font: 800 clamp(44px, 1.6rem + 2.6vw, 72px)/1 var(--titre); letter-spacing: -.035em; word-spacing: .1em; color: #fff; }   /* v23.2 · sans chiffres tabulaires : le « 1 » ne s'écarte plus du « + » (le rouleau garde les siens). L'espace des milliers reste l'insécable de l'accueil (« +1 200 »), élargie d'un dixième (word-spacing) : à cette taille et à cet approche, elle disparaissait. */
.ag-gen__chiffres b::after { /* le trait de lumière sous le chiffre, tracé à l'arrivée */
  content: ""; position: absolute; left: 18%; right: 18%; bottom: 0; height: 3px; border-radius: 3px; background: var(--cyan);
  box-shadow: 0 0 12px rgb(128 242 255 / .7); transform-origin: 50% 50%;
}
.ag-gen__source { margin: 0; }
@media (prefers-reduced-motion: no-preference) {
  html.js .ag-gen__carton-fin:not(.est-vu) .ag-gen__chiffres b::after { transform: scaleX(0); }
  html.js .ag-gen__chiffres b::after { transition: transform var(--t-fil) var(--ease) 500ms; }
}

/* Sur ordinateur, le générique monte un peu plus vite que la page (là où le défilement pilote une animation) */
@supports (animation-timeline: view()) {
  @media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
    .ag-gen__defile { animation: ag-generique linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
    @keyframes ag-generique { from { translate: 0 48px; } to { translate: 0 -48px; } }
  }
}

/* ============================================================ 6. L’appel */
.ag-appel__grille { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px clamp(40px, 5vw, 96px); align-items: center; }
.ag-appel__texte { display: grid; gap: 18px; }
.ag-appel__texte .chapo { max-width: 20em; }
.ag-appel .conversation { justify-self: end; }

/* v23 · Un peu moins d'air entre les salles (144 px à 1440 avant) : la page se parcourt plus vite, le rythme reste régulier. */
.ag-balle.section, .ag-generique.section, .ag-methode.section, .ag-engagements.section, .ag-appel.section { padding-block: clamp(64px, 36px + 5.8vw, 132px); }

/* ============================================================ Tablette */
@media (max-width: 1023px) {
  .ag-balle__grille, .ag-gen, .ag-appel__grille { grid-template-columns: minmax(0, 1fr); }
  .ag-balle__titre { max-width: 12em; }
  .ag-appel .conversation { justify-self: start; }
}

/* ============================================================ Téléphone (budget : 5 500 px à 390) */
@media (max-width: 759px) {
  .ag-hero { padding-top: 8px; padding-bottom: 28px; }
  .ag-hero__grille { grid-template-columns: minmax(0, 1fr); grid-template-areas: "ariane" "ayoub" "titre" "chapo" "actions"; grid-template-rows: none; }
  .ag-ariane { margin-bottom: 4px; }
  /* v23 · le badge, couché : la bande marine en haut (la fente, la marque), la photo à gauche, le nom à droite */
  .ag-badge { --badge-l: 100%; justify-self: stretch; margin: 22px 0 16px; }
  .ag-badge__cordon::before, .ag-badge__cordon::after { height: 120px; width: 10px; }
  .ag-badge__carte { grid-template-columns: 100px minmax(0, 1fr); grid-template-areas: "tete tete" "photo nom"; border-radius: 16px; }
  .ag-badge__carte::after { border-radius: 0 0 16px 16px; height: 5px; }
  .ag-badge__tete { grid-area: tete; padding: 20px 14px 9px; border-radius: 16px 16px 0 0; font-size: 13px; }
  .ag-badge__tete::before { top: 7px; }
  .ag-badge__photo { grid-area: photo; height: 92px; border-radius: 0 0 0 16px; }
  .ag-badge__photo img { top: 3px; bottom: auto; width: 102px; }
  .ag-badge__nom { grid-area: nom; align-content: center; padding: 8px 16px 12px; }
  .ag-badge__nom b { font-size: 24px; }
  .ag-hero__chapo { margin-top: 18px; }
  .ag-hero__actions { margin-top: 14px; }

  .ag-balle.section, .ag-generique.section, .ag-methode.section, .ag-engagements.section, .ag-appel.section { padding-block: 44px; }
  .ag-balle__texte { gap: 20px; }
  .ag-inter__piste { width: 100%; }
  .ag-inter__pos { padding: 0 8px; font-size:var(--fs-cartel); }
  .ag-inter__chute { font-size:var(--fs-chapo); }
  .ag-inter__ligne { min-height: 0; gap: 12px; padding: 14px 6px; }
  .ag-inter__ligne .signe { --signe-taille: 38px; }
  .ag-inter__lignes { padding: 0 10px; }
  .ag-inter__tete { padding: 16px 18px 14px; font-size:var(--fs-chapo); }
  .ag-inter__texte { font-size:var(--fs-corps); }
  .ag-inter__texte b { font-size:var(--fs-corps); }
  .ag-inter__desordre li, .ag-inter__etiquette { min-height: 46px; font-size:var(--fs-corps); padding: 6px 14px 6px 8px; }
  .ag-inter__avatar.signe { --signe-taille: 30px; --signe-coupe: 7px; }
  /* Jury V9 : la table resserrée (≈ 420 px), les étiquettes moins loin de la carte. */
  @supports selector(:has(*)) { .ag-inter__scene { min-height: 0; margin-inline: calc(var(--gout) * -1); padding: 20px var(--gout); border-radius: 0; } }
  .ag-balle__grille { gap: 8px; }

  .ag-gen { gap: 24px; }
  .ag-gen__colonne + .ag-gen__colonne { margin-top: 14px; }
  .ag-gen__carton { grid-template-columns: minmax(0, 1fr); row-gap: 2px; padding: 10px 0; }
  .ag-gen__carton dt, .ag-gen__carton dd { text-align: center; }
  .ag-gen__carton dt { font-size:var(--fs-cartel); }
  .ag-gen__carton dd { font-size:var(--fs-h2); }
  .ag-gen__carton-fin { gap: 10px; margin-top: 16px; padding-top: 18px; }
  .ag-gen__chiffres { gap: 12px 28px; }
  .ag-gen__chiffres b { font-size: 40px; padding-bottom: 8px; }
  /* v23 · deux noms par rangée quand un métier en a plusieurs (le générique passait 1,4 écran) ; le dernier, seul, au centre */
  .ag-gen__cartons:has(> :nth-child(2)) { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 14px; }
  .ag-gen__cartons:has(> :nth-child(2)) > .ag-gen__carton:nth-child(2) { border-top: 0; }
  .ag-gen__cartons:has(> :nth-child(2)) > .ag-gen__carton { align-content: end; }
  .ag-gen__cartons > .ag-gen__carton:last-child:nth-child(odd):not(:first-child) { grid-column: 1 / -1; }
  .ag-gen__carton dt { min-height: 0; }
  .ag-gen__experts-texte { font-size: 15px; }

  .ag-appel__grille { gap: 20px; }
}

/* ============================================================ Mouvement réduit : l’état final, tout de suite */
@media (prefers-reduced-motion: reduce) {
  .ag-inter__ligne, .ag-inter__ligne *, .ag-inter__carte, .ag-inter__tete, .ag-inter__chute, .ag-inter__curseur { transition: none !important; }
}

/* ============================================================ v17 : le générique rangé par métier, la méthode et ce qu'elle remet */
.ag-gen__groupe { display: grid; width: 100%; }
.ag-gen__groupe + .ag-gen__groupe { margin-top: 22px; }
.ag-gen__metier {
  display: flex; align-items: center; gap: 14px; margin: 0 0 4px; font: 700 var(--fs-cartel)/1 var(--corps); letter-spacing: .14em; text-transform: uppercase; color: var(--cyan);
}
.ag-gen__metier::before, .ag-gen__metier::after { content: ""; flex: 1; height: 1px; background: var(--nuit-ligne); }

@media (max-width: 759px) {
  .ag-gen__groupe + .ag-gen__groupe { margin-top: 14px; }
  .ag-gen__metier { font-size:var(--fs-cartel); }
}

/* ============================================================ v19 « La vitrine » : la méthode au centre, nos engagements
   Les composants .monument, .methode et .engagements sont ceux de css/site.css (docs/v19/COMPOSANTS-v19.md) ;
   ici, leur place dans la page seulement. */
/* Après le jury : le Monument est le titre de la section, son sur-titre au-dessus, la méthode dessous avec de l'air. */
/* la seule rubrique de la page : pas de « 01 » à côté des quatre temps */
/* v23 · Le Monument sur une ligne à l'ordinateur (il en prenait deux, 340 px), la boucle de la main autour de « L'audit »,
   la note à côté ; puis la méthode. */
.ag-methode__tete { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: end; gap: 12px 24px; margin: 0 0 clamp(36px, 1.5rem + 3vw, 80px); }
.ag-methode__monument { margin: 0; font-size: clamp(64px, 9.2vw, 168px); }
/* v23 · après la revue : la boucle passait dans le mot (le haut sur les hampes du L, du d et du t, la droite sur le « t »).
   Le Monument a un interligne de .88 : les hampes dépassent la boîte du mot ; la boucle prend donc .2 em au-dessus, .18 em
   dessous, .3 em à gauche et .44 em à droite (le pied du « t »), et « d'abord » s'écarte d'autant (marge à droite). */
.ag-entoure { margin-right: .16em; }
.ag-entoure > .trait { left: -.3em; top: -.2em; width: calc(100% + .74em); height: calc(100% + .38em); stroke-width: 3.6; --trait-delai: 420ms; }
html.js .ag-entoure > .trait { stroke-dasharray: 6; stroke-dashoffset: 6; transition-duration: 1500ms; }
html.js .est-vu .ag-entoure > .trait { stroke-dashoffset: 0; }
.ag-methode__main { display: flex; align-items: center; gap: 6px; justify-self: start; margin: 0 0 .6em; }
.ag-methode__main .main { max-width: 8.5em; rotate: -3deg; }
.ag-methode__main .trait { width: 64px; flex: none; translate: 0 -10px; rotate: -8deg; --trait-delai: 1100ms; }

.ag-engagements__tete { display: grid; gap: 20px; justify-items: start; }
@media (max-width: 759px) {
  .ag-methode__tete { grid-template-columns: minmax(0, 1fr); margin-bottom: 26px; gap: 6px; }
  .ag-methode__monument { font-size: var(--fs-monument); }
  .ag-entoure { margin-bottom: .2em; }   /* « d'abord. » passe à la ligne : il descend sous le bas de la boucle */
  .ag-methode__main { justify-self: start; translate: 0 0; margin: 0 0 0 4px; }
  .ag-methode__main .main { text-align: left; max-width: none; }
  .ag-methode__main .trait { display: none; }
  .ag-engagements__tete { gap: 8px; }
}

/* ============================================================ v20 « Le musée de nuit » : les plaques, la ligne des ingénieurs
   (docs/v20/BRIEF-v20.md §1, §3 ; copie : docs/v20/copie-maison-preuves.md §1). Les pièces viennent de css/site.css §33 ;
   ici, leur place dans la page seulement. */
.ag-engagements__tete .plaque, .ag-appel__texte .plaque { margin: 0; }
.ag-generique { --salle-teinte: #CFFAFF; }
/* La méthode : la plaque au-dessus du Monument (le Monument reste le seul titre de la section). */
.ag-methode__plaque.plaque { margin: 0 0 clamp(18px, .5rem + 1.4vw, 32px); }
.ag-methode__plaque .plaque__nom { font: 750 var(--fs-h3)/1.2 var(--titre); letter-spacing: -.012em; color: var(--encre); }
/* En renfort : la ligne des ingénieurs, au générique, comme un carton de fin de film ; elle ne compte pas parmi les sept. */
.ag-gen__experts { margin-top: 30px !important; }
.ag-gen__experts-texte {
  max-width: 34em; margin: 14px auto 0; padding: 0 8px;
  font: 500 var(--fs-chapo)/1.5 var(--corps); color: var(--nuit-texte); text-wrap: balance;
}
@media (max-width: 759px) {
  .ag-gen__experts { margin-top: 16px !important; }
  .ag-gen__experts-texte { margin-top: 10px; font-size: var(--fs-corps); }
}

/* v20 — L'atelier, en vrai (docs/v20/ATELIER-v20.md) : une salle de jour après la nuit du générique. La plaque, une note de
   la main, puis (v21) la table de montage (css/montage21.css) ; au bout, l'appel. */
.ag-atelier { padding-block: clamp(56px, 24px + 6vw, 136px) clamp(40px, 16px + 3vw, 72px); }
.ag-atelier__tete { position: relative; display: grid; gap: 16px; }
.ag-atelier__tete .plaque { margin: 0; }
.ag-atelier__main { display: none; }
/* la rangée passe d'un bord à l'autre de l'écran (le clip du centre reste au centre) */
.ag-atelier .rail__fleche { background: var(--blanc); color: var(--encre); box-shadow: inset 0 0 0 1px var(--ligne-2); }
.ag-atelier__fin { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: clamp(24px, 3vw, 40px); }
@media (min-width: 1024px) {
  .ag-atelier__tete { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
  .ag-atelier__main { display: flex; align-items: flex-end; gap: 4px; margin: 0 6% -8px 0; }
  .ag-atelier__main .main { max-width: 11em; text-align: right; }
  .ag-atelier__main .trait { flex: none; width: 36px; height: 72px; }
}
@media (max-width: 759px) {
  .ag-atelier__fin .btn--wa { display: none; }
}

/* v23 · Les autres coulisses, en tirages instantanés (la planche de l'accueil, css/atelier21.css, en petit) : le papier
   photo crème, la photo au format 3:4, la légende au feutre dans la marge, un ruban de washi ; un peu de travers, ils se
   redressent au survol. Les boutons restent ceux des Stories (stories21.js ouvre le lecteur) ; seule leur forme change. */
.ag-atelier__suite { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: end; gap: 28px clamp(32px, 4vw, 72px); margin-top: clamp(28px, 3vw, 44px); }
.ag-atelier__suite .ag-atelier__fin { justify-content: flex-end; margin: 0 0 22px; }
.ag-atelier .ag-tirages { margin: 0; gap: 16px; }
.ag-tirages .ag-tirages__planche { display: flex; gap: 0; margin: 0; padding: 14px 6px 10px; overflow: visible; }
.ag-tirages__planche > li { position: relative; margin-inline: -3px; translate: 0 var(--y, 0px); }
.ag-tirages__planche > li::before { /* le ruban : washi cyan un tirage sur deux, papier crème l'autre */
  content: ""; position: absolute; z-index: 3; top: -9px; left: 50%; width: 56px; height: 18px; translate: -50% 0; rotate: calc(var(--r) * -1.3 + 2deg); pointer-events: none;
  background: repeating-linear-gradient(90deg, rgb(255 255 255 / .16) 0 5px, transparent 5px 10px), rgb(128 242 255 / .66);
  clip-path: polygon(0 8%, 4% 0, 8% 10%, 12% 0, 88% 0, 92% 10%, 96% 0, 100% 8%, 100% 92%, 96% 100%, 92% 90%, 88% 100%, 12% 100%, 8% 90%, 4% 100%, 0 92%);
}
.ag-tirages__planche > li:nth-child(even)::before { background: rgb(245 236 210 / .9); width: 50px; rotate: calc(var(--r) * -1.1 - 3deg); }
.ag-tirages .une__pastille {
  width: clamp(124px, 9.6vw, 148px); gap: 0; padding: 7px 7px 0; border-radius: 3px; background: #FBFAF6; rotate: var(--r, 0deg);
  box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgb(13 32 63 / .06), 0 2px 5px rgb(13 32 63 / .14), 0 22px 34px -20px rgb(13 32 63 / .55);
  transition: rotate 460ms var(--ressort), translate 460ms var(--ressort);
}
.ag-tirages .une__anneau { width: 100%; height: auto; aspect-ratio: 3 / 4; padding: 0; border-radius: 1px; overflow: hidden; background: #0B1530; }
.ag-tirages .une__anneau::after { /* le brillant du papier photo, et le bouton de lecture */
  inset: 0; border-radius: 0; box-shadow: none;
  background:
    radial-gradient(circle at calc(100% - 19px) calc(100% - 19px), rgb(7 19 38 / .62) 0 13px, transparent 13.5px),
    linear-gradient(128deg, rgb(255 255 255 / .22), rgb(255 255 255 / 0) 36%);
}
.ag-tirages .une__anneau::before { /* le triangle de lecture */
  content: ""; position: absolute; z-index: 2; right: 14px; bottom: 13px; width: 11px; height: 12px; background: #fff;
  -webkit-mask: var(--i-lecture) center / contain no-repeat; mask: var(--i-lecture) center / contain no-repeat;
}
.ag-tirages .une__anneau img { width: 100%; height: 100%; border-radius: 0; object-fit: cover; object-position: 50% 35%; }
.ag-tirages .une__nom { max-width: none; padding: 7px 2px 9px; font: 700 21px/1 var(--main); color: var(--encre); rotate: -1.5deg; white-space: nowrap; }
.ag-tirages .une__pastille:hover .une__anneau, .ag-tirages .une__pastille:active .une__anneau { transform: none; }
.ag-tirages .une__pastille.est-vue .une__anneau { background: #0B1530; }
.ag-tirages .une__pastille:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 4px; }
.ag-tirages .une__pastille:focus-visible .une__anneau { outline: 0; }
@media (hover: hover) and (pointer: fine) {
  /* (relecture) le tirage survolé passe devant ses voisins, et monte avec son ruban (le ruban est sur le li) */
  .ag-tirages__planche > li { transition: translate 460ms var(--ressort); }
  .ag-tirages__planche > li:has(.une__pastille:hover) { z-index: 2; translate: 0 calc(var(--y, 0px) - 8px); }
  .ag-tirages .une__pastille:hover { rotate: 0deg; }
}
/* l'arrivée : les tirages se posent un à un sur la planche (comme à l'accueil) */
@media (prefers-reduced-motion: no-preference) {
  html.js .ag-tirages__planche:not(.est-vu) > li { opacity: 0; }
  html.js .ag-tirages__planche.est-vu > li { animation: ag-pose 520ms cubic-bezier(.2, .85, .25, 1.12) backwards; }   /* v23.2 · 760 → 520 ms */
  html.js .ag-tirages__planche.est-vu > li:nth-child(2) { animation-delay: 70ms; }
  html.js .ag-tirages__planche.est-vu > li:nth-child(3) { animation-delay: 140ms; }
  html.js .ag-tirages__planche.est-vu > li:nth-child(4) { animation-delay: 210ms; }
}
@keyframes ag-pose { from { opacity: 0; transform: translate3d(0, -46px, 0) rotate(calc(var(--r, 0deg) * 2.6)) scale(1.1); } 55% { opacity: 1; } }
@media (max-width: 1023px) {
  .ag-atelier__suite { grid-template-columns: minmax(0, 1fr); }
  .ag-atelier__suite .ag-atelier__fin { justify-content: flex-start; margin: 0; }
}
@media (max-width: 759px) {
  .ag-atelier__suite { gap: 6px; margin-top: 12px; }
  .ag-atelier .ag-tirages { gap: 6px; }
  .ag-tirages .ag-tirages__planche { justify-content: space-between; padding: 12px 0 8px; }
  .ag-tirages__planche > li { margin-inline: 0; translate: 0 0; }
  .ag-tirages .une__pastille { width: calc((100vw - 2 * var(--gout) - 18px) / 4); padding: 5px 5px 0; }
  .ag-tirages__planche > li::before { width: 40px; height: 15px; top: -7px; }
  .ag-tirages .une__nom { font-size: 17px; padding: 5px 0 7px; }
  .ag-tirages .une__anneau::after { background: radial-gradient(circle at calc(100% - 14px) calc(100% - 14px), rgb(7 19 38 / .62) 0 10px, transparent 10.5px), linear-gradient(128deg, rgb(255 255 255 / .22), rgb(255 255 255 / 0) 36%); }
  .ag-tirages .une__anneau::before { right: 10px; bottom: 9px; width: 9px; height: 10px; }
}

/* ============================================================ v20 « visuel d'abord » (utilisateur, 15/11 : « trop chargé…
   privilégier le visuel ») — le cadre des composants .methode-v et .engagements-v est dans
   css/site.css (docs/v20/COMPOSANTS-v20.md) ; ici, la place des pièces dans la page (les images de la méthode : .mv-scan, .mv-plan, .mv-barres de site.css). */
.ag-methode .mv-barres { display: flex; flex-direction: column; justify-content: flex-end; } /* les hauteurs en % se résolvent (la grille auto les écrasait) */
/* v23 · La comète de la méthode (site.css § 42) finit 40 px après le trait : de 1024 à ~1100 px, elle sortait de l'écran
   (16 px de défilement de côté à 1024, une fois la salle vue). La salle coupe ce qui déborde de côté, rien d'autre. */
.ag-methode { overflow-x: clip; }
.ag-mv__pour { position: absolute; z-index: 2; top: 14px; left: 16px; margin: 0; font: 700 13px/1.2 var(--titre); letter-spacing: .02em; color: var(--cobalt); }

/* La place des pièces : les engagements (la tête, puis les cinq marqueurs). */
.ag-engagements__tete { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 32px; margin-bottom: clamp(20px, 3vw, 40px); }

/* ============================================================ v23 · Nos engagements, une planche d'autocollants qui se lit
   Les autocollants se collent un à un quand la planche arrive (un geste de pouce : un peu grands, de travers, puis posés) ;
   à partir de la tablette, chacun devient une vignette découpée qui porte sa phrase (le survol ne cachait plus que
   l'essentiel). Le dernier, « Aucun résultat garanti », reste marine. Au téléphone : les pastilles et la bulle du site. */
@media (min-width: 760px) {
  .ag-engagements .ag-planche { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 24px); align-items: stretch; }
  .ag-engagements .ag-planche > li {
    grid-template-columns: auto minmax(0, 1fr); align-content: start; align-items: center; row-gap: 14px; column-gap: 12px;
    min-height: 0; padding: 16px 18px 20px 16px; border-radius: 22px;
  }
  .ag-engagements .engagements-v__titre { white-space: normal; text-wrap: balance; }
  html.js .ag-engagements .engagements-v__detail {
    position: static; z-index: auto; width: auto; padding: 0; border-radius: 0; background: none; box-shadow: none;
    color: var(--encre-2); font-size: 15px; line-height: 1.45; opacity: 1; transform: none; pointer-events: auto; transition: color var(--t-etat);
  }
  html.js .ag-engagements .engagements-v__detail::before { content: none; }
  .ag-engagements .ag-planche > li.engagements-v__marine .engagements-v__detail { color: var(--nuit-texte); }
  html.js .ag-engagements .ag-planche > li.engagements-v__marine:is(:hover, :focus-visible, .est-ouvert) .engagements-v__detail { color: var(--encre-2); }
  .ag-engagements .engagements-v__bulle { display: none !important; }
}
@media (min-width: 760px) and (max-width: 1023px) {
  .ag-engagements .ag-planche { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: no-preference) {
  html.js .ag-planche:not(.est-vu) > li { opacity: 0; }
  html.js .ag-planche.est-vu > li { animation: ag-colle 460ms cubic-bezier(.2, .9, .3, 1.2) backwards; animation-delay: calc(var(--k, 0) * 70ms + 60ms); }   /* v23.2 · la planche entière en 0,8 s (1,2 s avant) */
}
@keyframes ag-colle {
  from { opacity: 0; transform: translate3d(0, -16px, 0) scale(1.2) rotate(-7deg); }   /* (relecture) sans l'ombre : transform et opacity seulement */
  55% { opacity: 1; }
}

/* ============================================================ v23 · La sortie : l'heure de Casablanca
   Une pastille de verre sur la nuit, un petit cadran dont les aiguilles disent l'heure du lieu (agence.js pose --h et --m,
   en degrés) ; mise à jour à la minute, seulement à l'écran. */
.ag-heure {
  justify-self: start; display: inline-flex; align-items: center; gap: 10px; margin: 6px 0 0; padding: 8px 16px 8px 8px; border-radius: 999px;
  background: rgb(255 255 255 / .06); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .14); font: 500 15px/1.2 var(--corps); color: var(--nuit-texte);
}
.ag-heure time { font-weight: 650; color: #fff; font-variant-numeric: tabular-nums; }
.ag-heure__cadran { position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 14px rgb(128 242 255 / .45); }
.ag-heure__cadran > i { position: absolute; left: 50%; bottom: 50%; width: 2px; margin-left: -1px; border-radius: 2px; background: var(--encre); transform-origin: 50% 100%; }
.ag-heure__cadran > i:first-child { height: 7px; rotate: calc(var(--h, 300) * 1deg); }
.ag-heure__cadran > i:last-child { height: 10px; width: 1.5px; margin-left: -.75px; rotate: calc(var(--m, 60) * 1deg); }
.ag-heure__cadran::after { content: ""; position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; margin: -2px 0 0 -2px; border-radius: 50%; background: var(--encre); }
@media (max-width: 759px) {
  .ag-appel__texte { gap: 12px; }
  .ag-heure { margin-top: 2px; padding: 6px 14px 6px 6px; font-size: 14px; }
  .ag-heure__cadran { width: 24px; height: 24px; }
}
@media (max-width: 759px) { .ag-balle__balle { width: 17px; height: 17px; } }

/* (relecture) sans JavaScript, au téléphone : la phrase de « Aucun résultat garanti » se lit sur sa pastille marine */
html:not(.js) .ag-engagements .ag-planche > li.engagements-v__marine .engagements-v__detail { color: var(--nuit-texte); }

/* ============================================================ v23.2 · Le dressage (la dernière passe, 17/11)
   Rien de nouveau : chaque salle se présente finie. Le héros à la tablette, l'atelier équilibré, la méthode alignée,
   la page plus courte au téléphone. Transform et opacity seulement ; rien de figé. */

/* Le héros, à la tablette (760–1023 px) : le badge passait à 240 px et le titre, serré à côté, tombait sur cinq lignes
   (« Sept » seul en haut). Le badge se resserre (188 px, la marque tient dans le logo), le titre se règle sur la largeur :
   « Sept personnes / à Casablanca, / une seule équipe. », trois lignes, comme à l'ordinateur. */
@media (min-width: 760px) and (max-width: 1023px) {
  .ag-hero__titre { font-size: min(var(--fs-h1), 8.1vw); }
  .ag-badge { --badge-l: 188px; margin-top: 44px; }
  .ag-badge__marque { display: none; }
  .ag-badge__tete { padding: 24px 14px 11px; }
  .ag-badge__photo { height: 188px; }
  .ag-badge__photo img { width: 150px; }
  .ag-badge__nom { padding: 12px 14px 18px; }
  .ag-badge__nom b { font-size: 22px; }
}

/* L'atelier, à l'ordinateur : l'appel se tenait seul en bas à droite, 210 px de vide au-dessus. Il se place à hauteur des
   tirages, juste à côté : on regarde les tournages, puis « Des vidéos comme ça, pour moi ». */
@media (min-width: 1024px) {
  .ag-atelier__suite { align-items: center; }
  .ag-atelier__suite .ag-atelier__fin { justify-content: flex-start; margin: 56px 0 0; }   /* à hauteur du milieu des tirages (sous leur titre) */
}

/* La méthode, à l'ordinateur : les quatre temps partagent les mêmes rangées (sous-grille) ; les titres, les lignes et
   « Le détail » s'alignent d'une colonne à l'autre (une ligne d'une ligne faisait sauter le « + » de 24 px). */
@supports (grid-template-rows: subgrid) {
  @media (min-width: 1024px) {
    .ag-methode .methode-v { grid-template-rows: repeat(5, auto); }
    .ag-methode .methode-v__temps { grid-row: span 5; grid-template-rows: subgrid; }
  }
}

/* La sortie : une salle de nuit comme le générique (la feuille aux coins arrondis, site.css § 35.6) ; la pastille de l'heure
   à la française (« 10 h 55 »). */
.ag-heure time { font-variant-numeric: normal; letter-spacing: .005em; }
.ag-appel .plaque__ligne { text-wrap: balance; }
.ag-nw { white-space: nowrap; }   /* « écrivez-nous » ne se coupe plus au trait d'union (« écrivez- / nous », au téléphone) */

/* Au téléphone : la page passait 7,8 écrans. Le même contenu, resserré là où l'air ne servait pas. */
@media (max-width: 759px) {
  .ag-balle.section, .ag-generique.section, .ag-methode.section, .ag-engagements.section, .ag-appel.section { padding-block: 40px; }
  /* la feuille de nuit qui suit recouvre 22 px du bas : ces salles les rendent (il restait 18 px de blanc sous la table) */
  .ag-balle.section, .ag-engagements.section { padding-bottom: 58px; }
  /* l'interrupteur : la carte rangée plus dense, la table un peu moins haute */
  @supports selector(:has(*)) { .ag-inter__scene { padding-block: 14px; } }
  .ag-balle__grille { gap: 10px; }
  .ag-inter__tete { padding: 13px 16px 11px; }
  .ag-inter__ligne { padding: 10px 4px; }
  .ag-inter__texte { font-size: 15px; line-height: 1.4; }
  .ag-inter__texte b { font-size: 16px; }
  /* le générique : des cartons plus serrés, la production sur une ligne */
  .ag-gen { gap: 16px; }
  .ag-gen__carton { padding: 7px 0; }
  .ag-gen__carton dd { font-size: 28px; }
  .ag-gen__groupe + .ag-gen__groupe, .ag-gen__colonne + .ag-gen__colonne { margin-top: 10px; }
  .ag-gen__metier { margin-bottom: 2px; }
  .ag-gen__experts { margin-top: 12px !important; }
  .ag-gen__experts-texte { margin-top: 8px; font-size: 15px; line-height: 1.45; }
  .ag-gen__carton-fin { gap: 8px; margin-top: 12px; padding-top: 14px; }
  .ag-gen__fin { gap: 4px 8px; font-size: 14px; }
  .ag-gen__fin b { font-size: 17px; }
  .ag-gen__logo { width: 28px; height: 18px; }
  .ag-gen__chiffres b { font-size: 36px; }
  /* l'atelier : le même air que les autres salles ; la pub un peu moins haute (439 → 380 px), le plateau reste entier */
  .ag-atelier { padding-block: 40px 36px; }
  .ag-atelier .montage__ecran { height: min(46svh, 380px); }
}

/* v23.2 · (relecture finale) L'atelier, à l'ordinateur. La table de montage partagée (montage21) laissait une bande vide de
   130 px entre les boutons et la timeline : l'écran (600 px) dépassait sa colonne. Il se règle sur elle (540 px).
   Pendant l'ouverture, le sur-titre « Du tournage à la pub » flottait sur le rush, au hasard de la colonne : il attend la
   coupe. Et la légende du rush passait sur la timeline pendant le resserrement : elle s'efface dès qu'il commence.
   Opacité seulement ; sans script et en mouvement réduit (.est-coupe d'emblée), rien ne change. */
@media (min-width: 1024px) {
  .ag-atelier .montage--compact .montage__ecran { height: min(540px, 66vh); }
  html.js .ag-atelier .montage.est-pret .montage__gauche { transition: opacity 320ms var(--ease); }
  html.js .ag-atelier .montage.est-pret:not(.est-coupe) .montage__gauche { opacity: 0; }
}
.ag-atelier .montage__cartel-rush { transition: opacity 200ms var(--ease); }
.ag-atelier .montage.est-resserre .montage__cartel-rush { opacity: 0; }

/* (relecture finale) Sans JavaScript, au téléphone : chaque engagement montre sa phrase dans sa pastille ; arrondie à
   999 px, la pastille devenait une bulle ovale et rognait le début des lignes. Elle prend l'arrondi des vignettes. */
@media (max-width: 759px) {
  html:not(.js) .ag-engagements .ag-planche > li { align-content: start; border-radius: 20px; padding: 10px 14px 12px 8px; }
}

/* v23.3 (Ayoub, 21/11) · L'équipe passe à neuf : au téléphone, deux noms par rangée, et « Abderrahmane » doit tenir dans
   sa demi-colonne (il débordait au bord de l'écran). */
@media (max-width: 759.98px) {
  .ag-gen__cartons:has(> :nth-child(2)) .ag-gen__carton dd { font-size: clamp(19px, 6vw, 26px); overflow-wrap: anywhere; }
}
