/* Le Secret des Rothschild — feuille de style (sans dépendance externe) */
:root {
  --nuit: #0f1a2b;
  --nuit-2: #14223a;
  --nuit-3: #22385a;
  --or: #c9a24d;
  --or-clair: #e0c27a;
  --creme: #efe6d2;
  --creme-doux: #d3cab6;   /* texte secondaire sur fond nuit (contraste > 10:1) */
  --rouge: #8a2b2b;
  --serif: Georgia, "Times New Roman", "DejaVu Serif", "Liberation Serif", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "DejaVu Sans", Arial, sans-serif;
  --largeur: 1180px;
  --nav-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--nuit);
  color: var(--creme);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--or-clair); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--or-clair); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: normal; line-height: 1.15; margin: 0; }
p { margin: 0 0 1em; }

.conteneur { max-width: var(--largeur); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lien-evitement { position: absolute; left: 8px; top: -60px; background: var(--or); color: var(--nuit); padding: 10px 16px; z-index: 100; font-family: var(--sans); }
.lien-evitement:focus { top: 8px; }

/* Emplacements à compléter : visibles volontairement */
.a-completer {
  border: 2px dashed #e0a84d;
  background: rgba(224, 168, 77, .08);
  padding: 18px 20px;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--creme);
}
.a-completer strong.tag, .tag-ac {
  display: inline-block;
  background: #e0a84d;
  color: var(--nuit);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 2px 8px;
  margin-right: 6px;
  vertical-align: middle;
}

/* Boutons */
.btn, .btn-2 {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  font-family: var(--sans);
  font-size: 15px; font-weight: 700; letter-spacing: 1px;
  text-decoration: none;
  border: 1px solid var(--or);
  transition: background .2s, color .2s;
}
.btn { background: var(--or); color: var(--nuit); }
.btn:hover { background: var(--or-clair); }
.btn-2 { background: transparent; color: var(--or-clair); font-weight: 600; }
.btn-2:hover { background: rgba(201, 162, 77, .15); }

/* 1) Navigation collante */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15, 26, 43, .96);
  border-bottom: 1px solid rgba(201, 162, 77, .3);
  backdrop-filter: blur(6px);
}
.nav .conteneur { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--nav-h); }
.logo { color: var(--or); text-decoration: none; font-size: 18px; letter-spacing: 4px; white-space: nowrap; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 26px; }
.nav ul a { color: var(--creme-doux); text-decoration: none; font-family: var(--sans); font-size: 13px; letter-spacing: 2px; text-transform: uppercase; }
.nav ul a:hover { color: var(--or-clair); }
.nav-droite { display: flex; align-items: center; gap: 10px; }
.nav .btn { min-height: 44px; padding: 10px 18px; font-size: 14px; white-space: nowrap; }
.menu-bouton {
  display: none; background: none; border: 1px solid rgba(201,162,77,.5); color: var(--creme);
  width: 44px; height: 44px; cursor: pointer; padding: 0;
}
.menu-bouton span, .menu-bouton span::before, .menu-bouton span::after {
  display: block; width: 20px; height: 2px; background: var(--creme); margin: 0 auto; position: relative; content: "";
}
.menu-bouton span::before { position: absolute; top: -6px; }
.menu-bouton span::after { position: absolute; top: 6px; }

