/* Site vidéo : reprise fidèle de la maquette validée (maquettes/maquette-site-video-2026-10-20.html).
   Sombre par défaut (comme Ads by Ascent), clair selon l'appareil ou le bouton soleil / lune (js/theme.js : data-theme="clair" | "sombre").
   Aucune règle en ligne (CSP) : les valeurs calculées passent par des variables posées en JS (style.setProperty). */
:root {
  --fond: #05070d; --surface: #0e1421; --surface2: #151d2e; --ligne: rgba(140,165,215,.17); --ligne-forte: rgba(70,150,255,.6);
  --texte: #f1f4fa; --doux: #9ba7bc; --faible: #6f7b90; --bleu: #2f86ff; --bleu-doux: rgba(47,134,255,.16);
  --ok: #47d483; --ok-doux: rgba(71,212,131,.14); --att: #f2b54e; --att-doux: rgba(242,181,78,.14); --alerte: #ff7070; --alerte-doux: rgba(255,112,112,.13);
  --ombre: 0 1px 0 rgba(255,255,255,.03); --voile: rgba(0,0,0,.55); --r: 16px;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) { :root:not([data-theme="sombre"]) {
  --fond: #f2f4f8; --surface: #ffffff; --surface2: #eaeef5; --ligne: rgba(20,40,90,.12); --ligne-forte: rgba(31,111,255,.55);
  --texte: #0d1526; --doux: #4d596e; --faible: #717d92; --bleu: #1f6fff; --bleu-doux: rgba(31,111,255,.09);
  --ok: #12804b; --ok-doux: rgba(18,128,75,.09); --att: #9a5b00; --att-doux: rgba(176,106,0,.1); --alerte: #c62828; --alerte-doux: rgba(198,40,40,.08);
  --ombre: 0 1px 2px rgba(13,21,38,.06); --voile: rgba(10,20,40,.4); color-scheme: light;
} }
:root[data-theme="clair"] {
  --fond: #f2f4f8; --surface: #ffffff; --surface2: #eaeef5; --ligne: rgba(20,40,90,.12); --ligne-forte: rgba(31,111,255,.55);
  --texte: #0d1526; --doux: #4d596e; --faible: #717d92; --bleu: #1f6fff; --bleu-doux: rgba(31,111,255,.09);
  --ok: #12804b; --ok-doux: rgba(18,128,75,.09); --att: #9a5b00; --att-doux: rgba(176,106,0,.1); --alerte: #c62828; --alerte-doux: rgba(198,40,40,.08);
  --ombre: 0 1px 2px rgba(13,21,38,.06); --voile: rgba(10,20,40,.4); color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--fond); color: var(--texte); font: 15px/1.45 "Segoe UI Variable Display", "Segoe UI", Inter, system-ui, -apple-system, Roboto, Arial, sans-serif; overflow: hidden; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:disabled { opacity: .45; cursor: default; }
