/* Jeu « Calendrier de l'Avent MANDRO » (Noël 2026) — la page /avent/ (site/_vues_avent.php).
   Mobile d'abord (on arrive d'Instagram) ; charte du jeu : rouge #e72b25, gris #6b6a6a, gris clair #b7b3b3, blanc ; à plat. */
.avent { --av-rouge: #e72b25; --av-rouge-f: #c31f1a; --av-gris: #6b6a6a; --av-clair: #b7b3b3; --av-fond: #f6f5f5; }
.avent main { background: var(--av-fond); }

.av-tete { background: var(--av-rouge); color: #fff; text-align: center; }
.av-tete-in { padding-block: 26px 24px; }
.av-sur { margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; opacity: .9; }
.av-tete h1 { color: #fff; font-size: clamp(26px, 6.4vw, 40px); }
.av-case-du-jour { display: inline-block; margin: 16px 0 0; padding: 6px 16px; border: 2px solid #fff; font-size: 15px; letter-spacing: .04em; }
.av-case-du-jour b { font-size: 20px; }
.av-lot { margin: 14px auto 0; max-width: 520px; font-size: 14.5px; line-height: 1.45; }
.av-lot span { opacity: .85; white-space: nowrap; }

.av-corps { padding-block: 22px 40px; max-width: 760px; }

/* Les 24 cases : 6 par ligne, carrées. */
.av-cases { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; }
.av-case { aspect-ratio: 1; display: grid; place-items: center; background: #fff; border: 1px solid #e3e1e1; color: var(--av-gris); font-family: var(--serif); font-size: clamp(12px, 3.2vw, 19px); position: relative; }
.av-case.passee { background: #eeeded; color: var(--av-clair); border-color: #eeeded; }
.av-case.jour { background: var(--av-rouge); border-color: var(--av-rouge); color: #fff; }
.av-case.avenir { color: var(--av-clair); }
.av-case.jouee::after { content: "✓"; position: absolute; right: 2px; top: 1px; font: 700 9px/1 var(--sans); color: #1f7a4d; }
.av-case.jour.jouee::after { color: #fff; }

.av-carte { background: #fff; border: 1px solid #e3e1e1; padding: 22px 18px; }
@media (min-width: 640px) { .av-carte { padding: 28px 30px; } }
.av-carte h2 { font-size: 24px; margin-bottom: 10px; }
.av-attente, .av-merci { text-align: center; }
.av-attente p, .av-merci p { margin: 0 0 12px; }
.av-compte { font-family: var(--serif); font-size: 26px; color: var(--av-rouge); }
.av-liens { font-size: 14px; color: var(--av-gris); }
.av-liens a, .av-aide a, .av-rgpd a { color: inherit; }

.av-form { display: grid; gap: 12px; }
.av-form label { display: grid; gap: 5px; font-size: 13.5px; font-weight: 600; color: #333; }
.av-form input[type=text], .av-form input:not([type]), .av-form input[type=email], .av-form input[type=tel] {
  font: inherit; font-size: 16px; font-weight: 400; padding: 11px 12px; border: 1px solid #cfcccc; background: #fff; color: #222; width: 100%; min-width: 0; border-radius: 0; }
.av-form input:focus { outline: 2px solid var(--av-rouge); outline-offset: 0; border-color: var(--av-rouge); }
.av-form .av-ko input { border-color: var(--av-rouge); background: #fff7f6; }
.av-mot { font-size: 15px !important; }
.av-mot input { font-size: 22px !important; letter-spacing: .12em; text-transform: uppercase; text-align: center; padding: 14px 12px !important; border-width: 2px !important; }
.av-mot input::placeholder { font-size: 14px; letter-spacing: 0; text-transform: none; }
.av-aide { font-size: 12.5px; font-weight: 400; color: var(--av-gris); }
.av-coord { display: grid; gap: 12px; }
.av-ligne2 { display: grid; gap: 12px; }
@media (min-width: 560px) { .av-ligne2 { grid-template-columns: 1fr 1fr; } .av-cp { grid-template-columns: 9em 1fr; } }
.av-err { margin: -6px 0 0; font-size: 12.5px; font-weight: 600; color: var(--av-rouge); }
.av-err:empty { display: none; }

.av-choix { border: 0; margin: 0; padding: 0; min-width: 0; }
.av-choix legend { padding: 0; margin-bottom: 7px; font-size: 13.5px; font-weight: 600; color: #333; }
.av-pastilles { display: flex; flex-wrap: wrap; gap: 7px; }
.av-pastilles label { display: block; font-weight: 400; }
.av-pastilles input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.av-pastilles span { display: inline-block; padding: 9px 13px; border: 1px solid #cfcccc; background: #fff; font-size: 14px; color: #333; cursor: pointer; }
.av-pastilles input:checked + span { background: var(--av-rouge); border-color: var(--av-rouge); color: #fff; }
.av-pastilles input:focus-visible + span { outline: 2px solid var(--av-rouge); outline-offset: 2px; }
.av-choix.av-ko span { border-color: var(--av-rouge); }

.av-coches { display: grid; gap: 10px; margin-top: 2px; }
.av-coche { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 400 !important; font-size: 13px !important; line-height: 1.45; color: #444 !important; }
.av-coche input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--av-rouge); }
.av-coche a { color: inherit; }
.av-coche.av-ko span { color: var(--av-rouge); }

.av-moi { background: var(--av-fond); padding: 12px 14px; font-size: 14px; }
.av-moi p { margin: 0; }
.av-moi p + p { margin-top: 4px; font-size: 13px; }
#av-moi-mail { color: var(--av-gris); }
.av-lien { border: 0; background: none; padding: 0; color: var(--av-rouge); font: inherit; text-decoration: underline; cursor: pointer; }

.av-envoyer { width: 100%; font-size: 13px; padding: 15px; margin-top: 4px; background: var(--av-rouge) !important; border-color: var(--av-rouge) !important; }
.av-envoyer:hover { background: var(--av-rouge-f) !important; }
.av-envoyer:disabled { opacity: .7; cursor: wait; }
.av-retour { margin: 0; font-size: 14px; font-weight: 600; color: var(--av-rouge); min-height: 1em; }
.av-retour:empty { display: none; }
.av-rgpd { margin: 0; font-size: 11.5px; line-height: 1.5; color: #8a8888; }
.av-form .ts-boite { min-height: 0; }

.av-merci { outline: none; }
.av-merci-ico { font-size: 40px; margin: 0 0 4px !important; }
.av-merci h2 { color: var(--av-rouge); }
#av-merci-texte { font-size: 16px; }
.av-rappel { font-size: 13.5px; color: var(--av-gris); border-top: 1px solid #eee; padding-top: 12px; }

.av-etapes { display: grid; gap: 10px; margin-top: 22px; }
@media (min-width: 640px) { .av-etapes { grid-template-columns: repeat(3, 1fr); } }
.av-etapes div { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid #e3e1e1; padding: 14px; }
.av-etapes b { flex: none; width: 28px; height: 28px; display: grid; place-items: center; background: var(--av-rouge); color: #fff; font-size: 14px; }
.av-etapes p { margin: 0; font-size: 13.5px; line-height: 1.5; }

/* Noël (23/11) : le haut de page (neige, guirlande : site.css) ; la case du jour en paquet cadeau. */
.av-tete-in { padding-bottom: 44px; }
.av-case-du-jour { position: relative; margin-top: 24px; background: #fff; color: var(--av-rouge); border: 0; box-shadow: inset 0 0 0 3px #f5c542, 0 6px 16px rgba(80, 6, 4, .28); padding: 8px 18px; }
.av-case.jour { box-shadow: inset 0 0 0 2px #f5c542; }
