/* L'appel du Père Noël / Santa's Call — feuille maison, sobre, mobile d'abord.
   Polices système, aucun appel externe, contrastes AA (texte ≥ 4,5:1).
   Rouge et vert : ceux des courriels (core/noel/mailer.py). */

:root {
  --ink: #1f1a17;
  --muted: #5a4f48;
  --line: #e2d8cf;
  --paper: #fffdf9;
  --soft: #f7efe6;
  --accent: #b3261e;      /* 6,2:1 sur blanc */
  --accent-dark: #8c1d17;
  --green: #1e6b3a;       /* 6,6:1 sur blanc */
  --err-bg: #fdecec;
  --err-line: #c43c3c;
  --radius: 10px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  text-align: start;
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

.wrap { max-width: 58rem; margin: 0 auto; padding: 0 1.1rem; }

a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-dark); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
}

.skip { position: absolute; inset-inline-start: -10000px; top: 0; background: var(--ink); color: #fff; padding: .5rem 1rem; z-index: 10; }
.skip:focus { inset-inline-start: 1rem; }

/* ── en-tête ── */
.top { border-bottom: 3px solid var(--accent); background: var(--paper); }
.top-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; padding-top: .8rem; padding-bottom: .8rem; }
.logo { font-family: Georgia, "Times New Roman", serif; font-size: 1.35rem; font-weight: 700; color: var(--accent); text-decoration: none; display: inline-flex; }
.logo img { display: block; height: 52px; width: auto; }
@media (max-width: 480px) { .logo img { height: 42px; } }
.top nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; align-items: center; }
.top nav a { text-decoration: none; color: var(--ink); font-weight: 500; }
.top nav a:hover { color: var(--accent); text-decoration: underline; }
.top nav .nav-cta { color: var(--accent); font-weight: 700; }
/* Menu des langues (NOEL.10v) : ancré au bord de l'en-tête (.top-inner), pas au
   bouton. Le bouton passe souvent à la ligne sur un téléphone ; ancré à lui, le menu
   sortait de l'écran (thaï, coréen, arabe, persan…). Il s'ouvre sous le bouton, aligné
   sur le bord de fin de l'en-tête, jamais plus large que lui. */
.top-inner { position: relative; }
.top .langs { position: static; border: 0; padding: 0; }
.top .langs summary { cursor: pointer; border: 1px solid var(--line); border-radius: 999px; padding: .1rem .7rem; font-size: .95rem; list-style: none; }
.top .langs summary::-webkit-details-marker { display: none; }
.top .langs summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.top .langs ul { position: absolute; inset-inline-end: 1.1rem; max-width: calc(100% - 2.2rem); z-index: 5; display: block; margin: .3rem 0 0; padding: .4rem 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 6px 18px rgba(0,0,0,.12); max-height: 60vh; overflow-y: auto; min-width: 11rem; }
.top .langs li a { display: block; padding: .3rem 1rem; text-align: start; }
.top .langs a[aria-current] { font-weight: 700; color: var(--accent); }

/* ── contenu ── */
main { padding-top: 1.5rem; padding-bottom: 3rem; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; line-height: 1.25; }
/* NOEL.10i : Georgia place mal les doubles accents vietnamiens (ắ, ế, ề). */
:lang(vi) h1, :lang(vi) h2, :lang(vi) h3, :lang(vi) .logo { font-family: inherit; }
h1 { font-size: 2rem; margin: .5rem 0 1rem; }
h2 { font-size: 1.45rem; margin: 2.2rem 0 .8rem; }
h3 { font-size: 1.15rem; margin: 0 0 .4rem; }
.muted { color: var(--muted); font-size: .95rem; }
.center { text-align: center; }

.hero { padding: 1rem 0 .5rem; display: grid; gap: 1.5rem; grid-template-columns: 1.05fr 1fr; align-items: center; }
.hero-img { margin: 0; }
.hero-img img, .band img, .step-img { width: 100%; height: auto; display: block; border-radius: var(--radius); }
.hero-img figcaption { color: var(--muted); font-size: .8rem; margin-top: .35rem; }
.step-img { aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: .8rem; }
.band { margin: 2.2rem 0 0; }
.apparences-apercu { display: flex; gap: .6rem; margin-top: .6rem; }
.apparences-apercu img { width: 64px; height: 64px; object-fit: cover; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); }
@media (max-width: 46rem) { .hero { grid-template-columns: 1fr; } .hero-img { order: -1; } }
.hero h1 { font-size: 2.3rem; color: var(--accent); }
.lead { font-size: 1.2rem; max-width: 42rem; }

