/* ==========================================================================
   Vision Bâtiments - Feuille de style principale
   Design luxueux inspiré de Dior et Barnes International
   ========================================================================== */

/* Variables CSS */
:root {
    /* Couleurs principales */
    --color-primary: #1a237e;
    --color-primary-dark: #0d1854;
    --color-primary-light: #3949ab;
    --color-secondary: #ffffff;
    --color-accent: #ffd700;
    --color-dark: #000000;
    --color-gray-900: #212121;
    --color-gray-800: #424242;
    --color-gray-700: #616161;
    --color-gray-600: #757575;
    --color-gray-500: #9e9e9e;
    --color-gray-400: #bdbdbd;
    --color-gray-300: #e0e0e0;
    --color-gray-200: #eeeeee;
    --color-gray-100: #f5f5f5;
    
    /* Polices */
    --font-primary: 'Helvetica Neue', 'Arial', sans-serif;
    --font-secondary: 'Georgia', 'Times New Roman', serif;
    
    /* Tailles de police */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;
    
    /* Espacements */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;
    
    /* Ombres */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
    
    /* Z-index */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
}
/* TÉMOIGNAGES AMÉLIORÉS AVEC AUTO-SCROLL */
.testimonials {
    position: relative;
    overflow: hidden;
}

.testimonials-slider {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonials-track {
    display: flex;
    animation: slideTestimonials 30s infinite linear;
}

.testimonials-track:hover {
    animation-play-state: paused;
}

.testimonial-item {
    flex: 0 0 100%;
    padding: var(--space-8);
    text-align: center;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.testimonial-stars {
    margin-bottom: var(--space-4);
}

.star {
    font-size: var(--text-2xl);
    color: var(--color-gray-300);
    margin: 0 2px;
}

.star.filled {
    color: var(--color-accent);
}

.testimonial-text {
    font-size: var(--text-xl);
    font-style: italic;
    line-height: 1.8;
    margin-bottom: var(--space-6);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.testimonial-author strong {
    display: block;
    font-size: var(--text-lg);
    margin-bottom: var(--space-1);
}

.testimonial-author span {
    color: var(--color-gray-600);
    font-size: var(--text-sm);
}

.testimonials-nav {
    display: flex;
    justify-content: center;
    gap: var(--space-4);
    margin-top: var(--space-4);
}

.testimonials-nav button {
    width: 50px;
    height: 50px;
    border: 2px solid var(--color-primary);
    background: none;
    color: var(--color-primary);
    font-size: var(--text-2xl);
    cursor: pointer;
    transition: all var(--transition-base);
}

.testimonials-nav button:hover {
    background-color: var(--color-primary);
    color: white;
}

/* Animation pour les témoignages */
@keyframes slideTestimonials {
    0% { transform: translateX(0); }
    16.666% { transform: translateX(-100%); }
    33.333% { transform: translateX(-200%); }
    50% { transform: translateX(-300%); }
    66.666% { transform: translateX(-400%); }
    83.333% { transform: translateX(-500%); }
    100% { transform: translateX(-600%); }
}

/* TIMELINE CORRIGÉE - ABOUT PAGE */
.timeline {
    position: relative;
    padding: var(--space-8) 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background-color: var(--color-primary);
    z-index: 1;
}

.timeline-item {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: var(--space-16);
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-content {
    flex: 1;
    padding: var(--space-8);
    background-color: var(--color-secondary);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    position: relative;
    z-index: 3;
}

[data-theme="dark"] .timeline-content {
    background-color: var(--color-gray-100);
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.timeline-date {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-primary);
    color: white;
    padding: var(--space-2) var(--space-4);
    font-weight: 600;
    white-space: nowrap;
    z-index: 4;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background-color: var(--color-primary);
    border: 4px solid var(--color-secondary);
    border-radius: 50%;
    z-index: 2;
}

[data-theme="dark"] .timeline-dot {
    border-color: var(--color-gray-100);
}

/* Flèches de timeline corrigées pour desktop */
.timeline-item:nth-child(odd) .timeline-content::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -15px;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border: 15px solid transparent;
    border-left: 15px solid var(--color-secondary);
    z-index: 3;
}

[data-theme="dark"] .timeline-item:nth-child(odd) .timeline-content::after {
    border-left-color: var(--color-gray-100);
}

.timeline-item:nth-child(even) .timeline-content::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -15px;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border: 15px solid transparent;
    border-right: 15px solid var(--color-secondary);
    z-index: 3;
}

[data-theme="dark"] .timeline-item:nth-child(even) .timeline-content::after {
    border-right-color: var(--color-gray-100);
}

/* GOOGLE MAP STYLES POUR CONTACT */
.map-section {
    position: relative;
    height: 500px;
    margin: var(--space-16) 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
}

.map-iframe {
    width: 100%;
    height: 100%;
    border: none;
    filter: grayscale(20%);
    transition: filter var(--transition-base);
}

.map-iframe:hover {
    filter: grayscale(0%);
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(26, 35, 126, 0.95) 0%, rgba(13, 24, 84, 0.95) 100%);
    color: white;
    padding: var(--space-6);
    z-index: 2;
}

.map-info {
    max-width: 400px;
}

.map-info h3 {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-4);
}

