.parfum-table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin-top: 20px !important;
}

.parfum-table th, 
.parfum-table td {
    border: 1px solid #38123c !important;
    padding: 10px !important;
    text-align: center !important;
    color: #38123c !important;
}

.parfum-table th {
    background-color: #38123c !important;
    color: #ffffff !important;
}

.parfum-table tr:nth-child(even) {
    background-color: #f8c8ca !important;
}

.parfum-table tr:nth-child(odd) {
    background-color: #dda4d6 !important;
}

.show-notes {
    background-color: #38123c !important;
    color: #ffffff !important;
    border: none !important;
    padding: 5px 10px !important;
    cursor: pointer !important;
}

.show-notes:hover {
    background-color: #dda4d6 !important;
}

#search-bar {
    width: 100% !important;
    padding: 8px !important;
    margin-bottom: 10px !important;
    border: 1px solid #38123c !important;
}

#filter-type {
    padding: 8px !important;
    margin-left: 10px !important;
    border: 1px solid #38123c !important;
}

#envoyer-selection {
    background-color: #38123c !important;
    color: #ffffff !important;
    padding: 10px 20px !important;
    border: none !important;
    cursor: pointer !important;
    font-weight: bold !important;
}

#envoyer-selection:hover {
    background-color: #dda4d6 !important;
}

/* Responsive pour téléphones */
@media only screen and (max-width: 768px) {
    /* Permettre le défilement horizontal pour la table si nécessaire */
    .parfum-table {
        display: block !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
    }

    /* Réduire la taille des cellules et la police */
    .parfum-table th, 
    .parfum-table td {
        padding: 5px !important;
        font-size: 12px !important;
    }

    /* Adapter la barre de recherche et le select */
    #search-bar, 
    #filter-type {
        width: 100% !important;
        margin: 0 0 10px 0 !important;
    }

    /* Bouton d'envoi sur toute la largeur */
    #envoyer-selection {
        width: 100% !important;
        box-sizing: border-box !important;
    }
}
/* =============================
   RESPONSIVE POUR TÉLÉPHONES (TABLEAU)
   ============================= */
   @media only screen and (max-width: 768px) {
    /* Permettre le défilement horizontal pour la table si nécessaire */
    .parfum-table {
        display: block !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
    }

    /* Réduire la taille des cellules et la police du tableau */
    .parfum-table th, 
    .parfum-table td {
        padding: 5px !important;
        font-size: 12px !important;
    }

    /* Adapter la barre de recherche et le select */
    #search-bar, 
    #filter-type {
        width: 100% !important;
        margin: 0 0 10px 0 !important;
    }

    /* Bouton d'envoi sur toute la largeur */
    #envoyer-selection {
        width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* =============================
   MODALE : OVERLAY SUR TOUT L'ÉCRAN
   ============================= */
   .cf7-modal {
    display: none; /* cachée par défaut */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999; /* assez élevé pour passer au-dessus du tableau */
    background-color: rgba(0, 0, 0, 0.5); /* fond semi-transparent */
}

/* La boîte centrale de la modale */
.cf7-modal-content {
    /* Centrage absolu au milieu de l'écran */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    /* Taille et dimensions */
    width: 50%;
    max-height: 80%;
    overflow-y: auto; /* si le contenu est très long, on scrolle */

    /* Couleurs et forme */
    background: linear-gradient(120deg, #ffffff 30%, #f8c8ca 100%);
    color: #38123c; /* Couleur du texte principale */
    border: 3px solid #38123c;
    border-radius: 15px; /* Bords arrondis plus marqués */
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);

    /* Espacement interne */
    padding: 20px;
}

/* Bouton de fermeture dans le coin (croix) */
.close-modal {
    float: right;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;

    /* Apparence de la croix */
    color: #38123c;
    background-color: #f8c8ca;
    border-radius: 50%;
    border: 2px solid #38123c;

    /* Pour un rendu plus « bouton », ajustez la taille */
    width: 36px;
    height: 36px;
    line-height: 32px;  /* Centrer le texte verticalement */
    text-align: center;
    margin-top: -10px;  /* Ajustez au besoin pour positionner la croix */
    margin-right: -10px; 
}

/* Changement de couleur au survol de la croix */
.close-modal:hover {
    background-color: #dda4d6;
    color: #fff;
}

/* Responsive : sur mobile, la modale prend presque tout l'écran */
@media only screen and (max-width: 768px) {
    .cf7-modal-content {
        width: 90%;
        
        height: 100%;
    }
}
