/* =====================================================================
   LE JARDIN D'ELIO — style.css
   Reset raisonné, base typographique et éléments globaux.
   ===================================================================== */

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

* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--font-body);
  font-weight: var(--fw-body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(1200px 600px at 85% -10%, rgba(242,164,28,.10), transparent 60%),
    radial-gradient(900px 500px at -10% 20%, rgba(47,125,58,.08), transparent 60%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }

a { color: var(--primary); text-decoration-color: var(--line-strong); text-underline-offset: .18em; }
a:hover { color: var(--c-forest); }

ul, ol { padding-left: 1.15em; }

/* ---- Titres ---- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--heading);
  line-height: 1.08;
  font-weight: var(--fw-medium);
  font-variation-settings: "opsz" 40, "SOFT" 60, "wght" 560;
  letter-spacing: -0.01em;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }

p { max-width: 68ch; }

strong { font-weight: var(--fw-bold); color: var(--c-forest); }

::selection { background: var(--c-gold-soft); color: var(--c-forest); }

/* ---- Focus visible accessible ---- */
:focus-visible {
  outline: 3px solid var(--c-gold);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---- Lien d'évitement (accessibilité clavier) ---- */
.skip-link {
  position: absolute;
  left: var(--space-s);
  top: -100px;
  z-index: 200;
  background: var(--c-forest);
  color: #fff;
  padding: .7em 1.1em;
  border-radius: var(--r-s);
  font-weight: var(--fw-bold);
  transition: top var(--t-fast);
}
.skip-link:focus { top: var(--space-s); color: #fff; }

/* ---- Utilitaires ---- */
.container { width: min(100% - 2.4rem, var(--container)); margin-inline: auto; }
.container--narrow { width: min(100% - 2.4rem, var(--container-narrow)); margin-inline: auto; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.text-center { text-align: center; }
.text-gold  { color: var(--c-gold); }
.text-coral { color: var(--c-coral); }
.text-leaf  { color: var(--c-leaf); }

/* Mot « Elio » à l'or, comme dans le logo */
.brand-elio { color: var(--c-gold); font-style: italic; }

/* Signature d'écriture manuscrite décorative */
.script {
  font-family: var(--font-display);
  font-style: italic;
  font-variation-settings: "opsz" 20, "SOFT" 100, "wght" 420;
}
