/* ==========================================================================
   Hisse l'âme — Medjahed Boussehaba
   Feuille de style unique du site.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --ink: #1e1209;
  --bark: #3a2418;
  --bark-2: #2a1a11;
  --terra: #8b3a1a;
  --rust: #a8522a;
  --gold: #b8893a;
  --gold-soft: #d6b67c;
  --cream: #f4eee6;
  --paper: #faf7f2;
  --sand: #e9e0d3;
  --muted: #6e5d50;
  --line: rgba(30, 18, 9, 0.12);
  --line-light: rgba(244, 238, 230, 0.16);
  --on-dark: #f4eee6;
  --on-dark-muted: rgba(244, 238, 230, 0.66);

  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
  --arabic: "Amiri", "Traditional Arabic", serif;

  --container: 1180px;
  --narrow: 760px;
  --gutter: clamp(20px, 5vw, 56px);
  --section: clamp(84px, 11vw, 150px);
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 30px 60px -30px rgba(30, 18, 9, 0.35);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--gold-soft); color: var(--ink); }

.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;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--ink); color: var(--cream); padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 16px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.08; letter-spacing: -0.01em; }
h1 { font-size: clamp(3rem, 8.4vw, 6.6rem); }
h2 { font-size: clamp(2.3rem, 5.2vw, 4rem); }
h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.15; }
h4 { font-size: 1.35rem; }
h1 em, h2 em, h3 em { font-style: italic; color: var(--terra); }
:is(.on-dark, .hero, .section--dark, .section--ink, .page-hero:not(.page-hero--light), .site-footer) h1 em, :is(.on-dark, .hero, .section--dark, .section--ink, .page-hero:not(.page-hero--light), .site-footer) h2 em, :is(.on-dark, .hero, .section--dark, .section--ink, .page-hero:not(.page-hero--light), .site-footer) h3 em { color: var(--gold-soft); }
p { max-width: 68ch; }
.lead { font-size: clamp(1.08rem, 1.5vw, 1.25rem); font-weight: 300; line-height: 1.7; color: var(--muted); }
:is(.on-dark, .hero, .section--dark, .section--ink, .page-hero:not(.page-hero--light), .site-footer) .lead { color: var(--on-dark-muted); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--sans); font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--terra);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: 0.6; }
.eyebrow--plain::before { display: none; }
:is(.on-dark, .hero, .section--dark, .section--ink, .page-hero:not(.page-hero--light), .site-footer) .eyebrow { color: var(--gold-soft); }
.small { font-size: 0.86rem; }
.muted { color: var(--muted); }
:is(.on-dark, .hero, .section--dark, .section--ink, .page-hero:not(.page-hero--light), .site-footer) .muted { color: var(--on-dark-muted); }
.ar { font-family: var(--arabic); direction: rtl; unicode-bidi: isolate; }
strong { font-weight: 500; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: calc(var(--narrow) + 2 * var(--gutter)); }
.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: clamp(56px, 7vw, 96px); }
.section--cream { background: var(--cream); }
.section--sand { background: var(--sand); }
.section--dark { background: var(--bark); color: var(--on-dark); }
.section--ink { background: var(--bark-2); color: var(--on-dark); }
:is(.on-dark, .hero, .section--dark, .section--ink, .page-hero:not(.page-hero--light), .site-footer) { color: var(--on-dark); }
.grain { position: relative; isolation: isolate; }
.grain::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0.22; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.section-head { display: grid; gap: 22px; margin-bottom: clamp(48px, 6vw, 80px); }
.section-head--center { text-align: center; justify-items: center; }
.section-head--center p { margin-inline: auto; }
.section-head--split { grid-template-columns: 1fr; align-items: end; }
@media (min-width: 900px) { .section-head--split { grid-template-columns: 1.2fr 1fr; gap: 64px; } }
.stack > * + * { margin-top: 1.1em; }
.divider { width: 64px; height: 1px; background: var(--gold); opacity: 0.7; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--ink); --fg: var(--cream); --bd: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 14px 28px; border-radius: 999px;
  background: var(--bg); color: var(--fg); border: 1px solid var(--bd);
  font-family: var(--sans); font-size: 0.8rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  transition: transform 0.35s var(--ease), background 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.35s;
  text-align: center; line-height: 1.3;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -14px rgba(30, 18, 9, 0.5); }
.btn .arrow { transition: transform 0.35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn--terra { --bg: var(--terra); --bd: var(--terra); --fg: #fff; }
.btn--terra:hover { --bg: #7a3116; }
.btn--gold { --bg: var(--gold); --bd: var(--gold); --fg: var(--ink); }
.btn--gold:hover { --bg: var(--gold-soft); --bd: var(--gold-soft); }
.btn--ghost { --bg: transparent; --fg: var(--ink); --bd: rgba(30, 18, 9, 0.28); }
.btn--ghost:hover { --bg: var(--ink); --fg: var(--cream); --bd: var(--ink); }
:is(.on-dark, .hero, .section--dark, .section--ink, .page-hero:not(.page-hero--light), .site-footer) .btn--ghost, .btn--ghost-light { --bg: transparent; --fg: var(--cream); --bd: rgba(244, 238, 230, 0.35); }
:is(.on-dark, .hero, .section--dark, .section--ink, .page-hero:not(.page-hero--light), .site-footer) .btn--ghost:hover, .btn--ghost-light:hover { --bg: var(--cream); --fg: var(--ink); --bd: var(--cream); }
.btn--block { width: 100%; }
.btn[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  border-bottom: 1px solid currentColor; padding-bottom: 4px;
  transition: gap 0.3s var(--ease), color 0.3s;
}
.link:hover { gap: 14px; color: var(--terra); }
:is(.on-dark, .hero, .section--dark, .section--ink, .page-hero:not(.page-hero--light), .site-footer) .link:hover { color: var(--gold-soft); }

/* ---------- Header / nav ---------- */
.site-header {
  position: fixed; inset: 14px 0 auto; z-index: 100; padding-inline: 14px;
  transition: transform 0.45s var(--ease);
}
.site-header.is-hidden { transform: translateY(-120%); }
.nav {
  max-width: 1240px; margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 8px 8px 8px 12px; border-radius: 999px;
  background: rgba(250, 247, 242, 0.78); border: 1px solid rgba(30, 18, 9, 0.08);
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 10px 40px -20px rgba(30, 18, 9, 0.35);
  transition: background 0.4s, border-color 0.4s;
}
.header--dark .nav { background: rgba(42, 26, 17, 0.42); border-color: rgba(244, 238, 230, 0.14); color: var(--cream); }
.header--dark.is-scrolled .nav { background: rgba(250, 247, 242, 0.86); border-color: rgba(30, 18, 9, 0.08); color: var(--ink); }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--cream); flex: none; }
.brand-text { display: grid; line-height: 1.1; }
.brand-name { font-family: var(--serif); font-size: 1.22rem; white-space: nowrap; }
.brand-sub { font-size: 0.6rem; letter-spacing: 0.22em; text-transform: uppercase; opacity: 0.7; white-space: nowrap; }
.nav-links { display: none; gap: 4px; }
.nav-links a {
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 10px 14px; border-radius: 999px; transition: background 0.3s;
}
.nav-links a:hover { background: rgba(139, 58, 26, 0.08); }
.header--dark:not(.is-scrolled) .nav-links a:hover { background: rgba(244, 238, 230, 0.12); }
.nav-links a[aria-current="page"] { color: var(--terra); }
.header--dark:not(.is-scrolled) .nav-links a[aria-current="page"] { color: var(--gold-soft); }
.nav-cta { display: none; }
.nav-cta .btn { min-height: 44px; padding: 10px 20px; font-size: 0.7rem; }
.header--dark:not(.is-scrolled) .nav-cta .btn { --bg: var(--cream); --fg: var(--ink); --bd: var(--cream); }
.burger { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.burger span { display: block; width: 20px; height: 1.5px; background: currentColor; position: relative; transition: background 0.3s; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; width: 20px; height: 1.5px; background: currentColor; transition: transform 0.35s var(--ease); }
.burger span::before { top: -6px; } .burger span::after { top: 6px; }
.menu-open .burger span { background: transparent; }
.menu-open .burger span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .burger span::after { transform: translateY(-6px) rotate(-45deg); }
.mobile-menu {
  position: fixed; inset: 0; z-index: 90; background: var(--bark-2); color: var(--cream);
  display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 110px var(--gutter) 40px;
  opacity: 0; visibility: hidden; transition: opacity 0.4s var(--ease), visibility 0.4s;
}
.menu-open .mobile-menu { opacity: 1; visibility: visible; }
.menu-open { overflow: hidden; }
.menu-open .site-header .nav { background: transparent; border-color: transparent; box-shadow: none; color: var(--cream); }
.mobile-menu a.mm-link { font-family: var(--serif); font-size: clamp(2.2rem, 9vw, 3.2rem); line-height: 1.25; }
.mobile-menu a.mm-link em { color: var(--gold-soft); }
.mobile-menu .btn { margin-top: 28px; align-self: flex-start; }
.mobile-menu .mm-foot { margin-top: auto; font-size: 0.8rem; color: var(--on-dark-muted); }
@media (min-width: 1040px) {
  .nav { padding-left: 18px; }
  .nav-links, .nav-cta { display: flex; }
  .burger, .mobile-menu { display: none; }
}

/* ---------- Hero (accueil) ---------- */
.hero {
  min-height: 100svh; background: var(--bark-2); color: var(--on-dark);
  display: grid; align-items: end; padding-top: 130px; padding-bottom: clamp(48px, 7vw, 90px);
  overflow: hidden; position: relative;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(120% 80% at 78% 20%, rgba(184, 137, 58, 0.22), transparent 60%),
    radial-gradient(90% 70% at 10% 90%, rgba(139, 58, 26, 0.35), transparent 60%),
    linear-gradient(180deg, #2a1a11 0%, #3a2418 100%);
}
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.hero-inner { position: relative; z-index: 1; display: grid; gap: 48px; align-items: end; }
@media (min-width: 960px) { .hero-inner { grid-template-columns: 1.25fr 0.75fr; gap: 72px; } }
.hero h1 { margin-top: 22px; }
.hero h1 .line { display: block; }
.hero .lead { margin-top: 26px; max-width: 34ch; }
.hero .btn-row { margin-top: 38px; }
.hero-arch {
  position: relative; width: min(100%, 400px); justify-self: center; aspect-ratio: 4 / 5;
  border-radius: 999px 999px 24px 24px; overflow: hidden;
  border: 1px solid rgba(214, 182, 124, 0.45); padding: 10px; background: rgba(244, 238, 230, 0.04);
}
.hero-arch img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; border-radius: 999px 999px 16px 16px; filter: saturate(0.9) contrast(1.02); }
@media (min-width: 960px) { .hero-arch { justify-self: end; } }
.hero-quote {
  margin-top: 56px; padding-top: 26px; border-top: 1px solid var(--line-light);
  display: grid; gap: 6px; max-width: 520px;
}
.hero-quote blockquote { font-family: var(--serif); font-style: italic; font-size: 1.35rem; line-height: 1.35; }
.hero-quote cite { font-style: normal; font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--on-dark-muted); }
.scroll-hint { position: absolute; left: 50%; bottom: 22px; z-index: 1; width: 1px; height: 46px; background: linear-gradient(var(--gold-soft), transparent); opacity: 0.6; }

