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

:root {
    --primary-color: #1a4a5e;
    --primary-dark: #0f3444;
    --primary-light: #2d6a7a;
    --secondary-color: #3a9d9b;
    --secondary-light: #5fbfbd;
    --accent-color: #7ec8c8;
    --gradient-primary: linear-gradient(135deg, #1a4a5e 0%, #3a9d9b 100%);
    --gradient-secondary: linear-gradient(135deg, #3a9d9b 0%, #7ec8c8 100%);
    --text-dark: #1a4a5e;
    --text-light: #5a7a8a;
    --bg-light: #f0f7f7;
    --bg-white: #ffffff;
    --border-color: #d0e5e5;
    --success-color: #3a9d9b;
    --error-color: #e74c3c;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
    font-family: var(--font-family);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-white);
}

/* Top Bar */
.top-bar {
    background: var(--primary-color);
    color: white;
    padding: 0.6rem 0;
    font-size: 0.875rem;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left,
.top-bar-right {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.top-bar-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s;
}

.top-bar-item span {
    font-weight: 400;
    letter-spacing: 0.3px;
}

.top-bar-icon {
    flex-shrink: 0;
}

a.top-bar-item:hover {
    color: var(--accent-color);
}

a.top-bar-item:hover .top-bar-icon {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .top-bar-content {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .top-bar-left,
    .top-bar-right {
        gap: 1.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .top-bar {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .top-bar-right {
        display: none;
    }
}

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

/* Navigation */
.navbar {
    background: var(--bg-white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.2rem 0;
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

@media (max-width: 768px) {
    .logo-img {
        height: 40px;
    }
}

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

.nav-menu > li {
    padding: 0 1.25rem;
    position: relative;
}

.nav-menu > li::after {
    content: '';
    position: absolute;
    right: 0;
    top: -0.9rem;
    bottom: -0.9rem;
    width: 1px;
    background: var(--border-color);
    box-shadow: 1px 0 4px rgba(0, 0, 0, 0.1);
}

.nav-menu > li:last-child::after {
    display: none;
}

.nav-menu > li:first-child {
    padding-left: 0;
}

/* Bouton Audit gratuit */
.nav-cta {
    border-right: none !important;
}

.nav-cta::after {
    display: none !important;
}

.btn-audit {
    background: var(--gradient-secondary);
    color: white !important;
    padding: 0.6rem 1.2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
    display: inline-block;
    text-decoration: none;
}

.btn-audit:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(58, 157, 155, 0.4);
    color: white !important;
}

.btn-audit::after {
    display: none !important;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -18px;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-color);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.5);
}

.dropdown {
    position: relative;
}

.dropdown-arrow {
    font-size: 0.75rem;
    margin-left: 0.25rem;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-white);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    list-style: none;
    min-width: 200px;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
}
/* Mega Menu */
/* Mega Menu - Compact Version */
.mega-menu-dropdown {
    position: static;
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: var(--bg-white);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    padding: 1rem 0;
    margin-top: 0rem;
    width: 85%;
    max-width: 850px;
    border-radius: 0.5rem;
}
.mega-menu-dropdown:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.mega-menu-content {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 1.5rem;  /* Réduit de 20px à 1.5rem */
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.mega-menu-column {
    display: flex;
    flex-direction: column;
}

.mega-menu-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;  /* Réduit de 0.75rem */
    font-size: 1rem;  /* Réduit de 1.125rem */
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.75rem;  /* Réduit de 1rem */
    padding-bottom: 0.5rem;  /* Réduit de 0.75rem */
    border-bottom: 2px solid var(--border-color);
}

.mega-menu-icon {
    font-size: 1.25rem;  /* Réduit de 1.5rem */
}

.mega-menu-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;  /* Réduit de 0.5rem */
}

.mega-menu-list li {
    padding: 0;
}

.mega-menu-list a {
    display: block;
    padding: 0.375rem 0;  /* Réduit de 0.5rem */
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.875rem;  /* Réduit de 0.9375rem */
    transition: all 0.2s;
    border-left: 2px solid transparent;  /* Réduit de 3px */
    padding-left: 0.5rem;  /* Réduit de 0.75rem */
}

.mega-menu-list a:hover {
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    padding-left: 0.75rem;  /* Réduit de 1rem */
}

/* Responsive Mega Menu */
@media (max-width: 968px) {
    .mega-menu-content {
        grid-template-columns: 1fr;
        gap: 1rem;  /* Réduit de 2rem */
    }
    
    .mega-menu {
        position: relative;
        box-shadow: none;
        padding: 0.75rem 0;  /* Réduit de 1rem */
    }
    
    .mega-menu-dropdown {
        position: relative;
    }
    
    .mega-menu-title {
        font-size: 0.9375rem;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 768px) {
    .mega-menu {
        display: none;
    }
    
    .mega-menu.active {
        display: block;
        position: relative;
        opacity: 1;
        visibility: visible;
        transform: none;
    }
}
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: all 0.3s;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 74, 94, 0.4);
}

.btn-secondary {
    background: var(--gradient-secondary);
    color: white;
}

.btn-secondary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(58, 157, 155, 0.4);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* Hero Slider – même rendu ordinateur et mobile */
.hero-slider {
    position: relative;
    min-height: 70vh;
    height: 70vh;
    max-height: 820px;
    overflow: hidden;
    overflow-x: hidden;
    touch-action: pan-y;
}

@supports (height: 70dvh) {
    .hero-slider {
        min-height: 70dvh;
        height: 70dvh;
    }
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1);
    transition: transform 8s ease;
}

