/* Les Courriers des Alizés : feuille de style commune (couleurs de la maquette du 14 oct. 2026 ; passe « papier
   postal » du 3 nov. 2026 : titres en Young Serif, coins presque droits, liseré par avion, timbres et cachets
   repris de l'en-tête des lettres). */

@font-face { font-family: "Young Serif"; src: url("/polices/young-serif.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Nunito Sans"; src: url("/polices/nunito-sans.woff") format("woff"); font-weight: 200 1000; font-display: swap; }
@font-face { font-family: "Marelle Baton 2"; src: url("/polices/marelle-baton-2.woff") format("woff"); font-weight: 400; font-display: swap; }

:root {
  --creme: #FBF6EC;
  --papier: #FFFDF8;
  --sable: #F4E8D0;
  --trait: #E6D9BF;
  --trait-fonce: #C9B48C;
  --encre: #1B2A41;
  --encre-douce: #3D4A5E;
  --gris: #5A6578;
  --sarcelle: #0A6B6B;
  --sarcelle-fonce: #07504F;
  --menthe: #E9F2EF;
  --terre: #B4521A;
  --terre-fonce: #93410F;
  --nuit: #14244A;
  --nuit-douce: #D9E2EC;
  --stylo: #22418C;
  --surligne: #FBE3B8;
  --perfore: #8A6A4A; /* brun du timbre dentelé des lettres */
  --titres: "Young Serif", Georgia, "Times New Roman", serif;
  --texte: "Nunito Sans", "Segoe UI", system-ui, sans-serif;
  --cursive: "Marelle Baton 2", "Segoe Script", cursive;
  --interligne-cursive: 1.9;
  --largeur: 1200px;
  --rayon: 4px;
  /* Liseré « par avion » des lettres : traits obliques corail et sarcelle. */
  --par-avion: repeating-linear-gradient(-45deg, var(--terre) 0 9px, transparent 9px 14px, var(--sarcelle) 14px 23px, transparent 23px 28px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--creme);
  color: var(--encre);
  font-family: var(--texte);
  font-size: 17px;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sarcelle); }
a:hover { color: var(--sarcelle-fonce); }
h1, h2, h3 { font-family: var(--titres); font-weight: 400; line-height: 1.18; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); line-height: 1.1; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.28rem; }
p { margin: 0; }
ul, ol { margin: 0; }
:focus-visible { outline: 3px solid var(--terre); outline-offset: 3px; border-radius: 4px; }