/* ---------- Page hero (pages internes) ---------- */
.page-hero {
  padding-top: clamp(150px, 18vw, 210px); padding-bottom: clamp(64px, 8vw, 110px);
  background: var(--bark-2); color: var(--on-dark); position: relative; overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(90% 70% at 85% 10%, rgba(184, 137, 58, 0.2), transparent 60%), radial-gradient(70% 60% at 0% 100%, rgba(139, 58, 26, 0.32), transparent 60%);
}
.page-hero > * { position: relative; }
.page-hero h1 { font-size: clamp(2.9rem, 7.4vw, 5.8rem); margin-top: 20px; }
.page-hero .lead { margin-top: 24px; max-width: 46ch; }
.page-hero .btn-row { margin-top: 36px; }
.page-hero--light { background: var(--cream); color: var(--ink); }
.page-hero--light::before { background: radial-gradient(80% 60% at 90% 0%, rgba(184, 137, 58, 0.18), transparent 60%); }
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.2fr 0.8fr; gap: 72px; } }
.hero-ar { font-family: var(--arabic); font-size: clamp(4rem, 12vw, 9rem); line-height: 1; color: var(--gold-soft); opacity: 0.9; text-align: center; }

/* ---------- Key facts strip ---------- */
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line-light); border: 1px solid var(--line-light); border-radius: var(--radius); overflow: hidden; margin-top: 48px; }
.facts > div { background: rgba(42, 26, 17, 0.9); padding: 20px 22px; display: grid; gap: 4px; }
.facts dt { font-size: 0.66rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--on-dark-muted); }
.facts dd { font-family: var(--serif); font-size: 1.5rem; line-height: 1.15; }
.facts--light { background: var(--line); border-color: var(--line); }
.facts--light > div { background: var(--paper); }
.facts--light dt { color: var(--muted); }
@media (min-width: 760px) { .facts { grid-template-columns: repeat(4, 1fr); } .facts--3 { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Service cards (accueil) ---------- */
.services { display: grid; gap: 20px; }
@media (min-width: 900px) { .services { grid-template-columns: repeat(3, 1fr); } }
.service {
  position: relative; display: flex; flex-direction: column; gap: 18px;
  padding: 34px 30px 30px; border-radius: var(--radius-lg); background: var(--paper);
  border: 1px solid var(--line); min-height: 100%;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.4s;
}
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.service-num { font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--gold); }
.service-arch {
  height: 170px; border-radius: 999px 999px 14px 14px; overflow: hidden; display: grid; place-items: center;
  background: radial-gradient(80% 90% at 50% 0%, rgba(184, 137, 58, 0.28), transparent 70%), var(--bark);
  color: var(--gold-soft);
}
.service-arch span { font-family: var(--arabic); font-size: 3.4rem; line-height: 1; }
.service-arch svg { width: 64px; height: 64px; stroke: currentColor; }
.service h3 { margin-top: 4px; }
.service p { color: var(--muted); font-size: 0.98rem; }
.service-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
:is(.on-dark, .hero, .section--dark, .section--ink, .page-hero:not(.page-hero--light), .site-footer) .chip { border-color: var(--line-light); color: var(--on-dark-muted); }
.chip--live { border-color: rgba(139, 58, 26, 0.35); color: var(--terra); }
.chip--live::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; margin-right: 8px; vertical-align: middle; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.service .link { margin-top: auto; align-self: flex-start; }

/* ---------- Quiz ---------- */
.quiz {
  max-width: 820px; margin-inline: auto; background: var(--bark); color: var(--on-dark);
  border-radius: var(--radius-lg); padding: clamp(32px, 6vw, 64px); position: relative; overflow: hidden;
}
.quiz::before { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(214, 182, 124, 0.25); border-radius: calc(var(--radius-lg) - 8px); pointer-events: none; }
.quiz-progress { display: flex; gap: 6px; margin-bottom: 36px; }
.quiz-progress span { flex: 1; height: 2px; background: rgba(244, 238, 230, 0.14); border-radius: 2px; overflow: hidden; }
.quiz-progress span::after { content: ""; display: block; height: 100%; width: 0; background: var(--gold); transition: width 0.45s var(--ease); }
.quiz-progress span.is-done::after, .quiz-progress span.is-active::after { width: 100%; }
.quiz-step { display: none; gap: 22px; }
.quiz-step.is-active { display: grid; animation: fadeUp 0.5s var(--ease); }
.quiz-kicker { font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-soft); }
.quiz-q { font-family: var(--serif); font-size: clamp(1.6rem, 3.4vw, 2.3rem); line-height: 1.2; }
.quiz-sub { font-style: italic; color: var(--on-dark-muted); font-size: 0.95rem; margin-top: -10px; }
.quiz-options { display: grid; gap: 10px; }
.quiz-option {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; text-align: left;
  padding: 18px 22px; border-radius: 14px; border: 1px solid var(--line-light);
  font-size: 1rem; transition: background 0.3s, border-color 0.3s, transform 0.3s var(--ease);
}
.quiz-option:hover, .quiz-option:focus-visible { background: rgba(244, 238, 230, 0.06); border-color: var(--gold); transform: translateX(4px); }
.quiz-option .arrow { color: var(--gold-soft); }
.quiz-back { justify-self: start; font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark-muted); padding: 6px 0; }
.quiz-back:hover { color: var(--cream); }
.quiz-foot { margin-top: 28px; font-size: 0.75rem; color: var(--on-dark-muted); display: flex; gap: 10px; align-items: center; }
.quiz-result h3 { font-size: clamp(2rem, 4vw, 2.8rem); }
.quiz-result h3 em { color: var(--gold-soft); }
.quiz-result p { color: var(--on-dark-muted); }
.quiz-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--line-light); border-radius: 12px; overflow: hidden; }
.quiz-facts div { background: var(--bark); padding: 14px 16px; display: grid; gap: 2px; }
.quiz-facts span:first-child { font-size: 0.64rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--on-dark-muted); }
.quiz-facts span:last-child { font-family: var(--serif); font-size: 1.25rem; }
.emergency { display: grid; gap: 10px; }
.emergency div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 18px; border-radius: 12px; border: 1px solid var(--line-light); }
.emergency strong { font-family: var(--serif); font-size: 1.4rem; font-weight: 400; color: var(--gold-soft); white-space: nowrap; }

