/* Variables CSS */
:root {
    --primary-color: #003366; /* Bleu foncé de la mairie */
    --secondary-color: #0066cc; /* Bleu clair de la mairie */
    --accent-color: #ff9900; /* Orange pour les accents */
    --text-color: #333333;
    --bg-color: #f5f5f5;
    --card-bg: #ffffff;
    --shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --header-height: 80px;
}

/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

/* Header et Navigation */
header {
    background-color: rgba(0, 51, 102, 0.9);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
    transition: background-color 0.3s ease;
}
header.scrolled {
    background-color: rgba(0, 51, 102, 0.95);
}
nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}
.nav-menu {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    list-style: none;
    gap: 2rem;
}
.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}
.nav-menu a:hover {
    color: var(--secondary-color);
    background-color: rgba(255, 255, 255, 0.1);
}
.nav-menu a[aria-current="page"] {
    color: var(--secondary-color);
    background-color: rgba(255, 255, 255, 0.05);
}
/* Hamburger menu */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    margin-left: auto;
}
.hamburger-line {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px 0;
    transition: 0.3s ease;
}
/* Ajustement du main pour le header fixe */
main {
    margin-top: var(--header-height);
}

.logo {
    height: 50px;
    width: auto;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><rect width="1" height="1" fill="rgba(255,255,255,0.05)"/></svg>');
    opacity: 0.1;
}

.hero-section h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.hero-section p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.2rem;
    position: relative;
}

/* Content Grid */
.content-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    padding: 4rem 2rem;
    max-width: 1600px;
    margin: 0 auto;
    margin-bottom: 0;
}

.about-city {
    grid-column: 1 / -1;
    position: relative;
    overflow: hidden;
    min-height: 570px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 10.5rem;
    margin: 0 auto;
}

.about-city .youtube-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.about-city .youtube-background iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%) scale(1.2);
    pointer-events: none;
    object-fit: cover;
}

