/*
Theme Name: Mon theme
Description: Thème personnalisé pour Impulse
Version: 1.0.0
Author: Impulse
*/

/* === VARIABLES CSS UNIFIÉES === */
:root {
    /* Couleurs principales */
            --primary-blue: #1B3083;
            --accent-green: #11dd9e;
    --dark-blue: #010D3B;
    --bg-dark: #050a18;
    
    /* Couleurs texte */
            --text-dark: #1a1a1a;
            --text-light: #ffffff;
    --text-muted: #a0a0a0;
    
    /* Couleurs background */
            --gray-bg: #f9f9f9;
    --white: #ffffff;
    
    /* Anciennes variables (compatibilité) */
    --blue: #1B3083;
    --green: #11DD9E;
    --mint-green: #11DD9E;
    --neon-green: #11dd9e;
        }

*{
    font-family: raleway;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    overflow-x: hidden !important;
}

body {
    margin: 0 !important;
    padding: 0 !important;
}

#page, .site {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

#content, .site-content {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

#start {
    font-family: 'Montserrat', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    background: linear-gradient(180deg, rgb(18, 19, 29), rgb(67, 86, 255));
}

.fw-extrabold { font-weight: 900; }

.text-neon {
    color: var(--neon-green);
}

#links {
    z-index: 9999;
}

#links a:hover{
    color: var(--neon-green);
    cursor: pointer;
    transform: scale(1.1);
    transition: all 0.3s ease;
}

.text-secondary-custom {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 500px;
}

.navbar-brand { letter-spacing: 2px; }
.logo-icon { color: var(--neon-green); margin-right: 5px; }
.nav-link { font-size: 0.85rem; color: white !important; }

.hero-section {
    min-height: calc(100vh - 100px);
    margin-bottom: 35px;
}

.card-selection {
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid var(--neon-green);
    border-radius: 25px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.card-selection:hover {
    box-shadow: 0 0 20px rgba(0, 255, 170, 0.2);
    transform: translateY(-5px);
}

.card-selection p{
    color: "white";
}

.neon-icon {
    filter: invert(65%) sepia(90%) saturate(1000%) hue-rotate(120deg);
}

.navbar-brand {
    letter-spacing: 4px; 
    font-size: 1.5rem !important;
}

.nav-custom-link {
    font-size: 0.9rem;
    text-transform: uppercase; 
    letter-spacing: 1.5px;
    font-weight: 400;
    transition: color 0.3s ease;
    position: relative;
}

.nav-custom-link:hover {
    color: var(--neon-green) !important;
}

@media (min-width: 992px) {
    .navbar-nav {
        margin-right: 2rem; 
    }
}


.bg-darker {
    background-color: #030712;
}

.text-neon-dark {
    color: #00cc88; 
}

.img-frame {
    position: relative;
    padding-left: 20px;
    border-left: 5px solid var(--neon-green);
}

.section-agency {
    background: linear-gradient(rgba(5, 10, 24, 0.8), rgba(5, 10, 24, 0.8)), url('./images/fond-handball.jpg');
    min-height:60vh;
    background-size: cover;
    background-position: center;
}

#notre-histoire {
    background: linear-gradient(to top, rgb(6, 22, 94), rgb(1, 33, 104), rgb(0, 0, 0));
    h2 {
        font-size: xx-large;
    }
}

#links a:hover {
    color: var(--neon-green);
    cursor: pointer;
    transform: scale(1.1);
}


html {
    scroll-behavior: smooth;
}

