/* ===================================================================
   Vocabulario — site public (landing, pages légales, pages de compte)
   Direction artistique : CDC §2 « sticker pop éditorial ».
   Aucun style n'est écrit dans les vues : tout vit ici.

   Sommaire
     1. Tokens
     2. Base
     3. En-tête
     4. Héros (landing)
     5. Boutons stores
     6. Piliers
     7. Aperçu de fiche
     8. Mention IA
     9. Pages légales
    10. Pages carte (compte, réinitialisation — API-L1)
    11. Formulaires (API-L1)
    12. Pied de page
    13. Responsive
   =================================================================== */

/* -------------------------------------------------------------------
   1. Tokens (CDC §2.1 mode Jour, §2.2 mode Nuit)
   ------------------------------------------------------------------- */

:root {
    --bg: #EDE7FF;
    --paper: #FFFFFF;
    --ink: #1E0B3A;
    --line: #1E0B3A;
    --muted: #6D5E8E;
    --soft: #DCD2FF;
    --cobalt: #3A2BFF;
    --pink: #FF6FB5;
    --butter: #FFD43B;
    --mint: #3FE0A8;
    --red: #FF4D5E;
    --on-accent: #1E0B3A;
    --serif: "Fraunces", Georgia, "Times New Roman", serif;
    --sans: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #150A2C;
        --paper: #241344;
        --ink: #F3EDFF;
        --line: #9C8CFF;
        --muted: #B3A5D8;
        --soft: #35225C;
        --cobalt: #5A4BFF;
        color-scheme: dark;
    }
}

/* -------------------------------------------------------------------
   2. Base
   ------------------------------------------------------------------- */

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

html,
body {
    margin: 0;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
    background: radial-gradient(var(--soft) 1.6px, transparent 1.7px) 0 0 / 22px 22px, var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
}

a {
    color: var(--cobalt);
}

:focus-visible {
    outline: 3px solid var(--pink);
    outline-offset: 2px;
}

.enveloppe {
    width: 100%;
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 20px;
}

.lien-evitement {
    position: absolute;
    left: -9999px;
    top: 0;
    padding: 10px 16px;
    background: var(--paper);
    border: 2.5px solid var(--line);
    border-radius: 14px;
    font-weight: 700;
    z-index: 10;
}

.lien-evitement:focus {
    left: 12px;
    top: 12px;
}

/* -------------------------------------------------------------------
   3. En-tête
   ------------------------------------------------------------------- */

.bandeau {
    padding: 18px 0 8px;
}