/* 2) Hero */
.hero {
  background: radial-gradient(circle at 75% 40%, var(--nuit-3), var(--nuit) 60%);
  padding: 72px 0 64px;
}
.hero .conteneur { display: flex; align-items: center; gap: 60px; }
.hero-texte { flex: 1.2; }
.surtitre { font-family: var(--sans); color: var(--or); font-size: 13px; letter-spacing: 3px; text-transform: uppercase; margin: 0; }
.hero h1 { font-size: clamp(38px, 5.2vw, 64px); margin: 18px 0 22px; }
.hero h1 em { color: var(--or); font-style: italic; display: block; }
.hero-sous { font-size: 20px; color: var(--creme-doux); max-width: 580px; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-auteur { margin-top: 22px; font-family: var(--sans); font-size: 14px; color: var(--creme-doux); }
.hero-visuel { flex: 0 0 auto; display: flex; justify-content: center; }

.couverture {
  width: 300px; aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, #1c2b45, #0a1220);
  border: 1px solid var(--or);
  box-shadow: 25px 30px 60px rgba(0, 0, 0, .65);
  display: flex; flex-direction: column; justify-content: space-between; align-items: center;
  padding: 36px 24px; text-align: center;
}
.couverture.a-image { padding: 0; border: 0; background: none; }
.couverture-img { width: 100%; height: 100%; object-fit: cover; }
.couverture small { font-family: var(--sans); letter-spacing: 3px; font-size: 12px; color: var(--or); }
.couverture .titre-couv { font-size: 34px; line-height: 1.15; }
.couverture .filet { width: 60px; height: 1px; background: var(--or); }
.couverture .fleches { display: flex; gap: 8px; }
.couverture .fleches i { display: block; width: 3px; height: 46px; background: var(--or); position: relative; }
.couverture .fleches i::after {
  content: ""; position: absolute; top: -6px; left: -5px;
  border-left: 6.5px solid transparent; border-right: 6.5px solid transparent; border-bottom: 9px solid var(--or);
}

/* 3) Bandeau chiffres */
.chiffres { background: rgba(201, 162, 77, .1); border-top: 1px solid rgba(201,162,77,.25); border-bottom: 1px solid rgba(201,162,77,.25); }
.chiffres ul { list-style: none; margin: 0 auto; padding: 22px 24px; max-width: var(--largeur); display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; text-align: center; }
.chiffres strong { display: block; font-size: 28px; color: var(--or); font-weight: normal; }
.chiffres span { font-family: var(--sans); font-size: 14px; color: var(--creme-doux); }

/* Sections */
.section { padding: 84px 0; }
.section-titre { text-align: center; margin-bottom: 44px; }
.section-titre .surtitre { margin-bottom: 10px; }
.section-titre h2 { font-size: clamp(30px, 3.6vw, 42px); }
.section-titre p { font-family: var(--sans); color: var(--creme-doux); max-width: 640px; margin: 14px auto 0; font-size: 16px; }

/* 4) Le livre */
.livre-grille { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: start; }
.livre-texte p { font-size: 19px; }
.livre-texte .lettrine::first-letter { float: left; font-size: 64px; line-height: .9; padding: 6px 10px 0 0; color: var(--or); }
.fiche { background: var(--nuit-2); border: 1px solid rgba(201,162,77,.35); padding: 28px; font-family: var(--sans); font-size: 15px; }
.fiche h3 { font-family: var(--serif); font-size: 22px; color: var(--or); margin-bottom: 16px; }
.fiche dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; }
.fiche dt { color: var(--creme-doux); }
.fiche dd { margin: 0; }
.pour-qui { margin-top: 28px; }
.pour-qui ul { padding-left: 0; list-style: none; margin: 12px 0 0; }
.pour-qui li { padding-left: 26px; position: relative; margin-bottom: 8px; font-family: var(--sans); font-size: 16px; }
.pour-qui li::before { content: "◆"; color: var(--or); position: absolute; left: 0; font-size: 12px; top: 4px; }

