:root { --nuit: #0B1B33; --jaune: #FFD23F; --fond: #F4F6F9; --texte: #14213D; --doux: #4A5568; --vert: #1F7A4D; --rouge: #B42318; font-size: 18px; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--fond); color: var(--texte); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; line-height: 1.45; }
.visuel-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.bandeau { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top)); background: var(--nuit); color: #fff; }
.marque { font-weight: 800; letter-spacing: .02em; }
.etat-direct { font-size: .85rem; padding: 4px 10px; border-radius: 99px; background: #2D3B55; }
.etat-direct.en-direct { background: #C81E1E; font-weight: 700; }
.salle { display: grid; grid-template-columns: 1fr; gap: 0; max-width: 1500px; margin: 0 auto; }
@media (min-width: 980px) { .salle { grid-template-columns: minmax(0, 1fr) 380px; gap: 16px; padding: 16px; } }
.scene { position: relative; }
.lecteur { position: relative; background: #000; aspect-ratio: 16 / 9; width: 100%; }
@media (min-width: 980px) { .lecteur { border-radius: 12px; overflow: hidden; } }
video { width: 100%; height: 100%; display: block; background: #000; }
.ecran { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 20px; background: var(--nuit); color: #fff; }
.ecran[hidden] { display: none; }
.ecran-titre { font-size: 1.5rem; font-weight: 800; margin: 0 0 8px; }
.ecran-texte { margin: 0; opacity: .9; }
.compte { font-size: 2.2rem; font-weight: 800; color: var(--jaune); margin: 14px 0 0; font-variant-numeric: tabular-nums; }
.son { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); font-size: 1.15rem; font-weight: 800; padding: 14px 22px; border: 0; border-radius: 99px; background: var(--jaune); color: var(--nuit); box-shadow: 0 4px 18px rgba(0,0,0,.35); cursor: pointer; }
.offre { position: relative; margin: 12px; padding: 18px 18px 16px; background: #fff; border: 3px solid var(--jaune); border-radius: 14px; box-shadow: 0 6px 22px rgba(11,27,51,.12); }
.offre-fermer { position: absolute; top: 6px; right: 8px; border: 0; background: none; font-size: 1.6rem; line-height: 1; color: var(--doux); cursor: pointer; padding: 6px; }
.offre-titre { font-size: 1.35rem; font-weight: 800; margin: 0 0 4px; }
.offre-sous { margin: 0 0 8px; color: var(--doux); }
.offre-liste { margin: 0 0 10px; padding-left: 1.2em; }
.offre-liste li { margin: 3px 0; }
.offre-prix { margin: 0 0 4px; font-size: 1.1rem; }
.offre-echeance { margin: 0 0 12px; font-weight: 700; }
.offre-bouton, .bande-offre { display: block; text-align: center; font-size: 1.2rem; font-weight: 800; padding: 15px; border-radius: 12px; background: var(--jaune); color: var(--nuit); text-decoration: none; }
.bande-offre { position: sticky; bottom: 0; margin: 0 12px 12px; border-radius: 12px; z-index: 5; box-shadow: 0 -2px 14px rgba(0,0,0,.12); }
.chat { display: flex; flex-direction: column; background: #fff; min-height: 60vh; padding: 14px 14px max(14px, env(safe-area-inset-bottom)); }
@media (min-width: 980px) { .chat { border-radius: 12px; height: calc(100vh - 90px); position: sticky; top: 16px; min-height: 0; } }
.chat-titre { margin: 0; font-size: 1.15rem; }
.chat-info { margin: 2px 0 10px; font-size: .85rem; color: var(--doux); }
.fil { list-style: none; margin: 0; padding: 0; flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; min-height: 200px; max-height: 55vh; }
@media (min-width: 980px) { .fil { max-height: none; } }
.fil li { padding: 9px 12px; border-radius: 10px; background: var(--fond); word-wrap: break-word; overflow-wrap: anywhere; }
.fil li b { display: block; font-size: .85rem; color: var(--doux); }
.fil li.epingle { background: #FFF5CF; border-left: 4px solid var(--jaune); }
.fil li.regie b { color: var(--nuit); }
.fil li.mien { background: #EAF2FF; }
.fil li .statut { display: block; font-size: .78rem; margin-top: 3px; color: var(--doux); }
.fil li .statut.publie { color: var(--vert); }
.fil li .statut.non_publie { color: var(--rouge); }
.fil li .modifie { font-size: .78rem; color: var(--doux); font-style: italic; }
.saisie { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.saisie label { font-weight: 700; }
.saisie input, .saisie textarea { width: 100%; font: inherit; font-size: 1rem; padding: 11px 12px; border: 2px solid #CBD2DC; border-radius: 10px; resize: vertical; }
.saisie input:focus, .saisie textarea:focus { outline: 3px solid var(--jaune); border-color: var(--nuit); }
.ligne { display: flex; gap: 8px; align-items: center; justify-content: space-between; }
.ligne input { flex: 1; }
.saisie button { font: inherit; font-weight: 800; padding: 11px 18px; border: 0; border-radius: 10px; background: var(--nuit); color: #fff; cursor: pointer; }
.saisie button:disabled { opacity: .5; }
.compteur { font-size: .8rem; color: var(--doux); }
.erreur { margin: 0; color: var(--rouge); font-size: .9rem; min-height: 1.2em; }