a { color: var(--bleu); }
h1, h2, h3, p { margin: 0; }
.tete, .tab, .bt, .bt2, .pas, .ico, .tabbar, .etiq, h1, h2, .scene, .fs, .vid, .offre, .piste, .ac, .vig, .lignes .l, .etapes, .chip, .langue { user-select: none; -webkit-user-select: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

.app { position: relative; display: flex; flex-direction: column; height: 100vh; height: 100dvh; overflow: hidden; background: var(--fond); }
.tete { flex: none; display: flex; align-items: center; gap: 10px; padding: 8px 16px; min-height: 60px; border-bottom: 1px solid var(--ligne); background: var(--fond); padding-top: max(8px, env(safe-area-inset-top)); }
.tete-g, .tete-d { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tete .esp { flex: 1; }
.nom { font-weight: 700; font-size: 15px; color: var(--doux); white-space: nowrap; text-decoration: none; display: inline-flex; align-items: baseline; gap: 6px; min-height: 44px; align-items: center; }
.nom b { color: var(--doux); }
.nom small { font-weight: 600; font-size: 12px; color: var(--faible); }
.titre-flux { font-weight: 700; font-size: 17px; white-space: nowrap; }
.titre-flux span { color: var(--faible); font-weight: 600; font-size: 13px; margin-left: 4px; }
.ico { width: 44px; height: 44px; flex: none; border-radius: 12px; border: 1px solid var(--ligne); background: var(--surface); display: inline-grid; place-items: center; transition: transform .08s, border-color .15s; padding: 0; }
.ico svg { width: 20px; height: 20px; }
.ico:active, .bt:active, .bt2:active, .pas:active, .tab:active, .offre:active, .piste:active { transform: scale(.96); }
#theme .lune { display: none; }
:root[data-effectif="clair"] #theme .soleil { display: none; }
:root[data-effectif="clair"] #theme .lune { display: block; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; background: var(--surface2); color: var(--doux); }
.chip.ok { background: var(--ok-doux); color: var(--ok); }
.chip.bleu { background: var(--bleu-doux); color: var(--bleu); }
.chip.att { background: var(--att-doux); color: var(--att); }
.chip.alerte { background: var(--alerte-doux); color: var(--alerte); }
.chip svg { width: 14px; height: 14px; }
a.chip { text-decoration: none; }
.langue { min-width: 44px; height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--ligne); background: var(--surface); font-weight: 700; font-size: 13px; }

.corps { flex: 1; overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.page { padding: 18px 16px 28px; animation: entree .2s ease-out; }
@keyframes entree { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .page, .feuille, .voile, .toast { animation-duration: .01s !important; } .cle .img, .vig .img { animation: none !important; } }
.titre { font-size: 22px; line-height: 1.2; font-weight: 750; letter-spacing: -.01em; }
.sous { color: var(--doux); font-size: 14px; margin-top: 4px; }
.petit { font-size: 12.5px; color: var(--faible); }
.lbl { font-size: 13px; font-weight: 700; color: var(--doux); margin: 18px 0 8px; display: flex; align-items: center; gap: 6px; }
.lbl .n { color: var(--faible); font-weight: 500; }

.bt { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 22px; border-radius: 14px; border: 0; background: var(--bleu); color: #fff; font-weight: 700; font-size: 16px; transition: transform .08s, filter .15s; text-decoration: none; }
.bt:hover:not(:disabled) { filter: brightness(1.08); }
.bt svg, .bt2 svg { width: 18px; height: 18px; flex: none; }
.bt.plein, .bt2.plein { width: 100%; }
.bt.petit { min-height: 46px; padding: 0 16px; font-size: 15px; }
.bt2 { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--ligne); background: var(--surface); font-weight: 600; font-size: 14px; transition: transform .08s, border-color .15s; text-decoration: none; color: var(--texte); }
.bt2:hover:not(:disabled) { border-color: var(--ligne-forte); }
.bt2.rouge { color: var(--alerte); }
.occupe { position: relative; pointer-events: none; }
.occupe::after { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-top-color: transparent; animation: tourne .8s linear infinite; margin-left: 4px; }
.pas { min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--ligne); background: var(--surface); font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 7px; transition: transform .08s, background .15s, border-color .15s; }
.pas svg { width: 17px; height: 17px; }
.pas[aria-pressed="true"] { background: var(--bleu-doux); border-color: var(--bleu); color: var(--bleu); }
.pastilles { display: flex; flex-wrap: wrap; gap: 8px; }
.pastilles.ligne1 { flex-wrap: nowrap; }
.pastilles.ligne1 .pas { flex: 1; justify-content: center; padding: 0 8px; }
.carte { background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--r); box-shadow: var(--ombre); }
.etiq { display: inline-flex; align-items: center; min-height: 22px; padding: 0 8px; border-radius: 6px; font-size: 11px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; background: rgba(0,0,0,.55); color: #fff; }
.info { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--ligne); background: transparent; color: var(--doux); font-size: 12px; font-weight: 700; display: inline-grid; place-items: center; padding: 0; }
.bandeau { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; margin-top: 12px; font-size: 14px; line-height: 1.4; }
.bandeau.erreur { background: var(--alerte-doux); color: var(--texte); border: 1px solid var(--alerte); }
.bandeau.att { background: var(--att-doux); border: 1px solid var(--att); }
.bandeau.ok { background: var(--ok-doux); border: 1px solid var(--ok); }
.bandeau.info { background: var(--bleu-doux); border: 1px solid var(--ligne-forte); }
.bandeau .txt { flex: 1; }
.bandeau .bt2 { flex: none; min-height: 40px; }
.squelette { background: linear-gradient(90deg, var(--surface) 0%, var(--surface2) 50%, var(--surface) 100%); background-size: 200% 100%; animation: luit 1.4s ease-in-out infinite; border-radius: 14px; }
@keyframes luit { from { background-position: 100% 0; } to { background-position: -100% 0; } }

/* barre d'action collée en bas du parcours */
.action { flex: none; padding: 12px 16px 14px; border-top: 1px solid var(--ligne); background: var(--fond); display: flex; flex-direction: column; gap: 6px; padding-bottom: max(14px, env(safe-area-inset-bottom)); }
.action:empty { display: none; }
.action .ligne { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; color: var(--doux); }
.action .note { font-size: 12.5px; color: var(--att); }

