/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

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

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.vg-nav {
    padding: 0;
    height: 80px;
}

.vg-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.3s ease;
    text-decoration: none;
    flex-shrink: 0;
}

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

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    width: 45px;
    height: 45px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.logo-icon:hover {
    transform: rotate(10deg);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text h1 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1e40af;
    margin: 0;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.logo-text span {
    font-size: 0.9rem;
    color: #059669;
    font-weight: 600;
    letter-spacing: 1px;
}

.nav-content {
    display: flex;
    align-items: center;
    position: relative;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
    align-items: center;
}

.lang-btn {
    padding: 6px 12px;
    border: none;
    background: transparent;
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    background: #f1f5f9;
    color: #1e40af;
}

.lang-btn.active {
    background: #1e40af;
    color: white;
}

.nav-toggle-item {
    display: none;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
    position: relative;
    padding: 0.75rem 1rem;
    border-radius: 8px;
}

.nav-link:hover {
    color: #1e40af;
    background: rgba(30, 64, 175, 0.05);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0.25rem;
    left: 0;
    width: 0;
    height: 3px;
    background: #1e40af;
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.75rem;
    border: none;
    background: none;
    border-radius: 8px;
    transition: background 0.3s ease;
    position: relative;
    z-index: 1002;
}

.mobile-menu-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

.mobile-menu-btn span {
    width: 28px;
    height: 3px;
    background: #333;
    margin: 4px 0;
    transition: 0.3s;
    border-radius: 3px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #059669 100%);
    color: white;
    padding: 120px 0 60px;
    position: relative;
    overflow: hidden;
    background-image:
        linear-gradient(135deg, rgba(30, 64, 175, 0.9) 0%, rgba(59, 130, 246, 0.9) 50%, rgba(5, 150, 105, 0.9) 100%),
        url('https://images.pexels.com/photos/3862132/pexels-photo-3862132.jpeg?auto=compress&cs=tinysrgb&w=1920&h=1080&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="%23ffffff" opacity="0.1"><polygon points="1000,100 1000,0 0,100"/></svg>');
    background-size: cover;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    margin-bottom: 4rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    animation: fadeInUp 1s ease 0.3s forwards;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 1s ease 0.6s forwards;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background: #059669;
    color: white;
    border-color: #059669;
}

.btn-primary:hover {
    background: #047857;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(5, 150, 105, 0.3);
}

.btn-outline {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-outline:hover {
    background: white;
    color: #1e40af;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.3);
}

.hero-stats {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    z-index: 2;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item h3 {
    font-size: 3rem;
    font-weight: 700;
    color: #059669;
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-size: 1rem;
    opacity: 0.9;
}

/* Services Section */
.services {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('https://images.pexels.com/photos/3184291/pexels-photo-3184291.jpeg?auto=compress&cs=tinysrgb&w=1920&h=1080&fit=crop');
    background-size: cover;
    background-position: center;
    opacity: 0.03;
    z-index: 0;
}

.services .container {
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e40af;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.125rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.02) 0%, rgba(5, 150, 105, 0.02) 100%);
    z-index: 0;
}

.service-card>* {
    position: relative;
    z-index: 1;
}

.service-image {
    width: 100%;
    height: 200px;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-icon i {
    font-size: 2rem;
    color: white;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e40af;
    margin-bottom: 1rem;
}

.service-card ul {
    list-style: none;
}

.service-card li {
    padding: 0.5rem 0;
    color: #64748b;
    position: relative;
    padding-left: 1.5rem;
}

.service-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #059669;
    font-weight: 600;
}

/* About Section */
.about {
    padding: 100px 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('https://images.pexels.com/photos/3184465/pexels-photo-3184465.jpeg?auto=compress&cs=tinysrgb&w=1920&h=1080&fit=crop');
    background-size: cover;
    background-position: center;
    opacity: 0.05;
    z-index: 0;
}

.about .container {
    position: relative;
    z-index: 1;
}

.about-image {
    width: 100%;
    height: 300px;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.about-text:hover .about-image img {
    transform: scale(1.02);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e40af;
    margin-bottom: 1.5rem;
}

.lead {
    font-size: 1.25rem;
    color: #64748b;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.vision-mission {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.vision,
.mission {
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 15px;
    border-left: 4px solid #059669;
}

.vision h3,
.mission h3 {
    color: #1e40af;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.vision i,
.mission i {
    color: #059669;
}

.values h3 {
    font-size: 2rem;
    font-weight: 600;
    color: #1e40af;
    margin-bottom: 2rem;
    text-align: center;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.value-item {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.value-item:hover {
    transform: translateY(-5px);
}

.value-item i {
    font-size: 2.5rem;
    color: #059669;
    margin-bottom: 1rem;
}

.value-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e40af;
    margin-bottom: 0.5rem;
}

.value-item p {
    font-size: 0.9rem;
    color: #64748b;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('https://images.pexels.com/photos/3184339/pexels-photo-3184339.jpeg?auto=compress&cs=tinysrgb&w=1920&h=1080&fit=crop');
    background-size: cover;
    background-position: center;
    opacity: 0.03;
    z-index: 0;
}

.contact .container {
    position: relative;
    z-index: 1;
}

.contact-icon-bg {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: none;
}

.contact-icon-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.contact-info h3,
.locations h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e40af;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.contact-item i {
    font-size: 1.5rem;
    color: #059669;
    margin-top: 0.25rem;
}

.contact-item h4 {
    font-weight: 600;
    color: #1e40af;
    margin-bottom: 0.5rem;
}

.contact-item a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #1e40af;
}

.location {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.location h4 {
    color: #1e40af;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.location i {
    color: #059669;
}

.location-image {
    width: 100%;
    height: 150px;
    border-radius: 10px;
    overflow: hidden;
    margin: 1rem 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.location-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.location:hover .location-image img {
    transform: scale(1.05);
}

.legal-info {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.legal-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e40af;
    margin-bottom: 1.5rem;
}

.legal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.legal-item {
    padding: 1rem;
    background: #f8fafc;
    border-radius: 10px;
    font-size: 0.9rem;
}

.legal-item strong {
    color: #1e40af;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
    padding: 3rem 0 1rem;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('https://images.pexels.com/photos/3184465/pexels-photo-3184465.jpeg?auto=compress&cs=tinysrgb&w=1920&h=600&fit=crop');
    background-size: cover;
    background-position: center;
    opacity: 0.05;
    z-index: 0;
}

.footer .container {
    position: relative;
    z-index: 1;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: #059669;
    margin-bottom: 1rem;
}

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

.footer-section li {
    padding: 0.25rem 0;
    color: #cbd5e1;
}

.footer-section p {
    color: #cbd5e1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.footer-section i {
    color: #059669;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #334155;
    color: #94a3b8;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .vg-nav {
        height: 70px;
    }

    .nav-menu {
        gap: 1rem;
    }

    .nav-language-selector .language-selector {
        padding: 4px;
        border-radius: 15px;
    }

    .nav-language-selector .lang-btn {
        padding: 4px 8px;
        font-size: 0.8rem;
    }

    .nav-content {
        gap: 1.5rem;
    }

    .logo-text h1 {
        font-size: 1.3rem;
    }

    .logo-text span {
        font-size: 0.85rem;
    }

    .logo {
        gap: 12px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: white;
        backdrop-filter: blur(15px);
        flex-direction: column;
        padding: 2rem 1.5rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        gap: 0.5rem;
        border-top: 1px solid #e2e8f0;
        z-index: 998;
        height: calc(100vh - 80px);
        overflow-y: auto;
    }

    .nav-menu.show {
        transform: translateX(0);
    }

    .vg-nav {
        height: 70px;
    }

    .logo {
        gap: 10px;
    }

    .logo-text h1 {
        font-size: 1.2rem;
    }

    .logo-text span {
        font-size: 0.8rem;
    }

    .logo-icon {
        width: 40px;
        height: 40px;
    }

    .nav-link {
        font-size: 1.1rem;
        padding: 1rem 1.5rem;
        text-align: center;
        border-radius: 12px;
        width: 100%;
        display: block;
    }

    .nav-link:hover {
        background: rgba(30, 64, 175, 0.1);
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

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

    .service-card {
        padding: 2rem;
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .stat-item h3 {
        font-size: 2rem;
    }

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

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

@media (max-width: 480px) {
    .vg-nav {
        height: 60px;
    }

    .logo {
        gap: 8px;
    }

    .logo-icon {
        width: 35px;
        height: 35px;
    }

    .logo-text h1 {
        font-size: 1.1rem;
    }

    .logo-text span {
        font-size: 0.75rem;
    }

    .nav-menu {
        top: 60px;
        padding: 1.5rem 1rem;
    }

    .nav-language-selector {
        margin-bottom: 0.75rem;
        padding-bottom: 0.75rem;
    }

    .container {
        padding: 0 15px;
    }

    .hero {
        background-attachment: scroll;
        padding: 100px 0 40px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .about-text h2 {
        font-size: 2rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .hero-stats {
        padding: 1.5rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-image {
        height: 150px;
    }

    .about-image {
        height: 200px;
    }

    .location-image {
        height: 120px;
    }
}

/* Bouton toujours cliquable */
.vg-toggle,
.nav-toggle,
.hamburger {
    position: relative;
    z-index: 6000
}

/* Panneau mobile (caché par défaut) */
@media (max-width:768px) {

    .vg-menu,
    .nav-menu,
    #navMenu {
        position: fixed;
        top: 64px;
        right: 0;
        bottom: 0;
        width: min(78vw, 360px);
        padding: 20px;
        background: #fff;
        box-shadow: -12px 0 24px rgba(0, 0, 0, .16);
        transform: translateX(100%);
        transition: transform .3s ease;
        z-index: 5000;
        display: flex;
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .vg-menu.open,
    .vg-menu.is-open,
    .nav-menu.open,
    .nav-menu.is-open,
    #navMenu.open,
    #navMenu.is-open {
        transform: translateX(0)
    }

    /* éviter que le contenu coupe le menu */
    .hero,
    .services,
    .about,
    .contact,
    .section,
    .container {
        overflow: visible !important;
    }
}

/* Backdrop + blocage scroll */
.vg-backdrop,
#menuBackdrop {
    position: fixed;
    inset: 64px 0 0 0;
    background: rgba(0, 0, 0, .25);
    backdrop-filter: blur(1px);
    z-index: 4500
}

body.no-scroll {
    overflow: hidden
}

/* === Fix: menu mobile en colonne + pas d'overflow qui coupe === */
@media (max-width: 768px) {
    .nav-content {
        overflow: visible !important;
    }

    /* ← évite de couper la liste */

    #navMenu {
        position: fixed;
        top: 64px;
        right: 0;
        bottom: 0;
        width: min(92vw, 420px);
        padding: 16px;
        background: #fff;
        box-shadow: -14px 0 28px rgba(0, 0, 0, .18);
        z-index: 5000;

        display: flex !important;
        flex-direction: column !important;
        /* ← empile les items */
        align-items: stretch !important;
        gap: 8px;
        transform: translateX(100%);
        transition: transform .28s ease;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    #navMenu.open {
        transform: translateX(0);
    }

    #navMenu>li {
        list-style: none;
        width: 100%;
    }

    #navMenu a {
        display: block;
        /* ← liens cliquables sur toute la ligne */
        padding: 14px 10px;
        font-size: 18px;
        line-height: 1.6;
        color: #0f172a;
        text-decoration: none;
        border-bottom: 1px solid #eef2f7;
    }

    /* bloc langues */
    .vg-lang {
        display: flex;
        gap: 8px;
        margin-top: 4px;
    }

    .vg-lang-btn {
        padding: 10px 14px;
        font-size: 14px;
    }
}

/* ===== NAV BAR (adapté à .container) ===== */
.vg-header {
    position: sticky;
    top: 0;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    z-index: 4000
}

.vg-nav .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    overflow: visible
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #0f172a
}

.logo-text h1 {
    font-size: 16px;
    margin: 0
}

.logo-text span {
    color: #16a34a;
    font-weight: 600
}

/* liens desktop */
.vg-menu {
    list-style: none;
    display: flex;
    gap: 28px;
    align-items: center;
    margin: 0;
    padding: 0
}

.vg-link {
    text-decoration: none;
    color: #0f172a;
    font-weight: 500
}

.vg-link:hover {
    color: #1e40af
}

/* langues */
.vg-lang {
    display: flex;
    gap: 6px
}

.vg-lang-btn {
    padding: 6px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #f8fafc;
    font-size: 12px;
    cursor: pointer
}

.vg-lang-btn.active {
    background: #1e40af;
    color: #fff;
    border-color: #1e40af
}

/* hamburger */
.vg-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    position: relative;
    cursor: pointer;
    z-index: 10000
}

.vg-toggle span {
    position: absolute;
    left: 10px;
    right: 10px;
    height: 2px;
    background: #0f172a;
    transition: .3s
}

.vg-toggle span:nth-child(1) {
    top: 14px
}

.vg-toggle span:nth-child(2) {
    top: 21px
}

.vg-toggle span:nth-child(3) {
    top: 28px
}

.vg-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg)
}

.vg-toggle.is-open span:nth-child(2) {
    opacity: 0
}

.vg-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg)
}

