/*
 * Lumis — socle visuel des pages statiques (légales, dépôt, page vidéo, partenaires, 404, merci).
 * Philosophie « Base » (système de design d'Uber) : monochrome strict (noir, blanc, gris), texte grand et lisible
 * (« Go big »), peu de choix (« Less is more »), noms par rôle, grille de 4 px, boutons pleins noirs, champs remplis.
 * Une seule police (Inter, auto-hébergée sous /fonts), aucune couleur d'accent : l'image et la vidéo apportent la couleur.
 * Le site vitrine React (web/site) reprend exactement les mêmes valeurs dans son thème Tailwind.
 */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/inter-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/inter-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/inter-latin-700-normal.woff2') format('woff2'); }

:root {
  /* Couleurs primitives */
  --black: #000000;
  --white: #FFFFFF;
  --gray-50: #F6F6F6;
  --gray-100: #EEEEEE;
  --gray-200: #E2E2E2;
  --gray-300: #CBCBCB;
  --gray-500: #757575;
  --gray-600: #545454;
  --gray-700: #333333;
  /* Rôles */
  --text: var(--black);
  --text-muted: var(--gray-600);
  --surface: var(--gray-50);
  --field: var(--gray-100);
  --line: var(--gray-200);
  --danger: #E11900;
  --success: #048848;
  /* Échelle typographique (14 px × 1,125 par palier, arrondie) */
  --fs-14: 0.875rem;
  --fs-16: 1rem;
  --fs-18: 1.125rem;
  --fs-20: 1.25rem;
  --fs-24: 1.5rem;
  --fs-32: 2rem;
  --fs-40: 2.5rem;
  --fs-56: 3.5rem;
  /* Forme */
  --radius-field: 8px;
  --radius-card: 16px;
  --radius-pill: 999px;
  --container: 1136px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; } }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--white);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-16);
  line-height: 1.5;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(var(--fs-32), 6vw, var(--fs-56)); line-height: 1.08; letter-spacing: -0.03em; }