.hero {
    min-height: 50vh;
    background-color: #7EF0C8; 
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero h1 {
    color: #0B2C5D;
    font-weight: 700;
    letter-spacing: 1px;
}

.hero p {
    color: #0B2C5D;
    opacity: 0.8;
    margin-top: 15px;
    margin-bottom: 30px;
}

.btn-custom {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(27, 48, 131, 0.3);
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.btn-custom:hover {
    background-color: var(--dark-blue);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(27, 48, 131, 0.4);
}

.header-section {
    background-color: #fff;
    padding: 60px 0 40px;
    border-bottom: 1px solid #eaeaea;
}
.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
}
.page-subtitle {
    font-size: 1.1rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto 30px;
    line-height: 1.6;
}
.separator {
    width: 80px;
    height: 3px;
    background-color: #007bff;
    margin: 0 auto 40px;
}
.projects-section {
    padding: 60px 0;
}
.project-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    border-left: 4px solid #007bff;
}
.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}
.project-category {
    font-size: 0.9rem;
    font-weight: 600;
    color: #007bff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}
.project-description {
    font-size: 1rem;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.5;
}
.project-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
}
.project-link:hover {
    color: #0056b3;
    text-decoration: underline;
}
.project-link::after {
    content: "→";
    margin-left: 5px;
    transition: transform 0.2s;
}
.project-link:hover::after {
    transform: translateX(3px);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
@media (max-width: 992px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 576px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
    .page-title {
        font-size: 2.2rem;
    }
    .page-subtitle {
        font-size: 1rem;
        padding: 0 20px;
    }
}

:root {
    --primary-blue: #1a2b56;
}

.service-title {
    color: var(--primary-blue);
    font-size: 2.25rem;
    letter-spacing: -0.02em;
}

.custom-list li {
    font-weight: 500;
    color: #2c3e50;
}

.bullet {
    width: 6px;
    height: 6px;
    background-color: var(--primary-blue);
    border-radius: 50%;
    display: inline-block;
}

@media (max-width: 991.98px) {
    .service-title {
        font-size: 1.75rem;
    }
}

.img-fluid:hover {
    transform: translateY(-5px);
    transition: transform 0.3s ease-in-out;
}

.clients-list {
    /*display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: center;*/
    overflow-x: hidden;
}


:root {
    --deep-blue: #1a2b56;
    --emerald: #00f2a1;
}

.text-emerald { color: var(--emerald); }
.bg-deep-blue { background-color: var(--deep-blue); }

.icon-box {
    background-color: var(--emerald);
    color: white;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 1.2rem;
}

.opening-hours {
    background-color: var(--deep-blue);
    font-size: 0.95rem;
}


.img-map {
    height: 300px;
    object-fit: cover;
}

h2 {
  margin-bottom: 20px;
}

.carousel {
  overflow: hidden;
  cursor: grab;
}

.carousel:active {
  cursor: grabbing;
}

.carousel-track {
  display: flex;
  gap: 20px;
  overflow-x: scroll;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Firefox */
}

.carousel-track::-webkit-scrollbar {
  display: none; /* Chrome */
}

.carousel-track img {
  width: 250px;
  height: 160px;
  object-fit: cover;
  border-radius: 12px;
  user-select: none;
  pointer-events: none;
}



/* --- VARIABLES & RESET --- */
        /* Les variables sont déjà définies en haut du fichier */

        a {
            text-decoration: none;
            color: inherit;
            transition: 0.3s;
        }

        ul {
            list-style: none;
        }

        img {
            max-width: 100%;
            display: block;
        }

        /* --- TYPOGRAPHIE --- */
        /* Application de Vito Wide sur les titres, avec fallback Montserrat */
        h1,
        h2,
        h3,
        h4,
        .btn,
        .badge {
            font-family: 'Vito Wide', 'Montserrat', sans-serif;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }
        
        /* Sections pleine largeur */
        section {
            width: 100% !important;
            max-width: 100% !important;
            margin-left: 0 !important;
            margin-right: 0 !important;
        }
        
        /* Pages pleine largeur */
        .clients-page,
        .services-page,
        .contact-page,
        .project-page {
            width: 100% !important;
            max-width: 100% !important;
            margin: 0 !important;
            padding: 0 !important;
        }
        
        /* Supprimer toutes les marges par défaut */
        div, p, h1, h2, h3, h4, h5, h6 {
            margin-top: 0;
            margin-bottom: 0;
        }
        
        /* S'assurer que le wrapper principal prend toute la largeur */
        .site-main,
        main {
            width: 100% !important;
            max-width: 100% !important;
            margin: 0 !important;
            padding: 0 !important;
        }

        /* --- HEADER --- */
        header {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            z-index: 1000;
            padding: 25px 0;
        }

        header .container {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .logo {
            height: 40px;
        }

        nav ul {
            display: flex;
            gap: 30px;
        }

        nav a {
            color: var(--text-light);
            font-size: 0.9rem;
            font-weight: 600;
            text-transform: uppercase;
        }

        nav a:hover {
            color: var(--accent-green);
        }

        nav a:hover,
        nav a.active {
            opacity: 1;
            color: var(--accent-green);
        }

        nav a.active {
            border-bottom: 2px solid var(--accent-green);
            padding-bottom: 5px;
        }

        /* --- HERO SECTION --- */
        #hero {
            /* Dégradé Bleu vers Vert */
            background: linear-gradient(180deg, rgba(1, 13, 59, 1), rgba(27, 48, 131, 1));
            padding-top: 140px;
            padding-bottom: 60px;
            text-align: center;
            color: var(--text-light);
            position: relative;
        }

        /* Overlay optionnel pour texture si l'image hero-clients-bg est présente */
        #hero::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            opacity: 0.15;
            pointer-events: none;
        }

        .hero-content {
            position: relative;
            z-index: 1;
        }

        #hero h1 {
            font-size: 3.5rem;
            font-weight: 900;
            text-transform: uppercase;
            margin-bottom: 20px;
        }

        #hero p {
            max-width: 700px;
            margin: 0 auto 50px;
            font-size: 1rem;
            opacity: 0.95;
            font-weight: 400;
        }

        /* Bandeau Logos */
        .logos-row {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 40px;
            flex-wrap: wrap;
            padding: 0 20px;
        }

        .client-logo {
            height: 55px;
            width: auto;
            filter: brightness(0) invert(1);
            /* Rend les logos blancs */
            opacity: 0.9;
            transition: opacity 0.3s;
        }

        .client-logo:hover {
            opacity: 1;
        }

        /* --- GRILLE PROJETS --- */
        #projects {
            padding: 80px 0;
            background-color: #fff;
        }

        .projects-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            /* Desktop: 3 colonnes */
            gap: 30px;
        }

        .project-card {
            background: #fff;
            border-radius: 20px;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
            display: flex;
            flex-direction: column;
            transition: transform 0.3s ease;
            height: 100%;
        }

        .project-card:hover {
            transform: translateY(-5px);
        }

        .card-img-wrapper {
            position: relative;
            height: 240px;
            width: 100%;
        }

        .card-img-wrapper img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .badge {
            position: absolute;
            top: 15px;
            right: 15px;
            background-color: var(--green);
            color: #1a1a1a;
            padding: 6px 16px;
            border-radius: 20px;
            font-size: 0.75rem;
            font-weight: 800;
            text-transform: uppercase;
        }

        .card-content {
            padding: 25px;
            flex-grow: 1;
        }

        .card-content p {
            font-size: 0.95rem;
            color: #333;
            line-height: 1.6;
            font-weight: 500;
        }

        /* --- CTA BANDEAU --- */
        #cta {
            background: linear-gradient(135deg, #A8EED8 0%, #8AE6C7 100%);
            padding: 80px 20px;
            text-align: center;
        }

        #cta h2 {
            color: var(--blue);
            font-size: 2.2rem;
            font-weight: 900;
            margin-bottom: 10px;
            text-transform: uppercase;
            line-height: 1.2;
        }

        #cta p {
            color: var(--blue);
            margin-bottom: 30px;
            font-weight: 600;
            font-size: 1.05rem;
        }

        .btn {
            display: inline-block;
            padding: 15px 40px;
            border-radius: 50px;
            font-weight: 800;
            text-transform: uppercase;
            font-size: 0.9rem;
            background-color: var(--blue);
            color: #fff;
            border: none;
            cursor: pointer;
        }

        .btn:hover {
            transform: scale(1.05);
        }

        /* --- FOOTER --- */
       footer {
            background-color: var(--primary-blue);
            color: var(--text-light);
            padding: 80px 0 30px;
            font-size: 0.9rem;
        }

        .footer-grid {
            display: grid;
            grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
            gap: 40px;
            margin-bottom: 60px;
            align-items: flex-start;
        }

        .footer-col h4 {
            font-size: 1.1rem;
            margin-bottom: 25px;
            font-weight: 800;
            text-transform: uppercase;
        }

        .footer-col ul li {
            margin-bottom: 12px;
        }

        .footer-col ul li a {
            opacity: 0.8;
            font-size: 0.9rem;
            font-weight: 500;
        }

        .footer-col ul li a:hover {
            opacity: 1;
            color: var(--accent-green);
        }

        .copyright {
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            padding-top: 30px;
            text-align: center;
            font-size: 0.85rem;
            opacity: 0.7;
            font-weight: 500;
        }

        /* --- RESPONSIVE --- */
        @media (max-width: 1024px) {

            /* Tablette */
            .projects-grid {
                grid-template-columns: repeat(2, 1fr);
            }

            #hero h1 {
                font-size: 2.8rem;
            }

            .logos-row {
                gap: 25px;
            }
        }

        @media (max-width: 768px) {

            /* Mobile */
            nav {
                display: none;
            }

            /* Menu burger simplifié */
            header {
                padding: 20px 0;
            }

            .projects-grid {
                grid-template-columns: 1fr;
            }

            .footer-grid {
                grid-template-columns: 1fr;
                text-align: center;
            }

            #hero h1 {
                font-size: 2.2rem;
            }

            #hero p {
                font-size: 0.9rem;
                padding: 0 10px;
            }
        }

/* --- PROJECT POPUP STYLES --- */
.project-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
}