.button {
  display: inline-block; background: var(--accent); color: #fff; border: 0;
  border-radius: 999px; padding: .75rem 1.5rem; font-size: 1.05rem; font-weight: 700;
  text-decoration: none; cursor: pointer;
}
.button:hover { background: var(--accent-dark); color: #fff; }
.button.secondary { background: var(--green); }
.button.secondary:hover { background: #164f2b; }

.steps, .prices { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.prices { align-items: start; }
.card { background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.card p { margin: .3rem 0; }
.price .amount { font-size: 1.8rem; font-weight: 700; color: var(--accent); margin: .2rem 0 .5rem; }
.price.featured { border: 2px solid var(--green); }

.two { display: grid; gap: 0 2rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.note { border-inline-start: 4px solid var(--green); padding-block: .2rem; padding-inline: 1rem 0; margin-top: 2rem; }
.note h2 { margin-top: .5rem; }

details { border-bottom: 1px solid var(--line); padding: .6rem 0; }
summary { cursor: pointer; font-weight: 600; }
details p { margin: .5rem 0 .2rem; }

video.exemple, video.souvenir { width: 100%; max-width: 22rem; aspect-ratio: 9 / 16; background: #000; border-radius: var(--radius); display: block; margin: 1rem 0; }
audio.souvenir { width: 100%; max-width: 28rem; display: block; margin: 1rem 0; }
/* Extrait à écouter du haut de l'accueil (NOEL.EXTRAIT). */
.extrait { background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem; margin-top: 1rem; max-width: 34rem; }
.extrait h2 { font-size: 1.15rem; margin: 0 0 .5rem; }
.extrait audio { width: 100%; display: block; margin: .2rem 0 .4rem; }
.extrait .muted { font-size: .85rem; margin: .3rem 0; }
.extrait details { border-bottom: 0; padding: .2rem 0 0; }
.extrait details p { margin: .35rem 0; }

/* ── formulaire ── */
.form { max-width: 36rem; margin-bottom: 2rem; }
.form label { display: block; font-weight: 600; margin: 1rem 0 .3rem; }
.form input[type="text"], .form input[type="tel"], .form input[type="email"], .form select, .form textarea {
  width: 100%; font: inherit; padding: .55rem .7rem; border: 1px solid #8a7d73; border-radius: 6px; background: #fff; color: var(--ink);
}
.form button { margin-top: 1.2rem; }
.form fieldset { border: 1px solid var(--line); border-radius: var(--radius); margin: 1.4rem 0 0; padding: .6rem 1rem 1rem; }
/* NOEL.10i : un fieldset prend par défaut la largeur de son plus long mot ; un
   composé allemand ou tamoul faisait déborder l'écran du téléphone. */
.form fieldset { min-inline-size: 0; }
.form, .form label, .form p, .form legend { overflow-wrap: break-word; }
main { overflow-wrap: break-word; }
.form legend { font-weight: 700; padding: 0 .3rem; }
/* Cases et boutons radio (NOEL.10v) : 13 px par défaut, trop petits au doigt. Case
   de 22 px, et le libellé entier fait la zone de toucher (au moins 44 px de haut). */
.form label.choice { font-weight: 400; display: flex; gap: .65rem; align-items: flex-start; min-height: 2.75rem; padding: .45rem 0; margin: .2rem 0; cursor: pointer; }
.form label.choice input[type="checkbox"], .form label.choice input[type="radio"],
.form label.apparence input[type="radio"] { width: 1.375rem; height: 1.375rem; flex: none; margin: .1rem 0 0; accent-color: var(--accent); cursor: pointer; }
.help { color: var(--muted); font-size: .92rem; margin: .25rem 0 0; }
/* Apparence du Père Noël (NOEL.10b) : masquée par CSS seul quand l'option vidéo
   n'est pas cochée ; sans :has(), le choix reste affiché avec sa mention. */
.apparences-choix { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: .6rem; }
.form label.apparence { font-weight: 400; display: flex; flex-direction: column; align-items: center; gap: .4rem; width: 10.5rem; margin: 0; text-align: center; cursor: pointer; }
.form label.apparence img { width: 160px; height: 160px; object-fit: cover; border-radius: var(--radius); border: 3px solid transparent; }
.form label.apparence input:checked ~ img { border-color: var(--accent, #b3261e); }
.form:has(input[name="option"][value="appel"]:checked) fieldset.apparences { display: none; }
.field-error { color: var(--err-line); font-weight: 600; margin: .3rem 0 0; }
/* Garde de nuit (NOEL.11g) : une phrase visible, sans alarme. */
.nuit { background: #fff6e0; border: 1px solid #e0b44c; border-radius: var(--radius); padding: .5rem .8rem; margin: .5rem 0 0; font-weight: 600; }
.nuit[hidden] { display: none; }
.errors { background: var(--err-bg); border: 1px solid var(--err-line); border-radius: var(--radius); padding: .6rem 1rem; margin-bottom: 1rem; }
.consent-text { background: var(--soft); border-radius: 6px; padding: .8rem 1rem; font-size: .95rem; }
.hp { position: absolute; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }

.prose { max-width: 44rem; }
.message { max-width: 40rem; }
/* Page « Ma réservation » (NOEL.10t) : la fiche de l'appel, l'avis de changement. */
.fiche { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1rem; background: var(--soft); border-radius: var(--radius); padding: .8rem 1rem; margin: 1rem 0 1.5rem; }
.fiche dt { font-weight: 600; }
.fiche dd { margin: 0; overflow-wrap: anywhere; }
.notice { background: #e8f3ec; border: 1px solid var(--green); border-radius: var(--radius); padding: .6rem 1rem; }
.avis-langues { background: #fff4d6; border: 2px solid #b8860b; border-radius: var(--radius); padding: .7rem 1rem; font-weight: 600; margin: .4rem 0 1rem; }
@media (max-width: 30rem) {
  .fiche { grid-template-columns: 1fr; }
  .fiche dd { margin-block-end: .4rem; }
}

/* ── pied ── */
.bottom { border-top: 1px solid var(--line); background: var(--soft); padding: 1.2rem 0 2rem; font-size: .95rem; }
.bottom p { margin: .3rem 0; }
.foot-links a { margin-inline-end: 1rem; }
/* Canaux de la marque (NOEL.CANAUX) : icône dessinée dans la page, puis le nom. */
.foot-social a { display: inline-flex; align-items: center; gap: .35rem; margin-inline: .5rem .4rem; vertical-align: middle; }
.foot-social svg { flex: none; }

@media (max-width: 30rem) {
  h1, .hero h1 { font-size: 1.7rem; }
}

/* ── appel de famille (NOEL.10l) : un bloc par enfant, ordre par ▲/▼ ── */
.form .defaut { position: absolute; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; margin: 0; }
.enfant { border-top: 1px solid var(--line); margin-top: 1rem; padding-top: .4rem; }
#enfants, #dernier-enfant { scroll-margin-top: 1rem; }
.enfant:first-of-type { border-top: 0; margin-top: .4rem; }
.enfant-tete { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem; }
.enfant-tete h3 { margin: .6rem 0 0; font-size: 1.05rem; }
.ordre { display: flex; gap: .4rem; }
.form button.mini { margin: .6rem 0 0; min-width: 2.75rem; min-height: 2.75rem; font: inherit; font-size: 1rem; border: 1px solid #8a7d73; border-radius: 6px; background: #fff; color: var(--ink); cursor: pointer; }
.form button.mini:hover { background: var(--soft); }
.form button.mini:focus-visible, .musique:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.form button.retirer { color: var(--accent); }
.prix-famille { font-weight: 600; color: var(--ink); }
/* Accueil : annonce de l'appel de famille sous les prix (2026-11-12). */
.famille-accueil { margin-top: 1.25rem; }

/* ── musique d'ambiance (NOEL.10l) : bouton visible en haut de page ── */
.musique { font: inherit; font-size: 1.15rem; line-height: 1; min-width: 2.75rem; min-height: 2.75rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; cursor: pointer; }
.musique[aria-pressed="true"] .musique-off, .musique[aria-pressed="false"] .musique-on { display: none; }

/* Avis des parents (NOEL.AVIS.3) : accueil et page d'administration. */
.avis-parents { margin-top: 2rem; }
.temoignage { margin: 1rem 0; padding-block: .2rem; padding-inline: 1rem 0; border-inline-start: 4px solid var(--green); }
.temoignage blockquote { margin: 0; font-style: italic; }
.temoignage blockquote p { margin: .3rem 0; }
.temoignage figcaption { margin-top: .3rem; font-weight: 600; }
.admin-avis { max-width: 46rem; margin: 1rem auto; padding: 0 1rem; }
.admin-faits dt { font-weight: 600; margin-top: .4rem; }
.admin-faits dd { margin-inline-start: 1rem; }
.admin-avis form { margin: .6rem 0; }
