/* ==========================================================================
   DOUBLE LUCK — style.css
   1. Variables (identité commune)   2. Ambiances (theme-*)   3. Base
   4. Composants   5. Gabarits   6. Tablette / ordinateur
   Mobile d'abord : le code de base est celui du téléphone.
   ========================================================================== */

/* 1. VARIABLES COMMUNES ---------------------------------------------------- */
:root {
  /* Typographies */
  --font-title: "Jost", "Century Gothic", "Avenir Next", sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-accent: var(--font-body);

  /* Espacements (échelle) */
  --s-1: .25rem; --s-2: .5rem; --s-3: 1rem; --s-4: 1.5rem;
  --s-5: 2.5rem; --s-6: 4rem;  --s-7: 6rem;
  --gutter: 1.25rem;          /* marge latérale mobile */
  --max: 72rem;               /* largeur max du contenu */
  --measure: 38rem;           /* largeur de lecture confortable */

  /* Couleurs : valeurs par défaut = ambiance neutre (accueil, à propos, contact) */
  --bg: #faf7f2;
  --bg-alt: #f0ebe2;
  --text: #1b1b1b;
  --text-soft: #57534c;
  --line: #ddd5c7;
  --card-bg: #ffffff;
  --accent: #1b1b1b;          /* fond des boutons et surlignages */
  --accent-text: #ffffff;     /* texte posé sur --accent */
  --link: #1b1b1b;
  --focus: #b3261e;

  /* Formes */
  --radius: 4px;
  --radius-btn: 2px;
  --border: 1px solid var(--line);
  --card-tilt: 0deg;
  --btn-shadow: none;

  /* Titres */
  --title-weight: 400;
  --title-transform: none;
  --title-tracking: .01em;
  --logo-filter: none;        /* inversion du logo sur fond sombre */
}

/* 2. AMBIANCES ------------------------------------------------------------
   Une classe sur <body> (ou sur une <section>) : ne change QUE les variables.
   Couleurs tirées des couvertures existantes. */