.map-info p {
    margin-bottom: var(--space-4);
    opacity: 0.9;
}

.map-info .btn {
    margin-top: var(--space-4);
}

/* Responsive amélioré pour mobile et tablette */
@media (max-width: 1024px) {
    /* Responsive du dark mode toggle sur tablette */
    .toggle-switch {
        width: 120px;
        height: 40px;
        font-size: 10px;
        padding: 0 12px;
    }
    
    .toggle-circle {
        width: 32px;
        height: 32px;
        top: 2px;
        left: 2px;
    }
    
    [data-theme="dark"] .toggle-circle {
        transform: translateX(78px);
    }

    /* Timeline responsive */
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item,
    .timeline-item:nth-child(even) {
        flex-direction: column;
        padding-left: 60px;
    }
    
    .timeline-dot {
        left: 30px;
    }
    
    .timeline-date {
        position: static;
        transform: none;
        margin-bottom: var(--space-2);
        display: inline-block;
    }

    .timeline-item:nth-child(odd) .timeline-content::after,
    .timeline-item:nth-child(even) .timeline-content::after {
        display: none;
    }
}

@media (max-width: 768px) {
    /* Responsive du dark mode toggle sur mobile */
    .toggle-switch {
        width: 100px;
        height: 35px;
        font-size: 8px;
        padding: 0 10px;
    }
    
    .toggle-circle {
        width: 27px;
        height: 27px;
        top: 2px;
        left: 2px;
    }
    
    [data-theme="dark"] .toggle-circle {
        transform: translateX(63px);
    }

    /* Map responsive */
    .map-section {
        height: 400px;
    }

    .map-overlay {
        position: relative;
        background: var(--color-primary);
    }

    /* Témoignages responsive */
    .testimonial-item {
        min-height: 250px;
        padding: var(--space-4);
    }

    .testimonial-text {
        font-size: var(--text-lg);
    }
}
/* Mode sombre */
[data-theme="dark"] {
    --color-primary: #3949ab;
    --color-primary-dark: #283593;
    --color-primary-light: #5c6bc0;
    --color-secondary: #121212;
    --color-dark: #353333;
    --color-gray-900: #f5f5f5;
    --color-gray-800: #eeeeee;
    --color-gray-700: #e0e0e0;
    --color-gray-600: #bdbdbd;
    --color-gray-500: #9e9e9e;
    --color-gray-400: #757575;
    --color-gray-300: #616161;
    --color-gray-200: #424242;
    --color-gray-100: #363434;
}

/* Reset CSS */
*, *::before, *::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--color-gray-900);
    background-color: var(--color-secondary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

input, button, textarea, select {
    font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
}

a {
    color: inherit;
    text-decoration: none;
}

ul, ol {
    list-style: none;
}

/* Utilitaires */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-4);
}