.project-popup.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Bloquer le scroll du body quand la popup est active */
body.popup-open {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
    height: 100%;
}

.project-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.project-popup-content {
    position: relative;
    width: 90%;
    max-width: 1400px;
    max-height: 90vh;
    background: linear-gradient(180deg, rgba(1, 13, 59, 1), rgba(27, 48, 131, 1));
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8);
    z-index: 10001;
    display: flex;
    flex-direction: column;
    animation: popupSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes popupSlideIn {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.project-popup-header {
    padding: 40px;
    text-align: center;
    border-bottom: 2px solid rgba(17, 221, 158, 0.3);
    position: relative;
}

.project-popup-logo-wrapper {
    margin-bottom: 20px;
}

.project-popup-logo {
    max-height: 100px;
    filter: brightness(0) invert(1);
}

.project-popup-title {
    font-size: 2.5rem;
    font-weight: 900;
    text-transform: uppercase;
    color: #11dd9e;
    margin-bottom: 15px;
}

.project-popup-desc {
    color: #ffffff;
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

.project-popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: #fff;
    font-size: 36px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    line-height: 1;
}

.project-popup-close:hover {
    background: rgba(17, 221, 158, 0.3);
    border-color: #11dd9e;
    transform: rotate(90deg);
}

.project-popup-body {
    padding: 40px;
    overflow-y: auto;
    flex: 1;
    pointer-events: auto;
    position: relative;
    z-index: 1;
}

.project-popup-loading {
    text-align: center;
    color: #ffffff;
    font-size: 1.2rem;
    padding: 60px 20px;
}

.project-popup-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.project-popup-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    aspect-ratio: 1;
    cursor: pointer;
    transition: transform 0.3s;
    background: #000;
    pointer-events: auto;
}

.project-popup-gallery-item:hover {
    transform: scale(1.05);
}

.project-popup-video-item {
    aspect-ratio: 16/9;
    cursor: pointer;
    position: relative;
    pointer-events: auto;
}

.project-popup-video-item * {
    pointer-events: auto;
}

.project-popup-video-item:hover {
    transform: none;
}

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

.project-popup-gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: auto;
    cursor: pointer;
    z-index: 10;
    position: relative;
    display: block;
    background: #000;
    border-radius: 15px;
}

.project-popup-section-title {
    font-size: 2rem;
    font-weight: 900;
    text-transform: uppercase;
    color: #11dd9e;
    margin: 40px 0 20px 0;
    text-align: center;
}

.project-popup-section-title:first-child {
    margin-top: 0;
}

@media (max-width: 768px) {
    .project-popup-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .project-popup-header {
        padding: 30px 20px;
    }
    
    .project-popup-title {
        font-size: 1.8rem;
    }
    
    .project-popup-body {
        padding: 20px;
    }
    
    .project-popup-gallery {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
}

/* === HEADER & FOOTER CSS === */
/* Variables CSS */
:root {
    --dark-blue: #050A19;
    --mint-green: #11DD9E;
    --white: #ffffff;
}

/* Header principal - Background adaptatif selon la page */
header,
#masthead,
.site-header {
    background: linear-gradient(135deg, #010D3B 0%, #1B3083 100%) !important;
    padding: 25px 0 !important;
    position: sticky !important;
    top: 0 !important;
    left: 0;
    right: 0;
    z-index: 9999 !important;
    margin-top: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    display: block !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
}

/* Header sur page d'accueil */
.home header,
.home #masthead,
.home .site-header {
    background: transparent !important;
    padding: 30px 0 !important;
    position: absolute !important;
    top: 20px !important;
    z-index: 10000 !important;
    box-shadow: none !important;
}

/* Logo avec effet de fusion sur page d'accueil */
.home header .site-branding .logo,
.home #masthead .site-branding .logo,
.home .site-header .site-branding .logo {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    opacity: 0.95;
}

/* Navigation avec effet de fusion sur page d'accueil */
.home header .main-navigation ul li a,
.home #masthead .main-navigation ul li a,
.home .site-header .main-navigation ul li a {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6), 0 1px 2px rgba(0, 0, 0, 0.4);
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 5px;
}

.home header .main-navigation ul li a:hover,
.home header .main-navigation ul li a:focus,
.home #masthead .main-navigation ul li a:hover,
.home #masthead .main-navigation ul li a:focus,
.home .site-header .main-navigation ul li a:hover,
.home .site-header .main-navigation ul li a:focus {
    background: var(--mint-green) !important;
    color: var(--dark-blue) !important;
    text-shadow: none !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(17, 221, 158, 0.4);
    font-weight: 700;
    outline: none;
}

.home header .main-navigation ul li a.active,
.home #masthead .main-navigation ul li a.active,
.home .site-header .main-navigation ul li a.active,
.home header .main-navigation .current-menu-item > a,
.home #masthead .main-navigation .current-menu-item > a,
.home .site-header .main-navigation .current-menu-item > a {
    background: var(--mint-green) !important;
    color: var(--dark-blue) !important;
    text-shadow: none !important;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(17, 221, 158, 0.3);
}

/* Bouton actif avec effet de fusion */
.home header .main-navigation ul li a.btn-nav,
.home #masthead .main-navigation ul li a.btn-nav,
.home .site-header .main-navigation ul li a.btn-nav {
    background: rgba(17, 221, 158, 0.2) !important;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(17, 221, 158, 0.4);
}

.home header .main-navigation ul li a.btn-nav:hover,
.home #masthead .main-navigation ul li a.btn-nav:hover,
.home .site-header .main-navigation ul li a.btn-nav:hover {
    background: rgba(17, 221, 158, 0.3) !important;
    border-color: rgba(17, 221, 158, 0.6);
}

/* Légère transparence du header pour fusionner avec l'image */
.home header::before,
.home #masthead::before,
.home .site-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, transparent 100%);
    pointer-events: none;
    z-index: -1;
}

/* Skip link pour accessibilité */
.skip-link {
    position: absolute;
    left: -9999px;
    z-index: 999999;
}

.skip-link:focus {
    left: 6px;
    top: 7px;
    background: var(--mint-green);
    color: var(--dark-blue);
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
}

/* Container du header */
header .container,
#masthead .container,
.site-header .container {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
}

/* Site branding (Logo) */
.site-branding {
    display: flex;
    align-items: center;
}

.site-branding .logo {
    height: 35px;
    width: auto;
    max-height: 35px;
    display: block;
    transition: opacity 0.3s;
}

.site-branding .logo:hover {
    opacity: 0.8;
}

.site-branding a {
    display: inline-block;
    text-decoration: none;
}

/* Navigation principale */
.main-navigation,
#site-navigation {
    display: flex;
    align-items: center;
}

/* Menu toggle (Hamburger) */
.menu-toggle {
    display: none;
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s;
    font-family: 'Montserrat', sans-serif;
}

