/* Make your ad : sobre, lisible sur téléphone. Couleurs en variables, thème sombre automatique. */
:root {
  --fond: #ffffff; --texte: #1c1b22; --doux: #5d5b6b; --ligne: #dcdae6; --carte: #f6f5fb;
  --accent: #5b3fd6; --accent-texte: #ffffff; --ok: #1d7a46; --ok-fond: #e5f5ec; --alerte: #b3261e; --alerte-fond: #fdeceb; --attente: #8a5a00; --attente-fond: #fff3d6;
}
@media (prefers-color-scheme: dark) {
  :root { --fond: #16151c; --texte: #f1f0f7; --doux: #a9a7b8; --ligne: #34323f; --carte: #1f1e28; --accent: #8c76ff; --accent-texte: #12101c; --ok: #6fd69b; --ok-fond: #17301f; --alerte: #ff8f87; --alerte-fond: #3a1a18; --attente: #ffcf70; --attente-fond: #382c10; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fond); color: var(--texte); font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); }
main { max-width: 680px; margin: 0 auto; padding: 0 16px 48px; }
.haut { border-bottom: 1px solid var(--ligne); }
.haut-in { max-width: 680px; margin: 0 auto; padding: 0 16px; min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.haut .marque { font-weight: 700; text-decoration: none; color: var(--texte); }
.haut nav { display: flex; align-items: center; gap: 14px; }
.haut nav a { text-decoration: none; }
h1 { font-size: 1.7rem; line-height: 1.2; margin: 28px 0 8px; }
h2 { font-size: 1.15rem; margin: 28px 0 8px; }
p { margin: 8px 0; }
.sous { color: var(--doux); font-size: 1.05rem; }
.petit { color: var(--doux); font-size: .88rem; }
button { font: inherit; }
.bouton, .primaire, .secondaire, .langue { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: 10px; border: 1px solid var(--accent); text-decoration: none; cursor: pointer; font: inherit; }
.bouton, .primaire { background: var(--accent); color: var(--accent-texte); font-weight: 600; }
.secondaire, .langue { background: transparent; color: var(--accent); }
.langue { min-height: 36px; padding: 0 12px; }
.primaire:disabled, .secondaire:disabled { opacity: .5; cursor: not-allowed; }
.pleine { width: 100%; }
.carte { background: var(--carte); border: 1px solid var(--ligne); border-radius: 12px; padding: 14px 16px; margin: 12px 0; }
.prix { font-size: 2.2rem; font-weight: 700; margin: 0; }
ol.etapes { padding-left: 22px; } ol.etapes li { margin: 8px 0; }
ul.regles { padding-left: 20px; } ul.regles li { margin: 6px 0; }
.comptes { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.comptes li { background: var(--carte); border: 1px solid var(--ligne); border-radius: 999px; padding: 6px 14px; }
.refus { border-left: 4px solid var(--alerte); }
.champ { margin: 18px 0; }
.champ > label, .champ > legend { display: block; font-weight: 600; margin-bottom: 4px; padding: 0; }
fieldset.champ { border: 0; padding: 0; min-width: 0; }
input[type=email], input[type=text], input[type=url], input[type=password], textarea { width: 100%; font: inherit; color: var(--texte); background: var(--fond); border: 1px solid var(--ligne); border-radius: 10px; padding: 11px 12px; min-height: 44px; }
textarea { min-height: 110px; resize: vertical; }
input:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.jour input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.champ.erreur input, .champ.erreur textarea { border-color: var(--alerte); }
.message-erreur { color: var(--alerte); font-size: .92rem; margin: 6px 0 0; }
.compteur { text-align: right; }
.jours { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; margin-top: 8px; }
.jour { position: relative; display: block; }
.jour input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.jour span { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 58px; border: 1px solid var(--ligne); border-radius: 10px; background: var(--fond); text-align: center; padding: 4px; }
.jour small { color: var(--doux); }
.jour input:checked + span { border: 2px solid var(--accent); background: var(--carte); font-weight: 600; }
.jour input:disabled { cursor: not-allowed; }
.jour input:disabled + span { opacity: .45; }
.case { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0; }
.case input { width: 22px; height: 22px; margin-top: 2px; flex: none; }
.video-zone { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.video-zone input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.video-nom { color: var(--doux); word-break: break-all; }
progress { width: 100%; height: 10px; }
.statut { border-radius: 10px; padding: 12px 14px; margin: 14px 0; font-weight: 600; }
.statut.ok { background: var(--ok-fond); color: var(--ok); }
.statut.attente { background: var(--attente-fond); color: var(--attente); }
.statut.non { background: var(--alerte-fond); color: var(--alerte); }
.bandeau-erreur { background: var(--alerte-fond); color: var(--alerte); border-radius: 10px; padding: 10px 14px; margin: 14px 0; }
.cgv h2 { margin-top: 22px; }
footer { max-width: 680px; margin: 0 auto; padding: 24px 16px 40px; color: var(--doux); font-size: .88rem; border-top: 1px solid var(--ligne); }
[hidden] { display: none !important; }
/* admin */
.admin-jour { margin-top: 26px; }
.admin-jour h2 { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.admin-carte video { width: 100%; max-height: 70vh; background: #000; border-radius: 8px; margin: 8px 0; }
.admin-carte .actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.admin-carte input[type=text], .admin-carte input[type=url] { margin-top: 8px; }
.admin-carte .texte-pub { white-space: pre-wrap; word-break: break-word; background: var(--fond); border: 1px solid var(--ligne); border-radius: 8px; padding: 8px 10px; }
.puce { display: inline-block; font-size: .8rem; font-weight: 600; padding: 2px 10px; border-radius: 999px; background: var(--carte); border: 1px solid var(--ligne); }
.puce.ok { background: var(--ok-fond); color: var(--ok); border-color: transparent; }
.puce.attente { background: var(--attente-fond); color: var(--attente); border-color: transparent; }
.puce.non { background: var(--alerte-fond); color: var(--alerte); border-color: transparent; }
.rappel-pub { background: var(--attente-fond); color: var(--attente); border-radius: 10px; padding: 10px 14px; margin: 14px 0; font-weight: 600; }
