/* =========================================================================
   Amstrong Joseph Jean Charles — Site officiel
   Design system : élégant, littéraire, inspiré d'Haïti
   Palette : bleu océan, rouge/terre cuite, sable, crème, encre, or discret
   ========================================================================= */

:root {
  /* Couleurs */
  --bleu-nuit: #0B2E4F;
  --bleu: #12507A;
  --bleu-clair: #2E6E97;
  --rouge: #B23A2E;        /* rouge haïtien assourdi */
  --terracotta: #C06B4A;
  --sable: #E7DAC4;
  --sable-clair: #F2E9D8;
  --creme: #FBF7EF;
  --blanc: #FFFFFF;
  --encre: #1D2A33;
  --encre-doux: #45535C;
  --or: #C29A4B;
  --vert-espoir: #4A7C59;

  /* Surfaces */
  --bg: var(--creme);
  --surface: var(--blanc);
  --bordure: #E4D9C5;

  /* Typo */
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Rythme */
  --max: 1200px;
  --rayon: 12px;
  --rayon-sm: 8px;
  --ombre: 0 10px 30px rgba(11, 46, 79, 0.08);
  --ombre-forte: 0 18px 50px rgba(11, 46, 79, 0.16);
  --transition: 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--encre);
  background: var(--bg);
  line-height: 1.7;
  font-size: 17px;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--bleu-nuit);
  line-height: 1.12;
  font-weight: 600;
  margin: 0 0 0.5em;
  letter-spacing: 0.2px;
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); }
p { margin: 0 0 1.1em; color: var(--encre-doux); }

a { color: var(--bleu); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--rouge); }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }

section { padding: 84px 0; }
.section-sable { background: var(--sable-clair); }
.section-bleu { background: var(--bleu-nuit); color: #EAF1F7; }
.section-bleu h1, .section-bleu h2, .section-bleu h3 { color: var(--blanc); }
.section-bleu p { color: #C9D6E1; }

/* Œilleton / suréquilibre du titre de section */
.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terracotta);
  font-weight: 600;
  margin-bottom: 14px;
}
.section-bleu .eyebrow { color: var(--or); }
.section-title { margin-bottom: 14px; }
.section-intro { max-width: 640px; color: var(--encre-doux); font-size: 1.08rem; }
.center { text-align: center; }
.center .section-intro { margin-left: auto; margin-right: auto; }

/* ---------------------------------------------------------------- Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--sans); font-weight: 600; font-size: 0.97rem;
  padding: 14px 26px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; text-align: center; line-height: 1.1;
  transition: transform var(--transition), background var(--transition), box-shadow var(--transition), color var(--transition);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--or); outline-offset: 3px; }

.btn-primary { background: var(--bleu-nuit); color: var(--blanc); }
.btn-primary:hover { background: var(--bleu); color: var(--blanc); box-shadow: var(--ombre); }

.btn-rouge { background: var(--rouge); color: var(--blanc); }
.btn-rouge:hover { background: #9c3025; color: var(--blanc); box-shadow: var(--ombre); }

.btn-or { background: var(--or); color: #33260A; }
.btn-or:hover { background: #d5aa5b; color: #33260A; box-shadow: var(--ombre); }

.btn-ghost { background: transparent; color: var(--bleu-nuit); border-color: var(--bleu-nuit); }
.btn-ghost:hover { background: var(--bleu-nuit); color: var(--blanc); }

.section-bleu .btn-ghost { color: #EAF1F7; border-color: rgba(255,255,255,0.5); }
.section-bleu .btn-ghost:hover { background: var(--blanc); color: var(--bleu-nuit); }

.btn-sm { padding: 10px 18px; font-size: 0.86rem; }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }

/* ---------------------------------------------------------------- En-tête */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 247, 239, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--bordure);
}
.header-inner { display: flex; align-items: center; gap: 20px; height: 74px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--serif); font-weight: 700; color: var(--bleu-nuit); font-size: 1.05rem; line-height: 1.15; }
.brand > span:last-child { display: block; white-space: nowrap; }
.brand:hover { color: var(--bleu-nuit); }
@media (max-width: 480px) {
  .brand { font-size: 0.84rem; gap: 8px; }
  .brand .mark { width: 34px; height: 34px; font-size: 0.95rem; }
}
.brand .mark {
  width: 42px; height: 42px; border-radius: 50%; flex: none;
  display: grid; place-items: center; color: var(--blanc); font-size: 1.15rem;
  background: linear-gradient(140deg, var(--bleu-nuit), var(--bleu-clair));
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.15);
}
.brand small { display: block; font-family: var(--sans); font-weight: 500; font-size: 0.58rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--terracotta); margin-top: 4px; white-space: nowrap; }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  display: block; padding: 9px 10px; border-radius: 8px; color: var(--encre);
  font-size: 0.88rem; font-weight: 500; position: relative; white-space: nowrap;
}
.main-nav a:hover { color: var(--rouge); background: rgba(178, 58, 46, 0.06); }
.main-nav a.actif { color: var(--rouge); }
.main-nav a.actif::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px; background: var(--rouge); border-radius: 2px; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.cart-link { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; color: var(--bleu-nuit); border: 1px solid var(--bordure); background: var(--blanc); }
.cart-link:hover { color: var(--rouge); border-color: var(--rouge); }
.cart-count { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--rouge); color: #fff; font-family: var(--sans); font-size: 0.7rem; font-weight: 700; display: grid; place-items: center; }
.cart-count[data-empty="true"] { display: none; }

