/* Viralo — l'appli, style « studio » sombre (comme les logiciels de montage), assorti à la page d'accueil */
.studio {
  --fond: #0B0A10;
  --surface: #14121C;
  --surface-2: #1C1927;
  --surface-3: #262236;
  --surface-4: #312C45;
  --ligne: rgba(255, 255, 255, .07);
  --ligne-2: rgba(255, 255, 255, .12);
  --texte: #F4F2FA;
  --texte-2: #B9B4CB;
  --texte-3: #7F7995;
  --violet-vif: #8C66FF;
  --violet-voile: rgba(102, 51, 245, .16);
  --vert-vif: #3DDC97;
  --rouge-vif: #FF5C6C;
  --ombre-s: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 12px 30px -12px rgba(0, 0, 0, .6);
  color-scheme: dark;
  background: var(--fond);
  color: var(--texte);
}
html, body { height: 100%; }
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.studio ::selection { background: var(--violet); color: #fff; }
.studio ::-webkit-scrollbar { width: 10px; height: 10px; }
.studio ::-webkit-scrollbar-thumb { background: var(--surface-4); border-radius: 10px; border: 3px solid transparent; background-clip: padding-box; }
.studio ::-webkit-scrollbar-track { background: transparent; }

/* Boutons adaptés au fond sombre */
.studio .btn-ligne { box-shadow: inset 0 0 0 1.5px var(--ligne-2); color: var(--texte); }
.studio .btn-ligne:hover { background: var(--surface-3); }
.studio .btn-doux { background: var(--violet-voile); color: #CDBEFF; }
.studio .btn-doux:hover { background: rgba(102, 51, 245, .28); }
.studio .btn-violet { box-shadow: 0 8px 24px -8px rgba(102, 51, 245, .8), inset 0 1px 0 rgba(255, 255, 255, .2); }
.studio .pastille { background: var(--violet-voile); color: #CDBEFF; }
.pastille-grise { background: var(--surface-3) !important; color: var(--texte-2) !important; }
.pastille-vert { background: rgba(61, 220, 151, .14) !important; color: var(--vert-vif) !important; }
.pastille-jaune { background: rgba(255, 225, 77, .14) !important; color: var(--jaune) !important; }

/* ---------- Charpente ---------- */
.app { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; min-height: 100dvh; }
.cote { position: sticky; top: 0; height: 100vh; height: 100dvh; display: flex; flex-direction: column; gap: 4px; padding: 22px 14px 16px; background: var(--surface); border-right: 1px solid var(--ligne); }
.cote-logo { padding: 2px 10px 20px; }
.cote-logo img { height: 30px; width: auto; }
.cote-nouveau { margin-bottom: 10px; }
.cote-nav { display: grid; gap: 2px; }
.cote-titre { margin: 16px 12px 6px; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--texte-3); }
.cote-nav a { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; text-decoration: none; font-weight: 600; color: var(--texte-2); transition: background .15s, color .15s; }
.cote-nav a:hover { background: var(--surface-2); color: var(--texte); }
.cote-nav a.actif { background: var(--surface-3); color: #fff; }
.cote-nav a.actif::before { content: ""; position: absolute; left: -14px; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--violet-vif); }
.cote-nav a.actif .ic { color: var(--violet-vif); }
.cote-bas { margin-top: auto; display: grid; gap: 8px; }
.jauge { display: grid; gap: 8px; padding: 14px; border-radius: 14px; background: linear-gradient(160deg, rgba(102, 51, 245, .22), rgba(102, 51, 245, .05)); box-shadow: inset 0 0 0 1px rgba(140, 102, 255, .25); text-decoration: none; font-size: 13px; color: var(--texte-2); }
.jauge-tete strong { color: #fff; font-size: 15px; }
.jauge-barre { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.jauge-barre i { display: block; height: 100%; background: linear-gradient(90deg, var(--violet), var(--violet-vif)); border-radius: 3px; }
.jauge-pied b { color: var(--jaune); }
.moi { display: flex; align-items: center; gap: 10px; padding: 8px 12px; font-size: 13px; color: var(--texte-3); text-decoration: none; overflow: hidden; }
.moi span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.haut-tel, .bas-tel { display: none; }
.vue { min-width: 0; outline: none; }
.sans-menu .app { display: block; }
.sans-menu .cote, .sans-menu .haut-tel, .sans-menu .bas-tel { display: none !important; }

/* ---------- Pages ---------- */
.page { padding: 36px clamp(16px, 4vw, 52px) 72px; max-width: 1240px; }
.page.etroite { max-width: 760px; margin-inline: auto; }
.page-tete { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.h-page { font-size: clamp(28px, 3.4vw, 40px); }
.h-section { font-size: 20px; margin: 44px 0 16px; display: flex; align-items: baseline; gap: 10px; }
.h-section small { font: 500 14px var(--police); color: var(--texte-3); }
.h-carte { font-size: 20px; display: flex; align-items: center; gap: 10px; }
.h-carte .ic { color: var(--violet-vif); }
.sous { color: var(--texte-2); margin: 8px 0 0; }
.carte { background: var(--surface); border-radius: 20px; padding: 24px; box-shadow: var(--ombre-s); border: 1px solid var(--ligne); }
.centre { text-align: center; }
.cache { display: none !important; }
.retour { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 18px; color: var(--texte-3); text-decoration: none; font-weight: 600; font-size: 14px; }
.retour:hover { color: var(--texte); }
.icone-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 10px; background: transparent; cursor: pointer; color: var(--texte-2); text-decoration: none; }
.icone-btn:hover { background: var(--surface-3); color: var(--texte); }
.lien-discret { border: 0; background: none; color: var(--texte-3); text-decoration: underline; cursor: pointer; font-size: 14px; }
.plein { width: 100%; }
.note { font-size: 13px; color: var(--texte-3); display: flex; gap: 8px; align-items: flex-start; margin: 14px 0 0; }
.note .ic { width: 16px; height: 16px; color: var(--violet-vif); margin-top: 2px; }
.etiquette { margin: 22px 0 10px; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--texte-3); }
.etiquette em { text-transform: none; letter-spacing: 0; font-weight: 500; font-style: normal; margin-left: 4px; }
.etiquette:first-child { margin-top: 0; }
.bandeau-demo { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: rgba(255, 225, 77, .1); color: var(--jaune); font-size: 14px; font-weight: 600; box-shadow: inset 0 0 0 1px rgba(255, 225, 77, .25); }
.bandeau-demo .ic { width: 18px; height: 18px; }

/* Accueil : chiffres */
.chiffres { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 22px; }
.chiffre { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--ligne); }
.chiffre > .ic { width: 42px; height: 42px; padding: 10px; border-radius: 12px; background: var(--violet-voile); color: var(--violet-vif); }
.chiffre strong { display: block; font-size: 24px; font-weight: 900; font-style: italic; letter-spacing: -.02em; line-height: 1.1; }
.chiffre small { color: var(--texte-3); font-size: 13px; }

/* Dépôt de vidéo */
.depot-zone { position: relative; isolation: isolate; width: 100%; display: grid; justify-items: center; gap: 8px; padding: 56px 24px; border: 0; border-radius: 26px; background: var(--surface); cursor: pointer; text-align: center; color: var(--texte); overflow: hidden; }
.depot-zone::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; padding: 1.5px; background: linear-gradient(135deg, var(--violet-vif), rgba(255, 255, 255, .08) 40%, rgba(255, 255, 255, .08) 60%, var(--jaune)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.depot-zone::after { content: ""; position: absolute; z-index: -2; width: 520px; height: 520px; top: -320px; left: 50%; translate: -50% 0; background: radial-gradient(closest-side, rgba(102, 51, 245, .45), transparent); transition: filter .2s; }
.depot-zone:hover::after, .depot .depot-zone::after { filter: brightness(1.4); }
.depot-icone { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 22px; background: var(--violet); color: #fff; transform: rotate(-6deg); margin-bottom: 10px; box-shadow: 0 14px 30px -8px rgba(102, 51, 245, .9); transition: transform .2s; }
.depot-zone:hover .depot-icone { transform: rotate(0) translateY(-3px); }
.depot-icone .ic { width: 30px; height: 30px; }
.depot-zone strong { font-size: 26px; font-style: italic; font-weight: 900; letter-spacing: -.02em; }
.depot-zone > span { color: var(--texte-2); }
.depot-zone u { color: #fff; text-decoration-color: var(--violet-vif); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.depot-zone small { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; color: var(--vert-vif); font-weight: 600; font-size: 13px; }
.depot-zone small .ic { width: 16px; height: 16px; }
.depot-reseaux { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin-top: 4px; color: var(--texte-3); }
.depot-reseaux .reseau { font-size: 13px; }
body.depot::after { content: "Dépose ta vidéo"; position: fixed; inset: 12px; z-index: 90; display: grid; place-items: center; border: 3px dashed var(--violet-vif); border-radius: 24px; background: rgba(11, 10, 16, .85); font: italic 900 34px var(--titre); color: #fff; pointer-events: none; }

.astuces { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 22px; }
.astuces div { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--ligne); border-radius: 18px; padding: 18px; }
.astuces b { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--violet); color: #fff; font-weight: 900; font-style: italic; transform: rotate(-6deg); }
.astuces p { margin: 0; color: var(--texte-2); font-size: 15px; }
.astuces strong { color: var(--texte); }

.grille-projets { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.carte-projet { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--ligne); border-radius: 18px; overflow: hidden; text-decoration: none; transition: transform .15s, border-color .15s; }
.carte-projet:hover { transform: translateY(-3px); border-color: rgba(140, 102, 255, .45); }
.cp-image { position: relative; aspect-ratio: 16 / 9; background: var(--surface-3); }
.cp-image img { width: 100%; height: 100%; object-fit: cover; }
.cp-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgba(0, 0, 0, .55)); }
.cp-image em { position: absolute; z-index: 1; right: 10px; bottom: 10px; padding: 2px 8px; border-radius: 6px; background: rgba(0, 0, 0, .65); color: #fff; font-style: normal; font-size: 12px; font-weight: 700; }
.cp-texte { padding: 14px 16px 4px; display: grid; gap: 2px; }
.cp-texte strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-texte small { color: var(--texte-3); }
.cp-bas { display: flex; align-items: center; justify-content: space-between; padding: 6px 10px 12px 16px; }

/* Préparer une vidéo */
.preparer { display: grid; grid-template-columns: 1fr 460px; gap: 32px; align-items: start; }
.prep-image { position: relative; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; background: var(--surface-2); margin-bottom: 20px; border: 1px solid var(--ligne); }
.prep-image img { width: 100%; height: 100%; object-fit: contain; }
.prep-infos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.prep-reglages { display: grid; gap: 20px; }
.champ { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.champ > span, .champ legend { font-weight: 700; font-size: 14px; padding: 0; color: var(--texte); }
.champ legend { margin-bottom: 8px; }
.champ em { font-style: normal; font-weight: 500; color: var(--texte-3); }
.champ small { color: var(--texte-3); font-size: 13px; }
.champ input, .champ select, .modale textarea, .modale input:not([type=radio]):not([type=checkbox]) {
  width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--ligne-2); border-radius: 12px; background: var(--surface-2); color: var(--texte); font-size: 16px; }
.champ input::placeholder, .modale textarea::placeholder { color: var(--texte-3); }
.champ input:focus, .champ select:focus, .modale textarea:focus, .modale input:focus { outline: none; border-color: var(--violet-vif); box-shadow: 0 0 0 4px var(--violet-voile); }
.champ select option { background: var(--surface-2); }
.segments { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--ligne); }
.segments label { flex: 1; }
.segments input { position: absolute; opacity: 0; pointer-events: none; }
.segments span { display: block; text-align: center; padding: 8px 6px; border-radius: 9px; font-weight: 600; font-size: 14px; cursor: pointer; color: var(--texte-2); white-space: nowrap; transition: background .15s, color .15s; }
.segments span:hover { color: var(--texte); }
.segments input:checked + span { background: var(--surface-4); color: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .4); }
.segments input:focus-visible + span { outline: 3px solid var(--violet-doux); }
.segments input:disabled + span { opacity: .4; cursor: not-allowed; }

/* Choix de la durée des clips */
.durees { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.durees input { position: absolute; opacity: 0; pointer-events: none; }
.duree-choix > span { position: relative; display: grid; gap: 2px; height: 100%; padding: 14px 14px 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--ligne); cursor: pointer; transition: border-color .15s, background .15s; }
.duree-choix > span:hover { border-color: var(--ligne-2); }
.duree-choix b { font-size: 20px; font-weight: 900; font-style: italic; letter-spacing: -.02em; }
.duree-choix small { color: var(--texte-3); font-size: 13px; }
.duree-choix i { font-style: normal; font-weight: 700; font-size: 13px; color: var(--texte-2); }
.duree-choix em { position: absolute; top: -9px; right: 10px; padding: 2px 8px; border-radius: 999px; background: var(--jaune); color: var(--encre); font: 800 11px var(--police); font-style: normal; }
.duree-choix input:checked + span { background: var(--violet-voile); border-color: var(--violet-vif); box-shadow: inset 0 0 0 1px var(--violet-vif); }
.duree-choix input:focus-visible + span { outline: 3px solid var(--violet-doux); }
.cout { display: flex; gap: 8px; align-items: center; margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); color: var(--texte-2); font-size: 14px; }
.cout strong { color: #fff; }
.cout .ic { color: var(--violet-vif); }
.cout-ko { background: rgba(255, 92, 108, .12); color: var(--rouge-vif); }

/* Analyse en cours */
.analyse { text-align: center; padding: 48px 32px; margin-top: 6vh; position: relative; overflow: hidden; }
.analyse::before { content: ""; position: absolute; inset: -40% -20% auto; height: 300px; background: radial-gradient(closest-side, rgba(102, 51, 245, .35), transparent); pointer-events: none; }
.analyse > * { position: relative; }
.analyse-anim { display: flex; justify-content: center; gap: 10px; margin-bottom: 28px; }
.analyse-anim span { width: 28px; height: 50px; border-radius: 8px; background: var(--violet); animation: saut 1.1s ease-in-out infinite; }
.analyse-anim span:nth-child(1) { transform: rotate(-10deg); }
.analyse-anim span:nth-child(2) { animation-delay: .15s; background: var(--violet-vif); }
.analyse-anim span:nth-child(3) { animation-delay: .3s; transform: rotate(10deg); background: var(--jaune); }
@keyframes saut { 50% { translate: 0 -12px; } }
.etapes-analyse { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 18px; text-align: left; }
.etapes-analyse li { display: flex; gap: 14px; align-items: center; opacity: .45; }
.etapes-analyse li.en-cours, .etapes-analyse li.fait { opacity: 1; }
.etapes-analyse li > div { flex: 1; display: grid; gap: 8px; }
.pastille-etape { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--surface-3); color: transparent; }
.fait .pastille-etape { background: var(--vert-vif); color: var(--encre); }
.en-cours .pastille-etape { background: var(--violet-voile); box-shadow: inset 0 0 0 2px var(--violet-vif); }
.pastille-etape .ic { width: 16px; height: 16px; }
.barre { display: block; height: 6px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.barre i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--violet), var(--violet-vif)); border-radius: 3px; transition: width .3s; }
.fait .barre i { width: 100% !important; background: var(--vert-vif); }
.barre.grande { height: 10px; margin: 22px 0; }

