:root {
  --fond: #f4f5f7;
  --surface: #ffffff;
  --texte: #111827;
  --discret: #6b7280;
  --trait: #e5e7eb;
  --champ: #eef0f3;
  --accent: #2563eb;
  --accent-fonce: #1d4ed8;
  --accent-pale: #e8efff;
  --accent-texte: #ffffff;
  --violet: #7c3aed;
  --positif: #047857;
  --negatif: #b91c1c;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --ombre: 0 1px 2px rgb(16 24 40 / .04), 0 4px 18px rgb(16 24 40 / .07);
  --ombre-forte: 0 2px 4px rgb(16 24 40 / .05), 0 14px 34px rgb(16 24 40 / .12);
  /* Toujours clair, quel que soit le thème de l'appareil. */
  color-scheme: light;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--fond); color: var(--texte); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { line-height: 1.2; font-weight: 700; letter-spacing: -.025em; }
h1 { font-size: 2.1rem; margin: .2em 0; }
h2 { font-size: 1.3rem; margin: 2.4em 0 .6em; }
h3 { font-size: 1.1rem; margin: 1.4em 0 .5em; }
a { color: var(--accent); font-weight: 500; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

.conteneur { max-width: 980px; margin: 0 auto; padding: 0 16px; }
.discret { color: var(--discret); font-size: .9rem; }

/* En-tête translucide, collé en haut */
.entete { position: sticky; top: 0; z-index: 10; background: rgb(255 255 255 / .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--trait); }
.entete__ligne { display: flex; align-items: center; gap: 16px; min-height: 60px; flex-wrap: wrap; padding-block: 8px; }
.logo { font-size: 1.45rem; font-weight: 800; letter-spacing: -.04em; color: var(--texte); text-decoration: none; }
.logo:hover { text-decoration: none; }
.logo span { color: var(--accent); }
.recherche { flex: 1; min-width: 160px; }
.recherche input, .filtres input, .filtres select, textarea, .formulaire input {
  width: 100%; padding: 10px 14px; font: inherit; color: var(--texte);
  background: var(--champ); border: 1px solid transparent; border-radius: 12px;
}
.recherche input { border-radius: 999px; padding-inline: 18px; }
.recherche input:focus, .filtres input:focus, .filtres select:focus, textarea:focus, .formulaire input:focus {
  outline: 0; background: var(--surface); border-color: var(--accent); box-shadow: 0 0 0 4px rgb(37 99 235 / .15);
}
.menu { display: flex; align-items: center; gap: 16px; font-size: .95rem; font-weight: 500; }
.menu a { color: var(--texte); white-space: nowrap; }
.menu a[aria-current="page"] { color: var(--accent); }
@media (max-width: 720px) {
  .menu { order: 3; width: 100%; overflow-x: auto; justify-content: space-between; gap: 12px; font-size: .9rem; padding-bottom: 2px; }
}
.compte { display: flex; align-items: center; gap: 12px; font-size: .95rem; }
.compte a:not(.bouton) { color: var(--texte); }
.compte form { margin: 0; }

/* Boutons */
.bouton {
  display: inline-block; padding: 10px 18px; border: 1px solid transparent; border-radius: 12px;
  background: var(--accent); color: var(--accent-texte); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  box-shadow: 0 1px 2px rgb(37 99 235 / .3); transition: background .15s;
}
.bouton:hover { background: var(--accent-fonce); text-decoration: none; }
.bouton--petit { padding: 6px 14px; border-radius: 999px; font-size: .9rem; }
.bouton--secondaire, .bouton--actif { background: var(--accent-pale); color: var(--accent); box-shadow: none; }
.bouton--secondaire:hover, .bouton--actif:hover { background: #dbe6ff; }
.lien { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; cursor: pointer; text-decoration: underline; }

/* Surfaces : pas de bordure, une ombre douce */
.message, .carte, .achats a, .score, .pli, .reserve, .extrait, .liees li {
  background: var(--surface); border: 0; border-radius: 16px; box-shadow: var(--ombre);
}
.carte, .achats a { transition: transform .18s, box-shadow .18s; }
.carte:hover, .achats a:hover { transform: translateY(-2px); box-shadow: var(--ombre-forte); text-decoration: none; }

.message { padding: 10px 14px; }
.message--error { box-shadow: inset 3px 0 0 var(--negatif), var(--ombre); }

/* Cartes */
.grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.carte { display: flex; gap: 14px; align-items: center; padding: 14px 16px; color: var(--texte); }
.carte__texte { display: flex; flex-direction: column; min-width: 0; }
.carte__texte strong { font-weight: 600; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.carte__texte span, .carte__texte small { color: var(--discret); font-size: .9rem; font-weight: 400; }
/* Le logo de la lettre devant le titre, quand la carte montre la couverture. */
.carte__texte .carte__titre { display: flex; align-items: flex-start; gap: 10px; color: var(--texte); font-size: inherit; }
.carte__titre strong { min-width: 0; }
.carte__logo { flex: none; width: 30px; height: auto; margin-top: 2px; border-radius: 3px; box-shadow: 0 1px 3px rgb(0 0 0 / .18); }

/* Badges de static/img/score/ (346 × 231, l'échelle entière, la lettre obtenue en avant). */
.badge-score { display: block; width: 100%; max-width: 240px; height: auto; }
.badge-score--petit { flex: none; width: 72px; }

/* Livres sans livri-score : la couverture à la place du badge, en plus discret. */
.carte--attente { background: #fafbfc; box-shadow: 0 1px 2px rgb(16 24 40 / .04); }
.carte__couverture { flex: none; width: 40px; height: 60px; object-fit: cover; border-radius: 6px; background: var(--trait); }
.carte__attente { font-style: italic; }

.masque { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.evitement { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 8px; background: var(--accent); color: var(--accent-texte); }
.evitement:focus { top: 12px; }

/* Liste */
.filtres { display: grid; grid-template-columns: 2fr 1.5fr 1fr auto; gap: 8px; margin: 16px 0; }
.filtres--simple { grid-template-columns: 1fr auto; }
.onglets { display: inline-flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; padding: 4px; background: #e9ebef; border-radius: 999px; }
.onglets a { padding: 6px 14px; border-radius: 999px; color: var(--texte); font-size: .92rem; }
.onglets a span { color: var(--discret); font-weight: 400; font-variant-numeric: tabular-nums; }
.onglets a:hover { text-decoration: none; background: rgb(255 255 255 / .6); }
.onglets a[aria-current] { background: var(--surface); box-shadow: var(--ombre); font-weight: 600; }

/* File d'attente des analyses */
.file { list-style: none; margin: 20px 0; padding: 0; display: grid; gap: 10px; }
.file li { display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: var(--surface); border-radius: 16px; box-shadow: var(--ombre); }
.file__rang { flex: none; width: 2.2em; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--discret); }
.file__titre { flex: 1; min-width: 0; display: flex; flex-direction: column; color: var(--texte); }
.file__titre span { color: var(--discret); font-size: .9rem; font-weight: 400; }
.file__compte { flex: none; display: flex; flex-direction: column; align-items: flex-end; font-size: .9rem; color: var(--discret); }
.file__compte strong { font-size: 1.3rem; color: var(--accent); line-height: 1.1; }
.pagination { display: flex; justify-content: center; gap: 20px; margin: 28px 0; }

/* Page livre */
.fil { margin: 20px 0 0; font-size: .9rem; color: var(--discret); }
.fil a { color: var(--discret); }
.livre { display: flex; flex-wrap: wrap; gap: 36px; align-items: flex-start; margin-top: 20px; }
/* Bases assez petites pour ne jamais passer à la ligne au-dessus de 640 px,
   où la grille mobile prend le relais. */
.livre__cote { flex: 1 1 200px; max-width: 240px; display: flex; flex-direction: column; gap: 20px; }
.livre__corps { flex: 999 1 360px; min-width: 0; }
/* Laisse la place de l'en-tête collant. */
.livre__corps section[id] { scroll-margin-top: 84px; }

.couverture { display: block; width: 100%; border-radius: 12px; box-shadow: var(--ombre-forte); }
.couverture--vide { box-sizing: border-box; aspect-ratio: 2 / 3; display: flex; flex-direction: column; justify-content: space-between; padding: 20px 18px; background: linear-gradient(140deg, var(--accent), var(--violet)); color: #fff; }
.couverture--vide span { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; }
.couverture--vide strong { font-size: 1.5rem; font-weight: 700; line-height: 1.15; letter-spacing: -.02em; }

.lecture { display: grid; gap: 6px; text-align: center; }
.lecture form { margin: 0; }
.lecture .bouton { width: 100%; min-height: 44px; font-weight: 600; }
.lecture p { margin: 0; }

.etiquette { margin: 0 0 8px; padding: 0; border: 0; font: 600 .78rem/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--discret); }

.achats ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.achats a { display: flex; justify-content: space-between; align-items: center; min-height: 44px; padding: 0 14px; color: var(--texte); }
.achats .fleche { color: var(--accent); }
.achats__amazon { grid-column: 1 / -1; }
/* La colonne fait 200 px : libellé resserré pour tenir sur une ligne. */
/* Aux couleurs d'Amazon : jaune-orangé, texte bleu nuit, logo bleu. */
.achats .achats__amazon a { gap: 6px; padding: 0 12px; justify-content: center; font-size: .9rem; font-weight: 700; color: #232f3e;
  background: linear-gradient(180deg, #ffd814, #ffa41c); box-shadow: inset 0 0 0 1px #f2a20a, 0 1px 2px rgb(213 125 0 / .3); }
.achats .achats__amazon a:hover { background: linear-gradient(180deg, #f7ca00, #fa8900); }
.achats__amazon .icone { color: #146eb4; }
.achats__marchand { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.achats__marchand .icone { flex: none; width: 18px; height: 18px; }

/* Titre à gauche, score à droite ; le score passe dessous quand la place manque. */
.livre__entete { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.livre__titre { flex: 1 1 280px; min-width: 0; }
.livre__titre p { margin: 0; }
.livre__titre h1 { margin: .15em 0 .2em; font-size: 2.4rem; font-weight: 800; letter-spacing: -.04em; line-height: 1.1; }
.surtitre { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--accent-pale); font-size: .8rem; font-weight: 600; color: var(--accent); }
.livre__titre .surtitre { margin-bottom: 4px; }
.auteur { font-size: 1.15rem; }

.score { flex: 0 1 260px; display: grid; gap: 12px; padding: 20px; border-radius: 20px; }
.score p { margin: 0; }
.score .etiquette { margin: 0; }
.score__rang strong { display: block; font-size: 1.35rem; font-weight: 700; line-height: 1.2; }
.score__rang .discret { display: block; }
.score__mesure { padding: 8px 10px; background: var(--fond); border-radius: 12px; font-size: .85rem; color: var(--discret); }
/* À la place du score, pour un livre qui n'en a pas encore. */
.surtitre--attente { background: #eef0f3; color: var(--discret); }
.attente { font-size: .92rem; }
.attente form { margin: 0; }
.attente .bouton { width: 100%; min-height: 44px; }
.attente__compte strong { font-size: 1.6rem; font-weight: 800; color: var(--accent); }
.attente__compte .discret { display: block; }
.score .attente__retirer { margin-top: 6px; font-size: .8rem; text-align: center; }
.score__alertes { margin: 0; padding: 8px 10px 8px 26px; background: #fff4ed; border-radius: 12px; font-size: .85rem; }

.sommaire { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 24px; padding: 4px; background: #e9ebef; border-radius: 999px; }
.sommaire a { padding: 6px 12px; border-radius: 999px; color: var(--texte); font-size: .9rem; }
.sommaire a:hover { background: var(--surface); box-shadow: var(--ombre); text-decoration: none; }

.resume { max-width: 42em; }

.dimensions { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; }
.dimensions li { display: grid; grid-template-columns: 110px 1fr 40px; gap: 14px; align-items: center; }
.dimensions__valeur { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.barre { position: relative; height: 8px; background: #e6e8ec; border-radius: 999px; }
.barre__valeur { display: block; height: 100%; background: linear-gradient(90deg, #60a5fa, var(--accent) 60%, var(--violet)); border-radius: 999px; }
.barre__mediane { position: absolute; left: 50%; top: -5px; bottom: -5px; width: 2px; margin-left: -1px; background: #9ca3af; border-radius: 2px; }

.pli { margin-bottom: 10px; padding: 0 18px; }
.pli[open] { padding-bottom: 12px; }
.pli summary { padding: 14px 0; font-weight: 600; cursor: pointer; }
.pli summary .discret { font-weight: 400; }
.defilement { overflow-x: auto; }

.criteres { width: 100%; border-collapse: collapse; font-size: .92rem; font-variant-numeric: tabular-nums; }
.criteres th, .criteres td { padding: 6px 8px; border-bottom: 1px solid #f0f1f4; text-align: right; }
.criteres th:first-child, .criteres td:first-child { text-align: left; }
.criteres th { color: var(--discret); font-size: .72rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; border-bottom-color: var(--trait); }
.criteres small { white-space: nowrap; }
.sens { color: var(--discret); text-decoration: none; cursor: help; }
.positif { color: var(--positif); }
.negatif { color: var(--negatif); }

/* Page sur cinq axes (littérature générale) : le dégradé du pipeline, du vert
   (favorable, à gauche) au rouge. ton-1 = rouge … ton-5 = vert. */
:root { --d1: #d32f2f; --d2: #ef7d32; --d3: #e3b21b; --d4: #7cb342; --d5: #2e7d32; }
.ton-1 { --ton: var(--d1); } .ton-2 { --ton: var(--d2); } .ton-3 { --ton: var(--d3); }
.ton-4 { --ton: var(--d4); } .ton-5 { --ton: var(--d5); }
.extrait > p { margin: 0; }
.axes { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; }
.axes li { display: grid; grid-template-columns: minmax(140px, 1fr) minmax(0, 2.2fr); gap: 18px; align-items: center; padding: 14px 18px;
  background: var(--surface); border-radius: 16px; box-shadow: inset 4px 0 0 var(--ton), var(--ombre); }
.axes__nom h3, .axes__titre { margin: 0 0 6px; font: 600 1.35rem/1.1 var(--serif); letter-spacing: -.01em; }
.axes__verdict { display: flex; flex-direction: column; gap: 2px; }
.appreciation { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ton); }
.axes .ton-3 .appreciation { color: #9a7400; }
.pastilles { display: flex; gap: 5px; }
.pastilles span { display: inline-block; width: 13px; height: 13px; border: 1px solid #c5c9d0; border-radius: 50%; }
.pastilles span.plein { background: var(--ton); border-color: var(--ton); }
.degre { display: inline-block; margin-left: 6px; padding: 1px 10px; border-radius: 999px; background: var(--ton); color: #fff; font-size: .8rem; font-weight: 600; vertical-align: 1px; }
.degre.ton-3 { color: #3a2a00; }
.pli[class*="ton-"] { box-shadow: inset 0 5px 0 var(--ton), var(--ombre); }
.liste { margin: 0; padding-left: 18px; }
.liste li { margin-bottom: 6px; }
.membre { padding: 14px 0; border-top: 1px solid var(--trait); }
.membre h3 { margin: 0 0 4px; font-size: 1rem; font-weight: 600; }
.membre p { margin: 0 0 8px; }
.reglette { position: relative; height: 12px; margin: 30px 0 26px; border-radius: 999px; background: linear-gradient(90deg, var(--d5), var(--d4) 25%, var(--d3) 50%, var(--d2) 75%, var(--d1)); }
.reglette__repere { position: absolute; top: -5px; width: 2px; height: 22px; margin-left: -1px; background: var(--texte); }
.reglette__nom { position: absolute; transform: translateX(-50%); font-size: .75rem; line-height: 1; color: var(--discret); white-space: nowrap; }
.reglette__nom--haut { top: -20px; }
.reglette__nom--bas { top: 22px; }
.reglette__livre { position: absolute; top: -7px; width: 16px; height: 26px; margin-left: -8px; background: var(--texte); border: 3px solid var(--surface); border-radius: 5px; }
.situation { font-size: .9rem; font-weight: 600; color: var(--ton); }
.situation.ton-3 { color: var(--discret); }
.citations summary { font-size: .9rem; color: var(--accent); cursor: pointer; }
.citation { margin: 8px 0; padding: 2px 0 2px 12px; border-left: 3px solid var(--trait); font-family: Georgia, "Times New Roman", serif; color: #374151; }
.citation mark { padding: 0 2px; background: #faeeda; color: var(--texte); border-radius: 2px; }
.citation small { display: block; margin-top: 2px; font: .78rem var(--sans); color: var(--discret); }
.pastille--alerte { background: #fdecec; color: var(--negatif); }
.pastille--neutre { background: var(--champ); color: var(--discret); }
@media (max-width: 560px) {
  .axes li { grid-template-columns: 1fr; gap: 8px; }
}

/* En bref : qualités en vert, défauts en rouge, sur le fond de la carte */
.bilan { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.bilan__carte { padding: 18px 22px; border-radius: 16px; }
.bilan__carte h3 { margin: 0 0 10px; font-size: 1.05rem; }
.bilan__carte p { margin: 0; }
.bilan__carte--qualites { background: #e3f4e6; color: #14532d; box-shadow: inset 0 0 0 1px #b7e0bf; }
.bilan__carte--defauts { background: #fde7e7; color: #7f1d1d; box-shadow: inset 0 0 0 1px #f5c2c2; }
.bilan__carte--qualites h3::before { content: "+ "; }
.bilan__carte--defauts h3::before { content: "− "; }
.bilan__axe { display: inline-block; padding: 0 8px; border-radius: 999px; background: rgb(255 255 255 / .7); font-size: .75rem; font-weight: 600; }

/* Détail réservé aux membres */
.verrou { margin-top: 6px; padding: 16px 18px; border-radius: 14px; background: linear-gradient(180deg, #f7f9ff, var(--accent-pale)); text-align: center; }
.verrou p { margin: 0 0 10px; }
.verrou p:last-child { margin: 0; display: flex; gap: 14px; justify-content: center; align-items: center; flex-wrap: wrap; }

/* Le livre : thèmes et repères */
.reperes__bloc { margin-top: 18px; }
.mots { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.mots li { padding: 3px 12px; border-radius: 999px; background: var(--surface); box-shadow: var(--ombre); font-size: .9rem; }
.mots--lieux li::before { content: "⌖ "; color: var(--discret); }
.matiere { margin: 0 0 2px; font: 1.05rem/1.55 var(--serif); }
.champs { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 8px; }
.champs li { display: grid; grid-template-columns: minmax(120px, 190px) minmax(0, 1fr) 44px; gap: 12px; align-items: center; font-size: .92rem; }
.champs__barre { position: relative; height: 10px; border-radius: 999px; background: #e6e8ec; }
.champs__barre span { display: block; height: 100%; border-radius: 999px; background: #a8b3c4; }
.champs--marque .champs__barre span { background: var(--accent); }
.champs--marque .champs__nom { font-weight: 600; }
.champs__barre i { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; background: var(--texte); border-radius: 2px; }
.champs__pct { text-align: right; font-variant-numeric: tabular-nums; color: var(--discret); }
.reperes { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 18px 0 0; }
.reperes div { padding: 12px 14px; border-radius: 14px; background: var(--surface); box-shadow: var(--ombre); }
.reperes dt { font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--discret); }
.reperes dd { margin: 2px 0 0; font-weight: 600; }

.reserve { padding: 20px; background: linear-gradient(180deg, var(--surface), #f7f9ff); text-align: center; }

.extraits { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.extrait { margin: 0; display: flex; flex-direction: column; gap: 10px; padding: 22px; }
.extrait blockquote { margin: 0; font-size: 1.05rem; line-height: 1.6; }
.extrait figcaption { color: var(--discret); font-size: .85rem; }
.pastille { align-self: flex-start; padding: 1px 10px; border-radius: 999px; background: var(--accent-pale); font-size: .82rem; font-weight: 500; color: var(--accent); }

.liees { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.liees li { display: flex; gap: 10px; align-items: center; width: 220px; padding: 8px; border-radius: 12px; }
.liees img, .liees .liees__vide { flex: none; width: 40px; height: 60px; object-fit: cover; border-radius: 6px; background: var(--trait); }
.liees span { display: flex; flex-direction: column; min-width: 0; }
.liees small { color: var(--discret); }
.liees .liees__pourquoi { margin-top: 4px; font-size: .85em; line-height: 1.35; }
.liees .liees__lien { display: flex; gap: 10px; align-items: center; min-width: 0; flex: 1; color: inherit; text-decoration: none; }
.liees .liees__lien:hover strong, .liees .liees__lien:focus-visible strong { text-decoration: underline; }

.commenter { display: grid; gap: 8px; justify-items: start; margin-bottom: 20px; }
.commenter .bouton { min-height: 44px; }
.commentaire { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid #eceef1; }
.commentaire p { margin: 0 0 4px; }
.avatar { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(140deg, #60a5fa, var(--violet)); color: #fff; font-weight: 600; }

.formulaire { max-width: 420px; margin: 40px auto; }
.formulaire .helptext, .formulaire ul { color: var(--discret); font-size: .85rem; }

.pied { margin-top: 72px; padding-block: 36px 24px; background: var(--surface); border-top: 1px solid var(--trait); color: var(--discret); font-size: .9rem; }
.pied__colonnes { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; }
.pied__colonnes p { margin: 6px 0 0; }
.pied nav { display: flex; flex-direction: column; gap: 6px; }
.pied nav a { color: var(--texte); font-weight: 400; }
.pied__affiliation { margin: 28px 0 0; padding-top: 16px; border-top: 1px solid var(--trait); font-size: .82rem; }
.pied__copyright { margin: 8px 0 0; font-size: .82rem; }
@media (max-width: 640px) { .pied__colonnes { grid-template-columns: 1fr 1fr; } .pied__colonnes > :first-child { grid-column: 1 / -1; } }

/* Pages éditoriales (à propos, contact, mentions légales) */
.page { max-width: 44em; margin: 32px auto 0; }
.page__chapo { font-size: 1.15rem; color: var(--discret); }
.page section[id] { scroll-margin-top: 84px; }
.definitions { margin: 12px 0; display: grid; gap: 10px; }
.definitions div { padding: 14px 18px; border-radius: 16px; background: var(--surface); box-shadow: var(--ombre); }
.definitions dt { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.definitions dd { margin: 4px 0 0; }

@media (max-width: 640px) {
  /* Sur deux lignes, l'en-tête prendrait trop de hauteur s'il restait collé. */
  .entete { position: static; }
  .livre__corps section[id] { scroll-margin-top: 16px; }
  .filtres { grid-template-columns: 1fr 1fr; }
  .filtres input { grid-column: 1 / -1; }
  /* Une seule grille : la couverture et le score côte à côte en tête,
     puis le titre, « J'ai lu », les achats et le reste de l'article. */
  .livre { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; }
  .livre__cote, .livre__corps, .livre__entete { display: contents; }
  .livre > * > *, .livre__entete > * { grid-column: 1 / -1; }
  .livre .couverture { grid-column: 1; grid-row: 1; }
  .livre .score { grid-column: 2; grid-row: 1; padding: 12px; gap: 8px; align-self: start; }
  .livre__titre { order: -1; }
  .score__rang strong { font-size: 1.15rem; }
  .score__rang .discret { font-size: .8rem; }
  .score__mesure { font-size: .78rem; }
  .achats ul { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
  .couverture--vide { padding: 8px; }
  .couverture--vide span { font-size: .55rem; }
  .couverture--vide strong { font-size: .8rem; }
  .livre__titre h1 { font-size: 1.8rem; }
  h1 { font-size: 1.7rem; }
  .criteres { font-size: .82rem; }
  .criteres th:nth-child(3), .criteres td:nth-child(3),
  .criteres th:nth-child(6), .criteres td:nth-child(6) { display: none; }
  .score__alertes { font-size: .78rem; }
}

/* Accueil : sept étages en bandes pleine largeur, animés par static/js/accueil.js.
   Chaque état final est lisible sans script ; le script repart de lui. */
.accueil > .message { max-width: 948px; margin: 16px auto 0; }
.acc-bande { padding-block: 72px; }
.acc-bande--claire { background: var(--surface); }
.acc-dedans { max-width: 1120px; margin: 0 auto; padding-inline: 16px; }
.acc-deux { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px 56px; align-items: center; }
.acc-colonne { display: grid; gap: 16px; align-content: start; }
.acc-etroit { max-width: 44rem; }
.accueil h2 { margin: 0; font-size: clamp(1.6rem, 3.2vw, 2.3rem); line-height: 1.12; letter-spacing: -.03em; text-wrap: balance; }
.accueil h3 { margin: 0; }
.accueil p { margin: 0; }
.acc-surtitre { font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.acc-chapo { font-size: 1.08rem; color: var(--discret); max-width: 34rem; }
.acc-lien { margin-top: 24px !important; }
.bouton--clair { background: rgb(255 255 255 / .16); color: #fff; box-shadow: none; }
.bouton--clair:hover { background: rgb(255 255 255 / .26); }

/* 1. Hero */
.acc-hero { background: radial-gradient(110% 90% at 100% 0%, #e2ebff 0%, rgb(226 235 255 / 0) 60%), var(--fond); padding-block: 64px 80px; }
.acc-hero__texte { display: grid; gap: 22px; justify-items: start; }
.acc-hero h1 { margin: 0; font-size: clamp(2.3rem, 5vw, 3.7rem); font-weight: 800; line-height: .98; letter-spacing: -.045em; text-wrap: balance; }
.acc-cherche { display: flex; width: 100%; max-width: 31rem; gap: 6px; padding: 5px; background: var(--surface); border-radius: 16px; box-shadow: var(--ombre-forte); }
.acc-cherche input { flex: 1; min-width: 0; padding: 0 12px; border: 0; background: transparent; font: inherit; color: var(--texte); }
.acc-cherche input:focus { outline: 0; }
.acc-cherche:focus-within { box-shadow: 0 0 0 4px rgb(37 99 235 / .15), var(--ombre-forte); }
.acc-preuves { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.acc-preuves li { display: inline-flex; align-items: center; gap: 7px; padding: 4px 12px; border-radius: 999px; background: var(--surface); box-shadow: var(--ombre); font-size: .84rem; font-weight: 600; }
.acc-preuves li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--d5); }
/* L'escalier : cinq livres de la rentrée, du A en haut au E en bas */
.acc-escalier { display: grid; gap: 14px; }
.acc-escalier ol { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; align-items: start; margin: 0; padding: 14px 0 0; list-style: none; }
.acc-escalier li { margin-top: calc(var(--i) * 34px); }
.acc-escalier a { display: grid; gap: 3px; min-width: 0; color: var(--texte); }
.acc-escalier a:hover { text-decoration: none; }
.acc-escalier .couv { --l: 100%; margin-bottom: 8px; filter: drop-shadow(0 10px 18px rgb(16 24 40 / .18)); transition: transform .2s; }
.acc-escalier a:hover .couv, .acc-escalier a:focus-visible .couv { transform: translateY(-4px); }
.acc-escalier a > strong { font-size: .82rem; line-height: 1.2; overflow-wrap: anywhere; hyphens: auto; }
.acc-escalier a > span:last-child { font-size: .75rem; color: var(--discret); }
.acc-escalier p { margin: 0; font-size: .8rem; color: var(--discret); text-align: right; }

/* 2. La lettre */
.acc-puces { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.acc-puces li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; }
.acc-puces li::before { content: ""; width: 26px; height: 26px; border-radius: 8px;
  background: var(--accent-pale) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%232563eb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }
.acc-fiche { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px; align-items: center; padding: 28px 24px 24px; background: var(--surface); border-radius: 20px; box-shadow: var(--ombre-forte); color: var(--texte); font-weight: 400; transition: box-shadow .18s; }
.acc-fiche:hover { text-decoration: none; box-shadow: 0 0 0 2px var(--accent-pale), var(--ombre-forte); }
.acc-fiche .couv { perspective: 800px; }
.acc-fiche__corps { display: grid; gap: 14px; min-width: 0; }
.acc-fiche__corps strong { display: block; font: 600 1.3rem/1.15 var(--serif); }
.acc-fiche__corps > span:first-child > span { font-size: .86rem; color: var(--discret); }
.acc-axes { display: grid; gap: 7px; }
.acc-axes > span { display: grid; grid-template-columns: 6.5rem auto minmax(0, 1fr); gap: 12px; align-items: center; font-size: .92rem; }
.acc-axes .pastilles span { width: 12px; height: 12px; transition: background .25s, border-color .25s; }
.acc-axes small { font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ton); transition: opacity .3s; }
.acc-axes .ton-3 small { color: #9a7400; }
.acc-bilan { display: grid; gap: 6px; font-size: .88rem; }
.acc-bilan > span { padding: 8px 12px; border-radius: 10px; }
.acc-bilan__q { background: #e3f4e6; color: #14532d; }
.acc-bilan__d { background: #fde7e7; color: #7f1d1d; }

/* 3. Indépendance */
.acc-nuit { background: #0f172a; color: #e8ecf4; }
.acc-nuit h2, .acc-nuit h3 { color: #fff; }
.acc-nuit .acc-surtitre { color: #93b4ff; }
.acc-nuit .acc-chapo { color: #a9b3c6; }
.acc-indep { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 32px 48px; align-items: center; }
.acc-sceau { position: relative; width: 200px; max-width: 100%; aspect-ratio: 1; }
.acc-sceau svg { width: 100%; height: 100%; font-family: var(--sans); }
.acc-sceau__anneau { transform-origin: 50% 50%; animation: acc-tourne 28s linear infinite; }
@keyframes acc-tourne { to { transform: rotate(360deg); } }
.acc-sceau__centre { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.acc-sceau__centre b { font-size: 2.9rem; font-weight: 800; line-height: 1; letter-spacing: -.05em; color: #fff; }
.acc-sceau__centre small { font-size: .64rem; font-weight: 700; line-height: 1.25; letter-spacing: .14em; text-transform: uppercase; color: #93b4ff; }
.acc-engagements { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.acc-engagements div { display: grid; gap: 6px; align-content: start; padding: 20px; border-radius: 16px; background: rgb(255 255 255 / .05); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .08); }
.acc-engagements h3 { font-size: 1rem; }
.acc-engagements p { font-size: .92rem; color: #a9b3c6; }

/* 4. Méthode */
.acc-methode { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px 40px; align-items: center; }
.acc-exemple { display: grid; gap: 4px; padding: 22px; background: var(--surface); border-radius: 20px; box-shadow: var(--ombre-forte); }
.acc-exemple__tete { display: flex; gap: 14px; align-items: center; padding-top: 6px; }
.acc-exemple h3 { font-size: 1.02rem; }
.acc-exemple h3 span { font-weight: 500; color: var(--discret); }
.acc-exemple .reglette__livre { transition: left 1.4s cubic-bezier(.3, 1.2, .4, 1); }

/* 5. Quiz */
.acc-quiz { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px 32px; align-items: center; margin-top: 24px; padding: 34px 26px 26px; border-radius: 20px; background: var(--fond); }
.acc-quiz__corps { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 24px; align-items: center; }
.acc-quiz__q { font-size: 1.1rem; }
.acc-quiz__q small { display: block; margin-bottom: 4px; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--discret); }
.acc-quiz__q em { font: normal 600 1.25rem var(--serif); }
.acc-quiz__choix { display: flex; gap: 6px; }
.acc-quiz__choix button { width: 46px; height: 46px; border-radius: 12px; border: 2px solid var(--c); background: var(--surface); color: var(--c); font: 800 1.3rem var(--sans); cursor: pointer; transition: background .2s, color .2s, transform .2s, opacity .2s; }
.acc-quiz__choix button:hover:not(:disabled) { transform: translateY(-2px); background: color-mix(in srgb, var(--c) 12%, #fff); }
.acc-quiz__choix button.bon { background: var(--c); color: #fff; transform: scale(1.1); }
.acc-quiz__choix button:disabled:not(.bon) { opacity: .3; cursor: default; }
.acc-lettre-A { --c: var(--d5); } .acc-lettre-B { --c: #5b8f2a; } .acc-lettre-C { --c: #b88a00; } .acc-lettre-D { --c: var(--d2); } .acc-lettre-E { --c: var(--d1); }
.acc-quiz__rep { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; min-height: 1.6em; }
.acc-quiz__rep button { padding: 0; border: 0; background: none; color: var(--accent); font: inherit; font-weight: 600; cursor: pointer; }

/* 6. Jeunesse */
.acc-ages { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; padding: 4px; border-radius: 999px; background: #e9ebef; }
.acc-ages button { padding: 8px 4px; border: 0; border-radius: 999px; background: transparent; color: var(--texte); font: 600 .88rem/1.2 var(--sans); cursor: pointer; transition: background .25s, box-shadow .25s; }
.acc-ages button small { display: block; font-size: .7rem; font-weight: 400; color: var(--discret); }
.acc-ages button[aria-pressed="true"] { background: var(--surface); box-shadow: var(--ombre); }
.acc-tranche { display: grid; gap: 16px; padding: 24px; border-radius: 20px; background: var(--surface); box-shadow: var(--ombre-forte); }
.acc-tranche__total b { font-size: 3rem; font-weight: 800; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.acc-tranche__total span { color: var(--discret); }
.acc-repart { display: flex; height: 30px; overflow: hidden; border-radius: 999px; background: var(--trait); }
.acc-repart span { display: grid; place-items: center; overflow: hidden; color: #fff; font-size: .82rem; font-weight: 800; transition: width .75s cubic-bezier(.4, 0, .2, 1); }
.acc-fond-A { background: var(--d5); } .acc-fond-B { background: var(--d4); } .acc-fond-C { background: var(--d3); } .acc-fond-D { background: var(--d2); } .acc-fond-E { background: var(--d1); }
.acc-tranche__livre { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: center; padding-top: 8px; color: var(--texte); font-weight: 400; }
.acc-tranche__livre:hover { text-decoration: none; }
.acc-tranche__livre small, .acc-tranche__livre span span { font-size: .85rem; color: var(--discret); }
.acc-tranche__livre strong { display: block; font: 600 1.1rem/1.2 var(--serif); }

/* Couverture d'un livre, badge à cheval sur le bord haut (templates/livres/_couverture.html).
   Le badge déborde : le conteneur garde de la place au-dessus et à droite. En vignette, il reste dedans. */
.couv { position: relative; display: block; flex: none; width: var(--l, 120px); max-width: 100%; aspect-ratio: 2 / 3; }
.couv--grande { --l: 168px; } .couv--moyenne { --l: 120px; } .couv--defile { --l: 104px; } .couv--petite { --l: 58px; } .couv--mini { --l: 54px; }
.couv__image, .couv__dessin { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 3px; background: var(--champ); object-fit: cover;
  box-shadow: 0 1px 2px rgb(0 0 0 / .12), 0 10px 24px -6px rgb(0 0 0 / .35); }
.couv__dessin { display: flex; flex-direction: column; justify-content: space-between; padding: 12% 10% 12% 14%; overflow: hidden; background: var(--fc); color: #f3ede0; }
.couv__dessin::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 6%; background: rgb(0 0 0 / .2); }
.couv__dessin small { font-size: calc(var(--l, 120px) * .065); font-weight: 600; line-height: 1.3; letter-spacing: .08em; text-transform: uppercase; opacity: .85; overflow-wrap: anywhere; }
.couv__dessin strong { font: 600 calc(var(--l, 120px) * .12)/1.1 var(--serif); text-wrap: balance; overflow-wrap: anywhere; }
.couv__dessin em { font-size: calc(var(--l, 120px) * .06); font-style: normal; font-weight: 800; letter-spacing: -.03em; opacity: .7; }
.couv__dessin em span { opacity: .65; }
.couv__badge { position: absolute; top: -6%; right: -9%; z-index: 1; width: 46%; height: auto; border-radius: 9%; box-shadow: 0 3px 10px rgb(0 0 0 / .3); }
.couv--petite .couv__badge, .couv--mini .couv__badge { top: 3%; right: 3%; width: 52%; }
/* Forts soupçons d'IA : le pictogramme de la page livre, à cheval sur le coin bas droit (le badge tient le haut). */
.couv__ia { position: absolute; bottom: -7%; right: -10%; z-index: 1; width: 40%; height: auto; filter: drop-shadow(0 2px 4px rgb(16 24 40 / .3)); }
.couv--petite .couv__ia, .couv--mini .couv__ia { bottom: -4%; right: -8%; width: 48%; }
.couv--petite .couv__dessin, .couv--mini .couv__dessin { padding: 10% 8% 10% 12%; }
.couv--petite .couv__dessin small, .couv--petite .couv__dessin em, .couv--mini .couv__dessin small, .couv--mini .couv__dessin em { display: none; }
.carte .couv { margin-block: 2px; }

/* Défilé des livres notés, sous le hero */
.acc-defile { margin-top: 56px; padding-block: 16px 30px; overflow: hidden; border-top: 1px solid var(--trait); background: rgb(255 255 255 / .55);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.acc-defile__titre { max-width: 1120px; margin: 0 auto 18px !important; padding-inline: 16px; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--discret); }
.acc-defile__piste { display: flex; gap: 26px; width: max-content; padding: 10px 14px 0; animation: acc-defile 80s linear infinite; }
.acc-defile__piste:hover, .acc-defile__piste:focus-within { animation-play-state: paused; }
.acc-defile__double { display: contents; }
.acc-defile a { display: block; transition: transform .25s; }
.acc-defile a:hover, .acc-defile a:focus-visible { transform: translateY(-6px) rotate(-1deg); }
@keyframes acc-defile { to { transform: translateX(calc(-50% - 13px)); } }
.acc-fiche[hidden], .acc-tranche__livre[hidden] { display: none; }

/* Éventail de l'appel final : la place vide au milieu attend le livre du visiteur */
.acc-eventail { position: relative; width: 100%; max-width: 480px; height: 200px; margin-bottom: 40px; }
.acc-eventail > * { position: absolute; left: 50%; bottom: 0; margin-left: -60px; transform-origin: 50% 120%; transition: transform .9s cubic-bezier(.3, 1.2, .4, 1); }
.acc-eventail__vide { z-index: 2; display: grid; place-items: center; width: 120px; aspect-ratio: 2 / 3; border: 2px dashed rgb(255 255 255 / .75); border-radius: 4px; background: rgb(255 255 255 / .12); font-size: 2.6rem; font-weight: 800; color: #fff; }
.acc-eventail > :nth-child(1) { transform: translateX(-168px) translateY(16px) rotate(-14deg); }
.acc-eventail > :nth-child(2) { transform: translateX(-84px) translateY(6px) rotate(-7deg); }
.acc-eventail > :nth-child(4) { transform: translateX(84px) translateY(6px) rotate(7deg); }
.acc-eventail > :nth-child(5) { transform: translateX(168px) translateY(16px) rotate(14deg); }
.acc-eventail.ferme > * { transform: none; }

/* Listes, puis appel final */
.acc-listes { padding-bottom: 72px; }
.acc-listes h2 { margin: 56px 0 14px; font-size: 1.3rem; }
.acc-listes .discret { margin-bottom: 12px; }
.acc-final { background: linear-gradient(135deg, var(--accent-fonce), var(--accent) 55%, var(--violet)); color: #fff; text-align: center; }
.acc-final .acc-dedans { display: grid; gap: 18px; justify-items: center; }
.acc-final h2 { max-width: 34rem; color: #fff; }
.acc-final p { max-width: 34rem; color: #dbe4ff; }
.acc-chiffres { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 44px; }
.acc-chiffres p { display: grid; }
.acc-chiffres b { font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 800; line-height: 1; letter-spacing: -.04em; color: #fff; font-variant-numeric: tabular-nums; }
.acc-boutons { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.acc-final .bouton:not(.bouton--clair) { background: #fff; color: var(--accent-fonce); }

@media (max-width: 860px) {
  .acc-bande { padding-block: 52px; }
  .acc-deux, .acc-methode, .acc-indep { grid-template-columns: minmax(0, 1fr); }
  .acc-engagements { grid-template-columns: minmax(0, 1fr); }
  .acc-quiz, .acc-quiz__corps { grid-template-columns: minmax(0, 1fr); }
  .acc-sceau { width: 160px; }
  .acc-escalier li { margin-top: calc(var(--i) * 14px); }
  .acc-escalier p { text-align: left; }
  .acc-eventail { height: 160px; margin-bottom: 36px; transform: scale(.78); transform-origin: 50% 100%; }
}
@media (max-width: 480px) {
  .acc-fiche { grid-template-columns: minmax(0, 1fr); justify-items: start; }
  .couv--grande { --l: 140px; }
  .acc-axes > span { grid-template-columns: 5.8rem auto; }
  .acc-axes small { grid-column: 1 / -1; margin-top: -4px; }
  .acc-ages button small { display: none; }
  .acc-escalier ol { gap: 8px; }
  .acc-escalier a > strong { font-size: .72rem; }
  .acc-escalier a > span:last-child { display: none; }
  .acc-quiz { padding: 20px; }
  .acc-quiz__choix button { width: 42px; height: 42px; }
}
@media (prefers-reduced-motion: reduce) {
  .accueil *, .accueil *::before, .accueil *::after { transition: none !important; animation: none !important; }
}

/* Pages auteur : la lettre en pastille, du vert (A) au rouge (E), assez foncée pour du texte blanc. */
.chapo { font-size: 1.1rem; max-width: 46em; }
.lettre { display: inline-grid; place-items: center; min-width: 1.6em; height: 1.6em; padding: 0 .3em; border-radius: 6px;
  font: 700 .8rem/1 var(--sans); color: #fff; vertical-align: .1em; }
.lettre--A { background: #2e7d32; } .lettre--B { background: #4b7f2a; } .lettre--C { background: #8a6a00; }
.lettre--D { background: #b45309; } .lettre--E { background: #c62828; }
.alphabet { display: flex; flex-wrap: wrap; gap: 4px; margin: 16px 0; }
.alphabet a { display: inline-grid; place-items: center; min-width: 2em; height: 2em; border-radius: 8px; background: var(--surface); box-shadow: var(--ombre); }
.auteurs h2 { margin-top: 1.4em; }
.auteurs ul { columns: 3 220px; column-gap: 24px; margin: 0; padding: 0; list-style: none; }
.auteurs li { break-inside: avoid; padding: 4px 0; }
.auteurs__lettres { display: inline-flex; gap: 3px; margin-left: 6px; }

/* Détection d'IA (templates/livres/_detection_ia.html) : liseré rouge (forts
   soupçons), vert (a priori humain) ou bleu (paru avant les IA). */
.ia { --c: var(--negatif); --voile: #fdecec; margin: 4px 0 22px; padding: 20px 22px; max-width: 46em;
  background: var(--surface); border-radius: 16px; box-shadow: inset 5px 0 0 var(--c), var(--ombre); }
.ia--non { --c: var(--positif); --voile: #e7f6ef; }
.ia--humain { --c: var(--accent); --voile: var(--accent-pale); }
.ia p { margin: .45em 0; }
.ia__tete { display: flex; gap: 20px; align-items: center; margin-bottom: 6px; }
.ia__tete .etiquette { margin: 0 0 2px; }
.ia__logo { flex: none; width: 132px; height: 132px; }
.ia .ia__verdict { margin: 0; font-size: 1.55rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; color: var(--c); }
.ia__sous-titre { display: block; margin-top: 4px; font-size: 1rem; font-weight: 600; letter-spacing: 0; color: var(--texte); }
.ia__rappel { padding: 8px 12px; background: var(--voile); border-radius: 10px; font-size: .92rem; }
.ia__bande { margin: 16px 0 0; }
.ia__bande .etiquette { margin-bottom: 6px; }
.ia__bande svg { display: block; width: 100%; height: 24px; border-radius: 6px; fill: var(--c); }
.ia__bande-fond { fill: var(--trait); }
.ia .ia__bornes { display: flex; justify-content: space-between; margin: 3px 0 0; font-size: .78rem; color: var(--discret); }
.ia .ia__methode { margin-top: 12px; font-size: .82rem; }
/* Le pictogramme à cheval sur le coin haut droit du badge, qui est à 20 px du bord de la carte. */
.score { position: relative; }
.picto-ia { position: absolute; z-index: 1; top: -2px; right: -4px; line-height: 0; }
.picto-ia img { width: 92px; height: 92px; filter: drop-shadow(0 3px 6px rgb(16 24 40 / .28)); transition: transform .18s; }
.picto-ia:hover img { transform: scale(1.06); }
@media (max-width: 640px) {
  .picto-ia { top: -2px; right: -2px; }
  .picto-ia img { width: 56px; height: 56px; }
  .ia { padding: 16px; }
  .ia__tete { gap: 14px; }
  .ia__logo { width: 84px; height: 84px; }
  .ia .ia__verdict { font-size: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) { .picto-ia img { transition: none; } }

/* Accueil : les entrées du site, juste sous le hero */
.acc-parcourir { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; }
.acc-parcourir > a, .acc-parcourir > div { display: block; padding: 22px; border: 1px solid var(--trait); border-radius: 18px; background: var(--surface); color: var(--texte); text-decoration: none; }
.acc-parcourir > a:hover { border-color: var(--accent); text-decoration: none; }
.acc-parcourir h2 { margin: 0 0 6px; font-size: 1.25rem; }
.acc-parcourir p { margin: 0; color: var(--discret); }
.acc-parcourir__lettres { display: flex; gap: 8px; margin-top: 14px; }
.acc-parcourir__lettres a { display: flex; flex-direction: column; align-items: center; flex: 1 1 0; max-width: 64px; padding: 8px 4px; border-radius: 12px; color: #fff; font-weight: 800; font-size: 1.3rem; text-decoration: none; }
.acc-parcourir__lettres a small { font-size: .75rem; font-weight: 500; opacity: .9; }
.acc-parcourir__lettres a:hover { text-decoration: none; filter: brightness(1.08); }
.acc-parcourir__liens { display: flex; gap: 18px; margin-top: 14px; flex-wrap: wrap; font-weight: 600; }
@media (max-width: 720px) { .acc-parcourir { grid-template-columns: 1fr; } }

/* Rentrée littéraire : une section par lettre */
.rentree-lettres { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 8px; }
.rentree-groupe h2 { display: flex; align-items: center; gap: 12px; margin: 40px 0 14px; }

/* Logo (image) dans l'en-tête et le pied */
.logo img { display: block; height: 44px; width: auto; }
.pied .logo img { height: 56px; }
.menu__ia { color: var(--negatif) !important; }

/* Accueil : bande de la détection d'IA */
.acc-ia { background: #2a1215; color: #f6e9ea; }
.acc-ia h2 { color: #fff; }
.acc-ia .acc-surtitre { color: #ff9b9b; }
.acc-ia .acc-chapo { color: #d9b9bc; }
.acc-ia__couvs { display: flex; justify-content: center; align-items: center; min-width: 0; padding: 24px 8px; overflow: hidden; }
.acc-ia__couvs .couv { --l: 100px; }
.acc-ia__couvs > span { flex: none; margin-left: -40px; transform: rotate(calc((var(--i) - 3) * 4deg)) translateY(calc(var(--i) * 0px)); filter: drop-shadow(0 10px 18px rgb(0 0 0 / .45)); transition: transform .2s; }
.acc-ia__couvs > span:first-child { margin-left: 0; }
.acc-ia__couvs:hover > span { transform: rotate(calc((var(--i) - 3) * 6deg)) translateY(-4px); }
@media (max-width: 720px) { .acc-ia__couvs > span { margin-left: -52px; } .acc-ia__couvs .couv { --l: 84px; } }

/* Page des soupçons d'IA */
.ia-page__tete { display: flex; gap: 20px; align-items: center; margin: 8px 0 18px; }
.ia-page__tete img { width: 96px; height: 96px; flex: none; }
.ia-page__comptes { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 14px; padding: 0; list-style: none; }
.ia-page__comptes li { padding: 10px 14px; border-radius: 12px; background: var(--surface); box-shadow: var(--ombre); }
.ia-page__comptes b { font-size: 1.2rem; margin-right: 4px; }
.ia-page__compte--oui b { color: var(--negatif); }
.ia-page__liste { display: grid; gap: 14px; margin: 22px 0 40px; padding: 0; list-style: none; }
.ia-page__liste > li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: start; padding: 18px; border-radius: 16px; background: var(--surface); box-shadow: var(--ombre); }
.ia-page__liste h2 { margin: 0 0 2px; font-size: 1.2rem; }
.ia-page__part { margin: 10px 0 8px; font-weight: 600; color: var(--negatif); }
.ia-page__bande { display: block; width: 100%; height: 14px; border-radius: 4px; fill: var(--negatif); }
@media (max-width: 720px) { .menu__long { display: none; } .ia-page__tete { align-items: flex-start; } .ia-page__tete img { width: 56px; height: 56px; } .ia-page__liste .couv { --l: 84px; } }

/* Listes */
.listes { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin-top: 20px; }
.listes__carte { display: grid; gap: 12px; padding: 18px; border-radius: 16px; background: var(--surface); box-shadow: var(--ombre); color: var(--texte); text-decoration: none; }
.listes__carte:hover { text-decoration: none; box-shadow: 0 0 0 2px var(--accent), var(--ombre); }
.listes__carte > span:last-child { display: grid; gap: 4px; }
.listes__carte strong { font-size: 1.1rem; }
.listes__carte--rentree { background: linear-gradient(140deg, var(--accent), var(--violet)); color: #fff; align-content: end; min-height: 150px; }
.listes__carte--rentree .discret { color: rgb(255 255 255 / .85); }
.listes__couvs { display: flex; min-width: 0; overflow: hidden; padding: 4px 0 6px; }
.listes__couvs > span { flex: none; margin-right: -14px; filter: drop-shadow(2px 4px 6px rgb(16 24 40 / .25)); }
.classement { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; padding: 0; list-style: none; counter-reset: rang; }
.classement > li { position: relative; counter-increment: rang; }
.classement > li::before { content: counter(rang); position: absolute; z-index: 1; top: -8px; left: -8px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--texte); color: #fff; font-size: .8rem; font-weight: 700; }
.classement > li > .carte { height: 100%; }
.listes__autres { display: flex; flex-wrap: wrap; gap: 8px 18px; }

/* ── Livres jeunesse : note bêta, repère « bon appui », notions scolaires ──
   Le repère et les notions ont leur couleur (sarcelle), distincte des lettres
   et des axes : ce n'est pas une note. */
:root { --appui: #0f766e; --appui-pale: #e3f4f1; }
.beta { margin: 10px 0 14px; padding: 12px 16px; max-width: 52em; background: #fff4ed; border-radius: 12px; font-size: .9rem; }
.beta .pastille { margin-right: 6px; }
.axes--jeunesse .appreciation { letter-spacing: .04em; }
.pastille--appui { background: var(--appui-pale); color: var(--appui); }
.appui { margin-top: 20px; padding: 16px 20px; max-width: 52em; background: var(--appui-pale); border-radius: 16px; box-shadow: inset 4px 0 0 var(--appui); }
.appui p { margin: .35em 0; }
.appui .etiquette { margin: 0 0 6px; color: var(--appui); }
.appui__classe strong { color: var(--appui); }
.appui .appui__explique, .appui .appui__liens { font-size: .85rem; color: #374151; }
.notions-classe { margin-top: 26px; }
.notions-classe > h3, .notions-classe > h2 { margin-bottom: 4px; }
.notions-classe > h3 .pastille, .notions-classe > h2 .pastille, .rangs__titre .pastille { margin-left: 4px; font-family: var(--sans); font-size: .78rem; vertical-align: 2px; }
.notions { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.notions__ligne { padding: 14px 18px; background: var(--surface); border-radius: 16px; box-shadow: var(--ombre); }
.notions__ligne--riche { box-shadow: inset 4px 0 0 var(--appui), var(--ombre); }
.notions__tete { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.notions__tete h4 { margin: 0 4px 0 0; font-size: 1rem; font-weight: 600; }
.notions__mesure { margin: 4px 0 0; font-size: .9rem; color: #374151; font-variant-numeric: tabular-nums; }
.notions__reserve { margin: 2px 0 0; font-size: .85rem; color: #9a5b00; }
.notions__ligne .citations { margin-top: 6px; }
.rangs { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.rangs__ligne { display: flex; gap: 14px; align-items: flex-start; padding: 14px 18px; background: var(--surface); border-radius: 16px; box-shadow: var(--ombre); }
.rangs--serre { gap: 6px; }
.rangs--serre .rangs__ligne { padding: 10px 16px; }
.rangs__lettre { flex: none; width: 30px; height: auto; margin-top: 2px; border-radius: 3px; box-shadow: 0 1px 3px rgb(0 0 0 / .18); }
.rangs__texte { min-width: 0; flex: 1; }
.rangs__titre { margin: 0; }
.rangs__titre a { font-weight: 600; color: var(--texte); }
.rangs__titre a:hover { color: var(--accent); }
.rangs .citation { margin: 6px 0 0; font-size: .95rem; }
.classes { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.classes__carte { padding: 16px 20px; background: var(--surface); border-radius: 16px; box-shadow: var(--ombre); }
.classes__carte h2 { margin: 0; font-size: 1.7rem; }
.classes__carte p { margin: 4px 0 0; }
.classes__notions { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .9rem; }
@media (max-width: 640px) {
  .appui { padding: 14px 16px; }
  .rangs__ligne { padding: 12px 14px; gap: 10px; }
}
