/* Bullemoi et Lune de Papier. Attention à l'ordre : les règles de base (:root, en-tête, formulaires…), plus bas, viennent
   après ces premières sections et l'emportent à précision égale. Le 28/11/2026, une copie en double de ces règles de base,
   placée tout en haut et sans effet, a été retirée : le rendu n'a pas changé. */

/* Les polices, servies par le site (CSP font-src 'self'), fabriquées par bd/polices_web.py (28/11/2026) :
   « Papier Texte » est Charis SIL allégée, renommée comme l'exige sa licence OFL ; Alegreya Sans ; Shantell Sans allégée. */
@font-face { font-family: "Papier Texte"; src: url("fonts/papier-texte-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Papier Texte"; src: url("fonts/papier-texte-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Papier Texte"; src: url("fonts/papier-texte-bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Papier Texte"; src: url("fonts/papier-texte-bold-italic.woff2") format("woff2"); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("fonts/alegreya-sans-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("fonts/alegreya-sans-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("fonts/alegreya-sans-bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Shantell Sans"; src: url("fonts/shantell-sans.woff2") format("woff2"); font-weight: 400 800; font-style: normal; font-display: swap; }

.formats { margin-top: 88px; }
.formats-cartes { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 32px; }
.format { position: relative; padding: 28px; border: 1px solid var(--filet); border-radius: 6px; background: var(--papier); }
.format-relie { border: 2px solid var(--profond); }
.format h3 { margin: 0; }
.format-conseil { position: absolute; top: -0.85em; left: 20px; margin: 0; padding: 2px 12px; border-radius: 99px;
  background: var(--corail); color: var(--encre); font: 0.9375rem/1.5 var(--sans); }
.format-prix { margin: 0.25rem 0 1rem; font: 400 2rem/1.2 var(--serif); }
.format-prix span { font: 1rem/1.5 var(--sans); color: var(--encre-douce); }
.format ul { margin: 0; padding-left: 1.2em; font: 1.0625rem/1.55 var(--sans); }
.format li + li { margin-top: 0.35rem; }
/* Lune de Papier (29/11/2026) : toute la carte d'un format mène au formulaire ; le format cliqué est coché au paiement */
.format-lien { color: inherit; text-decoration: none; }
.format-lien::after { content: ""; position: absolute; inset: 0; border-radius: 6px; }
.format-lien:focus-visible { outline: none; }
.format-lien:focus-visible::after { outline: 3px solid var(--profond); outline-offset: 3px; }
.format:has(.format-lien:hover) { border-color: var(--profond); }
.format-choisir { margin: 1.1rem 0 0; font: 600 1rem/1.4 var(--sans); color: var(--profond); }
.format-prix s { margin-right: 0.15em; font-size: 0.6em; color: var(--encre-douce); }  /* l'ancien prix, plus petit que le nouveau */
.choix-format { margin: 0 0 1.5rem; padding: 0; border: 0; display: grid; gap: 12px; }
.choix-format legend { padding: 0; margin-bottom: 12px; font: 400 1.5rem/1.2 var(--serif); }
.choix-format .format { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; cursor: pointer; font: 1.0625rem/1.5 var(--sans); }
.choix-format .format input { flex: none; width: 20px; height: 20px; margin: 3px 0 0; }
.choix-format .format > span > span { display: block; color: var(--encre-douce); }
.choix-format .format:has(input:checked) { border-color: var(--profond); box-shadow: 0 0 0 1px var(--profond); }
.choix-format .format:focus-within { outline: 2px solid var(--profond); outline-offset: 2px; }
/* Lune de Papier : le logo (n° 7, choisi le 27/11/2026) à la place du nom écrit */
.site-enfant .marque .logo { display: block; width: auto; height: 54px; }
.site-enfant .entete { align-items: center; }  /* « Mon espace » aligné sur le logo */
@media (max-width: 560px) { .site-enfant .marque .logo { height: 40px; } }

/* Lune de Papier : le livre relié en photo, à l'accueil et dans les formats (27/11/2026) */
.livre-photo { margin: 0; max-width: 640px; }
.livre-photo img { display: block; width: 100%; height: auto; border-radius: 3px; box-shadow: 0 18px 36px -24px rgb(24 36 56 / 0.5); }
.livre-photo figcaption { margin-top: 6px; font: .8rem/1.4 var(--sans); color: var(--encre-douce); }
.format-photo { display: block; width: calc(100% + 56px); max-width: none; height: auto; aspect-ratio: 3 / 2; object-fit: cover;
  margin: -28px -28px 20px; border-radius: 6px 6px 0 0; }
.format-relie .format-photo { object-position: 45% 58%; }
@media (max-width: 760px) { .livre-photo { max-width: none; } }

/* Le formulaire en quatre étapes (static/bullemoi.js) ; sans script, tout reste sur une page (27/11/2026) */
.parcours [hidden] { display: none !important; }
.progression { display: flex; gap: 6px; list-style: none; counter-reset: pas; padding: 0; margin: 0 0 22px; }
.progression li { counter-increment: pas; flex: 1; padding-top: 8px; border-top: 4px solid #e3d9c7; font: .9rem/1.3 var(--sans); color: var(--encre-douce); }
.progression li::before { content: counter(pas) ".\00a0"; }  /* le numéro reste avec son mot */
.progression li.faite { border-top-color: #c39a8f; }
.progression li[aria-current] { border-top-color: var(--profond); color: var(--encre); font-weight: 600; }
.navigation-etapes { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 26px; }
.navigation-etapes .precedent { padding: 10px 0; background: none; border: 0; color: var(--encre); font: 1rem/1.3 var(--sans);
  text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.navigation-etapes .compteur { margin: 0 auto; font: .9rem/1.3 var(--sans); color: var(--encre-douce); }
.en-etapes .etape { border-top: 0; }
.livre-univers { display: grid; grid-template-columns: 112px 1fr; gap: 12px; align-items: center; margin: 16px 0;
  padding: 10px; border: 1.5px dashed var(--encre-douce); }  /* en petit : les univers d'abord (28/11/2026) */
.livre-univers img { display: block; width: 112px; height: auto; border: 1.5px solid var(--encre); }
.livre-univers figcaption { margin: 0; font: .9rem/1.4 var(--sans); color: var(--encre-douce); }
.tons { margin: 20px 0 4px; padding: 0; border: 0; min-width: 0; }
.site-adulte .tons legend { margin-bottom: 8px; font: 700 1rem/1.3 var(--sans); }
.cartes-tons { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.site-adulte .carte-ton { position: relative; display: block; margin: 0; padding: 12px 6px; text-align: center; cursor: pointer;
  border: 2px solid var(--encre); border-radius: 0; background: var(--papier); font: 600 1rem/1.2 var(--sans); }  /* une case, bordée d'encre */
.carte-ton input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.carte-ton:has(:checked) { border-color: var(--profond); box-shadow: 0 0 0 1px var(--profond); background: #f7efe0; }
.carte-ton:has(:focus-visible) { outline: 2px solid var(--profond); outline-offset: 2px; }
.vignette-photo { display: flex; align-items: center; gap: 12px; margin: 8px 0 0; }
.vignette-photo img { width: 72px; height: 72px; object-fit: cover; border: 1px solid #b9b5ad; border-radius: 6px; }
.vignette-photo figcaption { min-width: 0; overflow-wrap: anywhere; font: .9rem/1.3 var(--sans); color: var(--encre-douce); }
@media (max-width: 560px) { .cartes-tons { grid-template-columns: repeat(2, minmax(0, 1fr)); } .progression li { font-size: .875rem; } }

/* Le « i » des photos : ce qu'elles deviennent, sans script (27/11/2026) */
.aide-photo { display: flex; align-items: flex-start; gap: 8px; position: relative; }
.aide-photo > p { margin: 0; }
.info summary { list-style: none; display: grid; place-items: center; width: 28px; height: 28px; border: 1.5px solid currentColor;
  border-radius: 50%; font: italic 600 .95rem/1 var(--serif); cursor: pointer; color: var(--encre-douce); }
.info summary::-webkit-details-marker { display: none; }
.info summary:focus-visible { outline: 2px solid var(--profond); outline-offset: 2px; }
.info[open] > p { position: absolute; z-index: 2; left: 0; right: 0; top: calc(100% + 8px); margin: 0; padding: 14px 16px;
  background: var(--papier); border: 1px solid #b6ad9f; border-radius: 6px; box-shadow: 0 6px 20px rgba(32, 31, 26, .14);
  font: .95rem/1.45 var(--sans); color: var(--encre); }

/* BD adulte : le parcours en trois images, sous l'exemple (27/11/2026) */
.parcours-bd { list-style: none; counter-reset: etape; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 3vw, 28px); margin: 0 0 clamp(28px, 6vw, 56px); padding: 0; }
/* chaque étape est une case : bord d'encre, dessin en haut, son titre en récitatif jaune posé dans le coin (28/11/2026) */
.parcours-bd li { counter-increment: etape; position: relative; padding: 0 12px 12px; border: var(--trait) solid var(--encre);
  background: var(--papier); font: 1rem/1.4 var(--sans); }
.parcours-bd strong { position: absolute; z-index: 1; top: calc(-1 * var(--trait)); left: calc(-1 * var(--trait)); padding: 4px 10px 3px;
  background: var(--recit); border: var(--trait) solid var(--encre); font: 700 1rem/1.2 var(--titrage); }
.parcours-bd strong::before { content: counter(etape) ".\00a0"; }
.parcours-bd img, .trois-idees { display: block; width: calc(100% + 24px); max-width: none; height: auto; aspect-ratio: 4 / 3;
  object-fit: cover; margin: 0 -12px 10px; border-bottom: var(--trait) solid var(--encre); }
.parcours-bd li:first-child img { object-position: 50% 40%; }  /* le visage de Nour sous le récitatif */
.trois-idees { display: flex; flex-direction: column; justify-content: center; gap: 5%; padding: max(11%, 3.8rem) 8% 5%;
  background: var(--trame); }  /* en haut, la place d'un titre de case sur deux lignes (« Trois propositions d'histoire sur mesure ») */
.trois-idees span { padding: 4.5% 8%; background: var(--papier); border: 1px solid var(--gris); font: italic .95rem/1.25 var(--serif); }
.trois-idees .choisie { border: 2px solid var(--encre); background: var(--recit); }

/* BD adulte : les deux formats en images, à l'accueil (27/11/2026) */
.formats-bd { margin: clamp(28px, 6vw, 64px) 0; }
.formats-bd h2 { font: 700 clamp(1.85rem, 3vw, 2.7rem)/1.12 var(--titrage); letter-spacing: -.01em; margin: 0 0 18px; }
.formats-bd-grille { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 3vw, 28px); align-items: start; }
.formats-bd figure { margin: 0; }
.formats-bd img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border: var(--trait) solid var(--encre); }
.formats-bd figcaption { margin-top: 10px; font: 1.05rem/1.45 var(--sans); }
.formats-bd figcaption strong { display: block; font: 600 1.15rem/1.3 var(--sans); }
@media (max-width: 560px) { .formats-bd figcaption { font-size: .92rem; } .formats-bd figcaption strong { font-size: 1rem; } }
/* Chaque format montré en image, avec la couverture du client : une ligne par format, la vignette à côté du prix
   (28/11/2026 : deux cartes de 170 px faisaient passer le prix sur trois lignes sur téléphone) */
.choix-format.en-images { grid-template-columns: 1fr; gap: 10px; }
.choix-format.en-images .format { display: grid; grid-template-columns: 20px 76px minmax(0, 1fr); gap: 12px; align-items: center;
  margin: 0; padding: 10px 14px 10px 12px; }
.choix-format.en-images .format input { grid-column: 1; grid-row: 1; margin: 0; }
.choix-format.en-images .format img { grid-column: 2; grid-row: 1; width: 76px; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.choix-format.en-images .format > span { grid-column: 3; grid-row: 1; }

/* Lune de Papier, « le livre à l'italienne » (DA validée le 28/11/2026) : le papier blanc, l'encre des livres, le lavis
   lagon des aquarelles, le corail en une seule pastille. Les polices des livres : Charis SIL (« Papier Texte ») et
   Alegreya Sans. Bullemoi redéfinit ces jetons plus bas (.site-adulte, .accueil-bullemoi). */
:root {
  --page: #fbf7ee;         /* le papier des livres : sous les options, pas en fond de page */
  --papier: #fff;
  --encre: #182438;        /* l'encre du texte des livres */
  --encre-douce: #4a5566;  /* texte secondaire : 7,4:1 sur blanc */
  --filet: #dfe3e8;
  --champ: #7b8594;        /* bord des champs : 3,7:1 sur blanc */
  --profond: #182438;      /* liens, boutons : l'encre des livres, 15,6:1 */
  --profond-fonce: #34476a;  /* survol : plus clair, pour se voir (blanc dessus : 9,3:1) */
  --lagon: #5dbbc9;
  --lagon-pale: #ddeeee;   /* le lavis des aquarelles, sous le formulaire */
  --algue: #7a9a3a;
  --nacre: #f4c9c2;
  --corail: #e27056;       /* les pages du logo : une seule pastille */
  --recitatif: #fbf0c2;    /* les cartouches de la bande dessinée */
  --rouge: #a8281c;
  --serif: "Papier Texte", Charter, "Bitstream Charter", Georgia, serif;
  --sans: "Alegreya Sans", "Gill Sans", "Gill Sans MT", "Segoe UI", sans-serif;
  --large: 1120px;
  --etroit: 42rem;
  --gouttiere: 24px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font: 400 1.125rem/1.6 var(--serif);
  font-kerning: normal;
  font-variant-numeric: lining-nums;  /* Alegreya Sans dessine ses chiffres « à l'ancienne » : les prix se lisent mieux droits */
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--profond); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--profond-fonce); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--profond); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { font-weight: 400; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.125rem, 1.4rem + 2.6vw, 3.375rem); line-height: 1.08; letter-spacing: -0.012em; }
h2 { font-size: clamp(1.625rem, 1.3rem + 1.1vw, 2.125rem); line-height: 1.15; letter-spacing: -0.006em; }
h3 { font-size: 1.25rem; line-height: 1.3; font-style: italic; }
p { margin: 0 0 1rem; max-width: 38em; }
ol, ul { margin: 0 0 1rem; }

.cadre { width: 100%; max-width: calc(var(--large) + 2 * var(--gouttiere)); margin-inline: auto; padding-inline: var(--gouttiere); }
.etroit { max-width: calc(var(--etroit) + 2 * var(--gouttiere)); }
.visuellement-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* --- En-tête et pied de page --- */
.entete { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 32px;
          padding-block: 22px 20px; border-bottom: 1px solid var(--filet); }
.marque { color: var(--encre); text-decoration: none; font-size: 1.625rem; letter-spacing: 0.01em; }
.marque:hover { color: var(--encre); }
.entete nav { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 28px; font: 1.125rem/1.4 var(--sans); }
.entete nav a { color: var(--encre); text-decoration: none; }
.entete nav a:hover, .entete nav a[aria-current] { text-decoration: underline; text-decoration-thickness: 1px; }
.entete form { margin: 0; }
.lien { background: none; border: 0; padding: 0; font: inherit; color: var(--profond); text-decoration: underline;
        text-decoration-thickness: 1px; text-underline-offset: 0.18em; cursor: pointer; }
.entete .lien { color: var(--encre-douce); text-decoration: none; }

.pied { margin-top: 96px; border-top: 1px solid var(--filet); padding-block: 36px 48px; font: 1rem/1.55 var(--sans);
        color: var(--encre-douce); }
.pied p { margin: 0 0 0.5rem; max-width: 46em; }
.pied nav { display: flex; flex-wrap: wrap; gap: 6px 24px; margin: 1rem 0; }
.pied nav a { color: var(--encre); }
.pied .editeur { font-size: 0.875rem; }
/* Les nouvelles par e-mail, au bas de chaque page des deux sites (30/11/2026) : la phrase d'accord, puis l'adresse et le
   bouton sur une même ligne ; le bouton passe dessous quand la place manque. Bouton en réserve, au trait : l'action
   principale d'une page n'est jamais ici. Sur ordinateur, les nouvelles se rangent à droite des mentions. */
.nouvelles { display: flex; flex-wrap: wrap; gap: 10px; max-width: 34rem; margin: 1.5rem 0; }
.pied .nouvelles label { flex: 0 0 100%; margin: 0 0 2px; font: inherit; color: var(--encre); }
.nouvelles input { flex: 1 1 14rem; width: auto; }
.pied .nouvelles .bouton { flex: none; background: var(--papier); color: var(--encre); border: 1.5px solid var(--encre); }
.pied .nouvelles .bouton:hover { background: var(--encre); color: var(--papier); }
@media (min-width: 900px) {
  .pied .cadre { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 26rem); column-gap: 64px; align-items: start; }
  .pied .cadre > * { grid-column: 1; }
  .pied .cadre > .nouvelles { grid-column: 2; grid-row: 1 / span 3; margin: 0; }
}
.a-completer { background: var(--rouge); color: #fff; padding: 0 6px; font-weight: 600; }

/* --- Boutons --- */
.bouton {
  display: inline-block;
  padding: 14px 28px 15px;
  background: var(--profond);
  color: #fff;
  border: 0;
  border-radius: 3px;
  font: 500 1.125rem/1.2 var(--sans);
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
}
.bouton:hover { background: var(--profond-fonce); color: #fff; }
.bouton.petit { padding: 8px 16px 9px; font-size: 0.9375rem; }
.site-enfant .bouton { border-radius: 999px; }  /* Lune de Papier : boutons en pastille */
.univers-adulte .bouton, .adulte .bouton { background: var(--encre); }
.univers-adulte .bouton:hover, .adulte .bouton:hover { background: #000; }

/* --- Accueil --- */
.ouverture { padding-top: 32px; }
.ouverture-image { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }
.ouverture-texte { display: grid; grid-template-columns: 1.15fr 1fr; gap: 16px 64px; align-items: start; padding-top: 36px; }
.ouverture-texte p { font-size: 1.1875rem; color: var(--encre-douce); margin-top: 0.35rem; }

.univers { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; margin-top: 88px; }
.univers article { display: grid; grid-row: span 2; grid-template-rows: subgrid; gap: 28px; padding-top: 28px;
                  border-top: 1px solid var(--encre); }
.univers article > :first-child { align-self: end; }
.univers h2 { margin-bottom: 0.6rem; }
.univers p { color: var(--encre-douce); }
.univers-enfant .vignette { display: flex; gap: 24px; align-items: flex-end; }
.univers-enfant .vignette img { width: 46%; }

/* --- Un livre posé sur la table : la seule ombre du site --- */
.objet-livre { position: relative; box-shadow: 0 1px 2px rgb(24 36 56 / 0.14), 0 22px 40px -22px rgb(24 36 56 / 0.45); }
.objet-livre::before, .objet-livre::after { content: ""; position: absolute; top: 0; bottom: 0; width: 1px; }
.objet-livre::before { left: 7px; background: rgb(24 36 56 / 0.16); }
.objet-livre::after { left: 8px; background: rgb(255 255 255 / 0.45); }

/* --- Une planche de bande dessinée, avant le dessin --- */
.planche-texte { margin: 0; }
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.case { position: relative; min-height: 168px; padding: 8px 8px 12px; border: 1.5px solid var(--encre); background: var(--papier);
        display: flex; flex-direction: column; justify-content: space-between; gap: 18px; font: 0.9375rem/1.3 var(--sans); }
.recitatif { align-self: flex-start; margin: 0; padding: 3px 7px; background: var(--recitatif); border: 1px solid var(--encre); }
.bulle { position: relative; align-self: flex-end; margin: 0 0 6px; padding: 8px 11px; max-width: 92%;
         border: 1.5px solid var(--encre); border-radius: 18px; background: var(--papier); text-align: center; }
.bulle::after { content: ""; position: absolute; bottom: -7px; left: 24%; width: 11px; height: 11px; background: var(--papier);
                border: solid var(--encre); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg) skew(12deg, 12deg); }
.planche-texte figcaption, .double figcaption, .legende { margin-top: 10px; font-size: 0.9375rem; font-style: italic; color: var(--encre-douce); }

/* --- Bande dessinée pour adulte --- */
.adulte { margin-top: 112px; }
.adulte-tete { display: grid; grid-template-columns: 1.15fr 1fr; gap: 16px 64px; padding-top: 28px; border-top: 1px solid var(--encre); }
.adulte-tete p { color: var(--encre-douce); }
.exemple-bd { display: grid; gap: 20px; }
.notes { margin: 0; padding: 4px 0 0 20px; border-left: 2px solid var(--recitatif); }
.notes p:first-child { font: 1rem/1.5 var(--sans); color: var(--encre-douce); margin-bottom: 0.4rem; }
.notes p:last-child { font-style: italic; font-size: 1.1875rem; }

.etapes { list-style: none; counter-reset: etape; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
          padding: 0; margin: 64px 0 0; }
.etapes li { counter-increment: etape; padding-top: 14px; border-top: 1px solid var(--filet); }
.etapes li::before { content: counter(etape); display: block; margin-bottom: 4px; font: 400 1.75rem/1 var(--serif); color: var(--encre-douce); }
.prix-ligne { margin-top: 32px; font: 1.125rem/1.5 var(--sans); }

/* --- Page enfant --- */
.livre { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr); gap: 72px; align-items: center; padding-top: 56px; }
.livre-couverture { max-width: 460px; justify-self: end; width: 100%; }
.collection-nom { font: italic 1.0625rem/1.4 var(--serif); color: var(--encre-douce); margin-bottom: 0.9rem; }
.livre h1 { margin-bottom: 1.25rem; }
.fiche-livre { display: grid; grid-template-columns: auto 1fr; gap: 10px 24px; margin: 1.75rem 0 2rem; padding-block: 18px;
               border-block: 1px solid var(--filet); font: 1.0625rem/1.45 var(--sans); }
.fiche-livre dt { color: var(--encre-douce); }
.fiche-livre dd { margin: 0; }
.note { font: 1rem/1.5 var(--sans); color: var(--encre-douce); margin-top: 0.9rem; }
.bientot { font: italic 0.9375rem/1.5 var(--serif); color: var(--encre-douce); }
form > .bientot { margin: 40px 0 0; }

.feuilleter { margin-top: 120px; }
.feuilleter > h2, .dans-le-livre h2, .questions > h2 { margin-bottom: 0.5rem; }
.chapeau { color: var(--encre-douce); margin-bottom: 36px; }
.double { margin: 0; }
.double img { width: 100%; outline: 1px solid rgb(24 36 56 / 0.08); }

/* Ce qu'il y trouve : ses trois atouts côte à côte, puis la double page du guide en grand. Le livre à l'italienne est
   2,6 fois plus large que haut : à côté du texte, le guide et le diplôme étaient illisibles (30/11/2026). */
.dans-le-livre { display: grid; gap: 40px; margin-top: 120px; }
.dans-le-livre h3 { margin: 1.6rem 0 0.3rem; }
.dans-le-livre p { color: var(--encre-douce); margin: 0; }
@media (min-width: 861px) {  /* le titre sur toute la largeur ; chaque atout (son titre, son texte) remplit une colonne */
  .dans-le-livre > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(3, auto);
                         grid-auto-flow: column; column-gap: 48px; }
  .dans-le-livre h2 { grid-column: 1 / -1; }
}

.questions { margin-top: 104px; }
.questions h3 { margin: 1.75rem 0 0.3rem; }
.questions p { color: var(--encre-douce); }

/* --- Formulaires --- */
.atelier { margin-top: 112px; padding-block: 64px 72px; }
.atelier-enfant { background: var(--lagon-pale); }
.adulte .atelier { margin-top: 72px; padding: 0; }
.atelier h2 { margin-bottom: 0.5rem; }
.atelier > .cadre > p, .adulte .atelier > p { color: var(--encre-douce); }
.adulte .atelier { border-top: 1px solid var(--encre); padding-top: 28px; max-width: var(--etroit); }

fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.etape { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgb(24 36 56 / 0.14); }
.etape > legend { float: left; width: 100%; padding: 0 0 0.5rem; margin: 0; font-size: 1.5rem; line-height: 1.2; }
.etape > legend + * { clear: both; }
.num { display: inline-block; min-width: 1.5em; color: var(--encre-douce); }
.sous-groupe { margin-top: 1.5rem; }
.sous-groupe > legend, label, .etiquette { display: block; padding: 0; margin: 1.5rem 0 0.4rem; font: 500 1.0625rem/1.4 var(--sans); }
.sous-groupe > legend { margin-top: 0; }
.facultatif { font-weight: 400; color: var(--encre-douce); }

input:not([type="radio"], [type="checkbox"]), select, textarea {
  display: block;
  width: 100%;
  max-width: 34rem;
  padding: 11px 13px;
  background: var(--papier);
  color: var(--encre);
  border: 1px solid var(--champ);
  border-radius: 3px;
  font: 1.0625rem/1.4 var(--sans);
}
textarea { resize: vertical; max-width: 40rem; }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--profond); outline-offset: 0; }
input[type="file"] { padding: 9px 10px; font-size: 0.9375rem; }
input[type="file"]::file-selector-button {
  margin-right: 14px;
  padding: 7px 14px;
  background: var(--papier);
  color: var(--profond);
  border: 1px solid var(--profond);
  border-radius: 3px;
  font: 500 0.9375rem/1.2 var(--sans);
  cursor: pointer;
}
input[type="radio"], input[type="checkbox"] { accent-color: var(--profond); }

.aide { font: 1rem/1.5 var(--sans); color: var(--encre-douce); margin: 0.45rem 0 0; max-width: 40rem; }
.conseils { font: 1rem/1.5 var(--sans); color: var(--encre-douce); margin: 0.6rem 0 0; padding-left: 1.1rem; max-width: 40rem; }

.erreur { margin: 24px 0; padding: 12px 16px; background: #fcecea; border-left: 3px solid var(--rouge); color: var(--encre);
          font: 1.0625rem/1.5 var(--sans); max-width: 40rem; }
.succes { margin: 24px 0; padding: 12px 16px; background: #f1f5e8; border-left: 3px solid var(--algue); font: 1.0625rem/1.5 var(--sans); }

/* choix : un bouton radio visible, le libellé à côté ; l'option choisie se lit au cadre */
.options { display: grid; gap: 12px; margin-top: 0.4rem; }
.options-2 { grid-template-columns: repeat(2, minmax(0, 15rem)); }
.option {
  display: flex; gap: 12px; align-items: flex-start; margin: 0; padding: 13px 14px;
  background: var(--papier); border: 1px solid var(--champ); border-radius: 3px;
  font: 1.0625rem/1.4 var(--sans); cursor: pointer;
}
.option input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; }
.option:has(input:checked) { border-color: var(--profond); box-shadow: inset 0 0 0 1px var(--profond); }
.option:has(input:focus-visible) { outline: 3px solid var(--profond); outline-offset: 2px; }
.option:has(input:disabled) { cursor: default; color: var(--encre-douce); border-style: dashed; }
.option strong { display: block; font-weight: 500; }
.option .detail { display: block; color: var(--encre-douce); font-size: 1rem; }

/* les titres de la collection, présentés comme des couvertures */
.titres { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.titres .option { flex-direction: column; gap: 10px; padding: 12px 12px 14px; }
.choix { display: flex; gap: 10px; align-items: flex-start; }
.plat { display: flex; align-items: flex-end; aspect-ratio: 3 / 4; width: 100%; padding: 12px; color: #fff;
        font: italic 1.125rem/1.2 var(--serif); }
.plat-etoiles { background: var(--profond); }
.plat-foret { background: var(--algue); }
.plat img { width: 100%; height: 100%; object-fit: cover; }
.plat:has(img) { padding: 0; }

.accord { display: flex; gap: 12px; align-items: flex-start; margin: 1rem 0 0; max-width: 40rem; font: 1.0625rem/1.5 var(--sans); }
.accord input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; }
/* au paiement : la phrase sur les nouveautés se lit avec sa case « Je ne le souhaite pas », pas avec l'accord du dessus */
.accord + .aide { margin-top: 1.5rem; }
.accord + .aide + .accord { margin-top: 0.5rem; }
.envoi { margin-top: 40px; }
.envoi .note { max-width: 34rem; }

.styles { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 40rem; }

/* --- Suivi de commande --- */
.suivi { padding-top: 56px; }
.suivi h1 { margin-bottom: 1rem; }
.suivi .sous-titre { font-style: italic; color: var(--encre-douce); margin-top: -0.4rem; }
.attente { color: var(--encre-douce); }
.attente::before { content: ""; display: block; width: 48px; height: 2px; margin-bottom: 28px; background: var(--lagon); }
.site-adulte .attente::before { background: var(--encre); }  /* Bullemoi : pas le turquoise du site enfant */
.apercu { width: 100%; max-width: 900px; margin: 32px 0; outline: 1px solid rgb(24 36 56 / 0.08); }
.commande { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--filet); max-width: var(--etroit); }
.prix { font-size: 1.75rem; margin: 0 0 0.25rem; }
.commande form { margin: 1rem 0 1.25rem; }
.commande .bouton { margin-top: 1.5rem; }
@media (min-width: 900px) {  /* l'aperçu à gauche, la commande à droite (28/11/2026) : avant, elle arrivait sous l'aperçu.
     Pas de position collante : le panneau est plus haut qu'un écran d'ordinateur portable, son bouton serait resté caché. */
  .suivi:has(> .commande) { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 44px; align-items: start; }
  .suivi:has(> .commande) > * { grid-column: 1; }
  .suivi:has(> .commande) > .apercu { margin: 20px 0; }
  .suivi:has(> .commande) > .commande { grid-column: 2; grid-row: 1 / span 5; max-width: none;
    margin: 0; padding: 22px 22px 18px; border: 1px solid var(--filet); border-radius: 6px; }
  .suivi:has(> .commande) .commande .bouton { display: block; width: 100%; text-align: center; }
}
.suivi > .bouton { margin: 0.5rem 0 1.5rem; }

.pitchs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 1.75rem 0 2rem; }
.pitch { display: flex; flex-direction: column; gap: 0.5rem; margin: 0; padding: 18px 18px 20px; border: 1px solid var(--champ);
         border-radius: 3px; font: 400 1rem/1.5 var(--serif); cursor: pointer; }
.pitch input { width: 18px; height: 18px; margin: 0 0 4px; }
.pitch .genre { font: italic 0.9375rem/1.4 var(--serif); color: var(--encre-douce); }
.pitch .genre::first-letter { text-transform: uppercase; }
.pitch strong { font-weight: 400; font-size: 1.375rem; line-height: 1.2; }
.pitch:has(input:checked) { border-color: var(--profond); box-shadow: inset 0 0 0 1px var(--profond); }
.pitch:has(input:focus-visible) { outline: 3px solid var(--profond); outline-offset: 2px; }
.site-adulte .pitch { font-family: var(--serif); font-weight: 400; }  /* sans cela, le gras des libellés du formulaire s'applique aux résumés */

/* --- Pages de texte (légal, compte, contact) --- */
.texte { padding-top: 56px; }
.texte h1 { margin-bottom: 1.25rem; }
.texte h2 { font-size: 1.375rem; margin: 2.5rem 0 0.5rem; }
.texte ol, .texte ul { padding-left: 1.3rem; max-width: 38em; }
.texte li { margin-bottom: 0.45rem; }
.texte table { border-collapse: collapse; width: 100%; margin: 0.5rem 0 1.25rem; font: 1rem/1.45 var(--sans); }
.texte th, .texte td { padding: 10px 12px 10px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--filet); }
.texte th { font-weight: 500; border-bottom-color: var(--encre); }
.texte form .bouton { margin-top: 1.5rem; }
.date { font: 1rem/1.5 var(--sans); color: var(--encre-douce); }
.albums { list-style: none; padding: 0; margin: 1.5rem 0; max-width: none; }
.albums li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 20px; padding: 16px 0; border-bottom: 1px solid var(--filet); }
.albums strong { flex: 1 1 14rem; font-weight: 400; font-size: 1.1875rem; }
.albums span { font: 1rem/1.4 var(--sans); color: var(--encre-douce); }

