/*
 * Chokar — CSS des pages web publiques (landing, vérification d'e-mail, pages légales).
 * Charte : sapin #1F4A37, sapin clair #2F6C51, bec #F5C21B, bec doux #FDF0C4, papier #F6F4EE,
 * encre #161A17, mousse #E6EFE7, brume #8B918A, sang #C4492E.
 * Polices : Bricolage Grotesque (titres), Archivo (texte), JetBrains Mono (chiffres, étiquettes, boutons).
 */

:root {
    --sapin: #1F4A37;
    --sapin-clair: #2F6C51;
    --bec: #F5C21B;
    --bec-doux: #FDF0C4;
    --papier: #F6F4EE;
    --encre: #161A17;
    --mousse: #E6EFE7;
    --brume: #8B918A;
    --sang: #C4492E;
    --blanc: #FFFFFF;

    --police-titre: 'Bricolage Grotesque', 'Archivo', system-ui, sans-serif;
    --police-texte: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --police-mono: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;

    --rayon: 18px;
    --rayon-petit: 12px;
    --ombre: 0 10px 30px rgba(22, 26, 23, 0.08);
}

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

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

body.chokar {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--papier);
    color: var(--encre);
    font-family: var(--police-texte);
    font-size: 17px;
    line-height: 1.6;
}

a {
    color: var(--sapin-clair);
}

img,
svg {
    max-width: 100%;
}

.conteneur {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
}

.conteneur-etroit {
    max-width: 760px;
}

.principal {
    flex: 1;
}

.surtitre {
    margin: 0 0 12px;
    font-family: var(--police-mono);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--sapin-clair);
}

/* ---------- En-tête et pied ---------- */

.entete {
    padding: 22px 0;
}

.logotype {
    font-family: var(--police-titre);
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: var(--sapin);
    text-decoration: none;
}

.logotype span,
.pied-marque span {
    color: var(--bec);
}

.page-accueil .entete {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2;
}

.page-accueil .logotype {
    color: var(--blanc);
}

.pied {
    padding: 32px 0;
    background: var(--encre);
    color: var(--brume);
    font-size: 14px;
}

.pied-contenu {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.pied-marque {
    margin: 0;
    font-family: var(--police-mono);
    font-size: 13px;
    color: var(--mousse);
}

.pied-liens {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
}

.pied-liens a {
    color: var(--mousse);
    text-decoration: none;
}

.pied-liens a:hover,
.pied-liens a:focus-visible {
    color: var(--bec);
}

.pied-liens .pied-admin {
    color: #5C625D;
}

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

.bouton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 26px;
    border: 0;
    border-radius: 999px;
    background: var(--sapin);
    color: var(--blanc);
    font-family: var(--police-mono);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s ease, background-color 0.15s ease;
}

.bouton:hover,
.bouton:focus-visible {
    background: var(--sapin-clair);
    transform: translateY(-1px);
}

/* ---------- Landing : héros ---------- */

.heros {
    position: relative;
    overflow: hidden;
    padding: 140px 0 120px;
    background:
        radial-gradient(circle at 85% 15%, rgba(245, 194, 27, 0.18), transparent 45%),
        linear-gradient(160deg, var(--sapin-clair) 0%, var(--sapin) 55%, #16321F 100%);
    color: var(--blanc);
}

.heros::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 38%;
    background: linear-gradient(180deg, transparent, rgba(22, 26, 23, 0.35));
    clip-path: polygon(0 70%, 18% 35%, 30% 55%, 46% 10%, 60% 45%, 72% 25%, 86% 60%, 100% 30%, 100% 100%, 0 100%);
    pointer-events: none;
}

.heros-contenu {
    position: relative;
    z-index: 1;
}

.heros .surtitre {
    color: var(--bec);
}

.heros-titre {
    margin: 0 0 24px;
    max-width: 14ch;
    font-family: var(--police-titre);
    font-size: clamp(40px, 7vw, 76px);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.02em;
}

.surligne {
    color: var(--bec);
}

.heros-texte {
    max-width: 560px;
    margin: 0 0 36px;
    font-size: 19px;
    color: var(--mousse);
}

