/* ==========================================================================
   GouRouKan — feuille de style principale
   Direction « Pop & bulles »
   ========================================================================== */

/* Polices hébergées sur le site (licence SIL OFL, voir assets/fonts/LICENCE-OFL.txt).
   Aucune requête vers Google : rien n'est transmis à un tiers. */
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/nunito-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/nunito-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/nunito-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/nunito-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/nunito-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/nunito-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/nunito-latin-800-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/nunito-latin-ext-800-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 900; font-display: swap; src: url("../fonts/nunito-latin-900-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 900; font-display: swap; src: url("../fonts/nunito-latin-ext-900-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Short Stack"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/short-stack-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Police de la marque : Kristen ITC si elle est installée sur l'appareil.
   Pour l'afficher chez tout le monde, ajoutez ici le fichier web sous licence
   (voir README) ; sinon, Short Stack (Google Fonts) prend le relais. */
@font-face {
  font-family: "GouRouKan Display";
  src: local("Kristen ITC"), local("KristenITC-Regular");
  /* src: url("../fonts/kristen-itc.woff2") format("woff2"); */
  font-display: swap;
}

:root {
  --rouge: #D7141E;
  --rouge-fonce: #8E0B12;
  --raisin: #5B2A86;
  --soleil: #FFC93C;
  --creme: #FFF1C7;
  --rose: #FFE3E6;
  --lilas: #ECE3F5;
  --vert: #1F7A3A;
  --menthe: #E3F1E6;
  --ciel: #E4F2FA;
  --bleu: #1D5F8A;
  --nuit: #1B2A4A;
  --encre: #2A1722;
  --gris: #5E4A52;
  --blanc: #FFFFFF;

  --f-display: "GouRouKan Display", "Short Stack", "Comic Neue", cursive;
  --f-texte: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;

  --largeur: 1240px;
  --gouttiere: clamp(16px, 4vw, 20px);
  --rayon: 28px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-texte);
  font-size: 18px;
  line-height: 1.6;
  color: var(--encre);
  background: var(--blanc);
  overflow-x: hidden;
}
main { overflow-x: hidden; overflow-x: clip; }
img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--rouge); }
a:hover { color: var(--encre); }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--soleil); outline-offset: 3px; border-radius: 6px; }

.conteneur { max-width: var(--largeur); margin: 0 auto; padding-inline: var(--gouttiere); }
[hidden] { display: none !important; }
section[id], [id="contenu"] { scroll-margin-top: 90px; }
.visuellement-cache {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
.lien-evitement {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--encre); color: var(--blanc); padding: 10px 16px; border-radius: 12px;
}
.lien-evitement:focus { top: 12px; }

.display { font-family: var(--f-display); font-weight: 400; }
.titre-section {
  font-family: var(--f-display);
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.08;
}
.chapo { max-width: 600px; }
.centre { text-align: center; margin-inline: auto; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 56px; padding: 0 28px; border-radius: 999px;
  font-weight: 900; font-size: 18px; text-decoration: none; border: 3px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(3px); box-shadow: none !important; }
.btn--rouge { background: var(--rouge); color: var(--blanc); box-shadow: 0 6px 0 var(--rouge-fonce); }
.btn--rouge:hover { color: var(--blanc); }
.btn--contour { background: var(--blanc); color: var(--encre); border-color: var(--encre); box-shadow: 0 6px 0 var(--encre); }
.btn--violet { background: var(--raisin); color: var(--blanc); box-shadow: 0 6px 0 #3A1858; }
.btn--violet:hover { color: var(--blanc); }
.btn--petit { min-height: 48px; padding: 0 22px; font-size: 16px; }
.btn--large { width: 100%; min-height: 62px; font-size: 19px; }

.pastille {
  display: inline-block; padding: 8px 16px; border-radius: 999px;
  background: var(--creme); font-weight: 900; font-size: 15px;
}

/* ---------- En-tête ---------- */
.entete { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); }
.entete__barre {
  display: flex; align-items: center; justify-content: space-between; gap: 12px 24px;
  padding-block: 14px;
}
.logo { font-family: var(--f-display); font-size: 30px; line-height: 1; color: var(--rouge); text-decoration: none; }
.logo:hover { color: var(--rouge-fonce); }
.nav ul { list-style: none; margin: 0; padding: 6px; display: flex; gap: 6px; background: var(--rose); border-radius: 999px; }
.nav a { display: block; padding: 10px 16px; border-radius: 999px; color: var(--encre); text-decoration: none; font-weight: 800; font-size: 15px; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--blanc); }
.entete__actions { display: flex; align-items: center; gap: 10px; }
.burger {
  display: none; width: 48px; height: 48px; border-radius: 50%;
  border: 3px solid var(--encre); background: var(--blanc); color: var(--encre);
  align-items: center; justify-content: center;
}