/* ---------- About ---------- */
.about { display: grid; gap: 56px; align-items: center; }
@media (min-width: 960px) { .about { grid-template-columns: 0.85fr 1.15fr; gap: 88px; } }
.portrait { position: relative; max-width: 460px; justify-self: center; width: 100%; }
.portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 25%; border-radius: 999px 999px var(--radius-lg) var(--radius-lg); }
.portrait-badge {
  position: absolute; right: -10px; bottom: 28px; width: 116px; height: 116px; border-radius: 50%;
  background: var(--cream); padding: 6px; box-shadow: var(--shadow);
}
.portrait-badge img { width: 100%; height: 100%; aspect-ratio: 1; border-radius: 50%; object-fit: cover; }
.creds { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.signature { font-family: var(--serif); font-style: italic; font-size: 2rem; color: var(--terra); margin-top: 18px; }

/* ---------- Testimonials ---------- */
.testimonials { display: grid; grid-auto-flow: column; grid-auto-columns: min(86%, 440px); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--gutter) 24px; margin-inline: calc(-1 * var(--gutter)); scrollbar-width: thin; scrollbar-color: var(--gold) transparent; }
.testimonial {
  scroll-snap-align: start; display: flex; flex-direction: column; gap: 22px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px 30px;
}
:is(.on-dark, .hero, .section--dark, .section--ink, .page-hero:not(.page-hero--light), .site-footer) .testimonial { background: rgba(244, 238, 230, 0.04); border-color: var(--line-light); }
.testimonial blockquote { font-family: var(--serif); font-size: 1.32rem; line-height: 1.42; }
.testimonial blockquote::before { content: "“"; display: block; font-size: 3.4rem; line-height: 0.6; color: var(--gold); margin-bottom: 8px; }
.testimonial figcaption { margin-top: auto; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
:is(.on-dark, .hero, .section--dark, .section--ink, .page-hero:not(.page-hero--light), .site-footer) .testimonial figcaption { color: var(--on-dark-muted); }
.slider-nav { display: flex; gap: 10px; }
.slider-nav button { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: background 0.3s, color 0.3s; }
.slider-nav button:hover { background: var(--ink); color: var(--cream); }
:is(.on-dark, .hero, .section--dark, .section--ink, .page-hero:not(.page-hero--light), .site-footer) .slider-nav button { border-color: var(--line-light); }
:is(.on-dark, .hero, .section--dark, .section--ink, .page-hero:not(.page-hero--light), .site-footer) .slider-nav button:hover { background: var(--cream); color: var(--ink); }

/* ---------- Event / product cards ---------- */
.event {
  display: grid; gap: 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--paper);
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
@media (min-width: 860px) { .event { grid-template-columns: 0.9fr 1.1fr; } }
.event-visual {
  min-height: 300px; position: relative; display: grid; place-items: center; text-align: center; padding: 40px;
  background: radial-gradient(90% 80% at 50% 0%, rgba(184, 137, 58, 0.35), transparent 65%), linear-gradient(160deg, #3a2418, #1e1209);
  color: var(--on-dark);
}
.event-visual .date-big { font-family: var(--serif); font-size: clamp(4rem, 9vw, 6.5rem); line-height: 0.9; }
.event-visual .date-month { font-size: 0.8rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold-soft); margin-top: 10px; }
.event-body { padding: clamp(28px, 4vw, 48px); display: grid; gap: 18px; align-content: center; }
.event-body h3 { font-size: clamp(2rem, 3.4vw, 2.8rem); }
.price { font-family: var(--serif); font-size: 2.4rem; line-height: 1; }
.price small { font-family: var(--sans); font-size: 0.8rem; color: var(--muted); margin-left: 8px; letter-spacing: 0.04em; }

.products { display: grid; gap: 22px; }
@media (min-width: 760px) { .products { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .products--3 { grid-template-columns: repeat(3, 1fr); } }
.product {
  display: flex; flex-direction: column; border-radius: var(--radius-lg); overflow: hidden; background: var(--paper);
  border: 1px solid var(--line); transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.product:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.product-cover {
  aspect-ratio: 16 / 10; position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 26px;
  color: var(--on-dark); overflow: hidden;
  background: radial-gradient(100% 90% at 80% 0%, rgba(184, 137, 58, 0.4), transparent 60%), linear-gradient(160deg, #4a2d1d, #1e1209);
}
.product-cover--terra { background: radial-gradient(100% 90% at 20% 0%, rgba(214, 182, 124, 0.35), transparent 60%), linear-gradient(160deg, #8b3a1a, #2a1a11); }
.product-cover--olive { background: radial-gradient(100% 90% at 80% 10%, rgba(214, 182, 124, 0.35), transparent 60%), linear-gradient(160deg, #5b5534, #1e1209); }
.product-cover .tag { position: absolute; top: 20px; left: 22px; font-size: 0.64rem; letter-spacing: 0.22em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; background: rgba(244, 238, 230, 0.12); backdrop-filter: blur(6px); }
.product-cover .ar { position: absolute; right: 22px; top: 6px; font-size: 4.2rem; color: rgba(214, 182, 124, 0.35); line-height: 1.4; }
.product-cover h3 { font-size: clamp(1.8rem, 2.8vw, 2.3rem); position: relative; }
.product-cover p { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark-muted); position: relative; }
.product-body { padding: 26px; display: flex; flex-direction: column; gap: 16px; flex: 1; }
.product-body p { color: var(--muted); font-size: 0.97rem; }
.product-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 18px; border-top: 1px solid var(--line); }
.product-foot .price { font-size: 2rem; }

/* ---------- Media (YouTube) ---------- */
.videos { display: grid; gap: 18px; }
@media (min-width: 700px) { .videos { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .videos { grid-template-columns: repeat(3, 1fr); } }
.video { display: grid; gap: 14px; }
.video-thumb { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--bark); }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease), opacity 0.4s; opacity: 0.88; }
.video:hover .video-thumb img { transform: scale(1.04); opacity: 1; }
.video-thumb::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; translate: -50% -50%; border-radius: 50%;
  background: rgba(244, 238, 230, 0.92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231e1209'%3E%3Cpath d='M8 5.5v13l11-6.5z'/%3E%3C/svg%3E") center / 22px no-repeat;
  transition: transform 0.4s var(--ease);
}
.video:hover .video-thumb::after { transform: scale(1.08); }
.video span { font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-soft); }
.video h3 { font-size: 1.35rem; }

/* ---------- Newsletter ---------- */
.newsletter { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .newsletter { grid-template-columns: 1.1fr 0.9fr; gap: 72px; } }
.nl-form { display: grid; gap: 12px; }
.nl-row { display: flex; gap: 8px; padding: 6px; border-radius: 999px; background: rgba(244, 238, 230, 0.08); border: 1px solid var(--line-light); }
.nl-row input { flex: 1; min-width: 0; background: transparent; border: 0; color: inherit; font: inherit; font-size: 1rem; padding: 0 18px; outline: none; }
.nl-row input::placeholder { color: var(--on-dark-muted); }
.nl-row .btn { min-height: 48px; padding: 10px 22px; flex: none; }
.section--cream .nl-row, .section--sand .nl-row { background: var(--paper); border-color: var(--line); }
.section--cream .nl-row input::placeholder { color: var(--muted); }
.nl-msg { font-size: 0.88rem; min-height: 1.4em; }
.nl-msg.is-ok { color: var(--gold-soft); }
.section--cream .nl-msg.is-ok { color: var(--terra); }
.nl-msg.is-err { color: #f0a58a; }
@media (max-width: 520px) {
  .nl-row { flex-direction: column; border-radius: 22px; padding: 8px; }
  .nl-row input { padding: 12px 14px; }
}

/* ---------- Sales page components ---------- */
.split { display: grid; gap: 48px; align-items: start; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; gap: 88px; } }
.split--center { align-items: center; }
.numbered { display: grid; gap: 0; counter-reset: n; }
.numbered li { counter-increment: n; display: grid; grid-template-columns: 56px 1fr; gap: 6px 18px; padding: 22px 0; border-top: 1px solid var(--line); }
.numbered li:last-child { border-bottom: 1px solid var(--line); }
.numbered li::before { content: counter(n, upper-roman); font-family: var(--serif); font-style: italic; font-size: 1.4rem; color: var(--gold); grid-row: span 2; }
:is(.on-dark, .hero, .section--dark, .section--ink, .page-hero:not(.page-hero--light), .site-footer) .numbered li { border-color: var(--line-light); }
.numbered h4 { font-family: var(--sans); font-size: 1.05rem; font-weight: 500; line-height: 1.4; }
.numbered p { color: var(--muted); font-size: 0.98rem; }
:is(.on-dark, .hero, .section--dark, .section--ink, .page-hero:not(.page-hero--light), .site-footer) .numbered p { color: var(--on-dark-muted); }

.verse {
  text-align: center; display: grid; gap: 18px; justify-items: center; padding: clamp(40px, 6vw, 72px) var(--gutter);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
:is(.on-dark, .hero, .section--dark, .section--ink, .page-hero:not(.page-hero--light), .site-footer) .verse { border-color: var(--line-light); }
.verse .ar { font-size: clamp(1.7rem, 3.4vw, 2.6rem); line-height: 1.9; color: var(--terra); }
:is(.on-dark, .hero, .section--dark, .section--ink, .page-hero:not(.page-hero--light), .site-footer) .verse .ar { color: var(--gold-soft); }
.verse blockquote { font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem, 2.4vw, 1.75rem); line-height: 1.4; max-width: 34ch; }
.verse cite { font-style: normal; font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
:is(.on-dark, .hero, .section--dark, .section--ink, .page-hero:not(.page-hero--light), .site-footer) .verse cite { color: var(--on-dark-muted); }

.cards { display: grid; gap: 18px; }
@media (min-width: 720px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } .cards--4 { grid-template-columns: repeat(4, 1fr); } }
.card { padding: 30px 28px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); display: grid; gap: 12px; align-content: start; }
.section--cream .card { background: var(--paper); }
:is(.on-dark, .hero, .section--dark, .section--ink, .page-hero:not(.page-hero--light), .site-footer) .card { background: rgba(244, 238, 230, 0.04); border-color: var(--line-light); }
.card-num { font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 1.15rem; }
.card h3 { font-size: 1.6rem; }
.card p { color: var(--muted); font-size: 0.97rem; }
:is(.on-dark, .hero, .section--dark, .section--ink, .page-hero:not(.page-hero--light), .site-footer) .card p { color: var(--on-dark-muted); }
.card .kicker { font-size: 0.66rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--terra); }
:is(.on-dark, .hero, .section--dark, .section--ink, .page-hero:not(.page-hero--light), .site-footer) .card .kicker { color: var(--gold-soft); }

.compare { display: grid; gap: 18px; }
@media (min-width: 860px) { .compare { grid-template-columns: 1fr 1fr; } }
.compare > div { border-radius: var(--radius-lg); padding: 34px 30px; }
.compare .before { background: var(--sand); }
.compare .after { background: var(--bark); color: var(--on-dark); }
.compare h3 { font-size: 0.74rem; font-family: var(--sans); font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; margin-bottom: 18px; }
.compare .before h3 { color: var(--muted); }
.compare .after h3 { color: var(--gold-soft); }
.compare li { padding: 12px 0 12px 30px; position: relative; border-top: 1px solid var(--line); }
.compare .after li { border-color: var(--line-light); }
.compare li::before { position: absolute; left: 0; top: 12px; font-family: var(--serif); font-size: 1.2rem; line-height: 1.4; }
.compare .before li::before { content: "—"; color: var(--muted); }
.compare .after li::before { content: "✓"; font-family: var(--sans); color: var(--gold-soft); }

.modules { display: grid; gap: 0; }
.module { display: grid; gap: 8px 32px; padding: 30px 0; border-top: 1px solid var(--line); }
.module:last-child { border-bottom: 1px solid var(--line); }
@media (min-width: 860px) { .module { grid-template-columns: 160px 1fr 1.3fr; align-items: baseline; } }
.module-num { font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--terra); }
.module h3 { font-size: 1.85rem; }
.module p { color: var(--muted); }

