/*
Theme Name: Divi Enfant
Description: Theme enfant de Divi. Vous pouvez maintenant effectuer vos modifications en toute sécurité.
Author: Divilogy
Author URI: https://divilogy.fr
Template: Divi
Version: 1.0
*/


/***** DIVERS *****/

/*** COLORS ***/
.color_yellow {
    color: #ECBB60;
}

/*** ALIGNEMENT ***/
/* Aligne les éléments d'une ligne de manière verticale */
.row_items_center_vertically {
    align-items: center;
}

/* Cache la seconde colonne d'une ligne pour les cibles */
@media only screen and (max-device-width : 480px) {
    .hide_second_column_on_mobile .column_to_hide {
        display: none;
    }
}

.change_order_column_on_mobile {
    display: flex;
    flex-wrap: wrap;
}

/* Change l'ordre des colonnes sur mobiles */
@media only screen and (max-width : 767px) {
    .change_order_column_on_mobile .et_pb_column:nth-child(1) {
        order: 2;
    }

    .change_order_column_on_mobile .et_pb_column:nth-child(2) {
        margin-bottom: 24px !important;
    }
}

/* Gestion des hauteurs des elements pour alignement sur la home section : 2 piliers */
/* laptop (13") */
@media (min-width: 1024px) {
    #row_accueil_2_piliers .et_pb_column .et_pb_module:nth-child(2) {
        min-height: 64px;
    }

    #row_accueil_2_piliers .et_pb_column .et_pb_module:nth-child(3) {
        min-height: 200px;
    }
}

/* Gestion des largeurs de colonnes pour les lignes des services "Pour qui" */
@media (min-width: 1024px) {
    .row_pour_qui_2_columns .et_pb_column:nth-child(1) {
        width: 55%;
    }

    .row_pour_qui_2_columns .et_pb_column:nth-child(2) {
        width: 45%;
    }
}

/* Gestion de la couleur des icones sur les timelines verticales */
.timeline_methode .dipi_timeline_item .ribbon-icon.ribbon-icon-circle.active {
    background-color: #ECBB60 !important;
}

/* Gestion des tooltips sur la meme ligne sur la page "a propos" */
.ic-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    margin-top: 24px;
}

/* Mobile / tablette */
@media (max-width: 980px) {
    .ic-badges {
        justify-content: center;
        /* centre horizontal */
        text-align: center;
    }
}

.ic-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    background: #F5F5F5;
    border: 1px solid #EBEBEB;
    border-radius: 999px;
    font-size: 15px;
    line-height: 1;
    font-weight: 600;
    color: #333333;
    white-space: nowrap;
}

.ic-badge::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ECBB60;
    flex: 0 0 8px;
}

/* Gestion du bloc texte sour l'image de A propos */
/* =========================
   PORTRAIT CARD — DIVI
========================= */

.ic-portrait-card {
    position: relative;
}

.ic-portrait-card .ic-portrait-image {
    margin-bottom: 0 !important;
    line-height: 0;
}

.ic-portrait-card .ic-portrait-image .et_pb_image_wrap {
    display: block;
    width: 100%;
}

.ic-portrait-card .ic-portrait-image img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
}

/* Cartouche superposé */
.ic-portrait-card .ic-portrait-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 2;
}

.ic-portrait-card .ic-portrait-caption .et_pb_text_inner {
    padding: 18px 20px 20px;
    text-align: center;
    background: linear-gradient(180deg,
            rgba(240, 235, 228, 0.9) 0%,
            rgba(247, 244, 239, 0.9) 100%);
    border-left: 1px solid #EBEBEB;
    border-right: 1px solid #EBEBEB;
    border-bottom: 1px solid #EBEBEB;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-sizing: border-box;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;

}

.ic-portrait-card .ic-portrait-caption strong {
    display: block;
    margin: 0 0 6px;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 700;
    color: #333333;
}

.ic-portrait-card .ic-portrait-caption span {
    display: block;
    margin: 0;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 500;
    color: #333333;
}

/* Facultatif : si tu veux que l'image coupe proprement avec le cartouche */
.ic-portrait-card .ic-portrait-image img {
    border-radius: 0;
}

/* =========================================
   DIVI — séparateur vertical entre 2 colonnes
   Classe à mettre sur la colonne de gauche :
   ic-divider-anchor
========================================= */

/* La colonne gauche devient l’ancre */
.et_pb_column.ic-divider-anchor {
    position: relative !important;
}

/* Séparateur placé à la jonction des colonnes */
.et_pb_column.ic-divider-anchor::after {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    bottom: 0 !important;

    /* 100% = bord droit de la colonne gauche
     + moitié de l’espace inter-colonnes */
    right: -7.75% !important;

    width: 2px !important;
    background: #ECBB60 !important;

    transform: translateX(50%) !important;
    z-index: 5 !important;
    pointer-events: none !important;
}

/* Mobile / tablette : masqué */
@media (max-width: 980px) {
    .et_pb_column.ic-divider-anchor::after {
        display: none !important;
    }
}