/* --- Styles Généraux --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background: #0d0d1a;
    color: #e0e0e0;
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- STYLE DU HEADER ENFLAMMÉ --- */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 2rem;
    color: #ffd700;
    overflow: visible;
    /* Fond sombre semi‑transparent avec flou pour un effet plus moderne */
    background: rgba(28, 37, 38, 0.85);
    backdrop-filter: blur(6px);
    border-bottom: 2px solid #ff8c00;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

@keyframes gradient-flow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

header::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 100%;
    height: 8px;
    box-shadow:
        0 0 3px 2px #fff8,
        0 0 8px 5px #ffda00aa,
        0 0 18px 10px #ff3300aa,
        0 0 30px 18px #ff8c00aa;
    animation: flicker 3s linear infinite;
}

@keyframes flicker {
    0%, 100% { opacity: 0.8; transform: scaleY(1); }
    25% { opacity: 0.5; transform: scaleY(0.8) skewX(10deg); }
    50% { opacity: 1; transform: scaleY(1.2); }
    75% { opacity: 0.6; transform: scaleY(0.9) skewX(-10deg); }
}

header h1 {
    font-family: 'VT323', sans-serif;
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #ffc400;
    text-shadow: 0 0 5px #ff0000, 0 0 10px #ff0000;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

nav a {
    font-family: 'VT323', sans-serif;
    color: #ffc400;
    text-decoration: none;
    font-weight: bold;
    padding: 0.4rem 0.8rem;
    transition: all 0.3s;
    text-transform: uppercase;
    position: relative;
    border-radius: 6px;
    /* Harmoniser la taille de police des liens de navigation sur toutes les pages */
    font-size: 1.4rem;
}

nav a:hover,
nav a.active {
    color: #ffffff;
    background-color: rgba(255, 0, 0, 0.25);
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.6);
    text-shadow: none;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background-color: #ff0000;
    transition: all 0.3s ease-in-out;
    transform: translateX(-50%);
    box-shadow: 0 0 5px #ff0000;
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: rgba(28, 37, 38, 0.8);
    border-radius: 12px;
    box-shadow: 0 0 25px rgba(106, 0, 244, 0.3);
    display: none;
    text-align: center;
    backdrop-filter: blur(5px);
}

.section.active {
    display: block;
}

.section h2 {
    font-family: 'VT323', sans-serif;
    font-size: 2.5rem;
    color: #FFD700;
    text-shadow: 0 0 10px #FFD700, 0 0 15px #6a00f4;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.gallery {
    margin-top: 2.5rem;
}

.gallery-container {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.gallery-item {
    flex-basis: 300px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(0, 221, 235, 0.7);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --- Styles pour le contenu intégré --- */
.embed-container {
    margin-top: 2rem;
    margin-bottom: 3rem;
}

#twitch-embed {
    width: 100%;
    height: 500px;
}

.youtube-embed-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* Ratio 16:9 */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    border-radius: 8px;
}

.embed-container iframe,
.youtube-embed-wrapper iframe {
    border: none;
    width: 100%;
    height: 100%;
}

.youtube-embed-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
}

/* Réseaux sociaux et liens */
.social-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.social-links a {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: transparent;
    text-decoration: none;
    padding: 0.5rem;
    border: none;
    border-radius: 8px;
    transition: all 0.3s;
    font-family: 'VT323', sans-serif;
    text-transform: uppercase;
    background: transparent;
    width: 80px;
    height: 80px;
}

.social-links img {
    width: 64px;
    height: 64px;
    margin: 0 auto;
}

.social-links a:hover {
    background: #6a00f4;
    box-shadow: 0 0 15px rgba(106, 0, 244, 0.7);
}

.donate-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 2rem;
    background: #FFD700;
    color: #0d0d1a;
    text-decoration: none;
    border-radius: 8px;
    font-family: 'VT323', sans-serif;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    margin-top: 1rem;
}

.donate-button img {
    width: 24px;
    height: 24px;
}

.donate-button:hover {
    background: #00ddeb;
    color: #0d0d1a;
    box-shadow: 0 0 20px rgba(0, 221, 235, 0.7);
}

.popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #1c2526;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 0 25px rgba(106, 0, 244, 0.5);
    z-index: 1000;
    text-align: center;
    color: #e0e0e0;
    font-family: 'VT323', sans-serif;
}

.popup.active {
    display: block;
}

.popup button {
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: #6a00f4;
    color: #FFD700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'VT323', sans-serif;
    transition: all 0.3s;
}

