/* ==========================================================================
   Reset & Base
   ========================================================================== */

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  color: var(--color-text);
  /* Fond « lumière d'atelier » : halo doré en haut + fondu vers un sable
     plus chaud. Fixe au scroll = lumière ambiante stable. Les sections
     opaques (crème-soft, panneaux sombres) se posent par-dessus. */
  background-color: #EFDDBB;
  background-image:
    radial-gradient(1150px 600px at 50% -2%, rgba(201, 158, 78, 0.34), transparent 60%),
    radial-gradient(820px 460px at 88% 3%, rgba(175, 24, 29, 0.06), transparent 62%),
    linear-gradient(180deg, #FCF2E1 0%, #EFDCB4 52%, #E3CB9C 100%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  min-height: 100dvh;
  overflow-x: hidden;
}
@media (max-width: 640px) {
  body { background-attachment: scroll; background-size: cover; }
}

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

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

button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }

ul, ol { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400; /* Abril Fatface ne fournit qu'une seule graisse (déjà très marquée) */
  line-height: var(--lh-tight);
  color: var(--color-cacao);
  text-wrap: balance;
}

h1 { font-size: var(--fs-4xl); }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-2xl); }
h4 { font-size: var(--fs-lg); }

p { text-wrap: pretty; }

@media (max-width: 640px) {
  h1 { font-size: var(--fs-3xl); }
  h2 { font-size: var(--fs-2xl); }
  h3 { font-size: var(--fs-xl); }
}

/* Visible focus rings — accessibilité clavier */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2.5px solid var(--color-gold-dark);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Touch target — évite le zoom auto iOS sur focus input */
input, textarea, select { font-size: 16px; }

/* ==========================================================================
   Layout utilities
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-3);
}

@media (max-width: 640px) {
  .container { padding-inline: var(--space-2); }
}

.section {
  padding-block: var(--space-7);
}

@media (max-width: 640px) {
  .section { padding-block: var(--space-5); }
}

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

.skip-link {
  position: absolute;
  left: var(--space-2);
  top: -60px;
  background: var(--color-bordeaux);
  color: var(--color-cream-white);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  z-index: 1000;
  transition: top var(--dur-base) var(--ease-out);
}

.skip-link:focus {
  top: var(--space-2);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.eyebrow::before {
  content: '';
  width: 24px;
  height: 1.5px;
  background: var(--color-accent);
}

.text-center { text-align: center; }

.lead {
  font-size: var(--fs-md);
  color: var(--color-text-soft);
  line-height: var(--lh-normal);
}

/* Effet "feuille d'or" sur un mot d'emphase dans un titre */
.text-gold-gradient {
  background: var(--gradient-gold);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
