/* Base : remise à zéro, typographie, focus (PRD, sections 27.2 et 28).
 * Aucune couleur écrite en dur : uniquement les jetons de tokens.css. */

:root {
  /* Texte posé sur un aplat lilas, rose ou beurre : toujours foncé, même en mode sombre. */
  --color-on-accent: var(--color-ink);

  /* Tailles fluides entre 390 et 1280 px (PRD, section 27.2). */
  --fs-display: clamp(2.75rem, 1.545rem + 4.944vw, 5.5rem);      /* h1 de l'accueil : 44 → 88 */
  --fs-title: clamp(2rem, 1.3427rem + 2.697vw, 3.5rem);           /* h1 des écrans : 32 → 56 */
  --fs-section: clamp(2.125rem, 1.5225rem + 2.472vw, 3.5rem);     /* h2 de section : 34 → 56 */
  --fs-subtitle: clamp(1.25rem, 1.1404rem + 0.449vw, 1.5rem);     /* h3 : 20 → 24 */
  --fs-lead: clamp(1.0625rem, 0.9803rem + 0.337vw, 1.25rem);      /* chapô : 17 → 20 */
  --fs-price-fluid: clamp(5.25rem, 4.264rem + 4.045vw, 7.5rem);   /* prix de l'accroche : 84 → 120 */

  /* Marges latérales : 24 px sur mobile, 64 px (site) ou 56 px (espaces) sur ordinateur. */
  --gutter: var(--gutter-mobile);
  --gutter-space: var(--gutter-mobile);
  --content-max: 1280px;
  --tap-min: 44px;
  --transition: 150ms ease-out;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-on-accent: var(--color-on-ink);
  }
}

@media (min-width: 900px) {
  :root {
    --gutter: var(--gutter-desktop);
    --gutter-space: calc(var(--space-7) + var(--space-2));
  }
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-text);
  font-size: var(--fs-md);
  line-height: var(--lh-text);
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  line-height: var(--lh-title);
  letter-spacing: -0.03em;
  text-wrap: balance;
}

h1 {
  font-size: var(--fs-title);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-display);
}

h2 {
  font-size: var(--fs-section);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-display);
}

h3 {
  font-size: var(--fs-subtitle);
}

p,
ul,
ol,
dl,
figure,
blockquote {
  margin: 0;
}

p,
li {
  max-width: var(--measure);
}

strong,
b {
  font-weight: var(--weight-strong);
}

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

/* Classes de titre, pour un texte qui n'est pas un titre du plan de la page */
.title-screen,
.title-section,
.title-sub {
  max-width: none;
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-display);
}

.title-screen { font-size: var(--fs-title); }
.title-section { font-size: var(--fs-section); }
.title-sub { font-size: var(--fs-subtitle); line-height: var(--lh-title); letter-spacing: -0.03em; }

.display {
  max-width: none;
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  font-size: var(--fs-display);
  line-height: var(--lh-tight);
  letter-spacing: -0.045em;
}

.lead {
  font-size: var(--fs-lead);
  line-height: var(--lh-text);
  max-width: 28em;
}

/* Groupes de champs sans le cadre ni le retrait du navigateur (la légende était décalée de 2 px). */
fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

legend {
  padding: 0;
}

.text-soft {
  color: var(--color-ink-soft);
}

.price {
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  font-variant-numeric: var(--numeric-price);
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.price--hero {
  font-size: var(--fs-price-fluid);
  line-height: 0.85;
  letter-spacing: -0.05em;
}

.price__unit {
  font-size: 0.34em;
  letter-spacing: -0.02em;
}

.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;
}

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