@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg: #16130f;
  --bg-soft: #1f1a14;
  --paper: #faf6ee;
  --ink: #241e16;
  --ink-soft: #6b5f4d;
  --gold: #c9a24b;
  --gold-deep: #a67f2e;
  --blue: #2f6fb0;
  --blue-deep: #1f5386;
  --line: #e7ded0;
  --radius: 16px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
}

h1, h2, h3, .brand { font-family: 'Fraunces', serif; color: var(--ink); margin: 0; }
a { color: inherit; text-decoration: none; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; border-bottom: 1px solid var(--line);
  background: var(--paper); position: sticky; top: 0; z-index: 10;
}
.brand { font-size: 19px; font-weight: 600; }
.brand span { color: var(--gold-deep); }
nav a { margin-left: 26px; font-size: 14.5px; font-weight: 500; color: var(--ink-soft); }
nav a:hover { color: var(--gold-deep); }

.btn { display: inline-block; padding: 12px 24px; border-radius: 999px; font-weight: 600; font-size: 14.5px; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-deep); }
.btn-ghost { border: 1.5px solid var(--line); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--gold); }

/* HERO — chaleur de bougie */
.hero {
  position: relative;
  padding: 110px 24px 90px;
  text-align: center;
  color: #f4ede0;
  background:
    radial-gradient(circle at 22% 30%, rgba(230,180,90,0.35), transparent 45%),
    radial-gradient(circle at 78% 55%, rgba(230,180,90,0.18), transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
  overflow: hidden;
}
.hero::before {
  content: "🕯️"; position: absolute; left: 8%; top: 18%; font-size: 54px; opacity: 0.5; filter: blur(0.3px);
}
.hero::after {
  content: "📖"; position: absolute; right: 10%; bottom: 14%; font-size: 60px; opacity: 0.35;
}
.hero h1 { font-size: 46px; font-weight: 600; max-width: 760px; margin: 0 auto 18px; color: #fbf3e3; }
.hero p { max-width: 600px; margin: 0 auto 34px; color: #d8cbb0; font-size: 17px; }
.hero .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* SECTIONS */
section.section { padding: 70px 0; }
section.section.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tag {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--blue-deep); background: #e8f1fa;
  padding: 5px 12px; border-radius: 999px; margin-bottom: 14px;
}
section.section h2 { font-size: 30px; margin-bottom: 14px; }
section.section p.lead { color: var(--ink-soft); max-width: 640px; margin-bottom: 34px; font-size: 16px; }

/* QUI SOMMES-NOUS */
.about { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: start; }
.about .portrait {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--blue), var(--blue-deep));
  aspect-ratio: 1/1.05; display: flex; align-items: flex-end; color: #fff; padding: 18px;
  font-weight: 600;
}
.about .bio p { color: var(--ink-soft); margin: 0 0 16px; }
@media (max-width: 720px) { .about { grid-template-columns: 1fr; } }

/* LIVRES */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.book-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.book-card .cover {
  aspect-ratio: 3/4; background: linear-gradient(160deg, var(--gold), var(--gold-deep));
  display: flex; align-items: center; justify-content: center; font-size: 34px; color: rgba(255,255,255,0.85);
}
.book-card .body { padding: 18px 20px 22px; }
.book-card h3 { font-size: 17px; margin-bottom: 4px; }
.book-card .meta { font-size: 12.5px; color: var(--gold-deep); font-weight: 600; margin-bottom: 10px; }
.book-card p { color: var(--ink-soft); font-size: 14px; margin: 0 0 16px; }
.book-card .actions { display: flex; gap: 10px; }
.book-card .actions .btn { padding: 8px 16px; font-size: 13px; }

/* FEATURE CARDS */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card .icon { font-size: 24px; margin-bottom: 12px; display: block; }
.card h3 { font-size: 16.5px; margin-bottom: 6px; }
.card p { color: var(--ink-soft); font-size: 14px; margin: 0; }

/* ADMIN */
.admin-box { display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; align-items: stretch; }
.admin-box ul { list-style: none; margin: 0; padding: 0; }
.admin-box li { padding: 10px 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.admin-box li:last-child { border-bottom: none; }
.admin-example { background: var(--blue); color: #fff; border-radius: var(--radius); padding: 26px; font-size: 14.5px; }
.admin-example strong { display: block; margin-bottom: 6px; }
.admin-example .row { padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,0.2); }
@media (max-width: 720px) { .admin-box { grid-template-columns: 1fr; } }

/* ROADMAP */
.roadmap { position: relative; padding-left: 34px; }
.roadmap::before { content: ""; position: absolute; left: 11px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.roadmap .step { position: relative; padding-bottom: 30px; }
.roadmap .step:last-child { padding-bottom: 0; }
.roadmap .step::before {
  content: attr(data-n); position: absolute; left: -34px; top: 0; width: 24px; height: 24px;
  border-radius: 50%; background: var(--gold); color: #fff; font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.roadmap .step.done::before { background: var(--blue); }
.roadmap h4 { font-size: 16px; margin: 0 0 4px; }
.roadmap p { margin: 0; color: var(--ink-soft); font-size: 14px; }

/* CTA FINALE */
.cta-final {
  text-align: center; border-radius: 20px; padding: 60px 30px;
  background: linear-gradient(160deg, var(--bg), var(--bg-soft));
  color: #f4ede0; margin: 0 24px 80px;
}
.cta-final h2 { color: #fbf3e3; font-size: 30px; margin-bottom: 14px; }
.cta-final p.lead { color: #d8cbb0; margin: 0 auto 28px; }
.cta-final .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 26px; }
.cta-final .note {
  display: inline-block; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px; padding: 14px 20px; font-size: 14px; color: #ecdfc4; max-width: 560px;
}

footer { border-top: 1px solid var(--line); padding: 40px 24px; text-align: center; color: var(--ink-soft); font-size: 14px; }

/* Citation du jour — affiche */
.quote-poster {
  position: relative; max-width: 640px; margin: 0 auto; border-radius: 20px; overflow: hidden;
  padding: 56px 40px 40px; text-align: center; color: #f4ede0;
  background:
    radial-gradient(circle at 20% 20%, rgba(230,180,90,0.30), transparent 50%),
    radial-gradient(circle at 85% 80%, rgba(230,180,90,0.16), transparent 55%),
    linear-gradient(160deg, var(--bg) 0%, var(--bg-soft) 100%);
  border: 1px solid rgba(201,162,75,0.35);
}
.quote-poster .quote-mark { font-family: 'Fraunces', serif; font-size: 64px; color: var(--gold); line-height: 1; margin-bottom: 6px; opacity: 0.85; }
.quote-poster .quote-text { font-family: 'Fraunces', serif; font-size: 24px; line-height: 1.5; color: #fbf3e3; margin-bottom: 30px; }
.quote-poster .author-row { display: flex; align-items: center; justify-content: center; gap: 12px; }
.quote-poster .author-row img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); }
.quote-poster .author-name { font-size: 13.5px; font-weight: 600; color: #ecdfc4; }
.quote-poster .author-role { font-size: 11.5px; color: #c9b896; }

@media (max-width: 640px) {
  .hero h1 { font-size: 32px; }
  nav { display: none; }
}