.menu-toggle:hover,
.menu-toggle:focus {
    background: var(--mint-green);
    border-color: var(--mint-green);
    color: var(--dark-blue);
    outline: none;
}

.menu-toggle[aria-expanded="true"] {
    background: var(--mint-green);
    border-color: var(--mint-green);
    color: var(--dark-blue);
}

/* Menu principal */
#primary-menu,
.main-navigation ul,
.main-navigation .menu {
    display: flex !important;
    list-style: none !important;
    gap: 30px;
    margin: 0 !important;
    padding: 0 !important;
    flex-wrap: wrap;
    align-items: center;
}

#primary-menu li,
.main-navigation ul li,
.main-navigation .menu li {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    display: list-item !important;
}

#primary-menu a,
.main-navigation a,
.main-navigation .menu a {
    color: var(--white) !important;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    padding: 8px 16px;
    border-radius: 5px;
    transition: all 0.3s;
    text-decoration: none !important;
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
}

#primary-menu a:hover,
#primary-menu a:focus,
.main-navigation a:hover,
.main-navigation a:focus,
.main-navigation .menu a:hover {
    background: var(--mint-green) !important;
    color: var(--dark-blue) !important;
    outline: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(17, 221, 158, 0.4);
    font-weight: 700;
}

#primary-menu a.active,
.main-navigation a.active,
.main-navigation .menu a.active {
    background: var(--mint-green) !important;
    color: var(--dark-blue) !important;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(17, 221, 158, 0.3);
}

#primary-menu .current-menu-item > a,
#primary-menu .current_page_item > a,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
    background: var(--mint-green) !important;
    color: var(--dark-blue) !important;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(17, 221, 158, 0.3);
}

/* Responsive - Menu mobile */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    #primary-menu,
    .main-navigation ul,
    .main-navigation .menu {
        display: none !important;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, #010D3B 0%, #1B3083 100%);
        flex-direction: column;
        padding: 20px;
        gap: 0;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
        border-top: 2px solid var(--mint-green);
    }
    
    .menu-toggle[aria-expanded="true"] + #primary-menu,
    .menu-toggle[aria-expanded="true"] ~ #primary-menu,
    .main-navigation.toggled #primary-menu,
    .main-navigation.toggled ul,
    .main-navigation.toggled .menu {
        display: flex !important;
    }
    
    #primary-menu li,
    .main-navigation ul li,
    .main-navigation .menu li {
        width: 100%;
        text-align: center;
    }
    
    #primary-menu a,
    .main-navigation a,
    .main-navigation .menu a {
        display: block;
        padding: 15px;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    #primary-menu a:last-child,
    .main-navigation a:last-child,
    .main-navigation .menu a:last-child {
        border-bottom: none;
    }
}

/* Footer principal */
footer,
#colophon,
.site-footer {
    background: linear-gradient(135deg, #010D3B 0%, #1B3083 100%) !important;
    color: var(--white) !important;
    padding: 60px 20px 20px !important;
    border-top: 3px solid var(--mint-green) !important;
    width: 100% !important;
    margin: 0 !important;
}

/* Grille du footer */
.footer-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 40px !important;
    margin-bottom: 40px !important;
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Colonnes du footer */
.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-col .logo {
    height: auto;
    max-height: 35px;
    width: auto;
    display: block;
    margin-bottom: 20px;
}

.footer-col h4 {
    color: var(--mint-green) !important;
    margin-bottom: 20px !important;
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    font-family: 'Montserrat', sans-serif !important;
}

/* Menus du footer */
.footer-col ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.footer-col ul li {
    margin-bottom: 10px !important;
    padding: 0 !important;
}

.footer-col ul li a {
    color: var(--white) !important;
    text-decoration: none !important;
    transition: color 0.3s !important;
    font-size: 0.95rem !important;
    display: inline-block !important;
}

.footer-col ul li a:hover {
    color: var(--mint-green) !important;
}

/* Copyright */
.copyright {
    text-align: center !important;
    padding-top: 30px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    opacity: 0.7 !important;
    font-size: 0.9rem !important;
    color: var(--white) !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
}

/* Responsive Footer */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 30px !important;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
        text-align: center !important;
    }
    
    .footer-col {
        align-items: center !important;
    }
    
    .footer-col h4 {
        text-align: center !important;
    }
    
    .footer-col ul {
        text-align: center !important;
    }
}

/* === FRONT PAGE CSS === */
.hero {
    text-align: center;
    padding: 100px 0 60px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #ffffff;
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.hero .container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
}

.hero h1 {
    font-size: 3.5rem;
    text-transform: uppercase;
    margin-bottom: 30px;
    letter-spacing: 2px;
    font-weight: 900;
    line-height: 1.2;
    color: #ffffff;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.4), 0 4px 25px rgba(0, 0, 0, 0.2);
}

.text-green { color: #11dd9e; }
.text-blue  { color: #1B3083; }
.text-white { color: #ffffff; }

.hero-text {
    max-width: 800px;
    margin: 0 auto 40px;
    color: #ffffff;
    font-size: 1.15rem;
    line-height: 1.9;
    font-weight: 500;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.5), 0 4px 25px rgba(0, 0, 0, 0.3), 0 0 30px rgba(17, 221, 158, 0.15);
    letter-spacing: 0.4px;
    opacity: 0.98;
}

.hero p {
    color: #dfe2e6;
    opacity: 0.8;
    margin-top: 15px;
    margin-bottom: 30px;
}

/* === SYSTÈME DE BOUTONS UNIFIÉ === */
.btn,
button.btn,
a.btn {
    display: inline-block;
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    letter-spacing: 1px;
    font-family: 'Montserrat', sans-serif;
    line-height: 1.2;
}

.btn-green,
.btn-green:hover {
    background-color: var(--accent-green);
    color: var(--text-dark);
    box-shadow: 0 4px 15px rgba(17, 221, 158, 0.3);
}

.btn-green:hover {
    background-color: var(--white);
    color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(17, 221, 158, 0.4);
}

.btn-blue {
    background-color: var(--primary-blue);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(27, 48, 131, 0.3);
}

.btn-blue:hover {
    background-color: var(--dark-blue);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(27, 48, 131, 0.4);
}

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    box-shadow: none;
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

/* Amélioration de la visibilité des boutons */
button,
input[type="button"],
input[type="submit"],
a.btn {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    outline: none;
}

button:focus,
.btn:focus {
    outline: 3px solid rgba(17, 221, 158, 0.5);
    outline-offset: 2px;
}

.services-section { 
    padding: 80px 0; 
    background-color: #ffffff;
}
.section-title {
    font-size: 2.5rem;
    text-transform: uppercase;
    margin-bottom: 60px;
    text-align: center;
    font-weight: 900;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}
.service-item {
    text-align: center;
    padding: 40px 30px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}
.service-item:hover { 
    transform: translateY(-5px);
}
.service-icon-svg { 
    width: 60px; 
    height: 60px; 
    margin-bottom: 20px; 
    fill: #11dd9e;
}
.service-item h3 { 
    font-size: 1.3rem; 
    margin-bottom: 15px; 
    color: #1B3083; 
    font-weight: 700;
}
.service-item p { 
    color: #333; 
    line-height: 1.6; 
    font-size: 0.95rem;
}

.histoire-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #010D3B 0%, #1B3083 100%);
}
.histoire-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.histoire-img-col img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.histoire-text-col h2 {
    font-size: 2.5rem;
    text-transform: uppercase;
    margin-bottom: 30px;
    color: #ffffff;
    font-weight: 900;
}
.histoire-text-col p { 
    color: #ffffff; 
    font-size: 1.1rem; 
    line-height: 1.8; 
    margin-bottom: 20px;
}

.chiffres-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #010D3B 0%, #1B3083 100%);
}
.chiffres-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.chiffre-item {
    text-align: center;
    padding: 40px 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    border: 2px solid #11dd9e;
}
.chiffre-item h3 { 
    font-size: 3rem; 
    font-weight: 900; 
    color: #11dd9e; 
    margin-bottom: 10px;
}
.chiffre-item p { 
    color: #ffffff; 
    font-size: 1.1rem;
}

