/* ============================================================
   Belyo | Design system partagé (landing + outil)
   ============================================================ */

/* ------------------------------------------------------------
   Les polices, servies depuis notre propre domaine
   ------------------------------------------------------------
   Elles venaient de Google Fonts. Deux problèmes, un de vitesse et
   un de principe.

   La vitesse : la feuille de style de Google bloque l'affichage, et
   elle vit sur un domaine différent, qui vit lui-même sur un
   troisième pour les fichiers de police. Trois noms à résoudre, trois
   poignées de main chiffrées, avant que la première lettre ne
   s'affiche. Sur un téléphone en 4G, c'est une demi-seconde perdue
   avant même d'avoir commencé.

   Le principe : Google Fonts transmet l'adresse IP de chaque visiteur
   à Google. Difficile à tenir sur un site qui vend de la conformité et
   dont la page de confidentialité promet l'absence d'outil tiers.

   Sous-ensemble latin uniquement : il couvre le français, accents,
   cédille, œ et € compris. « swap » affiche immédiatement la police
   de secours, puis la remplace : jamais de texte invisible.
   ------------------------------------------------------------ */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/archivo-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/archivo-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/archivo-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/archivo-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
}

:root {
  --bg: #F5F4F0;
  --panel: #FFFFFF;
  --ink: #1B2430;
  --ink-soft: #5B6472;
  --line: #DDD9CD;
  --line-soft: #EAE7DD;
  --accent: #E8551E;
  --accent-hover: #C2430F;
  --accent-soft: #FBEAE0;
  --urgent: #B23A2E;
  --urgent-soft: #F6E7E4;
  --warn: #93701F;
  --warn-soft: #F4EDDD;
  --done: #3F6D4E;
  --done-soft: #E5EEE7;

  --radius-sm: 6px;
  --radius-md: 9px;
  --radius-lg: 12px;

  /* Échelle de profondeur : chaque niveau a un rôle, on ne les mélange pas.
     plate  : contenu éditorial, ni bordure ni ombre
     posée  : contenu groupé, bordure fine, pas d'ombre
     levée  : l'élément principal d'un écran, et lui seul */
  --shadow-posee: none;
  --shadow-levee: 0 18px 40px -24px rgba(27, 36, 48, 0.30);
  --shadow-forte: 0 28px 60px -30px rgba(27, 36, 48, 0.40);

  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Archivo", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

/* L'en-tête reste collé en haut sur 68 px. Sans cette réserve, cliquer
   « Prix » ou « Fiduciaires » amenait bien la section, mais son titre
   passait dessous : on arrivait au milieu d'un paragraphe sans savoir
   où. Quelques pixels de plus que l'en-tête pour que le titre respire. */
html { scroll-padding-top: 84px; }

/* Le saut sec d'une ancre fait perdre le fil : on ne sait pas si la page
   a bougé de deux sections ou de dix. Le défilement animé le montre. */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

@media print {
  * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    color-adjust: exact;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); }

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

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}
/* Colonne de lecture : alterne avec les sections larges pour donner
   un rythme à la page plutôt que de tout servir à la même largeur. */
.container-lecture {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

.mono { font-family: var(--font-mono); }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  white-space: nowrap;
  /* Un bouton ne peut pas être plus large que ce qui le contient : sans cette
     limite, un libellé un peu long sort de sa carte sur mobile, sans pour
     autant élargir la page, donc sans qu'aucun contrôle ne le signale. */
  max-width: 100%;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 1px 0 rgba(0,0,0,0.05);
}
.btn-primary:hover { background: var(--accent-hover); }

.btn-secondary {
  background: var(--panel);
  color: var(--ink);
  border-color: var(--line);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

.btn-ghost {
  background: transparent;
  color: var(--ink-soft);
  border-color: transparent;
  padding: 8px 12px;
}
.btn-ghost:hover { color: var(--ink); }

.btn-sm { padding: 8px 14px; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* --- Badges / pills --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink-soft);
  white-space: nowrap;
}
.badge-accent { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.badge-urgent { background: var(--urgent-soft); color: var(--urgent); border-color: transparent; }
.badge-warn   { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.badge-done   { background: var(--done-soft); color: var(--done); border-color: transparent; }

.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }

/* --- Site header (shared) --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 244, 240, 0.9);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.brand-logo-img {
  height: 26px;
  width: auto;
  display: block;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.site-nav a:not(.btn) {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}
.site-nav a:not(.btn):hover { color: var(--ink); }
.nav-links { display: flex; gap: 28px; }

@media (max-width: 760px) {
  .nav-links { display: none; }
}

/* --- Footer (shared) --- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
  color: var(--ink-soft);
  font-size: 0.85rem;
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.site-footer a { color: var(--ink-soft); }
.footer-refs {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-soft);
}

/* --- Section helpers --- */
.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; }

/* --- Cards --- */
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
}
