/* =========================================================
   Mamadou Lamine Faye — Site auteur
   Palette inspirée de la couverture « Sénégal et souveraineté
   monétaire » : navy profond + accent or, fonds clairs & crème.
   ========================================================= */

:root {
  --navy:        #0d2440;
  --navy-2:      #143257;
  --navy-3:      #1d4a7e;
  --navy-deep:   #081a30;
  --gold:        #c9a24b;
  --gold-2:      #b1873a;
  --gold-3:      #dcbd6e;
  --gold-soft:   #ece0c4;
  --ink:         #1a2331;
  --muted:       #5c6879;
  --line:        #e5e9ef;
  --bg:          #ffffff;
  --bg-grey:     #f5f6f9;
  --bg-grey-2:   #eaeef3;
  --bg-cream:    #faf7f0;
  --white:       #ffffff;

  --radius:      16px;
  --radius-sm:   10px;
  --shadow-sm:   0 4px 14px rgba(13, 36, 64, .06);
  --shadow:      0 12px 34px rgba(13, 36, 64, .09);
  --shadow-lg:   0 28px 66px rgba(13, 36, 64, .18);
  --gold-glow:   0 10px 30px rgba(201, 162, 75, .35);
  --maxw:        1160px;
  --ease:        cubic-bezier(.22, .61, .36, 1);

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ------------------------- Reset ------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--navy-3); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--gold-2); }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--navy); line-height: 1.16; font-weight: 700; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.55rem); }
h3 { font-size: 1.3rem; }
p  { margin: 0 0 1.1em; }
::selection { background: var(--gold); color: #21170a; }

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

/* ---------------------- Utilities ------------------------ */
.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: .78rem;
  font-weight: 700;
  color: var(--gold-2);
  margin: 0 0 .9rem;
  display: inline-flex; align-items: center; gap: .6em;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--gold); border-radius: 2px; }
