/* ═══════════════════════════════════════════════════════════════════════
   InstaLivre.fr — Fiches auteurs — feuille unique
   ───────────────────────────────────────────────────────────────────────
   Emplacement : wp-content/themes/generatepress_child/assets/fiche-auteur.css
   Chargement  : uniquement sur is_singular( 'auteur' ), via functions.php.

   MODÈLE DE RÉFÉRENCE : la fiche Walter Isaacson (variante f84866c5).
   Sa partie 1 est reprise à l'octet près. C'est elle qui fixe le design :
   photo ronde cerclée d'or, bandeau dégradé avec motif, cartes blanches à
   ombre douce, tableau à en-tête sombre, colonne latérale collante.

   PARTIE 2 : les classes que d'autres fiches emploient dans leur HTML et
   qu'Isaacson n'utilise pas. Sans elles, ces fiches afficheraient des blocs
   nus une fois leur CSS retiré. Toutes sont écrites avec les variables
   d'Isaacson (--gold, --cream, --dark…), jamais avec celles du socle.

   CE QUI A ÉTÉ VOLONTAIREMENT ÉCARTÉ, et pourquoi : les décorations du
   socle qui contrediraient Isaacson — le cadre décalé derrière la photo
   (.photo-frame::after), le tiret avant les intertitres (.sec-label::before),
   le guillemet géant des citations (.citation::before), le premier cellule
   du tableau en Cormorant (.bib-table td:first-child). Les reprendre aurait
   changé l'apparence de la fiche que vous avez choisie comme modèle.
   ═══════════════════════════════════════════════════════════════════════ */


