/* ============ Page d'accueil : animations et démonstrations ============
   Principe : l'état de base de chaque élément est son état FINAL (visible). Les animations
   partent d'un « from » masqué avec fill-mode both : sans animation (mouvement réduit,
   ancien navigateur), tout reste lisible. */

@keyframes ap      { from { opacity: 0; transform: translateY(12px); } }
@keyframes ap-gauche { from { opacity: 0; transform: translateX(-16px); } }
@keyframes pop     { from { opacity: 0; transform: scale(.3); } 70% { transform: scale(1.15); } }
@keyframes flotte  { 50% { transform: translateY(-10px); } }
@keyframes pouls   { 0% { box-shadow: 0 0 0 0 rgba(217,119,6,.5); } 100% { box-shadow: 0 0 0 16px rgba(217,119,6,0); } }
@keyframes pouls-vert { 0% { box-shadow: 0 0 0 0 rgba(15,118,110,.45); } 100% { box-shadow: 0 0 0 14px rgba(15,118,110,0); } }
@keyframes tape    { from { max-width: 0; } }
@keyframes pousse  { from { transform: scaleY(0); } }
@keyframes etire   { from { transform: scaleX(0); } }
@keyframes trace   { from { stroke-dashoffset: var(--long, 300); } }
@keyframes attente { from { fill: #d97706; } }
@keyframes defile  { to { transform: translateX(-50%); } }
@keyframes avance  { from { transform: scaleX(0); } }
@keyframes balaie  { 0%, 100% { top: 8%; } 50% { top: 88%; } }
@keyframes halo    { 50% { opacity: .9; transform: scale(1.08); } }

.ap  { animation: ap .55s cubic-bezier(.2,.7,.2,1) both; animation-delay: var(--d, 0s); }
.pop { animation: pop .45s cubic-bezier(.2,.7,.2,1) both; animation-delay: var(--d, 0s); }

/* Apparition au défilement (classe .anim posée par accueil.js) */
.vitrine.anim .rev { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.vitrine.anim .rev.vu { opacity: 1; transform: none; }

.v-nav a { white-space: nowrap; }
@media (max-width: 1120px) { .v-nav nav { display: none; } .v-nav .v-actions { margin-left: auto; } }

/* ---------- Héros animé ---------- */
.v-hero { position: relative; overflow: hidden; }
.v-hero::before, .v-hero::after { content: ""; position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none; animation: halo 9s ease-in-out infinite; }
.v-hero::before { width: 420px; height: 420px; left: -120px; top: -160px; background: rgba(45,212,191,.22); }
.v-hero::after  { width: 380px; height: 380px; right: -80px; bottom: -180px; background: rgba(217,119,6,.16); animation-delay: -4s; }
.v-hero > * { position: relative; z-index: 1; }
.v-hero-texte > * { animation: ap .7s cubic-bezier(.2,.7,.2,1) both; }
.v-hero-texte > :nth-child(2) { animation-delay: .08s; } .v-hero-texte > :nth-child(3) { animation-delay: .16s; }
.v-hero-texte > :nth-child(4) { animation-delay: .24s; } .v-hero-texte > :nth-child(5) { animation-delay: .32s; }
/* ---------- Film d'en-tête : trois plans enchaînés (collecte, carte, analyse) ---------- */
@keyframes f-entre  { from { opacity: 0; transform: scale(1.07); } }
@keyframes f-fondu  { from { opacity: 0; } }
@keyframes f-derive { to { transform: translateX(46px); } }
@keyframes f-flux   { to { stroke-dashoffset: -11; } }
@keyframes f-respire { 50% { transform: translateY(-2.5px); } }
@keyframes f-onde   { from { transform: scale(.4); opacity: .95; } to { transform: scale(2.4); opacity: 0; } }
@keyframes f-remplit { from { fill-opacity: 0; } }
@keyframes f-sel    { from { opacity: 0; transform: scale(.5); } 50% { opacity: 1; transform: scale(1.2); } }
@keyframes f-devoile { from { clip-path: inset(0 100% 0 0); } }
.v-visuel.v-film { padding: 0; animation: ap .9s .25s cubic-bezier(.2,.7,.2,1) both; }
.f-ecran { position: relative; aspect-ratio: 560 / 360; border-radius: 18px; overflow: hidden; background: #071512; color: var(--texte); box-shadow: 0 30px 70px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.14); }
.f-plan { position: absolute; inset: 0; display: none; }
.f-plan.actif { display: block; animation: f-entre .8s cubic-bezier(.2,.7,.2,1) both; }
.f-plan > svg { display: block; width: 100%; height: 100%; }
.f-plan svg text { font-family: inherit; }
/* Plan 1 */
.f-nuage { animation: f-derive 12s ease-in-out infinite alternate; }
.f-parcelle { --long: 100; stroke-dasharray: 100; animation: trace 2.6s .5s linear both; }
.f-fond { animation: f-fondu .9s 3.1s both; }
.f-pin, .f-pt, .f-sel, .f-onde { transform-box: fill-box; transform-origin: center; }
.f-pin { animation: pop .45s var(--d, 0s) both; }
.f-signal { animation: f-flux .9s linear infinite; }
.f-buste { animation: f-respire 3.2s ease-in-out infinite; }
.f-onde { animation: f-onde 2s ease-out infinite; }
.f-saisie { animation: ap .6s 1.1s cubic-bezier(.2,.7,.2,1) both; }
.f-ligne { animation: ap .5s var(--d, 0s) both; }
/* Plan 2 */
.f-poly { --long: 100; stroke-dasharray: 100; animation: trace 1.1s var(--d, 0s) ease-out both, f-remplit .6s calc(var(--d, 0s) + .8s) both; }
.f-pt { animation: pop .45s var(--d, 0s) both; }
.f-pt.att { animation: pop .45s var(--d, 0s) both, attente .01s var(--v, 0s) both; }
.f-sel { animation: f-sel 1.5s 4.3s ease-in-out infinite both; }
.f-fiche { position: absolute; right: 14px; top: 14px; display: grid; gap: 3px; justify-items: start; padding: 11px 13px; border-radius: 12px; background: #fff; font-size: 12px; box-shadow: 0 14px 34px rgba(16,32,28,.28); animation: ap .5s 4.6s both; }
.f-fiche small { color: var(--doux); font-size: 10.5px; } .f-fiche b { font-size: 14px; } .f-fiche span { color: var(--doux); } .f-fiche em { font-style: normal; margin-top: 4px; }
.f-legende { position: absolute; left: 12px; bottom: 12px; display: flex; gap: 12px; padding: 6px 13px; border-radius: 999px; background: rgba(255,255,255,.94); font-size: 11.5px; color: var(--doux); font-weight: 600; white-space: nowrap; box-shadow: 0 6px 18px rgba(16,32,28,.18); }
.f-legende i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; }
/* Plan 3 */
.f-stats { background: #f1f6f4; padding: 16px; font-size: 13px; }
.f-stats small { color: var(--doux); font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.f-stats .d-graphes { grid-template-columns: 1.5fr .75fr 1fr; }
.f-stats .d-axes { font-size: 9px; gap: 3px; } .f-stats .d-axes span { overflow: visible; white-space: nowrap; }
.f-courbe svg { width: 100%; height: 100%; min-height: 0; animation: f-devoile 1.8s 2.8s cubic-bezier(.3,0,.2,1) both; }
/* Chapitres */
.f-chapitres { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.f-chapitres span { position: relative; display: flex; align-items: center; gap: 8px; padding-bottom: 11px; color: #8fb0a8; font-size: 13px; font-weight: 600; cursor: pointer; transition: color .3s; }
.f-chapitres span::before, .f-chapitres span.actif::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 3px; background: rgba(255,255,255,.16); }
.f-chapitres span.actif { color: #fff; }
.f-chapitres span.actif::after { background: #5eead4; transform-origin: left; animation: avance 7.5s linear both; }
.f-chapitres b { display: grid; place-items: center; width: 21px; height: 21px; border-radius: 50%; background: rgba(94,234,212,.16); color: #5eead4; font-size: 11px; flex: none; transition: background .3s, color .3s; }
.f-chapitres span.actif b { background: #5eead4; color: #0c2a26; }
.v-hero .btn.principal { box-shadow: 0 10px 30px rgba(15,118,110,.45); }
.vitrine .btn.grand { transition: transform .15s, box-shadow .15s, background .15s; } .vitrine .btn.grand:hover { transform: translateY(-2px); }

/* ---------- Fond de page : teinte, halos colorés et courbes de niveau ---------- */
.vitrine { background-color: #edf5f1; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='640' height='640'%3E%3Cg fill='none' stroke='%230f766e' stroke-opacity='.085' stroke-width='1.4'%3E%3Cpath d='M0 50C160 -10 480 110 640 50M0 92C160 42 480 142 640 92M0 150C160 120 480 180 640 150M0 262C160 192 480 332 640 262M0 304C160 254 480 354 640 304M0 352C160 326 480 378 640 352M0 470C160 410 480 530 640 470M0 512C160 472 480 552 640 512M0 590C160 566 480 614 640 590'/%3E%3C/g%3E%3C/svg%3E"),
  radial-gradient(900px 760px at -6% 24%, rgba(45,212,191,.30), transparent 70%),
  radial-gradient(860px 760px at 106% 36%, rgba(245,158,11,.20), transparent 70%),
  radial-gradient(900px 760px at -6% 50%, rgba(56,189,248,.20), transparent 70%),
  radial-gradient(860px 760px at 106% 62%, rgba(45,212,191,.28), transparent 70%),
  radial-gradient(900px 760px at -6% 88%, rgba(245,158,11,.18), transparent 70%); }
.v-grille article { box-shadow: 0 18px 46px rgba(16,32,28,.08); }

/* ---------- Bandeau défilant des usages ---------- */
.v-usages { overflow: hidden; border-bottom: 1px solid var(--bord); background: rgba(255,255,255,.78); padding: 16px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.v-usages div { display: flex; gap: 44px; width: max-content; animation: defile 38s linear infinite; }
.v-usages span { display: inline-flex; align-items: center; gap: 10px; color: var(--doux); font-weight: 600; white-space: nowrap; }
.v-usages span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--primaire); }
.v-usages:hover div { animation-play-state: paused; }

/* ---------- Démonstrations ---------- */
/* Six scènes empilées : chacune apparaît (.actif) puis joue son animation (.joue) quand on y arrive. */
.v-demos { counter-reset: etape; }
.d-scene { counter-increment: etape; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 60px; align-items: center; margin-top: 104px; scroll-margin-top: 90px; }
.d-scene:first-of-type { margin-top: 60px; }
.d-scene:nth-of-type(even) { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
.d-scene:nth-of-type(even) .d-texte { order: 2; }
.d-etape { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; color: var(--primaire); font-weight: 700; font-size: 13px; letter-spacing: .09em; text-transform: uppercase; }
.d-etape::before { content: counter(etape, decimal-leading-zero); display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: var(--primaire); color: #fff; font-size: 16px; letter-spacing: 0; box-shadow: 0 8px 20px rgba(15,118,110,.3); }
.d-scene:not(.joue) .d-cadre *, .d-scene:not(.joue) .d-cadre *::before, .d-scene:not(.joue) .d-cadre *::after { animation: none !important; }
.vitrine.anim .d-texte, .vitrine.anim .d-cadre { transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.vitrine.anim .d-cadre { transition-delay: .12s; }
.vitrine.anim .d-scene:not(.actif) .d-texte { opacity: 0; transform: translateX(-34px); }
.vitrine.anim .d-scene:nth-of-type(even):not(.actif) .d-texte { transform: translateX(34px); }
.vitrine.anim .d-scene:not(.actif) .d-cadre { opacity: 0; transform: translateY(34px) scale(.96); }
.d-texte h3 { font-size: clamp(21px, 2.2vw, 27px); letter-spacing: -.015em; margin: 0 0 10px; line-height: 1.2; }
.d-texte p { color: var(--doux); font-size: 16px; margin: 0 0 16px; }
.d-texte ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.d-texte li { display: flex; gap: 9px; align-items: flex-start; } .d-texte li svg { width: 19px; height: 19px; color: var(--primaire); flex: none; margin-top: 2px; }
.d-cadre { background: #fff; border: 1px solid var(--bord); border-radius: 16px; overflow: hidden; box-shadow: 0 24px 60px rgba(16,32,28,.16); }
.d-corps { position: relative; height: 348px; overflow: hidden; padding: 18px; font-size: 13px; background: #fbfcfc; }
.d-corps small { color: var(--doux); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.d-rejouer { position: absolute; right: 10px; bottom: 10px; z-index: 5; border: 1px solid var(--bord); background: rgba(255,255,255,.92); border-radius: 999px; padding: 4px 11px; font: inherit; font-size: 12px; color: var(--doux); cursor: pointer; } .d-rejouer:hover { color: var(--texte); }
.d-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: #dcfce7; color: #166534; font-weight: 600; font-size: 12px; }
.d-badge.att { background: #fef3c7; color: #92400e; } .d-badge.rej { background: #fee2e2; color: #991b1b; }

/* 1. Formulaire */
.d-form { display: grid; grid-template-columns: 118px 1fr; gap: 16px; height: 100%; }
.d-form aside { display: grid; gap: 7px; align-content: start; border-right: 1px solid var(--bord); padding-right: 14px; }
.d-form aside span { border: 1px dashed #c5d2cd; border-radius: 8px; padding: 6px 9px; color: var(--doux); background: #fff; animation: d-pris .8s var(--d, 99s) both; }
@keyframes d-pris { 30% { background: #0f766e; color: #fff; border-color: #0f766e; transform: translateX(6px); } }
.d-form-liste { display: grid; gap: 8px; align-content: start; }
.d-champ { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--bord); border-radius: 9px; padding: 9px 12px; }
.d-champ i { font-style: normal; font-size: 11px; color: var(--primaire); background: #e3f4f0; padding: 2px 8px; border-radius: 999px; }
.d-geo { display: flex; gap: 6px; margin-top: 4px; } .d-geo span { flex: 1; text-align: center; padding: 7px; border: 1px solid var(--bord); border-radius: 8px; background: #fff; color: var(--doux); }
.d-geo .choisi { background: #e3f4f0; border-color: var(--primaire); color: var(--primaire-fonce); font-weight: 700; }
.d-ok { margin-top: 4px; padding: 9px 12px; border-radius: 9px; background: #dcfce7; color: #166534; font-weight: 600; }

/* 2. Mission */
.d-mission { display: grid; gap: 13px; }
.d-saisie { margin-top: 5px; background: #fff; border: 1px solid var(--bord); border-radius: 9px; padding: 9px 12px; font-weight: 600; font-size: 14px; }
.tape { display: inline-block; overflow: hidden; white-space: nowrap; vertical-align: bottom; max-width: 100%; border-right: 2px solid var(--primaire); padding-right: 2px; animation: tape 1.6s steps(30) both; animation-delay: var(--d, 0s); }
.d-jours { display: grid; grid-template-columns: repeat(14, 1fr); gap: 4px; margin: 6px 0; }
.d-jours span { text-align: center; padding: 7px 0; border-radius: 7px; background: #fff; border: 1px solid var(--bord); color: var(--doux); font-size: 12px; }
.d-jours .p { background: var(--primaire); border-color: var(--primaire); color: #fff; font-weight: 700; animation: d-jour .3s var(--d, 0s) both; }
@keyframes d-jour { from { background: #fff; border-color: var(--bord); color: var(--doux); transform: scale(.8); } }
.d-equipe { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.d-pers { display: inline-flex; align-items: center; gap: 7px; background: #fff; border: 1px solid var(--bord); border-radius: 999px; padding: 3px 11px 3px 3px; }
.d-pers b { width: 24px; height: 24px; border-radius: 50%; background: var(--primaire); color: #fff; font-size: 10px; display: grid; place-items: center; }
.d-pers em { font-style: normal; color: var(--doux); font-size: 11px; }
.d-publier { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.d-bouton { display: inline-block; background: var(--primaire); color: #fff; font-weight: 700; padding: 8px 15px; border-radius: 9px; }
.d-bouton.clic { animation: ap .5s var(--d, 0s) both, pouls-vert 1s calc(var(--d, 0s) + .7s) 2; }

/* 3. Application mobile */
.d-mobile { display: grid; grid-template-columns: auto minmax(0, 250px); gap: 34px; align-items: center; height: 100%; justify-content: center; }
.d-tel { width: 178px; height: 312px; border: 7px solid #071512; border-radius: 28px; overflow: hidden; background: #fff; box-shadow: 0 18px 40px rgba(16,32,28,.28); }
.d-piste { display: flex; width: 300%; height: 100%; animation: d-glisse 9s cubic-bezier(.6,0,.2,1) both; }
@keyframes d-glisse { 0%, 26% { transform: translateX(0); } 32%, 60% { transform: translateX(-33.333%); } 66%, 100% { transform: translateX(-66.666%); } }
.d-piste { transform: translateX(-66.666%); }
.d-vue { width: 33.333%; padding: 14px 11px; display: grid; gap: 8px; align-content: start; font-size: 11.5px; }
.d-vue h4 { margin: 0; font-size: 13px; }
.d-vue .logo { width: 34px; height: 34px; justify-self: center; margin-top: 14px; }
.d-in { border: 1px solid var(--bord); border-radius: 8px; padding: 6px 9px; display: grid; } .d-in small { font-size: 9.5px; text-transform: none; letter-spacing: 0; font-weight: 500; }
.d-vue .d-bouton { text-align: center; padding: 7px; font-size: 11.5px; }
.d-carte-m { border: 1px solid var(--bord); border-left: 3px solid var(--primaire); border-radius: 8px; padding: 7px 9px; display: grid; gap: 2px; } .d-carte-m span { color: var(--doux); font-size: 10.5px; }
.d-gps { height: 70px; border-radius: 9px; background: linear-gradient(135deg, #d6e7dc, #e9f1ec); position: relative; }
.d-gps::after { content: ""; position: absolute; left: 50%; top: 50%; width: 13px; height: 13px; margin: -6px; border-radius: 50%; background: #d97706; border: 2.5px solid #fff; animation: pouls 1.6s ease-out infinite; }
.d-suivi { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; max-width: 250px; }
.d-suivi li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; padding: 9px 11px; border-radius: 11px; border: 1px solid var(--bord); background: #fff; animation: d-allume 2.9s var(--d, 0s) both; }
.d-suivi li b { width: 24px; height: 24px; border-radius: 50%; background: #e3f4f0; color: var(--primaire); display: grid; place-items: center; font-size: 12px; }
.d-suivi li span { color: var(--doux); font-size: 12px; display: block; }
@keyframes d-allume { 0%, 100% { border-color: var(--bord); box-shadow: none; } 8%, 92% { border-color: var(--primaire); box-shadow: 0 6px 18px rgba(15,118,110,.18); } }
.d-suivi li:last-child { border-color: var(--primaire); box-shadow: 0 6px 18px rgba(15,118,110,.18); animation-name: d-allume-fin; animation-duration: .4s; }
@keyframes d-allume-fin { from { border-color: var(--bord); box-shadow: none; } }

/* 4. Contrôle */
.d-controle { display: grid; grid-template-columns: 1.25fr 1fr; gap: 14px; height: 100%; }
.d-controle svg { width: 100%; height: 100%; border-radius: 11px; border: 1px solid var(--bord); display: block; }
.d-controle circle.pt { fill: #15803d; stroke: #fff; stroke-width: 2.5; animation: attente .01s var(--d, 0s) both; }
.d-controle circle.rej { fill: #b91c1c; }
.d-controle circle.sel { fill: none; stroke: #0f766e; stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: halo 1.4s ease-in-out infinite; }
.d-fiche { display: grid; gap: 8px; align-content: start; }
.d-fiche .d-champ { padding: 7px 10px; } .d-fiche .d-champ span { color: var(--doux); font-size: 11.5px; }
.d-actions { display: flex; gap: 7px; } .d-actions span { flex: 1; text-align: center; padding: 7px; border-radius: 8px; font-weight: 700; border: 1px solid var(--bord); background: #fff; }
.d-actions .d-bouton { border-color: var(--primaire); background: var(--primaire); animation: pouls-vert 1.1s 1.2s 4; }
.d-jauge { height: 9px; border-radius: 999px; background: #fde8c4; overflow: hidden; } .d-jauge i { display: block; height: 100%; width: 86%; background: #15803d; border-radius: 999px; transform-origin: left; animation: d-jauge 5.5s .8s cubic-bezier(.3,0,.2,1) both; }
@keyframes d-jauge { from { transform: scaleX(.18); } }
.d-compte { display: flex; justify-content: space-between; color: var(--doux); font-size: 12px; }

/* 5. Données */
.d-outils { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.d-outils .d-in { flex: 1; background: #fff; color: var(--doux); padding: 7px 10px; }
.d-outils .d-exp { padding: 7px 11px; border: 1px solid var(--bord); border-radius: 8px; background: #fff; font-weight: 600; display: inline-flex; gap: 5px; align-items: center; } .d-exp svg { width: 15px; height: 15px; }
.d-outils .d-exp.clic { animation: d-pris 1s var(--d, 0s) both; }
.d-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--bord); border-radius: 10px; overflow: hidden; }
.d-table th { text-align: left; font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--doux); padding: 8px 10px; background: #f3f7f5; }
.d-table td { padding: 8px 10px; border-top: 1px solid var(--bord); white-space: nowrap; }
.d-toast { position: absolute; left: 50%; bottom: 14px; translate: -50% 0; background: var(--barre); color: #fff; padding: 9px 16px; border-radius: 999px; font-weight: 600; white-space: nowrap; box-shadow: 0 10px 26px rgba(0,0,0,.25); }

/* 6. Analyses */
.d-analyse { display: grid; gap: 12px; height: 100%; grid-template-rows: auto 1fr; }
.d-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.d-kpis div { background: #fff; border: 1px solid var(--bord); border-radius: 10px; padding: 9px 12px; } .d-kpis b { display: block; font-size: 21px; letter-spacing: -.02em; }
.d-graphes { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; min-height: 0; }
.d-graphe { background: #fff; border: 1px solid var(--bord); border-radius: 10px; padding: 10px 12px; display: grid; grid-template-rows: auto 1fr auto; gap: 6px; min-height: 0; }
.d-barres { display: flex; align-items: flex-end; gap: 9px; min-height: 0; border-bottom: 1px solid var(--bord); }
.d-barres i { flex: 1; border-radius: 5px 5px 0 0; background: var(--primaire); height: var(--h); transform-origin: bottom; animation: pousse .8s var(--d, 0s) cubic-bezier(.2,.7,.2,1) both; }
.d-barres i:nth-child(2) { background: #14b8a6; } .d-barres i:nth-child(4) { background: #d97706; }
.d-axes { display: flex; gap: 9px; font-size: 10px; color: var(--doux); } .d-axes span { flex: 1; text-align: center; overflow: hidden; text-overflow: ellipsis; }
.d-donut { width: 100%; height: 100%; max-height: 132px; justify-self: center; }
.d-donut circle { fill: none; stroke-width: 15; transform: rotate(-90deg); transform-origin: 50% 50%; animation: trace 1.3s var(--d, 0s) cubic-bezier(.3,0,.2,1) both; }
.d-leg { display: flex; gap: 10px; flex-wrap: wrap; font-size: 10.5px; color: var(--doux); } .d-leg i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 4px; }

/* ---------- Chiffres clés ---------- */
.v-chiffres { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; padding: 56px var(--marge); background: var(--barre); color: #fff; }
.v-chiffres div { border-left: 2px solid rgba(94,234,212,.35); padding-left: 18px; }
.v-chiffres b { display: block; font-size: clamp(34px, 4vw, 50px); letter-spacing: -.03em; line-height: 1; color: #5eead4; font-variant-numeric: tabular-nums; }
.v-chiffres span { display: block; margin-top: 8px; color: #c2d8d2; }

/* ---------- Application mobile + QR code ---------- */
.v-app { margin: 84px var(--marge); padding: 52px 48px; border-radius: 26px; color: #fff; position: relative; overflow: hidden; background: radial-gradient(80% 140% at 0% 0%, #17574f, #0c2a26 70%); }
.v-app h2 { color: #fff; } .v-app p { color: #c2d8d2; } .v-app .v-surtitre { color: #5eead4; } .v-app .apk small { color: #a9c4bd; }
.v-app-pas { list-style: none; margin: 22px 0 0; padding: 0; display: flex; gap: 10px 22px; flex-wrap: wrap; color: #c2d8d2; font-size: 14px; }
.v-app-pas li { display: flex; align-items: center; gap: 8px; } .v-app-pas b { width: 22px; height: 22px; border-radius: 50%; background: rgba(94,234,212,.18); color: #5eead4; display: grid; place-items: center; font-size: 12px; }
.v-app .btn[aria-disabled] { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.25); }
.v-qr .qr { position: relative; overflow: hidden; width: 264px; padding: 18px; border: 0; box-shadow: 0 24px 60px rgba(0,0,0,.45), 0 0 0 8px rgba(94,234,212,.14); }
.v-qr .qr::after { content: ""; position: absolute; left: 18px; right: 18px; top: 8%; height: 3px; border-radius: 3px; background: linear-gradient(90deg, transparent, #14b8a6, transparent); box-shadow: 0 0 14px #14b8a6; animation: balaie 3.2s ease-in-out infinite; }
.v-qr-vide { width: 264px; padding: 26px; border-radius: 16px; border: 1px dashed rgba(255,255,255,.3); color: #c2d8d2; text-align: center; }

/* ---------- Appel final ---------- */
.v-final { position: relative; overflow: hidden; }
.v-final::before { content: ""; position: absolute; inset: auto -10% -60% -10%; height: 120%; background: radial-gradient(closest-side, rgba(94,234,212,.2), transparent); animation: halo 7s ease-in-out infinite; pointer-events: none; }
.v-final > * { position: relative; }

@media (max-width: 960px) {
  .d-scene, .d-scene:nth-of-type(even) { grid-template-columns: minmax(0, 1fr); gap: 24px; margin-top: 72px; }
  .d-scene:nth-of-type(even) .d-texte { order: 0; }
  .vitrine.anim .d-scene:not(.actif) .d-texte, .vitrine.anim .d-scene:nth-of-type(even):not(.actif) .d-texte { transform: translateY(26px); }
  .v-chiffres { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 28px 18px; }
  .v-app { margin: 56px var(--marge); padding: 36px 26px; } .v-qr { justify-self: center; }
}
@media (max-width: 560px) {
  .d-corps { padding: 12px; height: 360px; font-size: 12px; }
  .d-form { grid-template-columns: 1fr; } .d-form aside { display: none; }
  .d-mobile { grid-template-columns: 1fr; justify-items: center; } .d-suivi { display: none; }
  .d-controle { grid-template-columns: 1fr; grid-template-rows: 150px auto; } .d-fiche .d-champ:nth-child(n+4) { display: none; }
  .d-table th:nth-child(4), .d-table td:nth-child(4) { display: none; }
  .d-jours span { font-size: 10px; padding: 5px 0; }
  .d-graphes { grid-template-columns: 1fr 96px; }
  .f-ecran { aspect-ratio: 4 / 3; }
  .f-stats { padding: 10px; font-size: 11px; } .f-stats .d-graphes { grid-template-columns: 1.3fr 1fr; } .f-courbe { display: none; }
  .f-stats .d-kpis b { font-size: 16px; } .f-stats .d-kpis div { padding: 6px 9px; }
  .f-fiche { right: 8px; top: 8px; padding: 8px 10px; font-size: 11px; } .f-legende { left: 8px; bottom: 8px; gap: 8px; font-size: 10px; padding: 5px 9px; }
  .f-chapitres { gap: 8px; } .f-chapitres span { font-size: 11px; align-items: flex-start; line-height: 1.25; } .f-chapitres b { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .vitrine *, .vitrine *::before, .vitrine *::after { animation: none !important; }
}
