/* Style général */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f0f8ff; /* bleu clair pour rappeler l'océan */
    color: #333;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* Header */
header {
    background-color: #003366; /* bleu marine pour le header */
    color: white;
    padding: 1em 0;
    text-align: center;
}

header h1 {
    font-size: 2em;
    margin: 0;
}

header nav a {
    color: #f0f8ff;
    text-decoration: none;
    margin: 0 1em;
    font-weight: bold;
}

header nav a:hover {
    color: #ffcc00; /* accent jaune sur le survol */
}

/* Boutons de style "compétition" */
button, .btn {
    background-color: #ff3333; /* rouge pour l'accent compétition */
    color: white;
    border: none;
    padding: 0.7em 1.5em;
    cursor: pointer;
    font-size: 1em;
    border-radius: 5px;
    transition: background-color 0.3s;
}

button:hover, .btn:hover {
    background-color: #cc0000;
}

/* Section principale */
main {
    padding: 2em;
}

/* Sections avec arrière-plan rappelant la mer */
.section-blue {
    background-color: #0077b6;
    color: white;
    padding: 2em;
    border-radius: 8px;
    margin-bottom: 1em;
}

.section-white {
    background-color: #ffffff;
    color: #003366;
    padding: 2em;
    border-radius: 8px;
    margin-bottom: 1em;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Cartes pour les classements ou statistiques */
.card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 1.5em;
    margin-bottom: 1em;
    color: #333;
}

.card h2 {
    color: #003366;
    font-size: 1.5em;
    margin-bottom: 0.5em;
}

.card p {
    color: #666;
}

/* Tableaux */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1em;
    font-size: 0.9em;
}

table th, table td {
    padding: 0.8em;
    text-align: center;
    border: 1px solid #ddd;
}

table th {
    background-color: #003366;
    color: white;
}

table tr:nth-child(even) {
    background-color: #f2f2f2;
}

/* Footer */
footer {
    background-color: #003366;
    color: white;
    padding: 1em 0;
    text-align: center;
    font-size: 0.9em;
}