.objectifs-section { 
    padding: 80px 0; 
    background-color: #ffffff;
}
.objectifs-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.objectifs-content {
    text-align: left;
}
.objectifs-content .section-title {
    margin-bottom: 40px;
    margin-left: 0;
    text-align: left;
}
.objectifs-content > p {
    margin-left: 0;
    margin: 0 auto 40px;
}
.objectif-item { 
    display: flex; 
    align-items: flex-start; 
    gap: 20px; 
    margin-bottom: 30px; 
    text-align: left;
    width: 100%;
}
.objectif-icon-svg { 
    width: 50px; 
    height: 50px; 
    fill: #11dd9e; 
    flex-shrink: 0;
}
.objectif-text h3 { 
    font-size: 1.5rem; 
    margin-bottom: 10px; 
    color: #1B3083; 
    font-weight: 700;
}
.objectif-text p { 
    color: #333; 
    line-height: 1.6;
}
.objectifs-image {
    display: flex;
    align-items: flex-end;
    padding-top: 80px;
}
.objectifs-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.cta-banner { 
    background: #11dd9e; 
    color: #050A19; 
    text-align: center; 
    padding: 80px 20px;
}
.cta-banner h2 { 
    font-size: 2.2rem; 
    margin-bottom: 10px; 
    text-transform: uppercase; 
    font-weight: 900; 
    line-height: 1.2;
}
.cta-banner p { 
    margin-bottom: 30px; 
    font-weight: 600; 
    font-size: 1.05rem;
}
.btn-cta {
    background-color: var(--dark-blue);
    color: var(--white);
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(5, 10, 25, 0.3);
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.btn-cta:hover {
    background-color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(27, 48, 131, 0.4);
}

/* Zone de contenu éditable depuis l'éditeur WordPress */
.editable-content-zone {
    padding: 80px 0;
    background-color: #ffffff;
}
.editable-content-zone .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.editable-content-zone h1,
.editable-content-zone h2,
.editable-content-zone h3,
.editable-content-zone h4 {
    color: #1B3083;
    margin-bottom: 20px;
}
.editable-content-zone p {
    line-height: 1.8;
    margin-bottom: 15px;
    color: #333;
}
.editable-content-zone code {
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: monospace;
}
.editable-content-zone pre {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 10px;
    overflow-x: auto;
    margin-bottom: 20px;
}
.editable-content-zone pre code {
    background: none;
    padding: 0;
}

@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .chiffres-grid { grid-template-columns: repeat(2, 1fr); }
    .hero h1 { font-size: 2.8rem; }
}
@media (max-width: 768px) {
    .services-grid { grid-template-columns: 1fr; }
    .chiffres-grid { grid-template-columns: 1fr; }
    .histoire-wrapper, .objectifs-wrapper { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2.2rem; }
    .hero-text { font-size: 1rem; padding: 0 20px; }
}

/* === CLIENTS PAGE CSS === */
.clients-page * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.clients-page {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.5;
    overflow-x: hidden;
}

.clients-page a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

.clients-page ul {
    list-style: none;
}

.clients-page img {
    max-width: 100%;
    display: block;
}

.clients-page h1,
.clients-page h2,
.clients-page h3,
.clients-page h4,
.clients-page .btn,
.clients-page .nav-link,
.clients-page .badge {
    font-family: 'Vito Wide', 'Montserrat', sans-serif;
}

.clients-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- HERO SECTION --- */
.clients-page #hero {
    background: linear-gradient(180deg, rgba(1, 13, 59, 1), rgba(27, 48, 131, 1));
    padding: 100px 0 60px;
    text-align: center;
    color: var(--text-light);
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.clients-page #hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.15;
    pointer-events: none;
}

.clients-page .hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.clients-page #hero h1 {
    font-size: 3.5rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.clients-page #hero p {
    max-width: 700px;
    margin: 0 auto 50px;
    font-size: 1rem;
    opacity: 0.95;
    font-weight: 400;
}

.clients-page .logos-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    padding: 0 20px;
}

.clients-page .client-logo {
    height: 55px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.9;
    transition: opacity 0.3s;
}

.clients-page .client-logo:hover {
    opacity: 1;
}

/* --- GRILLE PROJETS --- */
.clients-page #projects {
    padding: 80px 0;
    background-color: #fff;
}

.clients-page .projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.clients-page .project-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
    height: 100%;
    cursor: pointer;
}

.clients-page .project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.clients-page .card-img-wrapper {
    position: relative;
    height: 240px;
    width: 100%;
}

.clients-page .card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.clients-page .badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--green);
    color: #1a1a1a;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
}

.clients-page .card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.clients-page .card-content p {
    font-size: 0.95rem;
    color: #333;
    line-height: 1.6;
    font-weight: 500;
    margin-bottom: 20px;
    flex-grow: 1;
}

.clients-page .project-btn,
.project-btn {
    display: inline-block;
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.85rem;
    background-color: var(--primary-blue);
    color: var(--white);
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    margin-top: auto;
    align-self: flex-start;
    box-shadow: 0 4px 15px rgba(27, 48, 131, 0.3);
    letter-spacing: 1px;
    cursor: pointer;
}

.clients-page .project-btn:hover,
.project-btn:hover {
    background-color: var(--accent-green);
    border-color: var(--accent-green);
    color: var(--text-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(17, 221, 158, 0.4);
}

/* --- CTA BANDEAU --- */
.clients-page #cta {
    background: linear-gradient(135deg, #A8EED8 0%, #8AE6C7 100%);
    padding: 80px 20px;
    text-align: center;
}

.clients-page #cta h2 {
    color: var(--blue);
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 10px;
    text-transform: uppercase;
    line-height: 1.2;
}

