* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    width: 100vw;
}


.information {
    background-color: #ef5350;
    padding: 20px 10px;
    text-align: center;
    border-radius: 12px;
    color: white;
    transition: color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}

.information:hover {
    color: black;
    transform: scale(1.05);
}

/* Popup caché */
.popup.hidden {
    display: none;
}

.popup {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    overflow-x: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0,0,0,0.5);
    z-index: 1000;
    animation: fadeIn 0.3s ease forwards;
}

.popup-content {
    max-width: 90vw;
    max-height: 90vh;
    overflow: auto;
    padding: 20px;
    border-radius: 12px;
    background-color: lightgray;
    animation: popupOpen 0.3s ease forwards;
    text-align: left;
}


/* Croix pour fermer */
.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #888;
    transition: transform 0.2s ease, color 0.2s ease;
}

.close:hover {
    transform: scale(1.3);
    color: #c62828;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes popupOpen {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes popupClose {
    from { transform: scale(1); opacity: 1; }
    to { transform: scale(0.8); opacity: 0; }
}

/* TABLE RESPONSIVE */
@media (max-width: 768px) {
    .table-wrapper {
        width: 100%;
        overflow-x: auto;
    }

    table {
        width: 100%;
        border-collapse: collapse;
    }

    td, th {
        word-wrap: break-word;
        word-break: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
    }

    td p {
        white-space: normal;
    }

    table thead,
    table tbody,
    table tr,
    table th,
    table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    table tr {
        margin-bottom: 1rem;
    }

    table td::before {
        content: attr(data-label);
        font-weight: bold;
        display: block;
    }
}

p, td, th {
    overflow-wrap: break-word;
    word-break: break-word;
}