/* ===== MOBILE ===== */
@media (max-width:768px) {
    .vg-toggle {
        display: block
    }

    .nav-content {
        overflow: visible !important
    }

    /* panneau latéral */
    #navMenu {
        position: fixed;
        top: 64px;
        right: 0;
        bottom: 0;
        width: min(92vw, 420px);
        padding: 18px;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        background: #fff;
        box-shadow: -14px 0 28px rgba(0, 0, 0, .18);
        transform: translateX(100%);
        transition: transform .24s ease;
        z-index: 9000;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    #navMenu.is-open {
        transform: translateX(0)
    }

    #navMenu>li {
        list-style: none
    }

    #navMenu a {
        display: block;
        padding: 14px 10px;
        font-size: 18px;
        line-height: 1.6;
        border-bottom: 1px solid #eef2f7
    }

    /* si tu avais un ancien sélecteur flottant */
    .language-selector {
        position: static !important;
        background: transparent !important;
        box-shadow: none !important;
        padding: 0 !important
    }
}

/* Backdrop + blocage scroll + accessibilité */
.vg-backdrop[hidden] {
    display: none !important
}

.vg-backdrop {
    position: fixed;
    inset: 64px 0 0 0;
    background: rgba(0, 0, 0, .28);
    backdrop-filter: blur(1px);
    z-index: 8000
}