.popup button:hover {
    background: #00ddeb;
    color: #0d0d1a;
    box-shadow: 0 0 20px rgba(0, 221, 235, 0.7);
}

/* Conteneur pour l'image de don/tips sous la section de l'équipe */
.tip-container {
    margin-top: 2rem;
    text-align: center;
}

/* Image de don – sans effet de lien mais avec une mise en valeur au survol */
.tip-image {
    width: 220px;
    max-width: 80%;
    border-radius: 12px;
    transition: transform 0.3s, box-shadow 0.3s;
}
.tip-image:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Conteneur élégant autour du formulaire de contact */
.contact-wrapper {
    background: rgba(28, 37, 38, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    border-radius: 20px;
    padding: 2rem 2.5rem;
    max-width: 650px;
    margin: 2rem auto;
    backdrop-filter: blur(4px);
}

/* Harmonisation du champ select avec les autres champs du formulaire */
.contact-form select {
    padding: 0.8rem;
    background: #2a2f3b;
    border: 2px solid #6a00f4;
    border-radius: 8px;
    color: #e0e0e0;
    font-family: 'Roboto', sans-serif;
    transition: border-color 0.3s;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23FFD700' d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.8rem center;
    background-size: 1rem;
}
.contact-form select:focus {
    border-color: #00ddeb;
    box-shadow: 0 0 10px rgba(0, 221, 235, 0.5);
    outline: none;
}

.contact-form label {
    font-family: 'VT323', sans-serif;
    font-weight: bold;
    color: #FFD700;
    text-align: left;
}

.contact-form input,
.contact-form textarea {
    padding: 0.8rem;
    background: #2a2f3b;
    border: 2px solid #6a00f4;
    border-radius: 8px;
    color: #e0e0e0;
    font-family: 'Roboto', sans-serif;
    transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #00ddeb;
    box-shadow: 0 0 10px rgba(0, 221, 235, 0.5);
    outline: none;
}

.contact-form button {
    padding: 0.8rem;
    background: #6a00f4;
    color: #FFD700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'VT323', sans-serif;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: 0 0 10px rgba(106, 0, 244, 0.5);
}

.contact-form button:hover {
    background: #00ddeb;
    color: #0d0d1a;
    box-shadow: 0 0 20px rgba(0, 221, 235, 0.7);
}

/* ---------------------------------------------------------------------------------- */
/* Carte de présentation de l'équipe (index)                                          */
/* Ces styles étaient précédemment définis dans la page index.html et sont déplacés   */
/* ici pour garantir une cohérence visuelle sur l'ensemble du site.                   */

.admin-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.admin-card {
    background: linear-gradient(145deg, #1e2a2c, #2e3d40);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    width: 320px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.admin-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(106, 0, 244, 0.4);
}

.admin-card img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 1rem;
    border: 3px solid #fff2;
}

.admin-card:nth-child(1) img {
    box-shadow: 0 0 18px 5px #f700ff;
}

.admin-card:nth-child(2) img {
    box-shadow: 0 0 18px 5px #00ffe0;
}

.admin-card:nth-child(3) img {
    box-shadow: 0 0 18px 5px #ffcc00;
}

.admin-card h3 {
    font-size: 1.6rem;
    color: #FFD700;
    margin-bottom: 0.8rem;
    font-family: 'VT323', monospace;
}

.admin-card p {
    color: #e0e0e0;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
}


footer {
    text-align: center;
    padding: 1.5rem;
    background: #1c2526;
    margin-top: 2rem;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.5);
}

footer p {
    font-family: 'VT323', sans-serif;
    color: #FFD700;
    text-shadow: 0 0 10px #FFD700;
}

@media (max-width: 992px) {
    #twitch-embed {
        height: 750px;
        /* Hauteur plus grande pour la vue mobile empilée */
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    header h1 {
        font-size: 1.8rem;
    }
    nav ul {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    .section h2 {
        font-size: 1.8rem;
    }
    .gallery-container {
        flex-direction: column;
        align-items: center;
    }
    .social-links a {
        width: 60px;
        height: 60px;
    }
    .social-links img {
        width: 48px;
        height: 48px;
    }
}

/* Encadrement néon/flamme pour les contenus intégrés */
.neon-frame {
    padding: 1rem;
    border-radius: 12px;
    border: 2px solid #ff8c00;
    /* Couleurs enflammées et effet néon */
    box-shadow:
        0 0 5px #ff4500,
        0 0 15px #ff8c00,
        0 0 25px #ffd700,
        0 0 40px #ff6347;
    background: linear-gradient(145deg, rgba(77, 0, 0, 0.4), rgba(153, 0, 0, 0.4));
}

/* Cadre moderne et épuré pour les vidéos YouTube les plus récentes */
.modern-frame {
    padding: 1rem;
    border-radius: 12px;
    border: 2px solid #6a00f4;
    background: rgba(28, 37, 38, 0.8);
    box-shadow: 0 4px 12px rgba(106, 0, 244, 0.4);
}

/* Cadre pour les widgets Discord avec une couleur de marque subtile */
.discord-frame {
    padding: 1rem;
    border-radius: 12px;
    border: 2px solid #5865F2; /* Couleur principale de Discord */
    background: rgba(28, 37, 38, 0.8);
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.4);
}

