/* ============================================================
   SKINEA — Feuille de style partagée
   Tokens, header, footer, et typographie des pages légales
   ============================================================ */

:root {
  /* Tokens exacts de l'app Skinea — source de vérité */
  --bg: #FAFAF7;
  --bg-warm: #F4F1EA;
  --sage-soft: #E8EFE9;
  --sage: #5B8A72;
  --sage-deep: #456C58;
  --peach: #E8956D;
  --peach-soft: #FBEEE3;
  --coral: #E8956D;
  --coral-deep: #D9784E;
  --ink: #2D2A26;
  --muted: #8A8580;
  --line: #EFEDE6;
  --white: #FFFFFF;

  --maxw: 1120px;
  --radius: 22px;
  --radius-sm: 14px;

  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'Cabinet Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'DM Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

img { max-width: 100%; display: block; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 249, 246, 0.82);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  color: var(--sage-deep);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.brand-mark {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, var(--peach), var(--coral) 70%);
  box-shadow: inset 0 0 0 3px rgba(255,255,255,0.55);
  flex: none;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.header-nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
}
.header-nav a:hover { color: var(--ink); }

.header-nav .nav-cta {
  color: var(--white);
  background: var(--coral);
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 600;
  transition: background 0.2s ease, transform 0.2s ease;
}
.header-nav .nav-cta:hover { background: var(--coral-deep); color: var(--white); }

@media (max-width: 680px) {
  .header-nav .nav-link { display: none; }
  .header-inner { padding: 15px 20px; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--sage-deep);
  color: #DCE3DA;
  padding: 56px 28px 40px;
  margin-top: 0;
}

.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--white);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
}

.footer-tagline {
  font-size: 0.92rem;
  color: #B9C4B6;
  max-width: 300px;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #9DAB9A;
  margin-bottom: 14px;
  font-weight: 600;
}

.footer-col a {
  display: block;
  text-decoration: none;
  color: #DCE3DA;
  font-size: 0.95rem;
  margin-bottom: 10px;
  transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--peach); }

.footer-bottom {
  max-width: var(--maxw);
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.13);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  font-size: 0.82rem;
  color: #94A291;
}
.footer-bottom p { line-height: 1.5; }

/* ============================================================
   Pages légales (privacy / terms)
   ============================================================ */
.legal-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 72px 28px 96px;
}

.legal-eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--coral);
  font-weight: 600;
  margin-bottom: 14px;
}

.legal-wrap h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.1rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 12px;
}

.legal-updated {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.legal-wrap h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  color: var(--sage-deep);
  margin: 44px 0 14px;
}

.legal-wrap h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.08rem;
  color: var(--ink);
  margin: 28px 0 8px;
}

.legal-wrap p {
  color: #423E38;
  margin-bottom: 16px;
  font-size: 1.02rem;
  line-height: 1.72;
}

.legal-wrap ul {
  margin: 0 0 18px 0;
  padding-left: 0;
  list-style: none;
}

.legal-wrap ul li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 11px;
  color: #423E38;
  line-height: 1.65;
}

.legal-wrap ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.62em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--peach);
}

.legal-wrap strong { color: var(--ink); font-weight: 600; }

.legal-wrap a { color: var(--coral-deep); text-decoration: underline; text-underline-offset: 2px; }
.legal-wrap a:hover { color: var(--coral); }

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 24px;
  font-size: 0.96rem;
  background: var(--white);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 1px 0 var(--line);
}

.legal-table th,
.legal-table td {
  text-align: left;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.legal-table th {
  background: var(--sage-soft);
  color: var(--sage-deep);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.legal-table tr:last-child td { border-bottom: none; }

.legal-callout {
  background: var(--peach-soft);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
  margin: 24px 0;
  border-left: 3px solid var(--coral);
}
.legal-callout p { margin-bottom: 0; color: #5A4034; }

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  margin-bottom: 40px;
  transition: color 0.2s ease;
}
.legal-back:hover { color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}