.theme-enigmes {                      /* sombre, contrasté, enquête */
  --bg: #1a1210; --bg-alt: #241813; --text: #f0e4cf; --text-soft: #d2c4aa;
  --line: #4a3a30; --card-bg: #2b1e18;
  --accent: #e8641b; --accent-text: #1a1210; --link: #ff9a5c; --focus: #ffd27a;
  --font-accent: "Special Elite", "Courier New", monospace;
  --font-title: "Bebas Neue", "Jost", "Arial Narrow", sans-serif;
  --title-weight: 400; --title-transform: uppercase; --title-tracking: .04em;
  --logo-filter: invert(1);
  --radius: 2px;
  --stamp: #ff8a6b;                   /* rouge tampon */
  --hero-bg: linear-gradient(#1a1210, #241813);
}

.theme-coloriage {                    /* coloré mais élégant : fonds doux, accents des couvertures */
  --bg: #faf6ef; --bg-alt: #f1ebe0; --text: #1d2b3a; --text-soft: #4b5a69;
  --line: #e0d7c8; --card-bg: #ffffff;
  --accent: #b3195a; --accent-text: #ffffff; --link: #b3195a; --focus: #1d2b3a;
  --title-weight: 300; --title-tracking: .01em;
  --radius: 4px; --radius-btn: 2px;
  --tint: #f7e6ee;                    /* fond doux derrière les couvertures */
  --portal-bg: #e3efec;
}
/* Deux séries dans la collection coloriage : on ne change que l'accent et la teinte */
.serie-cozy    { --accent: #b3195a; --link: #b3195a; --tint: #f7e6ee; }
.serie-mystere { --accent: #1c6f68; --link: #1c6f68; --tint: #e0efec; --bg-alt: #eef3ef; }

.theme-mots {                         /* sobre, doux, apaisant */
  --bg: #ebe7fa; --bg-alt: #f6f3ff; --text: #2b1d6b; --text-soft: #48397f;
  --line: #d3cbf0; --card-bg: #ffffff;
  --accent: #2b1d6b; --accent-text: #ffffff; --link: #2b1d6b; --focus: #2b1d6b;
  --title-weight: 300; --title-tracking: 0;
  --radius: 2px; --gutter: 1.5rem;
  --kraft: #b98a5a;
}

/* 3. BASE ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 {
  font-family: var(--font-title); font-weight: var(--title-weight);
  text-transform: var(--title-transform); letter-spacing: var(--title-tracking);
  line-height: 1.1; margin: 0 0 var(--s-3);
}
h1 { font-size: clamp(2.4rem, 9vw, 4.75rem); }
h1, h2, h3, .quote, .lead { text-wrap: balance; }   /* pas de mot orphelin en fin de titre */
h2 { font-size: clamp(1.7rem, 5vw, 2.5rem); }
h3 { font-size: 1.4rem; line-height: 1.2; }
p { margin: 0 0 var(--s-3); }
a { color: var(--link); text-underline-offset: .2em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link { position: absolute; left: -999px; top: 0; background: #fff; color: #000; padding: .75rem 1rem; z-index: 99; }
.skip-link:focus { left: 0; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--s-6); }
.section--alt { background: var(--bg-alt); }
.eyebrow {
  font-family: var(--font-accent); font-size: .85rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--text-soft); margin: 0 0 var(--s-3);
}
.lead { font-size: 1.2rem; max-width: var(--measure); }
.placeholder-note { /* repère « contenu provisoire » à supprimer plus tard */
  font-size: .8rem; letter-spacing: .06em; opacity: .75;
}

/* 4. COMPOSANTS ------------------------------------------------------------ */

/* En-tête */
.site-header { border-bottom: var(--border); background: var(--bg); }
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: var(--s-3); padding-block: var(--s-3);
}
.logo { display: block; line-height: 0; }
.logo img { width: 10.5rem; height: auto; filter: var(--logo-filter); }
/* Menu : sur mobile, bouton « burger » (case à cocher + libellé, sans JavaScript) qui déplie une liste */
.site-header .wrap { position: relative; }
.nav-toggle { position: absolute; right: var(--gutter); top: .5rem; width: 3rem; height: 3rem; margin: 0; opacity: 0; cursor: pointer; z-index: 3; }
.nav-burger { display: flex; align-items: center; justify-content: center; width: 3rem; height: 3rem; margin-right: -.6rem; }
.nav-burger span, .nav-burger span::before, .nav-burger span::after { content: ""; display: block; width: 1.6rem; height: 2px; background: var(--text); transition: transform .25s ease, background .25s ease; }
.nav-burger span { position: relative; }
.nav-burger span::before { position: absolute; top: -.5rem; }
.nav-burger span::after { position: absolute; top: .5rem; }
.nav-toggle:focus-visible + .nav-burger { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: var(--radius); }
.nav-toggle:checked + .nav-burger span { background: transparent; }
.nav-toggle:checked + .nav-burger span::before { transform: translateY(.5rem) rotate(45deg); }
.nav-toggle:checked + .nav-burger span::after { transform: translateY(-.5rem) rotate(-45deg); }
.nav { display: none; flex-direction: column; order: 3; width: 100%; margin-top: var(--s-2); border-top: 1px solid var(--line); }
.nav-toggle:checked ~ .nav { display: flex; }
.nav a { color: var(--text); text-decoration: none; font-weight: 600; font-size: 1.15rem; padding: 1rem 0; min-height: 3rem; display: flex; align-items: center; border-bottom: 1px solid var(--line); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--link); }
.nav a[aria-current="page"]::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--accent); margin-right: .75rem; }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: .8rem 1.6rem; font: 600 1rem/1.2 var(--font-body);
  background: var(--accent); color: var(--accent-text); text-decoration: none;
  border: 2px solid var(--accent); border-radius: var(--radius-btn);
  box-shadow: var(--btn-shadow); cursor: pointer;
  transition: transform .15s ease, filter .15s ease;
}
.btn:hover { filter: brightness(1.08); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--text); border-color: currentColor; box-shadow: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-4); }