.checklist li { position: relative; padding: 10px 0 10px 34px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 16px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--terra) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 11px no-repeat;
}
:is(.on-dark, .hero, .section--dark, .section--ink, .page-hero:not(.page-hero--light), .site-footer) .checklist li::before { background-color: var(--gold); }
.checklist--no li::before { background: transparent; border: 1px solid var(--muted); content: "—"; color: var(--muted); font-size: 0.7rem; display: grid; place-items: center; line-height: 1; }

.offer {
  border-radius: var(--radius-lg); background: var(--paper); color: var(--ink); padding: clamp(28px, 4vw, 44px);
  border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; gap: 22px; position: relative;
}
.offer .price { font-size: clamp(3rem, 6vw, 4.2rem); }
.offer ul { display: grid; gap: 4px; }
.offer .note { font-size: 0.78rem; color: var(--muted); text-align: center; letter-spacing: 0.04em; }
.offer-badge { position: absolute; top: -14px; left: 50%; translate: -50% 0; background: var(--terra); color: #fff; font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; padding: 8px 16px; border-radius: 999px; white-space: nowrap; }

/* Groupes (Sakina) */
.groups { display: grid; gap: 18px; }
@media (min-width: 860px) { .groups { grid-template-columns: 1fr 1fr; } }
.group {
  border-radius: var(--radius-lg); padding: 30px; display: grid; gap: 18px;
  background: var(--paper); border: 1px solid var(--line); position: relative;
}
.group-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.group h3 { font-size: 2.2rem; }
.group .status { font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; background: rgba(139, 58, 26, 0.08); color: var(--terra); }
.group.is-full .status { background: var(--sand); color: var(--muted); }
.group.is-full .btn { --bg: var(--sand); --bd: var(--sand); --fg: var(--muted); pointer-events: none; }
.dates { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.dates li { text-align: center; padding: 10px 4px; border-radius: 12px; background: var(--cream); display: grid; line-height: 1.1; }
.dates b { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; }
.dates small { font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.dates .s { font-size: 0.58rem; color: var(--gold); letter-spacing: 0.1em; }

.spec { display: grid; border-top: 1px solid var(--line); }
.spec > div { display: grid; gap: 4px 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 720px) { .spec > div { grid-template-columns: 200px 1fr; } }
.spec dt { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--terra); padding-top: 4px; }
.spec dd { color: var(--muted); }

/* FAQ */
.faq { display: grid; border-top: 1px solid var(--line); }
:is(.on-dark, .hero, .section--dark, .section--ink, .page-hero:not(.page-hero--light), .site-footer) .faq { border-color: var(--line-light); }
.faq details { border-bottom: 1px solid var(--line); }
:is(.on-dark, .hero, .section--dark, .section--ink, .page-hero:not(.page-hero--light), .site-footer) .faq details { border-color: var(--line-light); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; align-items: center;
  padding: 24px 0; font-family: var(--serif); font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); font-weight: 300; font-size: 1.6rem; color: var(--gold); transition: transform 0.35s var(--ease); flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 26px; color: var(--muted); max-width: 70ch; }
:is(.on-dark, .hero, .section--dark, .section--ink, .page-hero:not(.page-hero--light), .site-footer) .faq details > div { color: var(--on-dark-muted); }

/* CTA band */
.cta-band { text-align: center; display: grid; gap: 26px; justify-items: center; }
.cta-band h2 { max-width: 18ch; }
.cta-band .ar { font-size: 3rem; color: var(--gold-soft); line-height: 1; }

/* Sticky mobile CTA (pages de vente) */
.sticky-cta {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 80;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 10px 10px 20px; border-radius: 999px; background: rgba(30, 18, 9, 0.92); color: var(--cream);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.5);
  transform: translateY(140%); transition: transform 0.5s var(--ease);
}
.sticky-cta.is-visible { transform: none; }
.sticky-cta .t { display: grid; line-height: 1.2; min-width: 0; }
.sticky-cta .t b { font-family: var(--serif); font-weight: 400; font-size: 1.15rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-cta .t small { font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--on-dark-muted); }
.sticky-cta .btn { min-height: 46px; padding: 10px 20px; font-size: 0.7rem; flex: none; }
@media (min-width: 1040px) { .sticky-cta { left: auto; right: 24px; bottom: 24px; max-width: 460px; } }

