/* ==========================================================================
   1. Réinitialisation et Variables
   ========================================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --bg-main: #3f4351;
    --primary: #ff6b0d;
    --secondary: #ad6151;
    --dark: #161419;
    --light: #eeedf0;
    
    /* Couleurs réseaux sociaux */
    --color-discord: #5865F2;
    --color-youtube: #FF0000;
    --color-twitch: #9146FF;
    --color-wiki: #444444;
}

body {
    background-color: var(--bg-main);
    min-height: 100vh;
}

/* ==========================================================================
   2. Conteneur Principal (Bannière Plein Écran)
   ========================================================================= */
.hero-container {
    width: 100%; 
    margin: 0;   
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.hero-banner {
    position: relative;
    width: 100%;
    height: 550px; 
    
    background: linear-gradient(
        to bottom, 
        rgba(255, 255, 255, 0.2) 0%, 
        rgba(255, 255, 255, 0.6) 65%, 
        rgba(255, 255, 255, 1) 100%
    ), 
    url('../../assets/picture/events/event-summer2026/home.png');
    
    background-size: cover;
    background-position: center;
    
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 60px 10%; 
}

/* ==========================================================================
   3. Partie Haute : Titres
   ========================================================================= */
.hero-header {
    text-align: center;
    color: var(--dark);
}

.hero-header h1 {
    font-size: 3.5rem; 
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 5px;
    text-shadow: 1px 1px 0px rgba(255, 255, 255, 0.8);
}

.hero-header .subtitle {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--secondary);
}

.hero-header .subtitle span {
    color: var(--primary);
    font-weight: 700;
}

/* ==========================================================================
   4. Partie Basse : Dates & Bouton
   ========================================================================= */
.hero-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    color: var(--dark); 
}

.event-dates {
    font-size: 1.2rem;
    background-color: rgba(22, 20, 25, 0.04);
    padding: 12px 20px;
    border-radius: 8px;
    border-left: 5px solid var(--primary);
}

.event-dates strong {
    color: var(--primary);
}

.btn-connect {
    display: inline-block;
    background-color: var(--primary);
    color: var(--light);
    text-decoration: none;
    padding: 14px 35px;
    font-weight: 600;
    border-radius: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 13, 0.3);
}

.btn-connect:hover {
    background-color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(173, 97, 81, 0.4);
}

/* ==========================================================================
   5. Sections de Contenu (Mise en page)
   ========================================================================= */
.content-wrapper {
    max-width: 100%;
    margin: 40px auto;          
    padding: 0 10%;             
    display: grid;
    grid-template-columns: 2fr 1fr; 
    gap: 40px;                  
}

.media-links-wrapper {
    max-width: 100%;
    margin: 20px auto 60px auto;          
    padding: 0 10%;             
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 40px;                  
}

