body {
    background: url('myFavorites.png') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    font-family: 'Segoe UI', sans-serif;
}

.comments-section {
    max-width: 950px;
    margin: 70px auto;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.comments-section h2 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 24px;
}
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;
}

.vertical-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 800px;
    margin: auto;
    padding-bottom: 100px;
}

.auth-container {
    background-color: #98d8d8;
    padding: 40px 20px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    width: 100%;
    text-align: center;
    margin-top: 40px;
}

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

/* Footer personnalisé */
.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;
}

/* Styles améliorés pour les tableaux (communs à commentsTable et favoritesTable) */
#favoritesTable, #commentsTable {
    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;
}

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

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

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

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

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

/* Responsive design pour les tableaux */
@media screen and (max-width: 768px) {
    .comments-section {
        margin: 150px 10px 10px; /* Plus bas sur mobile */
        padding: 10px;
    }

    .auth-container {
        padding: 20px 5px;
        border-radius: 12px;
        width: 100%;
        margin-top: 130px;
    }

    .data-section {
        padding: 10px;
        border-radius: 10px;
    }

    .full-width-footer {
        padding: 12px 0;
        font-size: 14px;
        border-radius: 0;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        margin: 0;
        z-index: 1000;
    }

    #favoritesTable, #commentsTable {
        width: 100%;
        margin: 10px 0;
        font-size: 14px;
    }

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