.stores {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.bouton-store {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 190px;
    padding: 10px 22px 10px 16px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: var(--rayon-petit);
    background: rgba(22, 26, 23, 0.35);
    color: var(--blanc);
    opacity: 0.75;
    cursor: not-allowed;
}

.bouton-store svg {
    width: 26px;
    height: 26px;
    fill: currentColor;
}

.bouton-store-texte {
    display: flex;
    flex-direction: column;
    font-family: var(--police-titre);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.15;
}

.bouton-store-texte small {
    font-family: var(--police-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--bec);
}

/* Couture jaune diagonale : la signature visuelle Chokar */
.couture {
    position: absolute;
    left: -5%;
    right: -5%;
    bottom: 56px;
    height: 0;
    border-top: 3px dashed var(--bec);
    transform: rotate(-4deg);
    opacity: 0.8;
    z-index: 1;
}

/* ---------- Landing : arguments ---------- */

.arguments {
    padding: 96px 0;
}

.section-titre {
    margin: 0 0 40px;
    font-family: var(--police-titre);
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    line-height: 1.1;
    color: var(--sapin);
}

.grille-arguments {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.argument {
    padding: 30px 28px;
    border-radius: var(--rayon);
    background: var(--blanc);
    box-shadow: var(--ombre);
}

.argument-icone {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 18px;
    border-radius: 16px;
    background: var(--mousse);
}

.argument-icone svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: var(--sapin);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.argument-numero {
    margin: 0 0 6px;
    font-family: var(--police-mono);
    font-size: 13px;
    font-weight: 700;
    color: var(--brume);
}

.argument h3 {
    margin: 0 0 10px;
    font-family: var(--police-titre);
    font-size: 24px;
    font-weight: 800;
    color: var(--encre);
}

.argument p:last-child {
    margin: 0;
    color: #3D433E;
}

/* ---------- Landing : impact ---------- */

.impact {
    padding: 80px 0;
    background: var(--bec-doux);
}

.impact-contenu {
    text-align: center;
}

.impact-chiffre {
    margin: 0 0 12px;
    font-family: var(--police-mono);
    font-size: clamp(38px, 7vw, 68px);
    font-weight: 700;
    color: var(--sapin);
}

.impact-chiffre span {
    color: var(--bec);
    -webkit-text-stroke: 1px var(--sapin);
}

.impact-texte {
    max-width: 620px;
    margin: 0 auto 14px;
    font-size: 19px;
}

.impact-source {
    margin: 0;
    font-family: var(--police-mono);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brume);
}

/* ---------- Page message (vérification d'e-mail) ---------- */

.message {
    display: flex;
    justify-content: center;
    padding-top: 48px;
    padding-bottom: 96px;
}

.carte-message {
    width: 100%;
    max-width: 520px;
    padding: 44px 36px;
    border-radius: var(--rayon);
    background: var(--blanc);
    box-shadow: var(--ombre);
    text-align: center;
}

.carte-message h1 {
    margin: 0 0 10px;
    font-family: var(--police-titre);
    font-size: 28px;
    font-weight: 800;
    line-height: 1.15;
    color: var(--sapin);
}

.carte-message p {
    margin: 0 0 26px;
    color: #3D433E;
}

.message-icone {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin: 0 auto 22px;
    border-radius: 50%;
}

.message-icone svg {
    width: 36px;
    height: 36px;
    fill: none;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.is-succes .message-icone {
    background: var(--mousse);
}

.is-succes .message-icone svg {
    stroke: var(--sapin);
}

.is-erreur .message-icone {
    background: #F7E3DE;
}

.is-erreur .message-icone svg {
    stroke: var(--sang);
}

.carte-message.is-erreur h1 {
    color: var(--encre);
}

/* ---------- Pages de texte (légal, suppression de compte) ---------- */

.document {
    padding-top: 32px;
    padding-bottom: 96px;
}

.document h1 {
    margin: 0 0 28px;
    font-family: var(--police-titre);
    font-size: clamp(32px, 5vw, 46px);
    font-weight: 800;
    line-height: 1.08;
    color: var(--sapin);
}

.document h2,
.texte-riche h2 {
    margin: 36px 0 12px;
    font-family: var(--police-titre);
    font-size: 24px;
    font-weight: 800;
    color: var(--encre);
}

.texte-riche h3 {
    margin: 28px 0 10px;
    font-family: var(--police-titre);
    font-size: 20px;
    font-weight: 600;
}

.texte-riche ul,
.texte-riche ol,
.etapes {
    padding-left: 22px;
}

.texte-riche li,
.etapes li {
    margin-bottom: 8px;
}

.document-maj {
    margin-top: 40px;
    font-family: var(--police-mono);
    font-size: 13px;
    color: var(--brume);
}

.alerte {
    margin: 18px 0;
    padding: 16px 20px;
    border-radius: var(--rayon-petit);
    font-weight: 500;
}

.alerte.is-succes {
    background: var(--mousse);
    color: var(--sapin);
}

.alerte.is-erreur {
    background: #F7E3DE;
    color: var(--sang);
}

/* ---------- Formulaires ---------- */

.formulaire {
    margin-top: 20px;
    padding: 28px;
    border-radius: var(--rayon);
    background: var(--blanc);
    box-shadow: var(--ombre);
}

.champ {
    margin-bottom: 20px;
}

.champ label {
    display: block;
    margin-bottom: 8px;
    font-family: var(--police-mono);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--sapin);
}

.champ input,
.champ textarea {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid #D8DCD6;
    border-radius: var(--rayon-petit);
    background: var(--papier);
    color: var(--encre);
    font-family: var(--police-texte);
    font-size: 16px;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.champ input:focus,
.champ textarea:focus {
    outline: none;
    border-color: var(--sapin-clair);
    background: var(--blanc);
}

.champ.is-erreur input,
.champ.is-erreur textarea {
    border-color: var(--sang);
}

.champ-erreur {
    margin: 6px 0 0;
    font-size: 14px;
    color: var(--sang);
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
    .grille-arguments {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    body.chokar {
        font-size: 16px;
    }

    .conteneur {
        padding: 0 18px;
    }

    .heros {
        padding: 112px 0 104px;
    }

    .heros-texte {
        font-size: 17px;
    }

    .bouton-store {
        flex: 1 1 100%;
    }

    .arguments,
    .impact {
        padding: 64px 0;
    }

    .carte-message,
    .formulaire {
        padding: 28px 22px;
    }

    .pied-contenu {
        flex-direction: column;
        align-items: flex-start;
    }
}
