/* ==========================================================================
   DDis-X — charte commune (novembre 2026)
   Source de vérité couleurs : charte web cuivre (diagnostic-gain.html).
   Jamais l'ancien or #C4973E, jamais Outfit.
   ========================================================================== */

:root {
  /* Couleurs */
  --navy: #0A1626;
  --navy-mid: #0F2336;
  --navy-light: #16314D;
  --ivory: #F3EFE7;
  --ivory-warm: #E7DECF;
  --taupe: #827C74;
  --copper: #C77E68;
  --copper-light: #EAC0AC;
  --copper-dark: #915447;
  --copper-rgb: 199, 126, 104;
  --copper-grad: linear-gradient(120deg, #915447 0%, #C77E68 28%, #EAC0AC 52%, #B16B57 76%, #7E463B 100%);

  --text-on-navy: #F3EFE7;
  --text-on-navy-mid: rgba(243, 239, 231, .78);
  --text-on-navy-soft: rgba(243, 239, 231, .62);
  --text-on-ivory: #0A1626;
  --text-on-ivory-mid: #3E4757;

  /* Typographie */
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;

  /* Espacements (base 4 px) */
  --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-6: 24px;
  --space-8: 32px; --space-10: 40px; --space-12: 48px; --space-16: 64px; --space-20: 80px;

  --radius-md: 12px;
  --radius-full: 9999px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 150ms;
  --dur-base: 250ms;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--navy);
  color: var(--text-on-navy);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(var(--copper-rgb), .38); color: var(--ivory); }

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

html { scrollbar-color: rgba(var(--copper-rgb), .45) var(--navy); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 26px;
  border-radius: var(--radius-full);
  font: 600 1rem/1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  border: 0;
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), background-color var(--dur-fast);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary {
  background: var(--copper-grad);
  background-size: 140% 100%;
  background-position: 30% 0;
  color: var(--navy);
  box-shadow: 0 6px 20px -8px rgba(var(--copper-rgb), .55);
}
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 12px 28px -10px rgba(var(--copper-rgb), .7); }
.btn--ghost {
  background: transparent;
  color: var(--ivory);
  box-shadow: inset 0 0 0 1px rgba(243, 239, 231, .55);
}
.btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--copper-light); background: rgba(var(--copper-rgb), .08); }
.btn:active { transform: translateY(0) scale(.985); }

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
}
