/**
 * Optic — base.css
 * Reset léger, typographie éditoriale (Archivo display + Inter UI), conteneur, rythme.
 * 100% tokens. Mobile-first, WCAG AA, RTL (propriétés logiques).
 */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  margin: 0;
  background: var(--color-background);
  color: var(--color-text);
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  font-weight: var(--font-weight-base);
}

::selection { background: var(--color-accent); color: var(--color-on-accent); }
img, picture, svg, video { max-width: 100%; height: auto; display: block; }

a { color: var(--color-text); text-decoration: none; transition: color var(--transition-base); }
a:hover { color: var(--color-accent-ink); }

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 var(--space-3);
  font-family: var(--font-family-heading);
  font-weight: var(--font-weight-heading);
  line-height: var(--line-height-heading);
  color: var(--color-text);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.5rem, 6vw, 4.25rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.75rem); letter-spacing: -0.015em; }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.0625rem; }
h6 { font-size: 0.9375rem; }

p { margin: 0 0 var(--space-4); }
p:last-child { margin-bottom: 0; }
strong, b { font-weight: var(--font-weight-medium); }
small { font-size: var(--font-size-sm); }
hr { border: 0; border-top: 1px solid var(--color-border); margin: var(--space-6) 0; }
ul, ol { margin: 0 0 var(--space-4); padding-inline-start: var(--space-5); }

.tabular, .opt-price, table td, table th { font-variant-numeric: tabular-nums; }

/* Conteneur & sections */
.sws-container { width: 100%; max-width: var(--container-max-width); margin-inline: auto; padding-inline: clamp(16px, 4vw, var(--container-padding)); }
.sws-container--narrow { max-width: 780px; }
.sws-container--wide { max-width: 1480px; }

.sws-section { padding-block: clamp(48px, 8vw, var(--section-spacing)); }
.sws-section--tight { padding-block: clamp(32px, 5vw, 60px); }
.sws-section--alt { background: var(--color-surface-alt); }

.sws-section__head { max-width: 680px; margin: 0 auto var(--space-7); }
.sws-section__head--center { text-align: center; margin-inline: auto; }
.sws-section__head--start { margin-inline: 0; text-align: start; }
.sws-section__title { margin: 0; }
.sws-section__intro { margin: var(--space-3) 0 0; color: var(--color-text-muted); font-size: 1.0625rem; }

/* Eyebrow / micro-label */
.sws-eyebrow {
  display: inline-block; margin: 0 0 var(--space-3);
  font-family: var(--font-family-base); font-size: var(--font-size-xs); font-weight: var(--font-weight-medium);
  letter-spacing: var(--letter-spacing-label); text-transform: uppercase; color: var(--color-accent-ink);
}

/* Accessibilité */
:where(a, button, input, select, textarea, [tabindex]):focus-visible { outline: 2px solid var(--color-accent-ink); outline-offset: 2px; }
.sws-skip-link { position: absolute; left: -999px; top: 0; z-index: 1000; background: var(--color-primary); color: var(--color-on-primary); padding: var(--space-3) var(--space-4); }
.sws-skip-link:focus { left: var(--space-3); top: var(--space-3); }
.sws-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) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