/* Contact */
.contact-grid { display: grid; gap: 40px; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 0.9fr 1.1fr; gap: 80px; } }
.contact-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.contact-list > * { display: grid; gap: 2px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.contact-list dt { font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--terra); }
.contact-list dd { font-family: var(--serif); font-size: 1.45rem; line-height: 1.3; }
.contact-list dd a:hover { color: var(--terra); }
.form { display: grid; gap: 18px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 44px); }
.field { display: grid; gap: 8px; }
.field label { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--cream);
  border: 1px solid transparent; border-radius: 12px; padding: 14px 16px; transition: border-color 0.3s, background 0.3s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); background: #fff; }
.field-row { display: grid; gap: 18px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { font-size: 0.86rem; color: var(--muted); padding: 14px 16px; border-radius: 12px; background: var(--cream); border-left: 3px solid var(--gold); }
.notice--alert { border-left-color: var(--terra); }
.form-msg { font-size: 0.95rem; }
.form-msg.is-ok { color: #3f6b3a; }
.form-msg.is-err { color: var(--terra); }

/* Prose (légal) */
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin: 2.2em 0 0.6em; }
.prose h3 { font-size: 1.35rem; margin: 1.6em 0 0.4em; }
.prose p, .prose li { color: #3d3027; }
.prose p + p { margin-top: 0.9em; }
.prose ul { list-style: disc; padding-left: 1.3em; margin: 0.8em 0; }
.prose li + li { margin-top: 0.3em; }
.prose a { color: var(--terra); border-bottom: 1px solid rgba(139, 58, 26, 0.35); }
.prose .todo { background: #fff3c4; padding: 0 4px; border-radius: 4px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bark-2); color: var(--on-dark); padding-top: clamp(72px, 9vw, 120px); padding-bottom: 36px; }
.footer-top { display: grid; gap: 48px; padding-bottom: 56px; border-bottom: 1px solid var(--line-light); }
@media (min-width: 900px) { .footer-top { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-brand p { color: var(--on-dark-muted); margin-top: 18px; max-width: 34ch; font-size: 0.95rem; }
.footer-title { font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 16px; }
.footer-links { display: grid; gap: 10px; font-size: 0.95rem; }
.footer-links a { color: var(--on-dark-muted); transition: color 0.3s; }
.footer-links a:hover { color: var(--cream); }
.footer-bottom { padding-top: 28px; display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; font-size: 0.8rem; color: var(--on-dark-muted); }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-bottom a:hover { color: var(--cream); }
.footer-big { font-family: var(--serif); font-size: clamp(3.2rem, 11vw, 9rem); line-height: 0.95; letter-spacing: -0.02em; margin-top: 56px; color: rgba(244, 238, 230, 0.9); }
.footer-big em { color: var(--gold-soft); }
.socials { display: flex; gap: 10px; margin-top: 22px; }
.socials a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-light); display: grid; place-items: center; transition: background 0.3s, color 0.3s; }
.socials a:hover { background: var(--cream); color: var(--ink); }
.socials svg { width: 18px; height: 18px; }

/* ---------- Reveal animations ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.js .rv { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .rv.is-in { opacity: 1; transform: none; }
.js .rv-d1 { transition-delay: 0.08s; } .js .rv-d2 { transition-delay: 0.16s; } .js .rv-d3 { transition-delay: 0.24s; }
.hero .rv-h { animation: fadeUp 1.2s var(--ease) both; }
.hero .rv-h:nth-child(2) { animation-delay: 0.1s; } .hero .rv-h:nth-child(3) { animation-delay: 0.2s; } .hero .rv-h:nth-child(4) { animation-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .js .rv { opacity: 1; transform: none; }
}

/* ---------- Utilities ---------- */
.center { text-align: center; }
.mt-s { margin-top: 18px; } .mt-m { margin-top: 32px; } .mt-l { margin-top: 56px; }
.gap-l { gap: 48px; }
.hide-mobile { display: none; }
@media (min-width: 760px) { .hide-mobile { display: initial; } }

/* ---------- Ajustements ---------- */
@media (max-width: 959px) { .hero-arch { width: min(78%, 320px); } }
.offer :is(.muted, .lead, p) { color: var(--muted); }
.offer h3, .offer .price { color: var(--ink); }
.offer .checklist li::before { background-color: var(--terra); }
.group :is(.muted, p) { color: var(--muted); }
.group h3 { color: var(--ink); }
.event :is(.muted) { color: var(--muted); }

/* ==========================================================================
   Mouvement & vidéos (v2)
   ========================================================================== */

/* Barre de progression de lecture */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 120; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--terra), var(--gold)); pointer-events: none; }