.text-center {
    text-align: center;
}

.text-accent {
    color: var(--color-primary);
}

/* Boutons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-8);
    font-size: var(--text-base);
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: 2px solid transparent;
    border-radius: 0;
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: left var(--transition-base);
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: white;
}

.btn-white {
    background-color: white;
    color: var(--color-primary);
    border-color: white;
}

.btn-white:hover {
    background-color: var(--color-gray-100);
    transform: translateY(-2px);
}

.btn-outline-white {
    background-color: transparent;
    color: white;
    border-color: white;
}

.btn-outline-white:hover {
    background-color: white;
    color: var(--color-primary);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-gray-700);
    border-color: var(--color-gray-400);
}

.btn-outline:hover {
    border-color: var(--color-gray-700);
    background-color: var(--color-gray-100);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--color-secondary);
    box-shadow: var(--shadow-sm);
    z-index: var(--z-fixed);
    transition: all var(--transition-base);
}

[data-theme="dark"] .header {
    background-color: var(--color-gray-100);
}

.navbar {
    padding: var(--space-4) 0;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    height: 70px;
}

.logo img {
    height: 100%;
    width: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-8);
    margin: 0 auto;
}

.nav-menu a {
    font-size: var(--text-sm);
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color var(--transition-base);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width var(--transition-base);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--color-primary);
}

.cta-nav {
    background-color: var(--color-primary);
    color: white !important;
    padding: var(--space-2) var(--space-4);
    margin-left: var(--space-4);
}

.cta-nav:hover {
    background-color: var(--color-primary-dark);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

/* NOUVEAU DARK MODE TOGGLE */
.dark-mode-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-switch {
    position: relative;
    width: 180px;
    height: 60px;
    background-color: #e5e5e5;
    border-radius: 30px;
    border: 2px solid #ccc;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    transition: all 0.3s ease;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 14px;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 1px;
}

[data-theme="dark"] .toggle-switch {
    background-color: #1a1a1a;
    border-color: #333;
    color: white;
}

.toggle-text {
    position: relative;
    z-index: 2;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: opacity 0.3s ease;
}

.toggle-text.off {
    opacity: 1;
    position: absolute;
    left: 70px;
}

.toggle-text.on {
    opacity: 0;
    position: absolute;
    left: 14px;
}

[data-theme="dark"] .toggle-text.off {
    opacity: 0;
}

[data-theme="dark"] .toggle-text.on {
    opacity: 1;
}

.toggle-circle {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 50px;
    height: 50px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

[data-theme="dark"] .toggle-circle {
    transform: translateX(124px);
    background-color: white;
}

.toggle-icon {
    font-size: 24px;
    transition: opacity 0.3s ease;
}

.toggle-icon.sun-icon {
    opacity: 1;
}

.toggle-icon.moon-icon {
    opacity: 0;
    position: absolute;
}

[data-theme="dark"] .toggle-icon.sun-icon {
    opacity: 0;
}

[data-theme="dark"] .toggle-icon.moon-icon {
    opacity: 1;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-2);
}

.mobile-menu-toggle span {
    width: 20px;
    height: 2.5px;
    background-color: var(--color-gray-900);
    transition: all var(--transition-base);
}

[data-theme="dark"] .mobile-menu-toggle span {
    background-color:white
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 82px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 35, 126, 0.9) 0%, rgba(13, 24, 84, 0.9) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: var(--text-5xl);
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: var(--space-4);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: var(--text-xl);
    font-weight: 300;
    margin-bottom: var(--space-8);
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: var(--space-8);
    left: 50%;
    transform: translateX(-50%);
}

.scroll-indicator {
    width: 30px;
    height: 50px;
    border: 2px solid white;
    border-radius: 25px;
    position: relative;
    opacity: 0.7;
}

.scroll-indicator::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 10px;
    background-color: white;
    border-radius: 2px;
    animation: scroll 2s infinite;
}

/* Sections */
section {
    padding: var(--space-24) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-16);
}

