/* =========================================================================
   Les aventures de Caroline, d'Anna et de Gaspard
   Feuille de style unique du site.

   Organisation du fichier :
     1.  Polices
     2.  Couleurs et reglages generaux
     3.  Textes
     4.  En-tete et menu
     5.  Ouverture de page (illustration + titre)
     6.  Encart de livre
     7.  Boutons et pastilles
     8.  Bloc ressources
     9.  Page d'accueil
     10. Page "Trouver le bon livre"
     11. Marque-pages et goodies
     12. Pied de page
     13. Affichage sur telephone
   ========================================================================= */


/* ============================== 1. POLICES ============================== */
/* Les polices sont hebergees avec le site : aucun appel a un service exterieur,
   donc rien a declarer cote donnees personnelles. */

@font-face {
  font-family: 'Lora';
  src: url('assets/fonts/lora-latin-400-normal.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Lora';
  src: url('assets/fonts/lora-latin-500-normal.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Lora';
  src: url('assets/fonts/lora-latin-600-normal.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Lora';
  src: url('assets/fonts/lora-latin-700-normal.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Source Serif';
  src: url('assets/fonts/source-serif-4-latin-400-normal.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Source Serif';
  src: url('assets/fonts/source-serif-4-latin-600-normal.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}


/* ==================== 2. COULEURS ET REGLAGES GENERAUX ==================== */

:root {
  /* Fonds */
  --parchemin:        #F2E7D3;
  --parchemin-clair:  #F9F2E4;
  --page:             #FEFAF2;

  /* Textes */
  --encre:            #3E2E1E;
  --encre-douce:      #6A5340;
  --encre-legere:     #8B735A;

  /* Or : la couleur de base du site */
  --or:               #AD7F42;
  --or-clair:         #D8C49C;
  --trait:            rgba(173, 127, 66, .26);
  --trait-fort:       rgba(173, 127, 66, .45);

  /* Couleur d'accent : changee page par page via l'attribut data-univers */
  --accent:           #AD7F42;
  --accent-pale:      rgba(173, 127, 66, .10);

  /* Rythme */
  --largeur:          1180px;
  --largeur-texte:    68ch;
  --rayon:            26px;
  --ombre:            0 14px 40px rgba(62, 46, 30, .08);
  --ombre-forte:      0 22px 55px rgba(62, 46, 30, .16);
}

/* Une couleur par univers, reprise des illustrations */
body[data-univers="caroline"] { --accent:#C08B3E; --accent-pale:rgba(192,139,62,.12); }
body[data-univers="anna"]     { --accent:#5F7FA6; --accent-pale:rgba(95,127,166,.12); }
body[data-univers="gaspard"]  { --accent:#7C8B45; --accent-pale:rgba(124,139,69,.12); }

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--parchemin);
  color: var(--encre);
  font-family: 'Source Serif', Georgia, 'Times New Roman', serif;
  font-size: 18px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  /* Ligatures desactivees : par defaut, les suites « fi », « ff » et « ffi »
     fusionnent en un seul dessin et le point du « i » disparait, ce qui rend
     des mots comme « confiance », « difficile » ou « offrir » difficiles a lire.
     Chaque lettre garde ici sa forme normale. */
  font-variant-ligatures: none;
  -webkit-font-feature-settings: "liga" 0, "clig" 0, "dlig" 0;
  font-feature-settings: "liga" 0, "clig" 0, "dlig" 0;
  /* Legere lumiere au centre de la page, comme un feuillet sous une lampe */
  background-image:
    radial-gradient(1200px 700px at 50% -5%, rgba(255,251,243,.92), transparent 60%),
    radial-gradient(900px 600px at 100% 100%, rgba(216,196,156,.30), transparent 60%);
}

img { max-width: 100%; height: auto; }

.contenu { width: min(100% - 48px, var(--largeur)); margin-inline: auto; }
.contenu--etroit { width: min(100% - 48px, 860px); margin-inline: auto; }

/* Lien d'evitement pour la navigation au clavier */
.saut-contenu {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--encre); color: #fff; padding: 12px 20px; border-radius: 0 0 12px 0;
}
.saut-contenu:focus { left: 0; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }


/* ============================== 3. TEXTES ============================== */

h1, h2, h3, .titre {
  font-family: 'Lora', Georgia, serif;
  font-weight: 600;
  color: var(--encre);
  line-height: 1.12;
  margin: 0 0 .5em;
  letter-spacing: -.01em;
  /* Repartit les mots sur les lignes au lieu de laisser un mot seul en bas */
  text-wrap: balance;
}

h1 { font-size: clamp(38px, 5.6vw, 64px); font-weight: 600; }
h2 { font-size: clamp(27px, 3.2vw, 38px); }
h3 { font-size: clamp(20px, 2vw, 24px); }

p { margin: 0 0 1.1em; color: var(--encre-douce); }
p:last-child { margin-bottom: 0; }

em { font-style: italic; }
a { color: var(--encre); }

.surtitre {
  font-family: 'Lora', Georgia, serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}

.chapo {
  font-size: clamp(20px, 2.1vw, 23px);
  line-height: 1.6;
  color: var(--encre-douce);
  max-width: 62ch;
}

/* Le texte courant n'est jamais justifie : sur ecran, le drapeau est plus lisible,
   en particulier pour les lecteurs dyslexiques. */
.prose { max-width: var(--largeur-texte); }
.prose p { margin-bottom: 1.15em; }

.filet {
  width: 84px; height: 2px; border: 0;
  background: linear-gradient(90deg, var(--accent), transparent);
  margin: 26px 0;
}
.filet--centre { margin-inline: auto; background: linear-gradient(90deg, transparent, var(--accent), transparent); }

.citation {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.38;
  color: var(--encre);
  border-left: 3px solid var(--accent);
  padding-left: 26px;
  margin: 8px 0;
}


/* ========================= 4. EN-TETE ET MENU ========================= */

.bandeau-site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 243, 230, .93);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--trait);
}

.bandeau-site__interieur {
  width: min(100% - 40px, var(--largeur));
  margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 76px;
}

.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo img { width: clamp(170px, 20vw, 240px); display: block; }

.menu { display: flex; align-items: center; gap: 4px; }

.menu a,
.menu__bouton {
  font-family: 'Lora', Georgia, serif;
  font-size: 14px;
  letter-spacing: .07em;
  color: var(--encre-douce);
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 999px;
  background: none; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: 7px;
  transition: color .25s ease, background .25s ease;
  white-space: nowrap;
}
.menu a:hover, .menu__bouton:hover { color: var(--encre); background: var(--accent-pale); }
.menu a[aria-current="page"] { color: var(--accent); }

.menu__bouton::after {
  content: ''; width: 6px; height: 6px; margin-top: -3px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); transition: transform .25s ease;
}
.menu__bouton[aria-expanded="true"]::after { transform: rotate(-135deg); margin-top: 2px; }

.menu__groupe { position: relative; }

.menu__liste {
  position: absolute; top: calc(100% + 8px); left: 0;
  min-width: 250px; padding: 10px;
  background: var(--page);
  border: 1px solid var(--trait);
  border-radius: 18px;
  box-shadow: var(--ombre-forte);
  display: none; flex-direction: column; gap: 2px;
  list-style: none; margin: 0;
}
/* Passerelle invisible entre l'intitulé et le sous-menu : sans elle, la souris
   quitte le menu en traversant l'espace vide et le sous-menu se referme. */
.menu__liste::before {
  content: '';
  position: absolute;
  top: -12px; left: 0; right: 0; height: 12px;
}
.menu__groupe[data-ouvert="true"] .menu__liste { display: flex; }
.menu__liste a { display: block; padding: 9px 14px; border-radius: 12px; font-size: 15px; letter-spacing: 0; }

.burger {
  display: none;
  background: none; border: 1px solid var(--trait); border-radius: 12px;
  width: 46px; height: 46px; cursor: pointer; padding: 0;
  align-items: center; justify-content: center;
}
.burger span { display: block; width: 20px; height: 1.5px; background: var(--encre); position: relative; }
.burger span::before, .burger span::after {
  content: ''; position: absolute; left: 0; width: 20px; height: 1.5px; background: var(--encre);
}
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }


/* ========== 5. OUVERTURE DE PAGE (illustration + titre) ========== */

.ouverture {
  text-align: center;
  padding: clamp(38px, 6vw, 72px) 0 clamp(30px, 4vw, 48px);
}
.ouverture__illustration {
  display: block;
  width: min(100%, 420px);
  margin: 0 auto clamp(6px, 2vw, 18px);
  /* L'illustration est detouree : une ombre portee douce la pose sur le parchemin */
  filter: drop-shadow(0 18px 26px rgba(62, 46, 30, .16));
}
.ouverture__illustration--large { width: min(100%, 640px); }
.ouverture h1 { margin-bottom: .35em; }
.ouverture .chapo { margin-inline: auto; }

/* Bandeau illustre de la page d'accueil */
.hero { position: relative; overflow: hidden; background: var(--parchemin-clair); }
.hero img { display: block; width: 100%; }


/* ========================= 6. ENCART DE LIVRE ========================= */

.livres { display: flex; flex-direction: column; gap: clamp(36px, 6vw, 86px); padding-bottom: 40px; }

.livre {
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 70px);
  align-items: start;
  position: relative;
}

/* Direction editoriale : la couverture passe a droite une fois sur deux */
.livre:nth-child(even) .livre__couverture { order: 2; }
.livre:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 340px); }