body.vg-no-scroll {
    overflow: hidden
}

html {
    scroll-behavior: smooth
}

/* --- Barres et conteneurs --- */
.vg-header {
    position: sticky;
    top: 0;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    z-index: 4000
}

.vg-nav .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    overflow: visible
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #0f172a
}

.logo-text h1 {
    font-size: 16px;
    margin: 0
}

.logo-text span {
    color: #16a34a;
    font-weight: 600
}

.vg-menu {
    list-style: none;
    display: flex;
    gap: 28px;
    align-items: center;
    margin: 0;
    padding: 0
}

.vg-link {
    text-decoration: none;
    color: #0f172a;
    font-weight: 500
}

.vg-link:hover {
    color: #1e40af
}

.vg-lang {
    display: flex;
    gap: 6px
}

.vg-lang-btn {
    padding: 6px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #f8fafc;
    font-size: 12px;
    cursor: pointer
}

.vg-lang-btn.active {
    background: #1e40af;
    color: #fff;
    border-color: #1e40af
}

/* Hamburger (label du checkbox) */
.vg-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    position: relative;
    cursor: pointer;
    z-index: 10000
}

.vg-toggle span {
    position: absolute;
    left: 10px;
    right: 10px;
    height: 2px;
    background: #0f172a;
    transition: .3s
}

