/* =========================================================
   Feuille de style commune à toutes les pages du site.
   Les couleurs sont réglées ici, une seule fois.
   ========================================================= */

:root {
  --nuit: #172540;      /* bleu nuit des couvertures */
  --ivoire: #F7F2E8;    /* fond principal */
  --sable: #EFE7D8;     /* fond des sections alternées */
  --sable-fonce: #E6DCC9;
  --filet: #D8CCB6;     /* lignes de séparation */
  --or: #B08A3E;        /* filets dorés (décor) */
  --or-clair: #C9A45C;  /* texte doré sur fond bleu nuit */
  --or-fonce: #7A5C1E;  /* petits titres dorés sur fond clair */
  --encre: #1F2430;     /* texte courant */
  --gris: #5A5F6B;      /* texte secondaire */
  --serif: 'EB Garamond', Georgia, serif;
  --sans: 'Source Sans 3', system-ui, sans-serif;
  --arabe: 'Amiri', serif;
}

html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ivoire); color: var(--encre); font-family: var(--serif); font-size: 20px; line-height: 1.55; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--nuit); }
a:hover { color: var(--or-fonce); }
[lang="ar"] { font-family: var(--arabe); }

.conteneur { max-width: 1200px; margin: 0 auto; padding: 0 32px; box-sizing: border-box; }

/* ---------- En-tête et menu ---------- */
.entete { border-bottom: 1px solid #E2D8C6; }
.entete .conteneur { display: flex; flex-wrap: wrap; gap: 12px 40px; align-items: center; justify-content: space-between; padding-top: 18px; padding-bottom: 18px; }
.logo { color: var(--nuit); text-decoration: none; font-size: 27px; letter-spacing: 0.04em; }
.menu { display: flex; flex-wrap: wrap; gap: 0 26px; font-family: var(--sans); font-size: 16px; }
.menu a { text-decoration: none; padding: 10px 0; }
.menu a[aria-current="page"] { border-bottom: 2px solid var(--or); }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section--sable { background: var(--sable); }
.section--nuit { background: var(--nuit); color: var(--ivoire); }
.section--nuit a { color: var(--ivoire); }
.pile { display: flex; flex-direction: column; gap: 22px; }

h1, h2, h3 { font-weight: 500; color: var(--nuit); margin: 0; line-height: 1.1; }
.section--nuit h2 { color: var(--ivoire); }
h1 { font-size: clamp(40px, 6vw, 60px); }
h2 { font-size: clamp(32px, 4.5vw, 44px); }
h3 { font-size: 27px; line-height: 1.2; }
p { margin: 0; }

.etiquette { font-family: var(--sans); font-size: 14px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--or-fonce); }
.lieu-date { font-size: 23px; font-style: italic; color: var(--gris); }
.accroche { font-size: clamp(26px, 3vw, 32px); font-style: italic; line-height: 1.25; color: var(--nuit); }
.texte { max-width: 680px; }
.discret { font-family: var(--sans); font-size: 15px; color: var(--gris); }
.filet { width: 56px; height: 2px; background: var(--or); }