/* Fond animé du hero (aurore lente) */
.hero-bg::before, .page-hero::after {
  content: ""; position: absolute; inset: -20%; pointer-events: none;
  background:
    radial-gradient(35% 30% at 30% 30%, rgba(184, 137, 58, 0.28), transparent 70%),
    radial-gradient(30% 35% at 70% 70%, rgba(168, 82, 42, 0.32), transparent 70%);
  filter: blur(30px); animation: aurora 22s ease-in-out infinite alternate;
}
.page-hero::after { z-index: 0; opacity: 0.8; }
.page-hero > .container { z-index: 1; }
@keyframes aurora {
  0% { transform: translate3d(-6%, -4%, 0) rotate(0deg) scale(1); }
  50% { transform: translate3d(5%, 6%, 0) rotate(12deg) scale(1.1); }
  100% { transform: translate3d(-3%, 8%, 0) rotate(-8deg) scale(1.05); }
}

/* Titres révélés mot à mot */
.splitw .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.splitw .wi { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i) * 55ms); }
.splitw.is-in .wi { transform: none; }

/* Révélation d'images en rideau */
.js .reveal-img { overflow: hidden; display: block; clip-path: inset(100% 0 0 0 round 999px 999px 24px 24px); transition: clip-path 1.4s var(--ease); }
.js .reveal-img.is-in { clip-path: inset(0 0 0 0 round 999px 999px 24px 24px); }
.js .reveal-img img { transform: scale(1.18); transition: transform 1.8s var(--ease); }
.js .reveal-img.is-in img { transform: scale(1); }

