/* Lodaris · vitrine
   Palette « carte de nuit » : le fond d'une carte aéronautique, le bleu de l'étoile Lodaris,
   l'ambre et le corail du balisage pour les niveaux d'exigence. */

@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/geist-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/geist-latin-ext-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --nuit: #050c18;
  --encre: #0a1628;
  --encre-haute: #0f1f37;
  --trait: #22395a;
  --trait-clair: #34557f;
  --texte: #eef3fa;
  --brume: #c3cfdf;
  --muet: #8697b0;
  --etoile: #2e8bff;
  --etoile-claire: #7fb6ff;
  --ambre: #f2b441;
  --corail: #ff8a6b;

  --police: "Geist", "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, sans-serif;
  --gouttiere: clamp(16px, 4vw, 56px);
  --largeur: 1240px;
  --rayon: 14px;

  color-scheme: dark;
}

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

html {
  background: var(--nuit);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--nuit);
  color: var(--brume);
  font-family: var(--police);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-feature-settings: "ss01", "tnum" 0;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

h1,
h2,
h3 {
  color: var(--texte);
  margin: 0;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3rem);
  font-weight: 560;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.35;
}

p {
  margin: 0;
  text-wrap: pretty;
}

:focus-visible {
  outline: 2px solid var(--etoile-claire);
  outline-offset: 3px;
  border-radius: 6px;
}

.evitement {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--texte);
  color: var(--nuit);
  font-weight: 600;
  text-decoration: none;
}
.evitement:focus {
  top: 12px;
}

/* ---------- Boutons ---------- */

.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 560;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.bouton-grand {
  min-height: 50px;
  padding: 0 26px;
  font-size: 1rem;
}
.bouton-plein {
  background: var(--etoile);
  color: #fff;
  box-shadow: 0 0 0 1px rgb(127 182 255 / 0.35) inset, 0 10px 30px -10px rgb(46 139 255 / 0.7);
}
.bouton-plein:hover {
  background: #4b9cff;
}
.bouton-contour {
  border: 1px solid var(--trait-clair);
  color: var(--texte);
  background: rgb(10 22 40 / 0.55);
  backdrop-filter: blur(6px);
}
.bouton-contour:hover {
  border-color: var(--etoile-claire);
}
.bouton:active {
  transform: translateY(1px);
}

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

.entete {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 32px;
  height: 72px;
  padding: 0 var(--gouttiere);
  transition: background-color 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.entete.est-defilee {
  background: rgb(5 12 24 / 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: rgb(52 85 127 / 0.35);
}
.entete-logo img {
  width: 150px;
  height: auto;
}
.entete-nav {
  display: flex;
  gap: 28px;
  margin-right: auto;
  font-size: 0.9375rem;
}
.entete-nav a,
.lien-discret {
  color: var(--muet);
  text-decoration: none;
  transition: color 0.2s ease;
}
.entete-nav a:hover,
.lien-discret:hover {
  color: var(--texte);
}
.entete-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.9375rem;
}

/* ---------- Accueil ---------- */

.hero {
  position: relative;
  min-height: min(100svh, 980px);
  display: flex;
  align-items: center;
  padding: 120px var(--gouttiere) 72px;
  isolation: isolate;
  overflow: hidden;
}
.hero-carte {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero-carte canvas {
  display: block;
  width: 100%;
  height: 100%;
}
/* voile de lecture côté texte */
.hero-carte::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, var(--nuit) 0%, rgb(5 12 24 / 0.92) 30%, rgb(5 12 24 / 0.35) 52%, transparent 70%),
    linear-gradient(0deg, var(--nuit) 0%, transparent 22%);
}
.carte-legende {
  position: absolute;
  right: var(--gouttiere);
  bottom: 28px;
  font-size: 0.8125rem;
  color: var(--muet);
  opacity: 0;
  transition: opacity 0.6s ease;
}
.carte-legende.est-visible {
  opacity: 1;
}

.hero-texte {
  position: relative;
  max-width: 40rem;
  width: 100%;
  margin: 0 auto 0 max(0px, calc((100vw - var(--largeur)) / 2 - var(--gouttiere)));
}
.hero-statut {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  padding: 6px 14px 6px 10px;
  border: 1px solid var(--trait);
  border-radius: 999px;
  background: rgb(10 22 40 / 0.7);
  font-size: 0.875rem;
  color: var(--brume);
}
.pastille {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--etoile);
  box-shadow: 0 0 0 4px rgb(46 139 255 / 0.18);
}