.slide.active .slide-bg {
    transform: scale(1.05);
}

.slide-bg-1 {
    background-image: url('../img/slides/slide1.jpg');
    background-color: var(--primary-color);
}

.slide-bg-2 {
    background-image: url('../img/slides/slide2.jpg');
    background-color: #0f3444;
}

.slide-bg-3 {
    background-image: url('../img/slides/slide3.jpg');
    background-color: #2d6a7a;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 74, 94, 0.85) 0%, rgba(26, 74, 94, 0.6) 100%);
}

.slide .container {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    max-width: 100%;
    box-sizing: border-box;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

.slide-content {
    max-width: 700px;
    width: 100%;
    min-width: 0;
    color: white;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.slide-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1.25rem;
    border-radius: 2rem;
    font-size: clamp(0.75rem, 2vw, 0.875rem);
    font-weight: 500;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.slide.active .slide-badge {
    animation-delay: 0.2s;
}

.slide-content h1 {
    font-size: clamp(1.5rem, 4vw + 1rem, 3.25rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    overflow-wrap: break-word;
    word-wrap: break-word;
    max-width: 100%;
}

.slide.active .slide-content h1 {
    animation-delay: 0.4s;
}

.slide-content h1 span {
    color: var(--accent-color);
}

.slide-content > p {
    font-size: clamp(0.95rem, 1.5vw + 0.5rem, 1.15rem);
    line-height: 1.7;
    opacity: 0;
    margin-bottom: 2rem;
    animation: fadeInUp 0.6s ease forwards;
}

.slide.active .slide-content > p {
    animation-delay: 0.6s;
}

.slide-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.slide.active .slide-buttons {
    animation-delay: 0.8s;
}

.slide-buttons .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
    padding: 0.85rem 1.75rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-outline:hover {
    background: white;
    border-color: white;
    color: var(--primary-color);
}

.slide-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.slide.active .slide-features {
    animation-delay: 1s;
}

.slide-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: clamp(0.8rem, 1.2vw + 0.3rem, 0.9rem);
    color: rgba(255, 255, 255, 0.9);
}

.slide-feature svg {
    color: var(--accent-color);
}

/* Slider Controls */
.slider-controls {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    z-index: 10;
    max-width: calc(100% - 2rem);
    box-sizing: border-box;
}

.slider-arrow {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.slider-arrow:hover {
    background: white;
    color: var(--primary-color);
}

.slider-dots {
    display: flex;
    gap: 0.75rem;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.slider-dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.slider-dot.active {
    background: white;
}

.slider-dot.active::before {
    border-color: rgba(255, 255, 255, 0.5);
}

.slider-dot:hover {
    background: rgba(255, 255, 255, 0.6);
}

/* Slider Progress */
.slider-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 10;
    box-sizing: border-box;
}

.slider-progress-bar {
    height: 100%;
    background: var(--accent-color);
    width: 0;
    transition: width 0.1s linear;
}

/* Slider Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Slider – présentation mobile : pas de chevauchement, boutons lisibles */
@media (max-width: 768px) {
    .slide .container {
        padding-left: 1rem;
        padding-right: 1rem;
        align-items: flex-start;
        justify-content: center;
        padding-top: 1.5rem;
        padding-bottom: 5.5rem; /* réserve l’espace pour points + flèches + barre */
    }
    
    .slide-content > p {
        margin-bottom: 1.25rem;
    }
    
    .slide-buttons {
        margin-bottom: 1rem;
        gap: 0.5rem 0.75rem;
    }
    
    .slide-buttons .btn {
        padding: 0.7rem 1rem;
        font-size: 0.875rem;
        white-space: nowrap;
    }
    
    .slide-buttons .btn svg {
        flex-shrink: 0;
        width: 18px;
        height: 18px;
    }
    
    /* Contrôles en bas : flèches à gauche/droite, points au centre */
    .slider-controls {
        bottom: 0.75rem;
        left: 0;
        right: 0;
        transform: none;
        max-width: none;
        justify-content: center;
        gap: 0.75rem;
        padding: 0 3.25rem;
    }
    
    .slider-arrow.slider-prev {
        position: absolute;
        left: 0.5rem;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .slider-arrow.slider-next {
        position: absolute;
        right: 0.5rem;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .slider-dots {
        flex: none;
    }
    
    .slider-arrow {
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
    }
    
    .slider-dot::before {
        width: 32px;
        height: 32px;
    }
}

/* Legacy Hero Section (kept for other pages) */
.hero {
    background: var(--gradient-primary);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    opacity: 0.95;
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Services Sections */
.services-section {
    padding: 4rem 0;
}

.services-section h2 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
    text-align: center;
    color: var(--text-dark);
}

.section-intro {
    text-align: center;
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 3rem;
}

.section-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-top: 3rem;
}

.section-content.reverse {
    direction: rtl;
}

.section-content.reverse > * {
    direction: ltr;
}

.content-text h3 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.service-list {
    list-style: none;
    margin: 2rem 0;
}

.service-list li {
    padding: 0.75rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.service-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.placeholder-image {
    background: var(--bg-light);
    border: 2px dashed var(--border-color);
    border-radius: 0.5rem;
    padding: 4rem 2rem;
    text-align: center;
    color: var(--text-light);
    font-weight: 500;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.service-card,
.service-detail-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 2rem;
    transition: all 0.3s;
    text-align: center;
}

.service-card:hover,
.service-detail-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3,
.service-detail-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.service-card p,
.service-detail-card p {
    color: var(--text-light);
    line-height: 1.6;
}

.bg-light {
    background: var(--bg-light);
}

.text-center {
    text-align: center;
}

/* Partners Section */
.partners-section {
    padding: 4rem 0;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.partner-logo {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.partner-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.partner-placeholder {
    color: var(--text-light);
    font-weight: 600;
    font-size: 1.25rem;
}

/* Page Header */
.page-header {
    background: var(--gradient-primary);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.125rem;
    opacity: 0.9;
}

/* Page Content */
.page-content {
    padding: 3rem 0;
}

.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.text-content h2 {
    font-size: 2rem;
    margin: 2rem 0 1rem;
    color: var(--text-dark);
}

.text-content h3 {
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem;
    color: var(--text-dark);
}

.text-content p {
    margin-bottom: 1rem;
    color: var(--text-light);
    line-height: 1.8;
}

.text-content ul {
    margin: 1rem 0 1rem 2rem;
    color: var(--text-light);
}

.text-content li {
    margin-bottom: 0.5rem;
}

.service-category {
    margin: 4rem 0;
    padding-top: 2rem;
}

.service-category h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.cta-section {
    margin: 3rem 0;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 0.75rem;
}

.cta-section h3 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.cta-section p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

/* Contact Page */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    margin-top: 2rem;
}

.contact-info h2 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.info-block {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.info-block:last-child {
    border-bottom: none;
}

.info-block h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.info-block p {
    color: var(--text-light);
    line-height: 1.8;
}

.info-block a {
    color: var(--primary-color);
    text-decoration: none;
}

.info-block a:hover {
    text-decoration: underline;
}

.social-links {
    margin-top: 2rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icon {
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    transition: all 0.3s;
}

.social-icon:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.contact-form-wrapper {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 0.75rem;
}

.contact-form-wrapper h2 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-family: var(--font-family);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.error-message {
    display: block;
    color: var(--error-color);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Alerts */
.alert {
    padding: 1rem 0;
    margin-bottom: 0;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border-bottom: 2px solid var(--success-color);
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border-bottom: 2px solid var(--error-color);
}

.alert ul {
    list-style: none;
    margin: 0;
}

.alert li {
    margin: 0.25rem 0;
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-logo-wrap {
    display: inline-block;
    padding: 0.75rem;
    border: 2px solid white;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    transition: box-shadow 0.3s, background 0.3s;
}

.footer-logo-wrap:hover {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.05);
}

.footer-logo {
    display: block;
    height: 56px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

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

.footer-section h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-white);
        flex-direction: column;
        padding: 1rem 1.5rem;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
        display: none;
        gap: 0;
        border-top: 3px solid var(--primary-color);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu > li {
        padding: 0;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        width: 100%;
    }

    .nav-menu > li::after {
        display: none;
    }

    .nav-menu > li:last-child {
        border-bottom: none;
    }

    .nav-menu > li:first-child {
        padding-left: 0;
    }

    .nav-menu a {
        display: block;
        padding: 1rem 0;
        font-size: 1rem;
    }

    .nav-menu a.active::after {
        display: none;
    }

    .nav-menu a.active {
        color: var(--primary-color);
        border-left: 3px solid var(--primary-color);
        padding-left: 1rem;
        margin-left: -0.5rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

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

    .section-content {
        grid-template-columns: 1fr;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

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

    .hero-features {
        grid-template-columns: 1fr;
    }
}
/* Language Switcher */
.language-switcher {
    position: relative;
    margin-left: 1rem;
}

.lang-dropdown {
    position: relative;
}

.lang-btn {
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    padding: 0.5rem 0.875rem;
    border-radius: 0.625rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.02em;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: border-color 0.25s, color 0.25s, box-shadow 0.25s;
}

.lang-btn:hover {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.lang-btn[aria-expanded="true"],
.lang-dropdown:hover .lang-btn {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(58, 157, 155, 0.15);
}

.lang-chevron {
    transition: transform 0.25s;
}

.lang-dropdown:hover .lang-chevron,
.lang-btn[aria-expanded="true"] .lang-chevron {
    transform: rotate(180deg);
}

.lang-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: var(--bg-white);
    box-shadow: 0 10px 40px rgba(26, 74, 94, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
    list-style: none;
    min-width: 140px;
    padding: 0.375rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
}

.lang-dropdown:hover .lang-menu,
.lang-dropdown.open .lang-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-menu li {
    padding: 0;
}

.lang-menu a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.875rem;
    padding-left: 1rem;
    text-decoration: none;
    color: var(--text-dark);
    border-radius: 0.5rem;
    transition: background 0.2s, color 0.2s;
}

.lang-menu a::after {
    display: none;
    content: none;
}

.lang-menu a:hover {
    background: var(--bg-light);
    color: var(--secondary-color);
}

.lang-menu a.active {
    background: linear-gradient(135deg, rgba(58, 157, 155, 0.12) 0%, rgba(126, 200, 200, 0.08) 100%);
    color: var(--secondary-color);
    font-weight: 600;
}

.lang-menu a.active::before {
    content: '';
    position: absolute;
    left: 0.375rem;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: var(--secondary-color);
    border-radius: 0 2px 2px 0;
}

.lang-option-label {
    font-weight: 700;
    font-size: 0.875rem;
    min-width: 1.75rem;
}

.lang-option-name {
    font-size: 0.8125rem;
    color: var(--text-light);
}

.lang-menu a:hover .lang-option-name,
.lang-menu a.active .lang-option-name {
    color: inherit;
}

@media (max-width: 480px) {
    .lang-option-name {
        display: none;
    }
    .lang-menu {
        min-width: 100px;
    }
}

/* Social Sidebar */
.social-sidebar {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: var(--gradient-primary);
    padding: 1rem 0;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 1rem;
    z-index: 999;
    border-radius: 0.5rem 0 0 0.5rem;
}

.social-sidebar-text {
    color: white;
    font-size: 0.75rem;
    font-weight: 500;
    writing-mode: vertical-lr;
    text-orientation: mixed;
    transform: rotate(180deg);
    letter-spacing: 1px;
}

.social-sidebar-line {
    width: 1px;
    height: 30px;
    background: rgba(255, 255, 255, 0.3);
}

.social-sidebar-icon {
    color: white;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
}

.social-sidebar-icon:hover {
    color: var(--secondary-light);
    transform: scale(1.2);
}

/* Réseaux sociaux visibles sur mobile : barre horizontale en bas */
@media (max-width: 768px) {
    .social-sidebar {
        top: auto;
        right: 0;
        bottom: 0;
        left: 0;
        transform: none;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 0.5rem 1rem;
        padding: 0.6rem 1rem;
        border-radius: 0;
        box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.15);
    }
    
    .social-sidebar-text {
        writing-mode: horizontal-tb;
        transform: none;
        font-size: 0.8rem;
        margin-right: 0.25rem;
    }
    
    .social-sidebar-line {
        width: 1px;
        height: 1.25rem;
        flex-shrink: 0;
    }
    
    .social-sidebar-icon {
        padding: 0.5rem;
    }
    
    .social-sidebar-icon svg {
        width: 22px;
        height: 22px;
    }
}