/* ===================================
   RESET & BASE
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --color-primary: #E31E24;
    --color-primary-dark: #B91419;
    --color-secondary: #1A1A2E;
    --color-dark: #0A0A0F;
    --color-gray-900: #1A1A1A;
    --color-gray-800: #2A2A2A;
    --color-gray-700: #3A3A3A;
    --color-gray-600: #4A4A4A;
    --color-gray-400: #9CA3AF;
    --color-gray-300: #D1D5DB;
    --color-gray-200: #E5E7EB;
    --color-gray-100: #F3F4F6;
    --color-white: #FFFFFF;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-weight-light: 300;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;
    --font-weight-black: 900;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;
    
    /* Border radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-base: 250ms ease-in-out;
    --transition-slow: 350ms ease-in-out;
    
    /* Container */
    --container-max-width: 1280px;
    --container-padding: 1.5rem;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    font-weight: var(--font-weight-regular);
    line-height: 1.6;
    color: var(--color-gray-900);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: all var(--transition-base);
}

ul {
    list-style: none;
}

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
}

/* ===================================
   UTILITIES
   =================================== */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section {
    padding: var(--spacing-3xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: var(--font-weight-extrabold);
    color: var(--color-gray-900);
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
}

.section-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--color-gray-600);
    max-width: 600px;
    margin: 0 auto;
}

/* ===================================
   BUTTONS
   =================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: var(--font-weight-semibold);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: var(--color-white);
    color: var(--color-gray-900);
    border-color: var(--color-gray-300);
}

.btn-secondary:hover {
    background-color: var(--color-gray-100);
    border-color: var(--color-gray-400);
}

/* ===================================
   WHATSAPP FLOAT
   =================================== */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-xl);
    transition: all var(--transition-base);
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-2xl);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
}

/* ===================================
   HEADER
   =================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-base);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    z-index: 1001;
}

.logo img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    background: white;
    border-radius: 50%;
    padding: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-top: -5px;
}

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

.logo-title {
    font-size: 1.375rem;
    font-weight: var(--font-weight-bold);
    color: var(--color-white);
}

.logo-tagline {
    font-size: 0.75rem;
    color: var(--color-gray-400);
}

.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-list a {
    color: var(--color-gray-300);
    font-weight: var(--font-weight-medium);
    font-size: 0.95rem;
    position: relative;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width var(--transition-base);
}

.nav-list a:hover,
.nav-list a.active {
    color: var(--color-white);
}

.nav-list a:hover::after,
.nav-list a.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.25rem;
    border-radius: var(--radius-full);
}

.lang-btn {
    padding: 0.375rem 0.875rem;
    font-size: 0.875rem;
    font-weight: var(--font-weight-semibold);
    color: var(--color-gray-400);
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
}

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

.lang-btn:hover:not(.active) {
    color: var(--color-white);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 30px;
    height: 30px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--color-white);
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* ===================================
   HERO SECTION
   =================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-secondary) 100%);
    overflow: hidden;
    padding-top: 160px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/images/hero-background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.40;
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 10, 15, 0.85) 0%, rgba(26, 26, 46, 0.75) 100%);
    z-index: 1;
}


.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(227, 30, 36, 0.08) 0%, transparent 50%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.hero-badge {
    display: inline-block;
    padding: 0.375rem 1rem;
    background: rgba(227, 30, 36, 0.2);
    border: 1px solid var(--color-primary);
    border-radius: var(--radius-full);
    color: var(--color-white);
    font-size: 0.75rem;
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--spacing-lg);
    animation: fadeInUp 0.8s ease-out;
}

.hero-title {
    font-size: clamp(2.1rem, 6.8vw, 3.8rem);
    font-weight: var(--font-weight-black);
    color: var(--color-white);
    line-height: 1.1;
    margin-bottom: var(--spacing-lg);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-title-main {
    font-weight: var(--font-weight-black);
    display: block;
}

.hero-title-main .sarl-highlight {
    color: var(--color-primary);
}

/* Hero Title Styling */
.hero-formation {
    color: var(--color-white);
}

.hero-services {
    color: var(--color-primary);
}

.hero-sarl {
    color: var(--color-white);
    font-weight: var(--font-weight-normal);
    font-style: italic;
    font-size: 0.8em;
}

.hero-title-secondary {
    font-weight: var(--font-weight-semibold);
    font-size: 0.75em;
    opacity: 0.9;
    display: block;
}

