/* ==========================================================================
   Deepsea Solutions — Reset & typographie de base
   ========================================================================== */

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

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern" 1;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

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

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

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

/* --- Échelle typographique ------------------------------------------------ */

/* Tous les niveaux de titre en serif. C'est le geste qui donne au site une
   voix de marque au lieu d'une voix d'interface. */
.t-display {
  font-family: var(--font-display);
  font-size: var(--fs-display);
  line-height: var(--lh-tight);
  letter-spacing: var(--tr-display);
  font-weight: var(--fw-display);
  text-wrap: balance;
}

h1, .t-h1 {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  line-height: var(--lh-tight);
  letter-spacing: var(--tr-display);
  font-weight: var(--fw-display);
  text-wrap: balance;
}

h2, .t-h2 {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  line-height: var(--lh-snug);
  letter-spacing: var(--tr-h2);
  font-weight: var(--fw-title);
  text-wrap: balance;
}

/* Le H3 repasse en sans : à cette taille le serif devient décoratif, et le
   contraste serif/sans marque mieux la hiérarchie qu'un simple écart de corps. */
h3, .t-h3 {
  font-family: var(--font-body);
  font-size: var(--fs-h3);
  line-height: 1.35;
  letter-spacing: 0;
  font-weight: var(--fw-strong);
}

.t-lead {
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--text-muted);
  text-wrap: pretty;
}

.t-body  { font-size: var(--fs-body); }
.t-sm    { font-size: var(--fs-sm); }
.t-muted { color: var(--text-muted); }

/* L'étiquette mono : marqueur de section, jamais un titre. Elle donne le
   registre « fiche technique » qui distingue le site d'une plaquette. */
.t-label {
  font-family: var(--font-body);
  font-size: var(--fs-label);
  letter-spacing: var(--tr-label);
  text-transform: uppercase;
  font-weight: 500;
  color: var(--text-muted);
}

/* Chiffres tabulaires : les colonnes de données doivent s'aligner. */
.t-figure {
  font-family: var(--font-body);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  letter-spacing: -0.02em;
}

p + p { margin-top: var(--s4); }

.measure { max-width: var(--maxw-text); }

/* --- Régime sombre : appliqué par section, pas par préférence système ----- */
.on-deep {
  background: var(--bg-deep);
  color: var(--text-on-deep);
}
.on-deep h1, .on-deep h2, .on-deep h3 { color: var(--white); }
.on-deep .t-lead,
.on-deep .t-muted { color: var(--text-on-deep-muted); }
.on-deep .t-label { color: rgba(255, 255, 255, 0.55); }

/* --- Accessibilité -------------------------------------------------------- */

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: 0; left: var(--s4);
  transform: translateY(-120%);
  z-index: 200;
  background: var(--accent-dark);
  color: var(--white);
  padding: var(--s3) var(--s5);
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform var(--dur-fast) var(--ease);
}
.skip-link:focus { transform: translateY(0); }

::selection {
  background: var(--ink-700);
  color: var(--white);
}

/* Un titre de section secondaire, plus bas que le rang de son balisage : la
   hiérarchie visuelle ne suit pas toujours celle du document. */
.t-h3 { font-size: var(--fs-h3); }
