/* --- VARIABLES DE LA CHARTE GRAPHIQUE (THÈME SOIRÉE) --- */
:root {
    --purple-dark: #150524;     /* Violet très sombre */
    --purple-medium: #3A105E;   /* Violet vibrant */
    --purple-light: #6A1CB5;    /* Violet lumineux */
    --yellow-accent: #FFBF00;
    --off-white: #F1E8E1;
    --bg-light: #220B3B;        /* Fond des blocs (thème nuit) */
}

/* --- RESET & CORRECTION DE L'OVERFLOW --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

html, body {
    width: 100%;
    max-width: 100vw; 
    overflow-x: hidden !important; 
    position: relative; 
}

body {
    color: var(--off-white); 
    background-color: #000000; 
}

body.no-scroll {
    overflow: hidden !important;
    height: 100vh;
}

/* --- ARRIÈRE-PLAN VIDÉO ET FILTRE COLORÉ SOIRÉE --- */
.video-background {
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh; 
    z-index: -1; 
    overflow: hidden;
}

#bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1; 
    transition: opacity 1s ease-in-out;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2; 
    pointer-events: none; 
    /* Dégradé Violet Foncé pour le thème soirée */
    background: linear-gradient(
        180deg, 
        rgba(21, 5, 36, 0.95) 0%, 
        rgba(58, 16, 94, 0.70) 50%, 
        rgba(21, 5, 36, 0.98) 100%
    ); 
}

/* --- EN-TÊTE / NAVBAR --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 4rem;
    position: relative;
    z-index: 100;
}

.nav-left, .nav-right { flex: 1; }
.nav-left ul { display: flex; list-style: none; gap: 2rem; }
.nav-left a {
    color: var(--off-white);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: color 0.3s ease;
}
.nav-left a:hover { color: var(--yellow-accent); }

/* MENUS DÉROULANTS */
.has-dropdown { position: relative; }
.submenu {
    position: absolute;
    top: calc(100% + 15px); 
    left: 0;
    background-color: var(--purple-dark); 
    min-width: 200px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
    border-radius: 8px;
    padding: 0.5rem 0;
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex;
    flex-direction: column;
}
.submenu li { list-style: none; width: 100%; }
.submenu li a {
    padding: 0.8rem 1.5rem;
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
}
.submenu li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--yellow-accent);
    padding-left: 1.8rem; 
}
.has-dropdown:hover .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.arrow { display: inline-block; transition: transform 0.3s ease; font-size: 0.6rem; }
.has-dropdown:hover .arrow { transform: rotate(180deg); }

/* BOUTONS ET ICÔNES HEADER */
.hamburger { display: none; cursor: pointer; flex-direction: column; gap: 5px; z-index: 10000; }
.hamburger .bar { width: 25px; height: 3px; background-color: var(--off-white); border-radius: 5px; transition: all 0.3s ease; }
.logo img { height: 40px; }
.nav-right { display: flex; justify-content: flex-end; align-items: center; gap: 1.5rem; }

.login-btn {
    background-color: var(--yellow-accent); color: var(--purple-dark);
    padding: 0.6rem 1.5rem; border-radius: 20px; text-decoration: none; font-weight: 700;
    font-size: 0.9rem; transition: all 0.3s ease;
}
.login-btn:hover { background-color: var(--off-white); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255,191,0,0.3); }

