/* Variables : toutes les couleurs et polices du site passent par ici. */
:root {
  /* Pages communes (accueil, romans, à propos, rencontres, contact) : crème */
  --portail-bg: #f6f3ee;
  --portail-fg: #1c1c1c;
  --portail-accent: #1c1c1c;
  --portail-accent-fg: #ffffff;
  --portail-soft: #ebe6dd;
  --portail-titre: "Cormorant Garamond", Georgia, serif;
  --portail-texte: "Inter", system-ui, sans-serif;
  --portail-radius: 6px;

  /* Conférences : blanc, bleu marine, filet or */
  --conf-bg: #ffffff;
  --conf-fg: #1f2a44;
  --conf-accent: #1f2a44;
  --conf-accent-fg: #ffffff;
  --conf-soft: #f3f1ec;
  --conf-gold: #b08d57;
  --conf-titre: "Cormorant Garamond", Georgia, serif;
  --conf-texte: "Inter", system-ui, sans-serif;
  --conf-radius: 0;

  /* Thrillers : vert d'eau, repris de La mariée de la fosse */
  --thr-bg: #0c1a1c;
  --thr-fg: #e8e4da;
  --thr-accent: #5fb3a8;
  --thr-accent-fg: #0c1a1c;
  --thr-soft: #14282b;
  --thr-titre: "Bebas Neue", Impact, sans-serif;
  --thr-texte: "Source Serif 4", Georgia, serif;
  --thr-radius: 0;

  /* Feel good : fond sable, boutons rose poudré, touche turquoise */
  --fg-bg: #f4ede4;
  --fg-fg: #4a2c33;
  --fg-accent: #f3c9c9;
  --fg-accent-fg: #4a2c33;
  --fg-soft: #fbf7f2;
  --fg-turquoise: #3ba7b5;
  --fg-titre: "Playfair Display", Georgia, serif;
  --fg-texte: "Lora", Georgia, serif;
  --fg-script: "Dancing Script", cursive;
  --fg-radius: 999px;

  /* Couleurs ponctuelles (badges, style de Noël, fonds sombres) */
  --blanc: #fff;
  --bientot: #b94a33;          /* badge « À paraître », étiquette « bientôt » */
  --noel-rouge: #b3202a;       /* style festif : badge */
  --noel-or: #c9a24a;          /* style festif : boutons */
  --noel-or-survol: #b8902f;
  --noel-texte: #2a1a0a;
  --nuit: #070f10;             /* fonds des pages En audio et À l'écran */
  --nuit-verte: #1b3a3d;
  --fg-surtitre: #8a4a5a;      /* feel good : petits titres manuscrits */
  --fg-badge-texte: #10363c;   /* feel good : texte des badges turquoise */

  --h-header: 64px;
}

/* Variables actives : sur toute zone portant data-univers (page entière ou carte) */
[data-univers="portail"] { --bg: var(--portail-bg); --fg: var(--portail-fg); --accent: var(--portail-accent); --accent-fg: var(--portail-accent-fg); --soft: var(--portail-soft); --titre: var(--portail-titre); --texte: var(--portail-texte); --radius: var(--portail-radius); }
[data-univers="conference"] { --bg: var(--conf-bg); --fg: var(--conf-fg); --accent: var(--conf-accent); --accent-fg: var(--conf-accent-fg); --soft: var(--conf-soft); --titre: var(--conf-titre); --texte: var(--conf-texte); --radius: var(--conf-radius); }
[data-univers="thriller"] { --bg: var(--thr-bg); --fg: var(--thr-fg); --accent: var(--thr-accent); --accent-fg: var(--thr-accent-fg); --soft: var(--thr-soft); --titre: var(--thr-titre); --texte: var(--thr-texte); --radius: var(--thr-radius); }
[data-univers="feelgood"] { --bg: var(--fg-bg); --fg: var(--fg-fg); --accent: var(--fg-accent); --accent-fg: var(--fg-accent-fg); --soft: var(--fg-soft); --titre: var(--fg-titre); --texte: var(--fg-texte); --radius: var(--fg-radius); }
[data-univers] { background: var(--bg); color: var(--fg); font-family: var(--texte); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-size: 1.0625rem; line-height: 1.65; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--titre); line-height: 1.12; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(2.4rem, 6.5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; }
[id] { scroll-margin-top: 7rem; }

.container { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.section { padding-block: 2.5rem; }
.centre { text-align: center; }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--accent-fg); padding: .5rem 1rem; z-index: 60; }
.skip:focus { left: 0; }
:focus-visible { outline: 3px solid var(--fg); outline-offset: 3px; }

