/* ============================================================
   LANDING PAGE — Ecosuivi (charte v1.1, maquette « Landing — v2 »)
   Étape 3 du plan d'application de la charte (2026-08-19) :
   colonnes ouvertes à filets, un seul libellé d'action, aucune
   ombre hors aperçu produit, rayon unique var(--rayon).
   ============================================================ */

/* ─── BOUTONS LANDING (charte §6) ─────────────────────────────
   padding 13/26, graisse 500, survol un cran plus sombre,
   anneau de focus 2 px fond + 4 px Mousse, transition 150 ms. */
.btn-primary-large,
.btn-secondary-large,
.btn-outline-large,
.btn-inverse-large {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 26px;
    border-radius: var(--rayon);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background 150ms, color 150ms, border-color 150ms, box-shadow 150ms;
}

.btn-primary-large:focus-visible,
.btn-secondary-large:focus-visible,
.btn-outline-large:focus-visible,
.btn-inverse-large:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px var(--couleur-fond), 0 0 0 4px var(--couleur-primaire);
}

/* Primaire : fond Mousse, texte Craie */
.btn-primary-large {
    background: var(--couleur-primaire);
    border-color: var(--couleur-primaire);
    color: var(--couleur-fond);
}

.btn-primary-large:hover {
    background: var(--couleur-primaire-sombre);
    border-color: var(--couleur-primaire-sombre);
    color: var(--couleur-fond);
}

.btn-primary-large:active {
    background: var(--couleur-primaire-pressee);
    border-color: var(--couleur-primaire-pressee);
}

/* Secondaire : fond Lichen clair, texte Tourbe */
.btn-secondary-large {
    background: var(--couleur-primaire-fond);
    border-color: var(--couleur-primaire-fond);
    color: var(--couleur-texte);
}

.btn-secondary-large:hover {
    background: var(--couleur-primaire-fond-survol);
    border-color: var(--couleur-primaire-fond-survol);
    color: var(--couleur-texte);
}

/* Contour : bordure Filet fort, texte Tourbe */
.btn-outline-large {
    background: transparent;
    border-color: var(--couleur-filet-fort);
    color: var(--couleur-texte);
}

.btn-outline-large:hover {
    border-color: var(--couleur-texte);
    background: var(--couleur-fond-2);
    color: var(--couleur-texte);
}

/* Inversé (sur fond Tourbe) : fond Craie, texte Tourbe, survol Sable */
.btn-inverse-large {
    background: var(--couleur-fond);
    border-color: var(--couleur-fond);
    color: var(--couleur-texte);
}

.btn-inverse-large:hover {
    background: var(--couleur-sable);
    border-color: var(--couleur-sable);
    color: var(--couleur-texte);
}

.btn-inverse-large:focus-visible {
    box-shadow: 0 0 0 2px var(--couleur-texte), 0 0 0 4px var(--couleur-fond);
}

/* ─── HERO ──────────────────────────────────────────────────── */
.hero-section {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 3rem;
    padding: 5rem 2.5rem 4.5rem;
    max-width: 1180px;
    margin: 0 auto;
}

/* Filigrane courbes de niveau : décalé à droite, derrière l'aperçu, jamais derrière du texte */
.hero-filigrane {
    position: absolute;
    right: -120px;
    top: -140px;
    width: 560px;
    height: 560px;
    opacity: 0.22;
    pointer-events: none;
    z-index: 0;
}

.hero-text,
.hero-illustration {
    position: relative;
    z-index: 1;
}

.hero-text {
    flex: 1.2;
}

/* Surligne / étiquette (charte §4) : 11 px capitales, +0,1 em, fond Lichen clair */
.hero-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--couleur-primaire);
    background: var(--couleur-primaire-fond);
    padding: 4px 9px;
    border-radius: var(--rayon);
    margin-bottom: 1.25rem;
}

/* H1 landing (charte §4) : 42 / 1,12, 600, −0,02 em */
.hero-text h1 {
    font-size: 42px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--couleur-texte);
    line-height: 1.12;
    margin-bottom: 1.25rem;
    max-width: 600px;
}

.hero-text .subtitle {
    font-size: 1.0625rem;
    color: var(--couleur-texte-secondaire);
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 560px;
}

.hero-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.small-info {
    font-size: 0.85rem;
    color: var(--couleur-texte-attenue);
    margin-top: 0.5rem;
}

.hero-illustration {
    flex: 1;
    display: flex;
    justify-content: center;
}

/* ─── APERÇU PRODUIT — capture réelle de l'app (étape 5) ─────────
   Seule ombre tolérée de la charte (§5). Le fichier image est produit
   depuis l'écran questionnaire MNEFZH (données d'exemple fictives) :
   img/marque/apercu_app.webp + fallback PNG. */
.apercu-app {
    display: block;
    width: 100%;
    max-width: 460px;
}

.apercu-app img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid var(--couleur-filet);
    border-radius: var(--rayon);
    box-shadow: 0 12px 32px rgba(36, 41, 31, 0.08);
}

/* ─── FONCTIONNALITÉS ────────────────────────────────────────── */
.features-section {
    max-width: 1180px;
    margin: 0 auto;
    padding: 4.5rem 2.5rem;
}

/* H2 section (charte §4) : 30 / 1,15, 600, −0,02 em */
.section-title {
    font-size: 30px;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: var(--couleur-texte);
    text-align: center;
    margin-bottom: 0.6rem;
}

.section-subtitle {
    text-align: center;
    color: var(--couleur-texte-secondaire);
    margin-bottom: 2.75rem;
    font-size: 1rem;
    line-height: 1.55;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

/* Colonnes ouvertes : pas de carte, filet supérieur 1 px */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px 40px;
}

