/* =========================================================================
   Site vitrine — Centauri
   Vanilla CSS, aucune dépendance, aucun build.
   Design system « Serene Blue » : thème clair institutionnel et franchement
   bleu, bordures pleines nettes, titres en TeX Gyre Termes (aplat, sans
   dégradé), texture de bruit, Roboto Mono réservé au code / identifiants /
   valeurs techniques (voir --font-display / --font-body / --font-mono).

   Feuille découpée en 5 fichiers, À CHARGER DANS CET ORDRE (la cascade en dépend) :
   base.css · navigation.css · sections.css · detail.css · home.css
   (chacun sous le seuil de 2000 lignes — voir scripts/check-site-vitrine.cjs).
   ========================================================================= */

:root {
  /* Palette « Serene Blue » (Palette/palette.scss) — thème clair institutionnel. */
  --platinum: #e7ecef;
  --dusk-blue: #274c77;
  --steel-blue: #6096ba;
  --icy-blue: #a3cef1;
  --grey-olive: #8b8c89;

  --bg: #ffffff;
  --bg-soft: #e3edf5;                 /* fond des cadres (aperçu hero), sections alternées — nettement bleuté */
  --surface: #ffffff;                 /* carte : blanc pur, séparée par la bordure */
  --surface-strong: #e3edf5;
  --border: hsl(206 32% 85%);
  --border-strong: hsl(206 30% 72%);
  --text: #16232f;                    /* quasi-noir bleuté, lisible en grand corps de texte */
  --text-muted: #55636d;
  --text-dim: #6b7880;
  --accent: var(--dusk-blue);
  --accent-2: var(--steel-blue);
  --accent-ink: #2f6690;              /* liens/icônes sur fond clair ou pastille --accent-soft */
  --accent-soft: color-mix(in oklab, var(--icy-blue) 42%, white);
  --ok: #1e7a42;
  --warn: #a15c00;
  --danger: #c0392b;
  --radius: 20px;
  --radius-lg: 28px;
  --maxw: 1120px;
  /* Soft UI — ombres duo (claire + sombre) sur un fond légèrement teinté (--bg-soft). */
  --shadow-soft: 6px 6px 12px rgba(150, 173, 196, 0.45), -6px -6px 12px rgba(255, 255, 255, 0.85);
  --shadow-soft-sm: 4px 4px 8px rgba(150, 173, 196, 0.4), -4px -4px 8px rgba(255, 255, 255, 0.85);
  --shadow-soft-hover: 8px 8px 16px rgba(150, 173, 196, 0.5), -8px -8px 16px rgba(255, 255, 255, 0.9);
  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-soft-inset: inset 5px 5px 10px rgba(150, 173, 196, 0.4), inset -5px -5px 10px rgba(255, 255, 255, 0.75);
  /* Le grand titre (h1) reste en serif TeX Gyre Termes ; tout le reste est en Aptos. */
  --font-display: "TeX Gyre Termes", Aptos, serif;
  --font-body: Aptos, "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-subtitle: var(--font-body);
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font: var(--font-body);
  --font-head: var(--font-body);
  --mono: var(--font-mono);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 108px; }

body {
  position: relative;
  margin: 0;
  background: var(--bg-soft);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: rgba(47, 102, 144, 0.85); color: #fff; }

/* Halo de fond — une seule lueur bleu acier diffuse au-dessus du hero, discrète.
   Pas de dégradé pinné dans un coin qui suit le défilement. */
body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 900px;
  background: radial-gradient(1100px 520px at 50% -160px, rgba(47, 102, 144, 0.18), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Texture de bruit très légère par-dessus le fond */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.022;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

main { position: relative; z-index: 1; }

/* Lien d'évitement (injecté par js/main.js) : masqué hors focus clavier, visible au premier Tab. */
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }
main:focus { outline: none; }

h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; }
/* Titres d'affichage : aplat, pas de dégradé sur le texte */
.hero h1,
.detail-hero h1,
.section-head h2,
.contact-panel h2,
.cta-banner h2,
.about-body h2 {
  color: var(--text);
}
p { margin: 0; }
a { color: inherit; text-decoration: none; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 6px 13px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: color-mix(in oklab, var(--accent) 10%, var(--bg-soft));
  box-shadow: var(--shadow-soft-sm);
  margin-bottom: 20px;
}

.text-muted { color: var(--text-muted); }

/* ------------------------------------------------------------------ Boutons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 12px 22px;
  border-radius: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  /* Soft UI : pas de déplacement au survol, seule l'ombre bouge (comme un vrai
     bouton qui s'enfonce/ressort, pas un bouton qui décolle du fond). */
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.3s var(--ease-soft);
}
.btn:active { transition-duration: 0.05s; box-shadow: var(--shadow-soft-inset) !important; }
/* Primaire : dusk-blue avec un très léger relief (pas de dégradé voyant, juste
   un soupçon de bombé) + ombre portée contenue (pas de halo large) */
.btn-primary {
  /* Blanc sur --accent (#274c77) : contraste ~8.8:1, largement au-dessus du seuil AA. */
  background-color: var(--accent);
  background-image: linear-gradient(180deg, color-mix(in oklab, var(--accent) 88%, white), transparent 65%);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 1px 2px rgba(47, 102, 144, 0.25),
    0 4px 8px -2px rgba(47, 102, 144, 0.3);
}
.btn-primary:hover {
  background-color: #1b3a5c;
  background-image: linear-gradient(180deg, color-mix(in oklab, #1b3a5c 88%, white), transparent 65%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 1px 2px rgba(47, 102, 144, 0.25),
    0 6px 12px -3px rgba(47, 102, 144, 0.35);
}
/* Secondaire : soft UI — même teinte que le fond, extrudée par l'ombre duo */
.btn-ghost {
  background-color: var(--bg-soft);
  color: var(--text);
  border-color: transparent;
  box-shadow: var(--shadow-soft-sm);
}
.btn-ghost:hover {
  background-color: var(--surface);
  box-shadow: var(--shadow-soft);
}
.btn-small { padding: 9px 16px; font-size: 0.85rem; }

/* Images : quand width/height sont posés en attributs (réserve l'espace, évite le
   décalage de mise en page), la hauteur reste proportionnelle sauf si une règle de
   classe la fixe. :where() = spécificité nulle, donc jamais prioritaire sur le reste. */
:where(img[width][height]) { height: auto; }

/* Texte réservé aux technologies d'assistance (titre de section non affiché). */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
