/* ============================================================
   Bagazip - système de styles partagé des pages secondaires.
   Aligné à l'identique sur la page d'accueil (index.html) :
   polices Work Sans + Luckiest Guy, palette parchemin / rouille /
   sarcelle, chips et cartes à coins arrondis, footer sombre.
   ============================================================ */

:root {
  /* fonds & encre */
  --parchment: #FBF5E8;
  --cream: #FFFDF8;
  --cream-2: #F6ECD9;
  --ink: #2A1C0E;
  --ink-soft: #6B5442;
  /* accents cuir / rouille / or */
  --rust: #A94C1C;
  --orange: #E07A3E;
  --orange-deep: #D9532E;
  --gold: #F0C07A;
  --gold-2: #E6B84A;
  --red-deep: #7C2417;
  /* filets */
  --line: rgba(169,76,28,.14);
  --line-ink: rgba(42,28,14,.1);
  /* les 5 couleurs de biomes */
  --foret: #1E7A72;
  --ocean: #8BA1B6;
  --sommet: #6C7A89;
  --desert: #E6B84A;
  --volcan: #C1442E;
  /* ombres */
  --shadow-card: 0 22px 50px rgba(42,28,14,.09), 0 3px 8px rgba(42,28,14,.05);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--parchment);
  color: var(--ink);
  font-family: 'Work Sans', system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}
a { color: var(--rust); text-decoration: none; }
a:hover { color: var(--orange-deep); }
:focus-visible { outline: 2.5px solid var(--orange-deep); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--gold); color: var(--ink); }

/* grain identique à l'accueil */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 60;
  pointer-events: none; mix-blend-mode: multiply; opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* conteneurs */
.wrap { max-width: 1180px; margin: 0 auto; padding-left: clamp(16px, 4vw, 40px); padding-right: clamp(16px, 4vw, 40px); }
.wrap--narrow { max-width: 820px; }

/* ---------- barre de navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,245,232,.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-nav { display: flex; align-items: center; gap: 24px; padding-top: 14px; padding-bottom: 14px; }
.brand { font-family: 'Luckiest Guy', cursive; font-size: clamp(22px, 3.4vw, 27px); color: var(--rust); letter-spacing: .5px; line-height: 1; }
.nav-right { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav-link { font-size: 15px; font-weight: 600; color: var(--ink-soft); display: none; }
@media (min-width: 760px) { .nav-link { display: inline; } }

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--orange); color: #FFFDF8; font-weight: 700; font-size: 15px;
  padding: 11px 20px; border-radius: 999px;
  box-shadow: 0 6px 16px rgba(217,83,46,.28);
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.btn:hover { background: var(--orange-deep); color: #FFFDF8; transform: translateY(-2px); box-shadow: 0 10px 22px rgba(217,83,46,.34); }
.btn:active { transform: translateY(0); }

/* ---------- en-tête de page ---------- */
.page-head { padding: clamp(40px, 6vw, 84px) 0 clamp(14px, 3vw, 26px); }
.eyebrow { margin: 0 0 12px; font-size: 12.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--orange); }
h1.title { margin: 0; font-family: 'Work Sans', system-ui, sans-serif; font-weight: 800; font-size: clamp(32px, 6vw, 60px); line-height: 1.02; letter-spacing: -.025em; color: var(--ink); }
.lead { margin: clamp(14px, 2vw, 20px) 0 0; font-size: clamp(16.5px, 2vw, 19px); line-height: 1.55; color: var(--ink-soft); max-width: 60ch; }

/* ---------- chip (bordure pleine, comme l'accueil) ---------- */
.chip { display: inline-flex; align-items: center; gap: 8px; background: var(--cream); border: 1px solid var(--line-ink); box-shadow: 0 2px 6px rgba(42,28,14,.06); border-radius: 999px; padding: 9px 15px; font-size: 14.5px; font-weight: 600; color: var(--ink); }
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- carte à coins arrondis ---------- */
.card { background: var(--cream); border: 1px solid var(--line-ink); border-radius: 26px; padding: clamp(22px, 4vw, 40px); box-shadow: var(--shadow-card); }

