/*Index.php*/
body, html {
    height: 100%;
    display : table;
	width: 100%;
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-weight: bold;
}

#image-container {
    position: absolute; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: -1; 
}

#background-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0; 
    transition: opacity 1s ease;
}

.acceuil-twitch-container {
    max-width: 600px;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 30px 40px;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    color: white;
    margin: 0 auto;
}

.acceuil-twitch-container h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #ffd700;
    text-shadow: 0 0 4px #ffd700;
    font-size: 24px;
}

#twitch-embed {
    width: 540px;
    height: 305px;
    margin: 0 auto; /* Centre horizontalement */
    display: flex;
}

#image-container.loaded #background-image,
#image-container.loaded {
    opacity: 1; 
}

.main-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
}

/* Première boîte occupe toute la largeur max */
.text-box.full-width {
    width: 100%;
}

/* Ligne contenant les deux boîtes côte à côte */
.text-box-row {
    display: flex;
    gap: 20px;
    max-width: 80%;
    width: 100%;
    justify-content: center;
}

/* Boîtes demi-largeur pour la deuxième ligne */
.text-box.half-width {
    flex: 1; /* partage égal de l'espace */
    background-color: rgba(0, 0, 0, 0.8);
    padding: 30px 40px;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    color: white;
    box-sizing: border-box;
}

.text-box.half-width h2,
.text-box.full-width h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #ffd700;
    text-shadow: 0 0 4px #ffd700;
    font-size: 24px;
}

.text-box.half-width p,
.text-box.full-width p {
    font-size: 16px;
    line-height: 1.5;
    text-align: justify;
}

/* Conteneur principal qui centre les éléments */
.main-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
}

/* Boîtes de texte supplémentaires */
.text-box {
    max-width: 600px;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 30px 40px;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    color: white;
}

.text-box h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #ffd700;
    text-shadow: 0 0 4px #ffd700;
    font-size: 24px;
}

.text-box p {
    font-size: 16px;
    line-height: 1.5;
    text-align: justify;
}

/*header.php*/

.header {
    z-index: 1000;
    width: 100%;
    position: relative; /* si le header doit rester en haut */
    top: 0;
}

.container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 0; /* ajoutez un padding pour que ce soit visible */
}

.logo-image {
    width: 150px;
    height: auto;
}

/*navbar.php*/

.navbar ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 25px;
    padding: 0;
    margin: 0;
}

.navbar ul li {
    display: inline-block;
}

