/* custom.css - Refonte Responsive & Navbar */

/* 1. Global & Utility Overrides */
.container {
    width: 100% !important;
    max-width: 1000px !important;
    padding: 0 25px; /* Augmenté pour éviter l'effet collé aux bords sur mobile */
    box-sizing: border-box;
    margin: 0 auto;
}

img {
    max-width: 100%;
    height: auto;
}

body {
    padding-top: 85px; /* Compense la navbar fixed */
}

/* 2. Sticky Navigation Bar -> Fixed Navigation Bar */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.8);
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 80px;
}

.nav-logo a {
    color: #fff;
    font-size: 1.8em;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 2px;
}

.nav-logo a strong {
    color: #EA7B29;
}

.nav-links {
    display: flex;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li a {
    color: #FFF;
    text-decoration: none;
    font-size: 1em;
    font-weight: 600;
    text-transform: uppercase;
    padding: 10px 15px;
    border-radius: 4px;
    transition: background 0.3s, color 0.3s;
}

.nav-links li.active a,
.nav-links li a:hover {
    background: #EA7B29;
    color: #fff;
}

/* Hamburger Icon */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.hamburger span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: #FFF;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* 3. Hero Section & Typography */
#hero {
    text-align: center;
    padding: 40px 0 0 0;
    background: #000;
}

.seo-h1 {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.image-full {
    display: block;
    width: 100%;
    border-radius: 8px; /* Slightly modern edge */
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    margin-bottom: 2em;
}

/* 4. Content Area */
#page-wrapper {
    padding: 3em 0;
}

.news-title {
    color: #EA7B29 !important;
    margin: 40px 0 20px 0 !important;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

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

.video-spacer {
    height: 40px;
}

/* 5. Footer Socials */
.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.social-links img {
    transition: transform 0.3s;
}

.social-links img:hover {
    transform: scale(1.1);
}

/* 6. Media Queries for Mobile/Tablet */
@media screen and (max-width: 768px) {
    /* Navbar adjust */
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 81px; /* Just below navbar */
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.98);
        border-bottom: 2px solid #EA7B29;
        flex-direction: column;
        align-items: center;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-out;
    }

    .nav-links.active {
        max-height: 400px;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links li a {
        display: block;
        padding: 20px;
        border-radius: 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .nav-links li:last-child a {
        border-bottom: none;
    }
    
    #welcome .title h2 {
        font-size: 1.8em !important;
        line-height: 1.3;
    }
    
    #welcome {
        padding: 0 30px !important; /* Ajoute encore plus d'espace sur mobile pour le texte */
    }
    
    #welcome .content {
        padding: 0 15px !important;
    }
}