/* ---------- Boutons ---------- */
.boutons { display: flex; flex-wrap: wrap; gap: 14px; }
.bouton { display: inline-flex; align-items: center; min-height: 48px; padding: 0 26px; box-sizing: border-box; font-family: var(--sans); font-size: 17px; font-weight: 600; text-decoration: none; }
.bouton--plein { background: var(--nuit); color: var(--ivoire); }
.bouton--plein:hover { background: #22345a; color: var(--ivoire); }
.bouton--contour { border: 1.5px solid var(--nuit); color: var(--nuit); }
.lien-fort { font-family: var(--sans); font-size: 16px; font-weight: 600; padding: 8px 0; display: inline-block; }

/* ---------- Bloc d'ouverture (livre + texte) ---------- */
.ouverture { display: flex; flex-wrap: wrap; gap: 64px; align-items: center; padding-top: 80px; padding-bottom: 96px; }
.ouverture__livre { flex: 0 1 330px; }
.ouverture__texte { flex: 999 1 440px; min-width: 0; }

/* ---------- Couvertures ---------- */
.couverture { background: var(--nuit); color: var(--ivoire); box-sizing: border-box; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; box-shadow: 0 14px 32px rgba(23,37,64,0.22); }
.couverture--grande { width: 100%; max-width: 330px; height: 495px; padding: 40px 32px; justify-content: space-between; }
.couverture--petite { width: 150px; height: 225px; padding: 18px 12px; font-size: 19px; line-height: 1.15; }
.couverture--bordeaux { background: #5C2E2A; }
.couverture__auteur { font-size: 17px; letter-spacing: 0.18em; text-transform: uppercase; }
.couverture__titre { font-size: 38px; line-height: 1.1; }
.couverture__arabe { color: var(--or-clair); font-size: 26px; }
.couverture__mention { color: var(--or-clair); font-size: 16px; font-style: italic; }
.couverture__filet { width: 60%; max-width: 120px; height: 1px; background: var(--or); }
.couverture__centre { display: flex; flex-direction: column; gap: 18px; align-items: center; width: 100%; }
.accroche-bloc { display: flex; flex-direction: column; gap: 12px; margin-top: 6px; }
.liens { display: flex; flex-wrap: wrap; gap: 8px 32px; }
.titre-section { display: flex; flex-wrap: wrap; gap: 12px 40px; align-items: baseline; justify-content: space-between; }
.titre-section p { color: var(--gris); font-size: 19px; }
.couverture-image { width: 100%; max-width: 330px; box-shadow: 0 14px 32px rgba(23,37,64,0.22); }

/* ---------- Cartes ---------- */
.cartes { display: flex; flex-wrap: wrap; gap: 28px; }
.carte-livre { flex: 1 1 480px; min-width: 0; background: var(--ivoire); display: flex; flex-wrap: wrap; }
.carte-livre__image { flex: 1 1 220px; min-height: 300px; background: var(--sable-fonce); display: flex; align-items: center; justify-content: center; }
.carte-livre__texte { flex: 999 1 260px; min-width: 0; padding: 28px; box-sizing: border-box; display: flex; flex-direction: column; gap: 10px; font-size: 18px; }
.carte-livre__texte .lieu-date { font-size: 18px; }
.carte-livre__dispo { margin-top: auto; padding-top: 10px; }
.carte { flex: 1 1 300px; min-width: 0; border-top: 2px solid var(--nuit); padding-top: 20px; display: flex; flex-direction: column; gap: 10px; font-size: 18px; }
.carte h3 { font-size: 26px; }

/* ---------- Listes ---------- */
.en-cours { border-top: 1px solid var(--filet); padding-top: 28px; display: flex; flex-direction: column; gap: 18px; }
.en-cours__liste { display: flex; flex-wrap: wrap; gap: 18px 40px; font-size: 18px; }
.en-cours__liste p { flex: 1 1 300px; }
.en-cours__liste strong { font-weight: 600; color: var(--nuit); }

.lignes { display: flex; flex-direction: column; }
.ligne { display: flex; flex-wrap: wrap; gap: 6px 40px; padding: 20px 0; border-top: 1px solid var(--filet); }
.ligne:last-child { border-bottom: 1px solid var(--filet); }
.ligne__date { flex: 0 0 200px; font-family: var(--sans); font-size: 16px; font-weight: 600; color: var(--or-fonce); }
.ligne__texte { flex: 1 1 360px; }
.ligne--passee .ligne__date, .ligne--passee .ligne__texte { color: var(--gris); }

.personnages { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px 40px; }
.personnages p { font-size: 18px; }
.personnages strong { display: block; font-weight: 600; color: var(--nuit); font-size: 22px; }

/* ---------- Lettre d'information ---------- */
.lettre .conteneur { display: flex; flex-wrap: wrap; gap: 32px 64px; align-items: flex-end; }
.lettre__texte, .lettre__formulaire { flex: 1 1 420px; min-width: 0; }
.lettre__texte { display: flex; flex-direction: column; gap: 14px; }
.lettre__formulaire { display: flex; flex-direction: column; gap: 10px; font-family: var(--sans); }
.lettre label { font-size: 15px; font-weight: 600; }
.lettre__champ { display: flex; flex-wrap: wrap; gap: 10px; }
.lettre input { flex: 1 1 240px; min-width: 0; min-height: 50px; box-sizing: border-box; padding: 0 16px; border: 1.5px solid var(--or-clair); background: var(--ivoire); color: var(--encre); font-family: var(--sans); font-size: 17px; }
.lettre button { min-height: 50px; padding: 0 28px; border: 0; background: var(--or-clair); color: var(--nuit); font-family: var(--sans); font-size: 17px; font-weight: 600; cursor: pointer; }
.lettre .bouton:hover { background: #d6b46e; color: var(--nuit); }
.lettre .discret { color: #D9D3C7; font-size: 14px; }

/* ---------- Portrait ---------- */
.portrait { flex: 0 1 300px; height: 360px; background: #E2D8C6; display: flex; align-items: center; justify-content: center; font-family: var(--sans); font-size: 15px; color: var(--gris); }
.portrait-image { flex: 0 1 300px; width: 300px; object-fit: cover; }

/* ---------- Encadré ---------- */
.encadre { background: #FFFDF8; border: 1px solid #E2D8C6; padding: 26px 28px; max-width: 720px; font-size: 19px; }

/* ---------- Pied de page ---------- */
.pied { background: var(--nuit); color: var(--ivoire); font-family: var(--sans); font-size: 15px; }
.pied .conteneur { padding-top: 56px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 28px; }
.pied__haut { display: flex; flex-wrap: wrap; gap: 24px 56px; justify-content: space-between; }
.pied__coordonnees { flex: 1 1 360px; max-width: 520px; display: flex; flex-direction: column; gap: 8px; color: #D9D3C7; }
.pied__nom { font-family: var(--serif); font-size: 26px; letter-spacing: 0.04em; color: var(--ivoire); }
.pied a { color: var(--ivoire); }
.pied__menu { display: flex; flex-wrap: wrap; gap: 0 24px; align-content: flex-start; }
.pied__menu a { text-decoration: none; padding: 10px 0; }
.pied__bas { border-top: 1px solid #3A4766; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 14px; color: #D9D3C7; }
.pied__bas a { color: #D9D3C7; padding: 8px 0; margin-right: 20px; }

.nowrap { white-space: nowrap; }

@media (max-width: 600px) {
  body { font-size: 18px; }
  .conteneur { padding: 0 20px; }
  .section { padding: 64px 0; }
  .ouverture { padding-top: 48px; padding-bottom: 64px; gap: 40px; }
  .couverture--grande { height: 420px; }
}

/* ---------- Ajustements pour les visuels réels ---------- */
.carte-livre__image img { box-shadow: 0 8px 20px rgba(23,37,64,0.18); }
.portrait-image { border: 1px solid var(--filet); background: #FFFDF8; }