.navbar ul li a {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 5px;
    border: 1px solid transparent; /* Bordure invisible de base */
    transition: box-shadow 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Style du lien actif avec effet Glow fixe et bordure blanche */
.navbar ul li a.active {
    background-color: white;
    color: #333; /* Gris foncé */
    font-weight: bold;
    box-shadow: 0 0 8px 2px rgba(255, 255, 255, 0.5), 
                0 0 15px 5px rgba(255, 255, 255, 0.3);
    border: 1px solid white; /* Bordure invisible de base */
}

/* Style du lien actif avec effet Glow fixe et bordure blanche */
.navbar ul li a:hover {
    background-color: white;
    color: #333; /* Gris foncé */
    font-weight: bold;
    box-shadow: 0 0 8px 2px rgba(255, 255, 255, 0.5);
    border: 1px solid white; /* Bordure invisible de base */
}

.auth-buttons {
    display: flex;
    gap: 10px;
}

.btn-login, .btn-signup {
    background-color: transparent;
    border: 2px solid white;
    color: white;
    padding: 8px 20px;
    cursor: pointer;
    border-radius: 25px;
    font-size: 16px;
    transition: 0.3s ease;
    text-decoration: none;
}

.btn-login:hover, .btn-signup:hover {
    background-color: white;
    color: black;
}

.user-info {
    color: white;
    font-size: 16px;
    display: flex;
    gap: 15px;
    align-items: center;
}

.user-info a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    border: 1px solid white;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.user-info a:hover {
    background-color: white;
    color: black;
}

.admin-badge {
    background-color: #007BFF;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    margin-left: 10px;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.menu-icon-wrapper {
    display: inline-block;
    padding: 5px; /* Espace autour de l'image pour l'ombre */
    border-radius: 4px; /* Bords arrondis */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.menu-icon-wrapper:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.menu-icon {
    display: block;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #f9f9f9;
    min-width: 150px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 5px;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}

.dropdown-logout {
    color: red;
}

/*footer.php*/

.footer {
    display : table-row;
    background-color: #000000;
    color: white;
    padding: 30px 0;
    border-top: 2px solid #000000;
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logo img {
    width: 100px;
}

.footer-links a {
    color: white;
    margin-right: 15px;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #7289da;
}

.footer-socials a {
    display: inline-block;
    margin-right: 10px;
    margin-top: 10px;
}

.footer-socials img {
    width: 25px;
    height: 25px;
    filter: invert(1);
    transition: transform 0.2s;
}

.footer-socials a:hover img {
    transform: scale(1.1);
}

.footer-bottom {
    text-align: center;
    margin-top: 15px;
    font-size: 12px;
    opacity: 0.6;
}

@media (max-width: 768px) {
    .footer .container {
        flex-direction: column;
        text-align: center;
    }
}

/*login.php et register.php*/

/* === Modern Login Form === */
.form-container {
    max-width: 400px;
    margin: 150px auto;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 30px 40px;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    color: white;
}

.form-container label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
}

.form-container input {
    width: 95%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #333;
    border-radius: 5px;
    background-color: #2c2c2c;
    color: white;
}

.form-container h2 {
    text-align: center;
    margin-bottom: 30px;
    color: white;
    font-size: 24px;
}

.input-group {
    position: relative;
    margin-bottom: 30px;
}

.input-group input {
    width: 100%;
    padding: 10px 10px 10px 0;
    background: none;
    border: none;
    border-bottom: 2px solid white;
    color: white;
    font-size: 16px;
    outline: none;
}

.input-group label {
    position: absolute;
    top: 10px;
    left: 0;
    color: gray;
    font-size: 16px;
    pointer-events: none;
    transition: 0.3s ease;
}

.input-group input:focus ~ label,
.input-group input:not(:placeholder-shown) ~ label {
    top: -20px;
    left: 0;
    color: #4CAF50;
    font-size: 12px;
}

button[type="submit"] {
    width: 100%;
    padding: 12px;
    background-color: #4CAF50;
    border: none;
    border-radius: 5px;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
    background-color: #45a049;
}

.register-link {
    text-align: center;
    margin-top: 20px;
}

.register-link a {
    color: #4CAF50;
    text-decoration: none;
}

.register-link a:hover {
    text-decoration: underline;
}

.error-message {
    color: #ff4d4d;
    margin-bottom: 20px;
    text-align: center;
}

/*profil.php*/

/* === Profil Page Style === */
.profile-container {
    max-width: 600px;
    margin: 150px auto;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 30px 40px;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    color: white;
}

.profile-container h2 {
    text-align: center;
    margin-bottom: 30px;
    color: white;
    font-size: 24px;
}

.profile-card {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.profile-picture img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
}

.profile-info p {
    margin: 5px 0;
    font-size: 16px;
}

.profile-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.profile-actions .btn {
    background-color: #4CAF50;
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
    font-size: 16px;
}

.profile-actions .btn:hover {
    background-color: #45a049;
}

/*pov.php*/

#pov-twitch-embeds-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* espace entre chaque lecteur */
    justify-content: center; /* centre les lecteurs horizontalement */
    padding: 20px;
}

#pov-twitch-embeds-container > div {
    border-radius: 8px; /* coins arrondis */
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.8); /* fond sombre pour contraster */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5); /* léger effet d’ombre */
}

.pov-twitch-channel-block {
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.8);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    width: 560px; /* Largeur adaptée au player Twitch (540 + padding) */
    color: #fff;
}

.channel-name {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
    color: white
}

/*agenda.php*/

 /* --- CSS intégré --- */
 #background-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}
.events-container {
    max-width: 1200px;
    margin: 20px auto 40px auto;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 15px;
    padding: 20px 40px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}