.hero-confection {
    color: var(--color-white);
}

.hero-ampersand {
    color: var(--color-primary);
}

.hero-broderie {
    color: var(--color-white);
}

.hero-subtitle {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    color: var(--color-gray-300);
    line-height: 1.7;
    margin-bottom: var(--spacing-xl);
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: var(--spacing-2xl);
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: var(--spacing-2xl);
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--color-primary);
    transform: translateY(-5px);
}

.stat-icon {
    color: var(--color-primary);
}

.stat-number {
    font-size: 2rem;
    font-weight: var(--font-weight-extrabold);
    color: var(--color-white);
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--color-gray-400);
    margin-top: 0.25rem;
}

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

/* ===================================
   HISTOIRE SECTION
   =================================== */
.section-histoire {
    background-color: var(--color-white);
}

/* Réduire l'espace entre le header et la timeline */
.section-histoire .section-header {
    margin-bottom: var(--spacing-xs);
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

/* Styles pour la timeline mètre ruban simplifiée */
.timeline-tape-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 0.25rem 0 2rem 0;
}

.timeline-tape {
    width: 100%;
    height: auto;
    display: block;
}

/* Animation hover pour les pastilles */
.timeline-tape .milestone:hover {
    transform: scale(1.15) !important;
}

/* Tooltip pour la timeline */
.timeline-tooltip {
    position: absolute;
    background: white;
    border: 1px solid var(--color-gray-300);
    border-radius: 0.5rem;
    padding: 1rem;
    max-width: 280px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 100;
    pointer-events: none;
}

.timeline-tooltip.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.timeline-tooltip h4 {
    color: var(--color-primary);
    font-size: 1rem;
    font-weight: var(--font-weight-bold);
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.timeline-tooltip p {
    color: var(--color-gray-700);
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0;
}

.tooltip-arrow {
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid white;
}

.tooltip-arrow::before {
    content: '';
    position: absolute;
    top: -7px;
    left: -6px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid var(--color-gray-300);
}

/* Anciens styles désactivés */
.timeline-descriptions {
    display: none;
}

.timeline-desc {
    display: none;
}

/* Anciens styles désactivés pour éviter les conflits */
.timeline::before {
    display: none;
}

.timeline-item {
    display: none;
}

.timeline-year {
    display: none;
}

.timeline-content {
    display: none;
}

.timeline-item {
    display: none;
}

.timeline-year {
    display: none;
}

.timeline-content {
    display: none;
}

/* ===================================
   SOLUTIONS SECTION
   =================================== */
.section-solutions {
    background-color: var(--color-gray-100);
    position: relative;
    overflow: hidden;
}

.section-solutions::before {
    content: '';
    position: absolute;
    top: 0;
    right: -100px;
    width: 400px;
    height: 400px;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200" opacity="0.03"><g fill="none" stroke="%23E31E24" stroke-width="2"><circle cx="100" cy="80" r="30"/><circle cx="100" cy="80" r="20"/><line x1="100" y1="110" x2="100" y2="150"/><rect x="85" y="150" width="30" height="40" rx="3"/><line x1="70" y1="165" x2="130" y2="165"/><line x1="70" y1="180" x2="130" y2="180"/><circle cx="90" cy="85" r="3"/><circle cx="110" cy="85" r="3"/><line x1="75" y1="95" x2="60" y2="110"/><line x1="125" y1="95" x2="140" y2="110"/></g></svg>');
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.4;
    z-index: 0;
}

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

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

.solution-card {
    background: var(--color-white);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    text-align: center;
    transition: all var(--transition-base);
    border: 2px solid transparent;
}

.solution-card:hover {
    transform: translateY(-10px);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-xl);
}

.solution-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary) 0%, #FF4B4B 100%);
    border-radius: var(--radius-xl);
    color: var(--color-white);
}

.solution-card h3 {
    font-size: 1.375rem;
    font-weight: var(--font-weight-bold);
    color: var(--color-gray-900);
    margin-bottom: 1rem;
}

.solution-card p {
    color: var(--color-gray-600);
    line-height: 1.7;
}

/* ===================================
   POURQUOI SECTION
   =================================== */
.section-pourquoi {
    background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-secondary) 100%);
    color: var(--color-white);
    position: relative;
    overflow: hidden;
}

