/* Page de présentation Locoon — mêmes couleurs et polices que l'application (assets/styles/app.css). */

@font-face { font-family: 'Fraunces'; font-weight: 600; font-display: swap; src: url('../polices/Fraunces-600.ttf') format('truetype'); }
@font-face { font-family: 'Inter'; font-weight: 400; font-display: swap; src: url('../polices/Inter-400.ttf') format('truetype'); }
@font-face { font-family: 'Inter'; font-weight: 600; font-display: swap; src: url('../polices/Inter-600.ttf') format('truetype'); }

:root {
    --accent: #2D5A5A;
    --accent-fort: #234747;
    --accent-nuit: #17302F;
    --accent-clair: #6FA8A0;
    --accent-doux: #E8F0EE;
    --encre: #1C2321;
    --papier: #FAF9F6;
    --surface: #FFFFFF;
    --ligne: #DDD9D2;
    --discret: #6B6F6D;
    --succes: #3D6B4F;
    --erreur: #A6432E;
    --titres: 'Fraunces', Georgia, serif;
    --texte: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

@media (prefers-color-scheme: dark) {
    :root {
        --accent: #6FA8A0;
        --accent-doux: #1C2E2C;
        --encre: #EDEAE3;
        --papier: #17191A;
        --surface: #1F2221;
        --ligne: #33362F;
        --discret: #9B9E97;
        --succes: #7FB090;
        --erreur: #D97A63;
    }
}

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

body {
    margin: 0;
    background: var(--papier);
    color: var(--encre);
    font: 400 1rem/1.6 var(--texte);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--titres); font-weight: 600; line-height: 1.2; margin: 0 0 0.6rem; }
h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1rem; }
a { color: var(--accent); }

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

.surtitre {
    margin: 0 0 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
}

