/* ============================================================
   tokens.css — fondations
   Variables CSS (couleurs, typographie, ombres, rayons),
   reset minimal, comportements globaux (scroll, fonts, layout).
   Source de vérité du design system : voir docs/design-system.md
   ============================================================ */

/* Polices hébergées sur le site, jamais chez Google : sinon chaque visite enverrait l'IP du
   visiteur à un tiers américain (cf. skill compliance-rgpd). Fichiers woff2 réduits au jeu
   « latin » (français compris), licences à côté dans /fonts. */
@font-face {
    font-family: 'Varela Round';
    src: url('/fonts/VarelaRound-latin.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    /* Centrage vertical sur les capitales, même hauteur totale (cf. packages/ui/styles/tokens.css). */
    ascent-override: 95%;
    descent-override: 26%;
    line-gap-override: 0%;
}

/* Andika — la police scolaire des cartes de l'application (licence OFL, cf. /fonts/Andika-OFL.txt).
   Réservée aux maquettes de cartes, pour qu'elles ressemblent aux cartes réellement imprimées. */
@font-face {
    font-family: 'Andika';
    src: url('/fonts/Andika-latin.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Material Symbols Rounded, réduite aux SEULES icônes du site (4 Ko au lieu de 5 Mo).
   Une icône absente s'affiche en toutes lettres : en ajouter une = régénérer le fichier depuis
   https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@24,400,0,0&icon_names=…
   (noms par ordre alphabétique, tous ceux d'aujourd'hui plus le nouveau) puis télécharger le
   woff2 qu'elle désigne, et augmenter le ?v= de l'url ci-dessous (sinon le navigateur garde
   l'ancien fichier en cache). Aujourd'hui : arrow_forward, assignment_turned_in, check_circle, description,
   devices, groups, help, history, home, info, mail, menu, military_tech, print, sell, shield_lock, style,
   touch_app, upload_file (08/11/2026 : help, home, mail, sell pour la page introuvable). Licence Apache 2.0. */
@font-face {
    font-family: 'Material Symbols Rounded';
    src: url('/fonts/MaterialSymbolsRounded-subset.woff2?v=3') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: block;
}

/* === DESIGN TOKENS === */
:root {
    /* Polices */
    --font: 'Varela Round', system-ui, sans-serif;
    /* Police des contenus de cartes (énoncés, réponses) */
    --font-card: 'Andika', 'Varela Round', system-ui, sans-serif;

    /* Couleurs ceintures (Figma) */
    --belt-yellow: #FCC02B;
    --belt-orange: #F4953B;
    --belt-green: #6EAA3D;
    --belt-blue: #629ED6;
    --belt-red: #EC6367;
    --belt-black: #293637;
    --belt-dark-red: #D3464A;
    --belt-light-green: #A8CD8F;
    --belt-light-blue: #BCD8ED;

    /* Échelle teal primaire (Figma) */
    --primary: #486868;
    --primary-dark: #293637;
    --primary-medium: #80AEAE;
    --primary-light: #C7E0E0;

    /* UI vitrine (palette chaleureuse) */
    --bg: #FFFFFF;
    --bg-soft: #F4F2EE;
    --bg-muted: #EFEBE3;
    --border: #E4DFD5;
    --border-soft: #ECE7DE;

    /* Texte */
    --text: #293637;
    --text-muted: #6E7777;
    --text-soft: #98A0A0;

    /* Ombres */
    --shadow-sm: 0 1px 2px rgba(41, 54, 55, 0.06);
    --shadow: 0 4px 14px rgba(41, 54, 55, 0.08);
    --shadow-lg: 0 14px 40px rgba(41, 54, 55, 0.14);

    /* Rayons */
    --radius: 14px;
    --radius-lg: 22px;

    /* Gradient signature ceintures */
    --grad-belts: linear-gradient(120deg, #FCC02B 0%, #F4953B 22%, #EC6367 42%, #6EAA3D 64%, #629ED6 86%, #FCC02B 100%);
}

/* === RESET MINIMAL === */
*, *::before, *::after { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; }

/* Scroll fluide vers les ancres (#produit, #features, #pricing, #faq, #cta).
   scroll-margin-top évite que la section cible passe sous la nav sticky. */
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 90px; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

.material-symbols-rounded {
    font-family: 'Material Symbols Rounded';
    font-weight: 400;
    font-style: normal;
    line-height: 1;
    display: inline-block;
    vertical-align: middle;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
}

/* === LAYOUT — container générique === */
.wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}
@media (max-width: 640px) {
    .wrap { padding: 0 20px; }
}