.hero h1 {
  display: grid;
  gap: 0.14em;
  margin-bottom: 28px;
}
.h1-ligne {
  display: block;
}
/* La ligne « complexe » : fine, serrée de lettres, comme les étiquettes d'une carte. */
.h1-dense {
  font-size: clamp(1.05rem, 0.8rem + 1vw, 1.5rem);
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--muet);
}
/* La ligne « claire » : le message, dense et net. */
.h1-clair {
  font-size: clamp(2.5rem, 1.4rem + 4.2vw, 4.6rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.02;
  color: var(--texte);
}
.hero-intro {
  max-width: 34rem;
  font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  color: var(--brume);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}

/* Chorégraphie d'arrivée du texte (une seule, au chargement) */
.js .hero-texte > * {
  opacity: 0;
  transform: translateY(14px);
  animation: arrivee 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
.js .hero-texte > :nth-child(1) { animation-delay: 0.1s; }
.js .hero-texte > :nth-child(2) { animation-delay: 0.25s; }
.js .hero-texte > :nth-child(3) { animation-delay: 2.2s; }
.js .hero-texte > :nth-child(4) { animation-delay: 2.35s; }
.js .h1-clair {
  opacity: 0;
  filter: blur(8px);
  animation: nettete 1s cubic-bezier(0.2, 0.7, 0.2, 1) 1.6s forwards;
}
@keyframes arrivee {
  to { opacity: 1; transform: none; }
}
@keyframes nettete {
  to { opacity: 1; filter: blur(0); }
}

/* ---------- Sections ---------- */

#contenu > section:not(.hero) {
  width: 100%;
  max-width: calc(var(--largeur) + 2 * var(--gouttiere));
  margin: 0 auto;
  padding: clamp(80px, 11vw, 150px) var(--gouttiere) 0;
}

/* Parcours */
.parcours {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.parcours-tete {
  position: sticky;
  top: 120px;
}
.parcours-tete p {
  margin-top: 20px;
  max-width: 26rem;
  color: var(--muet);
}
.etapes {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  counter-reset: none;
}
/* la trajectoire qui relie les étapes */
.etapes::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 22px;
  bottom: 22px;
  width: 1px;
  background: linear-gradient(180deg, var(--etoile) 0%, var(--trait-clair) 60%, rgb(52 85 127 / 0.15) 100%);
}
.etape {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 24px;
  padding: 0 0 44px;
}
.etape:last-child {
  padding-bottom: 0;
}
.etape-num {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--trait-clair);
  background: var(--nuit);
  color: var(--texte);
  font-size: 0.9375rem;
  font-weight: 560;
  font-variant-numeric: tabular-nums;
}
.etape:first-child .etape-num {
  border-color: var(--etoile);
  box-shadow: 0 0 0 5px rgb(46 139 255 / 0.12);
}
.etape h3 {
  font-size: 1.25rem;
  margin-top: 8px;
}
.etape p {
  margin-top: 8px;
  max-width: 36rem;
  color: var(--muet);
}

