/* ============================================================
   HainautStat - Profil Socio-Économique et Sanitaire v1.1
   Styles reproduisant la mise en page WordPress/Elementor
   ============================================================ */

.hsp-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 20px 30px 40px;
    font-family: inherit;
    line-height: 1.6;
    color: #333;
}

/* --- Titre général de page --- */
.hsp-page-title {
    font-size: 1.6em;
    color: #2d5a7c;
    margin: 0 0 25px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #2d5a7c;
}

/* --- En-tête commune --- */
.hsp-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
}

.hsp-commune-title {
    color: #d27b91;
    font-size: 2em;
    margin: 0;
    flex: 1;
}

.hsp-logo {
    margin: 0;
    max-width: 250px;
}

.hsp-logo img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

/* --- Intro --- */
.hsp-intro p {
    margin-bottom: 1em;
}

.hsp-intro ul {
    padding-left: 20px;
    margin-bottom: 1em;
}

.hsp-intro ul li {
    margin-bottom: 0.5em;
}

/* --- Titres de section --- */
.hsp-section-title {
    font-size: 1.4em;
    margin: 0 0 20px 0;
    text-align: left;
}

/* --- Colonnes jauge + texte --- */
.hsp-section-columns {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin-bottom: 25px;
}

.hsp-col-jauge {
    flex: 0 0 33.33%;
    max-width: 33.33%;
}

.hsp-col-jauge img {
    width: 100%;
    height: auto;
}

.hsp-col-text {
    flex: 0 0 66.66%;
    max-width: 66.66%;
}

.hsp-col-text p {
    margin-bottom: 0.8em;
}

.hsp-col-text ul {
    padding-left: 20px;
    margin: 0.5em 0;
}

.hsp-col-text ul li {
    margin-bottom: 0.4em;
}

/* --- Boutons --- */
.hsp-buttons-center {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 15px 0;
}

.hsp-btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.95em;
    text-align: center;
    transition: opacity 0.2s ease, transform 0.1s ease;
    cursor: pointer;
    line-height: 1.4;
}

.hsp-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.hsp-btn-primary {
    background-color: #2d5a7c;
    color: #fff;
    min-width: 50%;
}

.hsp-btn-primary:hover,
.hsp-btn-primary:visited {
    color: #fff;
}

.hsp-btn-secondary {
    background-color: #cb5673;
    color: #fff;
}

.hsp-btn-secondary:hover,
.hsp-btn-secondary:visited {
    color: #fff;
}

.hsp-btn-sante {
    background-color: #c0392b;
    color: #fff;
}

.hsp-btn-sante:hover,
.hsp-btn-sante:visited {
    color: #fff;
}

.hsp-btn-outline {
    background-color: #fff;
    color: #333;
    border: 2px solid #333;
    width: 100%;
    font-size: 0.9em;
    padding: 8px 20px;
}

.hsp-btn-outline:hover {
    background-color: #f5f5f5;
    color: #333;
}

/* --- Spacers --- */
.hsp-spacer-28 { height: 28px; }
.hsp-spacer-30 { height: 30px; }
.hsp-spacer-40 { height: 40px; }
.hsp-spacer-50 { height: 50px; }

/* --- Section Santé (blocs multiples) --- */
.hsp-sante-block {
    margin-bottom: 1.2em;
    padding-bottom: 1em;
    border-bottom: 1px solid #eee;
}

.hsp-sante-block:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .hsp-container {
        padding: 15px 20px;
    }

    .hsp-header {
        flex-direction: column;
    }

    .hsp-logo {
        max-width: 180px;
    }

    .hsp-section-columns {
        flex-direction: column;
    }

    .hsp-col-jauge,
    .hsp-col-text {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .hsp-col-jauge {
        max-width: 400px;
    }

    .hsp-btn-primary {
        min-width: 100%;
    }

    .hsp-buttons-center {
        flex-direction: column;
        align-items: center;
    }
}
