/* ============================================================
   L'espace organisateur : les composants communs aux écrans 8 à 17
   (maquettes-site/8-… à 17-…, refonte du 26 octobre 2026).
   Inscription, mot de passe, Mes fêtes, créer, gérer une fête,
   contrôle à l'entrée, profil, retour de paiement, pages légales et
   page introuvable chargent cette feuille après style.css ; chacune
   garde la sienne pour ce qui n'est qu'à elle.

   Les couleurs viennent de brand/tokens.css. Contrastes mesurés :
   - texte bleu sur la carte papier : 10,60 ; sur le champ #FFFDF7 : 11,4 ;
   - aide #2B3570 (--lb-bleu-doux) sur papier : 10,29 ;
   - papier sur bleu : 10,60 ; brume #C9CEF0 sur bleu : 7,6 ;
   - pastille jaune, texte bleu : 7,08 ; pastille bleue, texte papier :
     10,60. Le rouge ne porte jamais de texte : la pastille « en vente »
     des maquettes (papier sur rouge, 4,08) passe en bleu bordé de rouge.
   ============================================================ */

/* ---------- Titres de page ---------- */
.o-titre{margin:0; font-family:var(--titre); font-weight:400; font-size:46px; line-height:1.02;
  text-transform:uppercase; color:var(--lb-jaune); text-shadow:4px 4px 0 var(--lb-rouge)}
.o-sous-titre{margin:8px 0 0; font-size:17px; line-height:1.45; color:var(--brume)}
@media (max-width:900px){
  .o-titre{font-size:28px; text-shadow:3px 3px 0 var(--lb-rouge)}
  .o-sous-titre{font-size:16px}
}
/* La petite étiquette en Martian Mono (« Contrôle à l'entrée », « Informations »). */
.o-etiquette{font-family:var(--lb-font-info); font-size:12px; font-weight:700;
  text-transform:uppercase; letter-spacing:.12em; color:var(--lb-jaune)}

/* ---------- La carte papier ----------
   Bord bleu de 3 px, ombre rouge de 5 px, comme les écrans 1 à 7. */
.o-carte{
  background:var(--lb-papier); color:var(--lb-bleu);
  border:3px solid var(--lb-bleu); border-radius:12px; box-shadow:0 5px 0 var(--lb-rouge);
  padding:20px 18px;
}
@media (min-width:901px){ .o-carte{padding:24px 26px} }
/* Sur une page bleue, un .encart est bordé de jaune : la carte reste
   bordée de bleu. Un bouton à contour posé dessus passe en bleu (sinon,
   papier sur papier, il disparaît). */
.page-bleue .o-carte{border-color:var(--lb-bleu)}
.page-bleue .o-carte .btn--contour{--bg:transparent; --fg:var(--lb-bleu); --bord:var(--lb-bleu)}
/* Un bloc numéroté : le rond jaune, puis le titre (et son aide). */
.o-bloc-tete{display:flex; align-items:center; gap:12px; margin-bottom:18px}
.o-num{
  width:34px; height:34px; flex:0 0 34px; border-radius:50%; box-sizing:border-box;
  display:flex; align-items:center; justify-content:center;
  background:var(--lb-jaune); border:2.5px solid var(--lb-bleu); color:var(--lb-bleu);
  font-family:var(--titre); font-size:15px;
}
.o-bloc-titre{margin:0; font-family:var(--titre); font-weight:400; font-size:19px; text-transform:uppercase; color:var(--lb-bleu)}
.o-bloc-tete .o-aide{margin-top:2px}

/* ---------- Les champs ----------
   Fond #FFFDF7, bordure bleue de 2,5 px, rayon 10 px, 52 px de haut.
   Le libellé en Archivo 800 15 px, « (facultatif) » plus petit et plus
   léger, l'aide en 13 px. .o-saisie entoure le champ quand il a un
   préfixe (« +221 », « LB- ») ou un suffixe (« FCFA », « personnes ») ;
   sans eux, le champ seul prend le même dessin. */