.section-title {
    font-size: var(--text-4xl);
    font-weight: 300;
    letter-spacing: 1px;
    margin-bottom: var(--space-4);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background-color: var(--color-primary);
}

.section-subtitle {
    font-size: var(--text-lg);
    color: var(--color-gray-600);
    max-width: 600px;
    margin: 0 auto;
}

/* Presentation */
.presentation {
    background-color: var(--color-gray-100);
}

[data-theme="dark"] .presentation {
    background-color: var(--color-gray-200);
}

.presentation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-8);
}

.presentation-item {
    text-align: center;
    padding: var(--space-8);
    background-color: var(--color-secondary);
    transition: all var(--transition-base);
}

[data-theme="dark"] .presentation-item {
    background-color: var(--color-gray-100);
}

.presentation-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.presentation-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-4);
    background-color: var(--color-primary);
    color: white;
    transition: all var(--transition-base);
}

.presentation-item:hover .presentation-icon {
    transform: rotate(360deg);
}

.presentation-item h3 {
    font-size: var(--text-2xl);
    font-weight: 400;
    margin-bottom: var(--space-4);
}

.presentation-item p {
    color: var(--color-gray-600);
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-8);
}

.service-card {
    position: relative;
    overflow: hidden;
    background-color: var(--color-secondary);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

[data-theme="dark"] .service-card {
    background-color: var(--color-gray-100);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.service-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 35, 126, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.service-card:hover .service-overlay {
    opacity: 1;
}

.service-content {
    padding: var(--space-8);
}

.service-content h3 {
    font-size: var(--text-2xl);
    font-weight: 400;
    margin-bottom: var(--space-3);
}

.service-content p {
    color: var(--color-gray-600);
}

/* Projects Showcase */
.recent-projects {
    background-color: var(--color-gray-100);
}

[data-theme="dark"] .recent-projects {
    background-color: var(--color-gray-200);
}

.projects-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-4);
    margin-bottom: var(--space-8);
}

.project-item {
    position: relative;
    overflow: hidden;
    height: 400px;
}

.project-image {
    width: 100%;
    height: 100%;
    position: relative;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.project-item:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    color: white;
    padding: var(--space-8) var(--space-4);
    transform: translateY(100%);
    transition: transform var(--transition-base);
}

.project-item:hover .project-overlay {
    transform: translateY(0);
}

.project-overlay h4 {
    font-size: var(--text-xl);
    font-weight: 400;
    margin-bottom: var(--space-2);
}

.project-overlay p {
    font-size: var(--text-sm);
    opacity: 0.9;
}

/* Testimonials */
.testimonials {
    position: relative;
    overflow: hidden;
}

.testimonials-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.testimonials-track {
    display: flex;
    transition: transform var(--transition-slow);
}

.testimonial-item {
    flex: 0 0 100%;
    padding: var(--space-8);
    text-align: center;
}

.testimonial-stars {
    margin-bottom: var(--space-4);
}

.star {
    font-size: var(--text-2xl);
    color: var(--color-gray-300);
}

.star.filled {
    color: var(--color-accent);
}