@media (max-width: 900px) {
  .burger { display: inline-flex; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; padding: 0 var(--gouttiere) 16px; background: var(--blanc); display: none; }
  .nav.est-ouvert { display: block; }
  .nav ul { flex-direction: column; border-radius: 24px; }
  .nav a { padding: 14px 18px; font-size: 17px; }
  .entete__actions .btn { display: none; }
}

/* ---------- Héros ---------- */
.heros__grille {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr));
  gap: 30px 40px; align-items: center; padding-block: 40px 90px;
}
.heros__titre { font-family: var(--f-display); font-size: clamp(40px, 5.8vw, 84px); line-height: 1.02; margin-bottom: 26px; }
.heros__titre span { display: block; white-space: nowrap; }
@media (min-width: 900px) { .heros__grille { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); } }
.heros__titre .l1 { color: var(--raisin); }
.heros__titre .l2 { color: var(--rouge); padding-left: .4em; }
.heros__titre .l3 { color: var(--vert); padding-left: .15em; }
.heros__pastilles { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.heros__texte { font-size: 20px; max-width: 480px; margin-bottom: 30px; }
.groupe-boutons { display: flex; flex-wrap: wrap; gap: 14px; }

.heros__visuel { position: relative; min-height: 560px; display: grid; place-items: center; }
.heros__forme { position: absolute; width: min(540px, 100%); height: auto; }
.heros__saut { position: absolute; left: -6%; top: 2%; width: 46%; }
.heros__boing { position: absolute; left: 6%; top: 0; font-family: var(--f-display); font-size: 26px; color: var(--raisin); transform: rotate(-10deg); }
.heros__bouteille { position: relative; height: 500px; width: auto; filter: drop-shadow(0 24px 20px rgba(42,23,34,.3)); animation: bouteille-flotte 6s ease-in-out infinite; }
.heros__coucou {
  position: absolute; right: 0; top: 18%; width: 34%;
  filter: drop-shadow(0 0 2px #fff) drop-shadow(0 0 4px #fff) drop-shadow(0 10px 10px rgba(42,23,34,.25));
  animation: coucou 5s ease-in-out infinite;
}
.heros__grappe { position: absolute; left: 10%; bottom: 8%; width: 16%; transform: rotate(-14deg); }
.bulles { position: absolute; inset: 0; pointer-events: none; }
.bulles span { position: absolute; border-radius: 50%; animation: bulle-monte linear infinite; }

@keyframes bouteille-flotte { 0%,100% { transform: rotate(7deg) translateY(0); } 50% { transform: rotate(4deg) translateY(-12px); } }
@keyframes coucou { 0%,60%,100% { transform: translate(0,0) rotate(-14deg); } 75% { transform: translate(-18px,-10px) rotate(-20deg); } }
@keyframes bulle-monte { 0% { transform: translateY(0) scale(.6); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(-460px) scale(1); opacity: 0; } }

@media (max-width: 600px) {
  .heros__visuel { min-height: 420px; }
  .heros__bouteille { height: 380px; }
}

/* ---------- Bandeau défilant ---------- */
.bandeau {
  background: var(--rouge); color: var(--blanc); overflow: hidden;
  transform: rotate(-2deg); margin: 0 -40px; box-shadow: 0 8px 0 var(--soleil);
}
.bandeau__piste {
  display: flex; width: max-content; padding: 16px 0;
  font-family: var(--f-display); font-size: clamp(22px, 2.6vw, 32px); white-space: nowrap;
  animation: defile 22s linear infinite;
}
.bandeau__piste span { padding: 0 28px; }
.bandeau__piste .point { color: var(--soleil); }
@keyframes defile { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Fêtes (onglets) ---------- */
.fetes { padding-block: 110px 90px; }
.fetes .chapo { margin: 12px auto 36px; }
.onglets { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 28px; }
.onglet {
  min-height: 52px; padding: 0 24px; border-radius: 999px;
  border: 3px solid var(--encre); background: var(--blanc); color: var(--encre); font-weight: 900; font-size: 17px;
}
.onglet[aria-selected="true"] { background: var(--encre); color: var(--blanc); }
.panneau {
  border-radius: 44px; padding: clamp(26px, 5vw, 64px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 30px; align-items: center;
  background: var(--fond); color: var(--encre);
}
.panneau[hidden] { display: none; }
.panneau__surtitre { font-weight: 900; font-size: 15px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.panneau h3 { font-family: var(--f-display); font-size: clamp(30px, 3.8vw, 48px); line-height: 1.1; margin-bottom: 14px; }
.panneau__texte { font-size: 19px; margin-bottom: 22px; }
.idees { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.idees li { display: flex; gap: 12px; align-items: center; background: var(--blanc); border-radius: 18px; padding: 12px 16px; font-weight: 700; }
.idees svg { flex-shrink: 0; color: var(--accent); }
.panneau__visuel { position: relative; display: grid; place-items: center; min-height: 380px; }
.panneau__visuel::before { content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%; background: rgba(255,255,255,.7); }
.panneau__visuel img { position: relative; height: 360px; width: auto; transform: rotate(-8deg); filter: drop-shadow(0 18px 16px rgba(42,23,34,.25)); }
.autocollant {
  position: absolute; right: 8%; top: 10%; background: var(--blanc); border-radius: 22px; padding: 8px 18px;
  font-family: var(--f-display); font-size: 26px; color: var(--accent); transform: rotate(8deg); box-shadow: 0 5px 0 var(--accent);
}
.panneau--anniv { --fond: var(--rose); --accent: #A80F17; }
.panneau--gouter { --fond: var(--creme); --accent: #7A4F00; }
.panneau--noel { --fond: var(--menthe); --accent: var(--vert); }
.panneau--nouvel-an { --fond: var(--lilas); --accent: var(--raisin); }
.panneau--piquenique { --fond: var(--ciel); --accent: var(--bleu); }

/* ---------- Vagues ---------- */
.vague { display: block; width: 100%; height: 60px; }

/* ---------- Histoires (couvertures) ---------- */
.histoires { background: var(--creme); }
.histoires__contenu { padding-block: 50px 100px; }
.histoires__entete { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 40px; margin-bottom: 50px; }
.histoires__entete .chapo { margin-top: 10px; }
.bientot { font-family: var(--f-display); font-size: 20px; color: var(--raisin); }
.couvertures { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: 34px; }
.couverture {
  display: block; text-decoration: none; color: var(--blanc); background: var(--fond);
  border-radius: 12px 30px 30px 12px; overflow: hidden; box-shadow: 10px 12px 0 var(--encre);
  transform: rotate(var(--angle, 0deg)); transition: transform .2s ease;
}
.couverture:hover { color: var(--blanc); transform: rotate(0deg) translateY(-6px); }
.couverture__image { position: relative; height: 250px; overflow: hidden; }
.couverture__image img.kangourou { position: absolute; left: 50%; bottom: -80px; height: 300px; width: auto; transform: translateX(-50%); filter: drop-shadow(0 0 2px #fff) drop-shadow(0 0 3px #fff); }
.couverture__texte { padding: 22px 24px 26px; }
.couverture__numero { font-weight: 900; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--creme); margin-bottom: 4px; }
.couverture__titre { font-family: var(--f-display); font-size: 26px; line-height: 1.15; margin-bottom: 10px; }
.couverture__lire { font-weight: 900; }
.couverture--1 { --fond: var(--vert); --angle: -2deg; }
.couverture--2 { --fond: var(--rouge); --angle: 1.5deg; }
.couverture--3 { --fond: var(--raisin); --angle: -1deg; }

/* ---------- Comment ça pétille ---------- */
.petille { padding-block: 90px; }
.petille .chapo { margin: 12px auto 50px; }
.etapes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 30px; text-align: center; }
.etape__icone { width: 130px; height: 130px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: var(--fond); color: var(--accent); }
.etape__titre { font-family: var(--f-display); font-size: 24px; margin-bottom: 4px; }
.petille__mentions { margin-top: 40px; text-align: center; font-size: 15px; color: var(--gris); }
.details-produit { max-width: 760px; margin: 22px auto 0; background: var(--creme); border-radius: 22px; padding: 16px 22px; }
.details-produit summary { cursor: pointer; font-weight: 900; }
.details-produit table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 16px; }
.details-produit th, .details-produit td { padding: 6px 0; border-top: 1px solid rgba(42,23,34,.12); }
.details-produit th { text-align: left; font-weight: 600; }
.details-produit td { text-align: right; }

/* ---------- Famille ---------- */
.famille { background: var(--raisin); color: var(--blanc); }
.famille__grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 50px; align-items: center; padding-block: 90px; }
.famille img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 58% 42% 52% 48% / 46% 56% 44% 54%; border: 8px solid var(--soleil); }
.famille blockquote { margin: 0 0 18px; font-family: var(--f-display); font-size: clamp(26px, 3.4vw, 42px); line-height: 1.25; }
.famille__texte { font-size: 19px; color: #F0E6F8; margin-bottom: 26px; }
.famille__signature { font-weight: 900; color: var(--soleil); }

/* ---------- Recettes ---------- */
.recettes { padding-block: 100px 90px; }
.recettes .chapo { margin: 12px auto 44px; }
.cartes-recettes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 22px; }
.recette { border: 3px solid var(--encre); border-radius: 28px; overflow: hidden; box-shadow: 0 8px 0 var(--encre); background: var(--blanc); }
.recette__tete { background: var(--fond); padding: 18px 22px; }
.recette__public { font-weight: 900; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.recette h3 { font-family: var(--f-display); font-size: 26px; margin-top: 4px; }
.recette__corps { padding: 18px 22px 22px; font-size: 16px; }
.recette__corps ul { margin: 0 0 10px; padding-left: 20px; }

/* ---------- Achat ---------- */
.achat { padding-bottom: 100px; }
.achat__boite {
  background: var(--soleil); border-radius: 48px; padding: clamp(26px, 5vw, 64px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 30px; align-items: center;
}
.achat__visuel { position: relative; display: grid; place-items: center; min-height: 420px; }
.achat__visuel::before { content: ""; position: absolute; width: 320px; height: 320px; max-width: 90%; aspect-ratio: 1; border-radius: 50%; background: var(--blanc); }
.achat__visuel img { position: relative; height: 420px; width: auto; transform: rotate(6deg); filter: drop-shadow(0 18px 16px rgba(42,23,34,.3)); }
.macaron {
  position: absolute; left: 6%; top: 8%; width: 104px; height: 104px; border-radius: 50%;
  background: var(--rouge); color: var(--blanc); display: grid; place-items: center; text-align: center;
  font-weight: 900; font-size: 15px; line-height: 1.15; transform: rotate(-12deg);
}
.achat h2 { font-family: var(--f-display); font-size: clamp(32px, 4.2vw, 52px); line-height: 1.05; margin-bottom: 8px; }
.achat__prix { font-size: 19px; margin-bottom: 24px; }
.formats { border: 0; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.format { position: relative; }
.format input { position: absolute; opacity: 0; pointer-events: none; }
.format span {
  display: flex; flex-direction: column; justify-content: center; min-height: 84px; padding: 10px; text-align: center;
  border-radius: 22px; border: 3px solid var(--encre); background: var(--blanc); font-weight: 900; font-size: 16px; cursor: pointer;
}
.format small { font-weight: 600; font-size: 15px; }
.format input:checked + span { background: var(--encre); color: var(--blanc); }
.format input:focus-visible + span { outline: 3px solid var(--blanc); outline-offset: 3px; }
.quantite { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-bottom: 20px; }
.compteur { display: flex; align-items: center; gap: 4px; background: var(--blanc); border-radius: 999px; padding: 4px; border: 3px solid var(--encre); }
.compteur button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--creme); color: var(--encre); font-size: 22px; font-weight: 900; }
.compteur output { min-width: 40px; text-align: center; font-weight: 900; font-size: 20px; }
.total { line-height: 1.2; }
.total strong { font-family: var(--f-display); font-weight: 400; font-size: 34px; }
.achat__note { margin-top: 12px; text-align: center; font-size: 15px; }

/* ---------- Club ---------- */
.club { padding-bottom: 100px; }
.club__boite {
  border: 3px solid var(--encre); border-radius: 40px; padding: clamp(24px, 4vw, 50px); box-shadow: 0 10px 0 var(--encre);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 26px; align-items: center;
}
.club__intro { display: flex; gap: 18px; align-items: center; }
.club__intro picture { flex-shrink: 0; }
.club__intro img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; background: var(--rose); flex-shrink: 0; }
.club h2 { font-family: var(--f-display); font-size: clamp(28px, 3vw, 38px); line-height: 1.1; margin-bottom: 6px; }
.club form { display: flex; flex-wrap: wrap; gap: 10px; }
.club input[type="email"] { flex: 1 1 220px; min-width: 0; width: 100%; min-height: 56px; border-radius: 999px; border: 3px solid var(--encre); padding: 0 22px; font: inherit; }
.club__merci { background: var(--lilas); border-radius: 24px; padding: 18px 22px; font-weight: 900; color: var(--raisin); }

/* ---------- Pied de page ---------- */
.pied { background: var(--rouge); color: var(--blanc); }
.pied a { color: var(--blanc); }
.pied a:hover { color: var(--creme); }
.pied__grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 28px; padding-block: 30px; }
.pied__logo { font-family: var(--f-display); font-size: 34px; line-height: 1; margin-bottom: 8px; }
.pied__titre { font-weight: 900; color: var(--creme); margin-bottom: 8px; }
.pied ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.pied__bas { border-top: 2px solid rgba(255,255,255,.35); padding-block: 16px 26px; text-align: center; font-size: 14px; }

/* ==========================================================================
   Pages histoires
   ========================================================================== */
.histoire-entete { background: var(--fond); color: var(--texte, var(--encre)); }
.histoire-entete .conteneur { padding-block: 44px 40px; }
.histoire-entete__num { font-family: var(--f-display); font-size: 22px; color: var(--accent); margin-bottom: 6px; }
.histoire-entete h1 { font-family: var(--f-display); font-size: clamp(34px, 5vw, 60px); line-height: 1.08; margin-bottom: 10px; }
.histoire--1 { --fond: var(--menthe); --accent: var(--vert); }
.histoire--2 { --fond: var(--rose); --accent: #A80F17; }
.histoire--3 { --fond: var(--nuit); --accent: var(--soleil); --texte: #FFF6E8; }

.lecteur-zone { padding-block: 40px 64px; }
.lecteur {
  display: flex; flex-wrap: wrap; background: var(--blanc); border-radius: 36px; overflow: hidden;
  border: 3px solid var(--encre); box-shadow: 0 10px 0 var(--encre);
}
.scene {
  --ciel-scene: #CFE8F5;
  position: relative; flex: 1 1 480px; min-height: 440px; overflow: hidden; background: var(--ciel-scene);
  transition: background-color .6s ease;
}
.scene > svg.decor, .scene > svg.calque { position: absolute; inset: 0; width: 100%; height: 100%; }
.scene .grain { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; mix-blend-mode: multiply; opacity: .22; }
.scene__kangourou {
  --k-gauche: 34%; --k-bas: -8%; --k-hauteur: 84%; --k-rot: 0deg; --k-sens: 1;
  position: absolute; left: var(--k-gauche); bottom: var(--k-bas); height: var(--k-hauteur); width: auto; max-width: none;
  transform: rotate(var(--k-rot)) scaleX(var(--k-sens)); transform-origin: 50% 100%;
  filter: drop-shadow(0 0 1px #fff) drop-shadow(0 0 3px #fff) drop-shadow(0 14px 12px rgba(42,23,34,.28));
  transition: left .6s cubic-bezier(.3,1.4,.5,1), bottom .6s cubic-bezier(.3,1.4,.5,1), height .6s ease, transform .6s cubic-bezier(.3,1.4,.5,1);
}
.scene--nuit .scene__kangourou { filter: brightness(.82) drop-shadow(0 0 1px #FFF3C4) drop-shadow(0 0 4px rgba(255,243,196,.7)) drop-shadow(0 14px 12px rgba(0,0,0,.35)); }
.scene [data-accessoire] { transition: opacity .4s ease; }
.scene [data-accessoire].est-cache { opacity: 0; visibility: hidden; }
.onomatopee {
  position: absolute; left: var(--x, 8%); top: var(--y, 12%);
  background: var(--blanc); color: var(--rouge); border-radius: 22px; padding: 8px 18px;
  font-family: var(--f-display); font-size: clamp(22px, 2.6vw, 34px); transform: rotate(-6deg); box-shadow: 0 6px 0 var(--rouge-fonce);
  animation: pop .45s cubic-bezier(.3,1.6,.5,1);
}
.onomatopee:empty { display: none; }
.scene--nuit .onomatopee { background: #FFF3C4; color: var(--nuit); box-shadow: 0 6px 0 #0F1A30; }
@keyframes pop { from { transform: rotate(-6deg) scale(.4); opacity: 0; } to { transform: rotate(-6deg) scale(1); opacity: 1; } }

.lecteur__texte { flex: 1 1 420px; min-width: 0; padding: clamp(26px, 4vw, 52px); display: flex; flex-direction: column; gap: 22px; }
.lecteur__position { font-family: var(--f-display); font-size: 16px; color: var(--vert); }
.pages { list-style: none; margin: 0; padding: 0; flex: 1; }
.pages li { font-size: clamp(20px, 1.9vw, 23px); line-height: 1.75; }
.pages li p + p { margin-top: .6em; }
.pages li + li { margin-top: 1.4em; }
.js .pages li + li { margin-top: 0; }
.js .pages li:not(.est-active) { display: none; }
.fin { font-family: var(--f-display); font-size: 30px; color: var(--rouge); }
.lecteur__nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.points { display: flex; gap: 8px; }
.points span { width: 12px; height: 12px; border-radius: 50%; background: #EADCD2; transition: background .3s, transform .3s; }
.points span.est-actif { background: var(--rouge); transform: scale(1.25); }
.lecteur__boutons { display: flex; flex-wrap: wrap; gap: 10px; }
.lecteur__boutons [hidden] { display: none; }
.no-js .lecteur__nav, .no-js .lecteur__position { display: none; }

.coin-parents { background: var(--creme); }
.coin-parents .conteneur { padding-block: 72px; }
.coin-parents h2 { font-family: var(--f-display); font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 30px; }
.cartes-parents { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: 20px; }
.carte-parent { background: var(--blanc); border: 3px solid var(--encre); border-radius: 26px; padding: 26px; }
.carte-parent h3 { font-family: var(--f-display); font-size: 22px; color: var(--accent, var(--vert)); margin-bottom: 10px; }
.carte-parent ul { margin: 0; padding-left: 20px; }

.suite { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; padding-block: 64px 90px; }
.suite__label { font-family: var(--f-display); font-size: 20px; color: var(--raisin); }
.suite__titre { font-family: var(--f-display); font-size: 28px; }

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Scintillements (histoire 3) ---------- */
.scintille use:nth-child(odd), .lucioles circle { animation: scintille 3.2s ease-in-out infinite; }
.scintille use:nth-child(3n) { animation-delay: 1.1s; }
.lucioles circle:nth-child(2n) { animation-delay: 1.4s; animation-duration: 2.4s; }
@keyframes scintille { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

/* ---------- Club : consentement, piège à robots, erreurs ---------- */
.club form .consentement { flex: 1 1 100%; display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.45; cursor: pointer; }
.consentement input { width: 22px; height: 22px; margin-top: 1px; flex-shrink: 0; accent-color: var(--raisin); }
.consentement a { color: var(--raisin); }
.piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.club__erreur { margin-top: 12px; background: var(--rose); border-radius: 18px; padding: 14px 18px; font-weight: 800; color: #8E0B12; }
.club button[disabled] { opacity: .7; cursor: wait; }

/* ---------- Page merci ---------- */
.merci { min-height: 70vh; display: grid; place-items: center; text-align: center; padding-block: 60px; }
.merci img { width: 180px; margin: 0 auto 20px; }
.merci h1 { font-family: var(--f-display); font-size: clamp(36px, 6vw, 64px); color: var(--raisin); margin-bottom: 12px; }
.merci p { max-width: 520px; margin: 0 auto 26px; font-size: 19px; }

/* ---------- Bandeau cookies ---------- */
.cookies { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200; display: flex; justify-content: flex-start; pointer-events: none; }
.cookies__carte {
  pointer-events: auto; width: 100%; max-width: 460px; max-height: calc(100vh - 32px); overflow-y: auto;
  background: var(--blanc); border: 3px solid var(--encre); border-radius: 28px; box-shadow: 0 8px 0 var(--encre);
  padding: 22px 22px 20px; animation: cookies-entree .45s cubic-bezier(.3,1.4,.5,1);
}
.cookies__titre { font-family: var(--f-display); font-size: 24px; line-height: 1.2; margin-bottom: 8px; color: var(--rouge); }
.cookies__titre:focus { outline: none; }
.cookies__texte { font-size: 15px; line-height: 1.5; margin-bottom: 16px; }
.cookies__texte a { color: var(--raisin); font-weight: 700; }
.cookies__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.cookies__actions .btn { flex: 1 1 140px; font-size: 15px; min-height: 46px; padding: 0 16px; }
.cookies__actions [data-action="enregistrer"] { flex-basis: 100%; }
.cookies__lien { background: none; border: 0; padding: 8px 4px; font-weight: 800; font-size: 15px; color: var(--encre); text-decoration: underline; text-underline-offset: 3px; }
.cookies__details { border-top: 2px dashed #EADCD2; padding-top: 12px; margin-bottom: 14px; display: grid; gap: 12px; }
.cookies__ligne { display: flex; gap: 14px; align-items: center; justify-content: space-between; }
.cookies__nom { font-weight: 900; font-size: 15px; }
.cookies__desc { font-size: 14px; line-height: 1.45; color: var(--gris); }
.interrupteur { position: relative; flex-shrink: 0; width: 52px; height: 30px; cursor: pointer; }
.interrupteur input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.interrupteur span[aria-hidden] { position: absolute; inset: 0; border-radius: 999px; background: #D8CCD2; transition: background .2s; }
.interrupteur span[aria-hidden]::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--blanc); box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.interrupteur input:checked + span[aria-hidden] { background: var(--vert); }
.interrupteur input:checked + span[aria-hidden]::after { transform: translateX(22px); }
.interrupteur input:disabled + span[aria-hidden] { opacity: .55; }
.interrupteur input:focus-visible + span[aria-hidden] { outline: 3px solid var(--soleil); outline-offset: 2px; }
.lien-bouton { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }
@keyframes cookies-entree { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
