/* -----------------------------------------
----                                    ----
----  STYLES COMMUNS                    ----
----                                    ----
--------------------------------------------
*/

.alertSuccess {
    background-color: #d4edda;
    color: #155724;
    padding: 10px;
    border: 1px solid #c3e6cb;
    border-radius: 5px;
    text-align: center;
    margin-bottom: 20px;
}

.alertError {
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px;
    border: 1px solid #f5c6cb;
    border-radius: 5px;
    text-align: center;
    margin-bottom: 20px;
}

/* Zone de message décalée pour ne pas toucher la croix */
#details-message {
    margin-top: 50px;
    margin-bottom: 20px;
}

/* --------------------------------------------
----                                       ----
----  EN MODE DE FONCTIONNEMENT TELEPHONE  ----
----                                       ----
-----------------------------------------------
*/

@media screen and (max-width:767.98px) {
   

    .content{
        margin-top: 30px;
    }

    .details-container {
        width: 90%;
        max-width: 500px;
        margin: 20px auto; /* Remontée de la modale (50px -> 20px) */
        padding: 20px;
        background-color: #0e1c274d;
        border-radius: 10px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
        position: relative;
        text-align: center;
        color: black;
    }

    .close-button {
        position: absolute;
        top: 10px;
        right: 15px;
        font-size: 2.5em;
        font-weight: bold;
        color: black;
        text-decoration: none;
    }

    .site-logo-detail {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 20px;
    }

    .site-logo-image {
        width: 100px;
        height: 100px;
        border-radius: 10px;
    }

    .default-logo {
        width: 100px;
        height: 100px;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 2.5em;
        font-weight: bold;
        color: #0c88b6;
        background-color: white;
        border-radius: 15px;
        margin-bottom: 10px;
    }

    .site-logo-detail h2 {
        font-size: 1.5em;
        margin: 0;
        color: black;
    }

    .detail-row {
        display: flex;
        align-items: center;
        margin: 15px 0;
        gap: 15px;
        text-align: left;
        color: black;
    }

    .detail-row .icon-wrapper {
        width: 40px;
        height: 40px;
        display: flex;
        align-items: end;
    }

    .detail-info {
        flex-grow: 1;
    }

    .detail-label {
        font-size: 0.9em;
        opacity: 0.8;
        display: block;
    }

    .detail-info p {
        margin: 0;
        font-size: 1.1em;
        font-weight: bold;
    }

    .action-buttons-container {
        display: flex;
        justify-content: space-around;
        margin-top: 30px;
    }

    .action-button-wrapper {
        width: 60px;
        height: 60px;
    }

    .action-button {
        display: block;
        width: 100%;
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        border-radius: 20%;
        background-color: #f0f0f0;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    }

    .action-icon {
        width: 30px;
        height: 35px;
    }

    .detail-icon {
        width: 25px;
        height: 25px;
        fill: #ffffff;
    }
}

/* =================================== */
/* STYLES MODALE CONFIRMATION GENERIQUE */
/* =================================== */

#genericConfirmationModal {
    display: none; /* Caché par défaut */
    position: fixed;
    z-index: 2000; /* Au-dessus de tout le reste */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6); /* Fond noir semi-transparent */
    backdrop-filter: blur(3px); /* Effet de flou */
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

#genericConfirmationModal .modal-content {
    background-color: #ffffff; /* Fond blanc pour la lisibilité */
    margin: auto;
    padding: 25px 20px; /* Padding réduit pour mobile */
    border-radius: 12px;
    width: 85%; /* Largeur ajustée pour mobile */
    max-width: 450px; /* Max-width légèrement réduite */
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
    text-align: center;
    position: relative;
    transform: scale(0.95);
    animation: zoomIn 0.3s ease-out forwards;
}

/* Media query pour les écrans plus grands */
@media (min-width: 500px) {
    #genericConfirmationModal .modal-content {
        padding: 30px 40px; /* Padding plus large sur PC */
    }

    #genericConfirmationModal .modal-btn-cancel,
    #genericConfirmationModal #confirmActionButton {
        width: auto; /* Reprend sa taille naturelle sur PC */
        min-width: 150px;
        padding: 12px 25px;
    }
}

@keyframes zoomIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

#genericConfirmationModal #modalConfirmationMessage {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 30px;
    line-height: 1.5;
}

#genericConfirmationModal #modalConfirmationMessage strong {
    color: #dc3545; /* Rouge pour le nom de l'élément */
    font-weight: 700;
}

#genericConfirmationModal .modal-footer {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

#genericConfirmationModal .modal-btn-cancel,
#genericConfirmationModal #confirmActionButton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px; /* Padding légèrement réduit pour mobile */
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
    width: 100%; /* Pleine largeur sur mobile, pour qu'ils s'empilent */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#genericConfirmationModal .modal-btn-cancel:active,
#genericConfirmationModal #confirmActionButton:active {
    transform: translateY(1px);
}

#genericConfirmationModal .modal-btn-cancel {
    background-color: #6c757d;
    color: white;
    order: 1; /* Bouton "Non" à gauche */
}

#genericConfirmationModal .modal-btn-cancel:hover {
    background-color: #5a6268;
}

#genericConfirmationModal #confirmActionButton {
    background-color: #dc3545;
    color: white;
    order: 2; /* Bouton "Oui" à droite */
}

#genericConfirmationModal #confirmActionButton:hover {
    background-color: #c82333;
}

/* -----------------------------------------
----                                    ----
----  EN MODE DE FONCTIONNEMENT PC      ----
----                                    ----
--------------------------------------------
*/

@media screen and (min-width:768px) {


    body {
        
    }

    .details-container {
        width: 150%;
        max-width: 500px;
        margin: 50px auto;
        padding: 20px;
        background-color: #0e1c274d;
        border-radius: 10px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
        position: relative;
        text-align: center;
        color: black;
    }

    .close-button {
        position: absolute;
        top: 10px;
        right: 15px;
        font-size: 2.5em;
        font-weight: bold;
        color: black;
        text-decoration: none;
    }

    .site-logo-detail {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 20px;
    }

    .site-logo-image {
        width: 100px;
        height: 100px;
        border-radius: 10px;
    }

    .default-logo {
        width: 100px;
        height: 100px;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 2.5em;
        font-weight: bold;
        color: #0c88b6;
        background-color: white;
        border-radius: 15px;
        margin-bottom: 10px;
    }

    .site-logo-detail h2 {
        font-size: 1.5em;
        margin: 0;
    }

    .detail-row {
        display: flex;
        align-items: center;
        margin: 15px 0;
        gap: 15px;
        text-align: left;
    }

    .detail-row .icon-wrapper {
        width: 40px;
        height: 40px;
        display: flex;
        align-items: end;
    }

    .detail-info {
        flex-grow: 1;
    }

    .detail-label {
        font-size: 0.9em;
        opacity: 0.8;
        display: block;
    }

    .detail-info p {
        margin: 0;
        font-size: 1.1em;
        font-weight: bold;
    }

    .action-buttons-container {
        display: flex;
        justify-content: space-around;
        margin-top: 30px;
    }

    .action-button-wrapper {
        width: 60px;
        height: 60px;
    }

    .action-button {
        display: block;
        width: 100%;
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        border-radius: 20%;
        background-color: #f0f0f0;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    }

    .action-icon {
        width: 30px;
        height: 35px;
    }

    .detail-icon {
        width: 25px;
        height: 25px;
        fill: #ffffff;
    }
}