/* ============================================================
   Encart Dynamique — WPBakery Module  v1.0.0
   ============================================================ */

/* ── Wrapper global ─────────────────────────────────────────── */
.encart-dynamique-wrapper {
    display: flex;
    align-items: stretch;       /* orange et gris ont la même hauteur  */
    position: relative;
    margin-bottom: 24px;
    /*
     * overflow: visible (valeur par défaut) : indispensable
     * pour que le box-shadow de l'encart orange ne soit pas coupé.
     * Ne pas appliquer overflow:hidden sur la colonne WPBakery parente.
     */
}


/* ── Encart orange (gauche) ─────────────────────────────────── */
.encart-orange {
    background-color: #f39200;

    /*
     * Tous les angles arrondis à 10 px, sauf le coin haut-gauche.
     * Ordre CSS : top-left | top-right | bottom-right | bottom-left
     */
    border-radius: 0 10px 10px 10px;

    /* Largeur fixe suffisante pour l'icône 70 px + marges internes */
    width: 110px;
    min-width: 110px;
    flex-shrink: 0;

    display: flex;
    flex-direction: column;
    align-items: center;        /* centrage horizontal de l'icône  */
    justify-content: flex-start; /* icône calée en haut             */

    padding-top: 14px;           /* 5 px du bord supérieur          */
    padding-bottom: 14px;

    position: relative;
    z-index: 2;                 /* devant l'encart gris            */

    /*
     * Contour blanc de 3 px extérieur à l'encart orange.
     * box-shadow respecte le border-radius et s'affiche PAR-DESSUS
     * l'encart gris (z-index 2 > 1), créant l'effet "gris en arrière-plan
     * du contour blanc".
     */
    box-shadow: 0 0 0 3px #ffffff;
}

/* Conteneur de l'image 70 × 70 px */
.encart-orange__img-wrap {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.encart-orange__img-wrap img {
    display: block;
    width: 70px;
    height: 70px;
    object-fit: contain;        /* conserve les proportions du visuel */
}


/* ── Encart gris (droite) ───────────────────────────────────── */
.encart-gris {
    background-color: #e5ecf2;

    /*
     * Seul l'angle bas-droite est arrondi à 10 px.
     * Ordre CSS : top-left | top-right | bottom-right | bottom-left
     */
    border-radius: 0 0 10px 0;

    flex: 1;
    min-width: 0;               /* évite le dépassement en flex      */

    display: flex;
    align-items: center;        /* texte centré verticalement        */

    padding: 16px 24px;

    position: relative;
    z-index: 1;                 /* derrière l'encart orange          */
}

/* Conteneur interne du texte */
.encart-gris__content {
    width: 100%;
}

/* ── Typographie du texte (hérite du thème par défaut) ───────── */
.encart-gris__content p {
    margin: 0;
    padding: 0;
    text-align: left;
    line-height: 1.55;
}

.encart-gris__content p + p {
    margin-top: 8px;
}

/* Nettoyage des marges générées par WPBakery / wpautop */
.encart-gris__content > *:first-child {
    margin-top: 0;
}
.encart-gris__content > *:last-child {
    margin-bottom: 0;
}


/* ============================================================
   Responsive
   ============================================================ */

/* ── Tablette (768 px – 1024 px) : marges latérales 20 px ──── */
@media (min-width: 768px) and (max-width: 1024px) {
    .encart-dynamique-wrapper {
        margin-left: 20px;
        margin-right: 20px;
    }
}

/* ── Smartphone (≤ 767 px) : marges latérales 10 px ─────────── */
@media (max-width: 767px) {
    .encart-dynamique-wrapper {
        margin-left: 10px;
        margin-right: 10px;
    }

    /* Légère réduction de la largeur de l'encart orange sur mobile */
    .encart-orange {
        width: 90px;
        min-width: 90px;
    }
}