/* Hero */
.hero { padding-block: var(--s-6); background: var(--hero-bg, var(--bg)); }
.hero .wrap { display: grid; gap: var(--s-5); align-items: center; }
.hero__visual img { margin-inline: auto; max-height: 30rem; width: auto; box-shadow: 0 18px 40px rgba(0,0,0,.25); }

/* Carte livre — LE composant à copier pour ajouter un livre */
.grid-livres { display: grid; gap: var(--s-5) var(--s-4); grid-template-columns: 1fr; list-style: none; margin: 0; padding: 0; }
.card-livre {
  background: var(--card-bg); border: var(--border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; height: 100%;
  transform: rotate(var(--card-tilt));
}
.card-livre:nth-child(even) { transform: rotate(calc(var(--card-tilt) * -1)); }
.card-livre__cover { background: var(--bg-alt); padding: var(--s-4); }
.card-livre__cover img { margin-inline: auto; max-height: 22rem; width: auto; box-shadow: 0 10px 24px rgba(0,0,0,.22); }
.card-livre__body { padding: var(--s-4); display: flex; flex-direction: column; gap: var(--s-2); flex: 1; }
.card-livre__meta { font-family: var(--font-accent); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-soft); margin: 0; }
.card-livre__title { margin: 0; }
.card-livre__title a { color: inherit; text-decoration: none; }
.card-livre__title a:hover { text-decoration: underline; }
.card-livre__text { color: var(--text-soft); margin: 0 0 var(--s-2); }
.card-livre__actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: var(--s-2); }

/* Étapes « Comment jouer » */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-4); }
.steps li { counter-increment: step; display: grid; grid-template-columns: 3rem 1fr; gap: var(--s-3); align-items: start; }
.steps li::before {
  content: counter(step); font: var(--title-weight) 1.4rem/3rem var(--font-title);
  width: 3rem; height: 3rem; text-align: center; border: 2px solid var(--accent);
  border-radius: 50%; color: var(--text);
}

/* Bloc sommaire (renvoi vers les pages d'indices existantes) */
.sommaire {
  border: 2px solid var(--accent); background: var(--card-bg);
  padding: var(--s-4); border-radius: var(--radius); display: grid; gap: var(--s-3);
}
.sommaire h2, .sommaire h3 { margin-bottom: var(--s-1); }

/* BLOC INDICE — <details> natif : fonctionne sans JavaScript */
.indice {
  border: 1px solid var(--accent); border-radius: var(--radius);
  background: var(--card-bg); margin-bottom: var(--s-3);
}
.indice > summary {
  cursor: pointer; padding: var(--s-3) var(--s-4); min-height: 3rem;
  font-family: var(--font-accent); font-size: 1.05rem; letter-spacing: .06em;
  list-style: none; display: flex; justify-content: space-between; gap: var(--s-3);
}
.indice > summary::-webkit-details-marker { display: none; }
.indice > summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--accent); }
.indice[open] > summary::after { content: "–"; }
.indice__content { padding: 0 var(--s-4) var(--s-4); font-family: var(--font-accent); }

/* BLOC SOLUTION — même mécanisme, mais avec un avertissement bien visible */
.solution {
  border: 2px solid var(--stamp, var(--accent)); border-radius: var(--radius);
  background: var(--card-bg); margin-top: var(--s-5);
}
.solution > summary { cursor: pointer; padding: var(--s-4); list-style: none; min-height: 3rem; }
.solution > summary::-webkit-details-marker { display: none; }
.solution__tag {
  display: inline-block; border: 3px solid var(--stamp, var(--accent)); color: var(--stamp, var(--text));
  font-family: var(--font-accent); letter-spacing: .2em; padding: .15rem .7rem;
  transform: rotate(-2deg); margin-bottom: var(--s-2); font-size: .95rem;
}
.solution__content { padding: 0 var(--s-4) var(--s-4); }