/* --- Petits écrans --- */
@media (max-width: 860px) {
  .ouverture-texte, .univers, .adulte-tete, .livre, .dans-le-livre { grid-template-columns: 1fr; }
  .univers { gap: 56px; margin-top: 64px; }
  .formats-cartes { grid-template-columns: 1fr; }
  .formats { margin-top: 64px; }
  .livre { gap: 40px; padding-top: 32px; }
  .livre-couverture { justify-self: center; max-width: 340px; }
  .etapes { grid-template-columns: 1fr; gap: 20px; }
  .pitchs { grid-template-columns: 1fr; }
  .feuilleter, .dans-le-livre { margin-top: 88px; }
  .atelier { margin-top: 88px; padding-block: 48px 56px; }
}
@media (max-width: 560px) {
  :root { --gouttiere: 16px; }
  body { font-size: 1.0625rem; }
  .entete { padding-block: 16px 14px; }
  .entete nav { gap: 4px 20px; font-size: 1rem; }
  .cases { grid-template-columns: 1fr 1fr; }
  .case:last-child { grid-column: span 2; min-height: 120px; }
  .titres { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .titres .option { padding: 8px 8px 10px; font-size: 0.875rem; }
  .plat { padding: 8px; font-size: 0.9375rem; }
  .options-2, .styles { grid-template-columns: 1fr; }
  .texte table { font-size: 0.875rem; }
  .univers-enfant .vignette img { width: 52%; }
}

/* ============================================================================================================
   Bullemoi, « la revue de bande dessinée » (DA validée le 28/11/2026) : noir sur blanc comme une planche, le
   lettrage des albums (Shantell Sans) pour les titres, les boutons et les étapes, Charis SIL pour le texte et les
   formulaires. Un seul jaune, celui des récitatifs : l'action et le choix fait. La brique : le nom Bullemoi, rien
   d'autre. Tout est limité à .site-adulte : le site des livres pour enfant (Lune de Papier) ne change pas.
   ============================================================================================================ */

.site-adulte {
  --noir: #000;
  --jaune: #ffd400;         /* le titre des couvertures */
  --recit: #ffe566;         /* les récitatifs des planches */
  --couchant: #fd7600;      /* le ciel de la couverture de « Poussière-Gulch » */
  --couchant-clair: #fe9a00;
  --sable: #edbc75;
  --trait: 2.5px;           /* le bord des cases */
  --titrage: "Shantell Sans", "Chalkboard SE", "Comic Sans MS", sans-serif;  /* le lettrage des albums */
  --lettrage: var(--serif);
  --encre: #000;
  --encre-douce: #3d3d3d;
  --profond: #000;
  --profond-fonce: #000;
}

/* le nom du site dans une bulle */
.site-adulte .entete { border-bottom: var(--trait) solid var(--noir); align-items: center; padding-block: 18px 22px; }
.site-adulte .marque { position: relative; padding: 9px 20px 6px; background: var(--papier); border: var(--trait) solid var(--noir);
                       border-radius: 50% / 46%; font: 400 1.75rem/1 var(--titrage); letter-spacing: 0.05em; }
.site-adulte .marque::after { content: ""; position: absolute; left: 26px; bottom: -10px; width: 14px; height: 14px;
                              background: var(--papier); border-right: var(--trait) solid var(--noir);
                              border-bottom: var(--trait) solid var(--noir); transform: skewX(24deg) rotate(45deg); }
.site-adulte .entete nav { font: 700 1.0625rem/1.4 var(--lettrage); }
.site-adulte :focus-visible { outline-color: var(--noir); }

/* le bouton : une bulle qu'on enfonce */
.site-adulte .bouton { padding: 15px 30px 14px; background: var(--papier); color: var(--noir); border: var(--trait) solid var(--noir);
                       border-radius: 999px; box-shadow: 5px 5px 0 var(--noir); font: 700 1.125rem/1.2 var(--lettrage);
                       letter-spacing: 0.02em; text-transform: uppercase; }
.site-adulte .bouton:hover { background: var(--jaune); color: var(--noir); transform: translate(2px, 2px); box-shadow: 3px 3px 0 var(--noir); }
.site-adulte .bouton:active { transform: translate(5px, 5px); box-shadow: none; }
.site-adulte .bouton.petit { padding: 8px 18px 7px; box-shadow: 3px 3px 0 var(--noir); font-size: 0.9375rem; }

.site-adulte .adulte { margin-top: 24px; font-family: var(--lettrage); }

/* La une de Bullemoi se lit comme un strip, de gauche à droite. Le style vaut pour toutes les pages adultes depuis le
   27/11/2026 (base.html), malgré le nom de la classe. */
.accueil-bullemoi {
  --encre: #000;
  --encre-douce: #55524d;   /* graphite : 7,8:1 sur blanc */
  --profond: #000;          /* liens et bords : l'encre ; le jaune marque l'action */
  --papier: #fff;
  --sans: var(--serif);     /* texte et formulaires en Charis SIL (« Papier Texte ») */
  --lettrage: var(--serif);
  --noir: var(--encre);
  --jaune: #ffe15c;         /* le récitatif : l'action et le choix fait, rien d'autre (16:1 avec l'encre) */
  --recit: #ffe15c;
  --brique: #8a2e22;        /* le nom Bullemoi, rien d'autre */
  --trame: #f1f0ec;         /* le fond gris clair des cases sans dessin */
  --gris: #b9b5ad;          /* les filets de décor */
}
.accueil-bullemoi .entete { justify-content: flex-start; gap: 20px; padding-block: 12px; border-bottom: var(--trait) solid var(--encre); }
.accueil-bullemoi .marque { background: none; border: 0; padding: 0; color: var(--brique);
  font: bold italic clamp(2.5rem, 5vw, 4.6rem)/1 var(--serif); letter-spacing: -.085em; }
.accueil-bullemoi .marque::after { content: none; }
.accueil-bullemoi .signature { max-width: 10ch; font: italic 1.05rem/1.05 var(--serif); }
.accueil-bullemoi .entete nav { margin-left: auto; font: 1rem/1.3 var(--sans); }
.accueil-bullemoi .adulte { margin-top: 0; }
/* La une : l'album, en photo, à côté du titre (27/11/2026) */
.une-bullemoi { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr); gap: clamp(20px, 4vw, 56px);
  align-items: center; margin: clamp(22px, 4vw, 48px) 0 clamp(28px, 5vw, 56px); }
