/*
Theme Name: syvrac
Description: Theme enfant de Divi
Author: Mikaël Le Rest
Author URI:
Template: Divi
Version: 0.1.0
*/

/*****************************************************************************/
/***************************** Section chiffres clés *************************/
/*****************************************************************************/

/* Styles pour la section */
.et-db #page-container #et-boc .et-l .chiffres-cles-section {
    position: relative;
    background-color: #FCC400;
    padding-bottom: 0;
}

.et-db #page-container #et-boc .et-l .chiffres-cles-section .et_pb_row {
    padding-bottom: 0;
}

/* Conteneur des colonnes */
.et-db #page-container #et-boc .et-l .chiffres-cles-section .et_pb_row .et_pb_column {
    display: flex;
    flex-wrap: wrap;
}

/* Styles pour les modules */
.et-db #page-container #et-boc .et-l .chiffres-cles-section .et_pb_row .et_pb_column .et_pb_module {
    position: relative;
    padding: 10px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 25%;
}

/* Ajout de traits verticaux entre les colonnes pour les grands écrans */
@media (min-width: 981px) {
    .et-db #page-container #et-boc .et-l .chiffres-cles-section .et_pb_row .et_pb_column .et_pb_module:not(:last-child) {
        border-right: 2px solid #161616;
        padding-bottom: 50px;
        margin-bottom: 0;
    }
}

/* Styles pour les titres */
.et-db #page-container #et-boc .et-l .chiffres-cles-section .et_pb_row .et_pb_column h4 {
    font-size: 1rem;
    text-align: center;
}

/* Styles pour les textes */
.et-db #page-container #et-boc .et-l .chiffres-cles-section .et_pb_row .et_pb_column p {
    font-size: 1rem;
    text-align: center;
    color: #161616;
    margin: 5px 0 0;
}

/* Style le premier paragraphe */
.et-db #page-container #et-boc .et-l .chiffres-cles-section .et_pb_row .et_pb_column p:nth-of-type(1) {
    font-size: 3.9rem;
    padding-top: 4rem;
    font-weight: 800;
}

/* Style le second paragraphe */
.et-db #page-container #et-boc .et-l .chiffres-cles-section .et_pb_row .et_pb_column p:nth-of-type(2) {
    font-size: 1.5rem;
    font-weight: 600;
}

/*****************************************************************************/
/***************************** Version Responsive ***************************/
/*****************************************************************************/
@media only screen and (max-width: 1750px) {
    .et-db #page-container #et-boc .et-l .chiffres-cles-section .et_pb_row .et_pb_column p:nth-of-type(1) {
        font-size: 3.5rem;
    }
}
@media only screen and (max-width: 1550px) {
    .et-db #page-container #et-boc .et-l .chiffres-cles-section .et_pb_row .et_pb_column p:nth-of-type(1) {
        font-size: 3rem;
    }
}
@media only screen and (max-width: 1366px) {
    .et-db #page-container #et-boc .et-l .chiffres-cles-section .et_pb_row .et_pb_column p:nth-of-type(1) {
        font-size: 2.75rem;
    }
}
@media only screen and (max-width: 1150px) {
    .et-db #page-container #et-boc .et-l .chiffres-cles-section .et_pb_row .et_pb_column p:nth-of-type(1) {
        font-size: 2.6rem;
    }
}

@media only screen and (max-width: 1060px) {
    .et-db #page-container #et-boc .et-l .chiffres-cles-section .et_pb_row .et_pb_column p:nth-of-type(1) {
        font-size: 2.4rem;
    }
}

/* Écrans moyens (max-width: 960px) : 2 colonnes */
@media only screen and (max-width: 980px) {
    .et-db #page-container #et-boc .et-l .chiffres-cles-section .et_pb_row .et_pb_column .et_pb_module {
        width: 50%;
    }

    /* Appliquer un filet uniquement aux colonnes impaires */
    .et-db #page-container #et-boc .et-l .chiffres-cles-section .et_pb_row .et_pb_column .et_pb_module:nth-child(odd) {
        border-right: 2px solid #161616;
        padding-bottom: 50px;
        margin-bottom: 0;
    }

    .et-db #page-container #et-boc .et-l .chiffres-cles-section .et_pb_row .et_pb_column p:nth-of-type(1) {
        padding-top: 2.1rem;
        font-size: 2.9rem;
    }
}

@media only screen and (max-width: 590px) {
    .et-db #page-container #et-boc .et-l .chiffres-cles-section .et_pb_row .et_pb_column p:nth-of-type(1) {
        font-size: 2.4rem;
    }
}
@media only screen and (max-width: 475px) {
    /* Supprimer les traits verticaux pour les petits écrans */
    .et-db #page-container #et-boc .et-l .chiffres-cles-section .et_pb_row .et_pb_column .et_pb_module:not(:last-child) {
        border-right: none;
    }
    .et-db #page-container #et-boc .et-l .chiffres-cles-section .et_pb_row .et_pb_column .et_pb_module {
        width: 100%;
    }
    .et-db #page-container #et-boc .et-l .chiffres-cles-section .et_pb_row .et_pb_column p:nth-of-type(1) {
        font-size: 2.9rem;
    }
}