.section-pourquoi::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 300"><g opacity="0.03"><ellipse cx="100" cy="100" rx="30" ry="20" fill="none" stroke="%23FFFFFF" stroke-width="1.5"/><path d="M 70 100 L 130 100 M 100 80 L 100 120" stroke="%23FFFFFF" stroke-width="0.8"/><rect x="200" y="150" width="40" height="30" rx="2" fill="none" stroke="%23FFFFFF" stroke-width="1.5"/><line x1="220" y1="130" x2="220" y2="150" stroke="%23FFFFFF" stroke-width="1.5"/><circle cx="220" cy="127" r="3" fill="%23FFFFFF"/></g></svg>');
    background-repeat: repeat;
    background-size: 400px 300px;
    opacity: 0.5;
    z-index: 0;
}

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

.section-pourquoi .section-title {
    color: var(--color-white);
}

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

.why-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-base);
    text-align: center;
}

.why-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-primary);
    transform: translateY(-5px);
}

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

.why-item h3 {
    font-size: 1.25rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: 0.75rem;
}

.why-item p {
    color: var(--color-gray-300);
    line-height: 1.7;
}

/* ===================================
   RÉFÉRENCES SECTION
   =================================== */
.section-references {
    background-color: var(--color-white);
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    align-items: center;
    justify-items: center;
}

.client-logo {
    width: 100%;
    max-width: 180px;
    padding: 1.5rem;
    opacity: 1;
    transition: all var(--transition-base);
}

.client-logo:hover {
    transform: scale(1.1);
    filter: brightness(1.1);
}

.client-logo img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Ajustement spécifique pour le logo AXA */
.client-logo img[src*="axa.svg"] {
    width: 42%;
    max-width: 75px;
}

/* ===================================
   TÉMOIGNAGES SECTION
   =================================== */
.section-testimonials {
    background-color: var(--color-gray-100);
}