.livre__couverture { position: sticky; top: 108px; }
.livre__couverture img {
  display: block; width: 100%;
  border-radius: 4px 12px 12px 4px;
  box-shadow: -4px 0 0 rgba(62,46,30,.07), var(--ombre-forte);
  transform: rotate(-.6deg);
  transition: transform .45s ease;
}
.livre:nth-child(even) .livre__couverture img { transform: rotate(.6deg); }
.livre__couverture img:hover { transform: rotate(0) translateY(-5px); }

.livre__titre { margin-bottom: .45em; }

.livre__texte > .prose { margin-top: 20px; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; align-items: center; }


/* ====================== 7. BOUTONS ET PASTILLES ====================== */

.bouton {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 999px;
  background: var(--accent);
  color: #FFFBF3;
  text-decoration: none;
  font-family: 'Lora', Georgia, serif;
  font-size: 15.5px;
  border: 1px solid transparent;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.bouton:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(62,46,30,.18); }

.bouton--fin {
  background: transparent;
  color: var(--encre);
  border-color: var(--trait-fort);
}
.bouton--fin:hover { background: var(--accent-pale); }

.bouton--inactif {
  background: transparent;
  color: var(--encre-legere);
  border: 1px dashed var(--trait-fort);
  cursor: default;
  font-style: italic;
}
.bouton--inactif:hover { transform: none; box-shadow: none; }

