/**
 * S-BEE ONE – Logo Grid (Clients / Sponsors)
 * CSS totalement indépendant
 */

/* === RESET === */
.sbee-logo-grid,
.sbee-logo-grid *,
.sbee-logo-grid *::before,
.sbee-logo-grid *::after {
    box-sizing: border-box;
}

/* === WRAPPER === */
.sbee-logo-grid {
    --sbee-lg-bg:           transparent !important;
    --sbee-lg-title-color:  #BB9B34;
    --sbee-lg-sub-color:    #09357C;
    --sbee-lg-card-border:  #d6e4f0;

    width: 100%;
    background-color: var(--sbee-lg-bg);
    padding: 0px 40px;
    text-align: center;
}

/* === TITRE === */
.sbee-logo-grid .sbee-lg-title {
    font-family: 'Raleway', sans-serif !important;
    font-size: 38px !important;
    font-weight: 700 !important;
    color: var(--sbee-lg-title-color) !important;
    text-align: center !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    margin: 0 0 14px 0 !important;
    padding: 0 !important;
    line-height: 1.2 !important;
}

/* === SOUS-TITRE === */
.sbee-logo-grid .sbee-lg-subtitle {
    font-family: 'Raleway', sans-serif !important;
    font-size: 16px !important;
    font-weight: bold !important;
    color: var(--sbee-lg-sub-color) !important;
    text-align: center !important;
    margin: 0 0 48px 0 !important;
    padding: 0 !important;
    line-height: 1.5 !important;
}

/* === CONTENEUR DES LIGNES === */
.sbee-logo-grid .sbee-lg-rows {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* === UNE LIGNE === */
.sbee-logo-grid .sbee-lg-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
}

/* === CARTE LOGO === */
.sbee-logo-grid .sbee-lg-card {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    width: 160px;
    height: 110px;
    flex-shrink: 0;
}

.sbee-logo-grid .sbee-lg-card:hover {
    box-shadow: none;
    transform: none;
}

.sbee-logo-grid .sbee-lg-card img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .sbee-logo-grid {
        padding: 48px 24px;
    }

    .sbee-logo-grid .sbee-lg-title {
        font-size: 30px !important;
    }

    .sbee-logo-grid .sbee-lg-card {
        width: 135px;
        height: 90px;
    }
}

/* === TABLETTE : grille 3 colonnes === */
@media (max-width: 768px) {
    .sbee-logo-grid {
        padding: 40px 20px;
    }

    .sbee-logo-grid .sbee-lg-title {
        font-size: 26px !important;
        text-align: center !important;
    }

    .sbee-logo-grid .sbee-lg-subtitle {
        font-size: 14px !important;
        margin: 0 0 32px 0 !important;
        text-align: center !important;
    }

    /* Écraser la structure en lignes → grille plate 3 colonnes */
    .sbee-logo-grid .sbee-lg-rows {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    /* Rendre les lignes transparentes → leurs enfants tombent dans la grille parente */
    .sbee-logo-grid .sbee-lg-row {
        display: contents;
    }

    .sbee-logo-grid .sbee-lg-card {
        width: 100%;
        height: auto;
        aspect-ratio: 3 / 2;
        padding: 12px;
        background: #fff;
        border-radius: 10px;
    }

    .sbee-logo-grid .sbee-lg-card img {
        max-width: 88%;
        max-height: 88%;
    }
}

/* === MOBILE : grille 3 colonnes compactes === */
@media (max-width: 480px) {
    .sbee-logo-grid {
        padding: 32px 16px;
    }

    .sbee-logo-grid .sbee-lg-title {
        font-size: 20px !important;
        text-align: center !important;
    }

    .sbee-logo-grid .sbee-lg-subtitle {
        font-size: 13px !important;
        text-align: center !important;
        margin: 0 0 20px 0 !important;
    }

    .sbee-logo-grid .sbee-lg-rows {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .sbee-logo-grid .sbee-lg-card {
        padding: 8px;
        border-radius: 8px;
        aspect-ratio: 1.9 / 1;
    }

    .sbee-logo-grid .sbee-lg-card img {
        max-width: 84%;
        max-height: 84%;
    }
}