.o-champ{display:flex; flex-direction:column; gap:8px; min-width:0; margin:0 0 16px}
.o-champ:last-child{margin-bottom:0}
.o-label{font-family:var(--lb-font-texte); font-weight:800; font-size:15px; color:var(--lb-bleu); text-transform:none; letter-spacing:0}
.o-facultatif{font-weight:500; font-size:13px; color:var(--lb-bleu-doux)}
.o-aide{margin:0; font-size:13px; line-height:1.4; color:var(--lb-bleu-doux)}
.o-erreur{margin:0; font-size:14px; font-weight:700; color:var(--lb-bleu)}
.o-erreur:empty{display:none}
.o-saisie, .o-champ > input, .o-champ > select, .o-champ > textarea{
  display:flex; align-items:center; gap:10px; width:100%; min-height:52px; box-sizing:border-box;
  padding:0 14px; background:#FFFDF7; color:var(--lb-bleu);
  border:2.5px solid var(--lb-bleu); border-radius:10px;
  font:inherit; font-size:16px;
}
.o-champ > textarea{display:block; padding:12px 14px; min-height:110px; resize:vertical}
.o-saisie input, .o-saisie select, .o-saisie textarea{
  flex:1; min-width:0; min-height:48px; padding:0; border:0; background:transparent;
  font:inherit; font-size:16px; color:var(--lb-bleu); outline:0;
}
.o-saisie:focus-within, .o-champ > :is(input, select, textarea):focus{outline:3px solid var(--lb-bleu); outline-offset:3px}
.page-bleue .o-carte .o-saisie:focus-within{outline-color:var(--lb-bleu)}
.o-saisie:has([aria-invalid="true"]), .o-champ > [aria-invalid="true"]{border-color:var(--lb-rouge)}
.o-saisie :is(input, textarea)::placeholder, .o-champ > :is(input, textarea)::placeholder{color:var(--lb-bleu-doux); opacity:.72}
.o-prefixe{font-weight:800; color:var(--lb-bleu); padding-right:10px; border-right:2px solid #E3D6B4; white-space:nowrap}
.o-suffixe{font-weight:700; color:var(--lb-bleu-doux); white-space:nowrap}
.o-saisie:has(input:disabled){background:#F3EAD2}
/* Deux champs sur une ligne (Prénom et Nom). */
.o-duo{display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:12px}
.o-duo > .o-champ{margin-bottom:16px}
@media (max-width:360px){ .o-duo{grid-template-columns:minmax(0,1fr)} }

/* ---------- Les pastilles d'état ----------
   Jaune (Ce soir), bleue (En vente, Passée…), papier (Brouillon…).
   Rouge interdit au texte : « Complet » et « Annulée » sont bleues,
   bordées de rouge. */
.o-puce{
  display:inline-flex; align-items:center; gap:6px; white-space:nowrap;
  padding:4px 9px; border-radius:999px; border:2px solid transparent;
  font-size:12px; font-weight:800; text-transform:uppercase; letter-spacing:.06em;
  background:var(--lb-bleu); color:var(--lb-papier);
}
.o-puce--jaune{background:var(--lb-jaune); color:var(--lb-bleu)}
.o-puce--papier{background:var(--lb-papier); color:var(--lb-bleu); border-color:var(--lb-bleu)}
.o-puce--alerte{background:var(--lb-bleu); color:var(--lb-papier); border-color:var(--lb-rouge)}
.o-puces{display:flex; gap:6px; flex-wrap:wrap}

/* ---------- La barre de progression (places vendues, entrées) ---------- */
.o-barre{height:10px; border-radius:5px; background:rgba(28,43,143,.14); overflow:hidden}
.o-barre > span{display:block; height:100%; border-radius:inherit; background:var(--lb-bleu)}
.o-barre--sombre{background:rgba(251,243,223,.22)}
.o-barre--sombre > span{background:var(--lb-jaune)}

/* ---------- L'encadré d'information, sur le fond bleu ---------- */
.o-encadre{
  display:flex; gap:12px; align-items:flex-start; padding:14px;
  background:rgba(251,243,223,.1); border:2px solid rgba(251,243,223,.25); border-radius:12px;
  color:var(--lb-papier); font-size:15px; line-height:1.45;
}
.o-encadre > svg{flex:none; width:22px; height:22px; color:var(--lb-jaune)}
.o-encadre p{margin:0}
/* Sur papier : bord bleu ; en alerte : bord rouge, texte toujours bleu. */
.o-encadre--papier{background:var(--lb-papier); color:var(--lb-bleu); border-color:var(--lb-bleu)}
.o-encadre--alerte{background:var(--lb-papier); color:var(--lb-bleu); border:3px solid var(--lb-rouge)}
.o-encadre--alerte > svg{color:var(--lb-rouge)}

/* ---------- Les tuiles (Modifier, Dupliquer, Page publique) ---------- */
.o-tuiles{display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:10px}
.o-tuile{
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px;
  min-height:84px; padding:8px; border-radius:12px; border:2.5px solid rgba(251,243,223,.45);
  color:var(--lb-papier); text-decoration:none; font-weight:800; font-size:14px; text-align:center;
  background:none; font-family:inherit; cursor:pointer;
}
.o-tuile svg{width:22px; height:22px; color:var(--lb-jaune)}
.o-tuile:hover{border-color:var(--lb-jaune); color:var(--lb-papier)}
.o-tuile:focus-visible{outline:3px solid var(--lb-jaune); outline-offset:3px}

/* ---------- Boutons propres à l'espace organisateur ----------
   À contour rouge (Annuler la fête, Supprimer…) : le rouge n'est que la
   bordure, le texte reste papier sur le bleu (10,60). En pointillés :
   « Ajouter un tarif », « Choisir une photo ». */
.page-bleue .btn--danger{--bg:transparent; --fg:var(--lb-papier); --bord:var(--lb-rouge); --sh:transparent}
.o-carte .btn--danger{--fg:var(--lb-bleu)}
.o-pointilles{
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px;
  width:100%; min-height:56px; padding:12px; box-sizing:border-box;
  border:2.5px dashed var(--lb-bleu); border-radius:12px; background:#FFFDF7;
  font:inherit; font-weight:800; color:var(--lb-bleu); cursor:pointer;
}
.o-pointilles:hover{background:var(--lb-papier)}
.o-pointilles:focus-visible{outline:3px solid var(--lb-bleu); outline-offset:3px}
.o-pointilles svg{width:28px; height:28px}

/* ---------- Le compteur de caractères (« 0 / 280 ») ---------- */
.o-compteur{font-family:var(--lb-font-info); font-size:12px; font-weight:700; color:var(--lb-bleu-doux); white-space:nowrap}
.o-ligne-aide{display:flex; justify-content:space-between; align-items:flex-start; gap:12px}