.bandeau-interieur {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.logo {
    margin: 0;
    color: var(--ink);
    font-family: var(--serif);
    font-weight: 900;
    font-size: 29px;
    line-height: 1.1;
    letter-spacing: -.03em;
    font-variation-settings: "SOFT" 100, "WONK" 1;
    text-decoration: none;
}

.logo::after {
    content: "";
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-left: 2px;
    border-radius: 50%;
    background: var(--pink);
    border: 2px solid var(--line);
}

.bandeau-liens {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
    font-weight: 700;
}

.bandeau-liens a {
    color: var(--muted);
    text-decoration: none;
    border-radius: 8px;
}

.bandeau-liens a:hover {
    color: var(--ink);
    text-decoration: underline;
}

/* -------------------------------------------------------------------
   4. Héros (landing)
   ------------------------------------------------------------------- */

.contenu-landing {
    flex: 1;
    padding-bottom: 40px;
}

.hero {
    position: relative;
    overflow: hidden;
    margin-top: 18px;
    padding: 34px 26px 30px;
    background: var(--cobalt);
    color: #FFFFFF;
    border: 2.5px solid var(--line);
    border-radius: 32px;
    box-shadow: 5px 5px 0 var(--line);
}

.hero-deco {
    position: absolute;
    right: -14px;
    top: -46px;
    color: #FFFFFF;
    opacity: .13;
    font-family: var(--serif);
    font-weight: 900;
    font-size: 190px;
    line-height: 1;
    font-variation-settings: "SOFT" 100, "WONK" 1;
    transform: rotate(8deg);
    pointer-events: none;
    user-select: none;
}

.hero-titre {
    position: relative;
    max-width: 16em;
    margin: 0 0 12px;
    font-family: var(--serif);
    font-weight: 800;
    font-size: 44px;
    line-height: 1.02;
    letter-spacing: -.03em;
    font-variation-settings: "SOFT" 100;
}

.hero-texte {
    position: relative;
    max-width: 44em;
    margin: 0 0 22px;
    font-size: 16px;
    opacity: .92;
}

/* -------------------------------------------------------------------
   5. Boutons stores
   ------------------------------------------------------------------- */

.stores {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.bouton-store {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 20px;
    background: var(--butter);
    color: var(--on-accent);
    border: 2.5px solid var(--line);
    border-radius: 18px;
    box-shadow: 4px 4px 0 var(--line);
    font-family: var(--sans);
    font-weight: 800;
    font-size: 17px;
    text-decoration: none;
    transition: transform .08s, box-shadow .08s;
}

.bouton-store.rose {
    background: var(--pink);
}

.bouton-store:active {
    transform: translate(3px, 3px);
    box-shadow: 1px 1px 0 var(--line);
}

.pastille {
    display: inline-block;
    margin: 0;
    padding: 8px 16px;
    background: var(--butter);
    color: var(--on-accent);
    border: 2px solid var(--line);
    border-radius: 999px;
    box-shadow: 2px 2px 0 var(--line);
    font-weight: 700;
    font-size: 14px;
}

/* -------------------------------------------------------------------
   6. Piliers
   ------------------------------------------------------------------- */

.titre-section {
    margin: 40px 0 14px;
    font-family: var(--serif);
    font-weight: 800;
    font-size: 21px;
    letter-spacing: -.02em;
    font-variation-settings: "SOFT" 100, "WONK" 1;
}

.piliers {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pilier {
    padding: 20px;
    border: 2.5px solid var(--line);
    border-radius: 26px;
    box-shadow: 4px 4px 0 var(--line);
}

.pilier-cobalt {
    background: var(--cobalt);
    color: #FFFFFF;
}

.pilier-pink {
    background: var(--pink);
    color: var(--on-accent);
}

.pilier-mint {
    background: var(--mint);
    color: var(--on-accent);
}

.pilier-butter {
    background: var(--butter);
    color: var(--on-accent);
}

.pilier-glyphe {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
    background: var(--paper);
    color: var(--ink);
    border: 2.5px solid var(--line);
    border-radius: 16px;
    box-shadow: 3px 3px 0 var(--line);
    font-family: var(--serif);
    font-weight: 900;
    font-size: 24px;
    font-variation-settings: "SOFT" 100, "WONK" 1;
}

.pilier-titre {
    margin: 0 0 6px;
    font-family: var(--serif);
    font-weight: 800;
    font-size: 24px;
    line-height: 1.05;
    letter-spacing: -.02em;
    font-variation-settings: "SOFT" 100, "WONK" 1;
}

.pilier-texte {
    margin: 0;
    font-size: 15px;
}

/* -------------------------------------------------------------------
   7. Aperçu de fiche (contenu éditorial fixe de la vitrine)
   ------------------------------------------------------------------- */

.apercu {
    padding: 24px 22px;
    background: var(--paper);
    border: 2.5px solid var(--line);
    border-radius: 26px;
    box-shadow: 4px 4px 0 var(--line);
}

.apercu-mot {
    margin: 0;
    font-family: var(--serif);
    font-weight: 900;
    font-size: 50px;
    line-height: 1;
    letter-spacing: -.035em;
    font-variation-settings: "SOFT" 100, "WONK" 1;
    overflow-wrap: anywhere;
}

.apercu-nature {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.apercu-court {
    display: inline-block;
    margin: 12px 0 4px;
    padding: 6px 11px;
    background: var(--butter);
    color: var(--on-accent);
    border: 2px solid var(--line);
    border-radius: 12px;
    font-weight: 700;
    transform: rotate(-1.5deg);
}

.apercu-definition {
    margin: 14px 0 0;
    font-family: var(--serif);
    font-weight: 400;
    font-size: 17px;
    line-height: 1.5;
}

.apercu-bloc {
    margin-top: 14px;
    padding: 14px 16px;
    background: var(--bg);
    border: 2px solid var(--line);
    border-radius: 20px;
}

.apercu-bloc h3 {
    margin: 0 0 8px;
    color: var(--muted);
    font-family: var(--sans);
    font-weight: 700;
    font-size: 14px;
}

.synonymes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.synonyme {
    padding: 5px 12px;
    background: var(--soft);
    border: 2px solid var(--line);
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
}

.apercu-exemple {
    margin: 0;
    padding-left: 11px;
    border-left: 4px solid var(--pink);
    font-family: var(--serif);
    font-style: italic;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
}

.apercu-exemple mark {
    background: none;
    color: inherit;
    font-weight: 700;
    font-style: normal;
    box-shadow: inset 0 -.42em 0 rgba(255, 212, 59, .7);
}

/* -------------------------------------------------------------------
   8. Mention IA
   ------------------------------------------------------------------- */

.mention-ia {
    margin: 24px 0 0;
    padding: 16px 18px;
    background: var(--soft);
    color: var(--ink);
    border: 2px solid var(--line);
    border-radius: 20px;
    font-size: 15px;
}

/* -------------------------------------------------------------------
   9. Pages légales
   ------------------------------------------------------------------- */

.legal {
    flex: 1;
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 20px 20px 48px;
}

.legal-titre {
    margin: 12px 0 6px;
    font-family: var(--serif);
    font-weight: 900;
    font-size: 40px;
    line-height: 1.05;
    letter-spacing: -.03em;
    font-variation-settings: "SOFT" 100, "WONK" 1;
}

.legal-date {
    margin: 0 0 20px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.legal-sommaire {
    margin: 0 0 28px;
    padding: 18px 20px;
    background: var(--paper);
    border: 2px solid var(--line);
    border-radius: 20px;
}

.legal-sommaire h2 {
    margin: 0 0 10px;
    font-family: var(--sans);
    font-weight: 700;
    font-size: 14px;
    color: var(--muted);
}

.legal-sommaire ol {
    margin: 0;
    padding-left: 20px;
}

.legal-sommaire li {
    margin-bottom: 4px;
    font-weight: 600;
}

.legal-section {
    margin-bottom: 28px;
    scroll-margin-top: 16px;
}

.legal-section h2 {
    margin: 0 0 10px;
    font-family: var(--serif);
    font-weight: 800;
    font-size: 25px;
    line-height: 1.1;
    letter-spacing: -.02em;
    font-variation-settings: "SOFT" 100, "WONK" 1;
}

.legal-section h3 {
    margin: 18px 0 6px;
    font-family: var(--serif);
    font-weight: 700;
    font-size: 19px;
    font-variation-settings: "SOFT" 100, "WONK" 1;
}

.legal-section p,
.legal-section li {
    margin: 0 0 10px;
    font-size: 16px;
}

.legal-section ul,
.legal-section ol {
    margin: 0 0 12px;
    padding-left: 22px;
}

.legal-section table {
    width: 100%;
    margin-bottom: 12px;
    border-collapse: collapse;
    font-size: 15px;
}

.legal-tableau {
    overflow-x: auto;
}

.legal-section th,
.legal-section td {
    padding: 8px 10px;
    border: 2px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.legal-section th {
    background: var(--soft);
    font-weight: 700;
}

.legal-encadre {
    padding: 16px 18px;
    background: var(--paper);
    border: 2px solid var(--line);
    border-radius: 20px;
}

.a-completer {
    padding: 1px 6px;
    background: var(--butter);
    color: var(--on-accent);
    border: 2px solid var(--line);
    border-radius: 8px;
    font-family: var(--sans);
    font-weight: 700;
    font-size: 14px;
    font-style: normal;
}

.legal-retour {
    margin: 32px 0 0;
    font-weight: 700;
}

/* -------------------------------------------------------------------
   10. Pages carte (compte, réinitialisation du mot de passe — API-L1)
   ------------------------------------------------------------------- */

.site {
    flex: 1;
    display: grid;
    place-items: center;
    padding: 24px;
}

.site-carte {
    width: 100%;
    max-width: 520px;
    padding: 40px 32px;
    background: var(--paper);
    border: 2.5px solid var(--line);
    border-radius: 32px;
    box-shadow: 5px 5px 0 var(--line);
    text-align: center;
}

.site-carte .logo {
    display: block;
    margin-bottom: 28px;
}

.site-accroche {
    margin: 0 0 16px;
    font-family: var(--serif);
    font-weight: 800;
    font-size: 36px;
    line-height: 1.05;
    font-variation-settings: "SOFT" 100, "WONK" 1;
}

.site-texte {
    margin: 0 0 28px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.5;
}

.page-carte {
    max-width: 440px;
    padding: 32px 24px;
    border-radius: 26px;
    box-shadow: 4px 4px 0 var(--line);
    text-align: left;
}

.page-carte .logo {
    margin-bottom: 24px;
    text-align: center;
}

.page-titre {
    margin: 0 0 12px;
    font-family: var(--serif);
    font-weight: 800;
    font-size: 28px;
    line-height: 1.1;
    font-variation-settings: "SOFT" 100, "WONK" 1;
}

.page-texte {
    margin: 0 0 16px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.5;
}

.page-lien {
    margin: 24px 0 0;
    font-weight: 700;
}

.page-lien a {
    color: var(--cobalt);
}

/* -------------------------------------------------------------------
   11. Formulaires (API-L1)
   ------------------------------------------------------------------- */

.formulaire {
    margin-top: 20px;
}

.formulaire-groupe {
    margin-bottom: 18px;
}

.formulaire-libelle {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    font-size: 15px;
}

.champ-mot-de-passe {
    position: relative;
}

.champ {
    width: 100%;
    padding: 14px 92px 14px 16px;
    background: var(--paper);
    color: var(--ink);
    border: 2.5px solid var(--line);
    border-radius: 18px;
    font-family: var(--sans);
    font-weight: 600;
    font-size: 17px;
    outline: none;
}

.champ:focus-visible,
.champ:focus {
    outline: 3px solid var(--pink);
    outline-offset: 2px;
}

.champ-bascule {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    padding: 6px 10px;
    background: transparent;
    color: var(--muted);
    border: 0;
    border-radius: 12px;
    font-family: var(--sans);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
}

.champ-bascule:focus-visible {
    outline: 3px solid var(--pink);
    outline-offset: 2px;
}

.formulaire-aide {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.formulaire-erreur {
    margin: 6px 0 0;
    color: var(--red);
    font-size: 14px;
    font-weight: 700;
}

.formulaire-erreur-globale {
    margin: 0 0 12px;
}

.bouton {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 8px;
    padding: 15px;
    background: var(--cobalt);
    color: #FFFFFF;
    border: 2.5px solid var(--line);
    border-radius: 18px;
    box-shadow: 4px 4px 0 var(--line);
    font-family: var(--sans);
    font-weight: 800;
    font-size: 17px;
    cursor: pointer;
    transition: transform .08s, box-shadow .08s;
}

.bouton:active {
    transform: translate(3px, 3px);
    box-shadow: 1px 1px 0 var(--line);
}

.bouton:focus-visible {
    outline: 3px solid var(--pink);
    outline-offset: 2px;
}

/* -------------------------------------------------------------------
   12. Pied de page
   ------------------------------------------------------------------- */

.pied {
    margin-top: auto;
    padding: 24px 0 32px;
    border-top: 2.5px solid var(--line);
}

.pied-interieur {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px 20px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 14px;
}

.pied-liens {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-weight: 700;
}

.pied-liens li::after {
    content: " ·";
    color: var(--muted);
}

.pied-liens li:last-child::after {
    content: "";
}

.pied-liens a {
    color: var(--muted);
    text-decoration: none;
    border-radius: 8px;
}

.pied-liens a:hover {
    color: var(--ink);
    text-decoration: underline;
}

/* -------------------------------------------------------------------
   13. Responsive
   ------------------------------------------------------------------- */

@media (max-width: 760px) {
    .piliers {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero {
        padding: 26px 20px 24px;
    }

    .hero-titre {
        font-size: 34px;
    }

    .hero-deco {
        font-size: 130px;
        top: -30px;
    }

    .legal-titre {
        font-size: 32px;
    }

    .bouton-store {
        width: 100%;
    }
}

/* Tableau des finalités : empilé en blocs sur mobile (le libellé de colonne vient de `data-libelle`) */
@media (max-width: 560px) {
    .legal-section thead {
        position: absolute;
        left: -9999px;
    }

    .legal-section tr {
        display: block;
        margin-bottom: 12px;
        border: 2px solid var(--line);
        border-radius: 16px;
        overflow: hidden;
    }

    .legal-section td {
        display: block;
        border: 0;
        border-bottom: 2px solid var(--line);
    }

    .legal-section tr td:last-child {
        border-bottom: 0;
    }

    .legal-section td::before {
        content: attr(data-libelle);
        display: block;
        margin-bottom: 2px;
        color: var(--muted);
        font-size: 13px;
        font-weight: 700;
    }
}

@media (max-width: 400px) {
    .enveloppe,
    .legal {
        padding-left: 16px;
        padding-right: 16px;
    }

    .site {
        padding: 16px;
    }

    .site-carte {
        padding: 32px 20px;
    }

    .page-carte {
        padding: 28px 18px;
    }

    .site-accroche {
        font-size: 30px;
    }

    .page-titre {
        font-size: 24px;
    }

    .hero-titre {
        font-size: 30px;
    }

    .apercu-mot {
        font-size: 40px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
    }
}