/* le titre en lettrage de BD, en capitales, dans une bulle qui l'entoure de près (choix de l'utilisateur, 28/11/2026) */
.une-texte h1 { position: relative; width: fit-content; max-width: 10em; margin: 0 0 34px; padding: .75em 1.3em .7em;
  background: var(--papier); border: var(--trait) solid var(--encre); border-radius: 50%; text-align: center; text-wrap: balance;
  font: 800 clamp(1.45rem, 1.1rem + 1vw, 2rem)/1.12 var(--titrage); letter-spacing: .03em; text-transform: uppercase; }
.une-texte h1::before, .une-texte h1::after { content: ""; position: absolute; clip-path: polygon(0 0, 100% 0, 10% 100%); }
.une-texte h1::before { left: 26%; top: calc(100% - 11px); width: 28px; height: 34px; background: var(--encre); }
.une-texte h1::after { left: calc(26% + 3px); top: calc(100% - 14px); width: 20px; height: 31px; background: var(--papier); }
.une-texte p { max-width: 34ch; margin: 0 0 22px; font: 1.15rem/1.4 var(--sans); }
.une-texte .une-prix { max-width: none; margin: 12px 0 0; font-size: 1rem; color: var(--encre-douce); }  /* un prix par ligne */
.une-photo { margin: 0; }
.une-photo img { display: block; width: 100%; height: auto; border: var(--trait) solid var(--encre); }
.une-photo figcaption, .note-formats { margin-top: 8px; font: .82rem/1.4 var(--sans); color: var(--encre-douce); }
.notice-album h2 { font: 700 clamp(1.85rem, 3vw, 2.7rem)/1.12 var(--titrage); letter-spacing: -.01em; }
.accueil-bullemoi .bouton { border: 2.5px solid var(--encre); border-radius: 0; box-shadow: none; background: var(--recit); color: var(--encre);
  font: 700 1.15rem/1.3 var(--titrage); padding: 9px 21px 8px; text-transform: none; letter-spacing: 0; }  /* un récitatif */
