/* Ouvertures — charte commune (application, page d'accueil, pages légales).
   Clair, sobre, une seule couleur de marque. Police Geist hébergée ici (licence SIL OFL, fonts/LICENCE-Geist.txt) :
   aucune requête vers un service de polices tiers. */

@font-face { font-family: 'Geist'; src: url('fonts/Geist-Variable.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url('fonts/GeistMono-Variable.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  --fond: #f4f5f7;
  --fond-2: #eceef2;
  --surface: #ffffff;
  --surface-2: #f9fafb;
  --ligne: #e3e6eb;
  --ligne-2: #eef0f3;
  --ligne-forte: #cfd4dc;
  --texte: #0d1526;
  --texte-2: #4a5568;
  --texte-3: #8590a2;
  --marque: #2250e3;
  --marque-fonce: #1a3fba;
  --marque-pale: #eef2fe;
  --marque-pale-2: #dbe3fd;
  --marque-halo: rgba(34, 80, 227, .16);
  --nuit: #0b1530;
  --vert: #0f9b6c;   --vert-pale: #e8f6ef;
  --orange: #e5630f; --orange-pale: #fdf0e7;
  --violet: #7650e6; --violet-pale: #f1edfd;
  --ciel: #1a86d9;   --ciel-pale: #e8f3fc;
  --ambre: #b4740a;  --ambre-pale: #fdf5e2;
  --rouge: #d0342c;  --rouge-pale: #fdeeed;
  --c-creation: var(--ciel);
  --c-reprise: var(--vert);
  --c-permis: var(--orange);
  --c-arrivee: var(--violet);
  --ombre-1: 0 1px 2px rgba(13, 21, 38, .05);
  --ombre-2: 0 1px 3px rgba(13, 21, 38, .07), 0 1px 2px rgba(13, 21, 38, .04);
  --ombre-3: 0 16px 40px -12px rgba(13, 21, 38, .22), 0 4px 10px -4px rgba(13, 21, 38, .08);
  --rayon: 12px;
  --rayon-s: 8px;
  --rayon-l: 16px;
  --police: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --police-mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --haut: 60px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--police);
  font-size: 14px;
  line-height: 1.5;
  color: var(--texte);
  background: var(--fond);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'ss01' 0;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--marque); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--marque); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--marque-pale-2); }