.pastilles { list-style: none; padding: 0; margin: 0 0 4px; display: flex; flex-wrap: wrap; gap: 8px; }
.pastilles li {
  font-family: 'Lora', Georgia, serif;
  font-size: 13px;
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid var(--trait-fort);
  background: rgba(255, 252, 245, .7);
  color: var(--encre-douce);
}
.pastilles li.pastille--age { background: var(--accent); color: #FFFBF3; border-color: transparent; }


/* ========================= 8. BLOC RESSOURCES ========================= */

.ressources {
  margin-top: 30px;
  padding: 24px 26px;
  border: 1px solid var(--trait);
  border-left: 3px solid var(--accent);
  border-radius: 6px 18px 18px 6px;
  background: rgba(255, 252, 245, .72);
}
.ressources h3 { font-size: 18px; margin-bottom: .5em; }
.ressources p { font-size: 16px; }
.ressources ul { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 12px; }
.ressources li { font-size: 16px; color: var(--encre-douce); line-height: 1.5; }
.ressources .numero {
  font-family: 'Lora', Georgia, serif;
  font-size: 19px; font-weight: 700; color: var(--encre);
  display: inline-block; margin-right: 8px;
}
.ressources a { color: var(--accent); }


/* ========================= 9. PAGE D'ACCUEIL ========================= */

.section { padding: clamp(54px, 8vw, 104px) 0; }
.section--claire { background: rgba(254, 250, 242, .62); border-block: 1px solid var(--trait); }

.section__entete { max-width: 60ch; margin-bottom: clamp(30px, 4vw, 52px); }
.section__entete--centre { max-width: 740px; margin-inline: auto; text-align: center; }
.section__entete--centre .chapo { margin-inline: auto; }

/* Les trois portes : Caroline, Anna, Gaspard */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

.porte {
  display: flex; flex-direction: column;
  text-decoration: none;
  padding: 30px 28px 32px;
  border: 1px solid var(--trait);
  border-radius: var(--rayon);
  background: rgba(255, 252, 245, .74);
  box-shadow: var(--ombre);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.porte:hover { transform: translateY(-6px); box-shadow: var(--ombre-forte); border-color: var(--couleur); }
.porte__illustration {
  height: 190px; display: flex; align-items: flex-end; justify-content: center; margin-bottom: 18px;
}
.porte__illustration img { max-height: 190px; width: auto; filter: drop-shadow(0 12px 18px rgba(62,46,30,.16)); }
/* Les trois illustrations n'ont pas le meme format : on egalise leur presence visuelle. */
.porte[data-univers="anna"] .porte__illustration img { max-height: 210px; margin-bottom: -10px; }
.porte[data-univers="gaspard"] .porte__illustration img { max-height: none; width: 94%; margin-bottom: 28px; }
.porte h3 { margin-bottom: .3em; }
.porte .surtitre { color: var(--couleur); }
.porte p { font-size: 16.5px; }
.porte__fleche {
  margin-top: auto; padding-top: 18px;
  font-family: 'Lora', Georgia, serif; font-size: 15px; color: var(--couleur);
}
.porte[data-univers="caroline"] { --couleur:#C08B3E; }
.porte[data-univers="anna"]     { --couleur:#5F7FA6; }
.porte[data-univers="gaspard"]  { --couleur:#7C8B45; }

/* Appel à l'action large, sous les trois portes */
.appel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(22px, 3vw, 44px);
  align-items: center;
  margin-top: 28px;
  padding: clamp(26px, 3vw, 36px) clamp(26px, 3.4vw, 42px);
  text-decoration: none;
  border: 1px solid var(--trait-fort);
  border-radius: var(--rayon);
  background: linear-gradient(100deg, rgba(216, 196, 156, .28), rgba(255, 252, 245, .8) 55%);
  box-shadow: var(--ombre);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.appel:hover { transform: translateY(-4px); box-shadow: var(--ombre-forte); border-color: var(--or); }
.appel h2 { font-size: clamp(24px, 2.6vw, 32px); margin-bottom: .35em; }
.appel p { font-size: 16.5px; max-width: 64ch; margin: 0; }
.appel__action {
  font-family: 'Lora', Georgia, serif;
  font-size: 15.5px;
  color: #FFFBF3;
  background: var(--or);
  padding: 13px 26px;
  border-radius: 999px;
  white-space: nowrap;
}

/* Le manifeste, en deux colonnes */
.manifeste { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.manifeste__colonne { position: sticky; top: 108px; }
.manifeste .prose { column-count: 1; }

/* Mise en avant d'un ouvrage */
.mise-en-avant {
  display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: clamp(30px, 5vw, 60px); align-items: center;
  padding: clamp(30px, 4vw, 52px);
  border: 1px solid var(--trait);
  border-radius: var(--rayon);
  background: rgba(255, 252, 245, .74);
  box-shadow: var(--ombre);
}
.mise-en-avant img { border-radius: 4px 12px 12px 4px; box-shadow: var(--ombre-forte); }

/* Bande illustree pleine largeur */
.bande {
  position: relative;
  padding: clamp(40px, 6vw, 70px) 0;
  background: rgba(249, 242, 228, .8);
  border-block: 1px solid var(--trait);
  overflow: hidden;
}
.bande__interieur { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: clamp(30px, 5vw, 60px); align-items: center; }
.bande img { filter: drop-shadow(0 16px 24px rgba(62,46,30,.14)); }

/* Gaspard qui traverse la page */
.gaspard-passe { overflow: hidden; line-height: 0; padding: 10px 0 0; }
.gaspard-passe img {
  width: min(86%, 760px);
  margin-left: auto; display: block;
  opacity: .9;
  filter: drop-shadow(0 14px 20px rgba(62,46,30,.12));
}


/* ================= 10. PAGE "TROUVER LE BON LIVRE" ================= */

.filtres {
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--trait);
  border-radius: var(--rayon);
  background: rgba(255, 252, 245, .78);
  box-shadow: var(--ombre);
  margin-bottom: 44px;
}
.filtres__groupe + .filtres__groupe { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--trait); }
.filtres__titre {
  font-family: 'Lora', Georgia, serif; font-size: 13px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--encre-legere); margin: 0 0 14px;
}
.choix { display: flex; flex-wrap: wrap; gap: 10px; }

.choix label {
  display: inline-block; cursor: pointer;
  font-family: 'Lora', Georgia, serif; font-size: 14.5px;
  padding: 9px 18px; border-radius: 999px;
  border: 1px solid var(--trait-fort); background: rgba(255,255,255,.6);
  color: var(--encre-douce);
  transition: background .2s ease, color .2s ease, border-color .2s ease;
  user-select: none;
}
.choix input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choix input:checked + label { background: var(--or); color: #FFFBF3; border-color: transparent; }
.choix input:focus-visible + label { outline: 3px solid var(--or); outline-offset: 3px; }
.choix label:hover { border-color: var(--or); }

.filtres__pied { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; justify-content: space-between; }
.compteur { font-family: 'Lora', Georgia, serif; color: var(--encre-douce); font-size: 16px; }
.raz { background: none; border: 0; cursor: pointer; color: var(--encre-legere); font-family: inherit; font-size: 15px; text-decoration: underline; }
.raz:hover { color: var(--encre); }

.resultats { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 30px; }

.fiche {
  display: flex; flex-direction: column;
  border: 1px solid var(--trait); border-radius: var(--rayon);
  background: rgba(255, 252, 245, .74);
  padding: 22px 22px 26px;
  box-shadow: var(--ombre);
  transition: transform .3s ease, box-shadow .3s ease;
}
.fiche:hover { transform: translateY(-5px); box-shadow: var(--ombre-forte); }
.fiche[hidden] { display: none; }
.fiche img { display: block; width: 100%; max-width: 190px; margin: 0 auto 20px; border-radius: 3px 10px 10px 3px; box-shadow: var(--ombre-forte); }
.fiche h3 { font-size: 20px; margin-bottom: .35em; }
.fiche .surtitre { font-size: 11.5px; margin-bottom: 10px; }
.fiche p { font-size: 15.5px; }
.fiche .pastilles { margin-top: 14px; }
.fiche .pastilles li { font-size: 12px; padding: 4px 11px; }
.fiche__lien { margin-top: auto; padding-top: 18px; font-family: 'Lora', Georgia, serif; font-size: 15px; color: var(--or); text-decoration: none; }
.fiche__lien:hover { text-decoration: underline; }

.aucun-resultat {
  grid-column: 1 / -1; text-align: center; padding: 50px 20px;
  border: 1px dashed var(--trait-fort); border-radius: var(--rayon);
  color: var(--encre-legere); font-style: italic;
}


/* ================== 11. MARQUE-PAGES ET GOODIES ================== */

.planches { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 32px; }

.planche {
  border: 1px solid var(--trait); border-radius: var(--rayon);
  background: rgba(255, 252, 245, .74);
  padding: 20px; box-shadow: var(--ombre);
  display: flex; flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease;
}
.planche:hover { transform: translateY(-5px); box-shadow: var(--ombre-forte); }
.planche img {
  display: block; width: 100%; border-radius: 14px;
  background: #fff; border: 1px solid var(--trait);
}
.planche h3 { font-size: 19px; margin: 18px 0 .3em; }
.planche__serie { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--encre-legere); font-family: 'Lora', Georgia, serif; }
.planche .bouton { margin-top: 18px; align-self: flex-start; font-size: 14.5px; padding: 10px 22px; }

.goodie {
  display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: clamp(30px, 5vw, 60px); align-items: center;
}
.goodie:nth-of-type(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 320px); }
.goodie:nth-of-type(even) .goodie__couverture { order: 2; }
.goodie__couverture img {
  display: block; width: 100%;
  border-radius: 4px 12px 12px 4px;
  box-shadow: -4px 0 0 rgba(62,46,30,.07), var(--ombre-forte);
}

.apercus { margin-top: 44px; }
.apercus__titre {
  display: flex; align-items: center; gap: 18px;
  font-family: 'Lora', Georgia, serif; font-size: 12.5px; letter-spacing: .24em;
  text-transform: uppercase; color: var(--encre-legere); margin: 0 0 20px;
}
.apercus__titre::before, .apercus__titre::after { content: ''; flex: 1; height: 1px; background: var(--trait); }
.apercus__liste { display: flex; flex-wrap: wrap; gap: 24px; justify-content: center; }
.apercus__liste a {
  display: block; width: 230px; padding: 10px; background: #fff;
  border: 1px solid var(--trait); border-radius: 10px; box-shadow: var(--ombre);
  transition: transform .3s ease, box-shadow .3s ease;
}
.apercus__liste a:hover { transform: translateY(-4px); box-shadow: var(--ombre-forte); }
.apercus__liste img { display: block; width: 100%; }


/* ========================= 12. PIED DE PAGE ========================= */

.pied {
  margin-top: clamp(50px, 7vw, 90px);
  border-top: 1px solid var(--trait);
  background: rgba(249, 242, 228, .72);
  padding: clamp(40px, 5vw, 60px) 0 30px;
}
.pied__colonnes { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.pied h4 {
  font-family: 'Lora', Georgia, serif; font-size: 13px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--encre-legere); margin: 0 0 16px; font-weight: 600;
}
.pied ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.pied a { color: var(--encre-douce); text-decoration: none; font-size: 16px; }
.pied a:hover { color: var(--or); text-decoration: underline; }
.pied p { font-size: 16px; }
.pied__bas {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--trait);
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between;
  font-size: 14.5px; color: var(--encre-legere);
}


/* ==================== 13. AFFICHAGE SUR TELEPHONE ==================== */

@media (max-width: 1000px) {
  .trio { grid-template-columns: 1fr; }
  .manifeste { grid-template-columns: 1fr; }
  .manifeste__colonne { position: static; }
  .bande__interieur { grid-template-columns: 1fr; }
  .pied__colonnes { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  /* Le menu devient un panneau deroulant */
  .burger { display: inline-flex; }
  .menu {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 14px 20px 22px;
    background: var(--page);
    border-bottom: 1px solid var(--trait);
    box-shadow: var(--ombre-forte);
    max-height: calc(100vh - 76px); overflow-y: auto;
  }
  .bandeau-site[data-menu="ouvert"] .menu { display: flex; }
  .bandeau-site__interieur { position: relative; }
  .menu a, .menu__bouton { font-size: 17px; padding: 12px 14px; width: 100%; justify-content: space-between; }
  .menu__liste {
    position: static; display: flex; box-shadow: none; border: 0;
    background: none; padding: 0 0 8px 16px; min-width: 0;
    border-left: 1px solid var(--trait); margin-left: 14px;
  }
  /* La passerelle de survol n'a pas lieu d'être sur téléphone. */
  .menu__liste::before { display: none; }
  .menu__groupe:not([data-ouvert="true"]) .menu__liste { display: none; }
}

@media (max-width: 760px) {
  body { font-size: 17px; }
  .contenu, .contenu--etroit { width: calc(100% - 36px); }

  /* Les encarts passent en une colonne, couverture au-dessus */
  .livre,
  .livre:nth-child(even) { grid-template-columns: 1fr; gap: 26px; }
  .livre__couverture { position: static; width: min(74%, 280px); margin-inline: auto; }
  .livre:nth-child(even) .livre__couverture { order: 0; }
  .livre__couverture img, .livre:nth-child(even) .livre__couverture img { transform: none; }

  .goodie, .goodie:nth-of-type(even) { grid-template-columns: 1fr; }
  .goodie:nth-of-type(even) .goodie__couverture { order: 0; }
  .goodie__couverture { width: min(74%, 280px); margin-inline: auto; }

  .appel { grid-template-columns: 1fr; }
  .appel__action { justify-self: start; }
  .mise-en-avant { grid-template-columns: 1fr; text-align: left; }
  .mise-en-avant img { width: min(68%, 240px); margin-inline: auto; }

  .apercus__liste a { width: 150px; }
  .pied__colonnes { grid-template-columns: 1fr; gap: 30px; }
  .ouverture__illustration { width: min(86%, 330px); }
  .citation { padding-left: 18px; }
}

/* ============================ IMPRESSION ============================ */
@media print {
  .bandeau-site, .pied, .filtres, .actions { display: none; }
  body { background: #fff; font-size: 11pt; }
  .livre { page-break-inside: avoid; }
}