footer a {
    color: #ffcc00;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}
/* Bouton vers Points Presse */
.btn {
    display: inline-block;
    background-color: #ff3333;
    color: white;
    padding: 0.7em 1.5em;
    text-align: center;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #cc0000;
}

/* Tableau de classement */
.section-white {
    background-color: #ffffff;
    color: #003366;
    padding: 2em;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-top: 2em;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1em;
}

table th, table td {
    padding: 0.8em;
    text-align: center;
    border: 1px solid #ddd;
}

table th {
    background-color: #003366;
    color: white;
}

table tr:nth-child(even) {
    background-color: #f2f2f2;
}
/* Style du bouton d'ajout de point presse */
.btn {
    display: inline-block;
    background-color: #ff3333; /* Rouge pour le contraste */
    color: white;
    padding: 0.7em 1.5em;
    text-align: center;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
    margin-bottom: 1em;
}

.btn:hover {
    background-color: #cc0000;
}


/* Style général pour le point presse */
.press-release {
    background-color: #ffffff;
    padding: 2em;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 2em;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-family: Arial, sans-serif;
}

.press-release h1 {
    font-size: 2em;
    color: #003366;
    margin-bottom: 0.5em;
}

.press-release p {
    color: #666;
    line-height: 1.6;
}

.press-release .published-date {
    font-size: 0.9em;
    color: #888;
    margin-top: 0.5em;
}

/* Section des commentaires */
.comments-section {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    background-color: #f9f9f9;
    padding: 2em;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.comments-section h2 {
    font-size: 1.5em;
    color: #333;
    margin-bottom: 1em;
}

/* Style pour chaque commentaire */
.comment {
    border-bottom: 1px solid #ddd;
    padding: 1em 0;
}

.comment:last-child {
    border-bottom: none;
}

.comment .author {
    font-weight: bold;
    color: #003366;
    margin-bottom: 0.3em;
}

.comment .date {
    font-size: 0.85em;
    color: #888;
}

.comment p {
    margin: 0.5em 0 0;
    color: #333;
}

/* Formulaire de commentaire */
.comment-form {
    margin-top: 2em;
    padding: 1em;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.comment-form label {
    font-weight: bold;
    color: #333;
    display: block;
    margin-bottom: 0.5em;
}

.comment-form textarea {
    width: 100%;
    padding: 0.5em;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
    font-family: Arial, sans-serif;
}

.comment-form button {
    display: block;
    background-color: #ff3333;
    color: white;
    border: none;
    padding: 0.7em 1.5em;
    cursor: pointer;
    font-size: 1em;
    border-radius: 5px;
    transition: background-color 0.3s;
    margin-top: 1em;
}

.comment-form button:hover {
    background-color: #cc0000;
}

/* Conteneur principal de la section Points Presse */
.press-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2em;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Titre de la page */
.press-container h1 {
    font-size: 2em;
    color: #003366;
    margin-bottom: 1em;
    text-align: center;
}

/* Bouton d'ajout de point presse */
.press-container .btn {
    display: block;
    width: fit-content;
    background-color: #ff3333;
    color: white;
    padding: 0.7em 1.5em;
    text-align: center;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin: 1em auto;
    transition: background-color 0.3s;
}

.press-container .btn:hover {
    background-color: #cc0000;
}

/* Liste des points presse */
.press-list {
    list-style-type: none;
    padding: 0;
}

.press-list li {
    padding: 1em;
    border-bottom: 1px solid #ddd;
}

.press-list li:last-child {
    border-bottom: none;
}

/* Titre et lien du point presse */
.press-list li a {
    font-size: 1.2em;
    font-weight: bold;
    color: #003366;
    text-decoration: none;
}

.press-list li a:hover {
    color: #ff3333;
    text-decoration: underline;
}

/* Date de publication */
.press-list li .published-date {
    font-size: 0.9em;
    color: #888;
    margin-top: 0.3em;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* Ratio 16:9 */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* styles.css */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f9;
}

header {
    background-color: #003366;
    color: #ffffff;
    padding: 1em 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
/* Barre de navigation */
.navbar {
    display: flex;
    flex-direction: column; /* Aligne les éléments en colonne */
    align-items: center; /* Centre les éléments horizontalement */
    padding: 1em;
    background-color: #003366; /* Couleur de fond */
    box-sizing: border-box;
    gap: 20px; /* Espacement entre les sections */
}

/* Section Logo */
.navbar-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.navbar-logo .logo {
    width: 250px; /* Taille du logo */
    height: auto;
}

/* Profil utilisateur */
.navbar-profile {
    display: flex;
    flex-direction: column; /* Aligne le profil verticalement */
    align-items: center;
    margin-top: -130px;
    margin-left: -205px;
}

.navbar-profile .profile-image {
    width: 80px; /* Taille de l'image de profil */
    height: 80px;
    border-radius: 50%; /* Forme circulaire */
    object-fit: cover;
    margin-bottom: 5px; /* Espacement entre l'image et le bouton */
}

.navbar-profile .dropbtn {
    background-color: #ff3333; /* Couleur du bouton */
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    text-align: center;
}

.navbar-profile .dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    z-index: 1;
    min-width: 150px;
    padding: 10px 0;
}

.navbar-profile .dropdown-content a {
    text-decoration: none;
    color: #333;
    padding: 10px;
    display: block;
    transition: background-color 0.3s;
}

.navbar-profile .dropdown-content a:hover {
    background-color: #ddd;
}

/* Affiche le menu déroulant */
.navbar-profile:hover .dropdown-content {
    display: block;
}

/* Liens de navigation */
.navbar-links {
    display: flex;
    gap: 30px; /* Espacement entre les icônes */
    list-style: none;
    padding: 0;
    margin: 0;
}

.navbar-links li a img {
    width: 200px; /* Taille des icônes */
    height: auto;
    max-width: 100%;
    transition: transform 0.3s ease; /* Animation au survol */
}

.navbar-links li a img:hover {
    transform: scale(1.8); /* Zoom au survol */
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        gap: 10px;
    }

    .navbar-links {
        flex-wrap: wrap; /* Ajuste les liens en ligne */
        justify-content: center;
    }


@media (max-width: 768px) {
    .navbar-links li a img {
        width: 100px; /* Taille encore plus réduite sur les petits écrans */
        object-fit: contain; /* Gère le ratio de l'image */
        transition: transform 0.3s ease; /* Transition pour un effet fluide */
    }
    .navbar-links li a img:hover {
        transform: scale(1.3); /* Zoom au survol */
    }
}

@media (max-width: 480px) {
    .navbar-links li a img  {
        width: 80px; /* Taille minimale pour les très petits écrans */
        object-fit: contain; /* Gère le ratio de l'image */
    transition: transform 0.3s ease; /* Transition pour un effet fluide */
    }
    .navbar-links li a img:hover {
        transform: scale(1.2); /* Zoom au survol */
    }
}

}

/* Conteneur principal */
.ranking-container {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 1em;
    overflow: hidden; /* Empêche le dépassement */
    max-width: 100%; /* Adapte le conteneur à l'écran */
    margin: 0 auto; /* Centrage horizontal */
}


/* Table principale */
.ranking-table {
    width: 100%; /* Adapte la table à la largeur du conteneur */
    border-collapse: collapse;
    font-size: 0.9em;
    color: #333;
    table-layout: fixed; /* Force les colonnes à se répartir dans la largeur disponible */
}


/* En-tête de la table */
.ranking-table thead tr {
    background-color: #003366;
    color: #ffffff;
    text-align: left;
}

/* Cellules (th et td) */
.ranking-table th,
.ranking-table td {
    padding: 0.75em 1em; /* Ajoute des marges internes */
    border-bottom: 1px solid #dddddd;
    text-align: center; /* Centrer le contenu */
}


/* Lignes paires (zebra striping) */
.ranking-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Effet au survol */
.ranking-table tbody tr:hover {
    background-color: #e9ecef;
}

/* Images dans les cellules */
.ranking-table td img {
    margin-right: 0.5em;
    vertical-align: middle;
}

/* Styles pour les petits écrans */
@media screen and (max-width: 768px) {
    .ranking-container {
        padding: 1em 0.5em; /* Réduit les marges latérales */
    }

    h1 {
        font-size: 1.5em; /* Réduit la taille de la police du titre */
    }

    .ranking-table th, 
    .ranking-table td {
        font-size: 0.9em; /* Ajuste la taille de la police */
        word-wrap: break-word; /* Permet de gérer le contenu long */
    }

    .btn-switch {
        font-size: 11px; /* Ajuste la taille des boutons */
    }
}

.btn-add {
    display: inline-block;
    padding: 0.5em 1em;
    background-color: #007bff;
    color: #ffffff;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
}

.btn-add:hover {
    background-color: #0056b3;
}

.radio-container {
    background-image: url('/uploads/radio.png');
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: white; /* Si besoin pour le texte */
}
.video-player {
    width: 80%;
    max-width: 700px;
    margin: 0 auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    overflow: hidden;
}

h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}


.reaction-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.reaction-icon {
    width: 24px;
    height: 24px;
    cursor: pointer;
    transition: transform 0.2s ease; /* Animation en douceur */
}

.reaction-icon:hover {
    transform: scale(2); /* Grossissement au survol */
}

/* Par défaut */
.image-container {
    position: relative; /* Nécessaire pour que l'image puisse être positionnée */
    height: 200px; /* Hauteur fixe pour le conteneur */
    overflow: hidden; /* Cache les débordements par défaut */
    text-align: center;
}

.image-container img {
    width: 100%; /* L'image occupe toute la largeur du conteneur */
    height: 100%; /* L'image occupe toute la hauteur du conteneur */
    object-fit: cover; /* Remplit le cadre en respectant les proportions */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Transition fluide */
    position: relative; /* Par défaut, reste dans le flux */
    z-index: 1; /* S'assure qu'elle est au-dessus par défaut */
}

/* Effet au survol sur PC */
@media (min-width: 769px) {
    .custom-card {
        position: relative; /* Contexte pour les éléments enfants */
        overflow: visible; /* Permet le débordement de l'image */
    }

    .image-container {
        overflow: visible; /* Permet à l'image de dépasser lors du survol */
    }

    .image-container:hover img {
        transform: none; /* Pas de scale, redimensionnement manuel */
        position: fixed; /* Permet à l'image de dépasser tout en restant visible */
        top: 50%; /* Place l'image au centre de l'écran verticalement */
        left: 50%; /* Place l'image au centre de l'écran horizontalement */
        transform: translate(-50%, -50%); /* Centre l'image */
        z-index: 999; /* Passe au-dessus de tous les autres éléments */
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); /* Ajoute une ombre pour l'effet de profondeur */
        height: 80vh; /* Limite la hauteur à 50% de l'écran */
        width: auto; /* Ajuste la largeur automatiquement en fonction de la hauteur */
        max-width: 80%; /* Limite la largeur à 80% de l'écran au cas où */
    }
}

/* Ajustement pour les mobiles */
@media (max-width: 768px) {
    .image-container {
        height: 150px; /* Réduit la hauteur pour s'adapter aux petits écrans */
        overflow: hidden; /* Cache les débordements */
    }

    .image-container img {
        transform: none; /* Désactive les effets au survol */
        object-fit: contain; /* S'assure que l'image est entièrement visible */
    }

    .image-container:hover img {
        transform: none;
    }
}
