/* ==========================================================
   Page d'accueil — Observatoire Législatif
   Approche mobile-first : les styles de base ciblent les
   petits écrans, les media queries (min-width) élargissent
   progressivement pour tablette puis desktop.
   ========================================================== */

.nom-site {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--couleur-primaire);
    margin: 0;
}

.lien-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-site {
    height: 36px;
    width: auto;
    display: block;
}

.hero {
    background: linear-gradient(135deg, var(--couleur-primaire) 0%, var(--couleur-primaire-clair) 100%);
    color: #fff;
    padding: 40px 20px;
    border-radius: var(--rayon);
    margin-bottom: 24px;
}

.hero-contenu {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.hero-eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.15);
    padding: 4px 12px;
    border-radius: 999px;
    margin-bottom: 16px;
}

.hero h1 {
    font-size: 1.7rem;
    line-height: 1.25;
    margin: 0 0 14px;
    color: #fff;
}

.hero p.hero-intro {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.92);
    margin: 0;
}

/* --- Section "mission" (pourquoi ce site existe) --- */
.section-mission {
    margin-bottom: 32px;
}

.mission-texte h2 {
    font-size: 1.3rem;
}

.mission-texte p {
    line-height: 1.65;
    color: var(--couleur-texte);
}

/* --- Section "soutenir le projet" --- */
.section-soutien {
    margin-top: 40px;
}

.soutien-cadre {
    margin: 0 auto;
    text-align: center;
    background: var(--couleur-carte);
    border: 1px solid var(--couleur-bordure);
    border-radius: var(--rayon);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 32px 24px;
}

.soutien-cadre h2 {
    margin: 0 0 12px;
    font-size: 1.3rem;
    text-align: center;
}

.soutien-cadre p {
    margin: 0 0 24px;
    line-height: 1.6;
    color: var(--couleur-texte-clair);
    text-align: center;
}

@media (min-width: 900px) {
    .soutien-cadre {
        width: 50%;
        padding: 40px 32px;
    }
    .soutien-cadre p {
        text-align: justify;
        hyphens: auto;
    }
}

button.bouton-don-ha {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 40px;
    font-size: 1.05rem;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #2b3a8f 0%, #4a3fb5 100%);
    border: none;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(43, 58, 143, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
}
button.bouton-don-ha:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(43, 58, 143, 0.45);
    background: linear-gradient(135deg, #323f9c 0%, #5548c4 100%);
}
button.bouton-don-ha:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(43, 58, 143, 0.35);
}
.bouton-don-ha svg {
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .soutien-cadre {
        padding: 28px 20px;
    }
    .bouton-don-ha {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
    }
}

/* --- Grille des modules --- */
.grille-modules {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 32px;
}

.carte-module {
    background: var(--couleur-carte);
    border: 1px solid var(--couleur-bordure);
    border-radius: var(--rayon);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.carte-module:not(.carte-module-desactivee):hover {
    box-shadow: 0 6px 18px rgba(31, 58, 95, 0.14);
    transform: translateY(-3px);
}

/* En-tête colorée de chaque carte : dégradé propre à chaque module,
   avec l'icône SVG en filigrane et le titre en surimpression. */
.carte-module-entete {
    position: relative;
    padding: 22px 20px 18px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 92px;
    color: #fff;
    overflow: hidden;
}

.carte-module-entete h3 {
    position: relative;
    z-index: 1;
    margin: 0;
    font-size: 1.08rem;
    color: #fff;
}

.carte-module-svg {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 84px;
    height: 84px;
    color: rgba(255, 255, 255, 0.28);
}

.carte-module-entete-deputes  { background: linear-gradient(135deg, #1f3a5f, #2d5286); }
.carte-module-entete-dossiers { background: linear-gradient(135deg, #3f5f8a, #4a7cb5); }
.carte-module-entete-stats    { background: linear-gradient(135deg, #4d7a4c, #5b8c5a); }
.carte-module-entete-contact  { background: linear-gradient(135deg, #7a5c8c, #8a5c9e); }
.carte-module-entete-votes    { background: linear-gradient(135deg, #a8781f, #c9a227); }
.carte-module-entete-agenda   { background: linear-gradient(135deg, #4a6e78, #5c7d8a); }

.carte-module-corps {
    padding: 16px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.carte-module-corps p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--couleur-texte-clair);
    line-height: 1.5;
}

.carte-module-lien {
    margin-top: auto;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--couleur-primaire-clair);
}

.carte-module-desactivee {
    opacity: 0.72;
    cursor: default;
}
.carte-module-desactivee .carte-module-entete {
    filter: grayscale(35%);
}
.carte-module-desactivee .carte-module-lien {
    color: var(--couleur-texte-clair);
}

.badge-bientot {
    position: relative;
    z-index: 1;
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
    padding: 3px 9px;
    border-radius: 999px;
    align-self: flex-start;
    margin-bottom: 10px;
}

/* --- Tablette et plus --- */
@media (min-width: 640px) {
    .hero { padding: 56px 32px; }
    .hero h1 { font-size: 2.1rem; }
    .hero p.hero-intro { font-size: 1.05rem; }
    .grille-modules {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- Desktop --- */
@media (min-width: 900px) {
    .hero h1 { font-size: 2.4rem; }

    .grille-modules {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ==========================================================
   Ajustements responsive généraux (mobile-first), applicables
   à l'ensemble du site au-delà de la page d'accueil.
   ========================================================== */
@media (max-width: 639px) {
    .entete {
        flex-direction: column;
        align-items: flex-start;
    }
    .entete nav {
        display: flex;
        flex-wrap: wrap;
        gap: 4px 12px;
    }
    .entete nav a {
        margin-left: 0;
    }
    .grille-filtres {
        grid-template-columns: 1fr;
    }
    .barre-resultats {
        flex-direction: column;
        align-items: flex-start;
    }
    .stats-grille {
        justify-content: center;
    }
}