[data-v3-gps] {
    --v3-gps-navy: #12243a;
    --v3-gps-blue: #194bd1;
    --v3-gps-paper: #f7f8f5;
    --v3-gps-pin-offset: 36px;
    /* Scène 3D : distance entre le bas d'une étiquette et le haut de son repère (centre du cercle moins 4 px), et montée de
       l'étiquette au-dessus de sa place ; une montée égale à l'écart ajouté laisse le repère, donc le cercle, en place. */
    --v3-gps-ecart-3d: 40px;
    --v3-gps-montee: 0px;
    position: relative;
    isolation: isolate;
    container: v3-gps / inline-size;
    width: 100%;
    max-width: 640px;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    border: 1px solid #314861;
    border-radius: 12px;
    background: var(--v3-gps-navy);
    color: var(--v3-gps-paper);
    font-family: inherit;
    line-height: 1.5;
    box-shadow: 0 18px 48px #12243a18;
}

[data-v3-gps] *,
[data-v3-gps] *::before,
[data-v3-gps] *::after {
    box-sizing: border-box;
}

[data-v3-gps] [hidden] { display: none !important; }
[data-v3-gps] :where(p, h2, h3, ol) { margin: 0; }
[data-v3-gps] :where(button, a) { -webkit-tap-highlight-color: transparent; }
[data-v3-gps] :where(i[data-lucide], .lucide) { display: inline-block; width: 16px; height: 16px; flex: 0 0 auto; vertical-align: middle; stroke-width: 1.8; }
[data-v3-gps] :where(button, a):focus-visible { outline: 2px solid light-dark(#93b8ff, #6385c8); outline-offset: 4px; }

[data-v3-gps] .v3-gps-header {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 56px;
    padding: 10px 12px;
    border-bottom: 1px solid #2b4057;
    background: var(--v3-gps-navy);
}

[data-v3-gps] .v3-gps-identity { display: flex; align-items: center; gap: 9px; min-width: 0; }
[data-v3-gps] .v3-gps-identity > div { min-width: 0; }
[data-v3-gps] .v3-gps-mark { display: grid; flex: 0 0 auto; place-items: center; width: 30px; height: 30px; border: 1px solid light-dark(#3a5b85, #82a6d4); border-radius: 8px; background: #1a3558; color: #adcbff; }
[data-v3-gps] .v3-gps-mark .lucide { width: 18px; height: 18px; }
[data-v3-gps] .v3-gps-title { color: #f7f8f5; font-size: 0.78125rem; font-weight: 650; letter-spacing: -0.015em; line-height: 1.45; }
[data-v3-gps] .v3-gps-caption { margin-top: 2px; color: #b0c0d2; font-size: 0.625rem; line-height: 1.45; }

[data-v3-gps] .v3-gps-map { position: relative; height: 11.5rem; min-height: 184px; overflow: hidden; background: var(--v3-gps-navy); }
[data-v3-gps] .v3-gps-canvas,
[data-v3-gps] .v3-gps-fallback { position: absolute; inset: 0; display: block; width: 100%; height: 100%; pointer-events: none; }
[data-v3-gps] .v3-gps-canvas { z-index: 0; }
[data-v3-gps] .v3-gps-fallback { overflow: hidden; }
[data-v3-gps] .v3-gps-district { position: absolute; width: 55%; height: 72%; background: #193047; }
[data-v3-gps] .v3-gps-district-first { top: -16%; left: -8%; clip-path: polygon(0 0, 90% 0, 100% 35%, 76% 69%, 42% 100%, 0 73%); }
[data-v3-gps] .v3-gps-district-second { right: -7%; bottom: -27%; background: #17343f; clip-path: polygon(28% 0, 72% 13%, 100% 48%, 100% 100%, 0 100%, 0 35%); }
[data-v3-gps] .v3-gps-static-road { position: absolute; border-color: light-dark(#759de0, #678ed0); border-style: solid; border-width: 0; }
[data-v3-gps] .v3-gps-static-road-first { top: calc(16% + var(--v3-gps-pin-offset)); left: 23%; width: 53%; height: 8%; border-top-width: 3px; border-right-width: 3px; border-top-right-radius: 12px; }
[data-v3-gps] .v3-gps-static-road-second { top: calc(24% + var(--v3-gps-pin-offset)); left: 25%; width: 51%; height: 39%; border-right-width: 3px; border-bottom-width: 3px; border-bottom-right-radius: 12px; }
[data-v3-gps] .v3-gps-static-road-third { top: calc(63% + var(--v3-gps-pin-offset)); left: 25%; width: 52%; height: 4%; border-top-width: 3px; border-right-width: 3px; border-top-right-radius: 6px; }

[data-v3-gps] .v3-gps-compass { position: absolute; top: 8px; left: calc(50% - 10px); z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; color: #8da5bd; pointer-events: none; }
[data-v3-gps] .v3-gps-compass .lucide { width: 19px; height: 19px; }
[data-v3-gps] .v3-gps-compass > span { font-size: 0.5rem; letter-spacing: 0.1em; }

[data-v3-gps] .v3-gps-stations { position: absolute; inset: 0; z-index: 2; padding: 0; list-style: none; }
/* --v3-gps-dx/dy : décalage donné par la caméra de la scène 3D, pour que l'étiquette reste au-dessus de son point. */
[data-v3-gps] .v3-gps-station { position: absolute; width: 128px; max-width: 44%; transform: translate(calc(-50% + var(--v3-gps-dx, 0px)), calc(-50% + var(--v3-gps-dy, 0px) - var(--v3-gps-montee))); }
[data-v3-gps] .v3-gps-station:nth-child(1) { top: 16%; left: 23%; }
[data-v3-gps] .v3-gps-station:nth-child(2) { top: 24%; left: 76%; }
[data-v3-gps] .v3-gps-station:nth-child(3) { top: 63%; left: 25%; }
[data-v3-gps] .v3-gps-station:nth-child(4) { top: 67%; left: 77%; }

[data-v3-gps] .v3-gps-station-control {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    width: 100%;
    min-height: 44px;
    padding: 8px;
    border: 1px solid light-dark(#496584, #85a3c5);
    border-radius: 8px;
    background: #1a314b;
    color: #e8eff8;
    font: inherit;
    font-size: 0.71875rem;
    font-weight: 600;
    line-height: 1.35;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 5px 12px #09162526;
    transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}

[data-v3-gps] .v3-gps-station-control::after { position: absolute; top: 100%; left: calc(50% - 0.5px); width: 1px; height: 10px; background: light-dark(#7191b9, #2c496d); content: ''; }
[data-v3-gps] .v3-gps-station-top { display: inline-flex; flex: 0 0 auto; color: #a9c6ef; }
[data-v3-gps] .v3-gps-station-top :where(i[data-lucide], .lucide) { width: 15px; height: 15px; }
[data-v3-gps] .v3-gps-station-number { display: none; font-size: 0.5625rem; font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: 0.06em; }
[data-v3-gps] .v3-gps-station-label { min-width: 0; overflow-wrap: anywhere; }
/* Survol synchronisé (recette du 26/10/2026) : l'étiquette s'allume aussi quand le pointeur est sur son cercle, dans la
   scène (data-v3-gps-hovered, posé par gps-animation.js pour l'étiquette comme pour le cercle). */
[data-v3-gps] .v3-gps-station-control:hover,
[data-v3-gps] .v3-gps-station[data-v3-gps-hovered="true"] .v3-gps-station-control { border-color: light-dark(#a4c6f7, #30496e); background: #274464; color: #ffffff; }
[data-v3-gps] .v3-gps-station[data-v3-gps-hovered="true"]:not([data-v3-gps-selected="true"]) .v3-gps-station-control { box-shadow: 0 0 0 3px #a4c6f733, 0 5px 12px #09162526; }
[data-v3-gps][data-v3-gps-ring-hover="true"] .v3-gps-map { cursor: pointer; }
[data-v3-gps] .v3-gps-station[data-v3-gps-selected="true"] .v3-gps-station-control { border-color: light-dark(#f7f8f5, #393a37); background: var(--v3-gps-paper); color: var(--v3-gps-navy); box-shadow: 0 5px 18px #06132238; }
[data-v3-gps] .v3-gps-station[data-v3-gps-selected="true"] .v3-gps-station-top { color: var(--v3-gps-blue); }
[data-v3-gps] .v3-gps-pin { position: absolute; top: calc(100% + 10px); left: calc(50% - 4px); display: block; width: 8px; height: 8px; border: 2px solid light-dark(#9cb9dd, #6e89ab); border-radius: 50%; background: #203e62; box-shadow: 0 0 0 3px #12243a; pointer-events: none; }
[data-v3-gps] .v3-gps-station[data-v3-gps-selected="true"] .v3-gps-pin { border-color: light-dark(#bdebe3, #0c4b44); background: light-dark(#75cbc0, #016f66); }
/* Scène 3D : le point d'étape est le cercle dessiné par three.js. Le repère HTML (invisible) le place sous l'étiquette ;
   le trait de l'étiquette s'arrête sur le bord du cercle, dont le rayon à l'écran est donné par la scène (--v3-gps-ring). */
[data-v3-gps][data-v3-gps-renderer="3d"] .v3-gps-pin { top: calc(100% + var(--v3-gps-ecart-3d)); visibility: hidden; }
[data-v3-gps][data-v3-gps-renderer="3d"] .v3-gps-station-control::after { height: max(6px, calc(var(--v3-gps-ecart-3d) + 4px - var(--v3-gps-ring, 30px) - 2px)); }
/* Avec Upikat (retour de Paul, 29/10/2026) : il se tient debout au centre du cercle, et sa tête doit rester sous
   l'étiquette. Sa taille à l'écran suit la largeur de la carte (caméra cadrée sur la largeur) : 4,8 % au plus, mesuré
   sur les quatre étapes de 1024 à 2560 px ; l'écart en garde 5 % plus 8 px. Dans le hero, les étiquettes des
   étapes basses (1 et 3) montent d'autant, leurs cercles restent en place (le panneau de lecture est dessous) ; celles
   du haut, déjà sous l'en-tête, restent et ce sont leurs cercles qui descendent. */
[data-v3-gps][data-v3-gps-upikat][data-v3-gps-renderer="3d"] { --v3-gps-ecart-3d: max(40px, calc(5cqi + 8px)); }
[data-v3-gps].v3-gps--hero[data-v3-gps-upikat][data-v3-gps-renderer="3d"] .v3-gps-station:is(:nth-child(1), :nth-child(3)) { --v3-gps-montee: calc(var(--v3-gps-ecart-3d) - 40px); }
/* Upikat 3D arrivé sur l'étape (recette du 28/10/2026) : il se tient au centre du cercle, le trait de l'étiquette passerait
   devant sa tête ; il s'efface le temps de l'arrêt (la flèche, sans Upikat, garde son trait). */
[data-v3-gps] .v3-gps-station-control::after { transition: opacity 200ms ease; }
[data-v3-gps][data-v3-gps-vehicle="arrived"]:has(canvas[data-v3-upikat="pret"]) .v3-gps-station[data-v3-gps-selected="true"] .v3-gps-station-control::after { opacity: 0; }

[data-v3-gps] .v3-gps-map-legend,
[data-v3-gps] .v3-gps-map-hint { position: absolute; bottom: 9px; z-index: 3; display: flex; align-items: center; gap: 6px; color: #afc1d5; font-size: 0.5625rem; line-height: 1.5; pointer-events: none; }
[data-v3-gps] .v3-gps-map-legend { left: 13px; }
[data-v3-gps] .v3-gps-map-legend > span { width: 17px; height: 2px; background: light-dark(#82adf7, #31579a); }
[data-v3-gps] .v3-gps-map-hint { right: 13px; }
[data-v3-gps] .v3-gps-map-hint :where(i[data-lucide], .lucide) { width: 12px; height: 12px; }

[data-v3-gps] .v3-gps-reader { position: relative; z-index: 3; display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid light-dark(#ced9e3, #384550); background: var(--v3-gps-paper); color: var(--v3-gps-navy); }
/* Le contexte garde sa place avant le chargement du JS ; les ancres restent utilisables sans lui. */
[data-v3-gps] .v3-gps-panel { grid-area: 1 / 1; min-width: 0; min-height: 144px; padding: 12px 15px 14px; visibility: hidden; }
[data-v3-gps]:not([data-v3-gps-ready="true"]) .v3-gps-panel:first-child { visibility: visible; }
[data-v3-gps]:not([data-v3-gps-ready="true"]):has(.v3-gps-panel:target) .v3-gps-panel:first-child:not(:target) { visibility: hidden; }
[data-v3-gps]:not([data-v3-gps-ready="true"]) .v3-gps-panel:target,
[data-v3-gps][data-v3-gps-ready="true"] .v3-gps-panel:not([hidden]) { visibility: visible; }
[data-v3-gps][data-v3-gps-ready="true"] .v3-gps-panel { border-top: 0; }
[data-v3-gps] .v3-gps-panel:focus-visible { outline: 2px solid var(--v3-gps-blue); outline-offset: -5px; }
[data-v3-gps] .v3-gps-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
[data-v3-gps] .v3-gps-panel-eyebrow { color: light-dark(#526174, #acbdd2); font-size: 0.5625rem; line-height: 1.5; }
[data-v3-gps] .v3-gps-panel h3 { margin-top: 2px; color: var(--v3-gps-navy); font-size: 1rem; font-weight: 650; letter-spacing: -0.025em; line-height: 1.35; }
[data-v3-gps] .v3-gps-module-link { display: inline-flex; align-items: center; gap: 5px; flex: 0 0 auto; min-height: 36px; padding: 7px 0 7px 7px; color: var(--v3-gps-blue); font-size: 0.6875rem; font-weight: 600; text-decoration: none; text-underline-offset: 3px; }
[data-v3-gps] .v3-gps-module-link :where(i[data-lucide], .lucide) { width: 14px; height: 14px; }
[data-v3-gps] .v3-gps-module-link:hover { text-decoration: underline; }
[data-v3-gps] .v3-gps-module-link:focus-visible { outline-color: var(--v3-gps-blue); outline-offset: 2px; }
[data-v3-gps] .v3-gps-panel-description { max-width: 72ch; margin-top: 7px; color: light-dark(#475b70, #abc2da); font-size: 0.71875rem; line-height: 1.6; }

@container v3-gps (min-width: 480px) {
    [data-v3-gps] .v3-gps-header { min-height: 72px; padding: 16px 22px; }
    [data-v3-gps] .v3-gps-identity { gap: 11px; }
    [data-v3-gps] .v3-gps-mark { width: 34px; height: 34px; }
    [data-v3-gps] .v3-gps-mark .lucide { width: 20px; height: 20px; }
    [data-v3-gps] .v3-gps-title { font-size: 0.875rem; }
    [data-v3-gps] .v3-gps-caption { font-size: 0.6875rem; }
    [data-v3-gps] .v3-gps-map { --v3-gps-pin-offset: 44px; height: 18.125rem; min-height: 290px; }
    [data-v3-gps] .v3-gps-compass { top: 20px; right: auto; left: 22px; }
    [data-v3-gps] .v3-gps-compass .lucide { width: 23px; height: 23px; }
    [data-v3-gps] .v3-gps-station { width: 132px; max-width: 22%; }
    [data-v3-gps] .v3-gps-station:nth-child(1) { top: 56%; left: 14%; }
    [data-v3-gps] .v3-gps-station:nth-child(2) { top: 14%; left: 38%; }
    [data-v3-gps] .v3-gps-station:nth-child(3) { top: 58%; left: 64%; }
    [data-v3-gps] .v3-gps-station:nth-child(4) { top: 16%; left: 86%; }
    [data-v3-gps] .v3-gps-station-control { flex-direction: column; align-items: stretch; justify-content: center; gap: 5px; min-height: 60px; padding: 9px 10px; font-size: 0.75rem; }
    [data-v3-gps] .v3-gps-station-top { align-items: center; justify-content: space-between; }
    [data-v3-gps] .v3-gps-station-number { display: inline-block; }
    [data-v3-gps] .v3-gps-static-road-first { top: calc(14% + var(--v3-gps-pin-offset)); left: 14%; width: 24%; height: 42%; border-width: 0 3px 3px 0; border-radius: 0 0 12px; }
    [data-v3-gps] .v3-gps-static-road-second { top: calc(14% + var(--v3-gps-pin-offset)); left: 38%; width: 26%; height: 44%; border-width: 3px 3px 0 0; border-radius: 0 12px 0 0; }
    [data-v3-gps] .v3-gps-static-road-third { top: calc(16% + var(--v3-gps-pin-offset)); left: 64%; width: 22%; height: 42%; border-width: 0 3px 3px 0; border-radius: 0 0 12px; }
    [data-v3-gps] .v3-gps-map-legend,
    [data-v3-gps] .v3-gps-map-hint { bottom: 15px; gap: 8px; font-size: 0.625rem; }
    [data-v3-gps] .v3-gps-map-legend { left: 22px; }
    [data-v3-gps] .v3-gps-map-hint { right: 22px; }
    [data-v3-gps] .v3-gps-panel { min-height: 128px; padding: 17px 22px 19px; }
    [data-v3-gps] .v3-gps-panel-eyebrow { font-size: 0.625rem; }
    [data-v3-gps] .v3-gps-panel h3 { font-size: 1.125rem; }
    [data-v3-gps] .v3-gps-panel-description { font-size: 0.75rem; }
    [data-v3-gps] .v3-gps-module-link { gap: 7px; font-size: 0.75rem; }
}

@container v3-gps (max-width: 320px) {
    [data-v3-gps] .v3-gps-header { gap: 7px; padding-inline: 10px; }
    [data-v3-gps] .v3-gps-title { font-size: 0.75rem; }
    [data-v3-gps] .v3-gps-station { max-width: 42%; }
    [data-v3-gps] .v3-gps-station-control { gap: 5px; padding-inline: 7px; font-size: 0.6875rem; }
    [data-v3-gps] .v3-gps-map-hint { font-size: 0.53125rem; }
}

/* Variante « hero » de l'accueil : carte plus grande, étapes décalées vers la droite (le téléphone d'Upikat chevauche le
   coin gauche), panneau de lecture court avec étiquettes. */
[data-v3-gps].v3-gps--hero { max-width: none; border-color: #2c4460; box-shadow: 0 34px 80px #12243a2e; }
[data-v3-gps].v3-gps--hero .v3-gps-static-road { display: none; }
[data-v3-gps] .v3-gps-panel-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; }
[data-v3-gps] .v3-gps-panel-chips li { padding: 3px 8px; border: 1px solid light-dark(#d3e0ff, #323f62); border-radius: 6px; background: light-dark(#edf2ff, #1d2439); color: light-dark(#1745b3, #a8c4fc); font-size: 0.6875rem; font-weight: 600; line-height: 1.5; }
[data-v3-gps].v3-gps--hero .v3-gps-panel:not([hidden]) { animation: v3-gps-panneau 320ms ease-out; }
@keyframes v3-gps-panneau { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Aperçu d'interface de chaque étape (components/_gps_etape_apercu.html.twig, recette du 26/10/2026) : quelques éléments
   repris des écrans réels, sur une carte blanche, qui se composent à l'ouverture du panneau (jauges qui se remplissent,
   segments qui s'allument, coches dessinées, statuts qui arrivent). L'état final est l'état au repos : sans animation
   (mouvements réduits), tout est déjà en place. */
[data-v3-gps] .v3-gps-apercu { --v3-apercu-delai: 260ms; display: grid; gap: 7px; margin-top: 9px; padding: 9px 10px; border: 1px solid light-dark(#dfe6ee, #384049); border-radius: 8px; background: light-dark(#ffffff, #1b2129); color: var(--v3-gps-navy); font-size: 0.6875rem; line-height: 1.35; }
[data-v3-gps] .v3-gps-apercu :where(ul, ol) { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
[data-v3-gps] .v3-gps-apercu li { display: flex; align-items: center; gap: 8px; min-width: 0; }
[data-v3-gps] .v3-gps-apercu :where(i[data-lucide], .lucide) { width: 12px; height: 12px; }
[data-v3-gps] .v3-gps-apercu strong { display: block; overflow: hidden; color: var(--v3-gps-navy); font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
[data-v3-gps] .v3-gps-apercu-badge { flex: 0 0 auto; margin-left: auto; padding: 2px 6px; border: 1px solid transparent; border-radius: 4px; font-size: 0.5625rem; font-weight: 650; line-height: 1.45; white-space: nowrap; }
[data-v3-gps] .v3-gps-apercu-badge--vert { border-color: light-dark(#bfe3cf, #1d4d37); background: light-dark(#eef8f2, #17291f); color: light-dark(#1f6b47, #88d1a7); }
[data-v3-gps] .v3-gps-apercu-badge--bleu { border-color: light-dark(#d3e0ff, #323f62); background: light-dark(#edf2ff, #1d2439); color: light-dark(#1745b3, #a8c4fc); }
[data-v3-gps] .v3-gps-apercu-badge--ambre { border-color: light-dark(#f1d9ae, #543d0c); background: light-dark(#fdf4e6, #302106); color: light-dark(#8a4b0b, #f2ab74); }
[data-v3-gps] .v3-gps-apercu-badge--violet { border-color: light-dark(#ddd6fe, #433a63); background: light-dark(#f5f3ff, #252134); color: light-dark(#5b21b6, #c6bafd); }
[data-v3-gps] .v3-gps-apercu-badge--neutre { border-color: light-dark(#dce2e8, #3a4148); background: light-dark(#f0f3f6, #141a22); color: light-dark(#45576b, #b0c4db); }
[data-v3-gps] .v3-gps-apercu-pied { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding-top: 8px; border-top: 1px solid light-dark(#edf1f5, #383c41); }
[data-v3-gps] .v3-gps-apercu-puce { display: inline-flex; align-items: center; gap: 5px; color: light-dark(#526174, #acbdd2); font-size: 0.625rem; font-weight: 600; }
[data-v3-gps] .v3-gps-apercu-puce--ia .lucide { color: light-dark(#6d4ed8, #afa7f9); }
[data-v3-gps] .v3-gps-apercu-puce--signe { margin-left: auto; padding: 2px 7px; border: 1px solid light-dark(#bfe3cf, #1d4d37); border-radius: 4px; background: light-dark(#eef8f2, #17291f); color: light-dark(#1f6b47, #88d1a7); }
[data-v3-gps] .v3-gps-apercu-ia { padding: 0 4px; border-radius: 3px; background: light-dark(#ede9fe, #291f42); color: light-dark(#5b21b6, #c6bafd); font-size: 0.5rem; font-weight: 700; letter-spacing: 0.04em; }

/* Entretien : les deux parties se remplissent l'une après l'autre, puis la signature arrive. */
[data-v3-gps] .v3-gps-apercu-avatar { display: grid; flex: 0 0 auto; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: light-dark(#e7efff, #19253f); color: light-dark(#1745b3, #a8c4fc); font-size: 0.5625rem; font-weight: 700; }
[data-v3-gps] .v3-gps-apercu-avatar--manager { background: light-dark(#e9f6f2, #122a24); color: light-dark(#1f6b5c, #85cebc); }
[data-v3-gps] .v3-gps-apercu-ligne { display: grid; flex: 1 1 auto; gap: 4px; min-width: 0; color: light-dark(#45576b, #b0c4db); font-size: 0.625rem; }
[data-v3-gps] .v3-gps-apercu-jauge { display: block; height: 5px; overflow: hidden; border-radius: 3px; background: light-dark(#e7ecf2, #161c24); }
[data-v3-gps] .v3-gps-apercu-jauge > span { display: block; width: 100%; height: 100%; border-radius: inherit; background: var(--v3-gps-blue); transform-origin: left center; }
[data-v3-gps] .v3-gps-apercu-parties li + li .v3-gps-apercu-jauge > span { background: light-dark(#2f9e7f, #0d513f); }
[data-v3-gps] .v3-gps-apercu-compte { flex: 0 0 auto; color: light-dark(#526174, #acbdd2); font-size: 0.5625rem; font-weight: 650; font-variant-numeric: tabular-nums; }

/* Compétences : la jauge à cinq segments des avis, allumée segment par segment. */
[data-v3-gps] .v3-gps-apercu-competences li > span:first-child { flex: 1 1 auto; min-width: 0; overflow: hidden; color: light-dark(#26384d, #c2d9f3); font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
[data-v3-gps] .v3-gps-apercu-segments { display: grid; flex: 0 0 62px; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 3px; }
[data-v3-gps] .v3-gps-apercu-segments > span { height: 5px; border-radius: 3px; background: light-dark(#e7ecf2, #161c24); }
[data-v3-gps] .v3-gps-apercu-segments--1 > span:nth-child(-n + 1) { background: light-dark(#7c5ce0, #3e2c75); }
[data-v3-gps] .v3-gps-apercu-segments--2 > span:nth-child(-n + 2) { background: light-dark(#d68a1c, #6f460d); }
[data-v3-gps] .v3-gps-apercu-segments--4 > span:nth-child(-n + 4) { background: light-dark(#2f9e64, #0c512f); }
[data-v3-gps] .v3-gps-apercu-competences .v3-gps-apercu-badge { min-width: 70px; text-align: center; }

/* Formation : le circuit de validation se parcourt, l'étape RH reste en cours. */
[data-v3-gps] .v3-gps-apercu-circuit { grid-template-columns: repeat(3, minmax(0, 1fr)); }
[data-v3-gps] .v3-gps-apercu-circuit li { position: relative; flex-direction: column; gap: 4px; color: light-dark(#45576b, #b0c4db); font-size: 0.5625rem; font-weight: 600; }
[data-v3-gps] .v3-gps-apercu-circuit li + li::before { position: absolute; top: 9px; right: calc(50% + 12px); left: calc(-50% + 12px); height: 2px; border-radius: 1px; background: light-dark(#2f9e64, #0c512f); content: ''; transform-origin: left center; }
[data-v3-gps] .v3-gps-apercu-circuit li.v3-gps-apercu-circuit-encours::before { background: light-dark(#cfd8e3, #1f2e40); }
[data-v3-gps] .v3-gps-apercu-circuit-point { display: grid; place-items: center; width: 20px; height: 20px; border: 2px solid light-dark(#2f9e64, #43ac72); border-radius: 50%; background: light-dark(#2f9e64, #0c512f); color: #ffffff; }
[data-v3-gps] .v3-gps-apercu-circuit-point .lucide { width: 11px; height: 11px; stroke-width: 3; }
[data-v3-gps] .v3-gps-apercu-circuit-encours .v3-gps-apercu-circuit-point { border-color: var(--v3-gps-blue); background: light-dark(#ffffff, #1b2129); box-shadow: inset 0 0 0 3px #ffffff, inset 0 0 0 10px var(--v3-gps-blue); }
[data-v3-gps] .v3-gps-apercu-session { display: flex; align-items: center; gap: 8px; padding-top: 8px; border-top: 1px solid light-dark(#edf1f5, #383c41); }
[data-v3-gps] .v3-gps-apercu-icone { display: grid; flex: 0 0 auto; place-items: center; width: 26px; height: 26px; border-radius: 6px; background: light-dark(#edf2ff, #1d2439); color: var(--v3-gps-blue); }
[data-v3-gps] .v3-gps-apercu-icone .lucide { width: 14px; height: 14px; }
[data-v3-gps] .v3-gps-apercu-session-texte { display: grid; flex: 1 1 auto; min-width: 0; color: light-dark(#526174, #acbdd2); font-size: 0.5625rem; }

/* Actions : la première est cochée, les suivantes reçoivent leur responsable et leur statut. */
[data-v3-gps] .v3-gps-apercu-case { display: grid; flex: 0 0 auto; place-items: center; width: 16px; height: 16px; border: 1.5px solid light-dark(#b6c3d2, #3b4b5c); border-radius: 4px; background: light-dark(#ffffff, #1b2129); color: #ffffff; }
[data-v3-gps] .v3-gps-apercu-case .lucide { width: 11px; height: 11px; stroke-width: 3; }
[data-v3-gps] .v3-gps-apercu-action-faite .v3-gps-apercu-case { border-color: light-dark(#2f9e64, #43ac72); background: light-dark(#2f9e64, #0c512f); }
[data-v3-gps] .v3-gps-apercu-action-faite strong { color: light-dark(#6b7a8c, #9eaec1); text-decoration: line-through; text-decoration-color: #9aa8b8; }
[data-v3-gps] .v3-gps-apercu-action-texte { display: grid; flex: 1 1 auto; min-width: 0; color: light-dark(#526174, #acbdd2); font-size: 0.5625rem; }

@media (prefers-reduced-motion: no-preference) {
    [data-v3-gps] .v3-gps-panel:not([hidden]) .v3-gps-apercu-jauge > span { animation: v3-apercu-jauge 900ms cubic-bezier(0.3, 0.7, 0.2, 1) var(--v3-apercu-delai) both; }
    [data-v3-gps] .v3-gps-panel:not([hidden]) .v3-gps-apercu-parties li + li .v3-gps-apercu-jauge > span { animation-delay: calc(var(--v3-apercu-delai) + 500ms); }
    [data-v3-gps] .v3-gps-panel:not([hidden]) .v3-gps-apercu-compte { animation: v3-apercu-apparition 260ms ease-out calc(var(--v3-apercu-delai) + 700ms) both; }
    [data-v3-gps] .v3-gps-panel:not([hidden]) .v3-gps-apercu-parties li + li .v3-gps-apercu-compte { animation-delay: calc(var(--v3-apercu-delai) + 1200ms); }
    [data-v3-gps] .v3-gps-panel:not([hidden]) .v3-gps-apercu-puce--signe { animation: v3-apercu-tampon 420ms cubic-bezier(0.3, 1.5, 0.5, 1) calc(var(--v3-apercu-delai) + 1500ms) both; }
    [data-v3-gps] .v3-gps-panel:not([hidden]) .v3-gps-apercu-segments > span { animation: v3-apercu-segment 240ms ease-out both; }
    [data-v3-gps] .v3-gps-panel:not([hidden]) .v3-gps-apercu-competences li:nth-child(1) .v3-gps-apercu-segments > span { animation-delay: calc(var(--v3-apercu-delai) + var(--v3-apercu-rang, 0) * 90ms); }
    [data-v3-gps] .v3-gps-panel:not([hidden]) .v3-gps-apercu-competences li:nth-child(2) .v3-gps-apercu-segments > span { animation-delay: calc(var(--v3-apercu-delai) + 200ms + var(--v3-apercu-rang, 0) * 90ms); }
    [data-v3-gps] .v3-gps-panel:not([hidden]) .v3-gps-apercu-competences li:nth-child(3) .v3-gps-apercu-segments > span { animation-delay: calc(var(--v3-apercu-delai) + 400ms + var(--v3-apercu-rang, 0) * 90ms); }
    [data-v3-gps] .v3-gps-apercu-segments > span:nth-child(2) { --v3-apercu-rang: 1; }
    [data-v3-gps] .v3-gps-apercu-segments > span:nth-child(3) { --v3-apercu-rang: 2; }
    [data-v3-gps] .v3-gps-apercu-segments > span:nth-child(4) { --v3-apercu-rang: 3; }
    [data-v3-gps] .v3-gps-apercu-segments > span:nth-child(5) { --v3-apercu-rang: 4; }
    [data-v3-gps] .v3-gps-panel:not([hidden]) .v3-gps-apercu-competences .v3-gps-apercu-badge { animation: v3-apercu-apparition 260ms ease-out calc(var(--v3-apercu-delai) + 700ms) both; }
    [data-v3-gps] .v3-gps-panel:not([hidden]) .v3-gps-apercu-circuit-point { animation: v3-apercu-tampon 360ms cubic-bezier(0.3, 1.5, 0.5, 1) both; }
    [data-v3-gps] .v3-gps-panel:not([hidden]) .v3-gps-apercu-circuit li::before { animation: v3-apercu-jauge 420ms ease-out both; }
    [data-v3-gps] .v3-gps-panel:not([hidden]) .v3-gps-apercu-circuit li:nth-child(1) .v3-gps-apercu-circuit-point { animation-delay: var(--v3-apercu-delai); }
    [data-v3-gps] .v3-gps-panel:not([hidden]) .v3-gps-apercu-circuit li:nth-child(2)::before { animation-delay: calc(var(--v3-apercu-delai) + 300ms); }
    [data-v3-gps] .v3-gps-panel:not([hidden]) .v3-gps-apercu-circuit li:nth-child(2) .v3-gps-apercu-circuit-point { animation-delay: calc(var(--v3-apercu-delai) + 680ms); }
    [data-v3-gps] .v3-gps-panel:not([hidden]) .v3-gps-apercu-circuit li:nth-child(3)::before { animation-delay: calc(var(--v3-apercu-delai) + 980ms); }
    [data-v3-gps] .v3-gps-panel:not([hidden]) .v3-gps-apercu-circuit li:nth-child(3) .v3-gps-apercu-circuit-point { animation: v3-apercu-tampon 360ms cubic-bezier(0.3, 1.5, 0.5, 1) calc(var(--v3-apercu-delai) + 1360ms) both, v3-apercu-encours 1.8s ease-in-out calc(var(--v3-apercu-delai) + 1800ms) infinite; }
    [data-v3-gps] .v3-gps-panel:not([hidden]) .v3-gps-apercu-session .v3-gps-apercu-badge { animation: v3-apercu-apparition 280ms ease-out calc(var(--v3-apercu-delai) + 1100ms) both; }
    [data-v3-gps] .v3-gps-panel:not([hidden]) .v3-gps-apercu-action-faite .v3-gps-apercu-case { animation: v3-apercu-coche 420ms ease-out var(--v3-apercu-delai) both; }
    [data-v3-gps] .v3-gps-panel:not([hidden]) .v3-gps-apercu-actions .v3-gps-apercu-badge { animation: v3-apercu-apparition 280ms ease-out both; }
    [data-v3-gps] .v3-gps-panel:not([hidden]) .v3-gps-apercu-actions li:nth-child(1) .v3-gps-apercu-badge { animation-delay: calc(var(--v3-apercu-delai) + 380ms); }
    [data-v3-gps] .v3-gps-panel:not([hidden]) .v3-gps-apercu-actions li:nth-child(2) .v3-gps-apercu-badge { animation-delay: calc(var(--v3-apercu-delai) + 640ms); }
    [data-v3-gps] .v3-gps-panel:not([hidden]) .v3-gps-apercu-actions li:nth-child(3) .v3-gps-apercu-badge { animation-delay: calc(var(--v3-apercu-delai) + 900ms); }
}
@keyframes v3-apercu-jauge { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes v3-apercu-segment { from { opacity: 0.25; transform: scaleY(0.4); } to { opacity: 1; transform: none; } }
@keyframes v3-apercu-apparition { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }
@keyframes v3-apercu-tampon { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: none; } }
@keyframes v3-apercu-coche { 0% { border-color: light-dark(#b6c3d2, #3b4b5c); background: light-dark(#ffffff, #1b2129); color: #ffffff00; } 60% { border-color: light-dark(#2f9e64, #43ac72); background: light-dark(#2f9e64, #0c512f); color: #ffffff00; } 100% { border-color: light-dark(#2f9e64, #43ac72); background: light-dark(#2f9e64, #0c512f); color: #ffffff; } }
@keyframes v3-apercu-encours { 0%, 100% { box-shadow: inset 0 0 0 3px #ffffff, inset 0 0 0 10px var(--v3-gps-blue), 0 0 0 0 #194bd133; } 50% { box-shadow: inset 0 0 0 3px #ffffff, inset 0 0 0 10px var(--v3-gps-blue), 0 0 0 5px #194bd11f; } }

@container v3-gps (min-width: 480px) {
    [data-v3-gps].v3-gps--hero .v3-gps-map { --v3-gps-pin-offset: 44px; height: 23rem; min-height: 368px; }
    [data-v3-gps].v3-gps--hero .v3-gps-station:nth-child(1) { top: 60%; left: 37%; }
    [data-v3-gps].v3-gps--hero .v3-gps-station:nth-child(2) { top: 16%; left: 53%; }
    [data-v3-gps].v3-gps--hero .v3-gps-station:nth-child(3) { top: 58%; left: 70%; }
    [data-v3-gps].v3-gps--hero .v3-gps-station:nth-child(4) { top: 18%; left: 87%; }
}

@media (prefers-reduced-motion: reduce) {
    [data-v3-gps] .v3-gps-station-control { transition: none; }
    [data-v3-gps].v3-gps--hero .v3-gps-panel:not([hidden]) { animation: none; }
}

@media (forced-colors: active) {
    [data-v3-gps] { border-color: CanvasText; }
    [data-v3-gps] .v3-gps-station-control { border-color: ButtonText; }
    [data-v3-gps] .v3-gps-station[data-v3-gps-selected="true"] .v3-gps-station-control { outline: 2px solid Highlight; outline-offset: 2px; }
}
