/* =============================================================================
   BASE — design tokens, reset, typographie, utilitaires
   Points de rupture utilisés dans le projet :
   980px (hero) · 960px (méthode) · 900px (grilles principales)
   860px (cta) · 820px (chiffres / footer) · 680px (cartes) · 560px · 440px
   ========================================================================== */

/* -----------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Couleurs de marque */
  --cream: #f4ecde;
  --cream-soft: #efe4d2;
  --cream-deep: #e9dcc6;
  --bordeaux: #6e1f26;
  --bordeaux-dark: #611a22;
  --gold: #c6a25e;
  --gold-dark: #b08c48;
  --sage: #7d8f7a;

  /* Texte */
  --ink: #3e2c23;
  --ink-soft: #6a564a;

  /* Filets */
  --line: rgba(62, 44, 35, 0.16);
  --line-light: rgba(244, 236, 222, 0.22);

  /* Typographie */
  --font-title: "Playfair Display", Georgia, serif;
  --font-body: "Montserrat", system-ui, sans-serif;
  --font-script: "Dancing Script", cursive;

  /* Rythme */
  --gutter: clamp(18px, 4vw, 40px);
  --content-width: 1180px;
  --header-height: 72px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition: 0.28s ease;
}

/* -----------------------------------------------------------------------------
   2. Reset
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 8px);
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-title);
}

em {
  font-style: italic;
}

a {
  color: inherit;
  text-decoration: none;
}

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

svg {
  display: block;
}

::selection {
  background: var(--gold);
  color: var(--bordeaux);
}

/* Grain photographique appliqué sur toute la page */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: 0.35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

/* -----------------------------------------------------------------------------
   3. Utilitaires
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--content-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Sur-titre de section */
.eyebrow {
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.eyebrow--accent {
  color: var(--gold-dark);
}

.eyebrow--dash::before {
  content: "— ";
  color: var(--gold-dark);
}

/* Colonnes de texte vertical en marge */
.micro-text {
  font-weight: 600;
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  line-height: 2.1;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.script {
  font-family: var(--font-script);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* -----------------------------------------------------------------------------
   4. Accessibilité
   -------------------------------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--bordeaux);
  outline-offset: 3px;
}

.dna :focus-visible,
.cta :focus-visible {
  outline-color: var(--gold);
}

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

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
