/* Accueil (docs/std/37 §2.1 et §2.2) : le produit d'abord. Couleurs en aplat, variables des thèmes. */

/* Sections plus compactes (cible : moins de 8 000 px de hauteur sur téléphone) */
.home-section {
    padding: 48px 20px;
}

.home-section h2,
#screenshots-slider h2 {
    text-align: center;
}

.home-section h2::after,
#screenshots-slider h2::after {
    left: 50%;
    transform: translateX(-50%);
}

.home-narrow {
    max-width: 760px;
}

.home-link-more {
    text-align: center;
    margin-top: 16px;
}

.home-link-more a {
    font-weight: 600;
    color: var(--text-primary);
}

/* 1. Haut de page : texte à gauche, capture du produit à droite */
#hero .home-hero {
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 1200px;
    text-align: left;
}

.home-hero-text {
    flex: 1 1 50%;
    min-width: 0;
}

.home-hero-visual {
    flex: 1 1 50%;
    min-width: 0;
}

.home-hero-visual img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

#hero .home-hero h1 {
    font-size: 2.4em;
    line-height: 1.15;
}

.home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin: 8px 0 4px;
}

.home-hero-actions .hero-cta-btn {
    margin: 0;
    padding: 14px 28px;
    font-size: 1.05em;
}

.home-hero-actions .demo-login-form {
    margin: 0;
}

/* Bouton secondaire : contour, sans fond (docs/std/37 §2.3) */
.cta-secondary {
    display: inline-block;
    padding: 13px 24px;
    background: none;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.85);
    border-radius: 4px;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.cta-secondary:hover,
.cta-secondary:focus-visible {
    background: rgba(255, 255, 255, 0.12);
}

/* 3 bénéfices : liste cochée, sans pavé gris, icône visible aussi sur téléphone */
.home-benefits {
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
}

.home-benefits li {
    margin: 8px 0;
    color: #fff;
    font-size: 1em;
}

.home-benefits i {
    margin-right: 8px;
    color: #a8d5a8;
}

/* 2. Comment ça marche */
.home-steps {
    list-style: none;
    padding: 0;
    margin: 30px auto 0;
    max-width: 1000px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    counter-reset: none;
}

.home-steps li {
    text-align: center;
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-primary);
}

.home-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--text-primary);
    color: var(--bg-primary) !important; /* les surcharges de thème colorent tous les textes des sections */
    font-weight: 700;
    margin-bottom: 10px;
}

.home-steps h3 {
    margin: 6px 0;
    font-size: 1.1em;
    color: var(--text-primary);
}

.home-steps p {
    margin: 0;
    color: var(--text-secondary);
}

/* 5. Anonymat */
.home-privacy-quote {
    font-size: 1.2em;
    text-align: center;
    margin: 20px 0 10px;
}

#privacy .trust-badge h3 {
    font-size: 1.05em;
    margin: 6px 0;
}

/* 6. Preuves : chiffres réels */
.home-figures {
    list-style: none;
    padding: 0;
    margin: 30px auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 40px;
}

.home-figures li {
    text-align: center;
    min-width: 160px;
}

.home-figure-value {
    display: block;
    font-size: 2em;
    font-weight: 800;
    color: var(--text-primary);
}

.home-figure-value small {
    font-size: 0.45em;
    font-weight: 600;
    color: var(--text-secondary);
}

.home-figure-label {
    color: var(--text-secondary);
}

/* 8. Écosystème */
.home-ecosystem {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.home-eco-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 24px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-primary);
}

.home-eco-card > i {
    font-size: 1.8em;
    color: var(--text-secondary);
}

.home-eco-card h3 {
    margin: 0;
    font-size: 1.15em;
    color: var(--text-primary);
}

.home-eco-card p {
    margin: 0;
    color: var(--text-secondary);
}

.home-eco-link {
    font-weight: 600;
    color: var(--text-primary);
}

.home-eco-annonces {
    list-style: none;
    padding: 0;
    margin: 4px 0;
}

.home-eco-annonces li + li {
    margin-top: 6px;
}

.home-eco-annonces a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9em;
}

.home-eco-annonces img,
.home-eco-no-photo {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border-radius: 6px;
    object-fit: cover;
    background: var(--bg-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.home-eco-news a {
    color: var(--text-primary);
    font-weight: 600;
}

/* 9. Mini-FAQ */
.home-faq-item {
    border-bottom: 1px solid var(--border-color);
    padding: 12px 0;
}

.home-faq-item summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--text-primary);
}

.home-faq-item p {
    margin: 8px 0 0;
    color: var(--text-secondary);
}

/* 10. Bouton final */
#final-cta h2 {
    margin-bottom: 0;
}

@media (max-width: 900px) {
    .home-ecosystem {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    #hero .home-hero {
        flex-direction: column;
        gap: 24px;
    }

    #hero .home-hero h1 {
        font-size: 1.7em;
    }

    .home-hero-visual {
        max-width: 420px;
    }

    .home-steps {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .home-steps li {
        display: grid;
        grid-template-columns: 40px 1fr;
        column-gap: 12px;
        text-align: left;
        padding: 14px;
    }

    .home-step-number {
        grid-row: span 2;
        margin: 0;
    }

    .home-section,
    #screenshots-slider {
        padding: 32px 14px;
    }

    .home-section h2,
    #screenshots-slider h2 {
        font-size: 1.5em;
    }

    /* Anonymat : 4 badges en 2 × 2 */
    #privacy .trust-badges {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin-top: 16px;
    }

    #privacy .trust-badge {
        padding: 8px;
    }

    #privacy .trust-badge i {
        font-size: 1.8em;
        margin-bottom: 6px;
    }

    #privacy .trust-badge p {
        font-size: 0.85em;
        margin: 0;
    }

    /* Tarifs : lignes resserrées */
    #pricing .comparison-table {
        margin-top: 16px;
        font-size: 0.85em;
    }

    #pricing .comparison-table th,
    #pricing .comparison-table td {
        padding: 8px 6px;
    }

    #pricing .comparison-table .button1 {
        padding: 10px 12px;
        margin: 0;
    }

    .home-figures {
        gap: 12px 20px;
        margin: 16px auto;
    }

    .home-figures li {
        min-width: 130px;
    }

    .home-figure-value {
        font-size: 1.5em;
    }

    .home-eco-card {
        padding: 16px;
    }
}
