/* Pages publiques de Chatroc : liste d'attente et mentions légales, en français et en anglais.
   Seul fichier CSS servi sans identifiant sur le serveur de développement (voir chatroc-acces.conf). */

/* Polices hébergées sur ce serveur (fonts/chatroc/), sans aucun appel à Google : Raleway et
   Roboto Slab, sous licence SIL Open Font License. Polices variables, un fichier couvre toutes
   les graisses ; jeux latin et latin étendu seulement. */
@font-face {
    font-family: 'Raleway';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url(../fonts/chatroc/raleway-latin-ext.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Raleway';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url(../fonts/chatroc/raleway-latin.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Roboto Slab';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url(../fonts/chatroc/roboto-slab-latin-ext.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Roboto Slab';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url(../fonts/chatroc/roboto-slab-latin.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --vert: #a0ce4e;
    --vert-fonce: #6f9a24;
    --nuit: #3f3d59;
    --texte: #2e2c40;
    --doux: #6b6980;
    --fond: #faf8f4;
    --carte: #ffffff;
    --bord: #e6e2d9;
    --erreur: #b3261e;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    background: var(--fond);
    color: var(--texte);
    font: 400 17px/1.6 Raleway, system-ui, sans-serif;
}
a { color: var(--vert-fonce); }
.conteneur { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

header.tete { background: var(--nuit); color: #fff; padding: 22px 0 64px; }
.barre { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.logo { font: 800 20px/1 Raleway, sans-serif; letter-spacing: .08em; color: #fff; text-decoration: none; }
.logo span { color: var(--vert); }
.langues { display: flex; gap: 2px; border: 1px solid rgba(255,255,255,.3); border-radius: 6px; padding: 2px; }
.langues a { color: #dddbe8; font-size: 14px; font-weight: 600; text-decoration: none; letter-spacing: .04em; padding: 4px 9px; border-radius: 4px; }
.langues a:hover { color: #fff; background: rgba(255,255,255,.1); }
.langues a[aria-current] { background: var(--vert); color: var(--nuit); }
.accroche { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; margin-top: 48px; }
h1 { font: 700 clamp(30px, 4.4vw, 46px)/1.15 'Roboto Slab', Georgia, serif; margin: 0 0 18px; }
h1 em { font-style: normal; color: var(--vert); }
.chapo { font-size: 19px; color: #dddbe8; margin: 0 0 26px; }
.etapes { list-style: none; margin: 0; padding: 0; counter-reset: rang; }
.etapes li { position: relative; padding: 0 0 14px 44px; color: #e9e8f0; }
.etapes li::before {
    counter-increment: rang; content: counter(rang);
    position: absolute; left: 0; top: 1px; width: 28px; height: 28px; border-radius: 50%;
    background: var(--vert); color: var(--nuit); font-weight: 800; font-size: 14px;
    display: flex; align-items: center; justify-content: center;
}
.chat-svg { width: 100%; max-width: 380px; justify-self: center; }

main { margin-top: -36px; padding-bottom: 64px; }
.grille { display: grid; grid-template-columns: 1fr 1.25fr; gap: 32px; align-items: start; }
.carte { background: var(--carte); border: 1px solid var(--bord); border-radius: 14px; padding: 28px; }
.carte h2 { font: 700 21px/1.3 'Roboto Slab', Georgia, serif; margin: 0 0 12px; color: var(--nuit); }
.carte p { margin: 0 0 14px; color: var(--doux); }
.carte p:last-child { margin-bottom: 0; }
.carte p.gratuit { margin: -4px 0 18px; font-size: 15px; }
.encadre { border-left: 4px solid var(--vert); }

form .champ { margin-bottom: 18px; }
label, .legende { display: block; font-weight: 600; margin-bottom: 6px; color: var(--texte); }
.facultatif { font-weight: 400; color: var(--doux); font-size: 14px; }
input[type=text], input[type=email], select {
    width: 100%; padding: 11px 13px; font: inherit; font-size: 16px; color: var(--texte);
    border: 1px solid #cfcabe; border-radius: 8px; background: #fff;
}
input:focus, select:focus { outline: 3px solid rgba(160, 206, 78, .45); border-color: var(--vert-fonce); }
fieldset { border: 0; margin: 0 0 18px; padding: 0; }
.choix { display: grid; gap: 10px; }
.choix-2 { grid-template-columns: 1fr 1fr; }
.option {
    display: flex; gap: 10px; align-items: flex-start; font-weight: 500; margin: 0;
    border: 1px solid var(--bord); border-radius: 8px; padding: 11px 13px; cursor: pointer;
}
.option:has(input:checked) { border-color: var(--vert-fonce); background: #f4f9ea; }
.option input { margin-top: 5px; accent-color: var(--vert-fonce); }
.duo { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; }
.consentement { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 14px; color: var(--doux); }
.consentement input { margin-top: 4px; accent-color: var(--vert-fonce); }
.piege { position: absolute; left: -9999px; }
button {
    width: 100%; padding: 14px; font: 700 17px Raleway, sans-serif; color: var(--nuit);
    background: var(--vert); border: 0; border-radius: 8px; cursor: pointer;
}
button:hover { background: #8fbf3d; }
.erreurs { background: #fdecea; color: var(--erreur); border-radius: 8px; padding: 12px 16px; margin-bottom: 18px; }
.erreurs ul { margin: 0; padding-left: 18px; }
.merci { text-align: center; padding: 40px 28px; }
.merci h2 { font-size: 26px; }

footer { text-align: center; color: var(--doux); font-size: 14px; padding: 0 20px 40px; }

@media (max-width: 820px) {
    .accroche, .grille { grid-template-columns: 1fr; }
    .chat-svg { max-width: 220px; order: -1; }
    .accroche { gap: 24px; margin-top: 28px; }
    .grille > .carte { order: -1; }
}
@media (max-width: 480px) {
    .choix-2, .duo { grid-template-columns: 1fr; }
    .carte { padding: 22px 18px; }
}

/* Mentions légales et confidentialité */
header.tete--court { padding-bottom: 60px; }
header.tete--court h1 { margin: 40px 0 0; font-size: clamp(28px, 4vw, 40px); }
.legal { max-width: 780px; }
.legal .carte + .carte { margin-top: 20px; }
.legal .carte p, .legal li, .legal dd { color: var(--texte); }
.legal ul { margin: 0 0 14px; padding-left: 20px; }
.legal li { margin-bottom: 6px; }
.legal address { font-style: normal; margin: 0 0 14px; }
.legal dl { display: grid; grid-template-columns: 12em 1fr; gap: 8px 18px; margin: 0 0 14px; }
.legal dt { font-weight: 600; }
.legal dd { margin: 0; }
.legal .maj { color: var(--doux); font-size: 14px; margin-top: 20px; }
footer a { color: var(--doux); }
@media (max-width: 600px) {
    .legal dl { grid-template-columns: 1fr; gap: 2px; }
    .legal dd { margin-bottom: 10px; }
}