.nav-toggle { display: none; background: none; border: 1px solid var(--bordure); border-radius: 8px; width: 44px; height: 44px; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { content: ""; display: block; width: 20px; height: 2px; background: var(--bleu-nuit); position: relative; transition: var(--transition); }
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

@media (max-width: 1160px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: fixed; inset: 74px 0 auto 0; background: var(--creme);
    border-bottom: 1px solid var(--bordure); box-shadow: var(--ombre);
    max-height: 0; overflow: hidden; transition: max-height 0.4s ease; margin: 0;
  }
  .main-nav.ouvert { max-height: 80vh; overflow-y: auto; }
  .main-nav ul { flex-direction: column; align-items: stretch; padding: 12px 24px 20px; gap: 2px; }
  .main-nav a { padding: 13px 10px; font-size: 1rem; border-bottom: 1px solid var(--bordure); border-radius: 0; }
  .main-nav a.actif::after { display: none; }
}

/* ---------------------------------------------------------------- Héro */
.hero { position: relative; padding: 0; background: var(--bleu-nuit); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: stretch; min-height: 620px; }
.hero-content { padding: 90px 60px 90px 0; display: flex; flex-direction: column; justify-content: center; color: #EAF1F7; }
.hero-content .container { padding-right: 0; }
.hero-kicker { color: var(--or); letter-spacing: 0.22em; text-transform: uppercase; font-size: 0.8rem; font-weight: 600; margin-bottom: 18px; }
.hero h1 { color: #fff; margin-bottom: 10px; }
.hero .signature { font-family: var(--serif); font-style: italic; font-size: 1.5rem; color: var(--sable); margin-bottom: 22px; }
.hero-lede { font-size: 1.22rem; color: #D7E2EC; font-family: var(--serif); font-style: italic; max-width: 30ch; margin-bottom: 12px; }
.hero p.hero-text { color: #B9C8D5; max-width: 46ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-visual { position: relative; background: linear-gradient(160deg, #123a5e, #0B2E4F); }
.hero-visual .portrait { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.hero-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bleu-nuit) 0%, rgba(11,46,79,0) 26%); }
.hero-badge { position: absolute; left: 40px; bottom: 40px; z-index: 3; background: rgba(251,247,239,0.94); color: var(--bleu-nuit); border-radius: var(--rayon); padding: 14px 20px; box-shadow: var(--ombre-forte); max-width: 260px; }
.hero-badge strong { display: block; font-family: var(--serif); font-size: 1.05rem; }
.hero-badge span { font-size: 0.82rem; color: var(--encre-doux); }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; min-height: auto; }
  .hero-visual { min-height: 380px; order: -1; }
  .hero-visual::after { background: linear-gradient(0deg, var(--bleu-nuit) 0%, rgba(11,46,79,0) 40%); }
  .hero-content { padding: 54px 0; }
  .hero-content .container { padding: 0 24px; }
  .hero-badge { left: 24px; bottom: 24px; }
}