.retrouver { display: grid; justify-items: center; gap: 14px; padding: 36px 28px; }
.retrouver-img { width: 280px; border-radius: 14px; }

/* ---------- Éditeur ---------- */
.plein-ecran .app { grid-template-columns: 1fr; }
.plein-ecran .cote { display: none; }
.editeur { display: grid; grid-template-columns: 320px minmax(0, 1fr) 340px; grid-template-rows: auto minmax(0, 1fr); height: 100vh; height: 100dvh; background: var(--fond); }
.ed-tete { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: var(--surface); border-bottom: 1px solid var(--ligne); }
.ed-logo { width: 30px; height: 30px; border-radius: 8px; }
.ed-titre { flex: 1; min-width: 0; display: grid; }
.ed-titre strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ed-titre small { color: var(--texte-3); font-size: 13px; }
.ed-boutons { display: flex; gap: 8px; }

.ed-liste { display: flex; flex-direction: column; min-height: 0; background: var(--surface); border-right: 1px solid var(--ligne); }
.ed-liste-tete { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 16px 16px 10px; }
.ed-liste-tete strong { font-size: 15px; }
.ed-liste-tete small { color: var(--texte-3); margin-left: 6px; font-weight: 500; }
.ed-clips { flex: 1; overflow-y: auto; padding: 4px 12px 16px; display: grid; align-content: start; gap: 8px; }
.clip { position: relative; display: flex; align-items: stretch; gap: 12px; width: 100%; padding: 8px; border: 1px solid transparent; border-radius: 14px; background: var(--surface-2); text-align: left; cursor: pointer; color: var(--texte); transition: border-color .15s, background .15s; }
.clip:hover { background: var(--surface-3); }
.clip.choisi { background: var(--violet-voile); border-color: var(--violet-vif); }
.clip-vignette { position: relative; flex: none; width: 58px; aspect-ratio: 9 / 16; border-radius: 9px; overflow: hidden; background: var(--surface-4); }
.clip-vignette img { width: 100%; height: 100%; object-fit: cover; }
.clip-vignette b { position: absolute; left: 4px; right: 4px; bottom: 4px; padding: 1px 0; border-radius: 5px; background: rgba(0, 0, 0, .7); color: #fff; font-size: 10px; text-align: center; font-variant-numeric: tabular-nums; }
.clip-texte { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; padding: 2px 0; }
.clip-texte strong { font-size: 14px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.clip-texte small { font-size: 12px; color: var(--texte-3); }
.clip-badges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: auto; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px; border-radius: 6px; font-size: 11px; font-weight: 700; background: var(--surface-4); color: var(--texte-2); }
.badge .ic { width: 12px; height: 12px; }
.badge-vert { background: rgba(61, 220, 151, .14); color: var(--vert-vif); }
.badge-score { background: rgba(255, 225, 77, .12); color: var(--jaune); }
.clip-etat { position: absolute; top: 8px; right: 8px; color: var(--vert-vif); }
.clip-etat .ic { width: 16px; height: 16px; }
.clip-ajout { align-items: center; border: 1.5px dashed var(--ligne-2); background: transparent; color: var(--texte-2); padding: 12px; }
.clip-ajout:hover { border-color: var(--violet-vif); color: #fff; background: transparent; }
.clip-ajout > .ic { width: 38px; height: 38px; padding: 9px; border-radius: 50%; background: var(--violet-voile); color: var(--violet-vif); }
.vide { color: var(--texte-3); text-align: center; padding: 18px 10px; font-size: 14px; }

.ed-centre { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 22px 28px 18px; min-height: 0; overflow: hidden; background: radial-gradient(60% 50% at 50% 30%, rgba(102, 51, 245, .12), transparent), var(--fond); }
.apercu-zone { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; width: 100%; }
.apercu { position: relative; height: 100%; max-height: 720px; aspect-ratio: 9 / 16; border-radius: 22px; overflow: hidden; background: #000; box-shadow: 0 0 0 6px #050408, 0 0 0 7px rgba(255, 255, 255, .08), 0 30px 70px -20px rgba(0, 0, 0, .9); }
.apercu canvas { width: 100%; height: 100%; cursor: pointer; }
.apercu-lecture { position: absolute; inset: 50% auto auto 50%; translate: -50% -50%; display: grid; place-items: center; width: 66px; height: 66px; border: 0; border-radius: 50%; background: rgba(11, 10, 16, .55); color: #fff; cursor: pointer; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: opacity .2s, transform .15s; }
.apercu-lecture:hover { transform: scale(1.06); }
.apercu-lecture .ic { width: 28px; height: 28px; }
.apercu-lecture.joue { opacity: 0; }
.apercu:hover .apercu-lecture.joue { opacity: .85; }

/* Panneau de découpe (sous l'aperçu) */
.coupe { width: min(100%, 720px); display: grid; gap: 12px; padding: 14px 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--ligne); }
.coupe-ligne { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.lecture-btn { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #fff; color: var(--encre); cursor: pointer; }
.lecture-btn .ic { width: 18px; height: 18px; }
.temps { font-variant-numeric: tabular-nums; font-size: 14px; color: var(--texte-2); white-space: nowrap; }
.temps b { color: #fff; }
.coupe-espace { flex: 1; }
.piste { position: relative; height: 54px; border-radius: 10px; background: var(--surface-2); cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none; }
.piste-mots { position: absolute; inset: 0; overflow: hidden; border-radius: 10px; }
.piste-mots i { position: absolute; top: 50%; height: var(--h, 40%); translate: 0 -50%; border-radius: 2px; background: rgba(255, 255, 255, .16); }
.piste-zone { position: absolute; top: 0; bottom: 0; border-radius: 10px; background: rgba(102, 51, 245, .22); box-shadow: inset 0 0 0 2px var(--violet-vif); }
.poignee { position: absolute; top: 0; bottom: 0; width: 16px; display: grid; place-items: center; background: var(--violet-vif); cursor: ew-resize; touch-action: none; z-index: 2; }
.poignee::after { content: ""; width: 3px; height: 18px; border-radius: 2px; background: rgba(255, 255, 255, .85); }
.poignee-debut { left: 0; border-radius: 10px 0 0 10px; }
.poignee-fin { right: 0; border-radius: 0 10px 10px 0; }
.tete-lecture { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; background: #fff; border-radius: 1px; box-shadow: 0 0 8px rgba(255, 255, 255, .7); pointer-events: none; z-index: 3; }
.borne { display: flex; align-items: center; gap: 2px; padding: 2px 4px 2px 10px; border-radius: 10px; background: var(--surface-2); font-size: 13px; }
.borne span { color: var(--texte-3); font-weight: 600; margin-right: 4px; }
.borne b { min-width: 42px; text-align: center; font-variant-numeric: tabular-nums; }
.borne .icone-btn { width: 30px; height: 30px; }
.borne .icone-btn .ic { width: 16px; height: 16px; }
.monet { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 10px; font-size: 13px; font-weight: 700; }
.monet .ic { width: 16px; height: 16px; }
.monet-ok { background: rgba(61, 220, 151, .12); color: var(--vert-vif); }
.monet-non { background: rgba(255, 225, 77, .1); color: var(--jaune); }
.monet button { border: 0; background: var(--jaune); color: var(--encre); font-weight: 800; font-size: 12px; padding: 4px 8px; border-radius: 7px; cursor: pointer; margin-left: 4px; }

/* Vue d'ensemble de la vidéo entière */
.ensemble { position: relative; flex: none; width: min(100%, 720px); height: 22px; border-radius: 6px; background: var(--surface); border: 1px solid var(--ligne); cursor: pointer; }
.ensemble span { position: absolute; top: 3px; bottom: 3px; min-width: 3px; border-radius: 3px; background: var(--surface-4); }
.ensemble span:hover { background: var(--texte-3); }
.ensemble span.choisi { background: var(--violet-vif); }
.ensemble i { position: absolute; top: -3px; bottom: -3px; width: 2px; background: #fff; pointer-events: none; }
.ensemble-legende { flex: none; width: min(100%, 720px); display: flex; justify-content: space-between; margin-top: -10px; font-size: 11px; color: var(--texte-3); }

.ed-panneau { display: flex; flex-direction: column; min-height: 0; background: var(--surface); border-left: 1px solid var(--ligne); }
.onglets { display: flex; gap: 4px; margin: 12px 12px 0; padding: 4px; border-radius: 12px; background: var(--surface-2); }
.onglets button { white-space: nowrap; flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 4px; border: 0; border-radius: 9px; background: none; font-weight: 600; font-size: 13px; color: var(--texte-2); cursor: pointer; }
.onglets button .ic { width: 16px; height: 16px; }
.onglets button[aria-selected=true] { background: var(--surface-4); color: #fff; }
.ed-contenu { flex: 1; overflow-y: auto; padding: 20px 18px; }

.styles-st { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.style-st { display: grid; gap: 6px; padding: 6px 6px 8px; border: 1px solid var(--ligne); border-radius: 12px; background: var(--surface-2); cursor: pointer; color: var(--texte-2); }
.style-st:hover { border-color: var(--ligne-2); }
.style-st > span { display: grid; place-items: center; height: 58px; border-radius: 8px; background: linear-gradient(160deg, #5B4A9A, #1E1A30); color: #fff; font: 900 16px var(--titre); line-height: 1.1; }
.style-st small { font-weight: 600; font-size: 12px; }
.style-st.choisi { border-color: var(--violet-vif); background: var(--violet-voile); color: #fff; }
.style-st b { font-weight: inherit; }
.style-st i { font-style: inherit; }
.st-choc > span { font-style: italic; -webkit-text-stroke: 4px #000; paint-order: stroke fill; }
.st-choc i { color: var(--jaune); }
.st-boite > span { font-weight: 800; font-size: 15px; }
.st-boite b { background: #fff; color: var(--encre); padding: 2px 6px; border-radius: 6px; }
.st-boite i { background: var(--violet); color: #fff; padding: 2px 6px; border-radius: 6px; }
.st-karaoke > span { font-style: italic; color: rgba(255, 255, 255, .5); -webkit-text-stroke: 4px #000; paint-order: stroke fill; }
.st-karaoke i { color: #4BE3A0; }
.st-net > span { font-weight: 700; text-shadow: 0 1px 6px #000; }
.st-net i { color: var(--violet-doux); }
.st-mot > span { font-style: italic; font-size: 20px; -webkit-text-stroke: 4px #000; paint-order: stroke fill; }
.st-mot > span i { display: none; }
.couleurs { display: flex; flex-wrap: wrap; gap: 8px; }
.pastille-couleur { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--c); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15); cursor: pointer; font-weight: 800; font-size: 13px; }
.pastille-couleur.auto { background: var(--surface-3); color: var(--texte-2); }
.pastille-couleur.choisi { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--violet-vif); }

.choix-cadrage { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.choix-cadrage input { position: absolute; opacity: 0; }
.choix-cadrage span { display: grid; justify-items: center; gap: 4px; padding: 14px 8px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--ligne); text-align: center; font-weight: 700; font-size: 14px; cursor: pointer; }
.choix-cadrage small { font-weight: 500; color: var(--texte-3); font-size: 12px; }
.choix-cadrage input:checked + span { background: var(--violet-voile); border-color: var(--violet-vif); }
.mini-cadre { width: 30px; height: 50px; border-radius: 5px; margin-bottom: 4px; background: linear-gradient(160deg, #8C7BD0, #3A2F6B); }
.mini-cadre.flou { background: linear-gradient(#5E5480 0 33%, #A898E6 33% 67%, #5E5480 67%); }
.regle { display: flex; justify-content: space-between; font-size: 12px; color: var(--texte-3); }
#posX { width: 100%; }
input[type=range] { accent-color: var(--violet-vif); }

.mots { line-height: 2.1; color: var(--texte-2); }
.mot { display: inline-block; padding: 0 5px; border-radius: 6px; cursor: text; }
.mot:hover { background: var(--violet-voile); color: #fff; }
.mot[contenteditable=true] { background: var(--surface-3); color: #fff; box-shadow: 0 0 0 2px var(--violet-vif); outline: none; }

/* ---------- Fenêtres ---------- */
.modale-fond { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; background: rgba(5, 4, 8, .7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: apparait .15s; }
@keyframes apparait { from { opacity: 0; } }
.modale { width: min(620px, 100%); max-height: calc(100dvh - 32px); display: flex; flex-direction: column; background: var(--surface); color: var(--texte); border: 1px solid var(--ligne-2); border-radius: 24px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.modale.petite { width: min(440px, 100%); padding: 30px; text-align: center; }
.modale-tete { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 20px 4px 24px; }
.modale-tete h2 { font-size: 18px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.modale-tete h2 .ic { display: inline; vertical-align: -3px; margin-right: 6px; }
.modale-corps { overflow-y: auto; padding: 8px 24px 20px; }
.modale-pied { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 24px; border-top: 1px solid var(--ligne); }
.modale textarea { resize: vertical; min-height: 84px; line-height: 1.45; }
.modale input[type=datetime-local] { margin-top: 10px; color-scheme: dark; }
.reseaux-choix { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.reseau-choix { display: block; text-decoration: none; }
.reseau-choix input { position: absolute; opacity: 0; }
.reseau-choix > span { display: grid; gap: 2px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--ligne); cursor: pointer; }
.reseau-choix small { color: var(--texte-3); font-size: 12px; }
.reseau-choix input:checked + span { background: var(--violet-voile); border-color: var(--violet-vif); }
.reseau-choix.off > span { border-style: dashed; }
.reseau-choix.off small { color: var(--violet-vif); font-weight: 600; }
.legende input { margin-bottom: 8px; }
.encart { display: flex; gap: 12px; margin-top: 16px; padding: 14px 16px; border-radius: 14px; background: var(--violet-voile); color: #CDBEFF; }
.encart p { margin: 4px 0 0; font-size: 14px; color: var(--texte-2); }
.encart a { color: #fff; font-weight: 700; }
.rendu { width: auto; max-width: calc(100vw - 32px); }
.rendu-video { display: block; height: min(62dvh, 640px); width: auto; max-width: 100%; aspect-ratio: 9 / 16; margin: 0 auto; border-radius: 14px; background: #000; }

/* ---------- Calendrier, stats, réseaux, abonnement ---------- */
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.cal-nom { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--texte-3); padding: 0 6px; }
.cal-case { min-height: 124px; padding: 10px 8px; border-radius: 14px; background: var(--surface); border: 1px solid var(--ligne); display: flex; flex-direction: column; gap: 4px; }
.cal-case.auj { border-color: var(--violet-vif); background: var(--violet-voile); }
.cal-case.passe { opacity: .45; }
.cal-case b { font-size: 14px; }
.cal-ev { font-size: 12px; padding: 4px 6px; border-radius: 8px; background: var(--surface-3); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; display: block; }
.vide-grand { display: grid; justify-items: center; gap: 8px; text-align: center; margin-top: 26px; padding: 44px 24px; border-radius: 22px; background: var(--surface); border: 1px dashed var(--ligne-2); }
.vide-grand > .ic { width: 44px; height: 44px; padding: 10px; border-radius: 14px; background: var(--violet-voile); color: var(--violet-vif); }
.vide-grand strong { font-size: 18px; }
.vide-grand p { color: var(--texte-2); max-width: 460px; margin: 0 0 10px; }
.tuiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tuile { display: grid; gap: 2px; padding: 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--ligne); }
.tuile small, .tuile span { color: var(--texte-3); font-size: 13px; }
.tuile strong { font-size: 30px; font-weight: 900; font-style: italic; }
.grille-reseaux { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.carte-reseau { display: grid; gap: 14px; align-content: start; justify-items: start; }
.cr-tete { display: flex; gap: 14px; align-items: flex-start; }
.cr-tete small { display: block; color: var(--texte-3); font-size: 14px; margin-top: 2px; }
.logo-reseau { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: #fff; font: italic 900 20px var(--titre); }
.cr-compte { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border-radius: 12px; background: var(--surface-2); }
.cr-compte img { width: 28px; height: 28px; border-radius: 50%; }
.cr-compte span { flex: 1; font-weight: 600; }
.jauge-grande { display: flex; flex-wrap: wrap; gap: 40px; margin-bottom: 24px; background: linear-gradient(160deg, rgba(102, 51, 245, .22), rgba(102, 51, 245, .04)); }
.jauge-grande small { display: block; color: var(--texte-3); }
.jauge-grande strong { font-size: 30px; font-weight: 900; font-style: italic; margin-right: 10px; }
.offres-app { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: start; margin-bottom: 20px; }
.offre-app { display: grid; gap: 6px; justify-items: start; }
.offre-app h3 { font-size: 24px; }
.offre-app.star { border-color: var(--violet-vif); box-shadow: 0 0 0 1px var(--violet-vif), 0 20px 50px -20px rgba(102, 51, 245, .6); }
.offre-app.actuelle { background: var(--surface-2); }
.prix-app strong { font-size: 34px; font-weight: 900; }
.prix-app span { color: var(--texte-3); }
.prix-app, .quota { margin: 0; }
.quota { color: var(--violet-vif); font-weight: 700; }
.liste-coches { list-style: none; padding: 0; margin: 8px 0 14px; display: grid; gap: 8px; font-size: 14px; color: var(--texte-2); }
.liste-coches li { display: flex; gap: 8px; }
.liste-coches .ic { width: 18px; height: 18px; color: var(--vert-vif); }
.liste-liens { display: grid; gap: 2px; padding: 10px; }
.liste-liens a, .liste-liens button { display: flex; align-items: center; gap: 12px; padding: 14px; border: 0; border-radius: 12px; background: none; color: var(--texte); text-decoration: none; font-weight: 600; text-align: left; cursor: pointer; }
.liste-liens a:hover, .liste-liens button:hover { background: var(--surface-2); }
.moi-grand { display: flex; gap: 12px; align-items: center; padding: 14px; margin: 0; color: var(--texte-3); }

/* ---------- Connexion ---------- */
.connexion { min-height: 100vh; min-height: 100dvh; display: grid; place-content: center; justify-items: center; gap: 28px; padding: 32px 16px; background: radial-gradient(60% 50% at 50% 0%, rgba(102, 51, 245, .4), transparent), var(--fond); }
.connexion-logo img { height: 36px; width: auto; }
.connexion-carte { width: min(420px, calc(100vw - 32px)); display: grid; gap: 16px; padding: 32px 28px; }
.connexion-carte .sous { margin: -8px 0 4px; }
.erreur-form { color: var(--rouge-vif); font-weight: 600; font-size: 14px; margin: 0; min-height: 1px; }
.connexion-liens { display: grid; gap: 8px; justify-items: center; font-size: 14px; color: var(--texte-3); }
.connexion-liens a { color: var(--violet-vif); font-weight: 600; }
.mentions { font-size: 12px; color: var(--texte-3); text-align: center; margin: 0; }
.mentions a { color: var(--texte-2); }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 100; translate: -50% 20px; max-width: min(520px, calc(100vw - 32px)); padding: 13px 20px; border-radius: 14px; background: var(--surface-4); color: #fff; font-weight: 600; font-size: 15px; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); opacity: 0; pointer-events: none; transition: opacity .2s, translate .2s; }
.toast.visible { opacity: 1; translate: -50% 0; }
.toast.ok { background: #0F7A4A; }
.toast.erreur { background: #B4232A; }

/* ---------- Écrans moyens ---------- */
@media (max-width: 1280px) {
  .editeur { grid-template-columns: 280px minmax(0, 1fr) 310px; }
  .masque-moyen { display: none; }
}

/* ---------- Téléphone et tablette ---------- */
@media (max-width: 900px) {
  .app { display: block; padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .cote { display: none; }
  .haut-tel { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; padding-top: max(12px, env(safe-area-inset-top)); background: rgba(11, 10, 16, .88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--ligne); }
  .haut-tel img { height: 26px; width: auto; }
  .haut-minutes { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--violet-voile); font-size: 13px; font-weight: 700; text-decoration: none; color: #CDBEFF; }
  .haut-minutes:empty { display: none; }
  .haut-minutes .ic { width: 16px; height: 16px; }
  .bas-tel { position: fixed; inset: auto 0 0; z-index: 40; display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); background: rgba(20, 18, 28, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--ligne); }
  .bas-tel a { display: grid; justify-items: center; gap: 2px; padding: 6px 0; font-size: 11px; font-weight: 600; color: var(--texte-3); text-decoration: none; }
  .bas-tel a.actif { color: #fff; }
  .bas-tel a.actif .ic { color: var(--violet-vif); }
  .bas-tel .bas-plus .ic { width: 26px; height: 26px; }
  .bas-tel .bas-plus { width: 54px; height: 54px; margin: -24px auto 0; place-items: center; border-radius: 17px; background: var(--violet); color: #fff; transform: rotate(-6deg); box-shadow: 0 10px 24px -6px rgba(102, 51, 245, .9); }
  .page { padding: 16px 16px 40px; }
  .page-tete { margin-bottom: 18px; }
  .chiffres { gap: 8px; }
  .chiffre { flex-direction: column; align-items: flex-start; gap: 6px; padding: 12px; }
  .chiffre > .ic { width: 32px; height: 32px; padding: 7px; }
  .chiffre strong { font-size: 18px; }
  .chiffre small { font-size: 11px; }
  .depot-zone { padding: 38px 18px; }
  .depot-zone strong { font-size: 22px; }
  .astuces { grid-template-columns: 1fr; }
  .tuiles { grid-template-columns: 1fr 1fr; }
  .preparer { grid-template-columns: 1fr; gap: 20px; }
  .grille-reseaux, .offres-app { grid-template-columns: 1fr; }
  .cal { gap: 4px; }
  .cal-case { min-height: 78px; padding: 6px 4px; border-radius: 10px; }
  .cal-ev { font-size: 10px; padding: 2px 4px; }
  .cal-ev::before { display: none; }
  .jauge-grande { gap: 16px; }

  /* Éditeur sur téléphone : aperçu en haut, découpe, clips en bande, réglages dessous */
  .plein-ecran .app { padding-bottom: 0; }
  .plein-ecran .haut-tel, .plein-ecran .bas-tel { display: none; }
  .editeur { display: flex; flex-direction: column; height: auto; min-height: 100dvh; }
  .ed-tete { position: sticky; top: 0; z-index: 20; padding-top: max(10px, env(safe-area-inset-top)); }
  .ed-logo, .masque-tel { display: none; }
  .ed-centre { order: 1; padding: 16px 12px 8px; overflow: visible; }
  .apercu-zone { flex: none; }
  .apercu { height: auto; width: min(66vw, 320px); max-height: none; }
  .coupe { padding: 12px; }
  .ensemble, .ensemble-legende { display: none; }
  .ed-liste { order: 2; border: 0; background: transparent; }
  .ed-liste-tete { padding: 8px 16px 4px; }
  .ed-clips { display: flex; overflow-x: auto; overflow-y: hidden; padding: 4px 16px 12px; scroll-snap-type: x mandatory; }
  .clip { flex: 0 0 78%; scroll-snap-align: center; }
  .clip-ajout { flex: 0 0 auto; flex-direction: column; justify-content: center; width: 120px; text-align: center; }
  .clip-ajout small { display: none; }
  .ed-panneau { order: 3; border: 0; }
  .ed-contenu { overflow: visible; }
  .ed-boutons .btn { padding: 0 12px; }
  .reseaux-choix { grid-template-columns: 1fr; }
  .modale-fond { place-items: end center; padding: 0; }
  .modale { border-radius: 24px 24px 0 0; max-height: 92dvh; }
}
@media (max-width: 420px) {
  .duree-choix b { font-size: 17px; }
}

/* ---------- Logos des réseaux et titres ---------- */
.reseau { display: inline-flex; align-items: center; gap: 8px; }
.depot-reseaux { gap: 10px; margin-top: 8px; }
.depot-reseaux .logo-r { border-radius: 7px; box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .8); }
.legende-tete { display: flex; align-items: center; gap: 8px; text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--texte); }
.cal-ev { display: flex; align-items: center; gap: 4px; }
.carte-reseau .logo-r { border-radius: 12px; }
.depot-zone strong, .chiffre strong, .duree-choix b, .tuile strong, .jauge-grande strong, .prix-app strong, .astuces b, .analyse-anim + h1 { font-family: var(--titre); }

/* ---------- Modes de découpe ---------- */
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.modes input { position: absolute; opacity: 0; pointer-events: none; }
.mode-choix > span { display: grid; gap: 4px; height: 100%; padding: 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--ligne); cursor: pointer; }
.mode-choix > span > .ic { width: 22px; height: 22px; color: var(--violet-vif); margin-bottom: 4px; }
.mode-choix b { font-size: 15px; }
.mode-choix small { color: var(--texte-3); font-size: 12.5px; line-height: 1.4; }
.mode-choix i { font-style: normal; font-weight: 700; font-size: 12.5px; color: var(--jaune); margin-top: 4px; }
.mode-choix input:checked + span { background: var(--violet-voile); border-color: var(--violet-vif); box-shadow: inset 0 0 0 1px var(--violet-vif); }
.mode-choix input:focus-visible + span { outline: 3px solid var(--violet-doux); }

/* ---------- Onglet « Note » ---------- */
.note-globale { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 16px; background: var(--surface-2); }
.note-globale b { display: block; font-size: 16px; }
.note-globale small { color: var(--texte-3); }
.score-grand { position: relative; isolation: isolate; flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; font: italic 900 24px var(--titre); background: conic-gradient(var(--jaune) calc(var(--s) * 1%), var(--surface-4) 0); }
.score-grand::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--surface-2); z-index: -1; }
.criteres { display: grid; gap: 14px; margin-top: 18px; }
.critere { display: grid; grid-template-columns: 1fr 34px; grid-template-rows: auto auto; gap: 6px 10px; align-items: center; }
.critere > div b { font-size: 14px; }
.critere > div small { display: block; color: var(--texte-3); font-size: 12px; }
.critere-barre { grid-column: 1; height: 8px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.critere-barre i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--violet), var(--violet-vif)); }
.critere strong { grid-column: 2; grid-row: 1 / 3; text-align: right; font-variant-numeric: tabular-nums; }
.note-raison { display: flex; gap: 10px; margin: 18px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--violet-voile); color: var(--texte-2); font-size: 14px; }
.note-raison .ic { width: 18px; height: 18px; color: var(--violet-vif); margin-top: 1px; }
.note-vide { display: grid; justify-items: center; gap: 8px; text-align: center; color: var(--texte-3); padding: 20px 6px; }
.note-vide .ic { width: 28px; height: 28px; color: var(--violet-vif); }
.piste-mots i.fort { background: rgba(255, 225, 77, .55); }
.ed-liste-tete .btn { min-height: 32px; padding: 0 12px; font-size: 13px; }
.ed-liste-tete .btn .ic { width: 16px; height: 16px; }
@media (max-width: 900px) { .modes { grid-template-columns: 1fr; } }

/* ---------- Page Abonnement : 4 offres, au mois / à l'année ---------- */
.offres-app { grid-template-columns: repeat(4, 1fr); }
.bandeau-lancement { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; padding: 12px 16px; border-radius: 14px; background: rgba(255, 225, 77, .1); color: var(--texte-2); box-shadow: inset 0 0 0 1px rgba(255, 225, 77, .25); }
.bandeau-lancement strong { color: var(--jaune); }
.bandeau-lancement .ic { color: var(--jaune); }
.periode-app { display: inline-flex; margin-bottom: 18px; }
.periode-app span { padding: 8px 16px; }
.prix-sous { margin: 0; color: var(--texte-3); font-size: 13px; }
.prix-lanc { margin: 6px 0 2px; padding: 3px 8px; border-radius: 7px; background: rgba(255, 225, 77, .12); color: var(--jaune); font-size: 12.5px; font-weight: 700; }
.offre-app .pastille-jaune { justify-self: start; }
@media (max-width: 1280px) { .offres-app { grid-template-columns: 1fr 1fr; } }
@media (max-width: 900px) { .offres-app { grid-template-columns: 1fr; } }

/* ---------- Calendrier : liste des publications ---------- */
.pubs { display: grid; gap: 8px; }
.pub { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--ligne); }
.pub .logo-r { border-radius: 8px; }
.pub-texte { flex: 1; min-width: 0; display: grid; gap: 2px; }
.pub-texte strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pub-texte small { color: var(--texte-3); font-size: 13px; }
.pub-texte .pub-erreur { color: var(--rouge-vif); }
.pub-statut { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--surface-3); color: var(--texte-2); font-size: 13px; font-weight: 700; white-space: nowrap; }
.pub-statut .ic { width: 14px; height: 14px; }
.st-ok .pub-statut { background: rgba(61, 220, 151, .14); color: var(--vert-vif); }
.st-ko .pub-statut { background: rgba(255, 92, 108, .14); color: var(--rouge-vif); }
.st-cours .pub-statut { background: var(--violet-voile); color: #CDBEFF; }
.cal-ev.st-ok { box-shadow: inset 3px 0 0 var(--vert-vif); }
.cal-ev.st-ko { box-shadow: inset 3px 0 0 var(--rouge-vif); }
.cal-ev.st-cours { box-shadow: inset 3px 0 0 var(--violet-vif); }
.cal-ev .logo-r { border-radius: 4px; }
@media (max-width: 900px) {
  .pub { flex-wrap: wrap; }
  .pub-texte { flex-basis: calc(100% - 50px); }
}