.accueil-bullemoi .bouton:hover, .accueil-bullemoi .bouton:active { background: var(--encre); color: var(--recit); transform: none; box-shadow: none; }
.accueil-bullemoi .bouton.petit { padding: 6px 14px 5px; font-size: 0.9375rem; box-shadow: none; }  /* l'ombre décalée de l'ancien habillage */
.coulisses { padding: 15px 0; border-block: 1px solid var(--gris); }
.coulisses summary { cursor: pointer; width: fit-content; font: italic 1.25rem/1.4 var(--serif); }
.dossier-nour { max-width: 56ch; margin: 24px 0 12px; }
.dossier-nour h3 { font-weight: 600; }
.dossier-nour blockquote { margin: 8px 0 20px; font: italic 1.18rem/1.5 var(--serif); }
.dossier-nour ul { padding-left: 1.2em; }
.lecture-nour { background: var(--trame); border-block: 1px solid var(--gris); padding: clamp(20px, 5vw, 60px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 24px 7%; scroll-margin-top: 12px; }
.notice-album { align-self: center; }
.notice-album h2 { margin-bottom: 18px; }
.notice-album p { max-width: 32ch; }
.feuilleteur { margin: 0; padding: 0; border: 0; min-width: 0; text-align: center; }
.feuilleteur input { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); }
.feuilleteur label { display: inline-block; width: auto; margin: 0 2px; padding: 6px 12px 5px; cursor: pointer;
  border: var(--trait) solid transparent; font: 700 1rem/1.2 var(--titrage); }
