/* ============================================================
   OPTERIA — page « L'agence » (06/10/2026, demande Axel) : vision, partenariat, équipe, formation.
   Même langage que /cerveau-ia, /integration et /contact (cartes grises, peintures, fiches blanches, cases cochées).
   Chargée seulement par a-propos.html, après da-cerveau.css. Animations : agence.js + moteur de scènes de cerveau.js.
   Mouvement : uniquement transform, opacity, clip-path et stroke-dashoffset.
   ============================================================ */
.page-agence { --orange: #FB4D17; --vert-wa: #25a35a; }
.ag-centre { text-align: center; }
.ag-lien-texte { color: var(--ink); text-decoration: underline; text-decoration-color: rgba(0,0,0,.3); text-underline-offset: 3px; transition: text-decoration-color .2s ease; }
.ag-lien-texte:hover { text-decoration-color: var(--ink); }

/* ---------- Premier écran : la carte grise coupée en deux, les associés reliés à votre Bobby sur la peinture ---------- */
.ag-hero { padding: 56px 0 36px; background: var(--paper); }
.ag-hero__carte { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); min-height: 520px; border-radius: var(--r); background: var(--gris-carte); overflow: hidden; }
.ag-hero__txt { display: flex; flex-direction: column; justify-content: center; padding: 56px 48px; }
.ag-hero__txt .meta { margin: 0 0 16px; }
.ag-hero__txt .d { margin: 0; font-size: clamp(34px, 3.5vw, 48px); }
.ag-hero__accent { color: var(--orange); }
.ag-hero__sous { margin: 24px 0 0; font-size: 18px; line-height: 1.5; color: var(--muet); }
.ag-hero__actions { margin-top: 30px; }
.ag-preuve { margin-top: 26px; }