.mono { font-family: var(--police-mono); font-size: .92em; letter-spacing: -.01em; }
.nombre { font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Marque ---------- */
.marque { display: inline-flex; align-items: center; gap: 10px; color: var(--texte); text-decoration: none; font-weight: 650; font-size: 17px; letter-spacing: -.02em; }
.marque:hover { text-decoration: none; }
.marque svg { width: 30px; height: 30px; flex: none; }
.marque small { font-size: 12px; font-weight: 500; color: var(--texte-3); letter-spacing: 0; margin-left: 2px; }

/* ---------- Boutons ---------- */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 38px; padding: 0 14px;
  border-radius: var(--rayon-s); border: 1px solid var(--ligne); background: var(--surface);
  color: var(--texte); font-size: 14px; font-weight: 550; letter-spacing: -.005em;
  box-shadow: var(--ombre-1); cursor: pointer; white-space: nowrap; text-decoration: none;
  transition: background-color .15s, border-color .15s, box-shadow .15s, color .15s;
}
.bouton:hover { background: var(--surface-2); border-color: var(--ligne-forte); text-decoration: none; }
.bouton:active { transform: translateY(1px); }
.bouton:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.bouton svg { width: 16px; height: 16px; flex: none; }
.bouton.principal { background: var(--marque); border-color: var(--marque); color: #fff; box-shadow: 0 1px 2px rgba(13, 21, 38, .12), inset 0 1px 0 rgba(255, 255, 255, .14); }
.bouton.principal:hover { background: var(--marque-fonce); border-color: var(--marque-fonce); }
.bouton.sombre { background: var(--nuit); border-color: var(--nuit); color: #fff; }
.bouton.sombre:hover { background: #18254a; }
.bouton.discret { background: transparent; border-color: transparent; box-shadow: none; color: var(--texte-2); }
.bouton.discret:hover { background: var(--fond); color: var(--texte); }
.bouton.grand { height: 46px; padding: 0 20px; font-size: 15px; border-radius: 10px; }
.bouton.petit { height: 30px; padding: 0 10px; font-size: 13px; gap: 6px; }
.bouton.petit svg { width: 14px; height: 14px; }
.bouton.plein-large { width: 100%; }
.bouton.icone { width: 38px; padding: 0; }
.bouton.icone.petit { width: 30px; }
.lien-bouton { background: none; border: 0; padding: 0; color: var(--marque); font-weight: 550; cursor: pointer; }
.lien-bouton:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Formulaires ---------- */
.champ { display: grid; gap: 6px; }
.champ > label, .champ > .etiquette-champ { font-size: 13px; font-weight: 550; color: var(--texte); }
.champ .aide { font-size: 12.5px; color: var(--texte-3); margin: 0; }
.saisie {
  width: 100%; height: 40px; padding: 0 12px;
  border: 1px solid var(--ligne); border-radius: var(--rayon-s); background: var(--surface);
  font: inherit; font-size: 14px; color: var(--texte); box-shadow: var(--ombre-1);
  transition: border-color .15s, box-shadow .15s;
}
.saisie::placeholder { color: var(--texte-3); }
.saisie:hover { border-color: var(--ligne-forte); }
.saisie:focus { outline: none; border-color: var(--marque); box-shadow: 0 0 0 4px var(--marque-halo); }
.saisie.erreur { border-color: var(--rouge); box-shadow: 0 0 0 4px rgba(208, 52, 44, .12); }
textarea.saisie { height: auto; min-height: 92px; padding: 10px 12px; line-height: 1.5; resize: vertical; }
select.saisie {
  appearance: none; -webkit-appearance: none; padding-right: 34px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%238590a2' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 16px;
}
.case { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: var(--texte-2); cursor: pointer; line-height: 1.45; }
.case input { margin: 2px 0 0; width: 16px; height: 16px; accent-color: var(--marque); flex: none; cursor: pointer; }
.case small { color: var(--texte-3); }
.message-erreur { margin: 0; font-size: 13px; color: var(--rouge); }

/* Interrupteur */
.bascule { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13.5px; color: var(--texte-2); cursor: pointer; }
.bascule input { appearance: none; -webkit-appearance: none; width: 34px; height: 20px; border-radius: 999px; background: var(--ligne-forte); position: relative; cursor: pointer; flex: none; margin: 0; transition: background .2s; }
.bascule input::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(13, 21, 38, .25); transition: transform .2s; }
.bascule input:checked { background: var(--marque); }
.bascule input:checked::after { transform: translateX(14px); }
.bascule small { color: var(--texte-3); }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px;
  border-radius: 999px; font-size: 12px; font-weight: 550; line-height: 1;
  background: var(--fond); color: var(--texte-2); white-space: nowrap;
}
.badge.point::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.marque { background: var(--marque-pale); color: var(--marque); }
.badge.vert { background: var(--vert-pale); color: var(--vert); }
.badge.orange { background: var(--orange-pale); color: var(--orange); }
.badge.violet { background: var(--violet-pale); color: var(--violet); }
.badge.ciel { background: var(--ciel-pale); color: var(--ciel); }
.badge.ambre { background: var(--ambre-pale); color: var(--ambre); }
.badge.rouge { background: var(--rouge-pale); color: var(--rouge); }
.badge.contour { background: var(--surface); border: 1px solid var(--ligne); color: var(--texte-2); }
.badge.sombre { background: var(--nuit); color: #fff; }
.badge svg { width: 12px; height: 12px; }

/* ---------- Cartes et fenêtres ---------- */
.carte-blanche { background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--rayon); box-shadow: var(--ombre-2); }
.voile {
  position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 24px 16px;
  background: rgba(11, 21, 48, .38); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  animation: apparaitre .18s ease-out;
}
.fenetre {
  width: min(560px, 100%); max-height: min(760px, calc(100dvh - 48px)); display: flex; flex-direction: column;
  background: var(--surface); border-radius: var(--rayon-l); box-shadow: var(--ombre-3); overflow: hidden;
  animation: monter .22s cubic-bezier(.2, .8, .2, 1);
}
.fenetre.large { width: min(760px, 100%); }
.fenetre-tete { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 22px 24px 0; }
.fenetre-tete h2 { margin: 0; font-size: 19px; font-weight: 650; letter-spacing: -.02em; }
.fenetre-tete p { margin: 6px 0 0; color: var(--texte-2); font-size: 14px; }
.fenetre-corps { padding: 18px 24px; overflow: auto; }
.fenetre-pied { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 16px 24px; border-top: 1px solid var(--ligne-2); background: var(--surface-2); }
.fenetre-pied .gauche { margin-right: auto; color: var(--texte-3); font-size: 13px; }
@keyframes apparaitre { from { opacity: 0; } }
@keyframes monter { from { opacity: 0; transform: translateY(10px) scale(.985); } }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 3000; transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px; padding: 11px 16px;
  background: var(--nuit); color: #fff; border-radius: 10px; box-shadow: var(--ombre-3); font-size: 13.5px; font-weight: 500;
  animation: monter .2s ease-out;
}
.toast svg { width: 16px; height: 16px; color: #7ee0b5; }

/* Icônes en trait fin */
.ico { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Pages légales et de contenu ---------- */
.page-texte { background: var(--surface); min-height: 100vh; }
.entete-site { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .86); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--ligne-2); }
.entete-site .dedans { max-width: 1160px; margin: 0 auto; padding: 0 24px; height: 64px; display: flex; align-items: center; gap: 28px; }
.entete-site nav { display: flex; gap: 24px; margin-left: 8px; }
.entete-site nav a { color: var(--texte-2); font-size: 14px; font-weight: 500; }
.entete-site nav a:hover { color: var(--texte); text-decoration: none; }
.entete-site .actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.doc { max-width: 760px; margin: 0 auto; padding: 56px 24px 96px; color: var(--texte-2); font-size: 15.5px; line-height: 1.7; }
.doc h1 { color: var(--texte); font-size: clamp(30px, 4vw, 40px); line-height: 1.15; letter-spacing: -.03em; font-weight: 650; margin: 0 0 8px; }
.doc .doc-maj { color: var(--texte-3); font-size: 14px; margin: 0 0 40px; }
.doc h2 { color: var(--texte); font-size: 20px; letter-spacing: -.015em; font-weight: 620; margin: 40px 0 10px; }
.doc h3 { color: var(--texte); font-size: 16px; font-weight: 600; margin: 24px 0 6px; }
.doc p, .doc ul, .doc ol { margin: 0 0 14px; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 4px 0; }
.doc strong { color: var(--texte); font-weight: 600; }

.pied-site { background: var(--nuit); color: rgba(255, 255, 255, .62); font-size: 13.5px; }
.pied-site .dedans { max-width: 1160px; margin: 0 auto; padding: 48px 24px 40px; display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.pied-site .marque { color: #fff; }
.pied-site h3 { color: #fff; font-size: 13px; font-weight: 600; margin: 4px 0 12px; letter-spacing: .01em; }
.pied-site ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pied-site a { color: rgba(255, 255, 255, .72); }
.pied-site a:hover { color: #fff; }
.pied-site .bas { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 12.5px; }
@media (max-width: 760px) {
  .entete-site nav { display: none; }
  .entete-site .dedans { gap: 12px; padding: 0 16px; }
  .pied-site .dedans { grid-template-columns: 1fr 1fr; padding: 40px 16px 32px; }
  .pied-site .dedans > :first-child { grid-column: 1 / -1; }
  .doc { padding: 40px 16px 72px; font-size: 15px; }
}
