:root {
    --ruban-height: 50px;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Décalage global pour navbar fixed */
body {
    padding-top: var(--navbar-height);
    font-family: Arial, sans-serif;
}

/* ===== RUBAN ===== */
.ruban {
    width: 100%;
    height: var(--ruban-height);
    background-color: #006ba1;
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
}

.ruban .title {
    color: white;
    font-size: 1.3rem;
    font-weight: 300;
    margin-left: 20%;
}

/* ===== SECTION SECTEURS ===== */
.sectors-container {
    padding: 1rem 1.5rem 5rem;
    background-color: #DFE6F0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* contenu en haut */
}

/* Intro */
.sectors-intro {

    text-align: center;
    font-size: 1.1rem;
    color: #58585b;
    margin-bottom: 1rem;
}

/* Grille */
.sectors-grid {
    width: 100%;
    max-width: 1200px;

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    grid-auto-rows: 1fr; /* 🔥 clé ici */
    gap: 1rem 2.5rem;
}

/* ===== CARTE SECTEUR ===== */
.sector-card {

    border-radius: 16px;
    padding: 2rem 1.75rem;

    text-decoration: none;
    color: inherit;

    display: flex;
    flex-direction: column;
    align-items: center;      /* centre horizontalement */
    justify-content: center;  /* centre verticalement */
    text-align: center;


}


/* Icône */
.sector-icon {
    width: 72px;
    height: 72px;
    margin-bottom: 1.5rem;

    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

/* Titre */
.sector-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: #266d95;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}
/* IMAGE CIRCULAIRE SECTEUR */
.sector-image {
    width: 84px;
    height: 84px;
    margin-bottom: 1rem;

    border-radius: 16px;
    background-size: cover;
    background-position: center;

    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    border: 3px solid #ffffff;
}
/* Description */
.sector-description {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #58585b;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {

    .ruban .title {
        margin-left: 0;
        text-align: center;
        width: 100%;
    }

    .sectors-container {
        padding: 3rem 1.2rem 4rem;
    }

    .sector-card {
        padding: 2rem 1.5rem;
    }

    .sector-title {
        font-size: 1.05rem;
    }
}