.about-city::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.about-city .about-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.about-city h2 {
    color: white;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.about-city p {
    color: white;
    font-size: 1.1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    line-height: 1.6;
}

.about-city .social-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.about-city .social-icons a {
    color: white;
    font-size: 1.8rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.about-city .social-icons a:hover {
    transform: translateY(-5px);
}

.about-city .social-icons .fa-facebook:hover {
    color: #1877f2;
}

.about-city .social-icons .fa-instagram:hover {
    color: #e4405f;
}

.about-city .social-icons .fa-twitter:hover {
    color: #1da1f2;
}

.about-city .social-icons .fa-youtube:hover {
    color: #ff0000;
}

.about-city .social-icons .fa-linkedin:hover {
    color: #0077b5;
}

.role, .team {
    grid-column: span 1; /* Chaque section prend une colonne */
}

.network {
    grid-column: 1 / -1; /* Prend toute la largeur */
}

/* Article Styles */
article {
    background-color: var(--card-bg);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    min-height: 400px;
}

article:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

article h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

article h3 {
    color: var(--secondary-color);
    margin: 1.5rem 0 1rem;
    font-size: 1.2rem;
}

article p {
    color: var(--text-color);
    margin-bottom: 1rem;
}

/* Missions List */
.missions-list {
    list-style: none;
    margin: 1rem 0;
}

.missions-list li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
    padding: 0.8rem 1rem;
    background-color: var(--primary-color);
    color: white;
    border-radius: 6px;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.missions-list li:hover {
    background-color: var(--secondary-color);
    transform: translateX(5px);
}

.missions-list i {
    color: var(--accent-color);
    width: 24px;
    font-size: 1.2rem;
}

/* Team Section */
.team-section {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.team-section h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid var(--secondary-color);
}

.team-section ul {
    list-style: none;
}

.team-section ul li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
    padding: 0.8rem 1rem;
    background-color: var(--primary-color);
    color: white;
    border-radius: 6px;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.team-section ul li:hover {
    background-color: var(--secondary-color);
    transform: translateX(5px);
}

.team-section ul li i {
    color: var(--accent-color);
    width: 24px;
    font-size: 1.2rem;
}

/* Network Topology */
.network {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.network h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 1.8rem;
    text-align: center;
}

.network-diagram {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    background-color: var(--bg-color);
    border-radius: 8px;
}

.network-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 1.5rem;
    width: 100%;
    margin-top: 0;
}

footer a {
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

footer a:hover {
    color: var(--secondary-color);
}

/* Media Queries */
@media screen and (max-width: 1024px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section p {
        font-size: 1.1rem;
    }

    .content-grid {
        grid-template-columns: 1fr;
        max-width: 1200px;
    }
}

@media screen and (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: var(--primary-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: var(--transition);
        padding: 2rem;
        box-shadow: -2px 0 5px rgba(0, 0, 0, 0.2);
    }

    .nav-menu.active {
        right: 0;
    }

    .hamburger.active .hamburger-line:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

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

    .hamburger.active .hamburger-line:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    nav {
        padding: 0 1rem;
    }

    .logo {
        height: 40px;
    }

    .hero-section {
        padding: 3rem 1rem;
    }
    
    .hero-section h1 {
        font-size: 1.75rem;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
        gap: 1.5rem;
    }

    .network {
        padding: 1rem;
    }

    .network-diagram {
        padding: 0.5rem;
    }

    .missions-list li,
    .team-section ul li {
        padding: 0.6rem 0.8rem;
        font-size: 0.95rem;
    }

    .about-city {
        min-height: 400px;
        padding: 2rem;
    }

    .about-city .about-content {
        max-width: 100%;
        padding: 0 1rem;
    }

    .about-city h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .about-city p {
        font-size: 1rem;
        line-height: 1.4;
    }

    .about-city .youtube-background iframe {
        width: 150%;
        height: 150%;
        transform: translate(-50%, -50%) scale(1.2);
    }

    .about-city .social-icons {
        gap: 1rem;
        margin-top: 1.5rem;
    }

    .about-city .social-icons a {
        font-size: 1.5rem;
    }
}

@media screen and (max-width: 480px) {
    .hero-section h1 {
        font-size: 1.5rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    article {
        padding: 1.5rem;
    }
    
    .content-grid {
        padding: 0.5rem;
    }

    .network {
        padding: 0.8rem;
    }

    .network h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .missions-list li,
    .team-section ul li {
        padding: 0.5rem 0.7rem;
        font-size: 0.9rem;
    }

    .missions-list i,
    .team-section ul li i {
        font-size: 1rem;
    }

    .about-city {
        min-height: 300px;
        padding: 1.5rem;
    }

    .about-city .about-content {
        padding: 0 0.5rem;
    }

    .about-city h2 {
        font-size: 1.3rem;
    }

    .about-city p {
        font-size: 0.9rem;
        line-height: 1.3;
    }

    .about-city .youtube-background iframe {
        width: 200%;
        height: 200%;
        transform: translate(-50%, -50%) scale(1.2);
    }

    .about-city .social-icons {
        gap: 0.8rem;
        margin-top: 1rem;
    }

    .about-city .social-icons a {
        font-size: 1.3rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-section {
    animation: fadeIn 1s ease-out;
}

/* Optimisations des performances */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Section avec vidéo en arrière-plan */
.video-section {
    position: relative;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 4rem 2rem;
}

.youtube-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.youtube-background iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 100vh;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.video-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.video-section .content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.video-section h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.video-section p {
    color: white;
    font-size: 1.2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.network-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.network-btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    background-color: #2c3e50;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
    cursor: pointer;
    z-index: 10;
    position: relative;
}

.network-btn i {
    margin-right: 8px;
}

.network-btn:hover {
    background-color: #34495e;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    color: white;
}

.network-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}