/* En-tête collant, plus fin au défilement */
.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid color-mix(in srgb, var(--fg) 15%, transparent); background: color-mix(in srgb, var(--bg) 90%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: box-shadow .3s; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .9rem; flex-wrap: wrap; transition: padding .3s; }
.site-header.reduit { box-shadow: 0 4px 18px rgb(0 0 0 / .12); }
.site-header.reduit .header-inner { padding-block: .4rem; }
.site-header.reduit .logo { font-size: 1.4rem; }
.logo { font-family: var(--titre); font-weight: 700; font-size: 1.7rem; text-decoration: none; transition: font-size .3s; }
.menu { display: flex; align-items: center; gap: 1.4rem; }
.menu a { text-decoration: none; font-size: .95rem; }
.menu a:hover, .menu a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }
.menu-groupe { position: relative; }
.sous-menu { display: none; position: absolute; top: 100%; left: -1rem; min-width: 14rem; background: var(--bg); border: 1px solid color-mix(in srgb, var(--fg) 15%, transparent); padding: .5rem 0; box-shadow: 0 8px 24px rgb(0 0 0 / .12); }
.sous-menu a { display: block; padding: .5rem 1rem; }
.menu-groupe:hover .sous-menu, .menu-groupe:focus-within .sous-menu { display: block; }
.menu-toggle { display: none; background: none; border: 1px solid currentColor; color: inherit; padding: .4rem .9rem; font: inherit; cursor: pointer; border-radius: 4px; }
@media (max-width: 960px) {
  .menu-toggle { display: block; }
  .menu { display: none; flex-direction: column; align-items: flex-start; width: 100%; gap: .6rem; padding-bottom: .5rem; }
  .menu.ouvert { display: flex; }
  .sous-menu { display: block; position: static; border: 0; box-shadow: none; padding: 0 0 0 1rem; min-width: 0; background: none; }
  .sous-menu a { padding: .25rem 0; }
}

/* Boutons : la forme dépend de l'univers (variable --radius), texte toujours centré */
.boutons { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; text-align: center; padding: .65rem 1.3rem; background: var(--accent); color: var(--accent-fg); text-decoration: none; font-weight: 600; font-family: var(--texte); font-size: .95rem; border: 2px solid var(--accent); border-radius: var(--radius); cursor: pointer; transition: transform .2s, filter .2s, box-shadow .2s; }
.btn:hover { filter: brightness(1.06); transform: translateY(-2px); box-shadow: 0 6px 14px rgb(0 0 0 / .18); }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--fg); }
.a-venir { font-size: .85rem; opacity: .75; font-style: italic; }