.testimonials-slider {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.testimonial-card {
    background: var(--color-white);
    padding: 3rem;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
    display: none;
}

.testimonial-card.active {
    display: block;
    animation: fadeIn 0.5s ease-out;
}

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

.testimonial-content p {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--color-gray-700);
    font-style: italic;
    margin-bottom: 2rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-name {
    font-weight: var(--font-weight-bold);
    color: var(--color-gray-900);
    font-size: 1.125rem;
}

.author-company {
    color: var(--color-primary);
    font-weight: var(--font-weight-medium);
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: var(--radius-full);
    background-color: var(--color-gray-300);
    cursor: pointer;
    transition: all var(--transition-base);
}

.slider-dot.active {
    background-color: var(--color-primary);
    width: 32px;
}

/* ===================================
   MÉTHODE SECTION
   =================================== */
.section-methode {
    background-color: var(--color-white);
}

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

.method-step {
    position: relative;
    padding: 2rem;
    background: var(--color-gray-100);
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
}

.method-step:hover {
    background: var(--color-white);
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.step-number {
    display: inline-block;
    width: 60px;
    height: 60px;
    background: var(--color-primary);
    color: var(--color-white);
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.method-step h3 {
    font-size: 1.25rem;
    font-weight: var(--font-weight-bold);
    color: var(--color-gray-900);
    margin-bottom: 0.75rem;
}

.method-step p {
    color: var(--color-gray-600);
    line-height: 1.7;
}

/* ===================================
   CONTACT SECTION
   =================================== */
.section-contact {
    background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-secondary) 100%);
    color: var(--color-white);
    position: relative;
    overflow: hidden;
}

.section-contact::before {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 500px;
    height: 500px;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 300 300" opacity="0.03"><g fill="none" stroke="%23FFFFFF" stroke-width="2"><rect x="80" y="80" width="140" height="160" rx="8"/><circle cx="150" cy="120" r="25"/><line x1="100" y1="170" x2="200" y2="170"/><line x1="100" y1="190" x2="200" y2="190"/><line x1="100" y1="210" x2="200" y2="210"/><path d="M 150 80 L 150 50 L 180 50"/><circle cx="130" cy="125" r="5"/><circle cx="170" cy="125" r="5"/><line x1="115" y1="140" x2="95" y2="155"/><line x1="185" y1="140" x2="205" y2="155"/><ellipse cx="50" cy="200" rx="20" ry="35" transform="rotate(-15 50 200)"/><ellipse cx="250" cy="180" rx="20" ry="35" transform="rotate(15 250 180)"/></g></svg>');
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.15;
    animation: fadeInOut 8s ease-in-out infinite;
    z-index: 0;
}

.section-contact::after {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 450px;
    height: 450px;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 280 280" opacity="0.02"><g fill="none" stroke="%23FFFFFF" stroke-width="1.5"><path d="M 100 100 L 180 100 L 180 200 L 100 200 Z"/><circle cx="140" cy="130" r="18"/><line x1="120" y1="165" x2="160" y2="165"/><line x1="120" y1="180" x2="160" y2="180"/><rect x="110" y="80" width="60" height="15" rx="3"/><line x1="140" y1="80" x2="140" y2="100"/><path d="M 85 140 L 75 150 L 85 160"/><path d="M 195 140 L 205 150 L 195 160"/><circle cx="50" cy="50" r="25"/><line x1="50" y1="75" x2="50" y2="110"/><rect x="35" y="110" width="30" height="35" rx="2"/></g></svg>');
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.12;
    animation: fadeInOut 10s ease-in-out infinite reverse;
    z-index: 0;
}

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

@keyframes fadeInOut {
    0%, 100% {
        opacity: 0.12;
        transform: translateY(0) scale(1);
    }
    50% {
        opacity: 0.18;
        transform: translateY(-20px) scale(1.05);
    }
}

.section-contact .section-title,
.section-contact .section-subtitle {
    color: var(--color-white);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    max-width: 1100px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: var(--color-primary);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
}

.contact-item h4 {
    font-size: 1rem;
    font-weight: var(--font-weight-semibold);
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: var(--color-gray-300);
    line-height: 1.6;
}

.contact-item a {
    color: var(--color-gray-300);
}

.contact-item a:hover {
    color: var(--color-primary);
}

.contact-form {
    background: var(--color-white);
    padding: 3rem;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-2xl);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group-full {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: var(--font-weight-semibold);
    color: var(--color-gray-900);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    padding: 0.875rem 1rem;
    border: 1px solid var(--color-gray-300);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    transition: all var(--transition-base);
    background-color: var(--color-white);
}

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

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn {
    grid-column: 1 / -1;
    margin-top: 1rem;
}

/* ===================================
   FOOTER
   =================================== */
.footer {
    background-color: var(--color-dark);
    color: var(--color-gray-300);
    padding: 3rem 0 1.5rem;
}

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

.footer-logo {
    margin-bottom: 1rem;
}

.footer-section h4 {
    color: var(--color-white);
    font-weight: var(--font-weight-bold);
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

.footer-section p {
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

.footer-location {
    color: var(--color-gray-400);
    font-size: 0.875rem;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 0.75rem;
}

.footer-links a,
.footer-contact a {
    color: var(--color-gray-400);
    transition: color var(--transition-base);
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--color-primary);
}

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

.footer-bottom p {
    margin-bottom: 0.5rem;
}

.footer-bottom a {
    color: var(--color-gray-400);
}

.footer-bottom a:hover {
    color: var(--color-primary);
}

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 1024px) {
    /* Timeline Tape Responsive - Version simplifiée */
    .timeline-tape-container {
        padding: 1.5rem 0.5rem;
        overflow-x: auto;
    }
    
    .timeline-tape {
        min-width: 600px;
    }
    
    /* Tooltip responsive */
    .timeline-tooltip {
        max-width: 240px;
        padding: 0.75rem;
    }
    
    .timeline-tooltip h4 {
        font-size: 0.9rem;
    }
    
    .timeline-tooltip p {
        font-size: 0.8rem;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    :root {
        --container-padding: 1rem;
    }
    
    .section {
        padding: var(--spacing-2xl) 0;
    }
    
    /* Header Mobile */
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: flex-start;
        padding: 6rem 2rem 2rem;
        gap: 2rem;
        transition: right var(--transition-slow);
        border-left: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav.active {
        right: 0;
    }
    
    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 1rem;
    }
    
    .nav-list a {
        padding: 0.75rem 0;
        width: 100%;
        font-size: 1.125rem;
    }
    
    .header-actions {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }
    
    .header-actions .btn {
        width: 100%;
    }
    
    /* Hero */
    .hero {
        min-height: auto;
        padding: 10rem 0 4rem;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .hero-cta .btn {
        width: 100%;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
    }
    
    /* Timeline Tape Mobile - Version simplifiée */
    .timeline-tape-container {
        padding: 1rem 0.25rem;
    }
    
    .timeline-tape {
        min-width: 500px;
    }
    
    /* Tooltip mobile */
    .timeline-tooltip {
        max-width: 200px;
        padding: 0.5rem;
    }
    
    .timeline-tooltip h4 {
        font-size: 0.85rem;
        margin-bottom: 0.25rem;
    }
    
    .timeline-tooltip p {
        font-size: 0.75rem;
        line-height: 1.4;
    }
    
    /* Contact Form */
    .contact-form {
        grid-template-columns: 1fr;
        padding: 2rem;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* WhatsApp Float */
    .whatsapp-float {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .logo-text {
        display: none;
    }
    
    .solutions-grid,
    .why-grid,
    .method-steps {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   GALLERY MODAL & CAROUSEL
   =================================== */

.view-gallery-hint {
    margin-top: auto;
    padding-top: var(--spacing-sm);
    text-align: center;
    opacity: 0.7;
    font-style: italic;
    transition: opacity 0.3s ease;
}

.solution-card:hover .view-gallery-hint {
    opacity: 1;
    color: var(--color-primary);
}

.gallery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    animation: fadeIn 0.3s ease-out;
}

.gallery-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg);
}

.modal-content {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    max-width: 90vw;
    max-height: 90vh;
    width: 1000px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: slideUp 0.3s ease-out;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--color-gray-200);
    background: var(--color-gray-50);
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--color-dark);
    margin: 0;
}

.close-modal {
    font-size: 2rem;
    color: var(--color-gray-600);
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
    padding: 0.25rem;
}

.close-modal:hover {
    color: var(--color-primary);
}

.gallery-carousel {
    position: relative;
    padding: var(--spacing-lg);
    background: var(--color-gray-50);
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 500px;
    max-height: 60vh;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--color-white);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: var(--spacing-xl) var(--spacing-lg) var(--spacing-lg);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.carousel-container:hover .image-caption {
    transform: translateY(0);
}

.image-caption h4 {
    font-size: 1.25rem;
    font-weight: var(--font-weight-bold);
    margin: 0 0 var(--spacing-xs) 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.image-caption p {
    font-size: 0.9rem;
    margin: 0;
    opacity: 0.9;
    line-height: 1.4;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.carousel-images {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease;
}

.carousel-image {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    background-color: var(--color-gray-50);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--color-dark);
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.carousel-btn:hover {
    background: var(--color-white);
    color: var(--color-primary);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 15px -3px rgba(0, 0, 0, 0.2);
}

.prev-btn {
    left: var(--spacing-md);
}

.next-btn {
    right: var(--spacing-md);
}

.gallery-counter {
    text-align: center;
    padding: var(--spacing-md);
    background: var(--color-gray-50);
    border-bottom: 1px solid var(--color-gray-200);
}

.gallery-counter span {
    font-weight: var(--font-weight-medium);
    color: var(--color-gray-700);
}

.gallery-thumbnails {
    display: flex;
    gap: var(--spacing-xs);
    padding: var(--spacing-lg);
    background: var(--color-white);
    overflow-x: auto;
    justify-content: center;
    flex-wrap: wrap;
}

.thumbnail {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.thumbnail:hover {
    opacity: 0.8;
}

.thumbnail.active {
    opacity: 1;
    border-color: var(--color-primary);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments for gallery */
@media (max-width: 768px) {
    .gallery-modal {
        padding: var(--spacing-sm);
    }
    
    .modal-content {
        max-width: 95vw;
        max-height: 95vh;
    }
    
    .modal-header {
        padding: var(--spacing-md);
    }
    
    .modal-header h3 {
        font-size: 1.25rem;
    }
    
    .gallery-carousel {
        padding: var(--spacing-md);
    }
    
    .carousel-container {
        height: 300px;
        max-height: 50vh;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
    }
    
    .prev-btn {
        left: var(--spacing-sm);
    }
    
    .next-btn {
        right: var(--spacing-sm);
    }
    
    .gallery-thumbnails {
        padding: var(--spacing-md);
        gap: var(--spacing-xs);
    }
    
    .thumbnail {
        width: 60px;
        height: 45px;
    }
    
    .image-caption {
        position: static;
        background: var(--color-white);
        color: var(--color-dark);
        transform: translateY(0);
        border-top: 1px solid var(--color-gray-200);
        padding: var(--spacing-md);
    }
    
    .image-caption h4 {
        font-size: 1.1rem;
        text-shadow: none;
        color: var(--color-dark);
    }
    
    .image-caption p {
        text-shadow: none;
        color: var(--color-gray-700);
        opacity: 1;
    }
}
