/* Sipward — feuille de style du site de présentation.
 *
 * Les jetons de couleur sont ceux de l'application, reproduits à l'identique :
 * un visiteur qui parcourt le site puis se connecte ne doit pas changer
 * d'univers visuel. Toute modification de palette se fait donc dans les deux
 * dépôts, sans quoi ils divergent sans que personne ne s'en aperçoive.
 *
 * Pas de framework : une page de présentation n'en a pas besoin, et chaque
 * dépendance serait à suivre pour des failles qui ne concernent pas du texte
 * statique.
 *
 * Pas de police distante non plus : la politique de sécurité appliquée par
 * Traefik restreint font-src à 'self', et une police externe ajouterait une
 * dépendance réseau au premier rendu. */

:root {
  --bg: #f4f3ef;
  --surface: #ffffff;
  --surface-alt: #f9f8f5;
  --border: rgba(11, 11, 11, 0.1);
  --border-strong: rgba(11, 11, 11, 0.18);
  --text: #0b0b0b;
  --text-2: #52514e;
  --text-3: #898781;
  --accent: #185fa5;
  --accent-bg: #e6f1fb;
  --accent-text: #0c447c;
  --ok: #1d9e75;
  --radius: 8px;
  --max: 1080px;
}

/* Clair par défaut, sombre si le système le demande — comme l'application. */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111110;
    --surface: #1c1c1a;
    --surface-alt: #161615;
    --border: rgba(255, 255, 255, 0.1);
    --border-strong: rgba(255, 255, 255, 0.18);
    --text: #e8e6de;
    --text-2: #c3c2b7;
    --text-3: #898781;
    --accent: #3987e5;
    --accent-bg: #0c2340;
    --accent-text: #85b7eb;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

/* ── En-tête ─────────────────────────────────────────────────────────────── */

header {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px);
  z-index: 10;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
}

.logo svg { display: block; }

/* Le tracé du logo suit la couleur d'accent : une seule définition pour les
   deux thèmes, là où deux versions divergeraient à la première retouche. */
.logo-mark { color: var(--accent); }

.nav-links { display: flex; gap: 26px; align-items: center; }

.nav-links a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.15s;
}

.nav-links a:hover { color: var(--text); }

/* ── Bandeau d'ouverture ─────────────────────────────────────────────────── */

.hero { padding: 96px 0 80px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: var(--surface);
  font-size: 12.5px;
  color: var(--text-2);
  margin-bottom: 26px;
}

.badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
}

h1 {
  font-size: clamp(34px, 5.5vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 650;
  max-width: 19ch;
  margin-bottom: 22px;
}

h1 em {
  font-style: normal;
  color: var(--accent);
}

.lead {
  font-size: 18.5px;
  color: var(--text-2);
  max-width: 58ch;
  margin-bottom: 34px;
}

.cta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s;
}

.btn-primary {
  background: var(--accent);
  color: var(--surface);
}

.btn-primary:hover { background: var(--accent-text); }

.btn-ghost {
  border-color: var(--border);
  color: var(--text-2);
}

.btn-ghost:hover { border-color: var(--text-3); color: var(--text); }

/* ── Sections ────────────────────────────────────────────────────────────── */

section { padding: 76px 0; border-top: 1px solid var(--border); }

.section-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 12px;
}

h2 {
  font-size: clamp(25px, 3.4vw, 33px);
  letter-spacing: -0.02em;
  font-weight: 620;
  margin-bottom: 14px;
  max-width: 22ch;
}

.section-lead {
  color: var(--text-2);
  max-width: 62ch;
  margin-bottom: 46px;
  font-size: 16.5px;
}

/* ── Grille de fonctionnalités ───────────────────────────────────────────── */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 18px;
}

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 24px;
  transition: border-color 0.15s;
}

.card:hover { border-color: var(--border-strong); }

.card-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--accent-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  color: var(--accent);
}

.card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 7px;
  letter-spacing: -0.01em;
}

.card p {
  font-size: 14.5px;
  color: var(--text-2);
  line-height: 1.6;
}

/* ── Liste en deux colonnes ──────────────────────────────────────────────── */

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  align-items: start;
}

.checklist { list-style: none; display: grid; gap: 15px; }

.checklist li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15px;
  color: var(--text-2);
}

.checklist svg { flex-shrink: 0; margin-top: 3px; color: var(--accent); }

.checklist strong {
  color: var(--text);
  font-weight: 550;
  display: block;
  margin-bottom: 2px;
}

/* ── Encart souveraineté ─────────────────────────────────────────────────── */

.panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  padding: 34px;
}

.panel h3 {
  font-size: 19px;
  margin-bottom: 10px;
  letter-spacing: -0.015em;
}

.panel p { color: var(--text-2); font-size: 15.5px; max-width: 60ch; }

/* ── Contact ─────────────────────────────────────────────────────────────── */

.contact { text-align: center; padding: 88px 0; }

.contact h2 { margin: 0 auto 14px; max-width: 20ch; }

.contact .section-lead { margin: 0 auto 30px; }

.mail {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  font-size: 15px;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--border-strong);
  padding-bottom: 2px;
}

.mail:hover { border-color: var(--accent); }

/* ── Pied de page ────────────────────────────────────────────────────────── */

footer {
  border-top: 1px solid var(--border);
  padding: 30px 0;
  font-size: 13.5px;
  /* --text-3 tombe à 3,2:1 sur le fond clair : sous le seuil de 4,5:1 attendu
     pour du texte courant. La mention légale du pied de page doit rester
     lisible, elle n'est pas décorative. */
  color: var(--text-2);
}

.foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

footer a { color: var(--text-3); text-decoration: none; }
footer a:hover { color: var(--text-2); }

/* ── Écrans étroits ──────────────────────────────────────────────────────── */

@media (max-width: 640px) {
  .hero { padding: 62px 0 54px; }
  section { padding: 56px 0; }
  .nav-links { display: none; }
  .panel { padding: 24px; }
}

/* Respect d'une préférence système : une animation de défilement peut gêner
 * les personnes sensibles au mouvement. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ── Ajustements ponctuels ───────────────────────────────────────────────── */

/* Nommés plutôt qu'écrits en attribut style= : la politique de contenu du site
 * interdit les styles en ligne, ce qui les rendrait sans effet. */

.no-margin-bottom { margin-bottom: 0; }

.page-error { padding-top: 140px; }

.page-error h2 { margin: 0 auto 14px; }

.page-error .section-lead { margin: 0 auto 30px; }