/* Séparateurs du thème enquêtes, repris des visuels A+ */
.tape {                               /* ruban de scène de crime */
  background: #f2c400; color: #111; overflow: hidden; white-space: nowrap;
  font: 600 .95rem/2.2rem var(--font-body); letter-spacing: .04em; text-transform: uppercase;
  border-block: 2px solid #111; transform: rotate(-.8deg); margin-block: -.4rem;
}
.rails {                              /* voie ferrée */
  height: 1.4rem;
  background:
    linear-gradient(#0000 0 22%, #d9bd94 22% 34%, #0000 34% 66%, #d9bd94 66% 78%, #0000 78%),
    repeating-linear-gradient(90deg, #6d4f33 0 .5rem, #0000 .5rem 1.4rem);
}
/* Bloc « papier kraft » : mêmes variables, fond des visuels A+ */
.kraft {
  --bg: #d9bd94; --text: #2a1a10; --text-soft: #4a3322; --line: #a58660;
  --accent: #8b1a24; --accent-text: #ffffff; --link: #8b1a24; --card-bg: #f3e6cf;
  background: radial-gradient(circle at 20% 10%, #e3c9a2, #d9bd94 60%, #cfae80); color: var(--text);
}
.kraft h2 { color: var(--accent); }
.aplus { margin: var(--s-5) 0 0; }
.aplus img { width: 100%; max-width: 62rem; margin-inline: auto; border-radius: var(--radius); box-shadow: 0 14px 34px rgba(0,0,0,.35); }

/* Fil d'Ariane */
.breadcrumb { font-size: .9rem; color: var(--text-soft); padding-block: var(--s-3); }
.breadcrumb a { color: inherit; }

/* Formulaire de contact */
.form { display: grid; gap: var(--s-3); max-width: var(--measure); }
.form label { font-weight: 600; display: grid; gap: var(--s-1); }
.form input, .form textarea {
  font: inherit; color: var(--text); background: #fff; border: 2px solid var(--line);
  border-radius: var(--radius); padding: .75rem 1rem; min-height: 3rem; width: 100%;
}
.theme-enigmes .form input, .theme-enigmes .form textarea { background: var(--card-bg); }

/* Pied de page */
.site-footer { border-top: var(--border); padding-block: var(--s-5); font-size: .95rem; background: var(--bg); }
.site-footer .wrap { display: grid; gap: var(--s-4); }
.site-footer .logo img { width: 8.5rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); }
.site-footer a { color: var(--text); }

/* 5. GABARITS --------------------------------------------------------------- */
.book { display: grid; gap: var(--s-5); align-items: start; }
.book__cover img { max-width: 20rem; width: 100%; margin-inline: auto; box-shadow: 0 18px 40px rgba(0,0,0,.28); }
.facts { list-style: none; padding: 0; margin: var(--s-4) 0 0; display: grid; gap: var(--s-2); }
.facts li { border-top: 1px solid var(--line); padding-top: var(--s-2); }
.prose { max-width: var(--measure); }
.wrap.prose { max-width: var(--max); }            /* le conteneur reste aligné à gauche… */
.wrap.prose > * { max-width: var(--measure); }    /* …seul le texte est étroit */
.two-col { display: grid; gap: var(--s-5); }

/* Ambiance « mots » : plus d'air partout */
.theme-mots .section { padding-block: var(--s-7); }
.theme-mots .hero { padding-block: var(--s-7); }
.theme-mots p { line-height: 1.8; }
.theme-mots .btn { box-shadow: none; }
.quote { font: 300 clamp(1.6rem, 4.5vw, 2.5rem)/1.35 var(--font-title); max-width: 46rem; margin: 0; }
.quote::before { content: ""; display: block; width: 4rem; height: 2px; background: var(--kraft, var(--accent)); margin-bottom: var(--s-4); }

/* Coloriage : filet de couleur, couvertures sur fond teinté, aucune décoration lourde */
.theme-coloriage .eyebrow { color: var(--accent); font-weight: 600; }
.theme-coloriage .eyebrow::before { content: ""; display: inline-block; width: 2rem; height: 2px; background: var(--accent); vertical-align: middle; margin-right: .75rem; }
.theme-coloriage h1, .theme-coloriage h2 { font-weight: 300; }
.serie { padding-block: var(--s-6); background: var(--bg); }
.serie:nth-of-type(even) { background: var(--bg-alt); }
.serie__head { margin-bottom: var(--s-5); max-width: var(--measure); }
.serie .card-livre { border: 0; background: transparent; }
.serie .card-livre__cover { background: var(--tint); padding: var(--s-5) var(--s-4); }
.serie .card-livre__body { padding-inline: 0; }
.serie .card-livre__title { font-weight: 400; }

/* EXTRAITS : bande de pages à faire défiler + agrandissement au clic (sans JavaScript, via :target) */
.extrait { margin-bottom: var(--s-6); scroll-margin-top: 1rem; }
.extrait:last-child { margin-bottom: 0; }
.extrait__hint { color: var(--text-soft); margin-bottom: var(--s-3); }
.extrait__strip {
  display: flex; gap: var(--s-3); list-style: none; margin: 0; padding: 0 0 var(--s-3);
  overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.extrait__strip li { flex: 0 0 auto; scroll-snap-align: start; }
.extrait__strip a { display: block; line-height: 0; border-radius: var(--radius); }
.extrait__strip img {
  height: 20rem; width: auto; max-width: none; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 20px rgba(0,0,0,.18);
  transition: transform .2s ease;
}
.extrait__strip a:hover img { transform: translateY(-4px); }
.extraits { margin-top: var(--s-6); display: grid; gap: var(--s-5); }
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 100; background: rgba(10,8,8,.92);
  align-items: center; justify-content: center; padding: 3.5rem 1rem;
}
.lightbox:target { display: flex; }
.lightbox img { max-height: 100%; max-width: 100%; width: auto; height: auto; background: #fff; box-shadow: 0 10px 50px rgba(0,0,0,.6); }
.lightbox a { color: #fff; text-decoration: none; }
.lightbox__close, .lightbox__nav {
  position: absolute; display: flex; align-items: center; justify-content: center;
  min-width: 3rem; min-height: 3rem; font-size: 2.2rem; line-height: 1; background: rgba(0,0,0,.55); border-radius: 50%;
}
.lightbox__close { top: .75rem; right: .75rem; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__prev { left: .5rem; }
.lightbox__next { right: .5rem; }
@media (min-width: 48em) { .extrait__strip img { height: 26rem; } }

/* PHOTOS RÉSEAUX SOCIAUX : mosaïque « Sous le parasol » */
/* Hero « photo plein cadre » : l'image couvre toute la section, voile sombre à gauche pour la lisibilité du texte */
.hero--photo { position: relative; isolation: isolate; min-height: 26rem; display: flex; align-items: center; color: #fff; padding-block: var(--s-7); }
.hero--photo .hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 82%; z-index: -2; }
.hero--photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(14,26,40,.86) 0%, rgba(14,26,40,.62) 50%, rgba(14,26,40,.12) 100%); }
.hero--photo .wrap { position: relative; }
.hero--photo h1, .hero--photo .lead, .hero--photo p { color: #fff; }
.theme-coloriage .hero--photo .eyebrow { color: #fff; }
.theme-coloriage .hero--photo .eyebrow::before { background: #fff; }
.hero--photo .btn--ghost { color: #fff; border-color: #fff; }
@media (max-width: 47.99em) { .hero--photo::after { background: rgba(14,26,40,.68); } }
.social {                              /* dernière section : fond fuchsia foncé, texte clair */
  padding-block: var(--s-6); background: #8f1454; color: #fff;
  --text: #fff; --text-soft: #fbdcea; --accent: #ffc2de;
}
.theme-coloriage .social .eyebrow { color: #ffc2de; }
.social h2 { color: #fff; }
.social__grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); grid-template-columns: repeat(2, 1fr); }
.social__grid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.social__grid--fiche { grid-template-columns: repeat(auto-fit, minmax(10rem, 16rem)); }
@media (min-width: 48em) {
  .social__grid { grid-template-columns: repeat(3, 1fr); gap: var(--s-3); }
  .social__grid:not(.social__grid--fiche) li:nth-child(3n+2) { transform: translateY(2rem); }
  .social:has(.social__grid:not(.social__grid--fiche)) { padding-bottom: calc(var(--s-6) + 2rem); }
}

/* Mouvement réduit */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card-livre { transition: none; transform: none; }
}

/* 6. TABLETTE (≥ 48em) ET ORDINATEUR (≥ 64em) -------------------------------- */
@media (min-width: 48em) {
  :root { --gutter: 2.5rem; }
  body { font-size: 1.125rem; }
  .logo img { width: 13rem; }
  .nav-toggle, .nav-burger { display: none; }
  .nav { display: flex; flex-direction: row; order: 0; width: auto; margin: 0; border: 0; gap: var(--s-2) var(--s-5); }
  .nav a { font-size: .95rem; padding: .6rem 0; min-height: 0; border-bottom: 2px solid transparent; }
  .nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--accent); color: var(--text); }
  .nav a[aria-current="page"]::before { display: none; }
  .site-header .wrap { flex-wrap: nowrap; }
  .grid-livres { grid-template-columns: repeat(2, 1fr); }
  .grid-livres--3 { grid-template-columns: repeat(2, 1fr); }
  .hero .wrap, .book, .two-col { grid-template-columns: 1.1fr .9fr; gap: var(--s-6); }
  .site-footer .wrap { grid-template-columns: auto 1fr; align-items: center; }
  .site-footer ul { justify-content: flex-end; }
}
@media (min-width: 64em) {
  :root { --gutter: 3rem; }
  .grid-livres--3 { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }   /* 3 ou 4 étapes */
  .book { grid-template-columns: 22rem 1fr; }
}

/* Visuels A+ dans l'ambiance « mots » : sans ombre, tout en douceur */
.theme-mots .aplus img { box-shadow: none; border-radius: var(--radius); }

/* Ambiance « mots » : titres plus posés, colonnes plus larges pour éviter les retours à la ligne trop tôt */
.theme-mots h1 { font-size: clamp(2.1rem, 6.4vw, 4.25rem); }
.theme-mots h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
.theme-mots .quote { max-width: 60rem; }
@media (min-width: 48em) {
  .theme-mots .hero .wrap { grid-template-columns: 1.5fr .7fr; }
  .theme-mots .two-col { grid-template-columns: 1.1fr .9fr; }
}

/* ACCUEIL : trois bandes géantes (Enquêter / Colorier / Respirer), grandes couvertures qui dépassent en bas */
.bands { display: block; }
.band { display: block; position: relative; overflow: hidden; text-decoration: none; }
.band--enigmes   { background: #1a1210; color: #f0e4cf; --band-accent: #ff9a5c; }
.band--coloriage { background: #ffb3d4; color: #16324f; --band-accent: #16324f; }
.band--mots      { background: #ebe7fa; color: #2b1d6b; --band-accent: #2b1d6b; }
.band__inner { position: relative; min-height: 25rem; padding-block: var(--s-4) 0; display: flex; flex-direction: column; justify-content: flex-start; }
.band__text { position: relative; z-index: 2; display: flex; flex-direction: column; gap: var(--s-2); max-width: 62%; }
.band__word { font-size: clamp(4.6rem, 22vw, 7.5rem); line-height: .9; }
.band--enigmes .band__word { font-family: "Bebas Neue", var(--font-title); letter-spacing: .02em; font-size: clamp(5.4rem, 25vw, 8.5rem); }
.band--coloriage .band__word { font-family: var(--font-title); font-weight: 600; }
.band--mots .band__word { font-family: var(--font-title); font-weight: 300; }
.band__sub { font-weight: 600; font-size: .95rem; line-height: 1.4; color: var(--band-accent); }
.band__covers { position: absolute; right: var(--gutter); bottom: -3.5rem; z-index: 1; display: flex; align-items: flex-end; }
.band__covers img { height: calc(var(--h, 25rem) * .68); width: auto; max-width: none; transform: rotate(var(--r, 0deg)); box-shadow: 0 18px 34px rgba(0,0,0,.4); transition: transform .35s ease; animation: band-rise .8s cubic-bezier(.2,.8,.2,1) both; }
.band__covers img + img { margin-left: -3.4rem; animation-delay: .12s; }
.band:hover .band__covers img, .band:focus-visible .band__covers img { transform: rotate(calc(var(--r, 0deg) * .3)) translateY(-.9rem) scale(1.04); }
.band:hover .band__sub, .band:focus-visible .band__sub { text-decoration: underline; text-underline-offset: .25em; }
@keyframes band-rise { from { opacity: 0; translate: 0 3rem; } to { opacity: 1; translate: 0 0; } }
@media (min-width: 48em) {
  .band__inner { min-height: 27rem; justify-content: center; padding-block: 0; }
  .band__text { max-width: 48%; gap: var(--s-3); }
  .band__word { font-size: clamp(5rem, 8.5vw, 7rem); }
  .band--enigmes .band__word { font-size: clamp(6rem, 10vw, 9rem); }
  .band__sub { font-size: 1.15rem; }
  .band__covers { bottom: -4rem; }
  .band__covers img { height: var(--h, 25rem); }
  .band__covers img + img { margin-left: -5rem; }
  .band--reverse .band__inner { align-items: flex-end; }
  .band--reverse .band__text { align-items: flex-end; text-align: right; }
  .band__covers { right: 1rem; }
  .band--reverse .band__covers { right: auto; left: 1rem; }
}
@media (prefers-reduced-motion: reduce) { .band__covers img { animation: none; transition: none; } .band:hover .band__covers img { transform: rotate(var(--r, 0deg)); } }

/* Accueil sur tablette (768–1023 px) : mots et couvertures réduits pour ne jamais se toucher */
@media (min-width: 48em) and (max-width: 63.99em) {
  .band__word { font-size: 4.6rem; }
  .band--enigmes .band__word { font-size: 5.8rem; }
  .band__text { max-width: 44%; }
  .band__sub { font-size: 1rem; }
  .band__covers img { height: calc(var(--h, 25rem) * .72); }
  .band__covers img + img { margin-left: -3.6rem; }
}

/* Pages légales / à propos */
.legal h2 { font-size: 1.4rem; margin-top: var(--s-5); }
.legal p { margin-bottom: var(--s-3); }
.about-cards .card-livre { transform: none; }
.about-cards .card-livre__body { padding: var(--s-4); }

/* Enquêtes : cartes sans cadre, couvertures plus grandes */
.theme-enigmes .grid-livres .card-livre { border: 0; background: transparent; overflow: visible; }
.theme-enigmes .grid-livres .card-livre__cover { background: transparent; padding: 0 0 var(--s-4); }
.theme-enigmes .grid-livres .card-livre__cover img { max-height: 36rem; box-shadow: 0 22px 44px rgba(0,0,0,.55); }
.theme-enigmes .grid-livres .card-livre__body { padding: 0; }
@media (min-width: 48em) { .theme-enigmes .grid-livres { gap: var(--s-6); } .theme-enigmes .grid-livres .card-livre__cover img { max-height: 44rem; } }
@media (min-width: 48em) {
  .theme-enigmes .grid-livres { gap: 8rem; }   /* plus d'air entre les deux livres */
  .theme-enigmes .grid-livres .card-livre { padding-inline: var(--s-4); }
}
@media (max-width: 47.99em) { .theme-enigmes .grid-livres { gap: 5rem; } }

/* Enquêtes : léger cadre autour de chaque livre */
.theme-enigmes .grid-livres .card-livre { border: 1px solid var(--line); background: rgba(255,255,255,.03); padding: var(--s-4); border-radius: var(--radius); }
@media (min-width: 48em) { .theme-enigmes .grid-livres .card-livre { padding: var(--s-5); } }