.feature {
    border-top: 1px solid #cfc9b8;
    padding-top: 22px;
}

/* Icône trait 1,8 px grille 24, Mousse (charte §7) */
.feature-icon {
    width: 24px;
    height: 24px;
    color: var(--couleur-primaire);
    margin-bottom: 14px;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* H3 / titre de carte (charte §4) : 17 / 1,4, 600 */
.feature h3 {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--couleur-texte);
    margin-bottom: 0.5rem;
}

.feature p {
    font-size: 0.95rem;
    color: var(--couleur-texte-secondaire);
    line-height: 1.6;
}

/* ─── PARTENAIRES FONDATEURS ─────────────────────────────────── */
.founders-section {
    background: #eef0e3;
    padding: 4.5rem 2.5rem;
}

.founders-inner {
    max-width: 1180px;
    margin: 0 auto;
}

.founders-header {
    text-align: center;
    margin-bottom: 2.75rem;
}

/* Badge fond Mousse, texte Craie, 11 px capitales */
.founders-badge {
    display: inline-block;
    background: var(--couleur-primaire);
    color: var(--couleur-fond);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 9px;
    border-radius: var(--rayon);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.founders-subtitle {
    max-width: 720px;
}

/* Colonnes ouvertes à filet supérieur */
.founders-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px 40px;
    margin-bottom: 2.75rem;
}

.founders-block {
    border-top: 1px solid #c9c3ad;
    padding-top: 22px;
}

.founders-block h3 {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--couleur-texte);
    margin-bottom: 0.85rem;
}

.founders-block ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.founders-block li {
    font-size: 0.95rem;
    color: var(--couleur-texte-secondaire);
    line-height: 1.55;
    padding: 0.4rem 0 0.4rem 1.25rem;
    position: relative;
}

/* Puce « — » Mousse */
.founders-block li::before {
    content: "—";
    color: var(--couleur-primaire);
    position: absolute;
    left: 0;
    top: 0.4rem;
    font-weight: 500;
}

.founders-block strong {
    color: var(--couleur-texte);
    font-weight: 600;
}

.founders-cta {
    text-align: center;
}

.founders-note {
    font-size: 0.88rem;
    color: var(--couleur-texte-attenue);
    margin-top: 1rem;
    line-height: 1.55;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}

.founders-note a {
    color: var(--couleur-primaire);
    font-weight: 500;
    text-decoration: underline;
}

.founders-note a:hover {
    color: var(--couleur-primaire-sombre);
}

/* ─── BANDEAU FINAL (fond Tourbe) ────────────────────────────── */
.cta-section {
    background: var(--couleur-texte);
    color: var(--couleur-texte-sur-sombre);
    text-align: center;
    padding: 4.5rem 2rem;
}

.cta-section h2 {
    font-size: 30px;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 0.75rem;
    color: var(--couleur-fond);
}

.cta-section p {
    font-size: 1rem;
    color: var(--couleur-texte-sur-sombre);
    margin-bottom: 1.5rem;
}

.cta-section .cta-mail {
    font-size: 0.9rem;
    margin-top: 1rem;
    margin-bottom: 0;
}

.cta-section .cta-mail a {
    color: var(--couleur-fond);
    text-decoration: underline;
    font-weight: 500;
}

.cta-section .cta-mail a:hover {
    color: var(--couleur-accent);
}

/* ─── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 860px) {
    .hero-section {
        flex-direction: column;
        align-items: stretch;
        padding: 2.5rem 1.5rem 2.5rem;
        gap: 2rem;
    }

    .hero-filigrane {
        right: -200px;
        top: -260px;
    }

    .hero-text h1 {
        font-size: 32px;
    }

    .hero-text .subtitle {
        font-size: 1rem;
    }

    /* L'aperçu produit passe au-dessus du texte */
    .hero-illustration {
        order: -1;
        width: 100%;
    }

    .apercu-app {
        max-width: 100%;
    }

    .features-section,
    .founders-section,
    .cta-section {
        padding: 3rem 1.25rem;
    }

    .section-title,
    .cta-section h2 {
        font-size: 24px;
    }

    /* Grilles en une colonne */
    .features-grid,
    .founders-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

@media (max-width: 520px) {
    .hero-text h1 {
        font-size: 28px;
    }

    /* Les boutons s'empilent */
    .hero-cta {
        flex-direction: column;
    }

    .hero-cta .btn-primary-large,
    .hero-cta .btn-secondary-large,
    .founders-cta .btn-primary-large,
    .cta-section .btn-inverse-large {
        width: 100%;
    }
}

/* ─── Lien d'inscription discret (Ronan 2026-05-03) ──────────────────────
   Petit trait blanc en bas à gauche de la page d'accueil. Volontairement
   peu visible : programme partenaires fondateurs reste mis en avant via
   le bouton "Postuler", mais qui trouve ce trait peut s'inscrire sans
   passer par le formulaire de contact. */
.signup-discret {
    position: fixed;
    left: 8px;
    bottom: 6px;
    z-index: 5;
    color: #ffffff;
    font-family: monospace;
    font-size: 14px;
    line-height: 1;
    padding: 4px 6px;
    text-decoration: none;
    opacity: 0.35;
    transition: opacity 0.2s ease;
    /* Visible aussi sur fond blanc grâce à un léger contour gris très clair */
    text-shadow: 0 0 1px rgba(0, 0, 0, 0.15);
}
.signup-discret:hover,
.signup-discret:focus {
    opacity: 1;
    color: var(--couleur-primaire);
    text-shadow: none;
}