.text-center { text-align: center; }
.text-center .eyebrow { justify-content: center; }
.lead { font-size: 1.18rem; color: var(--muted); }
.section { padding: 90px 0; }
.section-grey { background: var(--bg-grey); }
.section-cream { background: var(--bg-cream); }
.section-navy { position: relative; background: linear-gradient(135deg, var(--navy-deep), var(--navy-2)); color: #dfe6f0; overflow: hidden; }
.section-navy::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 85% 20%, rgba(201,162,75,.16), transparent 40%);
  pointer-events: none;
}
.section-navy .container { position: relative; z-index: 1; }
.section-navy h1, .section-navy h2, .section-navy h3 { color: #fff; }
.divider { width: 64px; height: 3px; background: linear-gradient(90deg, var(--gold), var(--gold-3)); border-radius: 3px; margin: 0 0 1.4rem; }
.text-center .divider { margin-left: auto; margin-right: auto; }

/* ------------------------ Buttons ------------------------ */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--sans); font-weight: 600; font-size: .98rem;
  padding: 14px 28px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid transparent; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s ease, color .25s ease;
  white-space: nowrap; isolation: isolate;
}
.btn::before {
  content: ""; position: absolute; z-index: -1; top: 0; left: -130%;
  width: 55%; height: 100%; transform: skewX(-22deg);
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.45), transparent);
  transition: left .6s var(--ease);
}
.btn:hover::before { left: 150%; }
.btn-primary { background: linear-gradient(135deg, var(--gold-3), var(--gold)); color: #26190a; border-color: var(--gold); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: var(--gold-glow); color: #1c1206; }
.btn-navy { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-navy:hover { background: var(--navy-2); color: #fff; transform: translateY(-3px); box-shadow: var(--shadow); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; transform: translateY(-3px); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost-light:hover { background: #fff; color: var(--navy); border-color: #fff; transform: translateY(-3px); }
.btn + .btn { margin-left: 6px; }

/* ------------------------ Header ------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s ease;
}
.site-header:hover { box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; flex-direction: column; line-height: 1.05; }
.brand .brand-name { font-family: var(--serif); font-weight: 700; font-size: 1.26rem; color: var(--navy); transition: color .2s ease; }
.brand:hover .brand-name { color: var(--gold-2); }
.brand .brand-sub { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-2); font-weight: 700; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  position: relative; font-weight: 500; font-size: .96rem; color: var(--ink);
  padding: 9px 15px; border-radius: 8px; transition: color .2s ease;
}
.nav-links a::after {
  content: ""; position: absolute; left: 15px; right: 15px; bottom: 5px; height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-3)); border-radius: 2px;
  transform: scaleX(0); transform-origin: center; transition: transform .28s var(--ease);
}
.nav-links a:hover { color: var(--navy); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--navy); font-weight: 600; }
.nav-cta { margin-left: 10px; }
.nav-cta a::after { display: none; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; width: 44px; height: 44px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px auto; transition: .3s var(--ease); border-radius: 2px; }
.nav-toggle.open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2){ opacity: 0; }
.nav-toggle.open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* ------------------------- Hero -------------------------- */
.hero {
  position: relative; color: #eaf0f8; overflow: hidden;
  background: linear-gradient(125deg, var(--navy-deep) 0%, var(--navy) 45%, var(--navy-3) 100%);
  background-size: 200% 200%;
  animation: gradientShift 20s ease infinite alternate;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 80% 25%, rgba(201,162,75,.22), transparent 42%),
    radial-gradient(circle at 12% 85%, rgba(29,74,126,.5), transparent 45%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .4;
  background-image: radial-gradient(rgba(255,255,255,.10) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 80%);
  mask-image: linear-gradient(180deg, #000, transparent 80%);
}
.hero-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center;
  padding: 82px 0 90px;
}
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero .lead { color: #c7d3e4; }
.hero-text > * { opacity: 0; animation: fadeUp .8s var(--ease) forwards; }
.hero-text > .hero-badge { animation-delay: .05s; }
.hero-text > h1 { animation-delay: .16s; }
.hero-text > .lead { animation-delay: .28s; }
.hero-text > .hero-actions { animation-delay: .4s; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .5em;
  background: rgba(201,162,75,.14); border: 1px solid rgba(201,162,75,.5);
  color: var(--gold-soft); padding: 7px 16px; border-radius: 999px;
  font-size: .82rem; font-weight: 600; letter-spacing: .03em; margin-bottom: 1.4rem;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold-3); animation: pulse 2.4s ease-out infinite; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1.8rem; }
.hero-media { position: relative; opacity: 0; animation: fadeInScale 1s var(--ease) .35s forwards; }
.hero-media img {
  border-radius: 18px; box-shadow: var(--shadow-lg);
  width: 100%; object-fit: cover; aspect-ratio: 4/5;
}
.hero-media .frame {
  position: absolute; inset: 18px -18px -18px 18px;
  border: 2px solid rgba(201,162,75,.55); border-radius: 18px; z-index: -1;
  animation: floatY 7s ease-in-out infinite;
}

/* --------------------- Event strip ----------------------- */
.event-strip {
  position: relative; overflow: hidden;
  background: linear-gradient(90deg, var(--gold-2), var(--gold), var(--gold-3));
  background-size: 200% 100%; color: #23190a;
  animation: shimmer 8s linear infinite;
}
.event-strip .container {
  display: flex; align-items: center; justify-content: center; gap: 10px 26px;
  flex-wrap: wrap; padding-top: 16px; padding-bottom: 16px; text-align: center; font-weight: 600;
}
.event-strip strong { font-weight: 800; }
.event-strip a { color: #23190a; text-decoration: underline; text-underline-offset: 2px; font-weight: 700; }
.event-strip a:hover { color: #4a3410; }

/* ---------------------- Book feature --------------------- */
.book-feature { display: grid; grid-template-columns: 360px 1fr; gap: 60px; align-items: center; }
.book-cover-wrap { perspective: 1400px; animation: floatY 6.5s ease-in-out infinite; }
.book-cover-wrap img {
  border-radius: 8px; box-shadow: 0 34px 60px rgba(13,36,64,.32);
  transform: rotateY(-9deg) rotateX(2deg); transition: transform .5s var(--ease);
  border: 1px solid rgba(0,0,0,.06);
}
.book-cover-wrap:hover img { transform: rotateY(0deg) rotateX(0deg) scale(1.02); }
/* Couverture stylisée (livre sans visuel fourni) */
.cover-ph {
  aspect-ratio: 3 / 4.35; border-radius: 8px; padding: 26px 22px;
  display: flex; flex-direction: column; justify-content: space-between;
  color: #eaf0f8; text-align: center; position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--navy-2), var(--navy-deep));
  box-shadow: 0 34px 60px rgba(13,36,64,.32); border: 1px solid rgba(255,255,255,.06);
}
.cover-ph::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 8px; background: linear-gradient(180deg, var(--gold-3), var(--gold-2)); }
.cover-ph .cph-author { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-soft); }
.cover-ph .cph-title { font-family: var(--serif); font-size: 1.32rem; line-height: 1.25; }
.cover-ph .cph-sub { font-size: .82rem; color: #b9c6d8; }

/* Carte d'invitation (image) */
.invite-figure { margin: 0 auto; max-width: 720px; }
.invite-figure img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.invite-figure figcaption { font-size: .85rem; color: var(--muted); margin-top: .7rem; text-align: center; }

/* Boutons de commande */
.order-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.2rem 0 .6rem; }
.order-line { font-size: .9rem; color: var(--muted); font-weight: 600; }
.order-line strong { color: var(--navy); }

.book-meta { list-style: none; padding: 0; margin: 1.4rem 0; }
.book-meta li { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.book-meta li span:first-child { color: var(--gold-2); font-weight: 700; min-width: 120px; }

/* ----------------------- Cards --------------------------- */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s ease;
  display: flex; flex-direction: column; position: relative;
}
.card::after {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-3));
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.card:hover { transform: translateY(-7px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card:hover::after { transform: scaleX(1); }
.card-media { aspect-ratio: 3/2; overflow: hidden; background: var(--bg-grey-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card-media img { transform: scale(1.07); }
.card-body { padding: 26px; flex: 1; }
.card-body h3 { margin-bottom: .4rem; }
.card-tag {
  display: inline-block; font-size: .72rem; text-transform: uppercase; letter-spacing: .12em;
  font-weight: 700; color: var(--gold-2); margin-bottom: .6rem;
}

/* --------------------- Feature icons --------------------- */
.feature { text-align: center; padding: 10px; }
.feature .ico {
  width: 66px; height: 66px; border-radius: 50%; margin: 0 auto 18px;
  display: grid; place-items: center; font-size: 1.6rem;
  background: linear-gradient(145deg, #fff, var(--bg-grey));
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.feature:hover .ico { transform: translateY(-6px) rotate(-6deg) scale(1.06); box-shadow: var(--shadow); }

/* ------------------- Split / bio media ------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split-media { position: relative; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.split-media:hover img { transform: translateY(-6px); }
.stat-row { display: flex; gap: 34px; flex-wrap: wrap; margin-top: 1.6rem; }
.stat b { display: block; font-family: var(--serif); font-size: 2rem; color: var(--navy); line-height: 1; }
.stat span { font-size: .86rem; color: var(--muted); }

/* -------------------- Video embeds ----------------------- */
.video { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: #000; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-featured { max-width: 900px; margin: 0 auto; }
.card .video { border-radius: 0; box-shadow: none; }

/* Miniature cliquable (façade YouTube) */
.yt-facade { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; margin: 0; border: 0; background: #000; cursor: pointer; display: block; }
.yt-facade img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease), filter .3s ease; }
.yt-facade:hover img, .yt-facade:focus-visible img { transform: scale(1.05); filter: brightness(.82); }
.yt-play { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.yt-play svg { width: 76px; height: auto; filter: drop-shadow(0 6px 14px rgba(0,0,0,.45)); transition: transform .3s var(--ease); }
.yt-play .yt-bg { fill: #212121; opacity: .86; transition: fill .3s ease, opacity .3s ease; }
.yt-facade:hover .yt-play svg, .yt-facade:focus-visible .yt-play svg { transform: scale(1.09); }
.yt-facade:hover .yt-play .yt-bg, .yt-facade:focus-visible .yt-play .yt-bg { fill: var(--gold-2); opacity: 1; }
.media-note { font-size: .82rem; color: var(--muted); }
.press-source { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--gold-2); }

/* ----------------------- Event page ---------------------- */
.event-hero {
  position: relative; overflow: hidden; color: #eaf0f8;
  background: linear-gradient(135deg, var(--navy-deep), var(--navy-2));
}
.event-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 78% 30%, rgba(201,162,75,.2), transparent 45%);
}
.event-card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 34px; border-top: 5px solid var(--gold);
}
.event-detail { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); transition: transform .25s ease; }
.event-detail:last-child { border-bottom: 0; }
.event-detail:hover { transform: translateX(4px); }
.event-detail .ico { font-size: 1.35rem; }
.event-detail b { display: block; color: var(--navy); }
.event-detail small { color: var(--muted); }

.countdown { display: flex; gap: 14px; flex-wrap: wrap; margin: 1.6rem 0; }
.cd-box {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
  border-radius: 12px; padding: 14px 18px; min-width: 80px; text-align: center;
  backdrop-filter: blur(4px); transition: transform .3s var(--ease), border-color .3s ease;
}
.cd-box:hover { transform: translateY(-4px); border-color: rgba(201,162,75,.6); }
.cd-box b { display: block; font-family: var(--serif); font-size: 2rem; color: #fff; line-height: 1; font-variant-numeric: tabular-nums; }
.cd-box span { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--gold-soft); }
.cd-live { font-family: var(--serif); font-size: 1.3rem; color: var(--gold-3); }

/* ------------------------ Quote -------------------------- */
.quote {
  font-family: var(--serif); font-size: clamp(1.4rem, 3vw, 2.05rem);
  font-style: italic; color: var(--navy); line-height: 1.4; max-width: 830px; margin: 0 auto;
}
.quote::before { content: "«"; color: var(--gold); font-size: 1.4em; vertical-align: -.15em; margin-right: .1em; }
.quote::after  { content: "»"; color: var(--gold); font-size: 1.4em; vertical-align: -.35em; margin-left: .1em; }
.quote-author { display: block; font-family: var(--sans); font-style: normal; font-size: .95rem; font-weight: 600; color: var(--muted); margin-top: 1.2rem; letter-spacing: .04em; }

/* ------------------------ Forms -------------------------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field.full { grid-column: 1 / -1; }
label { font-weight: 600; font-size: .9rem; color: var(--navy); }
input, textarea, select {
  font-family: var(--sans); font-size: 1rem; padding: 12px 14px;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,162,75,.18); }
.form-note { font-size: .85rem; color: var(--muted); }

/* ------------------------ Footer ------------------------- */
.site-footer { position: relative; background: linear-gradient(180deg, var(--navy), var(--navy-deep)); color: #b9c6d8; padding: 64px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.site-footer h4 { color: #fff; font-family: var(--sans); font-size: .82rem; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 16px; }
.site-footer a { color: #b9c6d8; }
.site-footer a:hover { color: var(--gold-3); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 9px; }
.footer-links a { position: relative; transition: padding-left .25s ease, color .2s ease; }
.footer-links a:hover { padding-left: 8px; }
.footer-links a::before { content: "›"; position: absolute; left: -2px; opacity: 0; transition: opacity .25s ease; color: var(--gold); }
.footer-links a:hover::before { opacity: 1; }
.footer-brand .brand-name { font-family: var(--serif); font-size: 1.4rem; color: #fff; }
.footer-social { display: flex; gap: 12px; margin-top: 16px; }
.footer-social a {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.22); color: #cdd8e6;
  transition: transform .28s var(--ease), background .28s ease, border-color .28s ease, color .28s ease;
}
.footer-social a svg { width: 18px; height: 18px; fill: currentColor; display: block; }
.footer-social a:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); transform: translateY(-4px) scale(1.05); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 42px; padding-top: 22px; font-size: .85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------------------- Page banner ---------------------- */
.page-banner {
  position: relative; overflow: hidden; text-align: center; padding: 72px 0;
  color: #eaf0f8; background: linear-gradient(135deg, var(--navy-deep), var(--navy-2));
}
.page-banner::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 50% 120%, rgba(201,162,75,.22), transparent 55%);
}
.page-banner .container { position: relative; z-index: 1; }
.page-banner h1 { color: #fff; margin-bottom: .3em; animation: fadeUp .7s var(--ease) both; }
.page-banner p { color: #c7d3e4; max-width: 640px; margin: 0 auto; animation: fadeUp .7s var(--ease) .12s both; }
.breadcrumb { font-size: .82rem; color: var(--gold-soft); letter-spacing: .06em; margin-bottom: 1rem; }
.breadcrumb a { color: var(--gold-soft); }
.breadcrumb a:hover { color: #fff; }

/* --------------------- Reveal on scroll ------------------ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: .09s; }
.reveal:nth-child(3) { transition-delay: .18s; }
.reveal:nth-child(4) { transition-delay: .27s; }

/* ------------------------ Keyframes ---------------------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes fadeInScale { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: scale(1); } }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes gradientShift { 0% { background-position: 0% 50%; } 100% { background-position: 100% 50%; } }
@keyframes shimmer { 0% { background-position: 0% 0; } 100% { background-position: 200% 0; } }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(201,162,75,.55); }
  70%  { box-shadow: 0 0 0 11px rgba(201,162,75,0); }
  100% { box-shadow: 0 0 0 0 rgba(201,162,75,0); }
}

/* ------------------------ Responsive --------------------- */
@media (max-width: 940px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-media { max-width: 420px; margin: 0 auto; }
  .book-feature, .split { grid-template-columns: 1fr; gap: 36px; }
  .book-cover-wrap { max-width: 300px; margin: 0 auto; }
  .book-cover-wrap img { transform: none; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .section { padding: 62px 0; }
  .nav-links {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--line); padding: 12px 20px 20px; gap: 2px;
    transform: translateY(-130%); transition: transform .35s var(--ease); box-shadow: var(--shadow);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 13px 12px; }
  .nav-links a::after { display: none; }
  .nav-cta { margin: 8px 0 0; }
  .nav-toggle { display: block; }
  .grid-3, .grid-2, .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { justify-content: center; text-align: center; }
}

/* ------------------ Accessibilité : mouvement ------------ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .hero-text > *, .hero-media, .reveal, .page-banner h1, .page-banner p { opacity: 1 !important; transform: none !important; }
}