.feuilleteur input:checked + label { background: var(--recit); border-color: var(--encre); }
.feuilleteur img { border: var(--trait) solid var(--encre); }
.site-adulte .feuilleteur label { font-family: var(--titrage); }
.feuilleteur input:focus-visible + label { outline: 2px solid var(--encre); }
.feuilleteur figure { display: none; margin: 10px auto 0; max-width: 340px; }
.feuilleteur a { display: block; cursor: zoom-in; }
#lire-couverture:checked ~ .page-couverture, #lire-planche:checked ~ .page-planche { display: block; }
.site-adulte .bandeau-noel .note { width: fit-content; max-width: 40rem; margin: 16px 0 0; padding: 7px 12px 6px;
  border: var(--trait) solid var(--encre); background: var(--papier); color: var(--encre); font: 1rem/1.4 var(--serif); }
.site-adulte .adulte .atelier { margin-top: 40px; padding: clamp(24px, 5vw, 40px) clamp(14px, 4vw, 48px);
  max-width: calc(var(--etroit) + 2 * 48px + 2 * var(--trait)); border: var(--trait) solid var(--noir); }  /* le cadre épouse le formulaire */
.site-adulte .atelier form { max-width: var(--etroit); }

@media (max-width: 760px) {
  .une-bullemoi { grid-template-columns: 1fr; }
  .parcours-bd { grid-template-columns: 1fr; gap: 14px; max-width: 30rem; }  /* téléphone et tablette : les cases de haut en bas (brief) */
  .une-texte p { margin-bottom: 16px; }
  .lecture-nour { grid-template-columns: 1fr; gap: 6px; }
  .notice-album p { max-width: 45ch; }
}
@media (max-width: 560px) {
  .accueil-bullemoi { --gouttiere: 16px; }
  .accueil-bullemoi .entete { gap: 6px 13px; }
  .accueil-bullemoi .signature { font-size: .86rem; }
}