.events-container h2 {
    text-align: center;
    font-weight: bold;
    font-size: 2rem;
    margin-bottom: 25px;
    color: #ffd700;
    text-shadow: 0 0 5px #ffd700;
}
.event-item {
    display: flex;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 0 8px #000;
    overflow: hidden;
    transition: transform 0.3s ease;
    align-items: center;
    padding: 0 20px;
}
.event-item:hover {
    transform: scale(1.02);
}
.event-image {
    width: 200px;
    height: 150px;
    object-fit: cover;
    flex-shrink: 0;
    border-radius: 12px;
  	border-right: 2px solid #ffd700;
}
.event-image:not(img) {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #333;
    color: #888;
    font-size: 0.9rem;
    font-style: italic;
    width: 200px;
    height: 150px;
    border-radius: 12px;
}
.event-details {
    padding: 15px 40px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.event-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #ffd700;
    margin-bottom: 10px;
    text-shadow: 0 0 4px #ffd700;
}
.event-dates {
    font-weight: 500;
    margin-bottom: 10px;
    color: rgb(117, 117, 117);
}
.event-description {
    font-size: 1rem;
    color: #ccc;
    margin-bottom: 10px;
    white-space: pre-wrap;
    line-height: 1.4;
}
.event-max {
    font-weight: 600;
    font-size: 1rem;
    color: #ffcc00;
}
form {
    align-self: center;
    margin-left: 20px;
    flex-shrink: 0;
}
button.btn-inscrire {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease;
}
button.btn-inscrire:hover:not(:disabled){
    background: linear-gradient(135deg, #ffa726, #ef6c00);
}

button.btn-desinscrire {
    background: linear-gradient(135deg, #e53935, #b71c1c); /* dégradé rouge */
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease;
}

button.btn-desinscrire:hover {
    background: linear-gradient(135deg, #ef5350, #c62828);
}

button:disabled {
    background: #666 !important;
    cursor: not-allowed;
}

/* Classement.php */

.classement-container {
    max-width: 800px;
    margin: 50px auto;
    background: rgba(0, 0, 0, 0.7);
    padding: 20px 40px;
    border-radius: 15px;
}

h2 {
    text-align: center;
    margin-bottom: 25px;
    color: #ffd700;
    font-weight: bold;
    font-size: 2rem;
    text-shadow: 0 0 5px #ffd700;
}

.no-events {
    text-align: center;
    color: #888;
    font-size: 18px;
}

.classement-event-list {
    list-style: none;
    padding: 0;
}

.classement-event-list li {
    margin-bottom: 20px;
    text-align: left;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 12px;
    box-shadow: 0 0 8px #000;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 10px 20px;
    transition: transform 0.3s ease;
}

.classement-event-list li:hover {
    transform: scale(1.02);
}

.classement-event-list a {
    text-decoration: none;
    color: #ffd700;
    font-size: 1.4rem;
    font-weight: 700;
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.classement-event-list a:hover {
    color: #ffec99;
}

.classement-event-list img {
    width: 150px;  /* Image plus petite */
    height: 100px;
    object-fit: cover;
    border-radius: 12px;
    margin-right: 20px;
    flex-shrink: 0;
}

.classement-container {
    max-width: 800px;
    margin: 50px auto;
    background-color: rgba(0, 0, 0, 0.7); /* Exemple couleur sombre pour DA */
    padding: 20px;
    border-radius: 8px;
    color: #ffd700; /* Texte doré */
}

.classement-content {
    display: flex;
    gap: 30px; /* Espace entre image et texte */
    align-items: flex-start;
}

.classement-image {
    width: 250px;  /* Taille image réduite */
    height: auto;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(255, 215, 0, 0.5);
    flex-shrink: 0; /* Ne pas rétrécir */
}

.classement-details {
    flex-grow: 1; /* Prend le reste de l’espace */
}

.classement-dates {
    font-weight: 600;
    color: #ffcc00;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.classement-description {
    font-size: 1rem;
    line-height: 1.4;
    color: #ccc;
    white-space: pre-wrap;
}

.ranking-container {
    background-color: rgba(0,0,0,0.7);
    border-radius: 10px;
    padding: 20px;
    margin: 20px auto;
    max-width: 900px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.ranking-title {
    color: #ffcc00;
    font-size: 1.8em;
    margin-bottom: 15px;
    border-bottom: 2px solid #000000;
    padding-bottom: 10px;
}

.ranking-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1em;
    color: white;
}

.ranking-table thead tr {
    background-color:rgba(0,0,0,0.9);
    color: white;
}

.ranking-table th, .ranking-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.ranking-table tbody tr:hover {
    background-color: rgb(37, 37, 37);
}

.ranking-table tbody tr:nth-child(even) {
    background-color: rgba(36, 36, 36, 0.7);
}