.vg-toggle span:nth-child(1) {
    top: 14px
}

.vg-toggle span:nth-child(2) {
    top: 21px
}

.vg-toggle span:nth-child(3) {
    top: 28px
}

/* --- Mobile --- */
@media (max-width:768px) {
    .vg-toggle {
        display: block
    }

    .nav-content {
        overflow: visible !important
    }

    /* Panneau latéral en fixed (normal) */
    #navMenu {
        position: fixed;
        top: 64px;
        right: 0;
        bottom: 0;
        width: min(92vw, 420px);
        padding: 18px;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        background: #fff;
        box-shadow: -14px 0 28px rgba(0, 0, 0, .18);
        transform: translateX(100%);
        transition: transform .24s ease;
        z-index: 9000;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* OUVERT quand le checkbox est coché */
    #navToggle:checked~.nav-content #navMenu {
        transform: translateX(0)
    }

    #navMenu>li {
        list-style: none
    }

    #navMenu a {
        display: block;
        padding: 14px 10px;
        font-size: 18px;
        line-height: 1.6;
        border-bottom: 1px solid #eef2f7
    }

    /* Hamburger en X quand ouvert (via :checked) */
    #navToggle:checked+.vg-toggle span:nth-child(1) {
        transform: translateY(7px) rotate(45deg)
    }

    #navToggle:checked+.vg-toggle span:nth-child(2) {
        opacity: 0
    }

    #navToggle:checked+.vg-toggle span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg)
    }

    /* Backdrop visible quand coché */
    .vg-backdrop {
        display: none
    }

    #navToggle:checked~.vg-backdrop {
        display: block;
        position: fixed;
        inset: 64px 0 0 0;
        background: rgba(0, 0, 0, .28);
        backdrop-filter: blur(1px);
        z-index: 8000;
    }

    /* IMPORTANT : ne pas laisser un ancien sélecteur flotter par-dessus */
    .language-selector {
        position: static !important;
        background: transparent !important;
        box-shadow: none !important;
        padding: 0 !important;
        z-index: auto !important;
    }
}

/* Accessibilité / confort */
html {
    scroll-behavior: smooth
}

.vg-backdrop[hidden] {
    display: none !important
}
/* Le backdrop doit être caché par défaut (desktop et mobile) */
.vg-backdrop { display: none !important; }

/* Il ne s’affiche QUE en mobile quand le toggle est coché */
@media (max-width: 768px){
  #navToggle:checked ~ .vg-backdrop {
    display: block !important;
    position: fixed;
    inset: 64px 0 0 0;
    background: rgba(0,0,0,.28);
    backdrop-filter: blur(1px);
    z-index: 8000;
  }
}

/* S’assure aussi que le menu redevient “normal” sur desktop */
@media (min-width: 769px){
  #navMenu{
    position: static !important;
    transform: none !important;
    width: auto !important;
    padding: 0 !important;
    box-shadow: none !important;
  }
}