.description-section h2, 
.video-container h2, 
.links-container h2 {
    color: var(--primary);      
    font-size: 1.8rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Style Partie Gauche (Description & Galerie) --- */
.description-section {
    color: var(--light);        
    line-height: 1.6;
}

.description-section p {
    margin-bottom: 15px;
    font-size: 1.05rem;
    opacity: 0.9;               
}

.description-section strong {
    color: var(--primary);      
}

.description-gallery {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.description-gallery img {
    width: calc(50% - 10px);
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* --- Style Partie Droite (Classement) --- */
.side-section {
    color: var(--light);
}

.ranking-card {
    background-color: var(--dark);
    border: 1px solid rgba(173, 97, 81, 0.3);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.ranking-card h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--light);
    border-bottom: 2px solid var(--secondary);
    padding-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ranking-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.ranking-item {
    display: flex;
    align-items: center;
    background-color: rgba(238, 237, 240, 0.05);
    padding: 10px 15px;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.ranking-item:hover {
    background-color: rgba(238, 237, 240, 0.1);
}

.position {
    font-weight: 700;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    margin-right: 15px;
    font-size: 0.9rem;
}

.top-1 .position { background-color: #ffd700; color: var(--dark); }
.top-2 .position { background-color: #c0c0c0; color: var(--dark); }
.top-3 .position { background-color: #cd7f32; color: var(--dark); }

.colony-name {
    flex-grow: 1;
    font-weight: 500;
    color: var(--light);
}

.points {
    font-weight: 700;
    color: var(--primary);
}

.ranking-action {
    text-align: center;
}

.btn-more {
    display: inline-block;
    width: 100%;
    text-align: center;
    border: 2px solid var(--primary);
    color: var(--primary);
    text-decoration: none;
    padding: 10px 20px;
    font-weight: 600;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.btn-more:hover {
    background-color: var(--primary);
    color: var(--light);
    box-shadow: 0 4px 12px rgba(255, 107, 13, 0.2);
}

/* ==========================================================================
   6. Intégration Vidéo & Configuration des Liens
   ========================================================================= */
.video-responsive {
    position: relative;
    padding-bottom: 56.25%; 
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.video-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Conteneur global de la mise en page des liens */
.links-layout {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Rangée spécifique pour aligner les 3 réseaux */
.social-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 colonnes égales */
    gap: 12px;
}

/* Style de base de tous les boutons de liens */
.btn-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px; /* Espace entre l'icône Bootstrap et le texte */
    background-color: var(--dark);
    color: var(--light);
    text-decoration: none;
    padding: 15px;
    font-weight: 600;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
    text-align: center;
}

/* Ajustement de la taille de l'icône */
.btn-link i {
    font-size: 1.2rem;
}

/* Fonds spécifiques pour les boutons sur toute la ligne */
.btn-wiki { background-color: var(--color-wiki); }
.btn-cafe { background-color: var(--primary); }

/* Effets visuels au survol */
.btn-wiki:hover    { background-color: #555555; transform: translateY(-2px); }
.btn-cafe:hover    { background-color: var(--secondary); transform: translateY(-2px); }
.btn-discord:hover { background-color: var(--color-discord); transform: translateY(-2px); }
.btn-youtube:hover { background-color: var(--color-youtube); transform: translateY(-2px); }
.btn-twitch:hover  { background-color: var(--color-twitch); transform: translateY(-2px); }


/* ==========================================================================
   7. Mode Responsive (Mobile & Tablettes)
   ========================================================================= */
@media (max-width: 768px) {
    .hero-banner {
        height: 500px;
        padding: 40px 20px;
    }
    
    .hero-footer {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .hero-header h1 {
        font-size: 2.5rem;
    }

    .content-wrapper, 
    .media-links-wrapper {
        grid-template-columns: 1fr;
        padding: 0 20px;            
        gap: 35px;
    }

    .media-links-wrapper {
        margin-bottom: 40px;
    }

    .description-gallery {
        flex-direction: column;
        gap: 15px;
    }

    .description-gallery img {
        width: 100%;
    }

    /* Sur petit écran mobile, la rangée de 3 boutons passe en liste les uns sous les autres */
    .social-row {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   8. Section Conseils (Ajout récent)
   ========================================================================= */
.tips-wrapper {
    max-width: 100%;
    margin: 20px auto 80px auto;         
    padding: 0 10%;            
}

.tips-wrapper h2 {
    color: var(--primary);      
    font-size: 1.8rem;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Grille de 3 colonnes égales */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

/* Style individuel des cartes de conseils (reprend l'esprit de .ranking-card) */
.tip-card {
    background-color: var(--dark);
    border: 1px solid rgba(173, 97, 81, 0.2);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    color: var(--light);
}

.tip-card h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--light);
    border-bottom: 2px solid var(--secondary);
    padding-bottom: 8px;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tip-card h3 i {
    color: var(--primary);
    font-size: 1.3rem;
}

.tip-card p {
    line-height: 1.6;
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Règle demandée : Mots importants en gras et orange */
.tip-card strong {
    color: var(--primary);
    font-weight: 600;
}

/* Intégration dans le Responsive existant (tablettes / mobiles) */
@media (max-width: 768px) {
    .tips-wrapper {
        padding: 0 20px;
        margin-bottom: 60px;
    }

    .tips-grid {
        grid-template-columns: 1fr; /* Passe sur une seule colonne sur mobile */
        gap: 20px;
    }
}

/* ==========================================================================
   9. Section Calendrier Interactif (Ajout récent)
   ========================================================================= */
.calendar-wrapper {
    max-width: 100%;
    margin: 20px auto 80px auto;         
    padding: 0 10%;            
}

.calendar-wrapper h2 {
    color: var(--primary);      
    font-size: 1.8rem;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Disposition en 2 colonnes : Liste à gauche (1fr), Détails à droite (1.5fr) */
.calendar-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 30px;
    align-items: start;
}

/* Conteneur de la liste des dates */
.calendar-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Élément de la liste */
.calendar-item {
    display: flex;
    align-items: center;
    background-color: var(--dark);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 12px 18px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.calendar-item:hover {
    background-color: rgba(238, 237, 240, 0.08);
    transform: translateX(5px);
}

/* État actif (cliqué) */
.calendar-item.active {
    border-left: 5px solid var(--primary);
    background-color: rgba(255, 107, 13, 0.1);
}

/* Badge de la date numérique */
.event-date-badge {
    background-color: rgba(238, 237, 240, 0.1);
    color: var(--light);
    font-weight: 700;
    font-size: 1.3rem;
    padding: 8px;
    min-width: 55px;
    text-align: center;
    border-radius: 6px;
    line-height: 1.1;
    margin-right: 15px;
}

.event-date-badge small {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 400;
    opacity: 0.7;
}

.calendar-item.active .event-date-badge {
    background-color: var(--primary);
    color: var(--light);
}

.event-info h4 {
    color: var(--light);
    font-size: 1.05rem;
    margin-bottom: 2px;
}

.event-info p {
    color: var(--primary);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Bloc des détails à droite */
.calendar-details {
    background-color: var(--dark);
    border: 1px solid rgba(173, 97, 81, 0.3);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    color: var(--light);
    min-height: 300px;
}

.calendar-details h3 {
    font-size: 1.6rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.detail-meta {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 15px;
}

.detail-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.calendar-details hr {
    border: 0;
    border-top: 1px solid rgba(238, 237, 240, 0.1);
    margin-bottom: 20px;
}

.calendar-details p {
    line-height: 1.7;
    font-size: 1.05rem;
    opacity: 0.95;
}

/* Responsive pour tablettes et mobiles */
@media (max-width: 768px) {
    .calendar-wrapper {
        padding: 0 20px;
    }
    
    .calendar-layout {
        grid-template-columns: 1fr; /* La boîte de détails passe sous la liste */
        gap: 20px;
    }
    
    .calendar-item:hover {
        transform: none; /* Désactive l'effet de décalage sur mobile */
    }

    .calendar-details {
        min-height: auto; /* Évite les grands espaces vides sur mobile */
        padding: 20px;
    }
    
    .detail-meta {
        flex-direction: column;
        gap: 5px;
    }
}

/* ==========================================================================
   10. Pied de page (Footer)
   ========================================================================= */
.main-footer {
    width: 100%;
    background-color: var(--dark);
    border-top: 1px solid rgba(173, 97, 81, 0.2);
    padding: 30px 10%;
    margin-top: 60px;
    color: var(--light);
}

/* Structure en tableau pour un alignement parfait sans flexbox */
.footer-container {
    display: table;
    width: 100%;
}

.footer-col {
    display: table-cell;
    vertical-align: middle;
    width: 33.333%;
    font-size: 0.95rem;
    opacity: 0.85;
}

/* Alignements spécifiques par colonne */
.footer-col-logo {
    text-align: left;
}

.footer-col-copy {
    text-align: center;
}

.footer-col-credits {
    text-align: right;
}

/* Éléments internes */
.footer-logo {
    max-height: 50px;
    width: auto;
    display: inline-block;
    vertical-align: middle;
}

.footer-col strong {
    color: var(--primary);
    font-weight: 600;
}

/* Style de l'icône de cœur */
.heart-icon {
    color: #ff3333;
    display: inline-block;
    margin: 0 2px;
    font-size: 0.9rem;
}

/* Mode Responsive pour le Footer (Mobile & Tablettes) */
@media (max-width: 768px) {
    .main-footer {
        padding: 40px 20px;
    }

    .footer-container {
        display: block; /* Annule le mode tableau */
    }

    .footer-col {
        display: block; /* Empile les colonnes les unes sous les autres */
        width: 100%;
        text-align: center;
        margin-bottom: 25px;
    }

    .footer-col:last-child {
        margin-bottom: 0; /* Enlève la marge sur la dernière colonne */
    }
}

/* ==========================================================================
   11. Interface du Wiki (Sidebar + Contenu)
   ========================================================================= */
.wiki-top-nav {
    padding: 20px 10% 0 10%;
}

.btn-back-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--light);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.btn-back-home:hover {
    color: var(--primary);
}

/* Layout principal du Wiki */
.wiki-wrapper {
    max-width: 100%;
    margin: 20px auto 40px auto;
    padding: 0 10%;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: start;
}

/* Menu de navigation latéral */
.wiki-sidebar {
    background-color: var(--dark);
    border: 1px solid rgba(173, 97, 81, 0.2);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.sidebar-category {
    margin-bottom: 25px;
}

.sidebar-category:last-child {
    margin-bottom: 0;
}

.sidebar-category h3 {
    font-size: 1.05rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(238, 237, 240, 0.1);
    padding-bottom: 5px;
}

.sidebar-category ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sidebar-category ul li a {
    display: block;
    color: var(--light);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.95rem;
    opacity: 0.8;
    transition: all 0.2s ease;
}

.sidebar-category ul li a:hover {
    background-color: rgba(238, 237, 240, 0.05);
    opacity: 1;
    color: var(--primary);
}

/* Onglet actif dans le menu */
.sidebar-category ul li a.active {
    background-color: var(--primary);
    color: var(--light);
    font-weight: 600;
    opacity: 1;
}

/* Zone d'affichage du texte */
.wiki-content-box {
    background-color: var(--dark);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    color: var(--light);
    min-height: 450px;
}

/* Formatage du faux-markdown */
.markdown-body h1 {
    font-size: 2rem;
    color: var(--light);
    margin-bottom: 20px;
    border-bottom: 2px solid var(--secondary);
    padding-bottom: 10px;
}

.markdown-body h3 {
    font-size: 1.3rem;
    color: var(--primary);
    margin-top: 25px;
    margin-bottom: 12px;
}

.markdown-body p {
    line-height: 1.7;
    font-size: 1.05rem;
    opacity: 0.9;
    margin-bottom: 15px;
}

.markdown-body li {
    margin-left: 20px;
    margin-bottom: 8px;
    line-height: 1.6;
    opacity: 0.9;
}

.markdown-body strong {
    color: var(--primary);
    font-weight: 600;
}

/* Responsive Wiki */
@media (max-width: 768px) {
    .wiki-top-nav {
        padding: 20px 20px 0 20px;
    }
    
    .wiki-wrapper {
        grid-template-columns: 1fr; /* Sidebar passe au dessus sur Mobile */
        padding: 0 20px;
        gap: 25px;
    }

    .wiki-content-box {
        padding: 25px;
    }
}

/* ==========================================================================
   12. PAGE D'ACCUEIL PRINCIPALE (HORS-EVENT)
   ========================================================================= */

/* Structure Générique des Sections de l'accueil */
.home-section {
    max-width: 100%;
    margin: 60px auto;
    padding: 0 10%;
}

.home-section h2 {
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Hero Banner Spécifique Accueil --- */
.home-hero {
    position: relative;
    width: 100%;
    height: 450px;
    background: linear-gradient(rgba(22, 20, 25, 0.6), rgba(22, 20, 25, 0.9)), url('../../assets/picture/home/hero-bg.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-bottom: 3px solid var(--primary);
}

.hero-overlay h1 {
    font-size: 4rem;
    color: var(--light);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 10px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.hero-tagline {
    font-size: 1.4rem;
    color: var(--light);
    opacity: 0.9;
    margin-bottom: 30px;
}

.hero-tagline strong { color: var(--primary); }

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    width: 100%;
    padding: 0 15px;
}

.btn-home-discord {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    padding: 14px 30px;
    font-weight: 600;
    border-radius: 25px;
    transition: all 0.3s ease;
    background-color: var(--color-discord); 
    color: var(--light);
    max-width: 100%;
    text-align: center;
    justify-content: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-home-discord:hover { 
    background-color: #4350dc; 
    transform: translateY(-2px); 
}

/* --- Section Présentation (Style Asymétrique & Très Épuré) --- */
.intro-split-container {
    max-width: 100%;
    margin: 80px auto;
    padding: 0 15%; /* Laisse les côtés bien vides et aérés sur PC */
    display: grid;
    grid-template-columns: 1fr 1.5fr; /* Titre à gauche, texte à droite */
    gap: 60px;
    align-items: center;
}

.intro-split-title h2 {
    font-size: 2.4rem;
    color: var(--light);
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.intro-split-title h2 span {
    color: var(--primary);
    font-weight: 800;
}

.title-line {
    width: 60px;
    height: 4px;
    background-color: var(--primary);
    border-radius: 2px;
}

.intro-split-text p {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--light);
    opacity: 0.85;
    text-align: justify;
}

.intro-split-text p:last-child {
    margin-bottom: 0;
}

.intro-split-text strong {
    color: var(--primary);
    font-weight: 600;
}

/* --- Section Carrousel des Jeux --- */
.carousel-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.carousel-track-container {
    overflow: hidden;
    width: 100%;
}

.carousel-track {
    display: flex;
    gap: 20px;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.carousel-card {
    min-width: calc(25% - 15px); /* 4 éléments visibles sur PC */
    background-color: var(--dark);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(173, 97, 81, 0.2);
}

.carousel-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.card-info {
    padding: 15px;
    text-align: center;
}

.card-info h3 {
    color: var(--light);
    font-size: 1.1rem;
}

.carousel-btn {
    background-color: var(--primary);
    border: none;
    color: var(--light);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: background 0.2s;
    z-index: 2;
}

.carousel-btn:hover { background-color: var(--secondary); }

/* --- Section les 3 points (Pillars) avec images --- */
.pillars-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.pillar-row {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    align-items: center;
    background-color: var(--dark);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.pillar-row.reverse {
    grid-template-columns: 1.5fr 1fr;
}

/* Conteneur de l'image (effet cadre moderne pour les images non détourées) */
.pillar-img {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(238, 237, 240, 0.03); /* Léger fond pour intégrer l'image */
    padding: 10px;
    border-radius: 12px;
    width: 100%;
}

.pillar-img img {
    width: 100%;
    max-height: 250px; 
    object-fit: contain; /* L'image garde ses proportions sans être rognée */
    border-radius: 8px; /* Coins légèrement arrondis pour un look moderne et intégré */
}

.pillar-text { color: var(--light); }
.pillar-text h3 {
    color: var(--primary);
    font-size: 1.4rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pillar-text p { line-height: 1.6; opacity: 0.9; }
.pillar-text strong { color: var(--primary); }

/* --- Section Calendrier / Planning Tableau --- */
.schedule-table-box {
    background-color: var(--dark);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(173, 97, 81, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    color: var(--light);
}

.schedule-table th, .schedule-table td {
    padding: 18px 25px;
}

.schedule-table th {
    background-color: rgba(255, 107, 13, 0.1);
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.schedule-table tbody tr {
    border-bottom: 1px solid rgba(238, 237, 240, 0.05);
}

.schedule-table tbody tr:last-child { border-bottom: none; }
.schedule-table tbody tr:hover { background-color: rgba(238, 237, 240, 0.02); }
.schedule-table td strong { color: var(--primary); }

.time-label {
    color: rgba(238, 237, 240, 0.6);
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-block;
    margin-top: 4px;
}

.badge-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Badges de base et réseaux */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}
.badge.discord { background-color: rgba(88, 101, 242, 0.2); color: #5865F2; }
.badge.game { background-color: rgba(255, 107, 13, 0.2); color: var(--primary); }
.badge.twitch { background-color: rgba(145, 70, 255, 0.2); color: #9146FF; }

/* Badges de jeux spécifiques */
.badge.game-ets2 {
    background-color: rgba(13, 110, 253, 0.15);
    color: #0d6efd;
    border: 1px solid rgba(13, 110, 253, 0.3);
}

.badge.game-repo {
    background-color: rgba(25, 135, 84, 0.15);
    color: #198754;
    border: 1px solid rgba(25, 135, 84, 0.3);
}

.badge.game-supermarket {
    background-color: rgba(255, 193, 7, 0.15);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

/* --- Mode Responsive Accueil --- */
@media (max-width: 768px) {
    .home-section { padding: 0 20px; margin: 40px auto; }
    
    .intro-split-container {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 20px; 
        margin: 40px auto;
    }
    
    .intro-split-title h2 { font-size: 2rem; }
    .intro-split-text p { font-size: 1.05rem; text-align: left; }
    
    .hero-overlay h1 { font-size: 2.5rem; }
    .hero-tagline { font-size: 1.1rem; }
    
    .hero-buttons { 
        flex-direction: column; 
        gap: 10px; 
        padding: 0 20px; 
    }
    
    .btn-home-discord {
        font-size: 1rem;
        padding: 12px 20px;
        width: 100%;
    }

    .carousel-card { min-width: calc(100% - 10px); } 
    
    .pillar-row, .pillar-row.reverse {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .pillar-row.reverse .pillar-text { order: 1; }
    .pillar-row.reverse .pillar-img { order: 2; }
    
    .pillar-img img {
        max-height: 200px;
    }

    .schedule-table th, .schedule-table td { padding: 12px 10px; font-size: 0.9rem; }
}

/* ==========================================================================
   NAVBAR COMPONENT (Style Épuré, Strict & Cohérent)
   ========================================================================= */

.main-header {
    width: 100% !important;
    background-color: #161419 !important; /* Force le fond sombre officiel du Café Jeux */
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 9999 !important; /* Reste toujours au-dessus du Hero et des éléments */
    box-sizing: border-box !important;
}

.navbar {
    max-width: 100% !important;
    height: 80px !important;
    margin: 0 auto !important;
    padding: 0 15% !important; /* Aligné pile sur les grands espaces de ton intro */
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    box-sizing: border-box !important;
}

/* --- Bloc Logo (Ajustement strict de la taille) --- */
.nav-logo {
    display: flex !important;
    align-items: center !important;
}

.nav-logo a {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    text-decoration: none !important;
}

/* On force l'image à ne pas dépasser, peu importe les règles globales du site */
.nav-logo a img {
    height: 40px !important;
    width: 40px !important; /* Taille fixe carrée pour le logo */
    min-width: 40px !important;
    max-width: 40px !important;
    object-fit: contain !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.nav-logo a span {
    color: #eeeef0 !important; /* var(--light) */
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    white-space: nowrap !important;
}

/* --- Boutons et Actions --- */
.nav-actions {
    display: flex !important;
    align-items: center !important;
}

/* Bouton Se Connecter */
.btn-nav-connect {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    text-decoration: none !important;
    color: #eeeef0 !important;
    background-color: transparent !important;
    border: 2px solid #ff6b0d !important; /* var(--primary) */
    padding: 10px 22px !important;
    border-radius: 20px !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
}

.btn-nav-connect:hover {
    background-color: #ff6b0d !important;
    color: #eeeef0 !important;
    box-shadow: 0 4px 15px rgba(255, 107, 13, 0.4) !important;
}

/* Bouton Profil Connecté */
.btn-nav-profile {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    text-decoration: none !important;
    color: #eeeef0 !important;
    background-color: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 8px 16px !important;
    border-radius: 25px !important;
    font-weight: 500 !important;
    font-size: 0.95rem !important;
    transition: all 0.2s ease !important;
}

.btn-nav-profile:hover {
    background-color: rgba(255, 255, 255, 0.08) !important;
    border-color: #ff6b0d !important;
}

/* Avatar dans la Navbar */
.nav-avatar {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    max-width: 30px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 1px solid #ff6b0d !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* --- Version Mobile --- */
@media (max-width: 768px) {
    .navbar {
        padding: 0 20px !important; /* Moins d'espace sur les côtés uniquement sur mobile */
        height: 70px !important;
    }
    
    .nav-logo a span {
        display: none !important; /* Cache "Le Café Jeux" sur smartphone pour éviter les chevauchements */
    }
    
    .btn-nav-profile span {
        display: none !important; /* N'affiche que le rond de l'avatar sur mobile */
    }
    
    .btn-nav-profile {
        padding: 6px !important;
        border-radius: 50% !important;
    }
}