/* Démonstration de traçabilité */
.preuve-tete {
  max-width: 44rem;
}
.preuve-tete p {
  margin-top: 20px;
  color: var(--muet);
}
.analyse {
  margin-top: 48px;
  border: 1px solid var(--trait);
  border-radius: var(--rayon);
  background:
    radial-gradient(120% 80% at 100% 0%, rgb(46 139 255 / 0.08), transparent 60%),
    var(--encre);
  overflow: hidden;
}
.analyse-barre {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 16px;
  padding: 12px 24px;
  border-bottom: 1px solid var(--trait);
  font-size: 0.8125rem;
  color: var(--muet);
}
.analyse-barre span:first-child {
  color: var(--brume);
  font-weight: 560;
}
.analyse-corps {
  padding: clamp(20px, 3vw, 36px);
}
.analyse-verdict {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--trait);
}
.verdict-signe {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgb(242 180 65 / 0.12);
  border: 1px solid rgb(242 180 65 / 0.5);
  position: relative;
}
.verdict-signe::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 2px solid var(--ambre);
  border-radius: 50%;
  background: linear-gradient(90deg, var(--ambre) 50%, transparent 50%);
}
.verdict-etiquette {
  font-size: 0.875rem;
  color: var(--muet);
}
.verdict-valeur {
  font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--texte);
}
.analyse-colonnes {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: clamp(24px, 4vw, 56px);
  padding-top: 28px;
}
.analyse-sous-titre {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muet);
  margin-bottom: 14px;
}
.raisons,
.sources-demo {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.raison {
  display: grid;
  gap: 8px;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--trait);
  border-radius: 10px;
  background: rgb(5 12 24 / 0.5);
  color: var(--brume);
  font: inherit;
  font-size: 0.975rem;
  line-height: 1.5;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.raison:hover {
  border-color: var(--trait-clair);
}
.raison[aria-pressed="true"] {
  border-color: var(--etoile);
  background: rgb(46 139 255 / 0.08);
  color: var(--texte);
}
.niveau {
  justify-self: start;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 560;
}
.niveau-obligatoire {
  color: var(--corail);
  background: rgb(255 138 107 / 0.12);
}
.niveau-conditions {
  color: var(--ambre);
  background: rgb(242 180 65 / 0.12);
}
.niveau-info {
  color: var(--etoile-claire);
  background: rgb(127 182 255 / 0.12);
}
.sources-demo li {
  position: relative;
  padding: 12px 14px 12px 34px;
  border-radius: 10px;
  border: 1px dashed var(--trait);
  font-size: 0.9375rem;
  color: var(--muet);
  transition: border-color 0.25s ease, color 0.25s ease, background-color 0.25s ease;
}
.sources-demo li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 1.15em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid var(--trait-clair);
  transition: background-color 0.25s ease, border-color 0.25s ease;
}
.sources-demo li.est-liee {
  border-style: solid;
  border-color: var(--etoile);
  background: rgb(46 139 255 / 0.08);
  color: var(--texte);
}
.sources-demo li.est-liee::before {
  background: var(--etoile);
  border-color: var(--etoile);
}

/* Sources et sécurité */
.sources-grille {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 6vw, 96px);
  margin-top: 56px;
}
.sources-grille h3 {
  font-size: 1.1875rem;
  padding-bottom: 18px;
}
.liste-faits {
  margin: 0;
}
.liste-faits > div {
  display: grid;
  grid-template-columns: minmax(0, 10rem) minmax(0, 1fr);
  gap: 4px 24px;
  padding: 16px 0;
  border-top: 1px solid var(--trait);
}
.liste-faits dt {
  color: var(--texte);
  font-weight: 500;
  font-size: 0.9375rem;
}
.liste-faits dd {
  margin: 0;
  color: var(--muet);
  font-size: 0.9375rem;
}
.sources-note {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--trait);
  font-size: 0.9375rem;
  color: var(--muet);
}
.responsabilite {
  margin-top: 64px;
  max-width: 46rem;
  padding-left: 24px;
  border-left: 2px solid var(--etoile);
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.45rem);
  line-height: 1.45;
  color: var(--texte);
  font-weight: 450;
}

/* Modules */
.modules-liste {
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 32px;
}
.modules-liste li {
  padding: 22px 0 26px;
  border-top: 1px solid var(--trait);
}
.modules-liste p {
  margin-top: 6px;
  font-size: 0.9375rem;
  color: var(--muet);
}

/* Appel final */
#contenu > section.final {
  display: grid;
  justify-items: center;
  text-align: center;
  padding-bottom: clamp(80px, 10vw, 140px);
}
.final-symbole {
  width: 64px;
  margin-bottom: 28px;
  filter: drop-shadow(0 0 24px rgb(46 139 255 / 0.45));
}
.final h2 {
  max-width: 24ch;
}
.final p {
  margin-top: 18px;
  color: var(--muet);
}
.final-actions {
  justify-content: center;
}

/* Pied de page */
.pied {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
  max-width: calc(var(--largeur) + 2 * var(--gouttiere));
  margin: 0 auto;
  padding: 32px var(--gouttiere) 40px;
  border-top: 1px solid var(--trait);
  font-size: 0.875rem;
  color: var(--muet);
}
.pied img {
  width: 120px;
  opacity: 0.85;
}
.pied nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-left: auto;
}
.pied nav a {
  color: var(--muet);
  text-decoration: none;
}
.pied nav a:hover {
  color: var(--texte);
}

/* ---------- Pages légales ---------- */