/* --- SECTION VILLAGE --- */
.village-section {
    padding: 2rem 6rem 8rem 6rem;
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.village-header {
    text-align: center;
    max-width: 800px;
    margin-bottom: 3rem;
}

.village-header h1 {
    font-size: 4.5rem;
    font-weight: 900;
    color: #FFFFFF;
    text-transform: uppercase;
    letter-spacing: -1px;
    line-height: 1.1;
    margin-bottom: 1rem;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.village-header p {
    font-size: 1.2rem;
    font-weight: 500;
    color: rgba(241, 232, 225, 0.9);
}

/* BANNIÈRE D'INFORMATIONS */
.village-info-banner {
    display: flex;
    gap: 3rem;
    background: rgba(45, 20, 69, 0.8);
    border: 1px solid var(--purple-light);
    padding: 1.5rem 3rem;
    border-radius: 12px;
    margin-bottom: 4rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.info-block {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.info-icon { font-size: 2rem; }
.info-block h4 { color: var(--yellow-accent); font-size: 1rem; margin-bottom: 0.2rem; text-transform: uppercase;}
.info-block p { color: var(--off-white); font-size: 0.95rem; font-weight: 500;}

/* GRILLE DES CARTES */
.village-grid {
    width: 100%;
    max-width: 1200px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
}

.village-card {
    background-color: var(--bg-light); /* Cartes sombres adaptées au thème nuit */
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.village-card:hover {
    box-shadow: 0 15px 40px rgba(106, 28, 181, 0.2);
    transform: translateY(-5px);
    border-color: var(--purple-light);
}

.village-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 2;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.badge-purple {
    background-color: var(--purple-light);
    color: #FFFFFF;
}

.village-image {
    width: 100%;
    height: 220px;
    background-color: var(--purple-dark); 
    overflow: hidden;
}

.village-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    filter: brightness(0.9);
}

.village-card:hover .village-image img { transform: scale(1.05); filter: brightness(1.1); }

.village-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.village-meta {
    font-size: 0.75rem;
    color: var(--yellow-accent);
    margin-bottom: 0.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.village-name {
    font-size: 1.4rem;
    font-weight: 900;
    color: #FFFFFF;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.village-desc {
    color: #D1C5DF;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.village-colors {
    display: flex;
    gap: 0.4rem;
    margin-top: auto; 
    justify-content: flex-end;
}

.color-dot { width: 15px; height: 15px; border-radius: 2px; }
.color-dot.yellow { background-color: var(--yellow-accent); }
.color-dot.purple-dark { background-color: var(--purple-dark); }
.color-dot.purple-light { background-color: var(--purple-light); }

/* --- RESPONSIVE MOBILE --- */
@media screen and (max-width: 1024px) {
    .village-header h1 { font-size: 3.5rem; }
    .village-section { padding: 2rem 2rem 6rem 2rem; }
}

@media screen and (max-width: 768px) {
    .navbar { padding: 1.5rem; }
    
    .nav-left ul#nav-menu {
        position: fixed; top: 0; left: -100%; width: 280px; height: 100vh;
        background: rgba(21, 5, 36, 0.98); flex-direction: column; justify-content: center;
        align-items: center; gap: 3rem; transition: left 0.4s ease; z-index: 9999; 
    }
    .nav-left ul.active { left: 0; }
    .hamburger { display: flex; }
    .hamburger.active { position: fixed; top: 2rem; left: 1.5rem; }
    .hamburger.active .bar { background-color: var(--yellow-accent); } 
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .village-section { padding: 2rem 1.5rem 4rem 1.5rem; }
    .village-header h1 { font-size: 2.5rem; }
    
    .village-info-banner { flex-direction: column; gap: 1.5rem; padding: 1.5rem; }
    .village-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* --- FOOTER STYLÉ --- */
.site-footer {
    background-color: var(--purple-dark);
    padding: 3rem 4rem;
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: center;
}
.footer-content { max-width: 1200px; width: 100%; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 2rem; }
.footer-socials { display: flex; gap: 2.5rem; }
.social-link { display: flex; align-items: center; gap: 0.6rem; color: var(--off-white); font-weight: 600; text-decoration: none;}
.social-link svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2;}
.social-link:hover { color: var(--yellow-accent); }
@media screen and (max-width: 768px) {
    .site-footer { padding: 2.5rem 1.5rem; }
    .footer-content { flex-direction: column; text-align: center; }
}