.testimonial-text {
    font-size: var(--text-xl);
    font-style: italic;
    line-height: 1.8;
    margin-bottom: var(--space-6);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.testimonial-author strong {
    display: block;
    font-size: var(--text-lg);
    margin-bottom: var(--space-1);
}

.testimonial-author span {
    color: var(--color-gray-600);
    font-size: var(--text-sm);
}

.testimonials-nav {
    display: flex;
    justify-content: center;
    gap: var(--space-4);
    margin-top: var(--space-4);
}

.testimonials-nav button {
    width: 50px;
    height: 50px;
    border: 2px solid var(--color-primary);
    background: none;
    color: var(--color-primary);
    font-size: var(--text-2xl);
    cursor: pointer;
    transition: all var(--transition-base);
}

.testimonials-nav button:hover {
    background-color: var(--color-primary);
    color: white;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: var(--text-4xl);
    font-weight: 300;
    margin-bottom: var(--space-4);
}

.cta-content p {
    font-size: var(--text-xl);
    margin-bottom: var(--space-8);
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
.footer {
    background-color: var(--color-gray-900);
    color: white;
    padding: var(--space-16) 0 var(--space-8);
}

[data-theme="dark"] .footer {
    background-color: var(--color-dark);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-8);
    margin-bottom: var(--space-8);
}

.footer-logo {
    height: 60px;
    margin-bottom: var(--space-4);
    filter: brightness(0) invert(1);
}

.footer-brand p {
    margin-bottom: var(--space-4);
    opacity: 0.8;
}

.social-links {
    display: flex;
    gap: var(--space-3);
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all var(--transition-base);
}

.social-links a:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.footer-links h4,
.footer-contact h4 {
    font-size: var(--text-lg);
    font-weight: 400;
    margin-bottom: var(--space-4);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.footer-links a {
    opacity: 0.8;
    transition: opacity var(--transition-base);
}

.footer-links a:hover {
    opacity: 1;
}

.footer-contact p {
    margin-bottom: var(--space-2);
    opacity: 0.8;
}

.footer-contact a {
    transition: opacity var(--transition-base);
}

.footer-contact a:hover {
    opacity: 1;
}

.footer-bottom {
    padding-top: var(--space-8);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    font-size: var(--text-sm);
    opacity: 0.6;
    margin-bottom: var(--space-2);
}

.footer-legal {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    margin-top: var(--space-4);
}

.footer-legal a {
    font-size: var(--text-sm);
    opacity: 0.6;
    transition: opacity var(--transition-base);
}

.footer-legal a:hover {
    opacity: 1;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: var(--space-8);
    right: var(--space-8);
    width: 50px;
    height: 50px;
    background-color: var(--color-primary);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    z-index: var(--z-fixed);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-5px);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--color-gray-900);
    color: white;
    padding: var(--space-4);
    transform: translateY(100%);
    transition: transform var(--transition-base);
    z-index: var(--z-fixed);
}