.etapes { flex: none; display: none; gap: 6px; align-items: center; justify-content: center; padding: 12px 32px; border-bottom: 1px solid var(--ligne); font-size: 13px; color: var(--faible); overflow-x: auto; }
.etapes .e { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.etapes .e i { width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; font-style: normal; font-weight: 700; font-size: 11px; border: 1px solid var(--ligne); }
.etapes .e.fait i { background: var(--ok-doux); color: var(--ok); border-color: transparent; }
.etapes .e.ici { color: var(--texte); font-weight: 700; }
.etapes .e.ici i { background: var(--bleu); color: #fff; border-color: transparent; }
.etapes .sep { width: 10px; height: 1px; background: var(--ligne); flex: none; }

.tabbar { flex: none; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ligne); background: var(--fond); padding: 6px 6px max(10px, env(safe-area-inset-bottom)); }
.tabbar:empty { display: none; }
.tab { border: 0; background: transparent; min-height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; font-weight: 600; color: var(--faible); border-radius: 12px; transition: color .15s, background .15s; text-decoration: none; }
.tab svg { width: 22px; height: 22px; }
.tab[aria-current="page"] { color: var(--bleu); background: var(--bleu-doux); }
.navpc { display: none; gap: 4px; margin-left: 20px; }
.navpc .tab { flex-direction: row; font-size: 14px; min-height: 44px; padding: 0 14px; gap: 8px; }
.navpc .tab svg { width: 18px; height: 18px; }

/* cadres */
.c916 { position: relative; aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden; background: #222; }
.c916.squelette { background: linear-gradient(90deg, var(--surface) 0%, var(--surface2) 50%, var(--surface) 100%); background-size: 200% 100%; }
.c916.c11 { aspect-ratio: 1 / 1; }
.c916.c169 { aspect-ratio: 16 / 9; }
.c916 > img, .c916 > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.c916 > video.contenu { object-fit: contain; background: #000; }
.c916 .etiq { position: absolute; top: 10px; left: 10px; }
.c916 .etiq.duree { top: auto; left: auto; bottom: 10px; right: 10px; }
.c916 .txt { position: absolute; left: 8%; right: 8%; top: 24%; text-align: center; color: #fff; font-weight: 800; font-size: 19px; line-height: 1.15; text-shadow: 0 2px 12px rgba(0,0,0,.55); white-space: pre-line; }

/* accueil */
.promesse { font-size: 31px; line-height: 1.1; font-weight: 800; letter-spacing: -.02em; }
.promesse em { font-style: normal; color: var(--bleu); }
.heros .sous { margin-top: 8px; }
.exemples { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 20px 0 6px; }
.prix-l { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; margin: 18px 0 14px; }
.prix-l b { font-size: 26px; white-space: nowrap; }
.prix-l span { color: var(--doux); font-size: 14px; }
.trois { display: grid; gap: 10px; margin-top: 24px; }
.trois .carte { display: flex; gap: 12px; align-items: center; padding: 12px 14px; }
.trois .num { width: 34px; height: 34px; border-radius: 10px; background: var(--bleu-doux); color: var(--bleu); font-weight: 800; display: grid; place-items: center; flex: none; }
.trois b { display: block; font-size: 15px; }
.trois small { color: var(--doux); font-size: 13px; }
.carte-lien { margin-top: 10px; width: 100%; display: flex; gap: 12px; align-items: center; padding: 12px 14px; text-align: left; min-height: 64px; color: var(--texte); }
.carte-lien span { flex: 1; }
.carte-lien b { display: block; font-size: 15px; }
.carte-lien small { color: var(--doux); font-size: 13px; }
.carte-lien svg { width: 20px; height: 20px; flex: none; }
.pied { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--faible); }
.pied a { color: var(--faible); min-height: 32px; display: inline-flex; align-items: center; }

/* modes */
.modes { display: flex; gap: 6px; padding: 4px; border-radius: 14px; background: var(--surface2); margin-bottom: 14px; }
.modes .pas { flex: 1; justify-content: center; border-color: transparent; background: transparent; min-height: 42px; border-radius: 11px; }
.modes .pas[aria-pressed="true"] { background: var(--surface); color: var(--texte); border-color: var(--ligne); box-shadow: var(--ombre); }

/* idée */
.idee textarea, .champ-texte { display: block; width: 100%; min-height: 104px; resize: none; border-radius: 14px; border: 1px solid var(--ligne); background: var(--surface); color: var(--texte); font-size: 15.5px; line-height: 1.4; padding: 12px; outline: 0; }
.idee textarea:focus, .champ-texte:focus, .champ:focus-within { border-color: var(--ligne-forte); }
.sous-idee { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; gap: 8px; }
.dicter[aria-pressed="true"] { background: var(--alerte-doux); border-color: var(--alerte); color: var(--alerte); }
.cpt-car { font-size: 12px; color: var(--faible); margin-left: auto; }
.duree-v { display: flex; align-items: baseline; gap: 10px; margin-bottom: 2px; }
.duree-v b { font-size: 30px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.duree-v span { color: var(--doux); font-size: 14px; }
.duree-v .chip { margin-left: auto; }
.curseur { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; margin: 0; cursor: pointer; touch-action: pan-y; --p: 0%; }
.curseur::-webkit-slider-runnable-track { height: 8px; border-radius: 4px; background: linear-gradient(to right, var(--bleu) 0 var(--p), var(--surface2) var(--p) 100%); }
.curseur::-moz-range-track { height: 8px; border-radius: 4px; background: linear-gradient(to right, var(--bleu) 0 var(--p), var(--surface2) var(--p) 100%); }
.curseur::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; margin-top: -11px; border-radius: 50%; background: #fff; border: 2px solid var(--bleu); box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.curseur::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 2px solid var(--bleu); box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.curseur:focus { outline: none; }
.curseur:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px var(--bleu-doux), 0 2px 8px rgba(0,0,0,.25); }
.reperes { display: flex; justify-content: space-between; font-size: 11px; color: var(--faible); margin-top: -4px; }
.refs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ref { position: relative; aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden; border: 1px solid var(--ligne); background: var(--surface2); padding: 0; }
.ref img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ref .etiq { position: absolute; left: 6px; bottom: 6px; }
.ref.vide { border: 1.5px dashed var(--ligne-forte); background: var(--bleu-doux); color: var(--bleu); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-weight: 700; font-size: 13px; }
.ref.vide svg { width: 22px; height: 22px; }
.ref .ret { position: absolute; top: 4px; right: 4px; width: 32px; height: 32px; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; display: grid; place-items: center; border: 0; padding: 0; }
.ref .ret svg { width: 14px; height: 14px; }
.ref .envoi { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.45); color: #fff; font-size: 12px; font-weight: 700; }
.champ { width: 100%; min-height: 46px; border-radius: 12px; border: 1px solid var(--ligne); background: var(--surface); color: var(--texte); font-size: 15px; padding: 0 12px; display: flex; align-items: center; gap: 10px; }
.champ .n { color: var(--faible); font-weight: 700; font-size: 13px; min-width: 14px; display: inline-flex; }
.champ input { border: 0; outline: 0; background: transparent; color: inherit; flex: 1; min-width: 0; height: 44px; font-size: 16px; }
.faits { display: grid; gap: 6px; }

/* scénario */
.frise { display: flex; height: 8px; border-radius: 4px; overflow: hidden; gap: 2px; margin: 12px 0 4px; }
.frise span { background: var(--bleu); opacity: .35; flex: 1; }
.frise span.r { background: var(--att); opacity: 1; }
.frise span.p { opacity: 1; background: var(--ok); }
.frise-l { display: flex; justify-content: space-between; font-size: 11px; color: var(--faible); }
.scenes { display: grid; gap: 8px; margin-top: 12px; }
.scene { display: flex; gap: 12px; align-items: stretch; padding: 8px; width: 100%; text-align: left; border-radius: 14px; border: 1px solid var(--ligne); background: var(--surface); min-height: 96px; transition: border-color .15s, transform .08s; }
.scene:active { transform: scale(.985); }
.scene:hover { border-color: var(--ligne-forte); }
.cle { position: relative; width: 62px; flex: none; border-radius: 9px; overflow: hidden; background: var(--surface2); align-self: flex-start; aspect-ratio: 9 / 16; }
.cle.f11 { width: 72px; aspect-ratio: 1 / 1; }
.cle.f169 { width: 96px; aspect-ratio: 16 / 9; }
.cle img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cle .teinte { position: absolute; inset: 0; background: linear-gradient(160deg, var(--c1, #1f3b73), var(--c2, #c96f5a)); opacity: .85; }
.cle .num { position: absolute; top: 4px; left: 4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 6px; background: rgba(0,0,0,.6); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.scene .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.scene .tx .h { font-size: 12px; color: var(--faible); font-weight: 600; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.scene .tx b { font-size: 14.5px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.scene .tx small { font-size: 12.5px; color: var(--doux); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.modif { color: var(--bleu); }
.scene .fl { align-self: center; color: var(--faible); flex: none; display: flex; }
.scene .fl svg { width: 16px; height: 16px; }
.scene.sq { min-height: 96px; border: 0; }
.ajout { width: 100%; min-height: 52px; border-radius: 14px; border: 1.5px dashed var(--ligne-forte); background: var(--bleu-doux); color: var(--bleu); font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin-top: 10px; }
.ajout svg { width: 18px; height: 18px; }
.attente { display: flex; align-items: center; gap: 12px; padding: 14px; margin-top: 14px; }
.roue { width: 24px; height: 24px; border-radius: 50%; border: 2.5px solid var(--bleu); border-top-color: transparent; animation: tourne .9s linear infinite; flex: none; }
@keyframes tourne { to { transform: rotate(360deg); } }

/* son */
.pistes { display: grid; gap: 8px; }
.piste { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--ligne); background: var(--surface); text-align: left; width: 100%; min-height: 64px; transition: border-color .15s, background .15s; }
.piste[aria-pressed="true"] { border-color: var(--bleu); background: var(--bleu-doux); }
.piste .lect { width: 44px; height: 44px; border-radius: 50%; background: var(--surface2); display: grid; place-items: center; flex: none; }
.piste .lect svg { width: 18px; height: 18px; }
.piste .lect.joue { background: var(--bleu); color: #fff; }
.piste b { display: block; font-size: 15px; }
.piste small { color: var(--doux); font-size: 12.5px; }
.onde { margin-left: auto; display: flex; gap: 2px; align-items: center; height: 26px; flex: none; }
.onde i { width: 3px; border-radius: 2px; background: var(--faible); opacity: .6; height: var(--h, 10px); }
.piste[aria-pressed="true"] .onde i { background: var(--bleu); opacity: 1; }

/* fabrication */
.cout { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.fab { display: grid; gap: 8px; margin-top: 14px; }
.fs { display: flex; gap: 12px; align-items: center; padding: 8px 10px 8px 8px; border-radius: 14px; border: 1px solid var(--ligne); background: var(--surface); min-height: 76px; }
.fs .cle { width: 40px; align-self: center; }
.fs.attente-s .cle, .fs.cours .cle { filter: saturate(.2) brightness(.7); }
.fs .tx { flex: 1; min-width: 0; }
.fs .tx b { display: block; font-size: 14.5px; font-weight: 650; }
.fs .tx small { display: block; font-size: 12.5px; color: var(--doux); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st { width: 26px; height: 26px; border-radius: 50%; flex: none; display: grid; place-items: center; border: 1.5px solid var(--ligne); }
.st svg { width: 14px; height: 14px; }
.fs.prete .st, .pe.fait .st { background: var(--ok); border-color: var(--ok); color: #fff; }
.fs.cours .st, .pe.ici .st { border-color: var(--bleu); border-top-color: transparent; animation: tourne .9s linear infinite; }
.fs.echec .st { background: var(--alerte); border-color: var(--alerte); color: #fff; }
.fs.echec { border-color: var(--alerte); }
.fs.attente-s .tx b { color: var(--faible); font-weight: 500; }
.fs.cours { border-color: var(--ligne-forte); }
.fs .ico { width: 44px; height: 44px; }
.prog { display: grid; margin-top: 10px; padding: 0 14px; }
.pe { display: flex; gap: 12px; align-items: center; min-height: 52px; border-bottom: 1px solid var(--ligne); }
.pe:last-child { border-bottom: 0; }
.pe b { font-size: 15px; font-weight: 600; }
.pe.att b { color: var(--faible); font-weight: 500; }
.pe .cpt { margin-left: auto; font-size: 13px; color: var(--doux); font-variant-numeric: tabular-nums; }

/* lecteur et vidéo finie */
.gen-g { display: grid; grid-template-columns: 148px 1fr; gap: 14px; align-items: start; }
.gen-g.carre { grid-template-columns: 160px 1fr; }
.gen-g.large { grid-template-columns: 1fr; }
.lecteur .c916 { box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.lecteur video { background: #000; }
.retouche { width: 100%; justify-content: space-between; margin-top: 12px; }
.actions-fin { display: grid; gap: 8px; margin-top: 16px; }
.actions-fin .bandeau { margin-top: 0; align-items: center; }
.gen-g .bt2.plein { margin-top: 12px; }
.grille2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.grille3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.formats .pas { flex: 1; justify-content: center; }

/* mes vidéos */
.biblio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 8px; margin-top: 16px; }
.vid { min-width: 0; border: 0; padding: 0; background: transparent; text-align: left; display: flex; flex-direction: column; justify-content: flex-start; color: var(--texte); text-decoration: none; }
.vid .c916 { border-radius: 12px; background: var(--surface2); }
.vid .teinte { position: absolute; inset: 0; background: linear-gradient(160deg, var(--c1, #1f3b73), var(--c2, #c96f5a)); opacity: .7; }
.vid b { display: block; font-size: 13px; margin-top: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vid small { color: var(--doux); font-size: 11px; display: block; line-height: 1.3; }
.vid .chip { position: absolute; left: 6px; bottom: 6px; min-height: 24px; font-size: 11.5px; padding: 0 8px; background: rgba(0,0,0,.6); color: #fff; }
.vid .chip.ok { color: #7ff0ae; }
.vid .chip.att { color: #ffd27f; }
.vide-etat { text-align: center; padding: 40px 10px; color: var(--doux); }
.vide-etat .bt { margin-top: 14px; }
.tete-page { display: flex; align-items: center; gap: 12px; }
.tete-page .titre { flex: 1; }

/* crédits */
.solde { display: flex; align-items: center; gap: 14px; padding: 16px; }
.solde .gros { font-size: 34px; font-weight: 800; line-height: 1; }
.solde .gros + div { font-size: 13px; color: var(--doux); }
.solde .regle { font-size: 14px; color: var(--doux); }
.offres { display: grid; gap: 10px; }
.offre { display: flex; align-items: center; gap: 12px; padding: 14px; width: 100%; text-align: left; border-radius: 16px; border: 1px solid var(--ligne); background: var(--surface); min-height: 74px; transition: border-color .15s, background .15s; }
.offre[aria-pressed="true"] { border-color: var(--bleu); background: var(--bleu-doux); }
.offre b { display: block; font-size: 16px; }
.offre small { color: var(--doux); font-size: 12.5px; }
.offre .px { margin-left: auto; text-align: right; flex: none; }
.offre .px b { font-size: 20px; white-space: nowrap; }
.offre .px small { display: block; }
.exdurees { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.exdurees div { border: 1px solid var(--ligne); border-radius: 12px; padding: 8px 6px; text-align: center; background: var(--surface); }
.exdurees b { display: block; font-size: 15px; }
.exdurees small { display: block; font-size: 11.5px; color: var(--doux); }
.exdurees i { display: block; font-style: normal; font-size: 13px; font-weight: 700; margin-top: 2px; }
.compris { display: grid; gap: 6px; font-size: 14px; padding: 14px; }
.compris div { display: flex; gap: 8px; align-items: center; }
.compris svg { width: 16px; height: 16px; color: var(--ok); flex: none; }
.legal { font-size: 12px; color: var(--faible); margin-top: 14px; line-height: 1.5; }

/* compte */
.lignes { display: grid; margin-top: 14px; }
.lignes .l { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 14px; border-bottom: 1px solid var(--ligne); background: transparent; border-left: 0; border-right: 0; border-top: 0; width: 100%; text-align: left; font-size: 15px; color: var(--texte); text-decoration: none; }
.lignes .l:last-child { border-bottom: 0; }
.lignes .l span { margin-left: auto; color: var(--doux); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60%; }
.lignes .l.rouge { color: var(--alerte); }
.mvts { margin-top: 10px; display: grid; }
.mvts div { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--ligne); font-size: 14px; }
.mvts .plus { color: var(--ok); font-weight: 700; }
.mvts .moins { color: var(--doux); font-weight: 700; }
.cgv h2 { font-size: 16px; margin: 18px 0 6px; }
.cgv p { color: var(--doux); font-size: 14px; line-height: 1.55; margin: 0 0 8px; }

/* pub rapide */
.photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.acc { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; margin-top: 14px; }
.ac { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 12px; min-height: 56px; }
.ac .t { flex: 1; min-width: 0; }
.ac .t b { display: block; font-size: 15px; font-weight: 650; line-height: 1.25; }
.ac .t small { display: block; color: var(--faible); font-size: 11.5px; line-height: 1.3; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac .rg { font-size: 12px; font-weight: 700; color: var(--faible); width: 16px; flex: none; }
.ac .ico { width: 44px; height: 44px; border-radius: 11px; }
.ac.coeur { border-color: var(--bleu); background: var(--bleu-doux); }
.ac.coeur .ico.c { background: var(--bleu); color: #fff; border-color: var(--bleu); }
.ac.refus { opacity: .62; }
.ac.refus b { text-decoration: line-through; text-decoration-thickness: 1px; }
.ac.refus .ico.x { background: var(--alerte-doux); color: var(--alerte); border-color: transparent; }
.raisons { display: flex; flex-wrap: wrap; gap: 6px; padding: 2px 0 6px 36px; }
.raisons .pas { min-height: 40px; font-size: 13px; padding: 0 12px; }
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.vig { position: relative; border: 0; padding: 0; background: transparent; text-align: left; display: flex; flex-direction: column; gap: 4px; color: var(--texte); }
.vig .c { position: relative; aspect-ratio: 9 / 16; border-radius: 10px; overflow: hidden; background: var(--c1, #333); outline: 2px solid transparent; outline-offset: 1px; transition: outline-color .15s; }
.vig .c img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, center); transform: scale(var(--z, 1)); transform-origin: var(--pos, center); }
.vig .num { position: absolute; top: 5px; left: 5px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 6px; background: rgba(0,0,0,.6); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.vig .tx { position: absolute; left: 6%; right: 6%; top: 34%; text-align: center; color: #fff; font-weight: 800; font-size: 11px; line-height: 1.15; text-shadow: 0 1px 6px rgba(0,0,0,.7); white-space: pre-line; }
.vig .meta { font-size: 10.5px; color: var(--doux); line-height: 1.25; }
.vig .meta b { color: var(--texte); }
.vig.refait .num { background: var(--ok); }

/* feuille (2e niveau) */
.voile { position: absolute; inset: 0; background: var(--voile); z-index: 20; animation: fondu .18s ease-out; }
@keyframes fondu { from { opacity: 0; } }
.feuille { position: absolute; left: 0; right: 0; bottom: 0; z-index: 21; background: var(--surface); border-radius: 22px 22px 0 0; padding: 10px 16px max(24px, env(safe-area-inset-bottom)); animation: monte .22s ease-out; box-shadow: 0 -10px 40px rgba(0,0,0,.25); max-height: 88%; overflow-y: auto; }
@keyframes monte { from { transform: translateY(30px); opacity: 0; } }
.feuille .poignee { width: 40px; height: 5px; border-radius: 3px; background: var(--ligne); margin: 0 auto 12px; }
.feuille h3 { font-size: 18px; margin-bottom: 4px; }
.feuille .champ { margin-top: 8px; }
.feuille .champ-texte { min-height: 76px; background: var(--surface2); }
.feuille .case { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; font-size: 14px; }
.feuille .case input { width: 22px; height: 22px; flex: none; margin: 0; accent-color: var(--bleu); }
.feuille .actions-scene { grid-template-columns: repeat(3, 1fr); margin-top: 14px; }
.feuille .actions-scene .bt2 { padding: 0 6px; gap: 5px; font-size: 13.5px; }
.feuille .revoir { width: 170px; margin: 10px auto 0; }
.lien-txt { background: none; border: 0; padding: 0; color: var(--bleu); font-weight: 600; min-height: 44px; }
.toast { position: absolute; left: 50%; top: 70px; transform: translateX(-50%); z-index: 30; background: var(--texte); color: var(--fond); padding: 10px 16px; border-radius: 12px; font-weight: 600; font-size: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.3); animation: fondu .18s ease-out; max-width: calc(100% - 32px); text-align: center; }
.toast:empty { display: none; }

/* ===== ordinateur ===== */
@media (min-width: 900px) {
  body { font-size: 16px; }
  .tete { padding: 0 max(32px, calc((100% - 1240px) / 2)); min-height: 72px; }
  .navpc { display: flex; }
  .tabbar { display: none; }
  .etapes { display: flex; }
  .page { max-width: 1040px; margin: 0 auto; padding: 32px 32px 40px; }
  .page.large { max-width: 1240px; }
  .titre { font-size: 30px; }
  .action { flex-direction: row; justify-content: flex-end; align-items: center; gap: 16px; padding: 14px max(32px, calc((100% - 1040px) / 2)); }
  .action .ligne { margin-right: auto; gap: 16px; white-space: nowrap; justify-content: flex-start; }
  .action .bt { min-width: 280px; }
  .heros { display: grid; grid-template-columns: 1fr auto; gap: 56px; align-items: center; padding-top: 40px; }
  .promesse { font-size: 58px; }
  .heros .sous { font-size: 18px; margin-top: 14px; max-width: 460px; }
  .exemples { grid-template-columns: repeat(3, 236px); gap: 16px; margin: 0; }
  .c916 .txt { font-size: 22px; }
  .trois { grid-template-columns: repeat(3, 1fr); margin-top: 48px; }
  .deux-col { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; }
  .acc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans { grid-template-columns: repeat(8, 1fr); gap: 12px; }
  .vig .tx { font-size: 13px; }
  .gen-g { grid-template-columns: 300px 1fr; gap: 48px; }
  .gen-g.carre { grid-template-columns: 380px 1fr; }
  .gen-g.large { grid-template-columns: 520px 1fr; }
  .biblio { grid-template-columns: repeat(5, 1fr); gap: 18px; }
  .scenes, .fab { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feuille { left: 50%; right: auto; bottom: auto; top: 50%; width: 460px; border-radius: 20px; transform: translate(-50%, -50%); animation: fondu .18s ease-out; padding: 22px; }
  .feuille .poignee { display: none; }
  .toast { top: 84px; }
}
@media (max-width: 899px) { #theme { display: none; } }
@media (max-width: 360px) { .promesse { font-size: 27px; } .exemples { gap: 6px; } }

/* ===== images réelles d'abord (20/10/2026) : médias du client, plans, voix au micro, conseil du son tendance ===== */
.refs.medias { grid-template-columns: repeat(3, 1fr); }
.refs.medias .ref { aspect-ratio: 3 / 4; }
.refs.medias .teinte { position: absolute; inset: 0; background: linear-gradient(160deg, var(--c1, #1f3b73), var(--c2, #c96f5a)); }
.frise span.m { background: var(--alerte); opacity: 1; }
.scene.manque { border-color: var(--alerte); border-style: dashed; }
.minis { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 8px; scrollbar-width: thin; }
.mini { position: relative; flex: none; width: 60px; aspect-ratio: 3 / 4; border-radius: 10px; overflow: hidden; border: 2px solid var(--ligne); background: var(--surface2); padding: 0; display: grid; place-items: center; font-weight: 700; color: var(--doux); }
.mini img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mini i { position: absolute; right: 4px; bottom: 4px; width: 18px; height: 18px; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; display: grid; place-items: center; }
.mini i svg { width: 10px; height: 10px; }
.mini[aria-pressed="true"] { border-color: var(--bleu); box-shadow: 0 0 0 2px var(--bleu-doux); }
.mini.vide { border: 1.5px dashed var(--ligne-forte); background: var(--bleu-doux); color: var(--bleu); font-size: 11px; text-align: center; gap: 2px; padding: 4px; }
.mini.vide svg { width: 18px; height: 18px; }
.carte.ambiance { display: flex; align-items: center; gap: 10px; padding: 8px; margin: 8px 0; }
.carte.ambiance img { width: 48px; height: 64px; object-fit: cover; border-radius: 8px; flex: none; }
.carte.ambiance span { flex: 1; min-width: 0; font-size: 13px; }
.carte.conseil { padding: 14px 16px; margin-top: 14px; border-color: var(--ligne-forte); background: var(--bleu-doux); }
.carte.conseil b { display: block; margin-bottom: 6px; }
.carte.conseil ol { margin: 0; padding-left: 20px; display: grid; gap: 4px; font-size: 14px; color: var(--doux); }
.carte.micro-ok { display: flex; align-items: center; gap: 12px; padding: 10px 12px; margin-bottom: 8px; }
.carte.micro-ok .lect { width: 44px; height: 44px; border-radius: 50%; background: var(--surface2); display: grid; place-items: center; flex: none; }
.carte.micro-ok .lect svg { width: 18px; height: 18px; }
.prompteur { margin: 12px 0; padding: 18px 16px; border-radius: 14px; background: var(--surface2); min-height: 140px; display: flex; flex-direction: column; gap: 8px; user-select: none; -webkit-user-select: none; }
.prompteur b { font-size: 22px; line-height: 1.3; }
.prompteur small { font-size: 14px; color: var(--faible); }
.prompteur.actif { box-shadow: inset 0 0 0 2px var(--alerte); }
.barre-t { height: 4px; border-radius: 4px; background: var(--ligne); overflow: hidden; margin-top: auto; }
.barre-t span { display: block; height: 100%; width: var(--p, 0%); background: var(--bleu); }
.bt.rouge-plein { background: var(--alerte); color: var(--fond); }
.lecteur-micro { width: 100%; margin-bottom: 10px; }
@media (min-width: 900px) { .refs.medias { grid-template-columns: repeat(4, 1fr); } }