/* le formulaire : une case blanche, le même lettrage */


.site-adulte .etape { border-top: 2px solid var(--noir); }
.site-adulte .en-etapes .etape { border-top: 0; margin-top: 0; padding-top: 4px; }  /* en étapes : l'étape suit la barre, sans trait ni vide */
.site-adulte .etape > legend { font: 700 1.375rem/1.2 var(--titrage); }
.site-adulte .num { min-width: 0; margin-right: 12px; padding: 2px 9px 1px; background: var(--jaune); border: 2.5px solid var(--noir);
                    border-radius: 0; color: var(--noir); font: 700 1.125rem/1.2 var(--titrage); }  /* un récitatif */
.site-adulte h1, .site-adulte h2, .site-adulte .choix-format legend { font-family: var(--titrage); font-weight: 700; letter-spacing: -.01em; }
.site-adulte .progression { gap: 6px; margin-bottom: 24px; }
.site-adulte .progression li { padding: 6px 8px 5px; border: 2px solid var(--gris); font: 700 .875rem/1.15 var(--titrage); color: var(--encre-douce); }
.site-adulte .progression li.faite { border-color: var(--encre); color: var(--encre); }
.site-adulte .progression li[aria-current] { border: var(--trait) solid var(--encre); background: var(--recit); color: var(--encre); }
@media (max-width: 560px) {  /* téléphone : le nom de l'étape en cours seulement, les autres par leur numéro */
  .site-adulte .progression li:not([aria-current]) { flex: 0 0 2.4rem; font-size: 0; text-align: center; }
  .site-adulte .progression li:not([aria-current])::before { content: counter(pas); font-size: .875rem; }
}
.site-adulte .pitch:has(input:checked) { background: var(--recit); }
.site-adulte .carte-ton:has(:checked), .site-adulte .choix-format .format:has(input:checked) { background: var(--recit); }
.site-adulte .carte-ton:has(:checked) { box-shadow: 0 0 0 2px var(--encre); }  /* le choix fait : bord épaissi, pas seulement la couleur */
.site-adulte .portrait img { border-width: 2.5px; box-shadow: none; }
.site-adulte .choix-format .format { border: 2px solid var(--encre); border-radius: 0; }
@media (min-width: 900px) { .site-adulte .suivi:has(> .commande) > .commande { border: var(--trait) solid var(--encre); border-radius: 0; } }
.site-adulte label, .site-adulte .aide, .site-adulte .option, .site-adulte .accord, .site-adulte .erreur,
.site-adulte input, .site-adulte select, .site-adulte textarea, .site-adulte .note { font-family: var(--lettrage); }
.site-adulte label { font-weight: 700; }
.site-adulte .option, .site-adulte .accord { font-weight: 400; }
.site-adulte input:not([type="radio"], [type="checkbox"]), .site-adulte select, .site-adulte textarea,
.site-adulte .option { border: 2px solid var(--noir); border-radius: 0; }
.site-adulte .option:has(input:checked) { background: var(--recit); box-shadow: 4px 4px 0 var(--noir); }
.site-adulte .option strong { font-weight: 700; }
.site-adulte input[type="file"] { padding: 8px; font-size: .875rem; }
/* avec le script, la vignette et le nom du fichier s'affichent dessous (bullemoi.js) : on retire le texte du navigateur,
   tronqué sur téléphone (« Aucun…r choisi »), et il ne reste que le bouton. Sans script, rien ne change. */