.clients-page #cta p {
    color: var(--blue);
    margin-bottom: 30px;
    font-weight: 600;
    font-size: 1.05rem;
}

.clients-page .btn {
    display: inline-block;
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.9rem;
    background-color: var(--primary-blue);
    color: var(--white);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(27, 48, 131, 0.3);
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.clients-page .btn:hover {
    background-color: var(--dark-blue);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(27, 48, 131, 0.4);
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .clients-page .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .clients-page #hero h1 {
        font-size: 2.8rem;
    }

    .clients-page .logos-row {
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .clients-page .projects-grid {
        grid-template-columns: 1fr;
    }

    .clients-page #hero h1 {
        font-size: 2.2rem;
    }

    .clients-page #hero p {
        font-size: 0.9rem;
        padding: 0 10px;
    }
}

/* === SERVICES PAGE CSS === */
.services-page * { margin: 0; padding: 0; box-sizing: border-box; }

.services-page {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-dark);
    color: var(--white);
    line-height: 1.6;
}

.services-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.services-page a { text-decoration: none; color: inherit; transition: 0.3s; }
.services-page ul { list-style: none; }

/* --- HERO --- */
.services-page .hero {
    text-align: center;
    padding: 100px 0 60px;
    background: linear-gradient(180deg, rgba(1, 13, 59, 1), rgba(27, 48, 131, 1));
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    position: relative;
}

.services-page .hero .container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.services-page .hero h1 {
    font-size: 3.5rem;
    text-transform: uppercase;
    margin-bottom: 20px;
    letter-spacing: 2px;
    color: #11dd9e;
}

.services-page .hero-text {
    max-width: 700px;
    margin: 0 auto;
    color: #ccc;
    font-size: 1.1rem;
}

/* --- SERVICES --- */
.services-page .services-section { padding: 60px 0; }

.services-page .service-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    margin-bottom: 100px;
}

.services-page .service-block.inverse { flex-direction: row-reverse; }

.services-page .service-content { flex: 1; }

.services-page .service-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    border-left: 4px solid var(--mint-green);
    padding-left: 20px;
    line-height: 1;
}

.services-page .service-content .intro { font-size: 1.1rem; margin-bottom: 15px; color: #fff; }
.services-page .service-content .desc { color: var(--gray-text); margin-bottom: 30px; }

.services-page .service-list li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
    color: #ddd;
}

.services-page .service-list li::before {
    content: '•';
    color: var(--mint-green);
    position: absolute;
    left: 0;
    font-size: 1.5rem;
    line-height: 1rem;
}

.services-page .service-image { flex: 1; }
.services-page .service-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
}

/* --- PACKS --- */
.services-page .packs-section {
    padding: 80px 0;
    background: #081026;
}

.services-page .section-title { text-align: center; font-size: 2.5rem; margin-bottom: 10px; }
.services-page .section-subtitle { text-align: center; color: var(--gray-text); margin-bottom: 60px; }

.services-page .packs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: start;
}

.services-page .pack-card {
    background: #fff;
    color: #050A19;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    transition: transform 0.3s;
}

.services-page .pack-card:hover { transform: translateY(-10px); }

.services-page .pack-card.highlighted {
    border: 4px solid var(--mint-green);
    transform: scale(1.05);
}

