body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 20px;
    background-image: url('public/img/image_soneb_1.jpeg');
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

/* ajouter un voile noir semi transparent et un floutage au background de la page */
body::before {
    content: "";
    position: fixed;      
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);  
    backdrop-filter: blur(6px);    /* flou léger, augmenter la valeur pour plus d'effet */
    -webkit-backdrop-filter: blur(6px); /* pour afficher le floutage dans Safari */
    pointer-events: none;  /* ne bloque pas les interactions avec les éléments de la page*/
    z-index: 0;
}

* {
    position: relative;
    z-index: 1;   /* garantit que le contenu de la page passe au-dessus du voile */
}

.header {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.logo {
    width: 90px;
    height: 60px;
    object-fit: contain;
}

.icon-btn {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 50%;
    padding: 15px;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.icon-btn:hover {
    background-color: #c9dfff;
    color: white;
    border-color: #c9dfff;
}

.list-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding: 10px;
}

.image-communique {
    max-width: 100%; 
    height: auto; 
    border-radius: 10px;
}

.card {
    background-color: white;
    border-radius: 10px;
    width: 100%;
    max-width: 220px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.6);
    text-align: center;
    padding: 0;
    transition: box-shadow 0.3s ease;
    box-sizing: border-box;
    overflow: hidden;
    border: none;
    transition: transform 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
    content-visibility: auto;
    contain-intrinsic-size: 220px 300px;
}

.card:hover {
    transform: translateY(-5px);
}

.photo {
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: center 27%;
    margin-bottom: 0;
    border: none;
    border-radius: 0;
    display: block;
}

.name {
    font-weight: 600;
    font-size: 18px;
    margin: 10px;
    color: #000000;
}

.description {
    max-width: 1200px; 
    margin: 0 auto 40px auto; 
    text-align: center; 
    background-color: white; 
    padding: 20px; 
    border-radius: 10px; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

h1 {
    font-size: 20px;
    font-weight: 600;
}

p {
    color: #000000;
    font-weight: 600;
}

.description-text {
    margin-top: 35px;
    color: #000000;
}

.cta-phone-contact {
    max-width: 800px; 
    margin: 35px auto 40px auto; 
    text-align: center; 
    background-color: white; 
    padding: 20px; 
    border-radius: 10px; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Overlay pour l'affichage d'un agent scanné via QR code */
.agent-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.agent-overlay-card {
    position: relative;
    background: #ffffff;
    border-radius: 10px;
    padding: 24px 24px 28px 24px;
    max-width: 320px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    text-align: center;
}

.agent-overlay-photo {
    width: 100%;
    max-width: 280px;
    height: auto;
    border-radius: 2px;
    object-fit: cover;
    object-position: center 25%;
    margin-bottom: 16px;
}

.agent-overlay-name {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #000000;
}

.agent-overlay-role {
    font-size: 18px;
    font-weight: 600;
    color: #0052b4;
}

.agent-overlay-close {
    width: 20px;    
    height: 20px;
    position: absolute;
    top: 8px;
    right: 10px;
    border: none;
    background: transparent;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

/* Media Query pour les petits écrans */
@media (max-width: 600px) {
    .header {
        justify-content: center;
    }

    .icon-btn img {
        width: 60px !important;
        height: 45px !important;
    }

    .card {
        width: 90%;
        max-width: 300px;
    }

    body {
        padding: 10px;
    }

    .description {
        padding: 15px !important;
        margin: 0 auto 20px auto !important;
    }

    .agent-overlay {
        margin-bottom: 20px;
    }
}