/* ═══════════════════════════════════════════
   ZAWAJUNA — Styles partagés des pages légales
   (CGU, Confidentialité, Remboursement, Mentions)
═══════════════════════════════════════════ */
:root {
  --em:  #1C4532;
  --em2: #2D6A4F;
  --em3: #0D2218;
  --gd:  #C8A028;
  --gd2: #E4B84A;
  --gd3: #F5E6B0;
  --cr:  #FBF7F0;
  --cr2: #F0E6D0;
  --wh:  #FFFFFF;
  --dk:  #070F09;
  --ink: #374151;
  --mut: #9CA3AF;
  --line:#E8E4DA;

  --ff-serif: 'Cormorant Garamond', Georgia, serif;
  --ff-sans:  'Plus Jakarta Sans', system-ui, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--ff-sans);
  background: var(--cr);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(1000px 600px at 12% -8%, rgba(28,69,50,.06), transparent 60%),
    radial-gradient(900px 600px at 108% 4%, rgba(200,160,40,.06), transparent 55%);
}

/* ── HEADER ── */
header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251,247,240,.86);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(28,69,50,.08);
}
.head-inner {
  max-width: 780px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-gem {
  width: 38px; height: 38px;
  border-radius: 11px;
  background: linear-gradient(150deg, var(--em2), var(--em3));
  display: grid; place-items: center;
  box-shadow: 0 6px 18px rgba(13,34,24,.22), inset 0 0 0 1px rgba(200,160,40,.35);
  overflow: hidden;
}
.brand-gem img { width: 78%; height: 78%; object-fit: contain; }
.brand-txt {
  font-family: var(--ff-serif);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--em);
  letter-spacing: .02em;
  line-height: 1;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  font-weight: 500;
  color: var(--em);
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid rgba(28,69,50,.18);
  background: rgba(255,255,255,.5);
  transition: all .35s var(--ease-out);
  white-space: nowrap;
}
.back-link:hover {
  background: var(--em);
  color: var(--cr);
  border-color: var(--em);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(28,69,50,.18);
}
.back-link .arr { transition: transform .35s var(--ease-out); }
.back-link:hover .arr { transform: translateX(-3px); }

/* ── Sélecteur de langue (toggle segmenté) ── */
.head-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid rgba(28,69,50,.14);
  border-radius: 999px;
  background: rgba(255,255,255,.6);
}
.lang-switch .lang {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .04em;
  border-radius: 999px;
  color: var(--em2);
  transition: background .3s var(--ease-out), color .3s var(--ease-out);
}
.lang-switch .lang.active {
  background: var(--em);
  color: var(--cr);
  box-shadow: 0 2px 8px rgba(28,69,50,.2);
}
.lang-switch .lang:not(.active):hover { color: var(--em); }

/* ── CONTENU ── */
main {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 0 auto;
  padding: 56px 24px 40px;
}
.page-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gd);
  border: 1px solid rgba(200,160,40,.4);
  border-radius: 999px;
  padding: 8px 18px;
  margin-bottom: 26px;
}
.page-eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gd);
}
.page-title {
  font-family: var(--ff-serif);
  font-weight: 500;
  color: var(--em);
  font-size: clamp(2.4rem, 7vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -.01em;
}
.page-sub {
  margin-top: 14px;
  color: var(--em2);
  font-size: 1rem;
  max-width: 46ch;
}

.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 40px 0 32px;
}
.divider .rule { height: 1px; flex: 1; background: linear-gradient(90deg, transparent, rgba(200,160,40,.4), transparent); }
.divider .dot { color: var(--gd); font-size: .8rem; }

.intro-card {
  background: var(--wh);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px 30px;
  box-shadow: 0 10px 34px -18px rgba(13,34,24,.28);
  position: relative;
  overflow: hidden;
}
.intro-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--gd2), var(--gd));
}
.intro-meta {
  font-size: .68rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--mut);
  margin-bottom: 12px;
}
.intro-text {
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: 1.22rem;
  line-height: 1.5;
  color: var(--em3);
}

.sections { display: flex; flex-direction: column; gap: 16px; }
.card {
  background: var(--wh);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 34px -22px rgba(13,34,24,.24);
  transition: box-shadow .4s var(--ease-out), transform .4s var(--ease-out);
}
.card:hover {
  box-shadow: 0 18px 44px -22px rgba(13,34,24,.32);
  transform: translateY(-2px);
}
/* Variante mise en avant (interdictions, points sensibles) */
.card.card-flag { border-color: rgba(200,160,40,.45); }
.card.card-flag .card-num { color: #b45309; }
.card-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 22px 30px 14px;
}
.card-num {
  font-family: var(--ff-serif);
  font-size: 1.1rem;
  color: var(--gd);
  font-weight: 600;
  min-width: 1.6ch;
}
.card-title {
  font-family: var(--ff-serif);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--em);
  letter-spacing: .01em;
}
.card-rule { height: 1px; margin: 0 30px; background: var(--line); }
.card-body { padding: 18px 30px 26px 30px; }
.card-body p {
  font-size: .95rem;
  color: var(--ink);
  white-space: pre-line;
}
.card-body p + p { margin-top: 14px; }
.card-body strong { color: var(--em); font-weight: 600; }
.card-body ul { margin: 10px 0 0; padding-left: 4px; list-style: none; display: flex; flex-direction: column; gap: 9px; }
.card-body li { position: relative; padding-left: 22px; font-size: .95rem; color: var(--ink); }
.card-body li::before {
  content: '✕';
  position: absolute; left: 0; top: 1px;
  color: #b45309; font-size: .78rem; font-weight: 700;
}
.card-body ul.list-check li::before { content: '✓'; color: var(--em2); }
.card-body a { color: var(--em); font-weight: 500; border-bottom: 1px solid rgba(28,69,50,.3); }

.foot-note { margin-top: 34px; text-align: center; }
.foot-note .divider { margin: 0 0 16px; }
.foot-note p { font-size: .8rem; color: var(--mut); }
.foot-note a { color: var(--em); font-weight: 500; border-bottom: 1px solid rgba(28,69,50,.3); }

/* ── FOOTER ── */
footer {
  position: relative;
  z-index: 1;
  margin-top: 64px;
  background: var(--em3);
  color: var(--cr);
}
.footer-wrap { max-width: 780px; margin: 0 auto; padding: 34px 24px; }
.foot-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.foot-logo { display: flex; align-items: center; gap: 11px; }
.foot-gem {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: linear-gradient(150deg, var(--em2), var(--em3));
  display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px rgba(200,160,40,.4);
  overflow: hidden;
}
.foot-gem img { width: 78%; height: 78%; object-fit: contain; }
.foot-logo-txt { font-family: var(--ff-serif); font-size: 1.3rem; color: var(--cr); }
.foot-links { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.foot-link { font-size: .82rem; color: rgba(251,247,240,.75); transition: color .3s; }
.foot-link:hover { color: var(--gd2); }
.foot-copy { font-size: .78rem; color: rgba(251,247,240,.45); width: 100%; }

/* ── REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

@media (max-width: 560px) {
  main { padding: 40px 18px 32px; }
  .head-inner { padding: 12px 18px; }
  .brand-txt { font-size: 1.3rem; }
  .back-label { display: none; }
  .back-link { padding: 9px 12px; }
  .head-actions { gap: 8px; }
  .card-head, .card-body { padding-left: 22px; padding-right: 22px; }
  .card-rule { margin: 0 22px; }
  .intro-card { padding: 24px 22px; }
  .intro-text { font-size: 1.1rem; }
}