.services-page .pack-head h3 { font-size: 1rem; color: #888; text-transform: uppercase; }
.services-page .pack-head h3 span {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: #050A19;
    margin: 10px 0;
}

.services-page .engagement-badge {
    background: #eee;
    padding: 8px 15px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    display: inline-block;
    margin-bottom: 5px;
}

.services-page .pack-body {
    margin: 30px 0;
    text-align: left;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.services-page .label-inclus {
    font-size: 0.75rem;
    font-weight: 700;
    color: #aaa;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.services-page .pack-body ul li {
    font-size: 0.95rem;
    margin-bottom: 10px;
    color: #333;
}

.services-page .btn-pack {
    display: block;
    padding: 16px 30px;
    border: 2px solid var(--dark-blue);
    border-radius: 50px;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.9rem;
    background-color: transparent;
    color: var(--dark-blue);
    transition: all 0.3s ease;
    text-align: center;
    letter-spacing: 1px;
}

.services-page .pack-card:hover .btn-pack {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(27, 48, 131, 0.3);
}

/* --- CTA BANNER --- */
.services-page .cta-banner {
    background: var(--mint-green);
    color: #050A19;
    text-align: center;
    padding: 80px 20px;
}

.services-page .cta-banner h2 { font-size: 2.2rem; margin-bottom: 10px; }
.services-page .cta-banner p { margin-bottom: 30px; font-weight: 500; }

.services-page .btn-cta {
    background-color: var(--dark-blue);
    color: var(--white);
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(5, 10, 25, 0.3);
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.services-page .btn-cta:hover {
    background-color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(27, 48, 131, 0.4);
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .services-page .packs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .services-page .service-block {
        gap: 40px;
    }
}

@media (max-width: 900px) {
    .services-page .service-block, 
    .services-page .service-block.inverse { 
        flex-direction: column; 
        text-align: center; 
    }
    .services-page .service-content h2 { 
        border-left: none; 
        border-bottom: 4px solid var(--mint-green); 
        padding-bottom: 10px; 
        display: inline-block; 
        padding-left: 0; 
    }
    .services-page .service-list li { 
        text-align: left; 
        display: inline-block; 
    }
    .services-page .packs-grid { 
        grid-template-columns: 1fr; 
    }
    .services-page .pack-card.highlighted { 
        transform: none; 
    }
}

/* === CONTACT PAGE CSS === */
.contact-page * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.contact-page {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.5;
    overflow-x: hidden;
}

.contact-page a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

.contact-page ul {
    list-style: none;
}

.contact-page img {
    max-width: 100%;
    display: block;
}

.contact-page h1,
.contact-page h2,
.contact-page h3,
.contact-page h4,
.contact-page .btn,
.contact-page .nav-link,
.contact-page .badge {
    font-family: 'Vito Wide', 'Montserrat', sans-serif;
}

.contact-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- HERO SECTION --- */
.contact-page #hero {
    background: linear-gradient(135deg, rgba(1, 13, 59, 1) 0%, rgba(27, 48, 131, 1) 50%, rgba(17, 221, 158, 0.3) 100%);
    padding: 100px 0 60px;
    text-align: center;
    color: var(--text-light);
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.contact-page .hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.contact-page #hero h1 {
    font-size: 3.5rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.contact-page #hero p {
    max-width: 700px;
    margin: 0 auto 50px;
    font-size: 1rem;
    opacity: 0.95;
    font-weight: 400;
}

.contact-page .client-logo {
    height: 85px;
    width: auto;
    max-width: 190px;
    filter: brightness(0) invert(1);
    opacity: 1;
    transition: all 0.3s ease;
    padding: 18px 25px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 15px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 2px solid rgba(255, 255, 255, 0.35);
    object-fit: contain;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.contact-page .client-logo:hover {
    opacity: 1;
    transform: translateY(-5px) scale(1.1);
    background: rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 25px rgba(17, 221, 158, 0.5);
    border-color: var(--accent-green);
}

.contact-page .logos-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    padding: 45px 35px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 25px;
    margin-top: 50px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .contact-page .client-logo {
        height: 60px;
        max-width: 120px;
        padding: 10px 15px;
    }
    
    .contact-page .logos-row {
        gap: 15px;
        padding: 30px 20px;
    }
}

/* --- CONTACT SECTION --- */
.contact-page .contact-section {
    padding: 80px 0;
    background: #ffffff;
    color: var(--text-dark);
}

.contact-page .contact-section h1 {
    color: var(--text-dark) !important;
}

.contact-page .contact-section h1 .text-emerald {
    color: var(--accent-green) !important;
}

.contact-page .contact-section h6 {
    color: var(--text-dark) !important;
    font-weight: 700;
}

.contact-page .contact-section .text-muted {
    color: #6c757d !important;
}

.contact-page .contact-section a {
    color: var(--accent-green) !important;
    transition: all 0.3s ease;
}

.contact-page .contact-section a:hover {
    color: var(--primary-blue) !important;
    text-decoration: underline;
}

.contact-page .icon-box {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(17, 221, 158, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(17, 221, 158, 0.3);
}

.contact-page .icon-box .material-symbols-outlined {
    font-size: 2.5rem;
    color: #010d3b;
}

.contact-page .text-emerald {
    color: var(--accent-green) !important;
}

.contact-page .opening-hours {
    background: linear-gradient(135deg, rgba(1, 13, 59, 1), rgba(27, 48, 131, 1));
    border: 2px solid var(--accent-green);
    border-radius: 20px;
    padding: 25px;
}

.contact-page .opening-hours h5 {
    color: var(--accent-green);
    text-transform: uppercase;
    font-weight: 800;
    margin-bottom: 20px;
}

.contact-page .opening-hours span {
    color: var(--text-light);
    opacity: 0.9;
}

.contact-page .map-container {
    margin-top: 30px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 2px solid var(--accent-green);
    background: #ffffff;
}

.contact-page .map-container iframe {
    width: 100%;
    height: 350px;
    border: none;
    display: block;
    border-radius: 15px;
}

.contact-page .img-map {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

/* --- FORMULAIRE DE CONTACT --- */
.contact-page .form-container {
    background: linear-gradient(135deg, rgba(1, 13, 59, 1), rgba(27, 48, 131, 1));
    border: 2px solid var(--accent-green);
    border-radius: 25px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.contact-page .form-container h2 {
    color: #ffffff;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1.2;
    margin-bottom: 30px;
}

.contact-page .form-container .form-label {
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.contact-page .form-container .form-control,
.contact-page .form-container .form-select {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: #ffffff;
    padding: 15px;
    transition: all 0.3s;
    font-size: 1rem;
}

.contact-page .form-container .form-control:focus,
.contact-page .form-container .form-select:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-green);
    color: #ffffff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(17, 221, 158, 0.2);
}

.contact-page .form-container .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.contact-page .form-container .form-select option {
    background: #010d3b;
    color: #ffffff;
}

.contact-page .form-container .btn-emerald,
.contact-page .form-container .btn {
    background-color: var(--accent-green);
    color: var(--text-dark);
    font-weight: 800;
    text-transform: uppercase;
    border: 2px solid var(--accent-green);
    transition: all 0.3s ease;
    padding: 16px 40px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(17, 221, 158, 0.3);
    letter-spacing: 1px;
    font-size: 0.9rem;
    cursor: pointer;
    width: 100%;
}

.contact-page .form-container .btn-emerald:hover,
.contact-page .form-container .btn:hover {
    background-color: var(--primary-blue);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(27, 48, 131, 0.5);
    font-weight: 900;
}

.contact-page .form-container .alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 10px;
}

.contact-page .form-container .alert-success {
    background: var(--accent-green);
    color: var(--dark-blue);
    border: none;
    font-weight: 600;
}

.contact-page .form-container .alert-error {
    background: #ff4444;
    color: #ffffff;
    border: none;
    font-weight: 600;
}

/* Styles pour le plugin Impulse Contact */
.contact-page .impulse-contact-wrapper {
    width: 100%;
}

.contact-page .impulse-form {
    width: 100%;
}

/* Styles pour les éléments du formulaire du plugin */
.contact-page .impulse-form .row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
}

.contact-page .impulse-form .col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding-left: 15px;
    padding-right: 15px;
}

.contact-page .impulse-form .mb-3 {
    margin-bottom: 1rem;
}

.contact-page .impulse-form .mb-4 {
    margin-bottom: 1.5rem;
}

.contact-page .impulse-form .w-100 {
    width: 100%;
}

.contact-page .impulse-form .py-3 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.contact-page .impulse-form .fw-bold {
    font-weight: 700;
}

.contact-page .impulse-form .rounded-pill {
    border-radius: 50px;
}

@media (max-width: 768px) {
    .contact-page .impulse-form .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* --- CTA BANDEAU --- */
.contact-page #cta {
    background: linear-gradient(135deg, #A8EED8 0%, #8AE6C7 100%);
    padding: 80px 20px;
    text-align: center;
}

.contact-page #cta h2 {
    color: var(--blue);
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 10px;
    text-transform: uppercase;
    line-height: 1.2;
}

.contact-page #cta p {
    color: var(--blue);
    margin-bottom: 30px;
    font-weight: 600;
    font-size: 1.05rem;
}

.contact-page #cta .btn,
.contact-page #cta button.btn {
    display: inline-block;
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.9rem;
    background-color: var(--primary-blue);
    color: var(--white);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(27, 48, 131, 0.3);
    transition: all 0.3s ease;
    letter-spacing: 1px;
    text-decoration: none;
}

.contact-page #cta .btn:hover,
.contact-page #cta button.btn:hover {
    background-color: var(--accent-green);
    color: var(--text-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(17, 221, 158, 0.5);
    font-weight: 900;
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .contact-page #hero h1 {
        font-size: 2.8rem;
    }

    .contact-page .logos-row {
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .contact-page #hero h1 {
        font-size: 2.2rem;
    }

    .contact-page #hero p {
        font-size: 0.9rem;
        padding: 0 10px;
    }

    .contact-page .contact-section {
        padding: 60px 0;
    }

    .contact-page .form-container {
        padding: 30px 20px !important;
    }
}

/* === PROJECT PAGE CSS === */
.project-page * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.project-page {
    font-family: 'Inter', sans-serif;
    color: #ffffff;
    line-height: 1.5;
    overflow-x: hidden;
    background: linear-gradient(180deg, rgba(1, 13, 59, 1), rgba(27, 48, 131, 1));
    min-height: 100vh;
}