.ag-toile { position: relative; min-height: 520px; isolation: isolate; overflow: hidden; }
.ag-toile .cv-peinture { transform: scale(1.03); }
.ag-liens { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.ag-lien { fill: none; stroke: rgba(255,255,255,.85); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.1s cubic-bezier(.45,0,.25,1); }
.ag-lien[data-de="2"] { transition-delay: .15s; } .ag-lien[data-de="3"] { transition-delay: .3s; } .ag-lien[data-de="4"] { transition-delay: .5s; }
.ag-toile.is-relie .ag-lien { stroke-dashoffset: 0; }
/* le « flux » : un trait orange qui file le long du lien de la personne qui travaille en ce moment */
.ag-flux { fill: none; stroke: var(--orange); stroke-width: 3; stroke-linecap: round; stroke-dasharray: .14 1.2; stroke-dashoffset: .14; opacity: 0; transition: opacity .3s ease; }
.ag-toile[data-etape="1"] .ag-flux[data-de="1"], .ag-toile[data-etape="2"] .ag-flux[data-de="2"],
.ag-toile[data-etape="3"] .ag-flux[data-de="3"], .ag-toile[data-etape="4"] .ag-flux[data-de="4"] { opacity: 1; animation: ag-flux 1.5s cubic-bezier(.45,0,.3,1) infinite; }
@keyframes ag-flux { from { stroke-dashoffset: .14; } to { stroke-dashoffset: -1.06; } }

.ag-coeur { position: absolute; left: 50%; top: 50%; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 6px; width: 224px; padding: 18px 16px 16px; border-radius: 18px; background: #fff; color: var(--encre); text-align: center;
  box-shadow: none; transform: translate(-50%, -50%) scale(.9); opacity: 0; transition: opacity .7s ease, transform .9s cubic-bezier(.22,1,.36,1); }
.ag-toile.is-relie .ag-coeur { opacity: 1; transform: translate(-50%, -50%); }
.ag-coeur__tuile { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 15px; background: var(--orange); color: #fff; box-shadow: 0 0 0 0 rgba(251,77,23,.3); transition: transform .45s cubic-bezier(.3,1.4,.5,1); }
.ag-coeur__tuile svg { width: 40px; height: 40px; overflow: visible; }
.ag-oeil { transform-box: fill-box; transform-origin: center; animation: ag-cligne 4.6s ease-in-out infinite; }
@keyframes ag-cligne { 0%, 92%, 100% { transform: none; } 95% { transform: scaleY(.15); } }
.ag-toile[data-etape="4"] .ag-coeur__tuile { transform: scale(1.08); }
.ag-coeur b { margin-top: 4px; font-size: 16px; font-weight: 500; }
.ag-coeur__etat { display: grid; width: 100%; font-size: 13px; line-height: 1.35; color: #6b6b70; }
.ag-coeur__etat span, .ag-bobby__etat span { grid-area: 1 / 1; opacity: 0; transform: translateY(5px); transition: opacity .35s ease, transform .4s cubic-bezier(.22,1,.36,1); }
.ag-toile:not([data-etape]) [data-pour="0"], .ag-toile[data-etape="0"] [data-pour="0"], .ag-toile[data-etape="1"] [data-pour="1"], .ag-toile[data-etape="2"] [data-pour="2"],
.ag-toile[data-etape="3"] [data-pour="3"], .ag-toile[data-etape="4"] [data-pour="4"] { opacity: 1; transform: none; }

.ag-noeud { position: absolute; z-index: 1; left: var(--x); top: var(--y); display: flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px; background: rgba(255,255,255,.92); color: var(--encre); white-space: nowrap;
  box-shadow: none; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transform: translate(-50%, -50%) scale(.85); opacity: 0; transition: opacity .6s ease, transform .7s cubic-bezier(.3,1.3,.5,1), box-shadow .35s ease; }
.ag-noeud--1 { --x: 22%; --y: 18%; } .ag-noeud--2 { --x: 79%; --y: 24%; } .ag-noeud--3 { --x: 21%; --y: 82%; } .ag-noeud--4 { --x: 77%; --y: 80%; }
.ag-toile.is-relie .ag-noeud { opacity: 1; transform: translate(-50%, -50%); }
.ag-toile.is-relie .ag-noeud--2 { transition-delay: .1s; } .ag-toile.is-relie .ag-noeud--3 { transition-delay: .2s; } .ag-toile.is-relie .ag-noeud--4 { transition-delay: .4s; }
.ag-noeud img, .ag-noeud > i { flex: none; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.ag-noeud > i { display: grid; place-items: center; background: #191919; color: #fff; }
.ag-noeud > i svg { width: 21px; height: 21px; }
.ag-noeud span { display: flex; flex-direction: column; line-height: 1.2; }
.ag-noeud b { font-size: 14.5px; font-weight: 500; }
.ag-noeud small { font-size: 12px; color: #6b6b70; }
/* la personne qui travaille en ce moment s'avance et s'entoure d'orange */
.ag-toile[data-etape="1"] .ag-noeud--1, .ag-toile[data-etape="2"] .ag-noeud--2, .ag-toile[data-etape="3"] .ag-noeud--3, .ag-toile[data-etape="4"] .ag-noeud--4 { transform: translate(-50%, -50%) scale(1.06); box-shadow: 0 0 0 2px var(--orange); transition-delay: 0s; }

/* ---------- Vision : le manifeste, puis le comparatif « un outil » / « le partenariat » ---------- */
.ag-vision { padding: 96px 0 84px; }
.ag-vision .meta { margin-bottom: 22px; }
.ag-duel { max-width: 1040px; margin: 80px auto 0; padding: 40px 40px 28px; border-radius: 24px; background: var(--gris-carte); }
.ag-duel__titre { margin: 0 0 28px; font-size: clamp(24px, 2.2vw, 30px); font-weight: 400; letter-spacing: -.025em; line-height: 1.2; color: var(--ink); }
.ag-duel__tete, .ag-ligne { display: grid; grid-template-columns: 170px minmax(0, 1fr) minmax(0, 1.15fr); gap: 0 18px; align-items: center; }
.ag-duel__tete { padding: 0 0 12px; }
.ag-duel__col { font-size: 14px; font-weight: 500; }
.ag-duel__col--outil { grid-column: 2; color: #8a8a90; }
.ag-duel__col--nous { grid-column: 3; display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
.ag-duel__col--nous svg { width: 22px; height: 22px; padding: 3px; border-radius: 7px; background: var(--orange); color: #fff; }
.ag-duel__lignes { margin: 0; }
.ag-ligne { position: relative; padding: 16px 0; border-top: 1px solid rgba(0,0,0,.08); }
.ag-ligne dt { font-size: 13px; color: #84738f; }
.ag-ligne dd { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 16px; line-height: 1.4; }
.ag-ligne__outil { color: #8a8a90; }
.ag-ligne__outil i { position: relative; flex: none; width: 18px; height: 18px; border-radius: 50%; background: #dcdcd6; }
.ag-ligne__outil i::before, .ag-ligne__outil i::after { content: ""; position: absolute; left: 5px; top: 8.25px; width: 8px; height: 1.5px; border-radius: 1px; background: #fff; transform: rotate(45deg); }
.ag-ligne__outil i::after { transform: rotate(-45deg); }
.ag-ligne__nous { position: relative; padding: 10px 14px; border-radius: 12px; background: #fff; color: var(--ink); box-shadow: none; }
.ag-ligne__nous .fs-coche { width: 20px; height: 20px; animation: none; background-color: var(--orange); }
/* ---------- Le curseur avant / après (aperçu 11/10/2026, demande Axel) ----------
   Dans chaque ligne, la phrase « outil » et la fiche OpterIA sont posées au même endroit.
   La poignée (tête de Bobby) balaie le tableau au défilement, ou à la main : à sa gauche, la fiche
   OpterIA est découverte ; à sa droite, le monde « un outil de plus » reste gris. --p va de 0 à 1 (agence.js). */
.ag-duel--curseur .ag-duel__titre { margin-bottom: 64px; }
.ag-duel--curseur .ag-duel__tete { display: none; }
.ag-duel__zone { position: relative; }
.ag-duel--curseur .ag-ligne { grid-template-columns: 170px minmax(0, 1fr); }
.ag-duel--curseur .ag-ligne dd { grid-column: 2; grid-row: 1; align-self: stretch; padding: 12px 16px; }
.ag-duel--curseur .ag-ligne__nous { z-index: 1; clip-path: inset(0 calc((1 - var(--p, 0)) * 100%) 0 0); }
.ag-duel--curseur .ag-ligne__outil { justify-content: flex-end; text-align: right; opacity: calc(.85 - var(--p, 0) * .35); }   /* calée à droite : la poignée la rattrape en dernier, les deux phrases ne se chevauchent pas */
.ag-curseur { position: absolute; z-index: 3; top: 0; bottom: 0; left: 0; width: 0; touch-action: pan-y; outline: none; cursor: ew-resize; }
.ag-curseur__trait { position: absolute; top: -10px; bottom: 0; left: -1px; width: 2px; border-radius: 2px; background: var(--orange); }
.ag-curseur__bouton { position: absolute; top: 50%; left: 0; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; background: var(--orange); color: #fff; border: 4px solid var(--gris-carte); transform: translate(-50%, -50%); transition: transform .35s cubic-bezier(.22,1,.36,1), border-radius .35s; }
.ag-curseur__bouton svg { width: 28px; height: 28px; }
.ag-curseur__bouton::before, .ag-curseur__bouton::after { content: ""; position: absolute; top: 50%; width: 0; height: 0; border: 5px solid transparent; transform: translateY(-50%); transition: opacity .3s; }
.ag-curseur__bouton::before { right: calc(100% + 6px); border-right-color: var(--orange); }
.ag-curseur__bouton::after { left: calc(100% + 6px); border-left-color: var(--orange); }
.ag-curseur:hover .ag-curseur__bouton, .ag-curseur.is-tenu .ag-curseur__bouton, .ag-curseur:focus-visible .ag-curseur__bouton { transform: translate(-50%, -50%) scale(1.08) rotate(-6deg); border-radius: 50%; }
.ag-curseur__etiq { position: absolute; top: -44px; white-space: nowrap; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 500; line-height: 1; transition: opacity .3s; }
.ag-curseur__etiq--nous { right: 10px; background: var(--orange); color: #fff; opacity: clamp(0, calc(var(--p, 0) * 6 - .4), 1); }
.ag-curseur__etiq--outil { left: 10px; background: rgba(0,0,0,.06); color: #6b6b70; opacity: clamp(0, calc((1 - var(--p, 0)) * 6 - .4), 1); }
html[data-theme="nuit"] .ag-curseur__etiq--outil { background: rgba(255,255,255,.08); color: rgba(255,255,255,.6); }
/* à l'arrivée à l'écran : les libellés et les phrases « outil » apparaissent, la poignée se présente */
html.js .ag-duel .ag-ligne dt, html.js .ag-duel--curseur .ag-curseur { opacity: 0; transition: opacity .5s ease calc(var(--i, 0) * .12s); }
html.js .ag-duel.is-in .ag-ligne dt, html.js .ag-duel--curseur.is-in .ag-curseur { opacity: 1; }

/* ---------- Le fil du partenariat : les étapes à gauche, le fil qui se dessine, Bobby qui grandit à droite ---------- */
.ag-fil { padding-top: 64px; }
.ag-fil__tete { max-width: 780px; margin-bottom: 56px; }
.ag-fil__tete .h { margin: 0; }
.ag-fil__intro { margin: 22px 0 0; font-size: 18px; line-height: 1.55; color: var(--muet); }
.ag-fil__grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 64px; align-items: start; }
.ag-etapes__boite { position: relative; }
.ag-etapes__fil { position: absolute; left: 0; top: 0; width: 64px; height: 100%; overflow: visible; pointer-events: none; }
.ag-etapes__piste { fill: none; stroke: #dcdcd6; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 2 7; }
.ag-etapes__trace { fill: none; stroke: var(--orange); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.ag-etapes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.ag-etape { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: start; padding: 0; }
.ag-etape > div { padding: 26px 28px 28px; border-radius: 24px; background: var(--gris-carte); transition: background-color .5s ease, box-shadow .5s ease, transform .6s cubic-bezier(.22,1,.36,1); }
.ag-etape__noeud { position: relative; z-index: 1; display: grid; place-items: center; width: 36px; height: 36px; margin: 22px 0 0 14px; border-radius: 11px; background: #fff; color: #8a8a90; font-size: 14px; font-weight: 500; box-shadow: 0 0 0 1px rgba(0,0,0,.08); transform: translateX(-50%); margin-left: 32px;
  transition: background-color .35s ease, color .35s ease, box-shadow .35s ease, transform .45s cubic-bezier(.3,1.4,.5,1); }
.ag-etape .cv-badge { margin: 0 0 10px; line-height: 18px; color: #84738f; transition: color .35s ease; }
.ag-etape h3 { margin: 0 0 10px; font-size: 26px; font-weight: 400; letter-spacing: -.03em; line-height: 1.15; color: var(--ink); }
.ag-etape p:last-child { margin: 0; font-size: 16.5px; line-height: 1.6; color: var(--muet); }
html.js .ag-etape > div { opacity: .55; }
html.js .ag-etape > div { transition: opacity .5s ease, background-color .5s ease, box-shadow .5s ease; }
html.js .ag-etape.is-on > div { opacity: 1; }
.ag-etape.is-on .ag-etape__noeud { background: var(--orange); color: #fff; box-shadow: 0 0 0 5px rgba(251,77,23,.14); transform: translateX(-50%) scale(1.06); }
.ag-etape.is-on .cv-badge { color: var(--orange); font-weight: 500; }
.ag-etape.is-courant > div { background: #fff; box-shadow: none; }

.ag-suivi { position: sticky; top: 110px; }
.ag-suivi__cadre { aspect-ratio: auto; min-height: 560px; padding: 40px 32px; }
.ag-bobby { max-width: 360px; padding: 20px; }
.ag-bobby__tete { display: flex; align-items: center; gap: 14px; padding-bottom: 16px; border-bottom: 1px solid #ececea; }
.ag-bobby__tuile { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 14px; background: #e9e9e6; color: #a5a5a0; transform: scale(var(--taille, .8)); transition: transform .6s cubic-bezier(.3,1.4,.5,1), background-color .4s ease, color .4s ease; }
.ag-bobby__tuile svg { width: 34px; height: 34px; overflow: visible; }
.ag-bobby[data-niveau="1"] { --taille: .84; } .ag-bobby[data-niveau="2"] { --taille: .88; } .ag-bobby[data-niveau="3"] { --taille: .94; }
.ag-bobby[data-niveau="4"] { --taille: 1; } .ag-bobby[data-niveau="5"] { --taille: 1.04; } .ag-bobby[data-niveau="6"] { --taille: 1.1; }
.ag-bobby:not([data-niveau="0"]):not([data-niveau="1"]):not([data-niveau="2"]) .ag-bobby__tuile { background: var(--orange); color: #fff; }
.ag-bobby[data-niveau="1"] .ag-bobby__tuile, .ag-bobby[data-niveau="2"] .ag-bobby__tuile { background: #ffe3d8; color: var(--orange); }
.ag-bobby__tete b { display: block; font-size: 16px; font-weight: 500; }
.ag-bobby__etat { display: grid; margin-top: 2px; font-size: 13px; color: #6b6b70; }
.ag-bobby[data-niveau="0"] [data-pour="0"], .ag-bobby[data-niveau="1"] [data-pour="1"], .ag-bobby[data-niveau="2"] [data-pour="2"], .ag-bobby[data-niveau="3"] [data-pour="3"],
.ag-bobby[data-niveau="4"] [data-pour="4"], .ag-bobby[data-niveau="5"] [data-pour="5"], .ag-bobby[data-niveau="6"] [data-pour="6"] { opacity: 1; transform: none; }
.ag-bobby__lab { margin: 16px 0 8px !important; font-size: 12px; color: #84738f; }
.ag-bobby__jauge { position: relative; display: block; height: 8px; border-radius: 999px; background: #efefec; overflow: hidden; }
.ag-bobby__jauge i { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, #ff9a70, var(--orange)); transform-origin: left center; transform: scaleX(var(--p, 0)); transition: transform .7s cubic-bezier(.22,1,.36,1); }
.ag-bobby__liste { display: flex; flex-direction: column; gap: 6px; }
.ag-bobby__liste li { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid rgba(11,11,11,.08); font-size: 13.5px;
  opacity: 0; transform: translateY(6px); transition: opacity .45s ease, transform .5s cubic-bezier(.3,1.3,.5,1); }
.ag-bobby__liste li::before { content: ""; flex: none; width: 16px; height: 16px; border-radius: 50%; background: #191919 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 6.2l2 2 4-4.4' fill='none' stroke='%23fff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }
.ag-bobby__liste li:nth-child(2) { transition-delay: .12s; } .ag-bobby__liste li:nth-child(4) { transition-delay: .12s; } .ag-bobby__liste li:nth-child(6) { transition-delay: .12s; }
.ag-bobby__liste em { margin-left: auto; padding: 2px 8px; border-radius: 999px; background: #fff1eb; color: #c2410c; font-size: 11px; font-style: normal; font-weight: 500; }
.ag-bobby__liste li.is-la { opacity: 1; transform: none; }
.ag-bobby__vide { margin-top: -238px !important; height: 238px; display: grid; place-items: center; font-size: 13px; color: #a0a0a6; text-align: center; pointer-events: none; transition: opacity .35s ease; }
.ag-bobby:not([data-niveau="0"]):not([data-niveau="1"]):not([data-niveau="2"]) .ag-bobby__vide { opacity: 0; }
.ag-bobby__equipe { display: flex; align-items: center; gap: 8px; margin-top: 14px !important; padding-top: 12px; border-top: 1px solid #ececea; font-size: 13px; color: #2f7d3e; opacity: 0; transform: translateY(5px); transition: opacity .45s ease, transform .5s ease; }
.ag-bobby__equipe i { width: 8px; height: 8px; border-radius: 50%; background: var(--vert); box-shadow: 0 0 0 3px rgba(58,166,85,.16); }
.ag-bobby[data-niveau="5"] .ag-bobby__equipe, .ag-bobby[data-niveau="6"] .ag-bobby__equipe { opacity: 1; transform: none; }
.ag-bobby__dernier { display: none; }
.ag-fil__pied { margin-top: 48px; padding-left: 64px; }
.ag-fil__pied .cv-fleche { margin-top: 0; }

/* ---------- Une solution qui apprend : le cerveau s'enrichit, un nouveau Bobby arrive ---------- */
.ag-evolue .meta { margin-bottom: 16px; }
.ag-evolue__actions { margin-top: 32px; }
.ag-evolue__actions .cv-fleche { margin-top: 0; }
.ag-evolue__lien { display: flex; flex-wrap: wrap; gap: 6px 12px; margin: 22px 0 0; font-size: 15px; color: #a0a0a6; }
.ag-cerveau { padding: 18px !important; }
.ag-cerveau .cv-fiche__lab { padding-bottom: 14px; border-bottom: 1px solid #ececea; }
.ag-cerveau__compte { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; background: #eef7ef; color: #2f7d3e; font-size: 11.5px; font-style: normal; font-weight: 500; }
.ag-cerveau__compte::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--vert); animation: cv-point 2.4s ease-in-out infinite; }
.ag-savoirs { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px !important; min-height: 76px; align-content: flex-start; }
.ag-savoirs li { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px 0 10px; border-radius: 999px; border: 1px solid rgba(11,11,11,.09); background: #fafaf8; font-size: 13px; opacity: 0; transform: scale(.7); }
.ag-savoirs li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
.ag-cerveau.e1 .ag-savoirs li:nth-child(1), .ag-cerveau.e2 .ag-savoirs li:nth-child(2), .ag-cerveau.e3 .ag-savoirs li:nth-child(3),
.ag-cerveau.e4 .ag-savoirs li:nth-child(4), .ag-cerveau.e5 .ag-savoirs li:nth-child(5), .ag-cerveau.e6 .ag-savoirs li:nth-child(6) { opacity: 1; transform: none; transition: opacity .35s ease, transform .5s cubic-bezier(.3,1.5,.5,1); }
.ag-cerveau__sous { margin-top: 16px !important; font-size: 12px; color: #84738f; }
.ag-cerveau__bobbys { display: flex; flex-direction: column; gap: 6px; margin-top: 8px !important; }
.ag-cerveau__bobbys li { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 10px; border-radius: 10px; border: 1px solid rgba(11,11,11,.08); font-size: 13.5px; }
.ag-cerveau__bobbys b { font-weight: 500; }
.ag-cerveau__bobbys em { margin-left: auto; padding: 2px 8px; border-radius: 999px; background: #fff1eb; color: #c2410c; font-size: 11px; font-style: normal; font-weight: 500; }
.ag-cerveau__neuf { opacity: 0; transform: translateY(8px) scale(.97); }
.ag-cerveau.e7 .ag-cerveau__neuf { opacity: 1; transform: none; border-color: rgba(251,77,23,.4) !important; background: rgba(251,77,23,.045); transition: opacity .45s ease, transform .6s cubic-bezier(.3,1.4,.5,1), background-color .4s ease; }

/* ---------- Qui on est : le positionnement, puis trois grandes cartes avec photo ---------- */
.ag-equipe__tete { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 64px; align-items: end; }
.ag-equipe__tete .h { margin: 0; }
.ag-equipe__txt { margin: 0; font-size: 17px; line-height: 1.6; color: var(--muet); }
.ag-equipe__txt b { font-weight: 500; color: var(--ink); }
.ag-assos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 52px; }
.ag-asso { display: flex; flex-direction: column; padding: 14px; border-radius: 24px; background: var(--gris-carte); }
.ag-asso__photo { position: relative; aspect-ratio: 4 / 4.3; border-radius: 16px; overflow: hidden; background: var(--gris-cadre); }
.ag-asso__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.22,1,.36,1); }
@media (hover: hover) { .ag-asso:hover .ag-asso__photo img { transform: scale(1.04); } }
html.js .ag-assos .ag-asso__photo { clip-path: inset(100% 0 0 0 round 16px); transition: clip-path 1s cubic-bezier(.65,0,.35,1); }
html.js .ag-assos.is-in .ag-asso__photo { clip-path: inset(0 0 0 0 round 16px); }
html.js .ag-assos .ag-asso:nth-child(2) .ag-asso__photo { transition-delay: .12s; } html.js .ag-assos .ag-asso:nth-child(3) .ag-asso__photo { transition-delay: .24s; }
.ag-asso__corps { display: flex; flex-direction: column; flex: 1; padding: 20px 10px 8px; }
.ag-asso__nom { margin: 0; font-size: 22px; font-weight: 400; letter-spacing: -.02em; line-height: 1.2; color: var(--ink); }
.ag-asso__role { margin: 4px 0 0; font-size: 14px; font-weight: 500; color: var(--orange); }
.ag-asso__txt { margin: 12px 0 20px; font-size: 16px; line-height: 1.5; color: var(--muet); }
.ag-asso__in { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding: 8px 14px 8px 10px; border-radius: 999px; background: #fff; font-size: 14px; color: var(--ink); box-shadow: none; transition: background-color .2s ease; }
.ag-asso__in:hover { background: #f6f6f3; }
.ag-equipe__pied { margin-top: 32px; }

/* ---------- Formation : carte grise coupée en deux, les formations sur la peinture ---------- */
.ag-formation__carte { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-radius: var(--r); background: var(--gris-carte); overflow: hidden; }
.ag-formation__txt { display: flex; flex-direction: column; justify-content: center; padding: 56px 48px; }
.ag-formation__txt .h { margin: 0; font-size: clamp(30px, 2.8vw, 40px); }
.ag-formation__txt .p { margin: 24px 0 0; font-size: 17px; line-height: 1.6; color: var(--muet); }
.ag-formation__cta { margin: 26px 0 0; }   /* lien vers la page /formation (08/10/2026, demande Axel) */
.ag-qualiopi { display: flex; align-items: center; gap: 20px; margin-top: 30px; padding-top: 24px; border-top: 1px solid rgba(0,0,0,.08); }
.ag-qualiopi__logo { flex: none; padding: 8px 10px; border-radius: 12px; background: #fff; }
.ag-qualiopi__logo img { display: block; width: 150px; height: auto; }
.ag-qualiopi .small { margin: 0; font-size: 13px; line-height: 1.5; color: var(--muet); }
.ag-formation__toile { position: relative; display: grid; place-items: center; padding: 48px 40px; isolation: isolate; overflow: hidden; }
.ag-formation__toile .cv-peinture { transform: scale(1.03); }
.ag-programme { max-width: 440px; padding: 18px; }
.ag-programme__lab { padding-bottom: 12px; border-bottom: 1px solid #ececea; }
.ag-programme__liste { list-style: none; margin: 0; padding: 0; }
.ag-programme__liste li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; padding: 12px 8px; margin: 0 -8px; border-radius: 12px; transition: background-color .4s ease; }
.ag-programme__liste li + li { border-top: 1px solid #f0f0ef; }
.ag-programme__liste b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: #f1f1ef; font-size: 13px; font-weight: 500; transition: background-color .35s ease, color .35s ease; }
.ag-programme__liste h3 { margin: 3px 0 4px; font-size: 15px; font-weight: 500; line-height: 1.3; color: var(--encre); }
.ag-programme__liste p { margin: 0; font-size: 13px; line-height: 1.45; color: #6b6b70; }
.ag-programme[data-etape="1"] li:nth-child(1), .ag-programme[data-etape="2"] li:nth-child(2), .ag-programme[data-etape="3"] li:nth-child(3), .ag-programme[data-etape="4"] li:nth-child(4) { background: rgba(251,77,23,.05); }
.ag-programme[data-etape="1"] li:nth-child(1) b, .ag-programme[data-etape="2"] li:nth-child(2) b, .ag-programme[data-etape="3"] li:nth-child(3) b, .ag-programme[data-etape="4"] li:nth-child(4) b { background: var(--orange); color: #fff; }
.ag-formation__blog { margin: 22px 0 0; font-size: 15px; color: var(--muet); }

/* ---------- Questions ---------- */
.cv-faq .faq__a a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Mouvement réduit : tout est posé, rien ne bouge ---------- */
@media (prefers-reduced-motion: reduce) {
  .ag-lien, .ag-coeur, .ag-noeud, .ag-coeur__tuile, .ag-etape > div, .ag-etape__noeud, .ag-bobby__tuile, .ag-bobby__jauge i, .ag-bobby__liste li, .ag-bobby__equipe, .ag-savoirs li, .ag-cerveau__neuf, .ag-asso__photo img { transition: none !important; }
  .ag-oeil, .ag-cerveau__compte::before { animation: none !important; }
  .ag-flux { animation: none !important; opacity: 0 !important; }
  .ag-lien { stroke-dashoffset: 0; } .ag-coeur { opacity: 1; transform: translate(-50%, -50%); } .ag-noeud { opacity: 1; transform: translate(-50%, -50%); }
  html.js .ag-duel .ag-ligne dt, html.js .ag-duel--curseur .ag-curseur { opacity: 1; transition: none; }
  .ag-curseur__bouton { transition: none; }
  html.js .ag-assos .ag-asso__photo { clip-path: none; transition: none; }
  html.js .ag-etape > div { opacity: 1; }
}

/* ---------- Tablette ---------- */
@media (max-width: 1080px) {
  .ag-fil__grille { grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: 36px; }
  .ag-hero__txt { padding: 48px 36px; }
}
@media (max-width: 960px) {
  .ag-hero__carte, .ag-formation__carte { grid-template-columns: minmax(0, 1fr); }
  .ag-toile { min-height: 440px; }
  .ag-vision { padding: 72px 0 64px; }
  .ag-equipe__tete { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .ag-assos { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .ag-asso { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr); gap: 8px; }
  .ag-asso__photo { aspect-ratio: 1; }
  /* la fiche de Bobby devient un bandeau collant en haut de l'écran, au-dessus des étapes */
  .ag-fil__grille { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .ag-suivi { order: -1; top: 72px; z-index: 5; margin-bottom: 20px; }
  .ag-suivi__cadre { min-height: 0; padding: 0; background: none; overflow: visible; border-radius: 16px; }
  .ag-suivi__cadre .cv-peinture { display: none; }
  .ag-bobby { max-width: none; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "tete tete" "jauge jauge" "dernier dernier"; gap: 10px; padding: 12px 14px; border: 1px solid rgba(11,11,11,.06); }
  .ag-bobby__tete { grid-area: tete; padding: 0; border: 0; gap: 12px; }
  .ag-bobby__tuile { width: 40px; height: 40px; border-radius: 12px; } .ag-bobby__tuile svg { width: 28px; height: 28px; }
  .ag-bobby__lab, .ag-bobby__liste, .ag-bobby__vide, .ag-bobby__equipe { display: none; }
  .ag-bobby__jauge { grid-area: jauge; height: 6px; }
  .ag-bobby__dernier { grid-area: dernier; display: grid; min-height: 20px; font-size: 13px; color: var(--encre); }
  .ag-bobby__dernier span { grid-area: 1 / 1; display: flex; align-items: center; gap: 8px; opacity: 0; transform: translateY(5px); transition: opacity .35s ease, transform .4s cubic-bezier(.22,1,.36,1); }
  .ag-bobby__dernier span::before { content: ""; flex: none; width: 14px; height: 14px; border-radius: 50%; background: #191919 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 6.2l2 2 4-4.4' fill='none' stroke='%23fff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }
  .ag-bobby__dernier span[data-pour="0"]::before { background: #dcdcd6; }
  .ag-bobby[data-niveau="0"] .ag-bobby__dernier [data-pour="0"], .ag-bobby[data-niveau="1"] .ag-bobby__dernier [data-pour="1"], .ag-bobby[data-niveau="2"] .ag-bobby__dernier [data-pour="2"], .ag-bobby[data-niveau="3"] .ag-bobby__dernier [data-pour="3"],
  .ag-bobby[data-niveau="4"] .ag-bobby__dernier [data-pour="4"], .ag-bobby[data-niveau="5"] .ag-bobby__dernier [data-pour="5"], .ag-bobby[data-niveau="6"] .ag-bobby__dernier [data-pour="6"] { opacity: 1; transform: none; }
  .ag-fil__pied { padding-left: 0; }
}

/* ---------- Téléphone (390 px) ---------- */
@media (max-width: 720px) {
  .ag-hero { padding: 24px 0 24px; }
  .ag-hero__carte { border-radius: 20px; }
  .ag-hero__txt { padding: 32px 22px 30px; }
  .ag-hero__txt .d { font-size: 34px; }
  .ag-hero__sous { margin-top: 18px; font-size: 16.5px; }
  .ag-hero__actions .btn { flex: 1 1 100%; justify-content: center; }
  .ag-toile { min-height: 380px; }
  .ag-noeud { gap: 7px; padding: 4px 10px 4px 4px; }
  .ag-noeud img, .ag-noeud > i { width: 32px; height: 32px; }
  .ag-noeud > i svg { width: 17px; height: 17px; }
  .ag-noeud b { font-size: 13px; } .ag-noeud small { font-size: 11px; }
  .ag-noeud--1 { --x: 27%; --y: 13%; } .ag-noeud--2 { --x: 72%; --y: 26%; } .ag-noeud--3 { --x: 28%; --y: 76%; } .ag-noeud--4 { --x: 71%; --y: 88%; }
  .ag-coeur { width: 190px; padding: 14px 12px 12px; gap: 4px; border-radius: 16px; }
  .ag-coeur__tuile { width: 44px; height: 44px; border-radius: 13px; } .ag-coeur__tuile svg { width: 32px; height: 32px; }
  .ag-coeur b { font-size: 15px; } .ag-coeur__etat { font-size: 12px; }
  .ag-preuve { flex-direction: column; gap: 4px; margin-top: 20px; }
  .ag-preuve i { display: none; }

  .ag-vision { padding: 56px 0 48px; }
  .ag-duel { margin-top: 48px; padding: 24px 16px 12px; border-radius: 20px; }
  .ag-duel__titre { margin-bottom: 18px; font-size: 22px; }
  .ag-duel__tete { display: none; }
  .ag-ligne { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 16px 0; }
  .ag-ligne dt { font-size: 12px; }
  .ag-ligne dd { font-size: 15px; }
  .ag-ligne__outil { font-size: 14px !important; text-decoration: line-through; text-decoration-color: rgba(0,0,0,.25); }
  .ag-duel--curseur .ag-duel__titre { margin-bottom: 56px; }
  .ag-duel--curseur .ag-ligne { grid-template-columns: minmax(0, 1fr); }
  .ag-duel--curseur .ag-ligne dt { grid-row: 1; }
  .ag-duel--curseur .ag-ligne dd { grid-column: 1; grid-row: 2; padding: 10px 12px; }
  .ag-duel--curseur .ag-ligne__outil { text-decoration: none; }
  .ag-duel--curseur .ag-ligne__outil { font-size: 14px !important; }
  .ag-curseur__bouton { width: 42px; height: 42px; border-radius: 13px; } .ag-curseur__bouton svg { width: 24px; height: 24px; }
  .ag-curseur__etiq { top: -40px; font-size: 12px; padding: 6px 10px; }
  .ag-curseur__etiq--nous { opacity: clamp(0, calc((var(--p, 0) - .34) * 8), 1); }   /* sur mobile, chaque étiquette s'efface avant de déborder du cadre */
  .ag-curseur__etiq--outil { opacity: clamp(0, calc((.6 - var(--p, 0)) * 8), 1); }

  .ag-fil { padding-top: 48px; }
  .ag-fil__tete { margin-bottom: 28px; }
  .ag-fil__intro { font-size: 16.5px; }
  .ag-etapes { gap: 12px; }
  .ag-etape { grid-template-columns: 40px minmax(0, 1fr); }
  .ag-etapes__fil { width: 40px; }
  .ag-etape__noeud { width: 30px; height: 30px; margin: 20px 0 0 20px; border-radius: 9px; font-size: 13px; }
  .ag-etape > div { padding: 20px 18px 22px; border-radius: 20px; }
  .ag-etape h3 { font-size: 22px; }
  .ag-etape p:last-child { font-size: 15.5px; }
  .ag-fil__pied { margin-top: 32px; }
  .ag-fil__pied .btn { width: 100%; justify-content: center; white-space: normal; }

  .ag-evolue__actions .btn { flex: 1 1 100%; justify-content: center; }
  .ag-cerveau .cv-fiche__lab { flex-wrap: wrap; }
  .ag-savoirs { min-height: 110px; }
  .ag-cerveau__bobbys b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

  .ag-assos { margin-top: 32px; }
  .ag-asso { grid-template-columns: minmax(0, 1fr); padding: 12px; border-radius: 20px; }
  .ag-asso__photo { aspect-ratio: 4 / 3.4; }
  .ag-asso__corps { padding: 16px 6px 6px; }
  .ag-equipe__txt { font-size: 16px; }

  .ag-formation__carte { border-radius: 20px; }
  .ag-formation__txt { padding: 30px 20px; }
  .ag-formation__txt .h { font-size: 28px; }
  .ag-formation__txt .p { font-size: 16px; }
  .ag-qualiopi { flex-direction: column; align-items: flex-start; gap: 14px; }
  .ag-formation__toile { padding: 28px 12px; }
}