.lien-evitement { position: absolute; left: -9999px; top: 0; background: var(--nuit); color: #fff; padding: 12px 18px; z-index: 10; }
.lien-evitement:focus { left: 12px; top: 12px; }

/* ---------- Cadres ---------- */
[hidden] { display: none !important; } /* un bloc caché le reste, même avec display: flex (.pile) */
.conteneur { max-width: var(--largeur); margin: 0 auto; padding: 0 24px; }
.etroit { max-width: 820px; }
.section { padding: 80px 0; }
.section-papier { background: var(--papier); border-top: 1px solid var(--trait); border-bottom: 1px solid var(--trait); }
.section-menthe { background: var(--menthe); }
.section-nuit { background: var(--nuit); color: var(--creme); }
.section-nuit p, .section-nuit li { color: var(--nuit-douce); }
.pile { display: flex; flex-direction: column; gap: 16px; }
.pile-l { display: flex; flex-direction: column; gap: 32px; }
.intro { display: flex; flex-direction: column; gap: 12px; max-width: 760px; margin-bottom: 40px; }
.doux { color: var(--encre-douce); }
.petit { font-size: 15px; }
.centre { text-align: center; }
.deux-col { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.deux-col > * { flex: 1 1 400px; min-width: 0; }
.grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 24px; }
.grille-4 { grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.grille-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 24px; }

/* ---------- Boutons ---------- */
.boutons { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 13px 26px; border-radius: 6px;
  font-family: var(--texte); font-weight: 800; font-size: 17px; text-decoration: none; text-align: center;
  background: var(--terre); color: #fff; border: 2px solid var(--terre); cursor: pointer;
}
.bouton:hover { background: var(--terre-fonce); border-color: var(--terre-fonce); color: #fff; }
.bouton-contour { background: transparent; color: var(--encre); border-color: var(--encre); }
.bouton-contour:hover { background: var(--encre); color: var(--creme); border-color: var(--encre); }
.bouton-sarcelle { background: var(--sarcelle); border-color: var(--sarcelle); }
.bouton-sarcelle:hover { background: var(--sarcelle-fonce); border-color: var(--sarcelle-fonce); }
.bouton-clair { background: var(--creme); color: var(--nuit); border-color: var(--creme); }
.bouton-clair:hover { background: #fff; color: var(--nuit); border-color: #fff; }
.bouton[disabled], .bouton[aria-disabled="true"] { background: #B9B2A5; border-color: #B9B2A5; color: #fff; cursor: not-allowed; }
.lien-fleche { font-weight: 800; text-decoration: none; }
.lien-fleche::after { content: " →"; }
.lien-fleche:hover { text-decoration: underline; }

/* ---------- Bandeau, en-tête, menu ---------- */
.bandeau { display: block; background: var(--nuit); color: var(--creme); font-size: 14px; padding: 10px 24px; text-align: center; text-decoration: none; }
.bandeau:hover { color: #fff; }
.bandeau span { text-decoration: underline; font-weight: 800; white-space: nowrap; }

.entete { background: var(--creme); position: sticky; top: 0; z-index: 5; }
.entete::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 4px; background: var(--par-avion); }
.entete-dedans { max-width: var(--largeur); margin: 0 auto; padding: 10px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--encre); }
.logo:hover { color: var(--encre); }
.logo img { flex: none; height: 62px; width: auto; }
.logo-nom { display: flex; flex-direction: column; gap: 3px; line-height: 1.1; }
.logo-nom strong { font-family: var(--titres); font-weight: 400; font-size: 22px; }
.logo-nom small { font-size: 10.5px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gris); }
.menu { display: flex; align-items: center; gap: 4px 22px; font-weight: 700; font-size: 16px; }
.menu a { color: var(--encre); text-decoration: none; padding: 10px 0; }
.menu a:hover, .menu a[aria-current="page"] { color: var(--sarcelle); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.menu .bouton { color: #fff; padding: 10px 20px; min-height: 44px; font-size: 16px; }
.menu .bouton:hover, .menu .bouton[aria-current="page"] { color: #fff; text-decoration: none; }
.menu .bouton-contour { color: var(--encre); }
.menu .bouton-contour:hover { color: var(--creme); }
.menu .bouton-contour[aria-current="page"] { background: var(--encre); color: var(--creme); }
.menu .bouton + .bouton { margin-left: -8px; }
.menu a { white-space: nowrap; }
@media (min-width: 921px) and (max-width: 1140px) { /* écran moyen : le menu tient sur une ligne */
  .menu { gap: 4px 14px; font-size: 15px; }
  .menu .bouton { padding: 8px 14px; font-size: 15px; }
  .logo-nom strong { font-size: 19px; }
  .logo-nom small { display: none; }
}
.bouton-menu { display: none; }

/* Aiguillage « Pour mon enfant / Pour offrir » : le même en haut des deux pages de vente. */
.aiguillage { display: inline-flex; align-self: flex-start; border: 2px solid var(--encre); border-radius: 6px; overflow: hidden; margin-bottom: 8px; }
.aiguillage a { padding: 9px 18px; min-height: 44px; display: inline-flex; align-items: center; font-weight: 800; font-size: 15px; text-decoration: none; color: var(--encre); }
.aiguillage a + a { border-left: 2px solid var(--encre); }
.aiguillage a:hover { background: var(--sable); color: var(--encre); }
.aiguillage a[aria-current="page"] { background: var(--encre); color: var(--creme); }

@media (max-width: 920px) {
  .bouton-menu {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px;
    background: transparent; border: 2px solid var(--encre); border-radius: 6px; color: var(--encre);
    font: 800 15px var(--texte); cursor: pointer;
  }
  .menu {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--creme); border-bottom: 1px solid var(--trait); padding: 8px 24px 20px;
    box-shadow: 0 16px 24px rgba(27, 42, 65, 0.12);
  }
  .menu.ouvert { display: flex; }
  .menu a { padding: 14px 0; border-bottom: 1px solid var(--trait); font-size: 18px; }
  .menu .bouton { margin-top: 16px; border-bottom: 2px solid var(--terre); }
  .menu .bouton-contour { border-bottom: 2px solid var(--encre); }
  .menu .bouton + .bouton { margin-left: 0; margin-top: 10px; }
  .logo-nom strong { font-size: 18px; }
  .logo img { height: 50px; }
}

/* ---------- Fil d'Ariane ---------- */
.fil { font-size: 14px; color: var(--gris); padding-top: 24px; }
.fil ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.fil li + li::before { content: "›"; margin: 0 6px; }
.fil a { color: var(--gris); }

/* ---------- Héros ---------- */
.heros { padding: 56px 0 80px; }
.heros-texte { display: flex; flex-direction: column; gap: 22px; }
.heros-court { padding: 40px 0 56px; }
/* Étiquette = petit cachet encré : capitales espacées dans un cadre, pas de pilule. */
.etiquette { align-self: flex-start; color: var(--terre-fonce); border: 1.5px solid currentColor; font-weight: 800; font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase; padding: 5px 10px 4px; border-radius: 2px; }
.chapo { font-size: 20px; color: var(--encre-douce); max-width: 34em; }
.prix-rappel { font-size: 15px; color: var(--encre-douce); }
.coches { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 10px 24px; font-size: 15px; color: var(--encre-douce); }
.coches li { display: flex; gap: 10px; align-items: flex-start; }
.coches svg { flex: none; margin-top: 3px; }

.carte-postale { margin: 0 auto; background: var(--papier); padding: 14px 14px 18px; border-radius: 6px; box-shadow: 0 18px 40px rgba(27, 42, 65, 0.18); transform: rotate(1.5deg); max-width: 440px; width: 100%; position: relative; }
.carte-postale img { border-radius: 3px; width: 100%; }
.carte-postale figcaption { font-family: var(--cursive); color: var(--stylo); font-size: 16px; line-height: var(--interligne-cursive); padding-top: 12px; text-align: center; }
/* Timbre dentelé (pointillés bruns + filet) et tampon de la poste, comme en haut des lettres. */
.timbre { position: absolute; top: -22px; right: -16px; width: 82px; padding: 5px; background: #fff; border: 1px solid var(--perfore); outline: 3px dotted var(--perfore); outline-offset: 3px; transform: rotate(4deg); }
.timbre img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 0; }
/* Le tampon reste à côté du timbre, sans passer dessous : aucune lettre du tampon n'est cachée. */
.carte-postale:has(.cachet) { margin-top: 24px; }
.carte-postale .cachet { position: absolute; top: -74px; right: 100px; width: 128px; height: auto; border-radius: 0; transform: rotate(-4deg); pointer-events: none; }
.carte-postale picture { display: block; }
/* Grandes scènes (12 nov. 2026). Accueil : image portrait sur 2 colonnes (ordinateur) ; jusqu'à 920 px, le héros
   passe sur une colonne avec l'image paysage (<picture> de accueil.html : même seuil). */
.scene-large { margin: 0 auto 40px; max-width: 1040px; }
.scene-reponse { margin-top: 48px; max-width: 560px; transform: rotate(-1deg); }
.photo-courrier { margin-top: 28px; max-width: 560px; transform: rotate(-1deg); }
.photo-table { margin-top: 40px; max-width: 720px; transform: rotate(0.8deg); }
@media (max-width: 920px) {
  .heros-accueil .deux-col > * { flex-basis: 100%; }
  .heros-accueil .carte-postale { max-width: 640px; }
}

/* ---------- Blocs ---------- */
.etapes { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 24px; counter-reset: etape; }
/* Étapes : un trajet en pointillés, chaque numéro dans un petit cachet rond à double cercle. */
.etapes li { border-top: 2px dashed var(--trait-fonce); padding: 26px 4px 0; display: flex; flex-direction: column; gap: 10px; counter-increment: etape; }
.etapes li::before, .faits li::before {
  content: counter(etape); display: flex; align-items: center; justify-content: center;
  width: 58px; height: 58px; margin-bottom: 4px; border: 5px double var(--sarcelle); border-radius: 50%;
  font-family: var(--titres); font-size: 26px; line-height: 1; color: var(--sarcelle); transform: rotate(-8deg);
}
.etapes p { color: var(--encre-douce); }

.carte { background: var(--papier); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.carte p { color: var(--encre-douce); }
/* Intertitre entre deux grilles d'une même section (guides cadeaux par âge, 13 nov. 2026) */
.intertitre { margin: 48px 0 18px; font-size: clamp(1.4rem, 2.6vw, 1.75rem); color: var(--sarcelle-fonce); }
.intro + .intertitre { margin-top: 0; }
.intertitre + p { margin: -6px 0 20px; max-width: 760px; }
.liste-def { display: flex; flex-direction: column; gap: 18px; }
.liste-def h3 { font-family: var(--texte); font-weight: 800; font-size: 19px; }
.liste-def p { color: var(--encre-douce); }
.image-arrondie { border-radius: var(--rayon); width: 100%; object-fit: cover; }
.legende { font-size: 14px; color: var(--gris); margin-top: 8px; }

.puces { padding-left: 22px; display: flex; flex-direction: column; gap: 10px; }
.puces li::marker { color: var(--sarcelle); }

/* Animaux qui écrivent */
.animal { background: var(--papier); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 22px; display: flex; gap: 22px; align-items: flex-start; }
/* Pastille de l'animal = timbre dentelé, comme sur la lettre (penché un peu, au hasard des cartes). */
.animal img { width: 84px; height: 84px; object-fit: cover; flex: none; margin: 5px 0 0 5px; padding: 4px; background: #fff; border: 1px solid var(--perfore); outline: 2.5px dotted var(--perfore); outline-offset: 3px; transform: rotate(-2deg); }
.animal:nth-child(even) img { transform: rotate(2deg); }
.animal div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.animal strong { font-family: var(--titres); font-weight: 400; font-size: 22px; line-height: 1.1; }
.animal em { font-style: normal; font-size: 14px; font-weight: 800; color: var(--sarcelle-fonce); }
.animal p { font-size: 15px; color: var(--encre-douce); }

/* Rappel des lettres dans une fiche, sous les questions des parents (ajouté par construire.py) */
.rappel-lettres { margin-top: 32px; }
.rappel-lettres .lien-fleche { margin-top: 6px; }

/* Carte d'animal cliquable (page mère, animaux voisins) */
.animal-lien { text-decoration: none; color: var(--encre); transition: border-color 0.15s, box-shadow 0.15s; }
.animal-lien:hover { color: var(--encre); border-color: var(--sarcelle); box-shadow: 0 8px 20px rgba(27, 42, 65, 0.1); }
.animal-lien .lire { font-size: 15px; font-weight: 800; color: var(--sarcelle); }
/* Carte-lien d'un guide par âge (pages « idée cadeau enfant ») */
a.carte { text-decoration: none; color: var(--encre); transition: border-color 0.15s, box-shadow 0.15s; }
a.carte:hover { color: var(--encre); border-color: var(--sarcelle); box-shadow: 0 8px 20px rgba(27, 42, 65, 0.1); }
a.carte h3 { font-family: var(--titres); font-weight: 400; font-size: 26px; color: var(--sarcelle-fonce); }
a.carte .lire { margin-top: auto; font-size: 15px; font-weight: 800; color: var(--sarcelle); }
/* Accès aux 4 guides par âge en haut de la page mère « idée cadeau enfant » (27 nov. 2026) : 2 x 2, aussi sur téléphone */
.boutons-ages { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-width: 440px; }
.boutons-ages .bouton { padding: 10px 14px; min-height: 46px; }

/* ---------- Fiche de l'encyclopédie ---------- */
.identite { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 0; font-size: 15px; }
.identite div { display: flex; flex-direction: column; }
.identite dt { font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gris); }
.identite dd { margin: 0; font-weight: 700; }
.figure-fiche { margin: 0; }
.figure-lieu img { aspect-ratio: 4 / 3; height: auto; }
.faits { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 24px; counter-reset: fait; }
.faits li { background: var(--creme); border-radius: var(--rayon); padding: 26px; display: flex; flex-direction: column; gap: 8px; counter-increment: fait; }
.faits li::before { content: counter(fait); border-color: var(--terre); color: var(--terre); }
.faits p { color: var(--encre-douce); }
.deux-encarts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 24px; margin-top: 24px; }
.encart-prudence { background: var(--menthe); border: 2px solid var(--sarcelle); }
.quiz { display: flex; flex-direction: column; gap: 20px; }
.question { background: var(--papier); border-radius: var(--rayon); padding: clamp(20px, 4vw, 28px); display: flex; flex-direction: column; gap: 14px; }
.question h3 { font-size: 1.3rem; }
.reponses { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 10px; }
.reponses button {
  font: 700 17px var(--texte); color: var(--encre); background: #fff; text-align: left;
  border: 2px solid var(--trait-fonce); border-radius: 6px; padding: 12px 16px; min-height: 52px; cursor: pointer;
}
.reponses button:hover { border-color: var(--sarcelle); }
.reponses button[aria-disabled="true"] { cursor: default; }
.reponses button.juste { background: var(--menthe); border-color: var(--sarcelle); color: var(--sarcelle-fonce); }
.reponses button.juste::before { content: "✓ "; }
.reponses button.rate { background: #FBEAE5; border-color: var(--terre); color: var(--terre-fonce); }
.explication summary { cursor: pointer; font-weight: 800; color: var(--sarcelle-fonce); min-height: 44px; display: flex; align-items: center; }
.explication p { color: var(--encre-douce); }
.score { font-family: var(--titres); font-size: 1.4rem; color: var(--sarcelle-fonce); text-align: center; }
.score:empty { display: none; }
.apercu-coloriage { max-width: 360px; width: 100%; margin: 0 auto; background: #fff; border-radius: 8px; padding: 12px; box-shadow: 0 10px 26px rgba(27, 42, 65, 0.14); }
.section-nuit .surtitre { color: #8FD3CF; }
.section-nuit .lien-fleche { color: #8FD3CF; }
.section-nuit p a, .section-nuit li a { color: #8FD3CF; } /* liens dans le texte d'une section nuit (27 nov. 2026) */
.section-nuit p a:hover, .section-nuit li a:hover { color: var(--creme); }
.extrait-clair { color: var(--creme); font-size: 17px; border-left: 3px solid #8FD3CF; padding-left: 16px; }
.sources { display: flex; flex-direction: column; gap: 14px; }
.sources h2 { font-size: 1.5rem; }

/* Saisons */
.saison { border-radius: var(--rayon); overflow: hidden; background: var(--creme); display: flex; flex-direction: column; }
.saison img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.saison > div { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 6px; }
.saison p { color: var(--encre-douce); font-size: 16px; }
.surtitre { font-size: 12.5px; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: var(--sarcelle-fonce); }

/* Formules */
.formule { background: var(--papier); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 30px; display: flex; flex-direction: column; gap: 12px; position: relative; }
.formule h3 { font-size: 24px; }
.formule p { color: var(--encre-douce); font-size: 16px; }
.formule .prix { font-family: var(--titres); font-size: 44px; font-weight: 400; line-height: 1; color: var(--encre); }
.formule .par-lettre { font-size: 14px; color: var(--gris); }
.formule .bouton { margin-top: auto; }
.formule-vedette { background: var(--sarcelle); border-color: var(--sarcelle); color: #fff; }
.formule-vedette p, .formule-vedette .prix, .formule-vedette .par-lettre { color: #E3F3F1; }
.formule-vedette .prix { color: #fff; }
.formule-vedette .bouton { background: var(--papier); color: var(--sarcelle-fonce); border-color: var(--papier); }
.formule-vedette .bouton:hover { background: #fff; color: var(--sarcelle-fonce); }
.formule-vedette::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--par-avion); background-color: var(--papier); border-radius: var(--rayon) var(--rayon) 0 0; }
.pastille { position: absolute; top: -14px; left: 30px; background: var(--terre); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; padding: 5px 10px 4px; border-radius: 2px; transform: rotate(-2deg); }
.encart { background: var(--sable); border-radius: var(--rayon); padding: 22px 26px; display: flex; flex-direction: column; gap: 6px; }

/* Tableaux */
.tableau-boite { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--trait); border-radius: var(--rayon); background: var(--papier); }
table { border-collapse: collapse; width: 100%; font-size: 16px; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--trait); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { font-weight: 800; background: var(--creme); }

/* Questions fréquentes */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details { background: var(--papier); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 0 24px; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-weight: 800; font-size: 18px; padding: 18px 0; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--sarcelle); font-size: 26px; line-height: 1; transition: transform 0.2s; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding-bottom: 20px; color: var(--encre-douce); display: flex; flex-direction: column; gap: 10px; }

/* La lettre (exemple) */
/* Feuille de lettre : liseré par avion en haut, timbre dentelé, comme le papier des courriers. */
.feuille { background: var(--papier); border-radius: 2px; padding: clamp(28px, 5vw, 56px) clamp(24px, 5vw, 52px) clamp(24px, 5vw, 52px); box-shadow: 0 10px 28px rgba(27, 42, 65, 0.1); position: relative; }
.feuille::before { content: ""; position: absolute; left: clamp(24px, 5vw, 52px); right: clamp(24px, 5vw, 52px); top: 16px; height: 5px; background: var(--par-avion); }
.feuille-medaillon { position: absolute; top: -26px; right: 28px; width: 92px; height: 92px; padding: 4px; background: #fff; border: 1px solid var(--perfore); outline: 3px dotted var(--perfore); outline-offset: 3px; transform: rotate(4deg); }
/* Cursive (Marelle Bâton 2, celle des lettres depuis le 6 nov. 2026) : le haut des lettres (l, É) monte à 1,29 fois la
   taille et le bas (g, p, j) descend à 0,48 fois : au-dessus de 1,8 d'interligne, rien ne se touche d'une ligne à
   l'autre (Playwrite, avant, demandait 2,4). */
.manuscrit { font-family: var(--cursive); color: var(--stylo); font-size: clamp(16px, 2.2vw, 19px); line-height: var(--interligne-cursive); display: flex; flex-direction: column; gap: 14px; }
.manuscrit h2 { line-height: 1.3; }
.manuscrit .lieu { color: #8A6A4A; font-size: 0.85em; }
.manuscrit .signature { text-align: right; }
.manuscrit img { border-radius: 6px; margin: 8px auto; max-width: 420px; width: 100%; }
.action { font-family: var(--texte); font-size: 16px; line-height: 1.5; color: var(--encre); border-left: 4px solid var(--sarcelle); padding: 4px 0 4px 14px; }
.action strong { color: var(--sarcelle); }
.psst { font-family: var(--texte); font-size: 15px; line-height: 1.5; color: var(--sarcelle); }
.perso { background: var(--surligne); color: inherit; padding: 0 4px; border-radius: 4px; cursor: help; }
.perso:focus-visible { outline-offset: 1px; }
.note-perso { font-size: 14px; color: var(--gris); border-top: 1px dashed var(--trait-fonce); padding-top: 14px; font-family: var(--texte); line-height: 1.5; }
/* Mots en capitales (TRÈS, JAMAIS) : Marelle Bâton 2 a déjà des majuscules bâton, rien à changer (comme les PDF).
   Avec une cursive à capitales cursives, remettre : font-family: var(--texte); font-weight: 800; letter-spacing: 0.02em; */
.capitales { }
.extrait { font-family: var(--cursive); color: var(--stylo); font-size: 18px; line-height: var(--interligne-cursive); display: flex; flex-direction: column; gap: 10px; }

.apercus { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 24px; align-items: start; }
.apercus figure { margin: 0; }
.apercus img { border-radius: 8px; box-shadow: 0 10px 26px rgba(27, 42, 65, 0.14); background: #fff; }
.apercus figcaption { font-size: 14px; color: var(--gris); margin-top: 10px; }

/* Placeholders : informations à compléter avant la mise en ligne */
.a-remplir { background: #FFF06A; color: #4A3B00; padding: 1px 6px; border-radius: 4px; font-weight: 700; font-style: normal; font-family: var(--texte); font-size: 0.92em; }
.cadre-photo { background: var(--sable); border: 2px dashed var(--trait-fonce); border-radius: var(--rayon); padding: 24px; min-height: 180px; display: flex; align-items: center; justify-content: center; text-align: center; }

/* Prose (pages légales) */
.prose { display: flex; flex-direction: column; gap: 16px; }
.prose h1 { margin-bottom: 8px; }
.prose h2 { font-size: 1.6rem; margin-top: 24px; }
.prose ul, .prose ol { padding-left: 24px; display: flex; flex-direction: column; gap: 6px; }

/* ---------- Formulaire de commande ---------- */
.commande { display: flex; flex-direction: column; gap: 28px; }
.bloc-form { background: var(--papier); border: 1px solid var(--trait); border-radius: var(--rayon); padding: clamp(20px, 4vw, 32px); display: flex; flex-direction: column; gap: 20px; margin: 0; min-width: 0; }
.bloc-form legend { font-family: var(--titres); font-weight: 400; font-size: 1.5rem; padding: 0; float: left; width: 100%; }
.bloc-form legend + * { clear: both; }
.champ { display: flex; flex-direction: column; gap: 6px; }
.champ label, .groupe-titre { font-weight: 800; }
.champ .aide { font-size: 14px; color: var(--gris); }
.facultatif { font-weight: 400; color: var(--gris); font-size: 14px; }
/* Une question par lettre (commande, Mon espace) */
.questions-courriers { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; padding-top: 18px; border-top: 1px dashed var(--perfore); }
.questions-courriers h3 { font-size: 1.15rem; }
.questions-courriers p { margin: 0; }
/* Formulaire raccourci (17 nov. 2026) : détails facultatifs repliés */
.plus-details summary { cursor: pointer; font-weight: 800; color: var(--sarcelle-fonce); padding: 10px 0; }
.plus-details .champ { margin-top: 18px; }
.num-lettre { display: block; font-size: 12.5px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sarcelle-fonce); }
input[type="text"], input[type="email"], select, textarea {
  font: inherit; font-size: 17px; color: var(--encre); background: #fff;
  border: 2px solid var(--trait-fonce); border-radius: 6px; padding: 11px 14px; min-height: 48px; width: 100%;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--sarcelle); outline: 3px solid rgba(10, 107, 107, 0.2); outline-offset: 0; }
input::placeholder, textarea::placeholder { color: #8C8F98; }
.choix { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 12px; }
.choix label { display: flex; gap: 12px; align-items: flex-start; border: 2px solid var(--trait); border-radius: 6px; padding: 14px 16px; cursor: pointer; background: #fff; font-weight: 600; min-height: 48px; }
.choix label:has(input:checked) { border-color: var(--sarcelle); background: var(--menthe); }
.choix input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--sarcelle); flex: none; }
.choix small { display: block; font-weight: 400; color: var(--gris); }
.deux-champs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 16px; }
.compteur { font-size: 13px; color: var(--gris); text-align: right; }
.erreur { color: #A8261B; font-size: 15px; font-weight: 700; }
.erreur:empty { display: none; }
[aria-invalid="true"] { border-color: #A8261B !important; }
.apercu-direct { background: var(--menthe); border-radius: var(--rayon); padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.apercu-direct p.extrait { font-size: 17px; display: block; } /* une phrase : pas de colonne (sinon chaque mot surligné passait à la ligne) */
/* Aperçu « Voici comment les animaux parleront de votre enfant » (commande.js, session P4) */
.apercu-ia p, .apercu-ia .champ { margin: 0; }
.apercu-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.apercu-liste li { padding: 8px 12px; background: var(--papier); border-left: 3px solid var(--sarcelle); border-radius: var(--rayon); overflow-wrap: anywhere; }
.apercu-liste li.apercu-intro { background: none; border: 0; padding: 0; color: var(--gris); font-size: 15px; }
.apercu-liste li.apercu-question { border-left-color: var(--terre); background: var(--surligne); }
/* Carte cadeau (dessinée par carte-cadeau.js) : les deux moitiés de la feuille pliée, côte à côte ou l'une sous l'autre. */
/* L'aperçu déborde du formulaire (plus large que lui, jamais plus que l'écran) : le texte de la carte reste lisible. */
.apercu-carte { width: min(1000px, 100vw - 16px); margin-left: 50%; transform: translateX(-50%); }
.carte-moities { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.carte-moities figure { margin: 0; min-width: 0; }
.carte-moities canvas, .carte-merci canvas { display: block; width: 100%; aspect-ratio: 148.5 / 210; background: #fff; border-radius: 4px; box-shadow: 0 6px 18px rgba(27, 42, 65, 0.14); }
.carte-moities figcaption { font-size: 14px; color: var(--gris); text-align: center; margin-top: 6px; }
.carte-merci { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 24px; align-items: center; background: var(--menthe); border-radius: var(--rayon); padding: 20px; }
.carte-merci .pile { gap: 12px; }
@media (max-width: 600px) { .apercu-carte { padding: 14px 8px; } .apercu-carte > .surtitre, .apercu-carte > p { padding: 0 8px; } .carte-merci { grid-template-columns: minmax(0, 1fr); } .carte-merci canvas { max-width: 240px; margin: 0 auto; } }
.recap { background: var(--sable); border-radius: var(--rayon); padding: 18px 22px; display: flex; flex-direction: column; gap: 6px; }
.case { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; }
.case input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--sarcelle); flex: none; }
/* Reprise (commande) : case discrète « a déjà reçu des lettres », puis choix de la saison quand elle est cochée */
.champ label.case { font-weight: 400; }
.reprise { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
/* Cahier d'explorateur (page des coloriages, #cahier, 9 nov. 2026) : une feuille « papier postal », aperçu + formulaire. */
.section-cahier { padding-bottom: 24px; }
.cahier-offre { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: center; }
.cahier-apercu { width: 100%; height: auto; }
.form-cahier { gap: 14px; }
.form-cahier .case { font-weight: 400; font-size: 15.5px; }
.mention-form { font-size: 13px; color: var(--gris); line-height: 1.5; }
.cahier-parti { background: var(--menthe); border-radius: var(--rayon); padding: 18px 20px; gap: 8px; outline: none; }
.cahier-parti strong { font-family: var(--titres); font-weight: 400; font-size: 1.4rem; color: var(--sarcelle-fonce); }
/* Champ piège pour les robots : hors de l'écran (pas display:none, que certains robots repèrent). */
.piege { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
/* Le même formulaire dans chaque fiche, sous le bouton du coloriage (9 nov. 2026). */
.cahier-fiche { margin-top: 8px; gap: 10px; }
.cahier-fiche-titre { font-family: var(--titres); font-weight: 400; font-size: 1.3rem; color: var(--encre); }
/* Téléphone : l'aperçu passe sous le formulaire, pour que le champ e-mail soit dans le premier écran (9 nov. 2026). */
@media (max-width: 700px) {
  .cahier-offre { grid-template-columns: minmax(0, 1fr); }
  .cahier-apercu { max-width: 260px; margin: 0 auto; order: 2; }
  .heros-court:has(+ .section-cahier) { padding-bottom: 16px; }
  .section.section-cahier { padding-top: 8px; }
  .feuille.cahier-offre { padding-top: 36px; }
}
.bientot { background: var(--nuit); color: var(--creme); border-radius: var(--rayon); padding: 16px 20px; font-size: 15px; }

/* ---------- Barre d'achat des fiches, sur téléphone seulement (14 nov. 2026 ; texte : BARRE_ACHAT de construire.py,
   apparition : site.js). Jamais sur grand écran, jamais sans JavaScript (attribut hidden). ---------- */
.barre-achat { display: none; }
@media (max-width: 600px) {
  .barre-achat:not([hidden]) {
    display: flex; align-items: center; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 4;
    padding: 8px 6px calc(8px + env(safe-area-inset-bottom)) 14px;
    background: var(--creme); border-top: 4px solid transparent; border-image: var(--par-avion) 1;
    box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.12);
  }
  .barre-achat p { flex: 1; font-size: 13.5px; line-height: 1.3; margin: 0; }
  .barre-achat .bouton { min-height: 40px; padding: 8px 14px; font-size: 15px; white-space: nowrap; }
  .barre-achat-fermer { background: none; border: 0; min-width: 36px; min-height: 40px; font-size: 22px; line-height: 1; color: var(--encre-douce, #5b5b5b); cursor: pointer; }
  body.avec-barre-achat { padding-bottom: 64px; }
}

/* ---------- Rubrique « Découvrir la Martinique » : vignettes et « À lire aussi » (rubriques.py, 14 nov. 2026) ---------- */
.vignettes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 22px; }
.vignette { background: var(--papier); border: 1px solid var(--trait); border-radius: var(--rayon); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: var(--encre); transition: border-color 0.15s, box-shadow 0.15s; }
.vignette:hover { color: var(--encre); border-color: var(--sarcelle); box-shadow: 0 8px 20px rgba(27, 42, 65, 0.1); }
.vignette img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; object-position: center top; border-bottom: 1px solid var(--trait); background: #fff; }
.vignette div { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 6px; }
.vignette h3 { font-size: 20px; line-height: 1.2; }
.vignette h3::after { content: " →"; color: var(--sarcelle); }
.vignette p { font-size: 15px; color: var(--encre-douce); }
.section-rubrique .intertitre:first-child { margin-top: 0; }
.a-lire-aussi { background: var(--papier); border-top: 1px solid var(--trait); }
.a-lire-aussi .intro { margin-bottom: 24px; }
.a-lire-tout { margin-top: 24px; }
.bande-saisons .saison { border: 1px solid var(--trait); }

/* ---------- Pied de page ---------- */
.pied { background: var(--nuit); color: var(--nuit-douce); padding: 56px 0 40px; margin-top: 0; font-size: 15px; }
.pied a { color: var(--creme); text-decoration: none; }
.pied a:hover { text-decoration: underline; color: #fff; }
.pied-haut { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.pied-marque { max-width: 360px; display: flex; flex-direction: column; gap: 10px; }
.pied-marque img { width: 118px; height: auto; margin-bottom: 4px; }
.pied-marque strong { font-family: var(--titres); font-weight: 400; font-size: 22px; color: var(--creme); }
.pied nav ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.pied-colonnes { display: flex; flex-wrap: wrap; gap: 48px; }
.pied-bas { border-top: 1px solid rgba(217, 226, 236, 0.2); margin-top: 40px; padding-top: 20px; font-size: 13px; }
.pied h2 { font-family: var(--texte); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: #8FD3CF; margin-bottom: 12px; font-weight: 800; }

@media (max-width: 600px) {
  body { font-size: 16.5px; }
  .section { padding: 56px 0; }
  .heros { padding: 32px 0 56px; }
  .chapo { font-size: 18px; }
  .deux-col { gap: 36px; }
  .conteneur { padding: 0 16px; }
  .entete-dedans { padding: 10px 16px; }
  .timbre { width: 64px; right: -4px; }
  .carte-postale .cachet { width: 100px; right: 88px; top: -58px; }
  .logo img { height: 42px; }
  .logo-nom small { display: none; }
  .feuille { padding-top: 76px; } /* le texte commence sous le timbre */
  .feuille-medaillon { width: 72px; height: 72px; top: -22px; right: 20px; }
  .boutons .bouton { flex: 1 1 100%; }
  .menu { padding: 8px 16px 20px; }
  /* Accueil sur téléphone (9 nov. 2026) : l'image passe juste sous le titre, en bandeau, puis les boutons ;
     le paragraphe vient après. L'ordre du texte dans la page (lecteurs d'écran, Google) ne change pas. */
  .heros-accueil { padding-top: 20px; }
  .heros-accueil .deux-col { flex-direction: column; align-items: stretch; gap: 18px; }
  .heros-accueil .deux-col > * { flex: none; }
  .heros-accueil .heros-texte { display: contents; }
  .heros-accueil .etiquette { order: 1; font-size: 11px; letter-spacing: 0.08em; }
  .heros-accueil h1 { order: 2; }
  .heros-accueil .deux-col > div:last-child { order: 3; }
  .heros-accueil .boutons { order: 4; }
  .heros-accueil .prix-rappel { order: 5; }
  .heros-accueil .chapo { order: 6; }
  .heros-accueil .carte-postale { transform: rotate(0.6deg); padding: 8px 8px 4px; }
  .heros-accueil .carte-postale picture img { aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 50%; } /* image paysage : seuls les côtés (décor) sont rognés */
  .heros-accueil .carte-postale figcaption { padding-top: 2px; font-size: 14px; }
  .heros-accueil .carte-postale .cachet { display: none; }
  .heros-accueil .carte-postale:has(.cachet) { margin-top: 8px; }
  .rappel-lettres { padding: 18px; gap: 16px; }
  .rappel-lettres img { width: 64px; height: 64px; }
  .rappel-lettres strong { font-size: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .faq summary::after { transition: none; }
}

/* ---------- Encyclopédie : page mère (cartes faites par encyclopedie.py, filtres par encyclopedie.js, 6 nov. 2026) ---------- */
/* Onglets façon classeur, panneau de filtres en papier, filtres = étiquettes et timbres, carnet = timbres oblitérés. */
.cache-visuel { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.section-encyclo { padding-top: 8px; }
.encyclo { display: flex; flex-direction: column; }
.familles { display: flex; flex-direction: column; gap: 48px; }
.famille { display: flex; flex-direction: column; gap: 18px; }
.famille h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; }
.famille h2 small, .resultat-vu h2 small { font-family: var(--texte); font-size: 14px; font-weight: 700; color: var(--gris); }
.grille-cartes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 20px; }
.animal-lien { position: relative; }
.animal .infos-mini, .animal .reperes-carte { display: flex; flex-direction: row; flex-wrap: wrap; }
.infos-mini { gap: 4px 14px; font-size: 13.5px; font-weight: 700; color: var(--gris); margin-top: 2px; }
.infos-mini span { display: inline-flex; align-items: center; gap: 5px; }
.reperes-carte { gap: 6px; margin-top: 4px; }
.reperes-carte span { font-size: 10.5px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; border: 1.5px solid currentColor; padding: 2px 6px 1px; border-radius: 2px; }
.r-endemique, .b-endemique { color: var(--sarcelle-fonce); }
.r-danger, .b-danger { color: #A8261B; }
.r-rare, .b-rare { color: var(--stylo); }
.r-ailleurs, .b-ailleurs { color: var(--perfore); }
.b-lettres { color: var(--nuit); }
/* Tampon « VU » du carnet, posé sur la carte ou sur le timbre */
.cachet-vu { position: absolute; top: 8px; right: 10px; width: 62px; height: 62px; color: var(--terre); opacity: 0.88; pointer-events: none; transform: rotate(-14deg); }
.vide { text-align: center; padding: 40px 16px; display: flex; flex-direction: column; gap: 12px; align-items: center; background: var(--creme); border-radius: var(--rayon); }
.vide img { width: 96px; height: 96px; padding: 4px; background: #fff; border: 1px solid var(--perfore); outline: 2.5px dotted var(--perfore); outline-offset: 3px; transform: rotate(-3deg); margin-bottom: 8px; }

.onglets { display: flex; flex-wrap: wrap; gap: 6px; border-bottom: 2px solid var(--trait-fonce); }
.onglet { font: 800 16px var(--texte); color: var(--encre-douce); background: var(--sable); border: 1.5px solid var(--trait-fonce); border-bottom: 0; border-radius: 4px 4px 0 0; padding: 10px 18px; min-height: 48px; cursor: pointer; position: relative; top: 2px; }
.onglet:hover { color: var(--encre); }
.onglet[aria-selected="true"] { background: var(--papier); color: var(--encre); border-bottom: 2px solid var(--papier); }
.encyclo.pret .vue { background: var(--papier); border: 1.5px solid var(--trait-fonce); border-top: 0; padding: clamp(18px, 3vw, 32px); display: flex; flex-direction: column; gap: 28px; }
.encyclo.pret .vue[hidden] { display: none; }
.filtres { display: flex; flex-direction: column; gap: 18px; }
.recherche { position: relative; }
.recherche svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--gris); pointer-events: none; }
.recherche input { font: inherit; font-size: 18px; color: var(--encre); background: #fff; border: 2px solid var(--trait-fonce); border-radius: 6px; width: 100%; min-height: 54px; padding: 11px 14px 11px 46px; }
.recherche input:focus { border-color: var(--sarcelle); outline: 3px solid rgba(10, 107, 107, 0.2); outline-offset: 0; }
.facettes-plus { display: flex; flex-direction: column; gap: 18px; }
.facette { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 12px; align-items: center; }
.facette-nom { font-size: 12.5px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gris); }
.choix-filtres { display: flex; flex-wrap: wrap; gap: 10px; }
.filtre { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 14px 6px 8px; background: #fff; color: var(--encre); border: 2px solid var(--trait-fonce); border-radius: 6px; font: 700 15px var(--texte); text-align: left; cursor: pointer; }
.filtre:hover { border-color: var(--sarcelle); }
.filtre[aria-pressed="true"] { border-color: var(--sarcelle); background: var(--menthe); color: var(--sarcelle-fonce); }
.filtre[disabled] { opacity: 0.45; cursor: default; }
.filtre .compte { font-weight: 600; font-size: 13px; color: var(--gris); }
.filtre svg { flex: none; }
.vignette-filtre { width: 36px; height: 36px; object-fit: cover; padding: 2px; background: #fff; border: 1px solid var(--perfore); outline: 2px dotted var(--perfore); outline-offset: 2px; margin: 3px; transform: rotate(-3deg); }
.badge { font: 800 12.5px var(--texte); letter-spacing: 0.12em; text-transform: uppercase; padding: 9px 12px 8px; min-height: 44px; border: 1.5px solid currentColor; border-radius: 2px; background: #fff; cursor: pointer; }
.badge[aria-pressed="true"] { background: currentColor; }
.badge[aria-pressed="true"] span { color: #fff; }
.badge[disabled] { opacity: 0.45; cursor: default; }
.plus-filtres { display: none; align-self: flex-start; }
.barre-resultat { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; border-top: 2px dashed var(--trait-fonce); padding-top: 18px; }
.barre-resultat strong { font-family: var(--titres); font-weight: 400; font-size: 24px; }
.lien-bouton { background: none; border: 0; padding: 8px 0; font: 800 15px var(--texte); color: var(--sarcelle); cursor: pointer; text-decoration: underline; min-height: 44px; }

.questions-vu { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 20px; }
.question-vu { background: var(--creme); border-radius: var(--rayon); padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.question-vu h3 { display: flex; align-items: center; gap: 12px; }
.question-vu h3::before { content: attr(data-n); flex: none; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border: 4px double var(--sarcelle); border-radius: 50%; color: var(--sarcelle); font-size: 20px; transform: rotate(-8deg); }
.question-vu .filtre svg { color: var(--sarcelle); }
.pastille-couleur { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid rgba(27, 42, 65, 0.35); flex: none; }
/* Pastille dans un tableau (page carnaval : couleur de chaque jour gras) */
th .pastille-couleur { display: inline-block; vertical-align: -7px; margin-right: 8px; }
/* Tableau à 4 colonnes et plus : sur téléphone, il défile de côté au lieu de s'écraser */
.tableau-large table { min-width: 680px; }
.resultat-vu { display: flex; flex-direction: column; gap: 16px; }
.resultat-vu h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }

.carnet-tete { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; }
.carnet-compte { display: flex; align-items: center; gap: 16px; }
.carnet-compte .rond { width: 86px; height: 86px; border: 5px double var(--terre); border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--terre); transform: rotate(-8deg); font-family: var(--titres); font-size: 26px; line-height: 1; flex: none; }
.carnet-compte .rond small { font-family: var(--texte); font-size: 11px; font-weight: 800; letter-spacing: 0.1em; }
.timbres { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 28px 18px; }
.timbre-carnet { position: relative; background: none; border: 0; padding: 0; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 12px; font: 700 14px var(--texte); color: var(--encre); text-align: center; }
.timbre-carnet img { width: 104px; height: 104px; object-fit: cover; padding: 5px; background: #fff; border: 1px solid var(--perfore); outline: 3px dotted var(--perfore); outline-offset: 3px; margin-top: 6px; transition: filter 0.2s; }
.timbre-carnet:nth-child(odd) img { transform: rotate(-2deg); }
.timbre-carnet:nth-child(even) img { transform: rotate(2deg); }
.timbre-carnet[aria-pressed="false"] img { filter: grayscale(0.85) opacity(0.55); }
.timbre-carnet:hover img { filter: none; }
.timbre-carnet .cachet-vu { top: -6px; right: calc(50% - 64px); width: 80px; height: 80px; }

@media (max-width: 700px) {
  .facette { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .encyclo .facettes-plus { display: none; }
  .encyclo .facettes-plus.ouvert { display: flex; }
  .plus-filtres { display: inline-flex; }
  .choix-filtres { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .filtre { font-size: 14px; padding-right: 8px; gap: 8px; line-height: 1.25; }
  .filtre .compte { margin-left: auto; }
  .badge { font-size: 11px; text-align: center; }
  .onglet { padding: 8px 12px; font-size: 15px; }
  .onglet .long { display: none; }
  .encyclo.pret .vue { padding: 18px 14px; }
  .timbres { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
  .timbre-carnet img { width: 86px; height: 86px; }
  .timbre-carnet .cachet-vu { width: 66px; height: 66px; right: calc(50% - 54px); }
}
@media (prefers-reduced-motion: reduce) { .timbre-carnet img { transition: none; } }

/* Mon espace (ESP1, 12 nov. 2026) : source/pages/mon-espace.html, source/espace.js. Vocabulaire « papier postal » :
   une fiche par commande (liseré par avion), une ligne par lettre avec la pastille de l'animal en timbre dentelé. */
.espace-attente { color: var(--encre-douce); }
.espace-lien { background: none; border: 0; padding: 0; cursor: pointer; color: var(--sarcelle); font: inherit; font-weight: 800; }
.espace-code { font-size: 28px; letter-spacing: 0.3em; max-width: 12ch; font-variant-numeric: tabular-nums; }
.espace-qui { overflow-wrap: anywhere; }
.espace-liste { gap: 28px; margin: 20px 0 28px; }
.suivi { background: var(--papier); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 30px clamp(18px, 4vw, 30px) clamp(18px, 4vw, 26px); position: relative; display: flex; flex-direction: column; gap: 12px; }
.suivi::before { content: ""; position: absolute; left: clamp(18px, 4vw, 30px); right: clamp(18px, 4vw, 30px); top: 12px; height: 5px; background: var(--par-avion); }
.suivi h2 { font-size: 1.6rem; margin: 0; }
.suivi-meta { font-size: 14px; color: var(--gris); margin: 0; }
.suivi-lettres { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.suivi-lettres li { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 14px; align-items: center; }
.suivi-lettres .timbre-mini { width: 50px; height: 50px; padding: 3px; background: #fff; border: 1px solid var(--perfore); outline: 2px dotted var(--perfore); outline-offset: 2px; margin: 4px; display: grid; place-items: center; font: 400 20px var(--titres); color: var(--perfore); }
.suivi-lettres .timbre-mini img { width: 100%; height: 100%; object-fit: cover; }
.suivi-lettres li:nth-child(odd) .timbre-mini { transform: rotate(-3deg); }
.suivi-lettres li:nth-child(even) .timbre-mini { transform: rotate(3deg); }
.suivi-lettres .a-venir .timbre-mini { border-style: dashed; outline-color: var(--trait-fonce); color: var(--trait-fonce); background: transparent; }
.suivi-lettres strong { display: block; }
.suivi-lettres span { color: var(--encre-douce); font-size: 15px; }
.suivi-statut { align-self: flex-start; font-weight: 800; font-size: 12.5px; letter-spacing: 0.12em; text-transform: uppercase; padding: 4px 9px 3px; border: 1.5px solid currentColor; border-radius: 2px; color: var(--sarcelle); }
.suivi-statut.fini { color: var(--gris); }
.suivi-statut.alerte { color: var(--terre-fonce); }

/* P5 (12 nov. 2026) : « Racontez-nous » et « Quoi de neuf » dans Mon espace (source/espace.js), encadré de /merci. */
.suivi-p5 { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 6px; padding-top: 16px; border-top: 1px dashed var(--trait-fonce); }
.suivi-p5 .bouton { white-space: normal; text-align: center; }
.suivi-fait { font-size: 14px; color: var(--sarcelle); font-weight: 700; }
.espace-enfant { gap: 20px; margin-top: 8px; }
.espace-enfant h2 { font-size: 1.8rem; margin: 0; }
.espace-enfant .h-petit { font-size: 1.4rem; }
.chapo-petit { font-size: 18px; margin: 0; }
.q-lignes { gap: 18px; }
.q-ligne { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 10px 14px; align-items: end; padding-bottom: 14px; border-bottom: 1px dashed var(--trait); }
.q-ligne:last-child { border-bottom: 0; padding-bottom: 0; }
.q-loin { grid-column: 1 / -1; display: flex; gap: 10px; align-items: center; font-weight: 600; cursor: pointer; }
.q-loin input { width: 20px; height: 20px; accent-color: var(--sarcelle); margin: 0; }
.champ input + input { margin-top: 4px; }
.encart-cadeau, .encart-merci, .encart-racontez { background: var(--menthe); border-radius: var(--rayon); padding: 20px clamp(18px, 4vw, 26px); gap: 10px; }
.encart-merci { border: 2px solid var(--sarcelle); }
.encart-racontez { margin-top: 32px; background: var(--sable); }
.encart-racontez h2 { font-size: 1.5rem; margin: 0; }
.espace-copier { display: flex; flex-wrap: wrap; gap: 10px; }
.espace-copier input { flex: 1 1 220px; min-width: 0; font-size: 14px; }
.espace-arret { border-top: 1px solid var(--trait); padding-top: 18px; gap: 8px; }
@media (max-width: 560px) { .q-ligne { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Calendrier de l'avent 2026 (13 nov. 2026 : calendrier-de-l-avent.html, mon-calendrier.html) ----------
   Style « Noël » demandé par l'utilisateur : nuit étoilée, guirlande d'ampoules, cases en paquets-cadeaux (rouge,
   vert sarcelle, bleu nuit, ruban or). Seulement sur ces deux pages. */
:root { --or: #D9A441; --rouge-noel: #C8402F; }
.heros-noel { position: relative; color: var(--creme); padding-top: 64px;
  background: radial-gradient(circle at 18% 28%, rgba(255, 255, 255, 0.75) 0 1.4px, transparent 2px) 0 0 / 110px 110px,
              radial-gradient(circle at 62% 71%, rgba(255, 224, 140, 0.8) 0 1.6px, transparent 2.2px) 0 0 / 150px 150px,
              radial-gradient(circle at 40% 12%, rgba(255, 255, 255, 0.5) 0 1px, transparent 1.6px) 0 0 / 70px 70px,
              var(--nuit); }
.heros-noel h1 { color: var(--creme); }
.heros-noel .chapo, .heros-noel p { color: var(--nuit-douce); }
.heros-noel .etiquette { color: var(--or); }
.heros-noel-grille { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.heros-noel .carte-postale { transform: rotate(2.5deg); }
.heros-noel .carte-postale img { width: 100%; height: auto; display: block; }
.guirlande { position: absolute; left: 0; right: 0; top: 0; height: 34px; pointer-events: none;
  background: radial-gradient(ellipse 6px 9px at 50% 60%, #E0483A 0 98%, transparent 100%) 0 6px / 96px 28px repeat-x,
              radial-gradient(ellipse 6px 9px at 50% 60%, var(--or) 0 98%, transparent 100%) 24px 10px / 96px 28px repeat-x,
              radial-gradient(ellipse 6px 9px at 50% 60%, #3FB59A 0 98%, transparent 100%) 48px 6px / 96px 28px repeat-x,
              radial-gradient(ellipse 6px 9px at 50% 60%, #F2EBDD 0 98%, transparent 100%) 72px 10px / 96px 28px repeat-x,
              radial-gradient(ellipse 30px 14px at 50% 0, transparent 0 calc(100% - 2px), #4A5A80 calc(100% - 2px) 100%, transparent 100%) 0 -2px / 48px 20px repeat-x; }
.feuille-noel { border-top: 6px solid transparent; border-image: repeating-linear-gradient(-45deg, var(--rouge-noel) 0 10px, var(--papier) 10px 16px, var(--sarcelle) 16px 26px, var(--papier) 26px 32px) 6; }
.feuille-noel::before { display: none; }
.avent-animaux { list-style: none; padding: 0; margin: 8px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 22px 14px; }
.avent-animaux li { display: flex; flex-direction: column; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; text-align: center; }
.avent-animaux img { width: 76px; height: 76px; object-fit: cover; padding: 4px; background: #fff; border: 1px solid var(--perfore); outline: 3px dotted var(--perfore); outline-offset: 3px; }
.avent-animaux li:nth-child(odd) img { transform: rotate(-2deg); }
.avent-animaux li:nth-child(even) img { transform: rotate(2deg); }
/* Cases : paquets-cadeaux (ruban en croix), numéro sur une étiquette ronde. */
.avent-grille, .avent-cases { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.avent-cases { margin-top: 16px; }
.avent-grille { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; align-self: center; }
.avent-grille span, .avent-porte.fermee { --paquet: var(--rouge-noel); position: relative; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; border-radius: 3px;
  background: linear-gradient(90deg, transparent 43%, var(--ruban, var(--or)) 43% 57%, transparent 57%), linear-gradient(0deg, transparent 43%, var(--ruban, var(--or)) 43% 57%, transparent 57%), var(--paquet);
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.12); }
.avent-grille span:nth-child(3n+2), .avent-porte.fermee:nth-child(3n+2) { --paquet: var(--sarcelle); }
.avent-grille span:nth-child(3n), .avent-porte.fermee:nth-child(3n) { --paquet: var(--or); --ruban: var(--rouge-noel); }
.avent-grille span:nth-child(5n+1), .avent-porte.fermee:nth-child(5n+1) { transform: rotate(-2deg); }
.avent-grille span:nth-child(7n+3), .avent-porte.fermee:nth-child(7n+3) { transform: rotate(2deg); }
.avent-grille b, .avent-porte b { display: flex; align-items: center; justify-content: center; width: 2em; height: 2em; border-radius: 50%; background: var(--creme); border: 2px solid var(--or); font-family: var(--titres); font-weight: 400; color: #A8321F; font-size: clamp(14px, 2.2vw, 20px); line-height: 1; }
.avent-grille b { font-size: clamp(12px, 1.6vw, 16px); }
.avent-porte { position: relative; aspect-ratio: 1; padding: 0; overflow: hidden; border: 0; }
.avent-porte.ouverte { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; background: var(--papier); border: 2px dashed var(--or); border-radius: 3px; cursor: pointer; font-family: var(--titres); color: #A8321F; font-size: clamp(14px, 2.2vw, 18px); }
.avent-porte.ouverte img { width: 58%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 50%; }
.avent-porte.aujourdhui { outline: 3px solid var(--rouge-noel); outline-offset: 3px; }
.avent-porte.ouverte:hover { border-style: solid; border-color: var(--rouge-noel); }
.avent-etat { font-weight: 700; }
button.avent-case-fermer { background: none; border: 0; padding: 0; font: inherit; font-weight: 800; color: var(--sarcelle); cursor: pointer; }
.avent-case { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(20px, 4vw, 44px); align-items: start; scroll-margin-top: 90px; }
.avent-case-dessin img { width: 100%; height: auto; border: 1px solid var(--trait); background: #fff; }
.avent-case-mot { display: flex; gap: 16px; align-items: flex-start; }
.avent-case-pastille { width: 72px; height: 72px; flex: none; object-fit: cover; padding: 4px; background: #fff; border: 1px solid var(--perfore); outline: 3px dotted var(--perfore); outline-offset: 3px; margin-top: 6px; }
.avent-case-mot .manuscrit, .avent-case-signature { display: block; margin: 0; }
.avent-case-signature { text-align: right; color: var(--sarcelle); }
@media (max-width: 920px) {
  .heros-noel-grille { grid-template-columns: minmax(0, 1fr); }
  .heros-noel .carte-postale { max-width: 360px; }
}
@media (max-width: 720px) {
  .avent-cases { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .avent-grille { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
  .avent-case { grid-template-columns: minmax(0, 1fr); }
  .avent-case-dessin { max-width: 300px; margin: 0 auto; }
}
/* Page des 24 cases (mon-calendrier.html) : tout le calendrier sur la nuit étoilée, comme une planche de Noël. */
.avent-planche { max-width: 920px; padding-bottom: 8px; }
.avent-planche-titre { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.avent-planche-titre .chapo { max-width: 640px; }
.avent-etoile { font-size: 46px; line-height: 1; color: var(--or); text-shadow: 0 0 18px rgba(217, 164, 65, 0.7); }
.heros-noel .avent-etat { text-align: center; color: var(--or); margin-top: 8px; }
.heros-noel .avent-etat a { color: var(--creme); }
.heros-noel .avent-cases { gap: clamp(8px, 1.6vw, 16px); }
.heros-noel .avent-porte.fermee { box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.18), 0 6px 14px rgba(0, 0, 0, 0.35); }
.heros-noel .avent-porte.ouverte { background: var(--creme); border: 3px solid var(--or); }
.heros-noel .avent-porte.aujourdhui { outline-color: var(--or); box-shadow: 0 0 22px rgba(217, 164, 65, 0.75); }
.section-case { padding-top: 48px; }

/* Alphabet des animaux de Martinique (alphabet.py, {{alphabet}} de /alphabet-animaux-martinique, 14 nov. 2026) :
   une case = lettre (capitale + minuscule), image, mot ; coins presque droits, trait du papier postal. */
.alphabet-grille { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.alphabet-grille li { display: flex; }
.alphabet-grille a, .alphabet-case { flex: 1; color: var(--encre); text-decoration: none; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 10px 14px; background: var(--papier); border: 1px solid var(--trait); border-radius: var(--rayon); text-align: center; }
.alphabet-grille a { transition: border-color 0.15s, box-shadow 0.15s; }
.alphabet-grille a:hover { border-color: var(--sarcelle); box-shadow: 0 8px 20px rgba(27, 42, 65, 0.1); }
.alphabet-lettre { font-family: var(--titres); font-weight: 400; font-size: 40px; line-height: 1; color: var(--terre); }
.alphabet-lettre small { font-size: 28px; margin-left: 8px; }
.alphabet-grille li:nth-child(4n+2) .alphabet-lettre { color: var(--sarcelle); }
.alphabet-grille li:nth-child(4n+3) .alphabet-lettre { color: var(--stylo); }
.alphabet-grille li:nth-child(4n) .alphabet-lettre { color: var(--perfore); }
.alphabet-grille img { width: 100%; max-width: 200px; height: auto; aspect-ratio: 1; object-fit: cover; }
.alphabet-a-venir { width: 100%; max-width: 200px; aspect-ratio: 1; display: grid; place-items: center; border: 1px dashed var(--trait-fonce); border-radius: var(--rayon); font-size: 13px; color: var(--gris); }
.alphabet-mot { font-weight: 800; font-size: 15px; letter-spacing: 0.06em; text-transform: uppercase; }
.alphabet-precision { font-size: 13px; color: var(--gris); line-height: 1.3; }
@media (max-width: 420px) { .alphabet-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .alphabet-lettre { font-size: 32px; } .alphabet-lettre small { font-size: 22px; } .alphabet-mot { font-size: 13px; } }
