/* ========================================
   PROTECTION HAMBURGER MENU
======================================== */
* {
    -webkit-tap-highlight-color: transparent;
}

/* ========================================
   CONTENEUR PRINCIPAL
======================================== */
.container {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: auto;
}

/* ========================================
   EN-TÊTE ET DESCRIPTION DE LA PAGE
======================================== */
.table-info-head {
    margin: 20px 120px 0 120px;
    padding: 10px;
    font-size: 24px;
    text-align: left;
    font-weight: bold;
    font-family: "Arial", sans-serif;
}

.table-info-body {
    margin: 0 120px;
    padding: 8px;
    font-size: 15px;
    text-align: justify;
    color: gray;
    line-height: 1.5;
    font-family: "Arial", sans-serif;
}

.table-link {
    font-weight: bold;
    text-decoration: none;
    color: #007C70;
}

.table-link:hover {
    text-decoration: underline;
}

/* ========================================
   DATE DE MISE À JOUR
======================================== */
.last-update-date {
    margin: 2px 120px 7px 120px;
    padding: 8px;
    font-size: 11px;
    font-style: italic;
    color: #b8b8b8;
    text-align: left;
    font-family: "Arial", sans-serif;
    font-weight: normal;
}

/* ========================================
   MESSAGE AUCUNE DONNÉE
======================================== */
.no-data-message {
    color: black;
    font-weight: bold;
    font-family: "Arial", sans-serif;
    font-size: 22px;
    text-align: center;
    margin: 30px 0;
}

/* ========================================
   CONTENEUR ET STYLES DU TABLEAU
======================================== */
.table-scroll-container {
    width: 85%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    position: relative;
    align-items: center;
    z-index: 1;
}

.table-blur-wrapper {
    position: relative;
    width: 85%;
    margin: auto;
    z-index: 1;
}

table {
    border-collapse: collapse;
    width: 82%;
    font-size: 15px;
    margin: 20px;
    font-family: "Arial", sans-serif;
}

table th, table td {
    padding: 12px;
    text-align: center;
    border-top: 1px solid #E8E8E8;
    border-bottom: 1px solid #E8E8E8;
}

table th {
    background-color: #007C70;
    color: white;
    font-weight: bold;
    padding: 10px;
}

table tr:hover {
    background-color: #f5f5f5;
}

.table-legend {
    font-size: 9px;
    font-family: "Arial", sans-serif;
    color: #cccccc;
    font-style: italic;
    text-align: left;
    margin: 0 25px 20px 25px;
}

/* ========================================
   EFFET DE FLOU ET BOUTON DÉCOUVERTE
======================================== */
.table-blur {
    filter: blur(5px);
    transition: filter 0.3s ease;
}

.discover-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 40px;
    padding: 0px 24px;
    font-family: "Arial", sans-serif;
    font-size: 14px;
    font-weight: 800;
    background-color: #007C70;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 24px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    text-shadow: 0 1px 1px rgba(0,0,0,0.2);
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    isolation: isolate;
}

.discover-button:hover {
    background-color: #005f55;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

/* ========================================
   CLASSES UTILITAIRES POUR LE TABLEAU
======================================== */
.gray-text { color: #757171; }
.bold-text { font-weight: bold; }
.green-text { color: green; }
.red-text { color: red; }
.align-left { text-align: left; }
.align-right { text-align: right; }

/* ========================================
   POPUP
======================================== */
.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    z-index: 1000;
    font-size: 15px;
    font-weight: bold;
    color: #0C1421;
    font-family: "Arial", sans-serif;
}

.popup button {
    background-color: #007C70;
    color: #fff;
    padding: 10px;
    font-size: 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.blur {
    filter: blur(5px);
}

/* ========================================
   RESPONSIVE DESIGN - MOBILE
======================================== */
@media (max-width: 800px) {
    .table-info-head {
        margin: 20px 10px 0 10px;
        padding: 5px;
        font-size: 18px;
    }

    .table-info-body {
        margin: 0 10px;
        padding: 5px;
        font-size: 15px;
        word-wrap: break-word;
    }

    /* DATE DE MISE À JOUR MOBILE */
    .last-update-date {
        margin: 2px 10px 7px 10px;
        padding: 5px;
        font-size: 10px;
        text-align: left;
    }

    .table-scroll-container,
    .table-blur-wrapper {
        width: 100%;
        padding: 0 10px;
        box-sizing: border-box;
    }

    table {
        width: 100%;
        margin: 10px 0;
    }

    table thead {
        display: none;
    }

    table tbody tr {
        display: block;
        background-color: #f8f9fa;
        border: 1px solid #e9ecef;
        border-radius: 8px;
        margin: 10px 15px;
        padding: 15px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        width: calc(100% - 30px);
        box-sizing: border-box;
        max-width: 350px;
        margin-left: auto;
        margin-right: auto;
    }

    table tbody td {
        display: flex;
        align-items: flex-start;
        text-align: left !important;
        border: none;
        border-bottom: 1px solid #ddd;
        width: 100%;
        box-sizing: border-box;
        padding: 5px 0;
    }

    table tbody td:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    table tbody td:nth-child(1):before { content: "Date Pari"; }
    table tbody td:nth-child(2):before { content: "Date Match"; }
    table tbody td:nth-child(3):before { content: "Ligue"; }
    table tbody td:nth-child(4):before { content: "Match"; }
    table tbody td:nth-child(5):before { content: "Pari"; }
    table tbody td:nth-child(6):before { content: "Cote"; }
    table tbody td:nth-child(7):before { content: "Mise €"; }
    table tbody td:nth-child(8):before { content: "Stratégie"; }

    table tbody td:before {
        font-weight: bold;
        color: #007C70;
        font-size: 12px;
        width: 90px;
        flex-shrink: 0;
        margin-right: 10px;
        display: block;
    }

    .table-legend {
        font-size: 10px;
        margin: 10px 10px 20px 10px;
        text-align: center;
        line-height: 1.4;
        word-wrap: break-word;
    }

    .discover-button {
        font-size: 12px;
        height: 40px;
        padding: 0px 16px;
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        margin: 20px auto;
        display: block;
        max-width: calc(100% - 20px);
    }

    .table-blur-wrapper .table-blur {
        filter: blur(3px);
    }

    .table-blur-wrapper {
        position: relative;
        min-height: 200px;
    }

    .table-blur-wrapper .discover-button {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        max-width: 80%;
    }




    .popup {
        width: 90%;
        max-width: 280px;
        padding: 15px;
        font-size: 14px;
    }

    .no-data-message {
        font-size: 18px;
        margin: 30px 10px;
        text-align: center;
    }

    * {
        max-width: 100%;
        box-sizing: border-box;
    }
}