/* Parallaxe */
[data-parallax] { will-change: transform; }

/* Bandeau défilant */
.marquee { overflow: hidden; background: var(--bark-2); color: var(--cream); padding: 22px 0; border-block: 1px solid var(--line-light); position: relative; }
.marquee--light { background: var(--cream); color: var(--ink); border-color: var(--line); }
.marquee-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-family: var(--serif); font-size: clamp(1.8rem, 4vw, 3rem); white-space: nowrap; padding-inline: 28px; display: inline-flex; align-items: center; gap: 56px; }
.marquee-track span::after { content: "✦"; font-size: 0.7em; color: var(--gold); }
.marquee-track em { color: var(--gold-soft); }
.marquee--light .marquee-track em { color: var(--terra); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Boutons : reflet au survol */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.28) 50%, transparent 70%); transform: translateX(-120%); transition: transform 0.9s var(--ease); }
.btn:hover::after { transform: translateX(120%); }

/* Cartes inclinables */
[data-tilt] { transform-style: preserve-3d; transition: transform 0.6s var(--ease), box-shadow 0.5s var(--ease); }

/* Apparition en cascade */
.js .stagger > * { opacity: 0; transform: translateY(34px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.js .stagger.is-in > * { opacity: 1; transform: none; }

/* Vidéos YouTube : une vidéo à la une + deux à côté */
@media (min-width: 1040px) {
  .videos--feature { grid-template-columns: 1.6fr 1fr; grid-template-rows: auto auto; }
  .videos--feature .video--lead { grid-row: span 2; }
  .videos--feature .video--lead h3 { font-size: 2rem; }
}
.shorts { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(160px, 42vw, 210px); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px var(--gutter) 22px; margin-inline: calc(-1 * var(--gutter)); scrollbar-width: thin; scrollbar-color: var(--gold) transparent; cursor: grab; }
.shorts.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.short { scroll-snap-align: start; position: relative; aspect-ratio: 9 / 16; border-radius: 18px; overflow: hidden; background: var(--bark); display: block; }
.short img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.short:hover img { transform: scale(1.06); }
.short::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, transparent 45%, rgba(30, 18, 9, 0.9)); }
.short span { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 2; font-size: 0.86rem; line-height: 1.35; color: var(--cream); }
.shorts-head { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin: 64px 0 22px; }
.shorts-head h3 { font-size: 1.8rem; }

/* Visuel d'événement avec affiche */
.event-visual--img { padding: 0; min-height: 360px; }
.event-visual--img img { position: absolute; inset: 0; width: 100%; height: 115%; object-fit: cover; top: -7%; }
.event-poster { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .event-poster { grid-template-columns: 0.9fr 1.1fr; gap: 64px; } }
.poster { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); transform: rotate(-2deg); transition: transform 0.8s var(--ease); }
.poster:hover { transform: rotate(0deg) scale(1.02); }
.poster img { width: 100%; height: auto; }