/* ---------------------------------------------------------------- Grilles */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- Cartes livre */
.book-card {
  background: var(--surface); border: 1px solid var(--bordure); border-radius: var(--rayon);
  overflow: hidden; display: flex; flex-direction: column; transition: transform var(--transition), box-shadow var(--transition);
}
.book-card:hover { transform: translateY(-6px); box-shadow: var(--ombre-forte); }
.book-cover-wrap { padding: 26px 26px 0; display: grid; place-items: center; position: relative; }
.ribbon-apara { position: absolute; top: 16px; right: 16px; background: var(--terracotta); color: #fff; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; box-shadow: var(--ombre); }
.book-cover-wrap .cover { width: 168px; max-width: 70%; box-shadow: 0 16px 30px rgba(11,46,79,0.22); border-radius: 4px; transition: transform var(--transition); }
.book-card:hover .cover { transform: rotate(-1.5deg) scale(1.03); }
.book-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.book-tag { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--terracotta); font-weight: 600; margin-bottom: 8px; }
.book-body h3 { font-size: 1.32rem; margin-bottom: 4px; }
.book-body .subtitle { font-family: var(--serif); font-style: italic; color: var(--bleu); font-size: 1.02rem; margin-bottom: 10px; }
.book-body p { font-size: 0.94rem; margin-bottom: 16px; }
.book-price { font-family: var(--serif); font-size: 1.5rem; color: var(--bleu-nuit); font-weight: 600; margin: auto 0 14px; }
.book-price .provisoire { display: inline-block; font-family: var(--sans); font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--encre-doux); background: var(--sable); padding: 3px 7px; border-radius: 6px; vertical-align: middle; margin-left: 6px; font-weight: 600; }
.book-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.book-actions .btn { flex: 1; white-space: nowrap; }

/* ---------------------------------------------------------------- Carte générique */
.card { background: var(--surface); border: 1px solid var(--bordure); border-radius: var(--rayon); padding: 30px; transition: transform var(--transition), box-shadow var(--transition); }
.card:hover { box-shadow: var(--ombre); }
.card .ico { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; background: var(--sable-clair); color: var(--rouge); font-size: 1.5rem; margin-bottom: 16px; }

/* ---------------------------------------------------------------- Auteur (accueil) */
.author-split { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 54px; align-items: center; }
.author-photo { position: relative; border-radius: var(--rayon); overflow: hidden; box-shadow: var(--ombre-forte); aspect-ratio: 4/5; background: var(--sable); }
.author-photo img { width: 100%; height: 100%; object-fit: cover; }
.author-photo .frame-note { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 20px; color: var(--bleu-nuit); }
@media (max-width: 780px) { .author-split { grid-template-columns: 1fr; gap: 30px; } }

/* ---------------------------------------------------------------- Mission */
.mission-list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 16px; }
.mission-list li { display: flex; gap: 14px; align-items: flex-start; }
.mission-list .dot { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--sable-clair); color: var(--rouge); display: grid; place-items: center; font-weight: 700; font-family: var(--serif); }