/* ---------- corps de texte lisible ---------- */
.prose { max-width: 72ch; font-size: 16.5px; line-height: 1.7; color: var(--ink-soft); }
.prose h2 { margin: 2em 0 .5em; font-family: 'Work Sans', system-ui, sans-serif; font-weight: 800; font-size: clamp(21px, 3vw, 28px); line-height: 1.2; letter-spacing: -.01em; color: var(--ink); }
.prose h3 { margin: 1.6em 0 .4em; font-weight: 700; font-size: clamp(17px, 2.2vw, 20px); color: var(--rust); }
.prose p { margin: 0 0 1.1em; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.prose li { margin: .35em 0; }
.prose strong { color: var(--ink); font-weight: 700; }
.prose a { text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1.5px; }
.prose hr { border: none; border-top: 1px solid var(--line); margin: 2em 0; }
.prose .muted { font-size: 14px; color: var(--ink-soft); opacity: .82; }
.prose .todo { background: #FBE7C9; color: var(--red-deep); border: 1px dashed var(--gold-2); border-radius: 6px; padding: 1px 7px; font-weight: 700; font-size: .92em; white-space: nowrap; }

/* ---------- bloc FAQ ---------- */
.faq-item { border-top: 1px solid var(--line); padding: clamp(18px, 3vw, 24px) 0; }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item h2 { margin: 0 0 .4em; font-size: clamp(17px, 2.4vw, 21px); font-weight: 700; color: var(--ink); }
.faq-item p { margin: 0; color: var(--ink-soft); }

/* ---------- pied de page (identique à l'accueil) ---------- */
.site-footer { background: var(--ink); padding: clamp(38px, 5vw, 60px) clamp(16px, 4vw, 40px) clamp(28px, 4vw, 40px); margin-top: clamp(48px, 8vw, 96px); }
.foot-top { max-width: 1080px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; justify-content: space-between; }
.foot-brand { margin: 0 0 8px; font-family: 'Luckiest Guy', cursive; font-size: 30px; color: var(--gold); line-height: 1; }
.foot-tag { margin: 0; font-size: 14.5px; color: rgba(251,245,232,.6); max-width: 30ch; line-height: 1.5; }
.foot-links { display: flex; flex-wrap: wrap; gap: 22px 26px; align-items: center; }
.foot-link { font-size: 14.5px; font-weight: 600; color: rgba(251,245,232,.66); }
.foot-link:hover { color: var(--gold); }
.foot-link--bright { color: #FBF5E8; display: inline-flex; align-items: center; gap: 9px; }
.foot-copy { max-width: 1080px; margin: clamp(26px, 4vw, 40px) auto 0; padding-top: 18px; border-top: 1px solid rgba(251,245,232,.12); font-size: 13px; color: rgba(251,245,232,.42); }

/* ---------- page "histoire" : respiration + décors ultra subtils ---------- */
.prose.airy { line-height: 1.8; font-size: 17px; }
.prose.airy p { margin: 0 0 1.7em; }
.prose.airy h2 { margin-top: 2.8em; }
.prose.airy h2:first-of-type { margin-top: 1.2em; }

.lore { position: relative; }
.lore > .prose { position: relative; z-index: 1; }
.decor { position: absolute; z-index: 0; pointer-events: none; opacity: .08; }
.decor--fiole { opacity: .1; }
@media (max-width: 1180px) { .decor { display: none; } }

/* ---------- éventail créateur (3 cartes, la centrale mise en avant) ---------- */
.creator-fan-wrap { container-type: inline-size; width: 100%; max-width: 760px; margin: clamp(26px, 4vw, 48px) auto clamp(8px, 2vw, 16px); }
.creator-fan { position: relative; width: 100%; height: 74cqw; min-height: 340px; max-height: 560px; }
.cfan { position: absolute; left: 50%; bottom: 6%; width: 42cqw; max-width: 280px; aspect-ratio: 1792/2400; transform-origin: 50% 162%; border-radius: 16px; overflow: hidden; box-shadow: 0 20px 44px rgba(42,28,14,.2), 0 4px 10px rgba(42,28,14,.14); transition: transform .34s cubic-bezier(.22,1,.36,1), box-shadow .34s ease; }
.cfan img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cfan--l { transform: translateX(-50%) rotate(-16deg); z-index: 1; }
.cfan--r { transform: translateX(-50%) rotate(16deg); z-index: 2; }
.cfan--c { width: 47cqw; max-width: 316px; transform: translateX(-50%) rotate(0deg); z-index: 3; box-shadow: 0 26px 54px rgba(42,28,14,.26), 0 5px 12px rgba(42,28,14,.16); }
.cfan--l:hover { transform: translateX(-50%) rotate(-16deg) translateY(-14px) scale(1.04); z-index: 20; }
.cfan--r:hover { transform: translateX(-50%) rotate(16deg) translateY(-14px) scale(1.04); z-index: 20; }
.cfan--c:hover { transform: translateX(-50%) translateY(-16px) scale(1.04); z-index: 20; }
.creator-caption { text-align: center; font-size: 13.5px; font-weight: 600; color: var(--ink-soft); margin: 0 0 clamp(20px,4vw,36px); }

/* formule mise en avant dans le lore */
.prose .lore-formula { font-family: 'Luckiest Guy', cursive; font-weight: 400; font-size: clamp(22px, 4vw, 32px); color: var(--rust); text-align: center; margin: 1.1em 0; letter-spacing: .01em; }
