/* LA BOBINE · une salle de montage : l'encre du noir, la lumière jaune du projecteur.
   Un seul thème, sombre, voulu : on regarde des images, l'interface se tait. */
:root {
  --encre: #14110e;
  --panneau: #1c1814;
  --panneau-2: #25201a;
  --panneau-3: #2f2921;
  --trait: #3b342b;
  --texte: #f3ece1;
  --doux: #a99d8c;
  --lumiere: #ffd23f;
  --lumiere-texte: #1a1406;
  --rouge: #ff5a4e;
  --vert: #4fc58a;
  --c-video: #b89a6a;
  --c-image: #c98b5c;
  --c-super: #5b9dff;
  --c-texte: #9a86ff;
  --c-son: #4fc58a;
  --f-titre: "Bricolage Grotesque", "Arial Black", system-ui, sans-serif;
  --f-ui: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --rayon: 12px;
  --barre-mobile: 62px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--encre); color: var(--texte); font: 15px/1.5 var(--f-ui); -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--lumiere); }
:focus-visible { outline: 2px solid var(--lumiere); outline-offset: 2px; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.doux { color: var(--doux); }
.tc { font-family: var(--f-mono); font-size: .85rem; font-variant-numeric: tabular-nums; }
.rangee { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.rangee.fin { justify-content: flex-end; margin-top: 18px; }

/* ---------- boutons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--trait); background: var(--panneau-2); font-weight: 600; text-decoration: none; color: var(--texte); }
.btn:hover { background: var(--panneau-3); }
.btn.primaire { background: var(--lumiere); color: var(--lumiere-texte); border-color: var(--lumiere); }
.btn.primaire:hover { filter: brightness(1.06); }
.btn.rouge .point { width: 10px; height: 10px; border-radius: 50%; background: var(--rouge); }
.btn.rouge.enregistre { background: var(--rouge); color: #fff; border-color: var(--rouge); }
.btn.rouge.enregistre .point { background: #fff; animation: clignote 1s steps(2) infinite; }
.btn.petit { min-height: 34px; padding: 0 12px; font-size: .85rem; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.icone { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; border: 0; background: transparent; color: var(--texte); }
.icone:hover { background: var(--panneau-2); }
.icone[disabled] { opacity: .3; cursor: default; background: transparent; }
@keyframes clignote { 50% { opacity: .2; } }

/* ---------- accueil ---------- */
#accueil { min-height: 100%; max-width: 1180px; margin: 0 auto; padding-block: 0 48px; padding-left: max(18px, env(safe-area-inset-left, 0px)); padding-right: max(18px, env(safe-area-inset-right, 0px)); }
.ac-tete { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
.marque { display: flex; align-items: center; gap: 10px; font: 800 1.15rem var(--f-titre); letter-spacing: .04em; }
.bobine { width: 34px; height: 34px; stroke: none; }
.bobine circle { fill: var(--lumiere); }
.bobine .trou, .bobine .axe { fill: var(--encre); }
.ac-intro { padding-block: 48px 40px; max-width: 760px; }
.ac-intro h1 { font: 800 clamp(2.4rem, 7vw, 4.6rem)/1.02 var(--f-titre); letter-spacing: -.02em; margin: 0 0 18px; text-wrap: balance; }
.ac-intro p { font-size: 1.12rem; color: var(--doux); max-width: 58ch; margin: 0; }
.ac-projets h2 { font: 700 1.1rem var(--f-titre); margin: 0 0 14px; }
.grille-projets { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.carte-projet { position: relative; display: grid; gap: 8px; background: var(--panneau); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 10px; text-align: left; }
.carte-projet .apercu { aspect-ratio: 16 / 10; border-radius: 8px; background: var(--panneau-3) center / cover no-repeat; display: grid; place-items: center; color: var(--doux); font-size: .8rem; }
.carte-projet .nom { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.carte-projet .meta { font-size: .8rem; color: var(--doux); }
.carte-projet .ouvrir { position: absolute; inset: 0; border: 0; background: transparent; border-radius: var(--rayon); }
.carte-projet .actions { position: relative; display: flex; gap: 6px; }
.carte-projet .actions button { min-height: 34px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--trait); background: var(--panneau-2); font-size: .8rem; }
.carte-projet .actions .danger { color: var(--rouge); }
.vide { grid-column: 1 / -1; padding: 40px 20px; border: 1px dashed var(--trait); border-radius: var(--rayon); text-align: center; color: var(--doux); }
.ac-pied { margin-top: 64px; padding-top: 18px; border-top: 1px solid var(--trait); font-size: .85rem; display: grid; gap: 4px; }
.ac-pied p { margin: 0; }

/* ---------- éditeur : grille ---------- */
#editeur { height: 100dvh; display: grid; overflow: hidden;
  grid-template-columns: 300px minmax(0, 1fr) 310px;
  grid-template-rows: 54px minmax(0, 1fr) minmax(220px, 34dvh);
  grid-template-areas: "tete tete tete" "biblio scene insp" "frise frise frise"; }
.ed-tete { grid-area: tete; display: flex; align-items: center; gap: 6px; padding: 0 10px; border-bottom: 1px solid var(--trait); background: var(--panneau); min-width: 0; }
.nom-projet { min-width: 0; flex: 1 1 auto; max-width: 340px; height: 38px; padding: 0 10px; border-radius: 8px; border: 1px solid transparent; background: transparent; font-weight: 600; }
.nom-projet:hover, .nom-projet:focus { border-color: var(--trait); background: var(--encre); }
.etat-sauve { font-size: .78rem; color: var(--doux); white-space: nowrap; }
.ed-actions { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.panneau { background: var(--panneau); min-height: 0; display: flex; flex-direction: column; }
#biblio { grid-area: biblio; border-right: 1px solid var(--trait); }
#inspecteur { grid-area: insp; border-left: 1px solid var(--trait); }
.onglets { display: flex; align-items: center; gap: 2px; padding: 8px 8px 0; border-bottom: 1px solid var(--trait); }
.onglets [role="tab"] { border: 0; background: transparent; padding: 10px 12px; border-radius: 8px 8px 0 0; color: var(--doux); font-weight: 600; border-bottom: 2px solid transparent; }
.onglets [role="tab"][aria-selected="true"] { color: var(--texte); border-bottom-color: var(--lumiere); }
.titre-panneau { padding: 10px 6px; font-weight: 700; }
.fermer-feuille { margin-left: auto; display: none; }
.onglet-corps, .corps-inspecteur { overflow: auto; padding: 14px; display: grid; gap: 14px; align-content: start; min-height: 0; flex: 1; }
.aide { margin: 0; color: var(--doux); font-size: .85rem; }

/* bibliothèque */
.depot { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1.5px dashed var(--trait); border-radius: var(--rayon); background: var(--encre); text-align: left; color: var(--texte); }
.depot svg { width: 30px; height: 30px; color: var(--lumiere); }
.depot small { color: var(--doux); }
.grille-medias { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.carte-media { position: relative; border-radius: 10px; overflow: hidden; background: var(--panneau-3); border: 1px solid var(--trait); }
.carte-media .vignette { aspect-ratio: 1; background: #000 center / cover no-repeat; }
.carte-media .duree { position: absolute; top: 6px; left: 6px; padding: 1px 6px; border-radius: 6px; background: rgba(0,0,0,.65); font: 500 .7rem var(--f-mono); }
.carte-media .nom { padding: 6px 8px 0; font-size: .75rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--doux); }
.carte-media .boutons { display: grid; gap: 4px; padding: 6px; }
.carte-media .boutons button { flex: 1; min-height: 32px; border-radius: 7px; border: 0; background: var(--panneau-2); font-size: .75rem; font-weight: 600; }
.carte-media .boutons .ajout { background: var(--lumiere); color: var(--lumiere-texte); }
.grille-styles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.style-texte { min-height: 76px; border-radius: 10px; border: 1px solid var(--trait); background: #000 linear-gradient(135deg, #2d2620, #15120f); display: grid; place-items: center; padding: 8px; font-size: 1.15rem; line-height: 1.1; text-align: center; }
.liste-sons { display: grid; gap: 8px; }
.ligne-son { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; padding: 10px; border-radius: 10px; background: var(--panneau-2); }
.ligne-son .nom { font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ligne-son svg.onde { grid-column: 1 / -1; width: 100%; height: 28px; stroke: none; fill: var(--c-son); }

/* scène */
.scene { grid-area: scene; display: flex; flex-direction: column; min-height: 0; min-width: 0; background: #0d0b09; }
.cadre-toile { flex: 1; min-height: 0; display: grid; place-items: center; padding: 14px; overflow: hidden; }
#toile { display: block; background: #000; box-shadow: 0 0 0 1px var(--trait), 0 14px 40px rgba(0,0,0,.5); touch-action: none; }
.transport { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 6px 0 10px; }
.lecture { width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--texte); color: var(--encre); display: grid; place-items: center; }
.lecture svg { width: 24px; height: 24px; fill: currentColor; stroke: none; }
.lecture .i-pause { display: none; }
.en-lecture .lecture .i-jouer { display: none; }
.en-lecture .lecture .i-pause { display: block; }

/* inspecteur */
.corps-inspecteur { gap: 0; padding-top: 4px; }
.groupe-insp { border-bottom: 1px solid var(--trait); }
.groupe-insp:last-child { border-bottom: 0; }
.groupe-insp > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 46px; cursor: pointer; font: 700 .95rem var(--f-titre); color: var(--texte); }
.groupe-insp > summary::-webkit-details-marker { display: none; }
.groupe-insp > summary::after { content: ""; width: 7px; height: 7px; margin-right: 4px; border-right: 2px solid var(--doux); border-bottom: 2px solid var(--doux); transform: rotate(45deg); transition: transform .15s ease; }
.groupe-insp[open] > summary::after { transform: rotate(-135deg); }
.groupe-corps { display: grid; gap: 10px; padding-bottom: 16px; }
.champ.avec-cle { grid-template-columns: 86px minmax(0, 1fr) 50px 28px; }
.cle { width: 28px; height: 28px; padding: 0; border: 0; border-radius: 6px; background: transparent; display: grid; place-items: center; }
.cle:hover { background: var(--panneau-2); }
.cle::before { content: ""; width: 10px; height: 10px; transform: rotate(45deg); border: 2px solid var(--trait); border-radius: 2px; }
.cle.anime::before { border-color: var(--lumiere); }
.cle.ici::before { background: var(--lumiere); border-color: var(--lumiere); }
.filtres { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.filtre { display: grid; gap: 5px; padding: 0; border: 0; background: transparent; font-size: .74rem; color: var(--doux); text-align: center; }
.filtre .vig { aspect-ratio: 1; border-radius: 8px; background: #000 center / cover no-repeat; outline: 2px solid transparent; outline-offset: -2px; }
.filtre[aria-pressed="true"] { color: var(--texte); font-weight: 600; }
.filtre[aria-pressed="true"] .vig { outline-color: var(--lumiere); }
.champ { display: grid; grid-template-columns: 92px minmax(0, 1fr) 54px; align-items: center; gap: 10px; font-size: .85rem; }
.champ > span:first-child { color: var(--doux); }
.champ output { font: 500 .75rem var(--f-mono); text-align: right; color: var(--texte); }
.champ.plein { grid-template-columns: 92px minmax(0, 1fr); }
input[type="range"] { width: 100%; accent-color: var(--lumiere); height: 28px; }
select, .champ input[type="number"], textarea, .champ input[type="text"] { width: 100%; min-height: 38px; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--trait); background: var(--encre); }
textarea { min-height: 76px; resize: vertical; line-height: 1.35; }
input[type="color"] { width: 44px; height: 34px; padding: 2px; border-radius: 8px; border: 1px solid var(--trait); background: var(--encre); }
.puces { display: flex; flex-wrap: wrap; gap: 6px; }
.puces button { min-height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--trait); background: var(--panneau-2); font-size: .8rem; font-weight: 600; }
.puces button[aria-pressed="true"] { background: var(--lumiere); color: var(--lumiere-texte); border-color: var(--lumiere); }
.couleurs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.couleurs .pastille { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--trait); }
.interrupteur { display: flex; align-items: center; gap: 10px; font-size: .88rem; min-height: 36px; }
.interrupteur input { width: 20px; height: 20px; accent-color: var(--lumiere); }
.note { font-size: .82rem; color: var(--doux); margin: 0; }
.actions-insp { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- la frise ---------- */
.frise { grid-area: frise; display: flex; flex-direction: column; min-height: 0; border-top: 1px solid var(--trait); background: var(--panneau); }
.frise-outils { display: flex; align-items: center; gap: 4px; padding: 4px 8px; border-bottom: 1px solid var(--trait); overflow-x: auto; }
.frise-outils .espace { flex: 1; }
.outil { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border-radius: 8px; border: 0; background: transparent; font-size: .85rem; font-weight: 600; white-space: nowrap; }
.outil:hover { background: var(--panneau-2); }
.outil.danger { color: var(--rouge); }
.outil[disabled] { opacity: .35; cursor: default; background: transparent; }
.frise-zone { position: relative; flex: 1; min-height: 0; }
.frise-defile { position: absolute; inset: 0; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; touch-action: pan-x pan-y; }
.frise-contenu { position: relative; min-height: 100%; padding-left: var(--demi, 50%); padding-right: var(--demi, 50%); }
.tete-lecture { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; background: var(--lumiere); pointer-events: none; z-index: 5; box-shadow: 0 0 0 1px rgba(0,0,0,.35); }
.tete-lecture::before { content: ""; position: absolute; top: 0; left: -6px; border: 7px solid transparent; border-top: 9px solid var(--lumiere); }
.regle { position: relative; height: 26px; border-bottom: 1px solid var(--trait); cursor: pointer; }
.regle span { position: absolute; top: 4px; font: 500 .68rem var(--f-mono); color: var(--doux); transform: translateX(-50%); white-space: nowrap; pointer-events: none; }
.regle i { position: absolute; bottom: 0; width: 1px; height: 6px; background: var(--trait); pointer-events: none; }
.pistes { position: relative; display: grid; gap: 6px; padding: 8px 0 18px; }
.piste { position: relative; height: 34px; }
.piste.g-principale { height: 58px; }
.piste.g-superposition { height: 42px; }
.piste::before { content: ""; position: absolute; inset: 0; left: calc(-1 * var(--demi, 0px)); right: calc(-1 * var(--demi, 0px)); background: rgba(255,255,255,.018); }
.clip { position: absolute; top: 0; bottom: 0; border-radius: 7px; overflow: hidden; border: 1.5px solid rgba(0,0,0,.4); background: var(--k, #555); color: #fff; touch-action: pan-x pan-y; user-select: none; -webkit-user-select: none; }
.clip.g-video { --k: var(--c-video); }
.clip.g-image { --k: var(--c-image); }
.g-superposition .clip { --k: var(--c-super); }
.clip.g-texte { --k: var(--c-texte); }
.clip.g-audio { --k: #1f3d2d; color: var(--c-son); }
.clip .film { position: absolute; inset: 0; background-repeat: repeat-x; background-size: auto 100%; opacity: .92; }
.clip .etiquette { position: absolute; left: 6px; bottom: 4px; max-width: calc(100% - 12px); padding: 0 5px; border-radius: 4px; background: rgba(0,0,0,.6); font: 500 .66rem/1.5 var(--f-mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.clip.g-texte .etiquette { position: static; display: block; margin: 0; padding: 0 8px; line-height: 31px; background: none; font: 600 .78rem/31px var(--f-ui); }
.clip svg.onde { position: absolute; inset: 3px 0; width: 100%; height: calc(100% - 6px); stroke: none; fill: var(--c-son); opacity: .9; }
.losange { position: absolute; top: 4px; width: 9px; height: 9px; margin-left: -4.5px; transform: rotate(45deg); background: var(--lumiere); border: 1px solid var(--lumiere-texte); z-index: 3; cursor: pointer; }
.clip.sel { border-color: var(--lumiere); box-shadow: 0 0 0 1.5px var(--lumiere); z-index: 3; touch-action: none; }
.clip.glisse { opacity: .85; z-index: 4; box-shadow: 0 8px 22px rgba(0,0,0,.55); }
.poignee { position: absolute; top: 0; bottom: 0; width: 16px; background: var(--lumiere); display: none; touch-action: none; cursor: ew-resize; z-index: 2; }
.poignee::after { content: ""; position: absolute; top: 50%; left: 50%; width: 2px; height: 40%; transform: translate(-50%, -50%); background: var(--lumiere-texte); border-radius: 2px; }
.poignee.g { left: 0; border-radius: 6px 0 0 6px; }
.poignee.d { right: 0; border-radius: 0 6px 6px 0; }
.clip.sel .poignee { display: block; }
.jonction { position: absolute; top: 50%; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 7px; border: 1px solid var(--trait); background: var(--panneau-2); color: var(--texte); display: grid; place-items: center; z-index: 4; padding: 0; }
.jonction svg { width: 14px; height: 14px; }
.jonction.active { background: var(--lumiere); color: var(--lumiere-texte); border-color: var(--lumiere); }
.ajout-fin { position: absolute; top: 9px; width: 40px; height: 40px; margin-left: 10px; border-radius: 9px; border: 1.5px dashed var(--trait); background: transparent; color: var(--lumiere); display: grid; place-items: center; }
.ajout-fin svg { width: 22px; height: 22px; }

/* ---------- barre et feuilles mobiles ---------- */
.barre-mobile { display: none; }
@media (max-width: 959px) {
  #editeur { grid-template-columns: minmax(0, 1fr); grid-template-rows: 54px minmax(0, 1fr) minmax(190px, 32dvh) calc(var(--barre-mobile) + env(safe-area-inset-bottom, 0px));
    grid-template-areas: "tete" "scene" "frise" "barre"; }
  .ed-tete { padding: 0 4px; }
  .nom-projet { max-width: none; }
  .etat-sauve { display: none; }
  #btn-exporter span { display: none; }
  #btn-exporter { padding: 0 14px; }
  .panneau { position: fixed; left: 0; right: 0; bottom: calc(var(--barre-mobile) + env(safe-area-inset-bottom, 0px)); max-height: 62dvh; z-index: 30; border: 0; border-top: 1px solid var(--trait); border-radius: 18px 18px 0 0; box-shadow: 0 -18px 50px rgba(0,0,0,.55); transform: translateY(105%); visibility: hidden; transition: transform .26s ease, visibility 0s .26s; }
  .panneau.ouvert { transform: none; visibility: visible; transition: transform .26s ease; }
  .fermer-feuille { display: inline-grid; }
  .barre-mobile { grid-area: barre; display: flex; justify-content: space-around; align-items: stretch; background: var(--panneau); border-top: 1px solid var(--trait); padding-bottom: env(safe-area-inset-bottom, 0px); z-index: 31; }
  .barre-mobile button { flex: 1; display: grid; justify-items: center; align-content: center; gap: 2px; border: 0; background: transparent; color: var(--doux); font-size: .72rem; font-weight: 600; }
  .barre-mobile button[aria-expanded="true"] { color: var(--lumiere); }
  .outil span { display: none; }
  .outil { padding: 0 10px; }
  .cadre-toile { padding: 8px; }
  .transport { padding: 2px 0 6px; gap: 14px; }
  .lecture { width: 46px; height: 46px; }
}

/* ---------- dialogues ---------- */
.dlg { width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); border: 1px solid var(--trait); border-radius: 18px; background: var(--panneau); color: var(--texte); padding: 22px; }
.dlg::backdrop { background: rgba(8,6,4,.72); }
.dlg h2 { font: 700 1.35rem var(--f-titre); margin: 0 0 6px; }
.choix-formats { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; margin-top: 16px; }
.choix-format { display: grid; gap: 8px; justify-items: center; padding: 14px 8px; border-radius: 12px; border: 1px solid var(--trait); background: var(--panneau-2); text-align: center; }
.choix-format:hover { border-color: var(--lumiere); }
.choix-format .forme { background: var(--lumiere); border-radius: 4px; }
.choix-format b { font-size: .95rem; }
.choix-format small { color: var(--doux); font-size: .72rem; line-height: 1.3; }
.segments { border: 0; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.segments legend { width: 100%; margin-bottom: 8px; font: 700 .95rem var(--f-titre); color: var(--texte); }
.segments label { position: relative; }
.segments input { position: absolute; opacity: 0; }
.segments label > span { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--trait); background: var(--panneau-2); font-weight: 600; font-size: .88rem; cursor: pointer; }
.segments input:checked + span { background: var(--lumiere); color: var(--lumiere-texte); border-color: var(--lumiere); }
.segments input:disabled + span { color: var(--doux); border-style: dashed; cursor: not-allowed; }
.segments input:focus-visible + span { outline: 2px solid var(--lumiere); outline-offset: 2px; }
.badge-pro { display: inline-block; padding: 2px 7px; border-radius: 6px; background: linear-gradient(135deg, #ffd23f, #ff9f43); color: var(--lumiere-texte); font: 800 .68rem var(--f-ui); letter-spacing: .06em; text-transform: uppercase; }
.offre-pro { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: var(--panneau-2); border: 1px solid var(--trait); }
.offre-pro p { margin: 0; font-size: .88rem; }
.barre { height: 12px; border-radius: 999px; background: var(--panneau-3); overflow: hidden; margin-top: 18px; }
.barre-plein { height: 100%; width: 100%; background: var(--lumiere); border-radius: 999px; transform-origin: left center; transform: scaleX(0); transition: transform .2s linear; }
#export-video { width: 100%; max-height: 46dvh; background: #000; border-radius: 10px; margin-top: 12px; }
.avert { color: var(--lumiere); font-size: .88rem; }

/* ---------- compte ---------- */
.ac-tete .rangee { flex-wrap: nowrap; gap: 8px; }
.marque span { white-space: nowrap; }
@media (max-width: 420px) {
  .ac-tete .btn { min-height: 40px; padding: 0 12px; font-size: .85rem; }
  .marque { gap: 8px; font-size: 1rem; }
  .bobine { width: 28px; height: 28px; }
}
.petit-compte.pro { color: var(--lumiere); }
.statut-compte { margin: 14px 0; padding: 12px 14px; border-radius: 12px; background: var(--panneau-2); display: grid; gap: 4px; }
.statut-compte b { font: 700 1.05rem var(--f-titre); }
.offres { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.carte-offre { display: grid; gap: 4px; justify-items: start; padding: 14px; border-radius: 12px; border: 1px solid var(--trait); background: var(--encre); text-align: left; }
.carte-offre:hover { border-color: var(--lumiere); }
.carte-offre span { font: 800 1.4rem var(--f-titre); color: var(--lumiere); }
.carte-offre small { color: var(--doux); }
.parrainage { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--trait); display: grid; gap: 8px; }
.parrainage p { margin: 0; }
.parrainage input { flex: 1; min-width: 0; min-height: 38px; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--trait); background: var(--encre); }
.badge-nuage { position: absolute; top: 18px; left: 18px; padding: 2px 8px; border-radius: 6px; background: var(--c-super); color: #fff; font: 700 .7rem var(--f-ui); }
@media (max-width: 520px) { .offres { grid-template-columns: 1fr; } }

/* ---------- toast et dépôt ---------- */
.toast { position: fixed; left: 50%; bottom: calc(var(--barre-mobile) + 18px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 60; display: flex; align-items: center; gap: 12px; max-width: calc(100vw - 32px); padding: 10px 12px 10px 16px; border-radius: 12px; background: var(--texte); color: var(--encre); font-weight: 600; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.toast .btn { background: var(--encre); color: var(--texte); border-color: var(--encre); }
.depot-global { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; background: rgba(20,17,14,.86); border: 3px dashed var(--lumiere); }
.depot-global p { font: 700 1.5rem var(--f-titre); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