/* ═══════════════════════════════════════════════════════════════════════
   PARTIE 1 — LE MODÈLE ISAACSON
   ═══════════════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --gold: #C5A059;
  --gold-light: #e8d5a3;
  --dark: #1a1208;
  --dark2: #2d2010;
  --cream: #faf7f2;
  --cream2: #f5f0e8;
  --text: #2c2415;
  --text2: #5a4e3a;
  --border: #e8ddd0;
  --radius: 10px;
  --shadow: 0 2px 16px rgba(26,18,8,.09);
}
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--f-texte); background: var(--cream); color: var(--text); line-height: 1.7; }

/* SKIP */
.skip { position: absolute; left: -9999px; top: 4px; background: var(--gold); color: #fff; padding: 8px 16px; border-radius: 4px; font-weight: 600; z-index: 9999; }
.skip:focus { left: 4px; }

/* BREADCRUMB */
.bc { background: var(--dark); padding: 10px 0; }
.bc-in { max-width: 1200px; margin: auto; padding: 0 24px; display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.bc-in a { color: var(--gold-light); font-size: 12px; text-decoration: none; font-weight: 500; }
.bc-in a:hover { color: #fff; }
.bc-sep { color: #7a6a50; font-size: 12px; }
.bc-current { color: #fff; font-size: 12px; font-weight: 600; }

/* HERO */
.hero { background: linear-gradient(135deg, var(--dark) 0%, var(--dark2) 60%, #3d2c10 100%); padding: 0 0 40px; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C5A059' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }
.hero-bar { height: 4px; background: linear-gradient(90deg, var(--gold), #e8c87a, var(--gold)); }
.hero-in { max-width: 1200px; margin: auto; padding: 40px 24px 0; display: flex; gap: 40px; align-items: flex-end; position: relative; z-index: 1; }
.photo-wrap { flex-shrink: 0; }
.photo-frame { width: 190px; height: 190px; border-radius: 50%; border: 4px solid var(--gold); overflow: hidden; background: var(--dark2); box-shadow: 0 8px 32px rgba(0,0,0,.4); }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-info { flex: 1; padding-bottom: 8px; }
.hero-eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.hero-name { font-family: var(--f-titre); font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 700; color: #fff; line-height: 1.1; margin-bottom: 10px; }
.hero-tagline { font-size: 15px; color: #c8b99a; font-style: italic; margin-bottom: 20px; font-family: var(--f-titre); font-size: 18px; }
.hero-stats { display: flex; gap: 28px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat-n { font-size: 1.6rem; font-weight: 700; color: var(--gold); font-family: var(--f-titre); line-height: 1; }
.stat-l { font-size: 11px; color: #8a7a60; text-transform: uppercase; letter-spacing: .08em; margin-top: 2px; }

/* AWARDS */
.awards { background: var(--dark2); border-bottom: 1px solid #3d2c10; }
.awards-in { max-width: 1200px; margin: auto; padding: 14px 24px; display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }
.award { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 500; color: var(--gold-light); white-space: nowrap; }
.award-star { width: 16px; height: 16px; background: var(--gold); clip-path: polygon(50% 0%,61% 35%,98% 35%,68% 57%,79% 91%,50% 70%,21% 91%,32% 57%,2% 35%,39% 35%); flex-shrink: 0; }

/* LAYOUT */
.main-wrap { max-width: 1200px; margin: 40px auto; padding: 0 24px; display: grid; grid-template-columns: 1fr 300px; gap: 32px; align-items: start; }
main { min-width: 0; }
aside { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 16px; }

/* SECTION */
.sec { background: #fff; border-radius: var(--radius); border: 1px solid var(--border); padding: 36px 40px; margin-bottom: 24px; box-shadow: var(--shadow); }
.sec-label { font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.sec-title { font-family: var(--f-titre); font-size: 1.9rem; font-weight: 700; color: var(--dark); line-height: 1.2; margin-bottom: 12px; }
.sec-rule { height: 2px; width: 48px; background: linear-gradient(90deg, var(--gold), transparent); margin-bottom: 24px; border-radius: 2px; }

/* PROSE */
.prose p { color: var(--text); font-size: 15px; line-height: 1.8; margin-bottom: 14px; }
.prose p:last-child { margin-bottom: 0; }
.prose a { color: var(--gold); text-decoration: underline; text-decoration-color: var(--gold-light); }
.prose a:hover { color: var(--dark); }

/* TOP 3 */
/* Trois colonnes imposées, et non « auto-fit » : avec un minimum de 220 px
   par carte, trois cartes plus les écarts dépassaient la largeur de la
   colonne principale, et la troisième passait à la ligne. Les trois livres
   incontournables doivent rester alignés. La bascule se fait aux points de
   rupture définis plus bas : deux colonnes sous 960 px, une sous 600 px. */
.top3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.book-card { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--cream); display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.book-card:hover { box-shadow: 0 8px 32px rgba(197,160,89,.18); transform: translateY(-2px); }
.book-badge { background: var(--dark); color: var(--gold); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 6px 12px; }
.book-cover { background: var(--cream2); display: flex; align-items: center; justify-content: center; padding: 20px; min-height: 160px; }
.book-cover img { max-height: 150px; max-width: 100%; object-fit: contain; border-radius: 4px; box-shadow: 0 4px 16px rgba(0,0,0,.15); }
.book-body { padding: 16px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.book-title { font-family: var(--f-titre); font-size: 1.1rem; font-weight: 700; color: var(--dark); text-decoration: none; line-height: 1.3; }
.book-title:hover { color: var(--gold); }
.book-meta { font-size: 11px; color: var(--text2); }
.stars { display: flex; gap: 3px; }
.star { width: 14px; height: 14px; background: var(--gold); clip-path: polygon(50% 0%,61% 35%,98% 35%,68% 57%,79% 91%,50% 70%,21% 91%,32% 57%,2% 35%,39% 35%); }
.star-e { background: #ddd; }
.book-blurb { font-size: 13px; color: var(--text2); line-height: 1.6; flex: 1; }
.btn-voir { display: inline-block; background: var(--dark); color: var(--gold); font-size: 12px; font-weight: 600; padding: 8px 14px; border-radius: 6px; text-decoration: none; text-align: center; letter-spacing: .06em; transition: background .2s; margin-top: 4px; }
.btn-voir:hover { background: var(--gold); color: #fff; }

/* ORDRE DE LECTURE */
.ordre-card { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 20px; }
.ordre-head { background: var(--dark); padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; }
.ordre-head h3 { font-family: var(--f-titre); font-size: 1.2rem; color: #fff; font-weight: 600; }
.tag-serie { background: var(--gold); color: var(--dark); font-size: 10px; font-weight: 700; padding: 3px 10px; border-radius: 20px; letter-spacing: .08em; text-transform: uppercase; }
.ordre-item { display: flex; align-items: center; gap: 16px; padding: 14px 20px; border-bottom: 1px solid var(--cream2); background: #fff; transition: background .15s; }
.ordre-item:last-child { border-bottom: none; }
.ordre-item:hover { background: var(--cream); }
.ordre-num { width: 32px; height: 32px; border-radius: 50%; background: var(--dark); color: var(--gold); font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-family: var(--f-titre); }
.ordre-info { flex: 1; min-width: 0; }
.ordre-titre { font-weight: 600; font-size: 14px; color: var(--dark); }
.ordre-sub { font-size: 12px; color: var(--text2); margin-top: 2px; }
.pbar { height: 4px; background: var(--cream2); border-radius: 2px; margin-top: 6px; overflow: hidden; }
.pbar-fill { height: 100%; width: 100%; background: linear-gradient(90deg, var(--gold), #e8c87a); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform .8s cubic-bezier(.4,0,.2,1); }
.badge { font-size: 10px; font-weight: 700; padding: 3px 9px; border-radius: 20px; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; flex-shrink: 0; }
.b-start { background: #e8f4e8; color: #2d7a2d; }
.b-next { background: #e8eef8; color: #2d4a8a; }
.b-opt { background: var(--cream2); color: var(--text2); }

/* BIBLIOGRAPHIE */
.table-wrap { overflow-x: auto; }
.bib-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.bib-table th { background: var(--dark); color: var(--gold); padding: 10px 14px; text-align: left; font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; white-space: nowrap; }
.bib-table td { padding: 10px 14px; border-bottom: 1px solid var(--cream2); vertical-align: middle; }
.bib-table tr:last-child td { border-bottom: none; }
.bib-table tr:nth-child(even) td { background: var(--cream); }
.tbadge { font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 20px; text-transform: uppercase; letter-spacing: .06em; }
.tb-solo { background: #e8eef8; color: #2d4a8a; }
.tb-serie { background: #f4e8e8; color: #8a2d2d; }
.tstar { color: var(--gold); font-size: 13px; white-space: nowrap; }

/* BIOGRAPHIE */
.bio-boxes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 24px; }
.bio-box { background: var(--cream); border: 1px solid var(--border); border-radius: 8px; padding: 14px; text-align: center; }
.bio-box-l { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--text2); margin-bottom: 4px; }
.bio-box-v { font-family: var(--f-titre); font-size: 1.15rem; font-weight: 700; color: var(--dark); line-height: 1.2; }

/* CITATION */
.citation { border-left: 3px solid var(--gold); padding: 16px 20px; background: var(--cream); border-radius: 0 8px 8px 0; margin-top: 20px; }
.cit-txt { font-family: var(--f-titre); font-size: 1.25rem; font-style: italic; color: var(--dark); margin-bottom: 8px; }
.cit-src { font-size: 12px; color: var(--text2); font-weight: 600; }

/* SOURCES */
.sources { display: flex; flex-direction: column; gap: 12px; }
.source-lien { display: flex; align-items: center; gap: 14px; border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; background: #fff; text-decoration: none; transition: border-color .2s, box-shadow .2s; }
.source-lien:hover { border-color: var(--gold); box-shadow: 0 2px 12px rgba(197,160,89,.12); }
.src-ico { font-size: 1.4rem; flex-shrink: 0; }
.src-body { flex: 1; min-width: 0; }
.src-name { font-weight: 600; font-size: 14px; color: var(--dark); }
.src-desc { font-size: 12px; color: var(--text2); margin-top: 2px; }
.src-arr { color: var(--gold); font-weight: 700; font-size: 16px; }

/* FAQ */
.faq-wrap { display: flex; flex-direction: column; gap: 10px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq-btn { width: 100%; background: #fff; border: none; cursor: pointer; padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left; transition: background .15s; }
.faq-btn:hover { background: var(--cream); }
.faq-q { font-weight: 600; font-size: 14.5px; color: var(--dark); flex: 1; }
.faq-ico { color: var(--gold); flex-shrink: 0; transition: transform .25s; }
.faq-btn[aria-expanded="true"] .faq-ico { transform: rotate(45deg); }
.faq-ans { display: none; }
.faq-ans.open { display: block; }
.faq-ans-in { padding: 0 20px 16px; background: #fff; }
.faq-txt { font-size: 14px; color: var(--text2); line-height: 1.75; }

/* SIDEBAR */
.s-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.s-head { background: var(--dark); color: var(--gold); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 10px 14px; }
.i-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 9px 14px; border-bottom: 1px solid var(--cream2); font-size: 13px; }
.i-row:last-child { border-bottom: none; }
.i-k { color: var(--text2); font-weight: 500; flex-shrink: 0; }
.i-v { color: var(--dark); font-weight: 600; text-align: right; }
.tags-wrap { padding: 12px 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.g-tag { display: inline-block; background: var(--cream2); border: 1px solid var(--border); border-radius: 20px; padding: 4px 12px; font-size: 12px; font-weight: 600; color: var(--dark); text-decoration: none; transition: background .15s, border-color .15s; }
.g-tag:hover { background: var(--gold); border-color: var(--gold); color: #fff; }
.sim-list { list-style: none; padding: 0; }
.sim-item { padding: 10px 14px; border-bottom: 1px solid var(--cream2); }
.sim-item:last-child { border-bottom: none; }
.sim-item a { font-weight: 600; font-size: 13.5px; color: var(--dark); text-decoration: none; display: block; margin-bottom: 2px; }
.sim-item a:hover { color: var(--gold); }
.sim-item span { font-size: 11.5px; color: var(--text2); }
.disclaimer { font-size: 11px; color: var(--text2); line-height: 1.5; padding: 12px 14px; background: var(--cream2); border-radius: var(--radius); border: 1px solid var(--border); }

/* SCROLL TOP */
.scroll-top { position: fixed; bottom: 28px; right: 28px; width: 44px; height: 44px; border-radius: 50%; background: var(--dark); border: 2px solid var(--gold); cursor: pointer; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; z-index: 999; }
.scroll-top.vis { opacity: 1; pointer-events: auto; }
.scroll-top:hover { transform: translateY(-3px); background: var(--gold); }

@media (max-width: 900px) {
  .main-wrap { grid-template-columns: 1fr; }
  aside { position: static; }
  .hero-in { flex-direction: column; align-items: flex-start; }
  .bio-boxes { grid-template-columns: repeat(2, 1fr); }
  .sec { padding: 24px 20px; }
}
/* Sous 780 px la colonne principale n'a plus la place pour trois cartes :
   on passe à deux, puis à une seule sur téléphone. */
@media (max-width: 780px) {
  .top3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .hero-stats { gap: 16px; }
  .top3 { grid-template-columns: 1fr; }
  .bio-boxes { grid-template-columns: 1fr 1fr; }
  .awards-in { gap: 12px; }
}


/* ═══════════════════════════════════════════════════════════════════════
   PARTIE 2 — COMPLÉMENTS
   Classes employées dans le HTML d'autres fiches, absentes du modèle.
   Sans elles, ces fiches afficheraient des blocs nus une fois leur CSS
   retiré. Écrites avec les variables d'Isaacson.
   ═══════════════════════════════════════════════════════════════════════ */

/* — Fondations que le modèle ne pose pas — */
a { color: var(--gold); text-decoration: none; transition: color .2s; }
a:hover { color: var(--dark); }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, h4 { font-family: var(--f-titre); font-weight: 600; color: var(--dark); letter-spacing: -.01em; }
.prose strong { color: var(--dark); font-weight: 600; }
.prose em { color: var(--text2); font-style: italic; }

/* — La barre de progression est animée par du JavaScript qui ajoute .on.
     Sans cette règle elle reste invisible, car .pbar-fill part à scaleX(0). — */
.pbar-fill.on { transform: scaleX(1); }

/* — Survol de couverture, présent sur certaines fiches — */
.book-card:hover .book-cover img { transform: scale(1.04); transition: transform .4s ease; }

/* — Badges de position dans une série — */
.b-suite { background: var(--cream2); color: var(--text2); }
.b-solo { background: #e8eef8; color: #2d4a8a; }
.b-continue { background: var(--cream); color: #8a6a20; border: 1px solid var(--border); }
.b-tome { background: var(--cream2); color: var(--text2); }
.b-novf { background: #eee; color: #888; }

/* — Badges de type d'ouvrage, dans le tableau de bibliographie — */
.tb-saga { background: #e8f4e8; color: #2d7a2d; }
.tb-bd { background: #f6ecd8; color: #8a6a20; }
.tb-recueil { background: #f0f4e8; color: #4a6a2a; }
.tb-essai { background: #fdf3e0; color: #7a4e00; }
.tb-bio { background: #f6ecd8; color: #8a6a20; }
.tb-jeunesse { background: #eef4e8; color: #4a6b3a; }
.tb-poesie { background: #f3e5f5; color: #6a1b9a; }
.tb-novella { background: #fce4ec; color: #c62828; }
.tb-roman { background: #e6dcc6; color: #5a4a2f; }
.tb-nouv { background: #d4c5a3; color: #5a4a2f; }
.tb-recit { background: #c9b886; color: var(--dark); }
.tb-ya { background: #f8eee8; color: #6a3a2d; }
.tb-journal { background: #f0e8f6; color: #5b2d8e; }
.tb-cahier { background: #f8f4e8; color: #8c6b2d; }
.tb-polar { background: #f0e8f8; color: #6b2d8c; }
.tb-devperso { background: #e8f0e8; color: #2d6e2d; }
.tb-collab { background: #fff3d6; color: #7a5e10; }
.tb-co { background: #fff7ed; color: #c2410c; }
.tb-novf { background: #eee; color: #888; }

/* — Lien d'achat dans le tableau — */
.bib-cta { display: inline-block; font-size: 12px; font-weight: 700; color: var(--gold); border: 1px solid var(--gold); border-radius: 4px; padding: 4px 10px; white-space: nowrap; text-decoration: none; transition: background .15s, color .15s; }
.bib-cta:hover { background: var(--gold); color: var(--dark); }

/* — Encadré de réponse directe (GEO) — */
.geo-answer, .geo-answer-box, .geo-answer-block {
  background: #fff8e7; border-left: 5px solid var(--gold); border-radius: 0 8px 8px 0;
  padding: 14px 20px; margin-bottom: 20px; font-size: 15px; line-height: 1.7; color: #3a2e00;
}
.geo-answer strong, .geo-answer-box strong, .geo-answer-block strong { color: var(--dark); }
.geo-list { list-style: none; padding: 0; }
.geo-item { padding: .4rem 14px; border-bottom: 1px solid var(--cream2); font-size: 12.5px; display: flex; align-items: center; gap: 8px; }
.geo-item:last-child { border-bottom: none; }
.geo-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }

/* — Note sur l'édition française — */
.note-vf { background: #fff8e1; border: 1px solid #ffe082; border-left: 4px solid var(--gold); border-radius: 6px; padding: .9rem 1.2rem; margin-bottom: 1.5rem; font-size: 14px; color: var(--text2); line-height: 1.6; }
.note-vf strong { color: var(--dark); }

/* — Appel à l'action de fin de fiche — */
.auteur-cta, .cta-block { background: var(--dark); border-radius: var(--radius); padding: 28px 32px; margin: 32px 0; text-align: center; }
.auteur-cta-txt, .cta-sub { color: rgba(255,255,255,.75); font-size: 15px; margin: 0 0 16px; line-height: 1.6; }
.cta-label { font-size: 9.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: .7rem; }
.cta-title { font-family: var(--f-titre); font-size: 1.8rem; font-weight: 700; color: #fff; line-height: 1.2; margin-bottom: .7rem; }
.cta-btns { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.auteur-cta-btn, .btn-primary { display: inline-block; background: var(--gold); color: var(--dark); font-weight: 700; font-size: 15px; padding: 14px 28px; border-radius: 8px; text-decoration: none; transition: opacity .2s, transform .15s; }
.auteur-cta-btn:hover, .btn-primary:hover { opacity: .9; transform: translateY(-2px); color: var(--dark); }
.btn-ghost { display: inline-block; padding: 12px 24px; background: transparent; color: rgba(255,255,255,.75); border: 1px solid rgba(255,255,255,.25); border-radius: 8px; font-weight: 600; font-size: 14px; text-decoration: none; transition: background .2s, color .2s; }
.btn-ghost:hover { background: rgba(255,255,255,.08); color: #fff; }

/* — Grille d'expertise — */
.expertise-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.exp-card { background: var(--cream); border: 1px solid var(--border); border-radius: 8px; padding: 14px 16px; }
.exp-icon { font-size: 1.2rem; margin-bottom: 5px; }
.exp-title { font-family: var(--f-titre); font-size: 1rem; font-weight: 700; color: var(--dark); }
.exp-desc { font-size: 12.5px; color: var(--text2); line-height: 1.5; }

/* — Grille « style d'écriture » — */
.style-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.style-item { background: var(--cream); border: 1px solid var(--border); border-top: 3px solid var(--gold); border-radius: 8px; padding: 14px 16px; }
.style-item-title { font-family: var(--f-titre); font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: .4rem; }
.style-item-desc { font-size: 13px; color: var(--text2); line-height: 1.6; }

/* — Boutons de réseaux, dans la colonne latérale — */
.social-wrap { padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.social-btn { display: flex; align-items: center; gap: 10px; padding: .5rem .7rem; border: 1px solid var(--border); border-radius: 6px; font-size: 12.5px; font-weight: 600; color: var(--dark); text-decoration: none; transition: border-color .2s, color .2s; }
.social-btn:hover { border-color: var(--gold); color: var(--gold); }
.social-ico { font-size: 14px; width: 20px; text-align: center; }

/* — Divers — */
.genres-wrap { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 14px; }
.award-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }
.i-v.gold, .i-v.coral { color: var(--gold); }
.sim-item:hover { background: var(--cream); }
.disclaimer strong { color: var(--text2); }
.faq-txt strong { color: var(--dark); font-weight: 600; }
.faq-txt a { color: var(--gold); }
.faq-item:last-child { border-bottom: none; }
.faq-btn:hover .faq-q, .faq-btn[aria-expanded="true"] .faq-q { color: var(--gold); }
.seo-sig { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid var(--border); }
.seo-sig p { font-size: 13.5px; color: var(--text2); line-height: 1.7; }

/* — Certaines fiches emploient <details> au lieu de boutons pour la FAQ — */
.faq-item details { width: 100%; }
.faq-item summary, details.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 20px; cursor: pointer; list-style: none;
  font-size: 14.5px; font-weight: 600; color: var(--dark);
}
.faq-item summary::-webkit-details-marker, details.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; color: var(--gold); font-size: 1.2rem; font-weight: 700; flex-shrink: 0; }
.faq-item details[open] summary::after { content: '\2212'; }
.faq-item details[open] .faq-ico { transform: rotate(45deg); }

/* — Respect des préférences d'animation — */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .pbar-fill { transform: scaleX(1); }
}


/* ═══════════════════════════════════════════════════════════════════════
   PARTIE 3 — NORMALISATION DE LA MISE EN PAGE
   ───────────────────────────────────────────────────────────────────────
   Pourquoi ces « !important », alors que c'est une mauvaise pratique.

   Une partie des fiches porte encore sa propre balise <style> dans le
   contenu. Ce bloc est écrit APRÈS cette feuille dans la page : à
   spécificité égale, le dernier l'emporte. La feuille du thème est donc
   ignorée sur ces fiches, d'où des « 3 livres incontournables » qui
   s'alignent chez Aya Estrela et pas chez Bernhard Schlink.

   Ces quelques règles forcent la structure — et elles seules. Aucune
   couleur, aucune typographie n'est forcée : le style propre à chaque
   fiche reste visible, seule la grille est remise d'aplomb.

   À SUPPRIMER une fois les <style> retirés des contenus
   (Outils → Extraire CSS auteurs). Ce n'est pas une solution, c'est une
   attelle.
   ═══════════════════════════════════════════════════════════════════════ */

/* Les trois livres, toujours sur une ligne. */
.top3 {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 20px !important;
  align-items: stretch !important;
}
.top3 > * { min-width: 0 !important; margin: 0 !important; }

/* Cartes de hauteur égale, quel que soit le texte. */
.book-card {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  margin: 0 !important;
}
.book-body { flex: 1 1 auto !important; display: flex !important; flex-direction: column !important; }
.btn-voir { margin-top: auto !important; }

/* Couvertures : une fenêtre de hauteur fixe, l'image y est centrée sans
   être déformée ni rognée. Les fiches dont les visuels sont des photos
   au format paysage cessent ainsi de creuser un vide au-dessus du titre. */
.book-cover {
  height: 210px !important;
  min-height: 0 !important;
  padding: 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
}
.book-cover img {
  width: auto !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  margin: 0 auto !important;
  display: block !important;
}

/* La colonne principale ne doit jamais se décaler vers la droite. */
.main-wrap { margin-left: auto !important; margin-right: auto !important; }
main { min-width: 0 !important; }
.sec > .top3, .sec .top3 { margin-left: 0 !important; margin-right: 0 !important; }

@media (max-width: 780px) {
  .top3 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .book-cover { height: 180px !important; }
}
@media (max-width: 560px) {
  .top3 { grid-template-columns: 1fr !important; }
  .book-cover { height: 220px !important; }
}

/* ══════════════════════════════════════════════════════════════════
   PARTIE 4 — Colonne principale sans <main> imbriqué
   Ajoutée le 20 septembre 2026, pour le prompt n° 2 v2.

   .main-wrap est une grille « 1fr 300px » dont la première colonne était
   ciblée par la balise <main>. Or le gabarit single-auteur.php ouvre déjà
   un <main id="main-content"> : un second <main> dans le contenu est du
   HTML invalide — la spécification n'en admet qu'un par document.

   Les nouvelles fiches écrivent donc <div class="col"> à la place. La règle
   min-width:0 est indispensable : sans elle, un élément de grille prend la
   largeur de son contenu le plus large — un tableau, une longue URL — et
   déborde de la colonne.

   Les anciennes fiches qui utilisent encore <main> continuent de fonctionner :
   la règle « main { min-width: 0 } » plus haut n'est pas retirée.
   ══════════════════════════════════════════════════════════════════ */

.main-wrap > .col { min-width: 0; }

/* ══ Lot 4 — contrastes (05/10/2026) ════════════════════════════════
   L'or #C5A059 n'atteint que 2,4:1 sur fond clair : illisible pour une
   partie des lecteurs, et signalé par PageSpeed (accessibilité). Il reste
   tel quel sur les fonds sombres (bandeaux, badges, en-têtes de tableau)
   et passe à l'or foncé #8a6520 (5,3:1) sur les fonds clairs. */
.sec-label, .cta-label, .prose a, .faq-txt a, .bib-cta, .src-arr, .faq-ico,
.i-v.gold, .i-v.coral, .faq-item summary::after,
.faq-btn:hover .faq-q, .faq-btn[aria-expanded="true"] .faq-q,
.book-title:hover, .sim-item a:hover { color: #8a6520; }
.bib-cta { border-color: #8a6520; }
.prose a { text-decoration-color: rgba(138,101,32,.45); }
.b-novf, .tb-novf { color: #6b6b6b; }
.stat-l { color: #b3a487; }

/* ══ Lot 4 (suite) — mobile ═════════════════════════════════════════ */
/* Distinctions : le texte sortait du bandeau (white-space: nowrap). */
@media (max-width: 768px) {
  .awards-in { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px 18px; }
  .award { white-space: normal; text-align: left; align-items: flex-start; line-height: 1.45; }
  .award-star { margin-top: 2px; }
}
/* Bouton « haut de page » : la flèche était écrasée en un point ;
   sur téléphone, il cachait le texte et les boutons d'achat. */
.scroll-top svg { width: 16px !important; height: 16px !important; display: block; }
@media (max-width: 768px) { .scroll-top { display: none !important; } }