.page-legale .legal-entete {
  max-width: 52rem;
  margin: 0 auto;
  padding: 32px var(--gouttiere) 0;
}
.page-legale .legal-entete img {
  width: 150px;
}
.legal-contenu {
  max-width: 52rem;
  margin: 0 auto;
  padding: 48px var(--gouttiere) 80px;
}
.legal-contenu h1 {
  font-size: clamp(2rem, 1.4rem + 2vw, 2.75rem);
  font-weight: 560;
  letter-spacing: -0.025em;
}
.legal-maj {
  margin-top: 8px;
  font-size: 0.875rem;
  color: var(--muet);
}
.legal-intro {
  margin-top: 24px;
  color: var(--texte);
}
.legal-contenu section {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--trait);
}
.legal-contenu h2 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.legal-contenu p + p {
  margin-top: 10px;
}
.legal-contenu a {
  color: var(--etoile-claire);
  overflow-wrap: anywhere;
}
.pied-legal {
  max-width: calc(52rem);
}

/* ---------- Adaptations ---------- */

@media (max-width: 1060px) {
  .entete-nav {
    display: none;
  }
  .entete-actions {
    margin-left: auto;
  }
  .modules-liste {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .hero {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-end;
    min-height: auto;
    padding-top: 0;
  }
  .hero-carte {
    position: relative;
    inset: auto;
    height: 52svh;
    min-height: 320px;
    margin: 0 calc(-1 * var(--gouttiere)) -40px;
  }
  .hero-carte::before {
    background: linear-gradient(0deg, var(--nuit) 0%, rgb(5 12 24 / 0.4) 30%, transparent 55%),
      linear-gradient(180deg, var(--nuit) 0%, transparent 22%);
  }
  .carte-legende {
    display: none;
  }
  .hero-texte {
    margin: 0;
  }
  .parcours,
  .sources-grille,
  .analyse-colonnes {
    grid-template-columns: minmax(0, 1fr);
  }
  .parcours-tete {
    position: static;
  }
}

@media (max-width: 560px) {
  .entete {
    height: 64px;
    gap: 12px;
  }
  .entete-logo img {
    width: 118px;
  }
  .lien-discret {
    display: none;
  }
  .entete .bouton {
    min-height: 36px;
    padding: 0 14px;
    font-size: 0.875rem;
  }
  .hero-actions .bouton {
    flex: 1 1 100%;
  }
  .modules-liste {
    grid-template-columns: minmax(0, 1fr);
  }
  .liste-faits > div {
    grid-template-columns: minmax(0, 1fr);
  }
  .pied nav {
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
  }
}

/* Démonstration : organismes à contacter */
.analyse-sous-titre-suite {
  margin-top: 28px;
}
.contacts-demo {
  list-style: none;
  margin: 0;
  padding: 0;
}
.contacts-demo li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 2px;
  border-top: 1px solid var(--trait);
  color: var(--texte);
  font-size: 0.975rem;
}
.contacts-demo li:last-child {
  border-bottom: 1px solid var(--trait);
}

/* ---------- Le nom Lodaris : toujours composé comme le logo ---------- */
/* Capitales très espacées, comme le wordmark : le nom se détache sans changer de couleur. */
.marque {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.86em;
  font-weight: 600;
  color: var(--texte);
  margin-right: -0.16em; /* compense l'espacement après la dernière lettre */
  white-space: nowrap;
}
h2 .marque {
  font-weight: 300;
  letter-spacing: 0.2em;
  margin-right: -0.2em;
  font-size: 0.82em;
}
.pied .marque {
  color: var(--brume);
}

/* Accueil : le nom seul sur sa ligne, en signature, avec l'étoile de la marque */
.h1-marque {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.08em;
  margin: 0.18em 0 0.06em;
  font-size: clamp(2.6rem, 1.3rem + 4.6vw, 5rem);
  font-weight: 250;
  letter-spacing: 0.24em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--texte);
}
.marque-etoile {
  flex: none;
  width: 0.34em;
  height: 0.34em;
  margin-left: -0.12em; /* l'étoile se pose dans l'espacement de la dernière lettre */
  background: var(--etoile);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  filter: drop-shadow(0 0 10px rgb(46 139 255 / 0.8));
}
.hero .h1-clair {
  font-size: clamp(2rem, 1.2rem + 3vw, 3.5rem);
}
.js .h1-marque {
  opacity: 0;
  filter: blur(8px);
  animation: nettete 1s cubic-bezier(0.2, 0.7, 0.2, 1) 1.45s forwards;
}