/* Page d'accès (après achat) */
.player { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; background: var(--ink); box-shadow: var(--shadow); }
.player iframe, .player img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.player button { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(180deg, rgba(30, 18, 9, 0.15), rgba(30, 18, 9, 0.55)); }
.player button span { width: 86px; height: 86px; border-radius: 50%; background: var(--cream); display: grid; place-items: center; transition: transform 0.4s var(--ease); box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5); }
.player button:hover span { transform: scale(1.08); }
.access-actions { display: grid; gap: 12px; }
@media (min-width: 720px) { .access-actions { grid-template-columns: 1fr 1fr; } }

@media (prefers-reduced-motion: reduce) {
  .splitw .wi, .js .stagger > *, .js .reveal-img, .js .reveal-img img { transform: none !important; opacity: 1 !important; clip-path: none !important; }
  .marquee-track { animation: none; }
  .hero-bg::before, .page-hero::after { animation: none; }
}
.facts--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 520px) { .facts--3 > div { padding: 14px 12px; } .facts--3 dd { font-size: 1.15rem; } }
.event-visual--img { aspect-ratio: 1 / 1; min-height: 0; }
.event-visual--img img { height: 100%; top: 0; }
@media (min-width: 860px) { .event-visual--img { aspect-ratio: auto; } }
.event-visual--img { background: #120a05; }
.event-visual--img img { object-fit: contain; object-position: 50% 50%; }

/* ==========================================================================
   Peintures (v3) : fonds de header, couvertures, cartouches
   ========================================================================== */
.hero-bg img, .page-hero-bg img {
  position: absolute; inset: -4% 0; width: 100%; height: 108%; object-fit: cover; opacity: 1;
  animation: kenburns 32s ease-in-out infinite alternate; transform-origin: 60% 40%;
}
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.09) translate3d(-1.5%, -1%, 0); } }
.hero-bg::after, .page-hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(26, 15, 8, 0.94) 0%, rgba(26, 15, 8, 0.72) 42%, rgba(26, 15, 8, 0.28) 100%),
    linear-gradient(0deg, rgba(26, 15, 8, 0.85) 0%, rgba(26, 15, 8, 0) 45%);
}
.hero-bg::before { z-index: 1; opacity: 0.55; }
.page-hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.page-hero--art::before { z-index: 0; opacity: 0.6; }
.page-hero--art::after { display: none; }
@media (max-width: 760px) {
  .hero-bg::after, .page-hero-bg::after { background: linear-gradient(0deg, rgba(26, 15, 8, 0.95) 10%, rgba(26, 15, 8, 0.7) 60%, rgba(26, 15, 8, 0.55) 100%); }
}
.hero--art { align-items: center; }
.hero--art .hero-inner { grid-template-columns: 1fr; }
.hero--art h1 { font-size: clamp(3.6rem, 10vw, 8rem); }
.art-credit {
  position: absolute; right: var(--gutter); bottom: 18px; z-index: 2; max-width: 46ch; text-align: right;
  font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(244, 238, 230, 0.55);
}
.art-credit em { font-family: var(--serif); text-transform: none; letter-spacing: 0; font-size: 0.85rem; }

/* Arches des cartes de services en peinture */
.service-arch--art { position: relative; background: var(--bark); }
.service-arch--art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.service:hover .service-arch--art img { transform: scale(1.07); }
.service-arch--art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(30, 18, 9, 0) 40%, rgba(30, 18, 9, 0.45)); }

/* Couvertures de produits en peinture */
.product-cover--art { background: var(--bark); }
.product-cover--art > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.product:hover .product-cover--art > img { transform: scale(1.06); }
.product-cover--art::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(26, 15, 8, 0.15) 0%, rgba(26, 15, 8, 0.88) 100%); }
.product-cover--art > *:not(img) { position: relative; z-index: 1; }
.product-cover--art .tag { position: absolute; }

/* Tableau encadré avec cartouche, façon musée */
.artwork { margin: 0; display: grid; gap: 14px; }
.artwork-frame { border-radius: 999px 999px var(--radius) var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--bark); }
.artwork-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.artwork figcaption { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.artwork figcaption em { font-family: var(--serif); text-transform: none; letter-spacing: 0; font-size: 1rem; color: var(--ink); }
:is(.on-dark, .section--dark, .section--ink) .artwork figcaption em { color: var(--cream); }
.engraving { mix-blend-mode: multiply; width: 100%; max-width: 440px; justify-self: center; }

/* Bande peinte pleine largeur avec citation */
.art-band { position: relative; min-height: clamp(380px, 60vh, 620px); display: grid; align-items: center; overflow: hidden; color: var(--cream); }
.art-band > img { position: absolute; inset: -12% 0; width: 100%; height: 124%; object-fit: cover; }
.art-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(26, 15, 8, 0.85), rgba(26, 15, 8, 0.35)); }
.art-band .container { position: relative; z-index: 1; }
.art-band blockquote { font-family: var(--serif); font-style: italic; font-size: clamp(1.9rem, 4.4vw, 3.4rem); line-height: 1.2; max-width: 22ch; }
.art-band cite { display: block; margin-top: 22px; font-style: normal; font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-soft); }
.art-band .art-credit { bottom: 16px; }

@media (prefers-reduced-motion: reduce) { .hero-bg img, .page-hero-bg img { animation: none; } }
.engraving { mix-blend-mode: normal; max-width: 380px; justify-self: start; border-radius: 14px; box-shadow: var(--shadow); filter: sepia(0.25) contrast(1.05); }
.artwork:has(.engraving) figcaption { max-width: 380px; }
@media (max-width: 760px) { .art-credit { display: none; } }
.product-cover--art::before { z-index: 1; background: linear-gradient(180deg, rgba(26, 15, 8, 0.2) 0%, rgba(26, 15, 8, 0.55) 45%, rgba(26, 15, 8, 0.92) 100%); }
.product-cover--art > *:not(img) { z-index: 2; }
.product-cover--art h3 em { color: var(--gold-soft); }
.service-arch--art::after { z-index: 1; }
.hero-title { white-space: nowrap; font-size: clamp(3.2rem, 11vw, 8rem); }
.hero-img--quran { object-position: 50% 72%; }
.guide-cover { width: min(70%, 300px); justify-self: center; border-radius: 14px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8); }
