/* 
===========================
    Bloc Carte Personne
===========================
*/

.wp-block-healththeme-personne {
    margin: 24px 0;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.carte-personne-container {
    display: flex;
    align-items: stretch;
    padding: 20px 24px;
    gap: 40px;
    max-width: 500px;
    min-width: 400px;
    transition: all 0.3s ease;
    position: relative;

    p,
    h3 {
        text-align: left !important;
    }
}

/* Container de la photo */
.carte-personne-photo {
    position: relative;
    width: 120px;
    height: 120px;
    min-width: 120px;
    /* Assure une largeur minimale */
    /* overflow: hidden; */
    transition: all 0.3s ease;
    z-index: 2;
    flex-shrink: 0;
    /* Empêche la réduction de la photo */
}

/* effet de décalage rond */
.carte-personne-photo:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--systemoun-strong-color, #19744C);
    border-radius: 50%;
    z-index: -1;
    transform: translate(10px, 6px);
}

.carte-personne-photo .photo-profil {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 200px;
}


.carte-personne-photo .photo-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 200px;
    background: linear-gradient(135deg, #e8e8e8, #d0d0d0);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.carte-personne-info {
    flex: 1;
    color: white;
    background: var(--systemoun-strong-color, #19744C);

    padding: 8px 16px;
    border-radius: 16px;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    /* min-width: 180px; */
    overflow: visible;
    /* Assure que le texte n'est pas coupé */



    p,
    h3 {
        word-wrap: break-word;
        /* Casse les mots longs si nécessaire mais préserve les mots courts */
        overflow-wrap: break-word;
        width: 100%;
        box-sizing: border-box;
    }
}

.carte-personne-nom {
    font-family: var(--wp--preset--font-family--lexend, Lexend);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 4px 0;
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.carte-personne-role {
    font-family: var(--wp--preset--font-family--primary, Manrope);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.3;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}



/* Responsive Design */
@media (max-width: 768px) {
    .carte-personne-container {
        gap: 30px;
        padding: 18px 22px;
    }

    .carte-personne-photo {
        width: 110px;
        height: 110px;
        min-width: 110px;
    }

    .carte-personne-photo:before {
        transform: translate(9px, 5px);
    }

    .carte-personne-info {
        /* min-width: 160px; */
    }


}

@media (max-width: 600px) {
    .carte-personne-container {
        flex-direction: column;
        max-width: 300px;
        margin: 0 auto;
        padding: 16px 20px;
        gap: 20px;

        p,
        h3 {
            text-align: center !important;
        }
    }

    .carte-personne-photo {
        width: 100px;
        height: 100px;
        min-width: 100px;
        margin: 0 auto;
    }

    .carte-personne-photo:before {
        transform: translate(8px, 5px);
    }
}

@media (max-width: 400px) {
    .carte-personne-container {
        padding: 16px;
        border-radius: 16px;
        gap: 16px;
        min-width: unset;


    }

    .carte-personne-photo {
        width: 80px;
        height: 80px;
        min-width: 80px;
        margin: 0 auto;
    }

    .carte-personne-photo:before {
        transform: translate(6px, 4px);
    }

    .carte-personne-info {
        min-width: 150px;
        padding: 6px 12px;
    }

    .carte-personne-nom {
        font-size: 16px;
    }

    .carte-personne-role {
        font-size: 12px;
    }


}