/* 5) Saga : frise */
.saga { background: linear-gradient(180deg, var(--nuit), #0c1524); }
.frise { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; position: relative; }
.frise::before { content: ""; position: absolute; left: 4%; right: 4%; top: 22px; height: 2px; background: linear-gradient(90deg, transparent, var(--or), transparent); }
.etape { position: relative; padding-top: 56px; }
.etape::before {
  content: ""; position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  width: 18px; height: 18px; border-radius: 50%; background: var(--nuit); border: 3px solid var(--or);
}
.carte-ville { background: var(--nuit-2); border: 1px solid rgba(201,162,77,.35); padding: 24px 20px; height: 100%; }
.carte-ville .annee { color: var(--or); font-size: 30px; display: block; }
.carte-ville h3 { font-size: 22px; margin: 6px 0 4px; }
.carte-ville .frere { font-family: var(--sans); font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: var(--or-clair); margin-bottom: 10px; }
.carte-ville p { font-family: var(--sans); font-size: 15px; color: var(--creme-doux); margin: 0; }
.note-frise { font-family: var(--sans); font-size: 14px; color: var(--creme-doux); text-align: center; margin-top: 30px; }

/* 6) Mythes */
.mythes-grille { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.mythe { background: var(--creme); color: var(--nuit); padding: 26px 22px; display: flex; flex-direction: column; }
.mythe .label { font-family: var(--sans); font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: #5a4a2a; }
.mythe s { color: var(--rouge); font-size: 20px; text-decoration-thickness: 2px; margin: 6px 0 16px; display: block; }
.mythe .fleche { color: #7a5f22; font-size: 22px; line-height: 1; }
.mythe p { font-family: var(--sans); font-size: 15px; margin: 10px 0 0; }
.mythe .contexte { color: #2b3445; }
.mythe .a-completer { color: var(--nuit); background: #f7e6c2; border-color: #a5741f; margin-top: auto; font-size: 14px; padding: 12px 14px; }
.mythe .a-completer + .a-completer { margin-top: 10px; }
.mythe .corps { margin-bottom: 16px; }

/* 7) Auteur */
.auteur-grille { display: grid; grid-template-columns: 220px 1fr; gap: 44px; align-items: start; max-width: 940px; margin: 0 auto; }
.portrait {
  width: 220px; aspect-ratio: 4 / 5; background: var(--nuit-2); border: 1px dashed #e0a84d;
  display: flex; align-items: center; justify-content: center; text-align: center;
  font-family: var(--sans); font-size: 14px; color: var(--creme-doux); padding: 16px;
}
.auteur-texte h3 { font-size: 28px; margin-bottom: 14px; }

/* 8) Extrait */
.extrait { background: var(--creme); color: var(--nuit); }
.extrait .surtitre { color: #6b521c; }
.extrait .section-titre p { color: #3a4253; }
.extrait-page {
  max-width: 760px; margin: 0 auto; background: #fbf6ea; padding: 48px 56px;
  box-shadow: 0 20px 50px rgba(15, 26, 43, .18); border: 1px solid #d9cba8;
}
.extrait-page .a-completer { color: var(--nuit); background: #f7e6c2; border-color: #a5741f; }
.extrait-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px; }
.extrait .btn-2 { color: var(--nuit); border-color: var(--nuit); }
.extrait .btn-2:hover { background: rgba(15,26,43,.08); }
.extrait .btn { border-color: var(--nuit); }


/* 9) Achat */
.achat { background: var(--or); color: var(--nuit); text-align: center; }
.achat .surtitre { color: var(--nuit); }
.achat h2 { font-size: clamp(30px, 3.6vw, 42px); margin: 10px 0 10px; }
.achat .intro { font-family: var(--sans); font-size: 17px; margin-bottom: 34px; }
.formats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 900px; margin: 0 auto 36px; }
.format { background: rgba(15,26,43,.08); border: 1px solid rgba(15,26,43,.35); padding: 18px; }
.format h3 { font-size: 20px; }
.format .prix { font-size: 30px; display: block; margin-top: 4px; }
.format small { font-family: var(--sans); font-size: 13px; }
.libraires { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; list-style: none; padding: 0; margin: 0; }
.libraires a {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; min-width: 170px;
  background: var(--nuit); color: var(--creme); text-decoration: none;
  font-family: var(--sans); font-size: 16px; font-weight: 600; padding: 12px 22px;
}
.libraires a:hover { background: #1d2d48; }
.libraires a:focus-visible { outline-color: var(--nuit); }
.achat .mention { font-family: var(--sans); font-size: 13px; margin: 24px 0 0; }

/* 10) Pied de page */
.pied { background: #0a1220; padding: 44px 0 110px; font-family: var(--sans); font-size: 14px; color: var(--creme-doux); }
.pied .conteneur { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.pied a { color: var(--creme); }
.pied ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.pied a { display: inline-block; padding: 6px 0; }

/* Barre d'achat mobile (accessible au pouce) */
.barre-achat { display: none; }

/* Mentions légales */
.page-simple { max-width: 820px; margin: 0 auto; padding: 60px 24px 80px; }
.page-simple h1 { font-size: 40px; margin-bottom: 30px; }
.page-simple h2 { font-size: 24px; color: var(--or); margin: 36px 0 12px; }
.page-simple p, .page-simple li { font-family: var(--sans); font-size: 16px; }

/* ------- Responsive ------- */
@media (max-width: 1100px) {
  .mythes-grille { grid-template-columns: repeat(2, 1fr); }
  .nav ul { gap: 18px; }
}
@media (max-width: 960px) {
  .menu-bouton { display: inline-block; }
  .nav ul {
    display: none; position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--nuit); border-bottom: 1px solid rgba(201,162,77,.35);
    padding: 8px 0;
  }
  .nav ul.ouvert { display: flex; }
  .nav ul a { display: block; padding: 14px 24px; font-size: 15px; }
  .hero .conteneur { flex-direction: column; gap: 40px; text-align: left; }
  .livre-grille { grid-template-columns: 1fr; gap: 36px; }
  .frise { grid-template-columns: 1fr; gap: 14px; padding-left: 34px; }
  .frise::before { left: 8px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; background: linear-gradient(180deg, transparent, var(--or) 8%, var(--or) 92%, transparent); }
  .etape { padding-top: 0; }
  .etape::before { left: -34px; top: 26px; transform: none; }
}
@media (max-width: 720px) {
  body { font-size: 17px; }
  :root { --nav-h: 60px; }
  .conteneur { padding: 0 18px; }
  .logo { font-size: 15px; letter-spacing: 3px; }
  .nav .btn { padding: 8px 14px; font-size: 13px; letter-spacing: .5px; }
  .hero { padding: 40px 0 48px; }
  .hero-sous { font-size: 18px; }
  .hero-actions .btn, .hero-actions .btn-2 { flex: 1 1 100%; }
  .couverture { width: 190px; padding: 22px 14px; }
  .couverture small { font-size: 10px; letter-spacing: 2px; }
  .couverture .titre-couv { font-size: 23px; }
  .couverture .fleches i { height: 32px; }
  .chiffres ul { grid-template-columns: repeat(2, 1fr); padding: 20px 18px; }
  .chiffres strong { font-size: 22px; }
  .section { padding: 60px 0; }
  .section-titre { margin-bottom: 32px; }
  .livre-texte p { font-size: 17px; }
  .mythes-grille { grid-template-columns: 1fr; }
  .auteur-grille { grid-template-columns: 1fr; gap: 24px; }
  .portrait { width: 160px; }
  .extrait-page { padding: 28px 20px; }
  .formats { grid-template-columns: 1fr; gap: 10px; }
  .libraires { flex-direction: column; }
  .libraires a { width: 100%; }
  .barre-achat {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(15, 26, 43, .97); border-top: 1px solid rgba(201,162,77,.45);
    align-items: center; gap: 12px;
    transform: translateY(110%); transition: transform .25s;
  }
  .barre-achat.visible { transform: none; }
  .barre-achat .info { font-family: var(--sans); font-size: 13px; color: var(--creme-doux); line-height: 1.3; flex: 1; }
  .barre-achat .info strong { color: var(--creme); font-family: var(--serif); font-weight: normal; font-size: 15px; display: block; }
  .barre-achat .btn { min-height: 50px; padding: 10px 20px; }
}