/* Photos : polaroïd légèrement incliné */
.photo { margin: 0; background: #fff; padding: 10px 10px 14px; box-shadow: 0 6px 18px rgb(0 0 0 / .25); transform: rotate(-2deg); transition: transform .35s, box-shadow .35s; color: #333; }
.photos-col .photo:nth-child(even) { transform: rotate(2deg); }
.photo:hover { transform: rotate(0) scale(1.02); box-shadow: 0 12px 28px rgb(0 0 0 / .3); }
.photo img { width: 100%; border-radius: 2px; }
.photo figcaption { padding-top: .5rem; text-align: center; font-family: var(--fg-script); font-size: 1.15rem; }

/* Couvertures */
.couv { position: relative; }
.couv img { width: 100%; box-shadow: 0 8px 22px rgb(0 0 0 / .25); transition: transform .3s, box-shadow .3s; }
.livre:hover .couv img, .nouveaute:hover .couv img, .car-item:hover img { transform: translateY(-6px); box-shadow: 0 16px 32px rgb(0 0 0 / .35); }
.couverture-vide { aspect-ratio: 2 / 3; display: grid; place-items: center; text-align: center; padding: .6rem; background: var(--bg); border: 2px dashed var(--accent); font-family: var(--titre); font-size: 1rem; line-height: 1.2; }
.badge-couv { position: absolute; top: .5rem; left: -.4rem; background: var(--accent); color: var(--accent-fg); font-family: var(--texte); font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; padding: .2rem .6rem; box-shadow: 0 2px 6px rgb(0 0 0 / .3); }
.badge-bientot { background: var(--bientot); color: var(--blanc); }
.livre-grand .badge-couv { top: auto; bottom: .6rem; }

/* Livres : fiches détaillées (thrillers) */
.liste-grands { display: grid; gap: 2rem; }
.livre-grand { display: grid; grid-template-columns: 200px 1fr; gap: 1.75rem; align-items: start; padding: 1.25rem; background: var(--soft); border-radius: 8px; }
.livre-grand h3 { font-size: 1.9rem; }
.sur-titre { font-weight: 600; }
.complement { font-style: italic; }
@media (max-width: 640px) {
  .livre-grand { grid-template-columns: 1fr; }
  .livre-grand .couv { max-width: 220px; }
}

/* Témoignages */
.temoignages { background: var(--soft); padding-block: 2.5rem; margin-top: 2rem; }
.temoignages-liste { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
blockquote { margin: 0; }
blockquote p { font-size: 1.2rem; font-style: italic; margin-bottom: .4em; font-family: var(--titre); }
blockquote footer { font-size: .85rem; opacity: .85; }

/* Textes « flux » : pleine largeur, 1 colonne, texte agrandi (choix validé) */
.texte-flux { max-width: none; font-size: 1.1875rem; }
.hero-univers .accroche, .accroche-large { max-width: none; }

/* Pages de texte */
.texte-photo { display: grid; grid-template-columns: 1fr 340px; gap: 2.5rem; align-items: start; }
.photos-col { display: grid; gap: 1.5rem; }
.texte-long p { max-width: 68ch; }
@media (max-width: 800px) { .texte-photo { grid-template-columns: 1fr; } }
/* Icônes de réseaux et bloc « distinctions et agences » */
.icone { flex: none; vertical-align: -.125em; }
.reseau { display: inline-flex; align-items: center; gap: .3rem; }
.dist-liste { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .7rem; }
.dist-liste li { display: flex; gap: .6rem; align-items: baseline; font-size: .95rem; line-height: 1.4; }
.dist-emoji { font-size: 1.25rem; }
.dist-insta { display: inline-flex; vertical-align: middle; margin-left: .3rem; font-size: 1.15rem; }
.dist-reseau { margin: 0; }
.dist-reseau .btn { gap: .5rem; }
.distinctions-bande { margin-top: 2rem; padding: 1.5rem 2rem; background: var(--soft); border-radius: 10px; }
.distinctions-bande .dist-liste { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2rem; }
.distinctions-bande .dist-liste li { flex-direction: column; gap: .2rem; align-items: flex-start; }
.apropos-fin { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid color-mix(in srgb, var(--fg) 20%, transparent); }
.hero-univers { padding-block: 3.5rem 1.5rem; }
.surtitre { text-transform: uppercase; letter-spacing: .12em; font-size: .85rem; font-weight: 600; color: var(--accent); }
.accroche { font-size: 1.25rem; max-width: 46ch; font-family: var(--titre); font-weight: 500; }
.provisoire { display: inline-block; background: var(--soft); padding: .2rem .7rem; font-size: .85rem; border-radius: 3px; }

/* Sommaire collant des pages longues */
.sommaire { position: sticky; top: var(--h-header); z-index: 40; background: color-mix(in srgb, var(--bg) 92%, transparent); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border-bottom: 1px solid color-mix(in srgb, var(--fg) 12%, transparent); }
.sommaire .container { display: flex; gap: .5rem; flex-wrap: wrap; padding-block: .5rem; transition: padding .3s; }
.sommaire a { text-decoration: none; font-size: .85rem; font-weight: 600; padding: .25rem .8rem; border: 1px solid color-mix(in srgb, var(--fg) 30%, transparent); border-radius: 999px; transition: background .2s, color .2s, font-size .3s, padding .3s; }
/* Quand le bandeau rétrécit, le sommaire rétrécit aussi (classe posée par animations.js) */
html.entete-reduit .sommaire .container { padding-block: .25rem; }
html.entete-reduit .sommaire a { font-size: .78rem; padding: .15rem .7rem; }
.sommaire a:hover, .sommaire a.actif { background: var(--fg); color: var(--bg); }

/* Thèmes d'intervention (conférences) */
.themes li { margin-bottom: .3rem; }

/* Contact */
.email-grand { font-size: 1.3rem; font-family: var(--titre); font-weight: 600; }
.contact h2 { margin-top: 1.5em; }
.fin-contact { margin-top: 2rem; font-family: var(--titre); font-size: 1.3rem; }

/* Newsletter : bande pleine largeur, texte centré */
.newsletter-bande { margin-top: 3rem; padding-block: 2.5rem; text-align: center; border-top: 1px solid color-mix(in srgb, var(--fg) 15%, transparent); border-bottom: 2px solid color-mix(in srgb, var(--fg) 25%, transparent); }
.newsletter-bande + .site-footer { margin-top: 0; border-top: 0; }
.newsletter-bande .large { width: min(1400px, 100% - 3rem); margin-inline: auto; }
.newsletter h2 { font-size: clamp(1.4rem, 2.4vw, 2rem); margin-bottom: .3em; }
.newsletter h2 { text-wrap: balance; }
[data-univers="thriller"] .newsletter h2 { font-size: clamp(1.7rem, 2.4vw, 2.3rem); }
.newsletter p { max-width: none; margin-bottom: .8em; }

/* Pied de page compact */
.site-footer { margin-top: 3rem; border-top: 1px solid color-mix(in srgb, var(--fg) 15%, transparent); background: color-mix(in srgb, var(--soft) 45%, var(--bg)); font-size: .85rem; }
.footer-bas { text-align: center; padding-block: 1rem 1.2rem; }
.footer-bas p { margin: 0 0 .2em; }
.reseaux { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .2rem .9rem; padding: 0; margin: .4rem 0 0; font-size: .78rem; opacity: .85; }

/* Mobile : zones tactiles d'au moins 44 px (liens du pied de page, sommaire, icônes, flèches) */
@media (max-width: 800px) {
  .reseaux { gap: 0 .6rem; font-size: .85rem; }
  .reseaux a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: .3rem; }
  .sommaire .container { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .sommaire .container::-webkit-scrollbar { display: none; }
  .sommaire a { padding-block: .5rem; flex: none; white-space: nowrap; }
  html.entete-reduit .sommaire a { padding-block: .4rem; }
  .lien-chapitres a { display: inline-block; padding: .75rem .6rem; }
  .dist-insta { padding: .6rem; margin: -.6rem 0; }
  .menu a { display: inline-block; padding-block: .35rem; }
}

/* Page d'extrait */
.container-lecture { width: min(680px, 100% - 2.5rem); margin: 2rem auto; padding: 1.5rem; }
.extrait-sous { color: var(--accent); text-transform: uppercase; letter-spacing: .1em; font-size: .9rem; }
.extrait-texte { font-size: 1.15rem; line-height: 1.85; }
.extrait-texte h2 { margin-top: 2em; }
.extrait-fin { margin-top: 3rem; font-weight: 600; }
.fil a { text-decoration: none; }

/* Apparition en fondu au défilement (classes posées par animations.js) */
.apparait { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.apparait.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .apparait { opacity: 1; transform: none; transition: none; }
  .btn, .couv img, .photo, .site-header, .header-inner, .sommaire .container, .sommaire a { transition: none; }
}

/* Presse : cartes avec vignette et coupure en grand */
.presse-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); gap: 1.5rem; margin-top: 1.5rem; }
.presse-carte { display: grid; grid-template-columns: 150px 1fr; gap: 1.2rem; background: var(--soft); border-radius: 10px; padding: 1rem; }
.presse-vignette { padding: 0; border: 0; background: none; cursor: zoom-in; align-self: start; }
.presse-vignette img { width: 100%; height: 200px; object-fit: cover; object-position: top; border-radius: 4px; box-shadow: 0 4px 12px rgb(0 0 0 / .25); transition: transform .3s; }
.presse-vignette:hover img { transform: scale(1.04); }
.presse-texte { min-width: 0; }
.presse-texte h3 { font-size: 1.25rem; margin-bottom: .4em; }
.presse-media { font-size: .85rem; margin-bottom: .3em; opacity: .85; }
.presse-citation { font-style: italic; font-size: .95rem; }
.presse-dialog { border: 0; padding: 0; background: #111; max-width: min(96vw, 1000px); max-height: 94vh; overflow: auto; border-radius: 6px; }
.presse-dialog::backdrop { background: rgb(0 0 0 / .75); }
.presse-dialog img { display: block; width: 100%; height: auto; }
.presse-fermer { position: sticky; top: .5rem; float: right; margin: .5rem; z-index: 2; width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 0; background: #fff; color: #111; font-size: 1.5rem; cursor: pointer; }
@media (max-width: 520px) { .presse-carte { grid-template-columns: 1fr; } .presse-vignette img { height: 180px; } }

/* Page 404 */
.page-404-boutons { justify-content: center; margin-top: 1.5rem; }

/* Texte lu par les lecteurs d'écran seulement (ex. « (nouvel onglet) ») */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