[data-theme="dark"] .cookie-banner {
    background-color: var(--color-dark);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.cookie-content p {
    flex: 1;
    font-size: var(--text-sm);
}

.cookie-actions {
    display: flex;
    gap: var(--space-3);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .nav-menu {
        position: fixed;
        top: 82px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 82px);
        background-color: var(--color-secondary);
        flex-direction: column;
        padding: var(--space-8);
        transition: left var(--transition-base);
    }
    
    [data-theme="dark"] .nav-menu {
        background-color: var(--color-gray-100);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-actions {
        position: absolute;
        top: var(--space-4);
        right: 80px;
    }
    
    /* Responsive du dark mode toggle sur tablette */
    .toggle-switch {
        width: 140px;
        height: 50px;
        font-size: 11px;
        padding: 0 15px;
    }
    
    .toggle-circle {
        width: 40px;
        height: 40px;
        top: 3px;
        left: 3px;
    }
    
    [data-theme="dark"] .toggle-circle {
        transform: translateX(88px);
    }
    
    .toggle-icon {
        font-size: 18px;
    }
    
    .hero-title {
        font-size: var(--text-4xl);
    }
    
    .section-title {
        font-size: var(--text-3xl);
    }
}

@media (max-width: 768px) {
    :root {
        font-size: 14px;
    }
    
    .hero {
        margin-top: 70px;
    }
    
    .hero-title {
        font-size: var(--text-3xl);
    }
    
    .hero-subtitle {
        font-size: var(--text-lg);
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    /* Responsive du dark mode toggle sur mobile */
    .toggle-switch {
        width: 120px;
        height: 40px;
        font-size: 9px;
        padding: 0 12px;
    }
    
    .toggle-circle {
        width: 32px;
        height: 32px;
        top: 2px;
        left: 2px;
    }
    
    [data-theme="dark"] .toggle-circle {
        transform: translateX(78px);
    }
    
    .toggle-icon {
        font-size: 14px;
    }
    
    .services-grid,
    .projects-showcase {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-actions {
        justify-content: center;
    }
    
    .back-to-top {
        bottom: var(--space-4);
        right: var(--space-4);
    }
}

/* Print Styles */
@media print {
    .header,
    .hero-scroll,
    .back-to-top,
    .cookie-banner,
    .dark-mode-toggle,
    .mobile-menu-toggle {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
    }
    
    a {
        text-decoration: underline;
    }
    
    .hero {
        height: auto;
        margin-top: 0;
    }
    /* ==========================================================================
   AJOUTS CSS POUR LES NOUVELLES FONCTIONNALITÉS
   À ajouter à la fin de votre fichier style.css existant
   ========================================================================== */

/* Styles pour les images en cours de chargement */
img.loading {
    opacity: 0.5;
    filter: blur(2px);
    transition: all 0.3s ease;
}

img.loaded {
    opacity: 1;
    filter: blur(0);
}

/* Amélioration du slider de témoignages */
.testimonials-track {
    animation-play-state: running;
}

.testimonials-track:hover {
    animation-play-state: paused;
}

/* Responsive amélioré pour les nouvelles sections */
@media (max-width: 992px) {
    .ba-images {
        height: 200px;
    }
    
    .team-image {
        height: 300px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-6);
    }
}

@media (max-width: 576px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: var(--text-4xl);
    }
    
    .whatsapp-btn {
        bottom: 100px; /* Ajusté pour mobile */
        right: 20px;
        width: 50px;
        height: 50px;
    }
    
    .whatsapp-btn svg {
        width: 25px;
        height: 25px;
    }
}

/* Styles pour le mode impression */
@media print {
    .whatsapp-btn,
    .testimonials-nav,
    .hero-scroll {
        display: none !important;
    }
    
    .before-after-item {
        break-inside: avoid;
        margin-bottom: var(--space-4);
    }
}

/* Amélioration de l'accessibilité */
@media (prefers-reduced-motion: reduce) {
    .testimonials-track {
        animation: none;
    }
    
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus visible pour l'accessibilité */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
    border-radius: 2px;
}

/* Styles pour le mode sombre des nouvelles sections */
[data-theme="dark"] .whatsapp-btn {
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

[data-theme="dark"] .stat-number {
    color: var(--color-accent);
}

/* Optimisations performance */
.ba-images,
.team-image,
.project-image img {
    will-change: transform;
}

/* Préchargement des images critiques */
.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../assets/images/home.png');
    background-size: cover;
    background-position: center;
    opacity: 0;
    z-index: -1;
}

/* Indicateur de chargement pour les images */
.image-container {
    position: relative;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Styles pour les tooltips */
[data-tooltip] {
    position: relative;
}

[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-gray-900);
    color: white;
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-sm);
    white-space: nowrap;
    border-radius: 4px;
    z-index: 1000;
    margin-bottom: 5px;
}

[data-tooltip]:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--color-gray-900);
    z-index: 1000;
}

/* Amélioration des animations */
@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-left {
    animation: slideInFromLeft 0.6s ease-out;
}

.animate-right {
    animation: slideInFromRight 0.6s ease-out;
}

/* Styles pour le mode plein écran */
.fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.fullscreen-overlay.active {
    display: flex;
}

.fullscreen-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.fullscreen-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
}

/* Optimisations pour les anciennes versions de navigateurs */
@supports not (grid-template-columns: subgrid) {
    .before-after-grid {
        display: flex;
        flex-wrap: wrap;
        gap: var(--space-4);
    }
    
    .before-after-item {
        flex: 1 1 300px;
    }
}

/* Styles pour l'impression couleur */
@media print and (color) {
    .before-after-item,
    .service-card,
    .presentation-item {
        border: 1px solid #ddd;
    }
}

/* Gestion du mode contraste élevé */
@media (prefers-contrast: high) {
    .btn-primary {
        border: 2px solid currentColor;
    }
    
    .service-overlay {
        background: rgba(0, 0, 0, 0.9);
    }
    
    .hero-overlay {
        background: rgba(0, 0, 0, 0.8);
    }
}
}