/* Boutons */
.bouton {
    display: inline-block;
    padding: 0.75rem 1.4rem;
    border-radius: 10px;
    border: 2px solid transparent;
    font: 600 1rem/1.2 var(--texte);
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.bouton-plein { background: var(--accent-clair); color: var(--accent-nuit); }
.bouton-plein:hover { background: #8CC0B8; }
.bouton-contour { border-color: rgba(250, 249, 246, 0.5); color: #FAF9F6; }
.bouton-contour:hover { border-color: #FAF9F6; }
.bouton-clair { padding: 0.5rem 1rem; background: rgba(250, 249, 246, 0.12); color: #FAF9F6; font-size: 0.9rem; }
.bouton-clair:hover { background: rgba(250, 249, 246, 0.22); }
.bouton-large { width: 100%; }
.bouton:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
    outline: 3px solid var(--accent-clair);
    outline-offset: 2px;
}

/* En-tête */
.entete { background: var(--accent-nuit); color: #FAF9F6; }
.entete-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.marque { display: inline-flex; align-items: center; gap: 0.6rem; color: #FAF9F6; text-decoration: none; font: 600 1.5rem/1 var(--titres); }
.marque-accent { color: var(--accent-clair); }

/* Haut de page */
.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, var(--accent-nuit) 0%, var(--accent-fort) 55%, #2D5A5A 100%);
    color: #FAF9F6;
    padding: 4.5rem 0 5rem;
}
.hero-anneaux {
    position: absolute;
    right: -120px;
    top: 50%;
    width: 560px;
    height: 560px;
    transform: translateY(-50%);
    color: var(--accent-clair);
    opacity: 0.35;
    pointer-events: none;
}
.hero-inner { position: relative; max-width: 1080px; }
.hero .surtitre { color: var(--accent-clair); }
.hero h1 { max-width: 14ch; }
.hero h1 em { font-style: italic; color: var(--accent-clair); }
.hero-texte { max-width: 34rem; font-size: 1.15rem; color: rgba(250, 249, 246, 0.85); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.75rem 0 1.25rem; }
.rassurance { display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; margin: 0; padding: 0; list-style: none; font-size: 0.92rem; color: rgba(250, 249, 246, 0.8); }
.rassurance li::before { content: '✓'; margin-right: 0.4rem; color: var(--accent-clair); font-weight: 600; }

/* Sections */
.section { padding: 4.5rem 0; }
.section-teintee { background: var(--accent-doux); }
.section-sombre { background: var(--accent-nuit); color: #FAF9F6; }
.section-sombre .surtitre { color: var(--accent-clair); }
.section-sombre .intro { color: rgba(250, 249, 246, 0.8); }
.section-sombre a { color: var(--accent-clair); }

.etapes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    margin: 2rem 0 0;
    padding: 0;
    list-style: none;
    counter-reset: etape;
}
.etapes li { counter-increment: etape; }
.etapes li::before {
    content: counter(etape);
    display: grid;
    place-items: center;
    width: 2.4rem;
    height: 2.4rem;
    margin-bottom: 0.9rem;
    border-radius: 50%;
    background: var(--accent-doux);
    color: var(--accent);
    font: 600 1.1rem/1 var(--titres);
}
.etapes p, .carte p { color: var(--discret); margin: 0; }

.cartes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; margin-top: 2rem; }
.carte { background: var(--surface); border: 1px solid var(--ligne); border-radius: 14px; padding: 1.4rem; }

.faq { margin-top: 1.5rem; }
.faq details { border-bottom: 1px solid var(--ligne); }
.faq summary { cursor: pointer; padding: 1rem 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq details p { color: var(--discret); }

/* Formulaire */
.formulaire { margin-top: 1.75rem; background: rgba(250, 249, 246, 0.06); border: 1px solid rgba(250, 249, 246, 0.15); border-radius: 16px; padding: 1.5rem; }
.champ { margin-bottom: 1rem; }
.champs-cote { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 1rem; }
.champ label { display: block; margin-bottom: 0.35rem; font-weight: 600; font-size: 0.92rem; }
.champ small { font-weight: 400; color: rgba(250, 249, 246, 0.6); }
input, select, textarea {
    width: 100%;
    padding: 0.7rem 0.8rem;
    border: 1px solid rgba(250, 249, 246, 0.25);
    border-radius: 10px;
    background: rgba(250, 249, 246, 0.95);
    color: #1C2321;
    font: 400 1rem/1.4 var(--texte);
}
textarea { resize: vertical; }
.case { display: flex; gap: 0.6rem; align-items: center; margin: 0.25rem 0 1.25rem; cursor: pointer; }
.case input { width: 1.1rem; height: 1.1rem; accent-color: var(--accent-clair); }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.formulaire-retour { margin: 0.9rem 0 0; font-weight: 600; }
.formulaire-retour:empty { display: none; }
.formulaire-retour.est-ok { color: #8CC0B8; }
.formulaire-retour.est-erreur { color: #F0A592; }
.mention { margin: 0.9rem 0 0; font-size: 0.82rem; color: rgba(250, 249, 246, 0.6); }

/* Pied de page */
.pied { padding: 1.5rem 0; border-top: 1px solid var(--ligne); font-size: 0.88rem; color: var(--discret); }
.pied-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem; }
.pied a { color: var(--discret); }

/* Pages de texte (mentions légales, merci, 404) */
.page-texte { padding-top: 3rem; padding-bottom: 4rem; max-width: 760px; }
.page-texte h2 { font-size: 1.3rem; margin-top: 2rem; }
.a-completer { background: #FFF1B8; color: #1C2321; padding: 0 0.2rem; border-radius: 3px; }

@media (max-width: 640px) {
    .hero { padding: 3rem 0 3.5rem; }
    .hero-anneaux { width: 380px; height: 380px; right: -190px; opacity: 0.25; }
    .section { padding: 3.25rem 0; }
    .hero-actions .bouton { width: 100%; }
}

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

html { scroll-behavior: smooth; }
