body {
    padding: 10px;
    font-family: 'Segoe UI', sans-serif;
    background: url('myReviews.png') no-repeat center center fixed;
    background-size: cover;
    margin: 0;
}

.comments-section {
    max-width: 600px;
    margin: 70px auto; /* Ajoutez un margin-top de 50px pour abaisser la div */
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center; /* Centre le contenu textuel à l'intérieur */
}

.comments-section h2 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
}
/* Assurez-vous que le footer occupe toute la largeur et reste en bas */
footer {
    width: 100%;
    background-color: #a8dadc;
     color: #264653; 
     text-align: center; 
     padding: 10px 0;
      margin-top: 20px; 
      position: relative; /* Assurez que le footer reste dans le flux normal */ clear: both; /* Évite que des éléments flottants interfèrent */ z-index: 10;
}

/* Styles améliorés pour les tableaux (communs à commentsTable et favoritesTable) */
#commentsTable, #favoritesTable {
    width: 90%;
    border-collapse: collapse;
    margin: 20px auto;
    background: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

#commentsTable th, #commentsTable td,
#favoritesTable th, #favoritesTable td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

#commentsTable th, #favoritesTable th {
    background-color: #6b5b95;
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
}

#commentsTable tr:nth-child(even),
#favoritesTable tr:nth-child(even) {
    background-color: #f8f9fa;
}

#commentsTable tr:hover,
#favoritesTable tr:hover {
    background-color: #f2f4f6;
    transition: background-color 0.3s ease;
}

/* Message "aucun favori" stylisé */
#favoritesTable tr td[colspan="5"] {
    padding: 30px;
    text-align: center;
    color: #666;
    font-style: italic;
    background: #f9f9f9;
}

/* Responsive design pour les tableaux */
@media screen and (max-width: 768px) {
    #commentsTable, #favoritesTable {
        width: 100%;
        margin: 10px 0;
        font-size: 14px;
    }

    #commentsTable th, #commentsTable td,
    #favoritesTable th, #favoritesTable td {
        padding: 10px;
    }
}

.content-container {
    margin: 30px auto;
    background-color: #98d8d8;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    max-width: 800px;
    width: 90%;
    z-index: 1;
}

.data-section {
    background: white;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
}

.full-width-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background-color: #a8dadc;
    color: #264653;
    text-align: center;
    padding: 20px 0;
    margin: 0;
    border-radius: 0;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.1);
    z-index: 1000;
}

@media screen and (max-width: 768px) {
    html, body {
        height: 100vh;
        min-height: 100vh;
        overflow: hidden;
        touch-action: none;
    }
    body {
        padding: 0;
        min-height: 100vh;
        padding-bottom: 0;
        position: relative;
    }
    .comments-section {
        max-width: 100%;
        margin: 60px 5px 10px 5px; /* Augmente le margin-top à 60px */
        padding: 10px;
        border-radius: 10px;
    }
    .content-container {
        padding: 10px;
        border-radius: 10px;
        width: 98%;
        max-width: 98vw;
        margin-top: 130px; /* Ajoute un espace en haut pour descendre le conteneur */
    }
    #commentsTable, #favoritesTable {
        width: 100%;
        margin: 10px 0;
        font-size: 14px;
    }
    #commentsTable th, #commentsTable td,
    #favoritesTable th, #favoritesTable td {
        padding: 8px;
    }
    .content-container {
        padding: 10px;
        border-radius: 10px;
        width: 98%;
        max-width: 98vw;
    }
    footer, .full-width-footer {
        padding: 12px 0;
        font-size: 14px;
        border-radius: 0;
    }
}