h2 { font-size: clamp(var(--fs-24), 4vw, var(--fs-40)); line-height: 1.15; }
h3 { font-size: var(--fs-20); line-height: 1.25; }
p, li, dd { text-wrap: pretty; }
p { margin: 0 0 16px; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
img, svg, video { max-width: 100%; }
strong { font-weight: 600; }
.muted { color: var(--text-muted); }
.small { font-size: var(--fs-14); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

:focus-visible { outline: 2px solid var(--black); outline-offset: 2px; border-radius: 4px; }
h1[tabindex="-1"]:focus, h1[tabindex="-1"]:focus-visible { outline: none; }
.on-dark :focus-visible, .footer :focus-visible { outline-color: var(--white); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }

/* En-tête */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { display: block; height: 24px; width: auto; }
.nav { display: flex; align-items: center; gap: 24px; }
.nav a:not(.btn) { text-decoration: none; font-size: var(--fs-14); font-weight: 500; display: inline-flex; align-items: center; min-height: 44px; }
.nav a:not(.btn):hover { text-decoration: underline; }
@media (max-width: 767px) { .nav a:not(.btn) { display: none; } }

/* Boutons : pleins, noirs, en pilule (primaire) ; gris rempli (secondaire) ; texte souligné (discret) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px; border: 0; border-radius: var(--radius-pill);
  background: var(--black); color: var(--white);
  font: inherit; font-size: var(--fs-16); font-weight: 600; line-height: 1.25; text-align: center; text-decoration: none; cursor: pointer;
  transition: background-color 0.15s ease, opacity 0.15s ease;
}
.btn:hover { background: var(--gray-700); text-decoration: none; }
.btn:active { background: var(--gray-600); }
.btn[disabled], .btn[aria-disabled='true'] { background: var(--gray-100); color: var(--gray-600); cursor: not-allowed; }
.btn.secondary { background: var(--gray-100); color: var(--black); }
.btn.secondary:hover { background: var(--gray-200); }
.btn.compact { min-height: 44px; padding: 8px 16px; font-size: var(--fs-14); }
.btn.large { min-height: 56px; padding: 16px 32px; font-size: var(--fs-18); }
.btn.block { width: 100%; }
.on-dark .btn, .footer .btn { background: var(--white); color: var(--black); }
.on-dark .btn:hover { background: var(--gray-200); }
.link-btn { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; color: inherit; }

/* Champs : remplis en gris, coins de 8 px, contour noir au focus */
.field { display: block; margin: 0 0 16px; }
.field > span, .field > .label { display: block; margin-bottom: 8px; font-size: var(--fs-14); font-weight: 600; }
.field .hint { font-weight: 400; color: var(--text-muted); }
input[type='text'], input[type='email'], input[type='tel'], input[type='number'], input:not([type]), select, textarea {
  width: 100%; min-height: 48px; padding: 12px 16px; border: 2px solid transparent; border-radius: var(--radius-field);
  background: var(--field); color: var(--black); font: inherit; font-size: var(--fs-16);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
textarea { min-height: 96px; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--gray-500); }
input:hover, select:hover, textarea:hover { background: var(--gray-200); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--black); background: var(--white); }
input[aria-invalid='true'], select[aria-invalid='true'] { border-color: var(--danger); }
.error { color: var(--danger); font-size: var(--fs-14); font-weight: 500; }
input[type='checkbox'] { width: 24px; height: 24px; accent-color: var(--black); flex: none; }

/* Cartes : fond gris très clair, sans contour ni ombre */
.card { background: var(--surface); border-radius: var(--radius-card); padding: 24px; }
.card.line { background: var(--white); border: 1px solid var(--line); }
.tag { display: inline-block; padding: 4px 12px; border-radius: var(--radius-pill); background: var(--gray-100); font-size: var(--fs-14); font-weight: 600; }

/* Pied de page */
.footer { background: var(--black); color: var(--white); margin-top: 96px; padding: 48px 0; }
.footer .container { display: flex; flex-direction: column; gap: 24px; }
.footer img { height: 24px; width: auto; display: block; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: var(--fs-14); }
.footer a { text-decoration: none; color: var(--white); }
.footer nav a { display: inline-flex; align-items: center; min-height: 44px; } /* cible tactile : un doigt ne doit pas toucher deux liens (audit du 2026-10-04) */
.footer nav { gap: 0 24px; }
.footer a:hover { text-decoration: underline; }
.footer .legal-line { font-size: 13px; color: var(--gray-300); }

/* Pages de texte (CGV, confidentialité, mentions légales) */
.page { padding: 48px 0 0; }
.legal { max-width: 720px; margin: 0 auto; padding: 48px 16px 0; }
@media (min-width: 768px) { .legal { padding: 64px 32px 0; } }
.legal h1 { margin-bottom: 16px; }
.legal h2 { font-size: var(--fs-24); margin: 48px 0 12px; scroll-margin-top: 88px; }
.legal h3 { margin: 24px 0 8px; font-size: var(--fs-18); }
.legal ul, .legal ol { padding-left: 24px; margin: 0 0 16px; }
.legal li { margin-bottom: 8px; }
.legal .lead { font-size: var(--fs-20); color: var(--text-muted); line-height: 1.45; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 8px; }
.toc a { padding: 6px 14px; border-radius: var(--radius-pill); background: var(--gray-100); font-size: var(--fs-14); font-weight: 500; text-decoration: none; }
.toc a:hover { background: var(--gray-200); }
.legal table, .table-wrap table { width: 100%; border-collapse: collapse; font-size: var(--fs-14); }
.legal th, .legal td, .table-wrap th, .table-wrap td { text-align: left; vertical-align: top; padding: 12px 12px 12px 0; border-top: 1px solid var(--line); }
.legal th, .table-wrap th { font-weight: 600; border-top: 0; border-bottom: 2px solid var(--black); }
.table-wrap table { min-width: 560px; } /* le tableau défile dans son cadre (téléphone) au lieu d'être écrasé */
.table-wrap { overflow-x: auto; }
.legal-footer, .version { color: var(--text-muted); font-size: var(--fs-14); }
.thanks { text-align: left; }

@media print {
  .site-header, .footer, .no-print, .toc { display: none !important; }
  body { font-size: 11pt; }
  a { text-decoration: none; }
}