/* Wrapper pour les embeds Kick, utilisant un ratio 16:9 comme YouTube */
.kick-embed-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    border-radius: 8px;
}

.kick-embed-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Alignement du titre et du bouton Discord dans le header */
.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Style du bouton Discord (image) avec effet de pulsation */
.discord-cta {
    height: 40px;
    width: auto;
    cursor: pointer;
    animation: discord-pulse 2.5s infinite;
}

.discord-cta-link {
    display: inline-flex;
    align-items: center;
}

@keyframes discord-pulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 4px #5865F2);
    }
    50% {
        transform: scale(1.1);
        filter: drop-shadow(0 0 10px #5865F2);
    }
}

/* Logo du site – agrandi de 15 % sans modifier la hauteur de l'en‑tête */
.site-logo {
    height: 46px;
    width: auto;
}

/* Badge de rôle pour l'équipe Paglorieux */
/* Style modernisé pour les badges de rôle des membres. 
   Utilise un fond translucide sombre et une bordure discrète. 
   Les icônes (emoji) sont insérées directement dans le contenu. */
.role-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin: 0.35rem auto 0;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #FFD700;
    font-family: 'VT323', sans-serif;
    font-size: 1rem;
    text-transform: uppercase;
    font-weight: bold;
    backdrop-filter: blur(3px);
}

/* Image décorative positionnée sur le côté gauche de l'écran. 
   Elle est fixée afin de rester visible lors du défilement et masquée sur mobile. */
.side-asset {
    position: fixed;
    /* Ancre l'illustration plus grande au bas de l'écran, légèrement en retrait vers la gauche */
    left: -30px;
    bottom: 5%;
    /* Augmente la taille de l'illustration de 20 % par rapport à la version précédente */
    width: 480px;
    max-width: 50%;
    /* Augmente l'opacité pour rendre l'image plus visible tout en restant discrète */
    opacity: 0.8;
    /* Positionnement en arrière plan : z-index inférieur pour passer sous le contenu */
    z-index: 0;
    pointer-events: none;
}

/* Variation pour l'illustration placée à droite.
   Elle utilise la même taille que l'image de gauche et effectue une symétrie horizontale pour équilibrer la page. */
.side-asset-right {
    right: -30px;
    left: auto;
    transform: scaleX(-1);
}

@media (max-width: 768px) {
    .side-asset {
        display: none;
    }
}

/* Style des liens externes (YouTube, Twitch, Kick, etc.) */
.external-link {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.5rem 1rem;
    background: #6a00f4;
    color: #FFD700;
    font-family: 'VT323', sans-serif;
    font-size: 1rem;
    text-transform: uppercase;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.3s, color 0.3s;
}
.external-link:hover {
    background: #00ddeb;
    color: #0d0d1a;
    text-decoration: none;
}

/* Conteneur pour les cartes de réseaux sociaux */
.social-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

/* Carte individuelle pour un réseau social */
.social-card {
    background: rgba(28, 37, 38, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    width: 260px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.social-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(106, 0, 244, 0.4);
}
.social-card img {
    width: 64px;
    height: 64px;
    margin-bottom: 0.5rem;
}
.social-card h3 {
    font-family: 'VT323', sans-serif;
    color: #FFD700;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}
.social-card p {
    font-family: 'Roboto', sans-serif;
    color: #e0e0e0;
    font-size: 1rem;
    margin-bottom: 0.8rem;
}

/* Liens du pied de page : même couleur que le texte et souligné au survol */
/* Style du lien de pied de page : lisible avec effet uniquement au survol */
footer a {
    /* Couleur or pour contraster avec le fond sombre */
    color: #FFD700;
    text-decoration: none;
    transition: color 0.3s, text-decoration 0.3s;
}
footer a:hover {
    /* Au survol, le lien se souligne et change de couleur pour signaler son interactivité */
    text-decoration: underline;
    color: #00ddeb;
}