.project-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.project-page .hero {
    background: linear-gradient(180deg, rgba(1, 13, 59, 1), rgba(27, 48, 131, 1));
    padding: 140px 0 80px;
    text-align: center;
    color: #ffffff;
    position: relative;
}

.project-page .hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.project-page .hero-logo {
    max-height: 120px;
    margin-bottom: 30px;
    filter: brightness(0) invert(1);
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.project-page .hero h1 {
    font-size: 3.5rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: #11dd9e;
    text-align: center;
}

.project-page .hero p {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
    opacity: 0.95;
    line-height: 1.8;
    text-align: center;
}

/* Gallery Section */
.project-page .gallery-section {
    padding: 80px 0;
    background: linear-gradient(180deg, rgba(1, 13, 59, 1), rgba(27, 48, 131, 1));
}

.project-page .section-title {
    font-size: 4rem;
    text-transform: uppercase;
    margin-bottom: 40px;
    text-align: center;
    font-weight: 900;
    color: #11dd9e;
}

.project-page .section-title .text-green {
    color: #11dd9e;
}

.project-page .gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 60px;
}

.project-page .gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
    cursor: pointer;
    aspect-ratio: 1;
    background: #000;
}

.project-page .gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

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

/* Video Styles */
.project-page .video-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    aspect-ratio: 16/9;
    background: #000;
    cursor: pointer;
    transition: all 0.4s ease;
    will-change: transform, width, height, top, left;
}

.project-page .video-item:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.project-page .video-item.expanding {
    position: fixed;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%);
    z-index: 9999;
    width: 70vw !important;
    max-width: 1000px;
    height: auto !important;
    aspect-ratio: 16/9;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 0 9999px rgba(0, 0, 0, 0.85);
    border-radius: 20px;
    background: #000;
    overflow: hidden;
    transition: all 0.4s ease;
}

.project-page .video-item.expanding .play-button {
    display: none;
}

.project-page .video-item.expanding .video-thumbnail {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    z-index: 1;
    opacity: 1;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.project-page .video-item.expanding video {
    display: block !important;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 20px;
    background: #000;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-page .video-item.expanding video.playing {
    opacity: 1;
}

.project-page .video-item.expanding video.playing ~ .video-thumbnail {
    opacity: 0;
    pointer-events: none;
}

.project-page .video-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
    border-radius: 15px;
}

.project-page .video-item .video-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: opacity 0.3s;
    pointer-events: none;
}

.project-page .video-item .video-thumbnail:hover {
    opacity: 0.8;
}

.project-page .video-item .play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(17, 221, 158, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(17, 221, 158, 0.4);
}

.project-page .video-item:hover .play-button {
    background: rgba(17, 221, 158, 1);
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 15px 40px rgba(17, 221, 158, 0.6);
}

.project-page .video-item .play-button::before {
    content: '';
    width: 0;
    height: 0;
    border-left: 25px solid #1a1a1a;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    margin-left: 5px;
}

.project-page .video-item.playing .video-thumbnail,
.project-page .video-item.playing .play-button {
    display: none;
}

/* Overlay pour l'effet d'agrandissement */
.project-page .video-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-page .video-overlay.active {
    display: block;
    opacity: 1;
}

/* Modal Video Popup */
.project-page .video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.project-page .video-modal.active {
    display: flex;
    opacity: 1;
    animation: fadeInModal 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes fadeInModal {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    50% {
        transform: scale(1.02);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.project-page .video-modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    background: #000;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.1);
    transform: scale(0.8) translateY(0);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.project-page .video-modal.active .video-modal-content {
    transform: scale(1) translateY(0);
    opacity: 1;
    animation: zoomInModal 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes zoomInModal {
    0% {
        transform: scale(0.7);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.project-page .video-modal-content video {
    width: 100%;
    height: auto;
    display: block;
}

.project-page .video-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    transform: scale(0.8) rotate(-90deg);
    animation: fadeInClose 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s forwards;
}

.project-page .video-modal.active .video-modal-close {
    animation: fadeInClose 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s forwards;
}

@keyframes fadeInClose {
    0% {
        opacity: 0;
        transform: scale(0.8) rotate(-90deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

.project-page .video-modal-close:hover {
    background: rgba(17, 221, 158, 0.3);
    border-color: #11dd9e;
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 0 20px rgba(17, 221, 158, 0.5);
}

.project-page .video-modal-close::before {
    content: '×';
    font-size: 36px;
    line-height: 1;
}

.project-page .video-modal-fullscreen {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    transform: scale(0.8) translateY(10px);
    animation: fadeInFullscreen 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s forwards;
}

.project-page .video-modal.active .video-modal-fullscreen {
    animation: fadeInFullscreen 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s forwards;
}

@keyframes fadeInFullscreen {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(10px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.project-page .video-modal-fullscreen:hover {
    background: rgba(17, 221, 158, 0.3);
    border-color: #11dd9e;
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(17, 221, 158, 0.5);
}

@media (max-width: 768px) {
    .project-page .video-modal-content {
        width: 95%;
    }
    
    .project-page .video-modal-close,
    .project-page .video-modal-fullscreen {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

/* Back Button */
.project-page .back-button,
.back-button {
    display: inline-block;
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.9rem;
    background-color: var(--primary-blue);
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
    margin-bottom: 30px;
    margin-top: 0;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 4px 15px rgba(27, 48, 131, 0.3);
    letter-spacing: 1px;
    cursor: pointer;
}

.project-page .back-button:hover,
.back-button:hover {
    background-color: var(--accent-green);
    color: var(--text-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(17, 221, 158, 0.4);
}

/* Empty State */
.project-page .empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #ffffff;
}

.project-page .empty-state p {
    font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .project-page .hero h1 {
        font-size: 2.2rem;
    }
    
    .project-page .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .project-page .section-title {
        font-size: 2rem;
    }
}

/* === WORDPRESS EDITABLE CONTENT CSS === */
.wordpress-editable-content {
    padding: 80px 0;
    background-color: #ffffff;
}
.wordpress-editable-content .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.wordpress-editable-content h1,
.wordpress-editable-content h2,
.wordpress-editable-content h3,
.wordpress-editable-content h4 {
    color: #1B3083;
    margin-bottom: 20px;
    font-weight: 900;
}
.wordpress-editable-content h1 {
    font-size: 3.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.wordpress-editable-content h2 {
    font-size: 2.5rem;
    text-transform: uppercase;
}
.wordpress-editable-content p {
    line-height: 1.8;
    margin-bottom: 15px;
    color: #333;
    font-size: 1.1rem;
}
.wordpress-editable-content code {
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: monospace;
}
.wordpress-editable-content pre {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 10px;
    overflow-x: auto;
    margin-bottom: 20px;
}
.wordpress-editable-content pre code {
    background: none;
    padding: 0;
        }