/* ---------------------------------------------------------------- ASEBED bloc */
.asebed-block { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: var(--rayon); overflow: hidden; box-shadow: var(--ombre); background: var(--surface); }
.asebed-block .visual { background: linear-gradient(150deg, var(--vert-espoir), #2f5a3c); min-height: 340px; position: relative; display: grid; place-items: center; color: #eafaef; text-align: center; padding: 30px; }
.asebed-block .txt { padding: 46px; }
@media (max-width: 780px) { .asebed-block { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- Témoignages */
.quote-card { background: var(--surface); border: 1px solid var(--bordure); border-radius: var(--rayon); padding: 32px; position: relative; }
.quote-card::before { content: "\201C"; font-family: var(--serif); font-size: 5rem; line-height: 1; color: var(--sable); position: absolute; top: 6px; left: 18px; }
.quote-card p { position: relative; font-family: var(--serif); font-size: 1.18rem; font-style: italic; color: var(--encre); }
.quote-author { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.quote-author .av { width: 44px; height: 44px; border-radius: 50%; background: var(--bleu-nuit); color: #fff; display: grid; place-items: center; font-family: var(--serif); font-weight: 600; }
.quote-author strong { display: block; color: var(--bleu-nuit); font-family: var(--sans); font-size: 0.95rem; }
.quote-author span { font-size: 0.82rem; color: var(--encre-doux); }
.placeholder-note { font-size: 0.8rem; color: var(--encre-doux); background: var(--sable-clair); border: 1px dashed var(--terracotta); border-radius: 8px; padding: 4px 10px; display: inline-block; }

/* ---------------------------------------------------------------- Infolettre */
.newsletter { background: linear-gradient(155deg, var(--bleu-nuit), var(--bleu)); color: #fff; border-radius: var(--rayon); padding: 54px; text-align: center; }
.newsletter h2 { color: #fff; }
.newsletter p { color: #CDD9E4; max-width: 52ch; margin: 0 auto 24px; }
.form-inline { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; max-width: 640px; margin: 0 auto; }
.form-inline input { flex: 1; min-width: 180px; }

/* ---------------------------------------------------------------- Formulaires */
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.88rem; font-weight: 600; color: var(--bleu-nuit); margin-bottom: 6px; }
.field .req { color: var(--rouge); }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=password], input[type=search], input[type=date], select, textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--bordure); border-radius: var(--rayon-sm);
  font-family: var(--sans); font-size: 1rem; color: var(--encre); background: var(--blanc);
  transition: border-color var(--transition), box-shadow var(--transition);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--bleu); box-shadow: 0 0 0 3px rgba(18,80,122,0.14); }
textarea { min-height: 130px; resize: vertical; }
.form-inline input { background: #fff; }
.hint { font-size: 0.82rem; color: var(--encre-doux); margin-top: 5px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; color: var(--encre-doux); }
.check input { width: auto; margin-top: 4px; flex: none; }
fieldset { border: 1px solid var(--bordure); border-radius: var(--rayon); padding: 24px; margin: 0 0 24px; }
legend { font-family: var(--serif); font-size: 1.3rem; color: var(--bleu-nuit); padding: 0 10px; }

/* Toast de confirmation */
.form-feedback { display: none; margin-top: 16px; padding: 14px 18px; border-radius: var(--rayon-sm); background: #e8f3ec; border: 1px solid var(--vert-espoir); color: #22503a; font-size: 0.94rem; }
.form-feedback.visible { display: block; animation: pop 0.4s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(6px);} to {opacity:1; transform:none;} }

/* ---------------------------------------------------------------- Fil d'Ariane + bannière page */
.page-banner { background: var(--bleu-nuit); color: #EAF1F7; padding: 64px 0 56px; position: relative; overflow: hidden; }
.page-banner::after { content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(194,154,75,0.25), transparent 70%); }
.page-banner h1 { color: #fff; margin-bottom: 8px; }
.page-banner p { color: #C4D2DE; max-width: 60ch; margin: 0; }
.breadcrumb { font-size: 0.82rem; color: var(--or); margin-bottom: 16px; letter-spacing: 0.04em; }
.breadcrumb a { color: #C4D2DE; }
.breadcrumb a:hover { color: #fff; }

/* ---------------------------------------------------------------- Filtres livres */
.filters { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; background: var(--surface); border: 1px solid var(--bordure); border-radius: var(--rayon); padding: 20px 24px; margin-bottom: 34px; }
.filters .field { margin: 0; flex: 1; min-width: 150px; }
.filters .field label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; }
.results-count { font-size: 0.9rem; color: var(--encre-doux); margin-bottom: 20px; }

/* ---------------------------------------------------------------- Fiche livre */
.book-hero { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 54px; align-items: start; }
@media (max-width: 860px) { .book-hero { grid-template-columns: 1fr; gap: 34px; } }
.book-hero-cover { position: sticky; top: 100px; }
.book-hero-cover .cover { width: 100%; max-width: 340px; margin: 0 auto; box-shadow: var(--ombre-forte); border-radius: 6px; }
.book-gallery { display: flex; gap: 10px; margin-top: 18px; justify-content: center; }
.book-gallery .thumb { width: 56px; height: 74px; border-radius: 4px; border: 1px solid var(--bordure); background: var(--sable-clair); cursor: pointer; overflow: hidden; }
.book-meta-title h1 { margin-bottom: 4px; }
.book-meta-title .subtitle { font-family: var(--serif); font-style: italic; font-size: 1.4rem; color: var(--bleu); margin-bottom: 10px; }
.book-author-line { color: var(--encre-doux); margin-bottom: 20px; }
.price-block { display: flex; align-items: baseline; gap: 12px; margin: 18px 0; }
.price-block .amount { font-family: var(--serif); font-size: 2.4rem; color: var(--bleu-nuit); font-weight: 600; }
.dispo { display: inline-flex; align-items: center; gap: 7px; font-size: 0.88rem; color: var(--vert-espoir); font-weight: 600; }
.dispo::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--vert-espoir); }
.format-options { display: flex; gap: 10px; flex-wrap: wrap; margin: 14px 0; }
.format-options label { border: 1.5px solid var(--bordure); border-radius: 999px; padding: 8px 16px; cursor: pointer; font-size: 0.9rem; font-weight: 500; transition: var(--transition); }
.format-options input { position: absolute; opacity: 0; }
.format-options input:checked + label, .format-options label.actif { border-color: var(--bleu-nuit); background: var(--bleu-nuit); color: #fff; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--bordure); border-radius: 999px; overflow: hidden; }
.qty button { width: 40px; height: 44px; border: none; background: var(--sable-clair); font-size: 1.2rem; cursor: pointer; color: var(--bleu-nuit); }
.qty input { width: 52px; text-align: center; border: none; border-radius: 0; padding: 12px 0; }
.buy-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin: 22px 0; }
.book-meta-table { width: 100%; border-collapse: collapse; margin: 10px 0 0; }
.book-meta-table td { padding: 10px 0; border-bottom: 1px solid var(--bordure); font-size: 0.92rem; }
.book-meta-table td:first-child { color: var(--encre-doux); width: 42%; }
.book-meta-table td:last-child { color: var(--bleu-nuit); font-weight: 500; }
.tabs { display: flex; gap: 6px; border-bottom: 2px solid var(--bordure); margin: 40px 0 24px; flex-wrap: wrap; }
.tab-btn { background: none; border: none; padding: 12px 18px; font-family: var(--sans); font-size: 0.98rem; font-weight: 600; color: var(--encre-doux); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.tab-btn.actif { color: var(--bleu-nuit); border-bottom-color: var(--rouge); }
.tab-panel { display: none; } .tab-panel.actif { display: block; animation: pop 0.35s ease; }
.excerpt { font-family: var(--serif); font-size: 1.15rem; font-style: italic; color: var(--encre); border-left: 3px solid var(--or); padding: 8px 0 8px 24px; background: var(--sable-clair); border-radius: 0 8px 8px 0; padding: 20px 24px; }
.preface-block { margin-top: 34px; padding: 28px 30px; background: var(--sable-clair); border: 1px solid var(--bordure); border-left: 4px solid var(--or); border-radius: 0 var(--rayon) var(--rayon) 0; }
.preface-block .eyebrow { margin-bottom: 12px; }
.preface-block p { font-family: var(--serif); font-size: 1.12rem; font-style: italic; color: var(--encre); line-height: 1.6; margin-bottom: 14px; }
.preface-block cite { display: block; margin-top: 8px; font-style: normal; font-weight: 600; color: var(--bleu-nuit); font-family: var(--sans); font-size: 0.92rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; }
.chip { background: var(--sable-clair); border: 1px solid var(--bordure); border-radius: 999px; padding: 6px 14px; font-size: 0.84rem; color: var(--bleu-nuit); }

/* ---------------------------------------------------------------- Panier */
.cart-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 34px; align-items: start; }
@media (max-width: 900px) { .cart-layout { grid-template-columns: 1fr; } }
.cart-item { display: grid; grid-template-columns: 84px 1fr auto; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--bordure); align-items: center; }
.cart-item .thumb { width: 84px; height: 112px; border-radius: 6px; overflow: hidden; box-shadow: var(--ombre); background: var(--sable-clair); }
.cart-item h4 { font-family: var(--serif); margin: 0 0 4px; color: var(--bleu-nuit); font-size: 1.15rem; }
.cart-item .fmt { font-size: 0.84rem; color: var(--encre-doux); }
.cart-item .line-price { font-family: var(--serif); font-size: 1.2rem; color: var(--bleu-nuit); font-weight: 600; }
.cart-item .remove { background: none; border: none; color: var(--rouge); cursor: pointer; font-size: 0.82rem; margin-top: 6px; padding: 0; }
.cart-item .remove:hover { text-decoration: underline; }
.summary { background: var(--surface); border: 1px solid var(--bordure); border-radius: var(--rayon); padding: 28px; position: sticky; top: 100px; }
.summary h3 { margin-bottom: 18px; }
.sum-row { display: flex; justify-content: space-between; padding: 9px 0; font-size: 0.95rem; color: var(--encre-doux); }
.sum-row.total { border-top: 2px solid var(--bordure); margin-top: 8px; padding-top: 16px; font-size: 1.3rem; font-family: var(--serif); color: var(--bleu-nuit); font-weight: 600; }
.promo-row { display: flex; gap: 8px; margin: 16px 0; }
.promo-row input { flex: 1; }
.don-invite { background: var(--sable-clair); border: 1px solid var(--terracotta); border-radius: var(--rayon); padding: 22px; margin: 22px 0; }
.don-amounts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.don-amounts button { border: 1.5px solid var(--terracotta); background: #fff; color: var(--terracotta); border-radius: 999px; padding: 8px 16px; cursor: pointer; font-weight: 600; font-size: 0.9rem; transition: var(--transition); }
.don-amounts button.actif, .don-amounts button:hover { background: var(--terracotta); color: #fff; }
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state .ico { font-size: 3rem; margin-bottom: 16px; }

/* ---------------------------------------------------------------- Don page */
.don-hero { background: linear-gradient(155deg, #2f5a3c, var(--vert-espoir)); color: #eafaef; }
.don-hero h1, .don-hero h2 { color: #fff; }
.amount-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 520px) { .amount-grid { grid-template-columns: repeat(2, 1fr); } }
.amount-grid label { border: 2px solid var(--bordure); border-radius: var(--rayon); padding: 18px; text-align: center; cursor: pointer; font-family: var(--serif); font-size: 1.5rem; color: var(--bleu-nuit); font-weight: 600; transition: var(--transition); }
.amount-grid input { position: absolute; opacity: 0; }
.amount-grid input:checked + label { border-color: var(--vert-espoir); background: #eaf5ee; color: var(--vert-espoir); }
.freq-toggle { display: inline-flex; border: 1px solid var(--bordure); border-radius: 999px; overflow: hidden; margin-bottom: 8px; }
.freq-toggle label { padding: 10px 24px; cursor: pointer; font-weight: 600; font-size: 0.92rem; }
.freq-toggle input { position: absolute; opacity: 0; }
.freq-toggle input:checked + label { background: var(--vert-espoir); color: #fff; }

/* ---------------------------------------------------------------- Événements */
.event-item { display: grid; grid-template-columns: 120px 1fr auto; gap: 24px; background: var(--surface); border: 1px solid var(--bordure); border-radius: var(--rayon); padding: 24px; align-items: center; margin-bottom: 18px; transition: var(--transition); }
.event-item:hover { box-shadow: var(--ombre); }
.event-date { text-align: center; background: var(--bleu-nuit); color: #fff; border-radius: var(--rayon-sm); padding: 14px; }
.event-date .d { font-family: var(--serif); font-size: 2rem; line-height: 1; }
.event-date .m { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; margin-top: 4px; }
.event-meta { font-size: 0.86rem; color: var(--encre-doux); margin-bottom: 6px; }
@media (max-width: 700px) { .event-item { grid-template-columns: 1fr; text-align: left; } .event-date { display: inline-block; } }

/* ---------------------------------------------------------------- Blogue */
.post-card { background: var(--surface); border: 1px solid var(--bordure); border-radius: var(--rayon); overflow: hidden; display: flex; flex-direction: column; transition: var(--transition); }
.post-card:hover { transform: translateY(-5px); box-shadow: var(--ombre-forte); }
.post-thumb { aspect-ratio: 16/10; background: linear-gradient(150deg, var(--bleu), var(--bleu-nuit)); position: relative; }
.post-thumb .cat { position: absolute; left: 14px; top: 14px; background: var(--rouge); color: #fff; font-size: 0.72rem; font-weight: 600; padding: 5px 12px; border-radius: 999px; letter-spacing: 0.04em; }
.post-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.post-body .meta { font-size: 0.8rem; color: var(--encre-doux); margin-bottom: 8px; }
.post-body h3 { font-size: 1.28rem; margin-bottom: 10px; }
.post-body .btn { margin-top: auto; align-self: flex-start; }

/* ---------------------------------------------------------------- Timeline (à propos) */
.timeline { position: relative; margin: 30px 0 0; padding-left: 30px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--sable); }
.timeline-item { position: relative; padding: 0 0 30px 20px; }
.timeline-item::before { content: ""; position: absolute; left: -30px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--rouge); border: 3px solid var(--creme); }
.timeline-item h4 { margin-bottom: 4px; color: var(--bleu-nuit); }
.timeline-item .yr { font-family: var(--serif); color: var(--terracotta); font-weight: 600; font-size: 1.05rem; }

/* ---------------------------------------------------------------- Grande citation */
.pull-quote { text-align: center; max-width: 820px; margin: 0 auto; }
.pull-quote blockquote { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.4rem); font-style: italic; color: #fff; line-height: 1.3; margin: 0 0 18px; }
.pull-quote cite { color: var(--or); font-style: normal; font-weight: 600; letter-spacing: 0.05em; }

/* ---------------------------------------------------------------- Étapes paiement */
.steps { display: flex; gap: 8px; margin-bottom: 34px; flex-wrap: wrap; }
.step { flex: 1; min-width: 140px; padding: 14px 18px; border-radius: var(--rayon-sm); background: var(--surface); border: 1px solid var(--bordure); font-size: 0.9rem; color: var(--encre-doux); }
.step.actif { border-color: var(--bleu-nuit); background: var(--bleu-nuit); color: #fff; }
.step .n { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--sable); color: var(--bleu-nuit); font-weight: 700; font-size: 0.8rem; margin-right: 8px; }
.step.actif .n { background: var(--or); }
.secure-badges { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--bordure); font-size: 0.82rem; color: var(--encre-doux); }
.secure-badges span { display: inline-flex; align-items: center; gap: 6px; }

.pay-methods { display: grid; gap: 12px; }
.pay-method { border: 1.5px solid var(--bordure); border-radius: var(--rayon-sm); padding: 16px; cursor: pointer; display: flex; align-items: center; gap: 12px; transition: var(--transition); }
.pay-method:hover { border-color: var(--bleu); }
.pay-method input { width: auto; flex: none; }
.pay-method.actif { border-color: var(--bleu-nuit); background: var(--sable-clair); }

/* Bannière d'info intégration */
.integration-note { background: #fff8e9; border: 1px solid var(--or); border-radius: var(--rayon); padding: 16px 20px; font-size: 0.88rem; color: #6a5320; margin: 20px 0; display: flex; gap: 12px; align-items: flex-start; }
.integration-note .i { font-size: 1.2rem; flex: none; }

/* ---------------------------------------------------------------- Confirmation */
.confirm-check { width: 84px; height: 84px; border-radius: 50%; background: var(--vert-espoir); color: #fff; display: grid; place-items: center; font-size: 2.6rem; margin: 0 auto 24px; animation: pop 0.5s ease; }

/* ---------------------------------------------------------------- Accordéon FAQ */
.accordion-item { border: 1px solid var(--bordure); border-radius: var(--rayon-sm); margin-bottom: 12px; background: var(--surface); overflow: hidden; }
.accordion-head { width: 100%; text-align: left; background: none; border: none; padding: 18px 22px; font-family: var(--serif); font-size: 1.15rem; color: var(--bleu-nuit); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.accordion-head .plus { font-size: 1.4rem; color: var(--rouge); transition: transform var(--transition); flex: none; }
.accordion-item.ouvert .plus { transform: rotate(45deg); }
.accordion-body { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.accordion-body .inner { padding: 0 22px 20px; }
.accordion-item.ouvert .accordion-body { max-height: 500px; }

/* ---------------------------------------------------------------- Contenu légal */
.legal-content { max-width: 800px; }
.legal-content h2 { font-size: 1.5rem; margin-top: 38px; }
.legal-content h3 { font-size: 1.2rem; margin-top: 26px; }
.legal-content ul { padding-left: 22px; color: var(--encre-doux); }
.legal-content li { margin-bottom: 8px; }
.toc { background: var(--surface); border: 1px solid var(--bordure); border-radius: var(--rayon); padding: 22px 26px; margin-bottom: 34px; }
.toc ul { list-style: none; padding: 0; margin: 10px 0 0; columns: 2; }
@media (max-width: 600px) { .toc ul { columns: 1; } }

/* ---------------------------------------------------------------- Admin */
.admin-shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.admin-side { background: var(--bleu-nuit); color: #cdd9e4; padding: 24px 0; }
.admin-side .logo { padding: 0 24px 24px; font-family: var(--serif); color: #fff; font-size: 1.3rem; border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 16px; }
.admin-nav a { display: block; padding: 12px 24px; color: #cdd9e4; font-size: 0.92rem; border-left: 3px solid transparent; }
.admin-nav a:hover, .admin-nav a.actif { background: rgba(255,255,255,0.06); color: #fff; border-left-color: var(--or); }
.admin-main { padding: 32px 40px; background: var(--sable-clair); min-width: 0; }
.stat-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; margin-bottom: 30px; }
@media (max-width: 900px) { .stat-grid { grid-template-columns: repeat(2,1fr); } .admin-shell { grid-template-columns: 1fr; } .admin-side { display: none; } }
@media (max-width: 560px) { .stat-grid { grid-template-columns: 1fr; } .admin-main { padding: 22px 16px; } }
/* Tables défilables horizontalement sur mobile */
@media (max-width: 760px) {
  .data-table { display: block; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
  .book-meta-table td { font-size: 0.86rem; }
}
.stat-card { background: #fff; border: 1px solid var(--bordure); border-radius: var(--rayon); padding: 22px; }
.stat-card .v { font-family: var(--serif); font-size: 2rem; color: var(--bleu-nuit); }
.stat-card .l { font-size: 0.82rem; color: var(--encre-doux); text-transform: uppercase; letter-spacing: 0.06em; }
.data-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--rayon); overflow: hidden; box-shadow: var(--ombre); }
.data-table th { background: var(--bleu-nuit); color: #fff; text-align: left; padding: 14px 16px; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.05em; }
.data-table td { padding: 13px 16px; border-bottom: 1px solid var(--bordure); font-size: 0.9rem; }
.data-table tr:hover td { background: var(--sable-clair); }
.badge { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 0.74rem; font-weight: 600; }
.badge.ok { background: #e8f3ec; color: #22503a; }
.badge.wait { background: #fdf1e0; color: #8a5a1a; }

/* ---------------------------------------------------------------- Pied de page */
.site-footer { background: var(--bleu-nuit); color: #B9C8D5; padding: 66px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 40px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-family: var(--sans); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: #B9C8D5; font-size: 0.92rem; }
.site-footer a:hover { color: var(--or); }
.footer-brand .brand { color: #fff; margin-bottom: 14px; }
.footer-brand p { color: #93A6B5; font-size: 0.92rem; max-width: 34ch; }
.social-row { display: flex; gap: 10px; margin-top: 16px; }
.social-row a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2); display: grid; place-items: center; color: #cdd9e4; }
.social-row a:hover { background: var(--or); color: var(--bleu-nuit); border-color: var(--or); }
.footer-news input { margin-bottom: 10px; background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.18); color: #fff; }
.footer-news input::placeholder { color: #7d93a3; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 44px; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.82rem; color: #7d93a3; }
.footer-bottom a { color: #7d93a3; }
.footer-donate { display: inline-flex; margin-top: 4px; }

/* ---------------------------------------------------------------- Animations au défilement */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.vu { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }
@media print { .reveal { opacity: 1 !important; transform: none !important; } .site-header, .site-footer, .cookie-banner, .nav-toggle { display: none !important; } }
.no-js .reveal { opacity: 1; transform: none; }

/* Bandeau langues (préparation multilingue) */
.lang-switch { display: inline-flex; gap: 4px; align-items: center; font-size: 0.8rem; }
.lang-switch a { padding: 4px 8px; border-radius: 6px; color: var(--encre-doux); font-weight: 600; }
.lang-switch a.actif { background: var(--bleu-nuit); color: #fff; }
.lang-switch a[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; }

/* Bandeau cookies */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200; background: var(--bleu-nuit); color: #EAF1F7; border-radius: var(--rayon); padding: 20px 24px; box-shadow: var(--ombre-forte); display: none; gap: 18px; align-items: center; flex-wrap: wrap; max-width: 820px; margin: 0 auto; }
.cookie-banner.visible { display: flex; }
.cookie-banner p { margin: 0; color: #C9D6E1; font-size: 0.88rem; flex: 1; min-width: 240px; }
.cookie-banner .actions { display: flex; gap: 10px; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--rouge); color: #fff; padding: 10px 16px; z-index: 300; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }

.tag-pill { display:inline-block; background: var(--sable-clair); border:1px solid var(--bordure); color: var(--bleu-nuit); border-radius: 999px; padding: 4px 12px; font-size: 0.8rem; margin: 0 4px 4px 0;}

/* Utilitaires */
.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; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.text-center { text-align: center; }
.mtop { margin-top: 28px; }
.btn-group { display: flex; gap: 12px; flex-wrap: wrap; }
.lead { font-size: 1.15rem; color: var(--encre-doux); }
@media (max-width: 1180px) { .hide-sm { display: none !important; } }
.divider { height: 1px; background: var(--bordure); border: 0; margin: 40px 0; }
.badge-provisoire { display:inline-block; font-size:.62rem; letter-spacing:.08em; text-transform:uppercase; color:var(--encre-doux); background:var(--sable); padding:3px 8px; border-radius:6px; font-weight:600; vertical-align:middle; }