.site-adulte .en-etapes input[type="file"] { padding: 0; border: 0; color: transparent; }
@media (max-width: 360px) {  /* le compteur « Étape 2 sur 4 » reste lu (zone annoncée), la barre d'étapes le montre déjà */
  .site-adulte .navigation-etapes .compteur { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
.site-adulte input[type="file"]::file-selector-button { margin-right: 10px; padding: 7px 12px 6px; border: var(--trait) solid var(--noir);
                                                         border-radius: 0; color: var(--noir); font: 700 0.9375rem/1.2 var(--titrage); }
.site-adulte input[type="radio"], .site-adulte input[type="checkbox"] { accent-color: var(--noir); }
.site-adulte .pied { border-top: var(--trait) solid var(--noir); }
/* Bullemoi : à côté d'un champ blanc au trait noir, un bouton blanc au trait se lirait comme un 2e champ : il est à l'encre */
.site-adulte .pied .nouvelles .bouton { background: var(--encre); color: var(--papier); border-width: 2px; }
.site-adulte .pied .nouvelles .bouton:hover { background: var(--recit); color: var(--encre); }

@media (prefers-reduced-motion: reduce) { .site-adulte .bouton:hover, .site-adulte .bouton:active { transform: none; } }

/* --- Première image et album des proches (les deux sites) --- */
.portrait { margin: 0 0 28px; }
.portrait img { width: 100%; max-width: 300px; border: 3px solid var(--encre); box-shadow: 6px 6px 0 var(--encre); }
.portrait figcaption { margin-top: 12px; max-width: 32rem; font: 1rem/1.45 var(--sans); color: var(--encre-douce); }
.partage { margin: 24px 0 32px; padding: 18px 20px 20px; border: 2px dashed var(--encre); }
.partage .aide { margin-top: 0; }
.partage code { display: block; margin: 8px 0 16px; font-size: 1rem; word-break: break-all; }
.partage .bouton { margin-right: 16px; }
.anecdotes { list-style: none; margin: 12px 0 28px; padding: 0; max-width: 40rem; }
.anecdotes li { padding: 12px 0; border-bottom: 1px solid var(--filet); }
.suivi form + .aide { margin-top: 12px; }
.parents-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; max-width: 40rem; }
@media (max-width: 560px) { .parents-photos { grid-template-columns: 1fr; } }

/* Le choix se fait directement sur la vignette, avec un bouton radio natif. */
.casting { margin: 16px 0; }
.casting summary { color: var(--profond); cursor: pointer; }
.casting > div { border-left: 2px solid var(--filet); padding-left: 14px; margin-top: 16px; }
.cartes-univers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.site-adulte .carte-univers { position: relative; display: block; margin: 0; min-width: 0;
  cursor: pointer; border: var(--trait) solid var(--encre); background: var(--papier); color: var(--encre); }
.carte-univers img { width: 100%; aspect-ratio: 8 / 5; object-fit: cover; object-position: center 57%; }
.carte-univers:last-child:nth-child(odd) { grid-column: span 2; }  /* la dernière case en bande large, comme en fin de planche */
.carte-univers:last-child:nth-child(odd) img { aspect-ratio: 16 / 5; object-position: center 45%; }
.carte-univers span { position: absolute; left: calc(-1 * var(--trait)); bottom: calc(-1 * var(--trait)); max-width: calc(100% - 8px);
  padding: 4px 8px 3px; background: var(--papier); border: var(--trait) solid var(--encre); font: 700 .875rem/1.15 var(--titrage); }
.carte-univers input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.carte-univers:has(:checked) { outline: 4px solid var(--encre); outline-offset: 0; }
.carte-univers:has(:checked) span { background: var(--recit); color: var(--encre); }
.carte-univers:has(:checked)::after { content: "✓"; content: "✓" / ""; position: absolute; top: 6px; right: 6px; display: grid; place-items: center;
  width: 26px; height: 26px; background: var(--recit); border: 2px solid var(--encre); border-radius: 50%; font: 700 15px/1 var(--titrage); }
.carte-univers:has(:focus-visible) { outline: 4px double var(--encre); outline-offset: 4px; }
@media (max-width: 560px) { .cartes-univers { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }

/* les titres : la photo de Léo (enfant inventé) en médaillon, puis Léo dessiné sur la couverture (28/11/2026) */
.titres-livres { margin-top: 104px; }
.titres-livres > h2 { margin-bottom: 0.5rem; }
.cartes-titres { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.carte-titre h3 { margin: 0.9rem 0 0.2rem; }
.photo-dessin { position: relative; margin: 0; }
.photo-dessin > img:first-child { width: 100%; height: auto; outline: 1px solid rgb(24 36 56 / 0.08); }
.medaillon { position: absolute; left: 4%; top: 40%; width: 24%; height: auto; border-radius: 50%; border: 3px solid var(--papier);
             box-shadow: 0 2px 10px rgb(24 36 56 / 0.25); }
.fleche { position: absolute; left: 29%; top: 51%; font: 700 1.75rem/1 var(--sans); color: var(--papier);
          text-shadow: 0 1px 4px rgb(24 36 56 / 0.6); }
.photo-dessin figcaption { margin-top: 8px; font-size: 0.9375rem; font-style: italic; color: var(--encre-douce); }
.carte-age { margin: 0; font: 1rem/1.5 var(--sans); color: var(--encre-douce); }
.themes { display: flex; flex-wrap: wrap; gap: 6px; margin: 0.7rem 0; padding: 0; list-style: none; font: 0.9375rem/1.3 var(--sans); }
.themes li { padding: 4px 10px; border: 1px solid #e2dccb; border-radius: 999px; background: var(--page); }
.parfait { margin: 0; font-style: italic; color: var(--encre-douce); }
@media (max-width: 760px) { .cartes-titres { grid-template-columns: 1fr; gap: 48px; } }
.choix-format .deuxieme { grid-column: 1 / -1; margin: 0; max-width: none; padding: 12px 14px; border: 1px dashed var(--champ);
  border-radius: 6px; background: var(--page); }  /* le 2e exemplaire : une option du livre relié, pas une case d'accord */
.choix-format:has(input[value="pdf"]:checked) .deuxieme { display: none; }  /* le serveur ne le compte qu'avec le livre relié */

/* Lune de Papier, lot 6 (28/11/2026) : « le livre à l'italienne ». La photo du livre ouvert en grand, le bandeau de
   Noël (bloc 4) en bande d'encre sous l'en-tête, la flèche photo → dessin des cartes de titre lisible sur l'aquarelle. */
.site-enfant .livre { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; padding-top: 40px; }
.site-enfant .livre-couverture { max-width: none; justify-self: stretch; }
.site-enfant .bandeau-noel { max-width: none; padding-block: 10px; padding-inline: max(var(--gouttiere), (100% - var(--large)) / 2);
  background: var(--encre); }
.site-enfant .bandeau-noel .note { margin: 0; max-width: none; color: #fff; font: 1rem/1.4 var(--sans); }
.site-enfant .bandeau-noel a { color: #fff; }  /* un lien dans le bandeau resterait sinon encre sur encre */
.site-enfant .fleche { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; margin: -0.4rem 0 0 -0.3rem; border-radius: 50%;
  background: var(--papier); color: var(--encre); font: 700 1.25rem/1 var(--sans); text-shadow: none; box-shadow: 0 1px 6px rgb(24 36 56 / 0.3); }
@media (max-width: 860px) {  /* téléphone et tablette : la photo du livre d'un bord à l'autre */
  .site-enfant .livre { grid-template-columns: 1fr; gap: 20px; padding-top: 0; }
  .site-enfant .livre-couverture { width: auto; max-width: none; margin-inline: calc(-1 * var(--gouttiere)); }
  .site-enfant .livre-photo img { border-radius: 0; box-shadow: none; }
  .site-enfant .livre-photo figcaption { padding-inline: var(--gouttiere); }
}

/* Feuilleter le livre : les doubles pages en bande qu'on fait glisser, sur le lavis lagon (bullemoi.js ajoute les flèches) */
.site-enfant .feuilleter { max-width: none; padding-block: 40px 32px; padding-inline: max(var(--gouttiere), (100% - var(--large)) / 2);
  background: var(--lagon-pale); }
.pages-livre { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; padding-bottom: 12px; }
.pages-livre .double { flex: 0 0 min(86%, 760px); scroll-snap-align: start; }
.pages-livre .double img { border-radius: 3px; outline: 0; box-shadow: 0 1px 0 rgb(24 36 56 / 0.1), 0 14px 24px -18px rgb(24 36 56 / 0.6); }
.pages-livre:focus-visible { outline: 3px solid var(--profond); outline-offset: 4px; }
.fleches-pages { display: flex; gap: 10px; margin-top: 6px; }
.fleches-pages button { width: 44px; height: 44px; border: 1.5px solid var(--encre); border-radius: 50%; background: var(--papier);
  color: var(--encre); font: 700 1.4rem/1 var(--sans); cursor: pointer; }
.fleches-pages button:hover { background: var(--encre); color: var(--papier); }
@media (hover: none) { .fleches-pages { display: none; } }  /* au doigt, on fait glisser */
@media (prefers-reduced-motion: no-preference) { .pages-livre { scroll-behavior: smooth; } }
