/* ========================================
   Novean - Design System Premium 2026
   Inspiration Apple - Mode Jour/Nuit Élégant
   ======================================== */

:root {
    /* Palette Principale */
    --electric: #3b82f6;
    --electric-light: #60a5fa;
    --electric-dark: #1d4ed8;

    /* Violet - nouveau */
    --violet: #8b5cf6;
    --violet-light: #c4b5fd;
    --violet-dark: #6d28d9;

    /* Cyan */
    --cyan: #22d3ee;
    --cyan-light: #67e8f9;

    /* Warmth - Amber */
    --amber: #fbbf24;
    --amber-light: #fde047;

    /* Pink accent */
    --pink: #f472b6;

    /* Semantic */
    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;

    /* ========================================
       MODE SOMBRE (Défaut) — Deep Space
       ======================================== */
    --bg-primary: #07080f;
    --bg-secondary: #0e1020;
    --bg-tertiary: #161929;
    --bg-card: rgba(22, 25, 41, 0.7);

    --text-primary: #f0f2ff;
    --text-secondary: #8b93b8;
    --text-muted: #4b5280;

    --border-color: rgba(255, 255, 255, 0.07);
    --border-glow: rgba(79, 142, 247, 0.3);
    --nav-bg: rgba(7, 8, 15, 0.85);

    /* Shadows profondes */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.7);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.8);
    --glow-blue: 0 0 40px rgba(79, 142, 247, 0.25);
    --glow-violet: 0 0 40px rgba(124, 58, 237, 0.25);
    --glow-cyan: 0 0 40px rgba(6, 182, 212, 0.25);

    /* Échelle de gris → alias des variables de thème.
       (non définies historiquement sur le site public → texte illisible en dark)
       S'adaptent automatiquement en mode clair via [data-theme="light"]. */
    --gray-50: var(--bg-tertiary);
    --gray-100: var(--bg-tertiary);
    --gray-200: var(--border-color);
    --gray-300: var(--border-color);
    --gray-400: var(--text-muted);
    --gray-500: var(--text-muted);
    --gray-600: var(--text-secondary);
    --gray-700: var(--text-secondary);
    --gray-900: var(--text-primary);
}

/* ========================================
   MODE CLAIR - Style Apple ( équivalent mode sombre )
   ======================================== */
[data-theme="light"] {
    --bg-primary: #fafbff;
    --bg-secondary: #eef2ff;
    --bg-tertiary: #e0e7ff;
    --bg-card: rgba(255, 255, 255, 0.9);

    --text-primary: #0f1131;
    --text-secondary: #4b5280;
    --text-muted: #9ca3c8;

    --border-color: rgba(79, 142, 247, 0.15);
    --border-glow: rgba(79, 142, 247, 0.4);
    --nav-bg: rgba(250, 251, 255, 0.9);

    --shadow-sm: 0 2px 8px rgba(79, 142, 247, 0.08);
    --shadow-md: 0 4px 20px rgba(79, 142, 247, 0.12);
    --shadow-lg: 0 8px 40px rgba(79, 142, 247, 0.15);
    --shadow-xl: 0 20px 60px rgba(79, 142, 247, 0.2);
    --glow-blue: 0 0 40px rgba(79, 142, 247, 0.15);
    --glow-violet: 0 0 40px rgba(124, 58, 237, 0.12);
    --glow-cyan: 0 0 40px rgba(6, 182, 212, 0.12);

    --gradient-hero: linear-gradient(135deg, #e8edff 0%, #f0e8ff 50%, #e8f8ff 100%);
}

/* ========================================
   Gradients & Variables Globales
   ======================================== */
:root {
    /* Premium Gradients - Style Apple */
    --gradient-hero: linear-gradient(135deg, #1c1c1e 0%, #2c2c2e 50%, #0071e3 100%);
    --gradient-hero-light: linear-gradient(135deg, #ffffff 0%, #f2f2f7 50%, #e5e5ea 100%);

    --gradient-accent: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #f472b6 100%);
    --gradient-accent-alt: linear-gradient(135deg, #8b5cf6 0%, #f472b6 50%, #fbbf24 100%);
    --gradient-gold: linear-gradient(135deg, #fde047 0%, #fbbf24 100%);
    --gradient-dark: linear-gradient(135deg, #07080f 0%, #0e1020 100%);
    --gradient-hero: linear-gradient(135deg, #07080f 0%, #100b2e 40%, #0a1628 100%);
    --gradient-text: linear-gradient(135deg, #60a5fa 0%, #c4b5fd 50%, #f472b6 100%);

    /* Background Patterns */
    --bg-grid: repeating-linear-gradient(
        0deg, transparent, transparent 49px,
        rgba(255, 255, 255, 0.03) 49px,
        rgba(255, 255, 255, 0.03) 50px
    ), repeating-linear-gradient(
        90deg, transparent, transparent 49px,
        rgba(255, 255, 255, 0.03) 49px,
        rgba(255, 255, 255, 0.03) 50px
    );

    --bg-dots: radial-gradient(circle at center, rgba(255, 255, 255, 0.4) 1px, transparent 1px);

    --bg-mesh: radial-gradient(at 0% 0%, rgba(0, 113, 227, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(0, 212, 255, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(245, 158, 11, 0.1) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(0, 113, 227, 0.1) 0px, transparent 50%);

    /* Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-3xl: 2rem;
    --radius-full: 9999px;

    /* Transitions - Apple-like easing */
    --transition-fast: 150ms cubic-bezier(0.25, 0.1, 0.25, 1);
    --transition-base: 300ms cubic-bezier(0.25, 0.1, 0.25, 1);
    --transition-slow: 500ms cubic-bezier(0.25, 0.1, 0.25, 1);
    --transition-bounce: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Spacing */
    --section-padding: 120px;
    --container-max: 1280px;
}

/* ========================================
   Reset & Base
   ======================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color var(--transition-base), color var(--transition-base);
}

/* ========================================
   Typography
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', system-ui, -apple-system, sans-serif;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
}

h2 {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 700;
}

h3 {
    font-size: clamp(1.35rem, 3vw, 1.875rem);
    font-weight: 600;
}

h4 {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    font-weight: 600;
}

p {
    color: var(--gray-600);
    margin-bottom: 1rem;
    font-size: 1.0625rem;
    line-height: 1.8;
}

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

a:hover {
    color: var(--electric-dark);
}

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

@media (min-width: 768px) {
    .container {
        padding: 0 40px;
    }
}

/* ========================================
   Prevent Horizontal Overflow
   ========================================
   overflow-x: clip (et non hidden) : clip coupe le débordement sans
   transformer html/body en conteneurs de scroll. Avec hidden, body
   devient un scroller intermédiaire qui piège les gestes verticaux
   démarrés sur les sliders horizontaux (scroll bloqué sur mobile). */
html {
    overflow-x: hidden;
    overflow-x: clip;
    width: 100%;
}

body {
    overflow-x: hidden;
    overflow-x: clip;
    max-width: 100vw;
    position: relative;
}

* {
    box-sizing: border-box;
}

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

pre, code {
    word-wrap: break-word;
    white-space: pre-wrap;
    overflow-x: auto;
}

/* Force no overflow on all elements */
div, section, article, header, footer, main, aside, nav, ul, li, p, h1, h2, h3, h4, h5, h6 {
    max-width: 100%;
}

/* ========================================
   Navigation - Glassmorphism Premium
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--nav-bg);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: all var(--transition-base);
    border-bottom: 1px solid var(--border-color);
}

/* Navbar en mode clair - meilleur contraste */
[data-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.9);
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .nav-menu a {
    color: var(--text-secondary);
}

[data-theme="light"] .nav-menu a:hover {
    background: var(--electric);
    color: white;
}

[data-theme="light"] .hamburger span {
    background: var(--text-primary);
}

.navbar.scrolled {
    background: var(--nav-bg);
    box-shadow: var(--shadow-md);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 24px;
    min-height: 72px;
}

/* Brand identité : wordmark pur (N capital gradient + ovean + point gradient) */
.nav-brand {
    display: inline-flex;
    align-items: baseline;
    text-decoration: none;
    line-height: 1;
}

.nav-brand i {
    font-size: 1.75rem;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    border-radius: var(--radius-md);
    padding: 4px;
}

.nav-wordmark {
    font-family: 'Outfit', 'Inter', system-ui, sans-serif;
    font-weight: 800;
    font-size: 1.85rem;
    letter-spacing: -0.045em;
    color: var(--text-primary);
    line-height: 1;
    transition: color var(--transition-base);
}

.wordmark-accent {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: filter var(--transition-base);
}

.nav-wordmark::after {
    content: '.';
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-left: 0.02em;
}

.nav-brand:hover .wordmark-accent {
    filter: brightness(1.15) saturate(1.1);
}

@media (max-width: 768px) {
    .nav-wordmark { font-size: 1.5rem; }
}

/* Footer brand : wordmark plus grand */
.footer-brand {
    display: inline-flex;
    align-items: baseline;
    text-decoration: none;
    margin-bottom: 16px;
    line-height: 1;
}

.footer-wordmark {
    font-family: 'Outfit', 'Inter', system-ui, sans-serif;
    font-weight: 800;
    font-size: 2.4rem;
    letter-spacing: -0.045em;
    color: var(--text-primary);
    line-height: 1;
}

.footer-wordmark::after {
    content: '.';
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-left: 0.02em;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-menu a {
    display: block;
    padding: 10px 18px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
}

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

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-base);
}

/* Theme Toggle - Style Apple (dans la navbar) */
.theme-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--bg-secondary);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    flex-shrink: 0;
}

.theme-toggle-btn:hover {
    background: var(--electric);
    color: white;
    transform: scale(1.05);
}

/* Mode clair - contraste renforcé */
[data-theme="light"] .theme-toggle-btn:hover {
    background: var(--electric);
    color: white;
}

.theme-toggle-btn:active {
    transform: scale(0.95);
}

.theme-toggle-btn i {
    font-size: 1rem;
}

/* ========================================
   Hero Section - Style Apple
   ======================================== */
.hero {
    padding: 180px 0 120px;
    background: var(--gradient-hero);
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Hero en mode clair */
[data-theme="light"] .hero {
    background: linear-gradient(135deg, #e8edff 0%, #f0e8ff 50%, #e0f0ff 100%);
}

/* Orbes animés - Dark */
.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.5) 0%, rgba(244, 114, 182, 0.2) 40%, transparent 70%);
    animation: float 18s ease-in-out infinite;
    filter: blur(60px);
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.4) 0%, rgba(59, 130, 246, 0.18) 40%, transparent 70%);
    animation: float 24s ease-in-out infinite reverse;
    filter: blur(60px);
}

/* Orbe en mode clair */
[data-theme="light"] .hero::before {
    background: radial-gradient(circle, rgba(139, 92, 246, 0.3) 0%, rgba(244, 114, 182, 0.15) 40%, transparent 70%);
}
[data-theme="light"] .hero::after {
    background: radial-gradient(circle, rgba(34, 211, 238, 0.25) 0%, rgba(59, 130, 246, 0.1) 40%, transparent 70%);
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -50px) rotate(120deg); }
    66% { transform: translate(-20px, 30px) rotate(240deg); }
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    animation: fadeInUp 0.8s ease-out;
}

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

.hero-content h1 {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.3;
    padding-bottom: 0.1em;
    margin-bottom: 28px;
    filter: drop-shadow(0 2px 20px rgba(124, 58, 237, 0.3));
}
[data-theme="light"] .hero-content h1 {
    filter: drop-shadow(0 2px 20px rgba(79, 142, 247, 0.2));
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.code-block {
    background: var(--bg-tertiary);
    backdrop-filter: blur(24px);
    border-radius: var(--radius-2xl);
    padding: 28px;
    box-shadow: var(--shadow-2xl), 0 0 80px rgba(99, 102, 241, 0.3);
    border: 1px solid var(--border-color);
    max-width: 520px;
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
    transition: transform var(--transition-slow);
}

.code-block:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.code-header {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.code-header .dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    transition: transform var(--transition-fast);
}

.code-header:hover .dot {
    transform: scale(1.15);
}

.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }

.code-block pre {
    overflow-x: auto;
    padding: 8px 0;
}

.code-block code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.8;
    color: #e2e8f0;
}

.code-block .keyword { color: #f472b6; }
.code-block .variable { color: #93c5fd; }
.code-block .class { color: #6ee7b7; }
.code-block .string { color: #fcd34d; }
.code-block .property { color: #fda4af; }

/* ========================================
   Buttons - Premium avec Glow
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn i {
    font-size: 1.1rem;
}

.btn-primary {
    background: var(--gradient-accent);
    color: white;
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.4);
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 100%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 45px rgba(99, 102, 241, 0.5);
    color: white;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Mode clair - boutons secondaires avec fond sombre */
[data-theme="light"] .btn-secondary {
    background: rgba(28, 28, 30, 0.08);
    color: var(--text-primary);
    border: 1px solid rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .btn-secondary:hover {
    background: rgba(28, 28, 30, 0.15);
    color: var(--text-primary);
    transform: translateY(-3px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    color: var(--electric);
    border: 1.5px solid var(--gray-300);
}

.btn-outline:hover {
    background: var(--gray-100);
    border-color: var(--electric);
    color: var(--electric-dark);
}

/* ========================================
   Sections - Titres avec Effets
   ======================================== */
.section-title {
    text-align: center;
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 800;
    margin-bottom: 16px;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    text-align: center;
    font-size: 1.125rem;
    color: var(--gray-600);
    max-width: 640px;
    margin: 0 auto 64px;
    line-height: 1.75;
}

/* ========================================
   Services Section - Style Apple
   ======================================== */
.services {
    padding: var(--section-padding) 0;
    background: linear-gradient(180deg, #0e1020 0%, #120b2e 100%);
    position: relative;
}
[data-theme="light"] .services {
    background: linear-gradient(180deg, #eef2ff 0%, #f0e8ff 100%);
}


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

.service-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-2xl);
    padding: 40px 32px;
    box-shadow: var(--shadow-lg);
    transition: all 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

/* Bande colorée en haut + différente par card */
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transition: transform 0.35s ease;
    transform-origin: left;
}
.service-card:nth-child(1)::before { background: linear-gradient(90deg, #4f8ef7, #7c3aed); }
.service-card:nth-child(2)::before { background: linear-gradient(90deg, #7c3aed, #ec4899); }
.service-card:nth-child(3)::before { background: linear-gradient(90deg, #06b6d4, #4f8ef7); }
.service-card:nth-child(4)::before { background: linear-gradient(90deg, #f59e0b, #ec4899); }
.service-card:nth-child(5)::before { background: linear-gradient(90deg, #22d3ee, #8b5cf6); }
.service-card:nth-child(6)::before { background: linear-gradient(90deg, #f472b6, #fbbf24); }

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl), var(--glow-blue);
    border-color: var(--border-glow);
}
.service-card:hover::before { transform: scaleX(1); }

.service-card.featured {
    background: var(--gradient-accent);
    color: white;
    transform: scale(1.05);
    border: none;
}

.service-card.featured::before {
    display: none;
}

.service-card.featured::after {
    opacity: 0.1;
}

.service-card.featured p,
.service-card.featured .service-features li {
    color: rgba(255, 255, 255, 0.9);
}

.service-card.featured .service-features i {
    color: rgba(255, 255, 255, 0.8);
}

.service-card.featured .service-features li {
    border-bottom-color: rgba(255, 255, 255, 0.15);
}

.service-icon {
    width: 72px;
    height: 72px;
    background: var(--gradient-accent);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    box-shadow: var(--shadow-colored);
    position: relative;
    z-index: 1;
}

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

.service-card h3 {
    margin-bottom: 16px;
    font-size: 1.5rem;
    position: relative;
    z-index: 1;
    color: var(--text-primary);
}

.service-card p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 1rem;
    position: relative;
    z-index: 1;
}

.service-features {
    list-style: none;
    margin-bottom: 28px;
    position: relative;
    z-index: 1;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    border-bottom: 1px solid var(--border-color);
}

.service-features li:last-child {
    border-bottom: none;
}

.service-features i {
    color: var(--success);
    font-size: 1.1rem;
}

.badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--gradient-gold);
    color: white;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: var(--shadow-amber);
    z-index: 2;
    white-space: nowrap;
}

/* Badge "Meilleure Offre" : ruban centré au-dessus de la carte pour ne pas cacher le titre */
.pricing-card .badge {
    top: -14px;
    right: auto;
    left: 50%;
    transform: translateX(-50%);
}

.pricing-card.popular {
    margin-top: 14px;
}

/* ========================================
   Values Section - Style Apple
   ======================================== */
.values-section {
    padding: calc(var(--section-padding) / 2) 0;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
}


.values-header {
    text-align: center;
    margin-bottom: 40px;
}

.values-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.values-header p {
    font-size: 1rem;
    color: var(--text-secondary);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.value-card {
    text-align: center;
    padding: 28px 20px;
    background: var(--bg-card);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
    border: 1px solid var(--border-color);
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.value-icon-wrapper {
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.value-icon-wrapper::before {
    content: '';
    position: absolute;
    inset: -4px;
    background: var(--gradient-accent);
    border-radius: 50%;
    opacity: 0.2;
    animation: pulse-ring 2s ease-in-out infinite;
    filter: blur(8px);
}

@keyframes pulse-ring {
    0%, 100% { transform: scale(0.8); opacity: 0.2; }
    50% { transform: scale(1.15); opacity: 0.4; }
}

.value-icon-wrapper i {
    font-size: 1.5rem;
    color: white;
    position: relative;
    z-index: 1;
}

.value-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 12px;
}

.value-card p {
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.7;
}

/* ========================================
   Pricing Section - Style Apple
   ======================================== */
.pricing {
    padding: var(--section-padding) 0;
    background: linear-gradient(180deg, #120b2e 0%, #07080f 100%);
    position: relative;
}
[data-theme="light"] .pricing {
    background: linear-gradient(180deg, #e8edff 0%, #eef2ff 100%);
}


.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-2xl);
    padding: 40px 32px;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
    border: 1px solid var(--border-color);
    position: relative;
}
[data-theme="light"] .pricing-card {
    box-shadow: var(--shadow-lg);
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl), var(--glow-blue);
    border-color: var(--border-glow);
}

.pricing-card.popular {
    border: 1px solid rgba(124, 58, 237, 0.5);
    box-shadow: var(--shadow-lg), 0 0 60px rgba(124, 58, 237, 0.2);
}

.pricing-card.enterprise {
    border: 1px solid rgba(6, 182, 212, 0.5);
    box-shadow: var(--shadow-lg), 0 0 60px rgba(6, 182, 212, 0.15);
}

.pricing-header {
    text-align: center;
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border-color);
}

.pricing-header h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--text-primary);
    font-weight: 600;
}

.price {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.price .currency {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.price .amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

.price .period {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

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

.pricing-features {
    list-style: none;
    margin-bottom: 32px;
    text-align: left;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features i {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.pricing-features .fa-check {
    background: var(--success);
    color: white;
}

.pricing-features .fa-times {
    background: var(--bg-tertiary);
    color: var(--text-muted);
}

.pricing-card .btn {
    width: 100%;
}

.pricing-note {
    text-align: center;
    margin-top: 40px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.pricing-note i {
    color: var(--electric);
    margin-right: 8px;
}

/* Note RGPD sous le formulaire de contact + mention newsletter */
.form-rgpd-note {
    grid-column: 1 / -1;
    margin-top: 14px;
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--text-secondary);
    opacity: 0.85;
    text-align: center;
}
.form-rgpd-note a { color: var(--electric); text-decoration: underline; }

.newsletter-nospam {
    margin-top: 18px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    opacity: 0.85;
}
.newsletter-nospam i { margin-right: 6px; }

/* ========================================
   Pages légales (mentions, CGV, confidentialité, cookies)
   ======================================== */
.legal-topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    background: var(--nav-bg, rgba(255,255,255,0.85));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}
.legal-topbar .nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Outfit', system-ui, sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-primary);
    text-decoration: none;
}
.legal-topbar .nav-brand i { color: var(--electric); }
.legal-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--electric);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}
.legal-back:hover { text-decoration: underline; }

.legal-page {
    max-width: 820px;
    margin: 0 auto;
    padding: 56px 24px 96px;
}
.legal-page h1 {
    font-size: clamp(1.8rem, 5vw, 2.6rem);
    margin-bottom: 8px;
    color: var(--text-primary);
}
.legal-updated {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 40px;
}
.legal-page h2 {
    font-size: 1.3rem;
    margin: 40px 0 14px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    color: var(--text-primary);
}
.legal-page h3 {
    font-size: 1.05rem;
    margin: 24px 0 10px;
    color: var(--text-primary);
}
.legal-page p,
.legal-page li {
    color: var(--text-secondary);
    line-height: 1.75;
    font-size: 1rem;
}
.legal-page ul { margin: 12px 0 12px 22px; }
.legal-page li { margin-bottom: 8px; }
.legal-page a { color: var(--electric); }
.legal-page strong { color: var(--text-primary); }
.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 0.95rem;
}
.legal-table th,
.legal-table td {
    text-align: left;
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}
.legal-table th { background: var(--bg-secondary, rgba(0,0,0,0.03)); color: var(--text-primary); }

/* ========================================
   Portfolio Section - Style Apple
   ======================================== */
.portfolio {
    padding: var(--section-padding) 0;
    background: var(--bg-primary);
}

/* Mode clair - bordures pour séparation */
[data-theme="light"] .portfolio {
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color-light);
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}
/* Sur mobile, le portfolio est un carrousel (swipe sur tous les exemples) :
   on masque les filtres qui entreraient en conflit avec le carrousel. */
@media (max-width: 768px) {
    .portfolio-filters { display: none; }
}

.filter-btn {
    padding: 8px 16px;
    background: var(--bg-secondary);
    border: none;
    border-radius: var(--radius-full);
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.filter-btn:hover {
    background: var(--bg-tertiary);
}

.filter-btn.active {
    background: var(--electric);
    color: white;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.portfolio-item {
    border-radius: var(--radius-2xl);
    overflow: hidden;
    background: var(--bg-card);
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    cursor: pointer;
    border: 1px solid var(--border-color);
}

.portfolio-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.portfolio-image {
    height: 240px;
    background: var(--gradient-accent);
    position: relative;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.1);
}

.portfolio-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.8) 0%, rgba(6, 182, 212, 0.8) 100%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.portfolio-item:hover .portfolio-image::after {
    opacity: 1;
}

/* Indice "Voir la démo" au survol */
.portfolio-image::before {
    content: 'Voir la démo \2192';
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', system-ui, sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.02em;
    color: #fff;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity var(--transition-base), transform var(--transition-base);
    pointer-events: none;
}
.portfolio-item:hover .portfolio-image::before {
    opacity: 1;
    transform: translateY(0);
}
.portfolio-item:focus-visible {
    outline: 3px solid var(--electric);
    outline-offset: 3px;
}

.portfolio-demo-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.portfolio-info {
    padding: 24px;
}

.portfolio-info h4 {
    font-size: 1.125rem;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 600;
}

.portfolio-info p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0;
}

/* ========================================
   Partners Section - Style Apple
   ======================================== */
.partners-section {
    padding: 80px 0;
    background: var(--bg-secondary);
}

/* Mode clair - bordures pour séparation */
[data-theme="light"] .partners-section {
    border-top: 1px solid var(--border-color-light);
    border-bottom: 1px solid var(--border-color-light);
}

.partners-title {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 48px;
}

.partners-wrapper {
    position: relative;
    overflow: hidden;
}

.partners-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(to right, var(--bg-secondary) 0%, rgba(0,0,0,0) 100%);
}

.partners-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(to left, var(--bg-secondary) 0%, rgba(0,0,0,0) 100%);
}

.partners-track {
    display: flex;
    gap: 48px;
    animation: scroll 40s linear infinite;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.partner-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 140px;
    height: 70px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    opacity: 0.5;
}

.partner-logo:hover {
    opacity: 1;
    transform: scale(1.05);
}

.partner-logo i,
.partner-svg {
    font-size: 1.5rem;
    color: var(--text-primary);
    fill: var(--text-primary);
}

/* ========================================
   Process Section - Style Apple
   ======================================== */
.process-section {
    padding: var(--section-padding) 0;
    background: linear-gradient(180deg, #07080f 0%, #0e1020 100%);
}
[data-theme="light"] .process-section {
    background: linear-gradient(180deg, #fafbff 0%, #eef2ff 100%);
}

.process-header {
    text-align: center;
    margin-bottom: 64px;
}

.process-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.process-header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

.process-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

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

.process-step {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-bottom: 40px;
    position: relative;
}

.process-step:nth-child(odd) {
    flex-direction: row;
}

.process-step:nth-child(even) {
    flex-direction: row-reverse;
}

.process-step-number {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    background: var(--electric);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
    position: relative;
    z-index: 1;
}

.process-step-content {
    flex: 1;
    background: var(--bg-card);
    padding: 28px;
    border-radius: var(--radius-2xl);
    border: 1px solid var(--border-color);
}

.process-step-content h4 {
    font-size: 1.125rem;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 600;
}

.process-step-content p {
    color: var(--text-secondary);
    margin-bottom: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ========================================
   Testimonials Section - Style Apple
   ======================================== */
.testimonials-section {
    padding: var(--section-padding) 0;
    background: linear-gradient(180deg, #0e1020 0%, #120b2e 100%);
    position: relative;
    overflow: hidden;
}
[data-theme="light"] .testimonials-section {
    background: linear-gradient(180deg, #f0e8ff 0%, #e8edff 100%);
    border-top: none;
    border-bottom: none;
}

/* Mode clair - bordures pour séparation */
[data-theme="light"] .testimonials-section {
    border-top: 1px solid var(--border-color-light);
    border-bottom: 1px solid var(--border-color-light);
}

.testimonials-header {
    text-align: center;
    margin-bottom: 48px;
}

.testimonials-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.testimonials-header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.testimonial-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-2xl);
    padding: 32px;
    transition: all 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
    position: relative;
}

.testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl), var(--glow-violet);
    border-color: var(--border-glow);
}
[data-theme="light"] .testimonial-card {
    box-shadow: var(--shadow-md);
}

.testimonial-card::before {
    content: '"';
    font-size: 4rem;
    color: var(--electric);
    opacity: 0.15;
    font-family: Georgia, serif;
    line-height: 1;
    position: absolute;
    top: 16px;
    left: 20px;
}

.testimonial-text {
    color: var(--text-primary);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 24px;
    font-style: italic;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--electric);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: white;
    font-size: 1.1rem;
}

.testimonial-info h4 {
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 4px;
    font-weight: 600;
}

.testimonial-info span {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.testimonial-stars {
    display: flex;
    gap: 4px;
    margin-top: 8px;
}

.testimonial-stars i {
    color: var(--amber);
    font-size: 0.9rem;
}

/* ========================================
   Team Section - Style Apple
   ======================================== */
.team-section {
    padding: var(--section-padding) 0;
    background: linear-gradient(180deg, #07080f 0%, #0e1020 100%);
}
[data-theme="light"] .team-section {
    background: linear-gradient(180deg, #fafbff 0%, #eef2ff 100%);
}


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

.team-header {
    text-align: center;
    margin-bottom: 48px;
}

.team-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.team-header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

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

.team-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}
[data-theme="light"] .team-card {
    box-shadow: var(--shadow-md);
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl), var(--glow-cyan);
    border-color: rgba(6, 182, 212, 0.4);
}

.team-image-wrapper {
    position: relative;
    height: 280px;
    overflow: hidden;
    background: var(--bg-tertiary);
}

.team-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

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

.team-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s;
}

.team-card:hover .team-overlay {
    opacity: 1;
}

.team-social {
    display: flex;
    gap: 10px;
    width: 100%;
    justify-content: center;
}

.team-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--electric);
    transition: all 0.3s;
    font-size: 1rem;
}

.team-social a:hover {
    background: var(--electric);
    color: white;
    transform: scale(1.05);
}

.team-info {
    padding: 24px;
    text-align: center;
}

.team-info h4 {
    font-size: 1.125rem;
    margin-bottom: 6px;
    color: var(--text-primary);
    font-weight: 600;
}

.team-info .role {
    display: block;
    color: var(--electric);
    font-weight: 500;
    font-size: 0.875rem;
    margin-bottom: 12px;
}

.team-info p {
    color: var(--gray-600);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* ========================================
   FAQ Section - Style Apple
   ======================================== */
.faq-section {
    padding: var(--section-padding) 0;
    background: linear-gradient(180deg, #120b2e 0%, #0e1020 100%);
}
[data-theme="light"] .faq-section {
    background: linear-gradient(180deg, #eef2ff 0%, #fafbff 100%);
}

/* Mode clair - bordures pour séparation */
[data-theme="light"] .faq-section {
    border-top: 1px solid var(--border-color-light);
    border-bottom: 1px solid var(--border-color-light);
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-header {
    text-align: center;
    margin-bottom: 48px;
}

.faq-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.faq-header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.faq-item:hover {
    border-color: var(--electric);
}

.faq-question {
    width: 100%;
    padding: 20px 24px;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: all 0.2s;
}

.faq-question:hover {
    color: var(--electric);
}

.faq-question-icon {
    color: var(--electric);
    transition: transform var(--transition-base);
    font-size: 0.9rem;
}

.faq-item.active .faq-question-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-slow);
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer-content {
    padding: 0 24px 20px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

.faq-answer-content p {
    margin-bottom: 0;
}

/* ========================================
   Newsletter Section - Style Apple
   ======================================== */
.newsletter-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #12003a 0%, #1a0050 40%, #0a1628 100%);
    position: relative;
    overflow: hidden;
}
/* Grille décorative */
.newsletter-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(124, 58, 237, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(124, 58, 237, 0.08) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}
/* Grande icône décorative */
.newsletter-section::after {
    content: '✉';
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%) rotate(-15deg);
    font-size: 18rem;
    opacity: 0.04;
    pointer-events: none;
    line-height: 1;
}
[data-theme="light"] .newsletter-section {
    background: linear-gradient(135deg, #4f8ef7 0%, #7c3aed 50%, #06b6d4 100%);
}

.newsletter-container {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* Badge "Restez informé" */
.newsletter-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    color: rgba(255,255,255,0.9);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: 0.05em;
}

.newsletter-content h2 {
    color: #ffffff;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.2;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.newsletter-content > p {
    color: rgba(255,255,255,0.75);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 40px;
}

/* Form Container — glassmorphism */
.newsletter-form-container {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 8px;
    border-radius: var(--radius-2xl);
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    margin-bottom: 48px;
}

.newsletter-form {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.newsletter-form input {
    flex: 1;
    padding: 16px 20px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-xl);
    font-size: 0.95rem;
    color: white;
    transition: all 0.2s;
}

.newsletter-form input::placeholder { color: rgba(255,255,255,0.5); }

.newsletter-form input:focus {
    outline: none;
    border-color: rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.18);
}

.newsletter-form button {
    padding: 16px 28px;
    background: white;
    color: #7c3aed;
    border: none;
    border-radius: var(--radius-xl);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.newsletter-form button:hover {
    background: #f0e8ff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

/* Success */
.newsletter-success {
    display: none;
    text-align: center;
    padding: 32px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-2xl);
}
.newsletter-success.active { display: block; }
.newsletter-success i { font-size: 3rem; color: #6ee7b7; margin-bottom: 16px; }
.newsletter-success h3, .newsletter-success h4 { color: white; font-size: 1.5rem; margin-bottom: 8px; }
.newsletter-success p { color: rgba(255,255,255,0.75); }

/* Stats Bar */
.newsletter-stats {
    display: flex;
    justify-content: center;
    gap: 0;
}

.newsletter-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1;
}

.newsletter-stat:not(:last-child) {
    border-right: 1px solid rgba(255,255,255,0.15);
}

.newsletter-stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: white;
}

.newsletter-stat-label {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .newsletter-section {
        padding: 80px 20px;
    }

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

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form button {
        width: 100%;
    }

    .newsletter-stats {
        gap: 32px;
    }
}

/* ========================================
   Rendez-vous / Appointment Section
   ======================================== */
/* =========================================
   RENDEZ-VOUS — Split Premium
   ========================================= */
.appointment-section {
    padding: 0;
    overflow: hidden;
}

.appt-split-container {
    display: block;
    width: 100%;
}

/* Panneau gauche coloré */
.appt-left-panel {
    background: linear-gradient(145deg, #120b2e 0%, #1a1060 40%, #0a1a3e 100%);
    padding: 72px 24px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
[data-theme="light"] .appt-left-panel {
    background: linear-gradient(145deg, #4f8ef7 0%, #7c3aed 50%, #06b6d4 100%);
}

.appt-left-inner { position: relative; z-index: 1; max-width: 600px; width: 100%; margin: 0 auto; }

/* Orbes déco gauche */
.appt-orb-1 {
    position: absolute; bottom: -100px; right: -100px;
    width: 350px; height: 350px; border-radius: 50%;
    background: radial-gradient(circle, rgba(124,58,237,0.5) 0%, transparent 70%);
    filter: blur(60px); pointer-events: none;
}
.appt-orb-2 {
    position: absolute; top: -80px; left: -80px;
    width: 250px; height: 250px; border-radius: 50%;
    background: radial-gradient(circle, rgba(6,182,212,0.4) 0%, transparent 70%);
    filter: blur(50px); pointer-events: none;
}

.appt-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.9);
    padding: 5px 14px; border-radius: 999px;
    font-size: 0.75rem; font-weight: 600;
    margin-bottom: 20px; letter-spacing: 0.05em;
}

.appt-left-inner h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800; color: white; line-height: 1.15;
    margin-bottom: 14px;
}
.appt-left-inner h2 span {
    background: linear-gradient(135deg, #a78bfa, #67e8f9);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}

.appt-left-inner > p {
    color: rgba(255,255,255,0.7); font-size: 0.95rem;
    line-height: 1.6; margin-bottom: 24px;
}

.appt-benefits { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-direction: column; gap: 10px; }
.appt-benefits li { display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,0.85); font-size: 0.9rem; }
.appt-benefits li i {
    width: 28px; height: 28px; border-radius: 8px;
    background: rgba(255,255,255,0.12);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.8rem; flex-shrink: 0; color: #a78bfa;
}

/* Types en chips colorées */
.appt-types-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 24px; }
.appt-type-chip {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    padding: 12px 10px; border-radius: var(--radius-lg);
    border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(10px); text-align: center;
    transition: transform 0.2s ease, border-color 0.2s;
    cursor: default;
}
.appt-type-chip:hover { transform: translateY(-3px); border-color: rgba(255,255,255,0.3); }
.appt-type-chip i { font-size: 1.2rem; margin-bottom: 2px; }
.appt-type-chip span { font-size: 0.8rem; font-weight: 600; color: white; }
.appt-type-chip small { font-size: 0.7rem; color: rgba(255,255,255,0.55); }

.appt-type-blue  { background: rgba(79,142,247,0.2);  } .appt-type-blue i  { color: #7eb0ff; }
.appt-type-violet{ background: rgba(124,58,237,0.2); } .appt-type-violet i{ color: #c084fc; }
.appt-type-cyan  { background: rgba(6,182,212,0.2);  } .appt-type-cyan i  { color: #67e8f9; }
.appt-type-amber { background: rgba(245,158,11,0.2); } .appt-type-amber i { color: #fbbf24; }

.appt-cta-btn {
    display: flex; align-items: center; gap: 10px; justify-content: center;
    width: 100%; padding: 14px 24px;
    background: white; color: #7c3aed;
    border: none; border-radius: var(--radius-lg);
    font-size: 0.95rem; font-weight: 700; cursor: pointer;
    transition: all 0.3s;
}
.appt-cta-btn:hover { background: #f0e8ff; transform: translateY(-2px); box-shadow: 0 12px 40px rgba(0,0,0,0.25); }
.appt-arrow { margin-left: auto; transition: transform 0.2s; }
.appt-cta-btn:hover .appt-arrow { transform: translateX(4px); }
[data-theme="light"] .appt-cta-btn { background: rgba(255,255,255,0.95); }

/* Panneau droit — formulaire */
.appt-right-panel {
    background: var(--bg-secondary);
    padding: 72px 24px;
    display: flex; align-items: center; justify-content: center;
}
[data-theme="light"] .appt-right-panel { background: #f8f9ff; }

/* ----- Swap "Parlons de votre projet" <-> "Réserver un créneau" -----
   État par défaut : seul le panneau gauche (infos) est affiché.
   État .booking-active : seul le formulaire est affiché, à la place. */
.appt-split-container:not(.booking-active) .appt-right-panel { display: none; }
.appt-split-container:not(.booking-active) { grid-template-columns: 1fr; }

.appt-split-container.booking-active .appt-left-panel { display: none; }
.appt-split-container.booking-active { grid-template-columns: 1fr; }

/* Le formulaire centré dans la bande pleine largeur */
.appt-split-container.booking-active .appt-right-panel {
    padding: 72px 24px;
    animation: apptFadeIn 0.4s ease both;
}
.appt-split-container.booking-active .appointment-form-card {
    width: 100%;
    max-width: 600px;
}
@keyframes apptFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* En-tête du formulaire avec bouton retour */
.booking-form-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}
.booking-form-header h3 { margin: 0; }
.booking-back-btn {
    width: 40px; height: 40px; flex-shrink: 0;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.25s;
}
.booking-back-btn:hover {
    background: var(--electric);
    color: white;
    border-color: transparent;
    transform: translateX(-2px);
}

.appointment-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Quand le formulaire est encore caché : bloc info centré seul */
.appointment-container:has(.appointment-form-card[style*="display:none"]),
.appointment-container:has(.appointment-form-card[style*="display: none"]) {
    grid-template-columns: 1fr;
    max-width: 600px;
}

/* Quand le bloc info est masqué, le formulaire prend toute la largeur */
.appointment-container.booking-active {
    grid-template-columns: 1fr;
    max-width: 680px;
}

/* Transitions */
.appointment-info {
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.appointment-info.hiding {
    opacity: 0;
    transform: translateX(-20px);
    pointer-events: none;
}
.appointment-form-card {
    animation: fadeInUp 0.4s ease both;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.appointment-info {
    padding: 32px;
    background: var(--bg-card);
    border-radius: var(--radius-2xl);
    border: 1px solid var(--border-color);
}

.appointment-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.appointment-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 32px 0;
}

.appointment-benefits li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 1rem;
    color: var(--text-primary);
}

.appointment-benefits li:last-child {
    border-bottom: none;
}

.appointment-benefits li i {
    color: var(--success);
    font-size: 1.2rem;
}

.appointment-types-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.appointment-types-preview .type-card {
    padding: 20px 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    text-align: center;
    border: 1px solid var(--border-color);
}

.appointment-types-preview .type-card i {
    font-size: 2rem;
    color: var(--electric);
    margin-bottom: 10px;
}

.appointment-types-preview .type-card h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 8px 0 4px 0;
}

.appointment-types-preview .type-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

/* Booking Form Card */
.appointment-form-card {
    padding: 32px;
    background: var(--bg-card);
    border-radius: var(--radius-2xl);
    border: 1px solid var(--border-color);
}

.appointment-form-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.booking-step {
    display: none;
    animation: stepFadeIn 0.3s ease;
}

.booking-step.active {
    display: block;
}

@keyframes stepFadeIn {
    from {
        opacity: 0;
        transform: translateX(15px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.step-label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

/* Types Grid */
.booking-types-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.booking-type-option {
    padding: 18px 14px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.booking-type-option i {
    font-size: 1.8rem;
    color: var(--electric);
    transition: transform 0.2s ease;
}

.booking-type-option span {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.booking-type-option small {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

.booking-type-option:hover {
    border-color: var(--electric);
    background: rgba(0, 113, 227, 0.08);
    transform: translateY(-3px);
}

.booking-type-option:hover i {
    transform: scale(1.1);
}

.booking-type-option.selected {
    border-color: var(--electric);
    background: rgba(0, 113, 227, 0.12);
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.25);
}

.booking-type-option.selected i {
    color: var(--electric-light);
}

/* Date Input */
.booking-date-input {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    color: var(--text-primary);
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.booking-date-input:focus {
    border-color: var(--electric);
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.15);
    outline: none;
}

.booking-date-input::-webkit-calendar-picker-indicator {
    cursor: pointer;
    filter: invert(0.7);
}

/* Slots Grid */
.booking-slots-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    min-height: 120px;
}

.booking-slot-btn {
    padding: 12px 10px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.booking-slot-btn:hover:not(.disabled):not(.selected) {
    border-color: var(--electric);
    background: rgba(79, 142, 247, 0.12);
    transform: scale(1.05);
}

.booking-slot-btn.selected,
.booking-slot-btn.selected:hover {
    border-color: var(--electric);
    background: var(--electric);
    color: white;
    box-shadow: 0 4px 12px rgba(79, 142, 247, 0.35);
    transform: scale(1.05);
}

.booking-slot-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: var(--bg-tertiary);
}

.slots-placeholder {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-muted);
    padding: 30px;
}

.slots-placeholder i {
    font-size: 1.3rem;
    margin-right: 8px;
}

/* Summary Card */
.booking-summary-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 18px;
}

.summary-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-row i {
    width: 20px;
    color: var(--electric);
    font-size: 1rem;
}

.summary-row span {
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 500;
}

/* Form Groups in Booking */
.booking-step .form-group {
    margin-bottom: 16px;
}

.booking-step input,
.booking-step textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    color: var(--text-primary);
    font-family: inherit;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.booking-step input:focus,
.booking-step textarea:focus {
    border-color: var(--electric);
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.15);
    outline: none;
}

.booking-step textarea {
    resize: vertical;
    min-height: 80px;
}

/* Booking Actions */
.booking-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.booking-actions .btn {
    flex: 1;
    padding: 14px 20px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

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

.booking-actions .btn-primary:hover {
    background: var(--electric-dark);
    transform: translateY(-2px);
}

.booking-actions .btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.booking-actions .btn-secondary:hover {
    background: var(--bg-primary);
}

.booking-actions .btn-success {
    background: var(--success);
    color: white;
}

.booking-actions .btn-success:hover {
    background: #2da84f;
    transform: translateY(-2px);
}

.booking-actions .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* Responsive Appointment Section */
@media (max-width: 900px) {
    .appointment-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .appointment-types-preview {
        grid-template-columns: 1fr 1fr;
    }

    .booking-types-grid {
        grid-template-columns: 1fr;
    }

    .booking-slots-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .appointment-info,
    .appointment-form-card {
        padding: 24px;
    }

    .appointment-types-preview {
        grid-template-columns: 1fr;
    }

    .booking-slots-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   Contact Section - Style Apple
   ======================================== */
/* =========================================
   CONTACT — Dark Premium
   ========================================= */
.contact {
    padding: 0;
    background: linear-gradient(180deg, #07080f 0%, #0e1020 100%);
    position: relative;
    overflow: hidden;
}
[data-theme="light"] .contact {
    background: linear-gradient(180deg, #fafbff 0%, #eef2ff 100%);
}

/* Orbes décoratifs */
.contact-orb-1 {
    position: absolute; top: -200px; right: -200px;
    width: 600px; height: 600px; border-radius: 50%;
    background: radial-gradient(circle, rgba(124,58,237,0.3) 0%, transparent 70%);
    filter: blur(80px); pointer-events: none;
}
.contact-orb-2 {
    position: absolute; bottom: -200px; left: -100px;
    width: 500px; height: 500px; border-radius: 50%;
    background: radial-gradient(circle, rgba(6,182,212,0.2) 0%, transparent 70%);
    filter: blur(80px); pointer-events: none;
}

.contact-inner {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 80px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 40px;
    position: relative; z-index: 1;
}

/* Colonne gauche */
.contact-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(124,58,237,0.2); border: 1px solid rgba(124,58,237,0.4);
    color: #c084fc; padding: 6px 16px; border-radius: 999px;
    font-size: 0.8rem; font-weight: 600; margin-bottom: 28px; letter-spacing: 0.05em;
}
[data-theme="light"] .contact-eyebrow { background: rgba(124,58,237,0.1); border-color: rgba(124,58,237,0.3); color: #7c3aed; }

.contact-headline {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: 800; color: white; line-height: 1.15;
    margin-bottom: 20px;
}
.contact-headline span {
    background: linear-gradient(135deg, #4f8ef7, #a78bfa, #67e8f9);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
[data-theme="light"] .contact-headline { color: #0f1131; }

.contact-subtext {
    color: var(--text-secondary); font-size: 1rem;
    line-height: 1.7; margin-bottom: 48px;
}

.contact-items { display: flex; flex-direction: column; gap: 20px; margin-bottom: 40px; }

.contact-item {
    display: flex; align-items: center; gap: 16px;
    text-decoration: none; transition: transform 0.2s;
}
.contact-item:hover { transform: translateX(6px); }

.contact-item-icon {
    width: 48px; height: 48px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; flex-shrink: 0;
}
.contact-item-blue   { background: rgba(79,142,247,0.15);  color: #7eb0ff;  border: 1px solid rgba(79,142,247,0.3); }
.contact-item-violet { background: rgba(124,58,237,0.15); color: #c084fc;  border: 1px solid rgba(124,58,237,0.3); }
.contact-item-cyan   { background: rgba(6,182,212,0.15);  color: #67e8f9;  border: 1px solid rgba(6,182,212,0.3); }
.contact-item-amber  { background: rgba(245,158,11,0.15); color: #fbbf24;  border: 1px solid rgba(245,158,11,0.3); }

.contact-item-label { display: block; font-size: 0.75rem; color: var(--text-muted); font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 2px; }
.contact-item-value { display: block; font-size: 0.95rem; color: white; font-weight: 500; }
[data-theme="light"] .contact-item-value { color: #0f1131; }

.contact-socials {
    display: flex; gap: 12px; justify-content: center;
    max-width: 1200px; margin: 0 auto;
    padding: 0 40px 60px;
    position: relative; z-index: 1;
}
.contact-social {
    width: 44px; height: 44px; border-radius: 12px;
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-secondary); font-size: 1rem;
    transition: all 0.25s; text-decoration: none;
}
.contact-social:hover { background: var(--gradient-accent); color: white; border-color: transparent; transform: translateY(-3px); box-shadow: 0 8px 24px rgba(124,58,237,0.3); }
[data-theme="light"] .contact-social { background: rgba(79,142,247,0.1); border-color: rgba(79,142,247,0.2); color: #4f8ef7; }

/* Colonne droite — formulaire glassmorphism */
.contact-form-new {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 20px;
    align-items: start;
    background: rgba(22,25,41,0.7);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-3xl);
    padding: 48px;
    box-shadow: 0 40px 80px rgba(0,0,0,0.5);
}
/* En grille, l'espacement est géré par `gap` (pas par la marge des champs) */
.contact-form-new .form-group { margin-bottom: 0; }
.contact-form-new .contact-submit-btn,
.contact-form-new .form-rgpd-note { grid-column: 1 / -1; }
/* Une colonne sur tablette/mobile */
@media (max-width: 768px) {
    .contact-form-new { grid-template-columns: 1fr; }
}
[data-theme="light"] .contact-form-new {
    background: rgba(255,255,255,0.85);
    border-color: rgba(79,142,247,0.15);
    box-shadow: var(--shadow-xl);
}

.contact-form-new .form-group label {
    color: rgba(255,255,255,0.75); font-size: 0.85rem; font-weight: 500;
    text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 8px;
}
[data-theme="light"] .contact-form-new .form-group label { color: #4b5280; }

.contact-form-new .form-group input,
.contact-form-new .form-group select,
.contact-form-new .form-group textarea {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    border-radius: var(--radius-xl); padding: 14px 16px;
}
[data-theme="light"] .contact-form-new .form-group input,
[data-theme="light"] .contact-form-new .form-group select,
[data-theme="light"] .contact-form-new .form-group textarea {
    background: rgba(79,142,247,0.04);
    border-color: rgba(79,142,247,0.2);
    color: #0f1131;
}

.contact-form-new .form-group input::placeholder,
.contact-form-new .form-group textarea::placeholder { color: rgba(255,255,255,0.3); }
[data-theme="light"] .contact-form-new .form-group input::placeholder,
[data-theme="light"] .contact-form-new .form-group textarea::placeholder { color: #9ca3c8; }

.contact-form-new .form-group input:focus,
.contact-form-new .form-group select:focus,
.contact-form-new .form-group textarea:focus {
    border-color: rgba(124,58,237,0.6);
    box-shadow: 0 0 0 3px rgba(124,58,237,0.15);
    background: rgba(124,58,237,0.08);
    outline: none;
}

.contact-form-new .form-group select option { background: #161929; color: white; }
[data-theme="light"] .contact-form-new .form-group select option { background: white; color: #0f1131; }

.contact-submit-btn {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; padding: 16px 28px;
    background: var(--gradient-accent);
    color: white; border: none; border-radius: var(--radius-xl);
    font-size: 1rem; font-weight: 700; cursor: pointer;
    transition: all 0.3s; margin-top: 8px;
}
.contact-submit-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(124,58,237,0.4); filter: brightness(1.1); }
.contact-submit-btn i:last-child { transition: transform 0.2s; }
.contact-submit-btn:hover i:last-child { transform: translateX(4px); }

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

.contact-header {
    text-align: center;
    margin-bottom: 48px;
}

.contact-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.contact-header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.info-card:hover {
    transform: translateX(8px);
    border-color: var(--electric);
}

.info-card i {
    width: 48px;
    height: 48px;
    background: var(--electric);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.info-card h4 {
    font-size: 1rem;
    margin-bottom: 6px;
    color: var(--text-primary);
    font-weight: 600;
}

.info-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 0;
}

.contact-form {
    background: var(--bg-card);
    padding: 36px;
    border-radius: var(--radius-2xl);
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: var(--text-primary);
    transition: all 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--electric);
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

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

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.btn-full {
    width: 100%;
    padding: 16px;
    font-size: 1.05rem;
}

/* ========================================
   Stats Section - Style Apple
   ======================================== */
.stats-section {
    padding: 80px 0;
    background: linear-gradient(180deg, #07080f 0%, #0a0e24 100%);
    border-top: none;
    border-bottom: none;
}
[data-theme="light"] .stats-section {
    background: linear-gradient(180deg, #0f1131 0%, #1a1550 100%);
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    position: relative;
    z-index: 1;
}

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

.stat-number {
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 3rem;
    font-weight: 700;
    display: block;
    margin-bottom: 8px;
    color: var(--electric);
}

.stat-label {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ========================================
   Footer - Style Apple
   ======================================== */
.footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    padding: 64px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 48px;
}

.footer-col h4 {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-col p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.9rem;
}

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

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

.footer-col ul li a {
    color: var(--text-secondary);
    transition: color 0.2s;
    font-size: 0.9rem;
}

.footer-col ul li a:hover {
    color: var(--electric);
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 0;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--bg-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.social-links a:hover {
    background: var(--electric);
    color: white;
    transform: translateY(-2px);
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: 48px;
    }

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

    .hero-buttons {
        justify-content: center;
    }

    /* Mobile : contenu (badge, titre, CTA) d'abord, bloc de code en dernier */
    .hero-image {
        order: 1;
    }

    .values-grid,
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 768px) {

    /* ----------------------------------------
       Variables & espacements globaux
       ---------------------------------------- */
    :root {
        --section-padding: 60px;
    }

    /* ----------------------------------------
       Navigation mobile
       ---------------------------------------- */
    .nav-menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--bg-primary);
        flex-direction: column;
        padding: 24px;
        box-shadow: var(--shadow-lg);
        transform: translateY(-150%);
        opacity: 0;
        transition: all var(--transition-base);
        z-index: 1000;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        /* Important : crée un contexte d'empilement */
        isolation: isolate;
    }

    /* Overlay sombre - DANS le menu, derrière les liens */
    .nav-menu-overlay {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        bottom: -100vh;
        background: rgba(0, 0, 0, 0.6);
        z-index: 9;
    }

    .nav-menu-overlay.active {
        display: block;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    /* ----------------------------------------
       Titres de section
       ---------------------------------------- */
    .section-title {
        font-size: 1.6rem;
    }

    .section-subtitle {
        font-size: 0.85rem;
    }

    /* ----------------------------------------
       Hero
       ---------------------------------------- */
    .hero {
        padding: 80px 0 40px;
    }

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

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }

    .hero-code-block {
        font-size: 0.75rem;
        padding: 16px;
    }

    /* ----------------------------------------
       Stats : 2 colonnes
       ---------------------------------------- */
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }

    /* ----------------------------------------
       Sliders horizontaux
       ---------------------------------------- */

    /* Mixin commun aux sliders.
       Repli (si le JS ne tourne pas) : scroll natif horizontal, SANS scroll-snap
       (cause des à-coups) et SANS touch-action restrictif (laisse le navigateur
       gérer nativement le scroll vertical de la page). */
    .services-grid,
    .pricing-grid,
    .portfolio-grid,
    .team-grid,
    .testimonials-grid {
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 16px;
        padding: 8px 4px 16px;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .services-grid::-webkit-scrollbar,
    .pricing-grid::-webkit-scrollbar,
    .portfolio-grid::-webkit-scrollbar,
    .team-grid::-webkit-scrollbar,
    .testimonials-grid::-webkit-scrollbar { display: none; }

    /* Mode carrousel piloté par JS : plus de scroll natif, transform sur le track.
       touch-action: pan-y => le scroll VERTICAL de la page reste 100% natif
       (ne se bloque jamais), seul l'horizontal est géré par le JS. */
    .js-slider {
        overflow: hidden !important;
        touch-action: pan-y;
        -webkit-overflow-scrolling: auto;
    }
    .js-slider .slider-track {
        display: flex;
        gap: 16px;
        will-change: transform;
    }
    /* Largeur des cartes en mode carrousel = 85% de la largeur visible (fixée par le JS) */
    .js-slider .slider-track > * {
        flex: 0 0 var(--peek-card, 85%) !important;
        width: var(--peek-card, 85%);
        min-width: 0;
        scroll-snap-align: none;
    }

    /* Largeur des cartes dans chaque slider */
    .services-grid .service-card      { flex: 0 0 85%; min-width: 0; }
    .pricing-grid .pricing-card       { flex: 0 0 85%; min-width: 0; }
    .portfolio-grid .portfolio-item   { flex: 0 0 88%; min-width: 0; }
    .team-grid .team-card             { flex: 0 0 75%; min-width: 0; }
    .testimonials-grid .testimonial-card { flex: 0 0 88%; min-width: 0; }

    /* ----------------------------------------
       Réduction des cards
       ---------------------------------------- */
    .service-card {
        padding: 20px;
    }

    .service-card.featured {
        transform: none;
    }

    .pricing-card {
        padding: 24px;
    }

    .testimonial-card {
        padding: 20px;
    }

    /* ----------------------------------------
       Dot indicators (injectés par JS)
       ---------------------------------------- */
    .slider-dots {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: 12px;
    }

    .slider-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--border-color);
        border: none;
        transition: all 0.3s;
        cursor: pointer;
        padding: 0;
    }

    .slider-dot.active {
        width: 24px;
        border-radius: 4px;
        background: var(--electric);
    }

    /* ----------------------------------------
       Scroll reveal animations
       ---------------------------------------- */
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

    .reveal.visible {
        opacity: 1;
        transform: translateY(0);
    }

    .reveal-cascade > *:nth-child(1) { transition-delay: 0s; }
    .reveal-cascade > *:nth-child(2) { transition-delay: 0.1s; }
    .reveal-cascade > *:nth-child(3) { transition-delay: 0.2s; }
    .reveal-cascade > *:nth-child(4) { transition-delay: 0.3s; }

    /* ----------------------------------------
       Grille valeurs
       ---------------------------------------- */
    .values-grid {
        grid-template-columns: 1fr;
    }

    /* ----------------------------------------
       Process timeline
       ---------------------------------------- */
    .process-step:nth-child(odd),
    .process-step:nth-child(even) {
        flex-direction: column;
        gap: 16px;
        margin-bottom: 28px;
    }

    .process-step-number {
        width: 48px;
        height: 48px;
        font-size: 1.125rem;
    }

    .process-step-content {
        padding: 20px;
    }

    /* ----------------------------------------
       Contact
       ---------------------------------------- */
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 24px;
    }

    /* ----------------------------------------
       Formulaires — évite zoom iOS
       ---------------------------------------- */
    input,
    textarea,
    select {
        font-size: 16px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    /* ----------------------------------------
       FAQ
       ---------------------------------------- */
    .faq-item {
        padding: 16px;
    }

    .faq-question {
        font-size: 0.95rem;
    }

    /* ----------------------------------------
       Section prise de rendez-vous (split → stack)
       ---------------------------------------- */
    .appt-split-container {
        grid-template-columns: 1fr;
    }
    .appt-left-panel { padding: 48px 24px; }
    .appt-right-panel { padding: 32px 24px; }
    .appt-types-grid { grid-template-columns: repeat(2, 1fr); }

    /* Contact (split → stack) */
    .contact-inner {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 60px 20px;
    }
    .contact-form-new { padding: 28px 20px; }
    .contact-headline { font-size: 2rem; }
    .contact-socials { padding: 0 20px 40px; }

    /* ----------------------------------------
       Footer
       ---------------------------------------- */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px 24px;
    }
    .footer-col:first-child {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .newsletter-form {
        flex-direction: column;
        border-radius: var(--radius-xl);
        padding: 12px;
    }

    .newsletter-form button {
        width: 100%;
    }
}

/* ========================================
   Back to Top Button
   ======================================== */
.back-to-top {
    position: fixed;
    bottom: 108px; /* au-dessus du widget chat (64px + 32px + 12px gap) */
    right: 32px;
    width: 56px;
    height: 56px;
    background: var(--gradient-accent);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 999;
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.4);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.back-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 15px 50px rgba(99, 102, 241, 0.5);
}

/* ========================================
   Live Stats Widget
   ======================================== */

/* ========================================
   Live Stats Widget
   ======================================== */
.live-stats {
    position: fixed;
    bottom: 32px;
    left: 32px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    background: var(--bg-secondary);
    border-radius: var(--radius-full);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-color);
    z-index: 999;
}

.live-indicator {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

.live-stats span {
    font-size: 0.85rem;
    color: var(--text-primary);
    font-weight: 500;
}

.live-stats strong {
    color: var(--electric);
    font-weight: 700;
}

/* Mode clair - contraste renforcé */
[data-theme="light"] .live-stats {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 0, 0, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .live-stats span {
    color: #1c1c1e; /* Noir profond pour contraste max */
}

/* ========================================
   Cookie Banner
   ======================================== */
.cookie-banner {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    padding: 24px 20px;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3);
    z-index: 10001;
    transition: bottom 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-top: 1px solid var(--border-color);
    will-change: bottom;
}

.cookie-banner.visible {
    bottom: 0;
}

/* Mobile - cookie banner adapté */
@media (max-width: 768px) {
    .cookie-banner {
        padding: 20px 16px;
    }

    .cookie-banner-actions {
        flex-direction: column;
    }

    .cookie-btn {
        width: 100%;
    }
}

.cookie-banner-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.cookie-banner-icon {
    width: 44px;
    height: 44px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.cookie-banner-header h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.cookie-banner p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.cookie-banner-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.cookie-btn {
    padding: 12px 24px;
    border-radius: var(--radius-full);
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    border: none;
}

.cookie-btn-primary {
    background: var(--gradient-accent);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.cookie-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.cookie-btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.cookie-btn-secondary:hover {
    filter: brightness(1.15);
}

/* ========================================
   Portfolio Modal
   ======================================== */
.portfolio-modal {
    position: fixed;
    inset: 0;
    background: rgba(10, 14, 26, 0.85);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.portfolio-modal.active {
    display: flex;
}

.portfolio-modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.portfolio-modal-content {
    background: white;
    border-radius: var(--radius-2xl);
    max-width: 640px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9) translateY(20px);
    opacity: 0;
    transition: all var(--transition-base);
}

.portfolio-modal.active .portfolio-modal-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.portfolio-modal-image {
    height: 280px;
    background: var(--gradient-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
}

.portfolio-modal-image i {
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.8);
}

.portfolio-modal-body {
    padding: 32px;
}

.portfolio-modal-body h3 {
    font-size: 1.5rem;
    color: var(--gray-900);
    margin-bottom: 12px;
}

.portfolio-modal-body p {
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 20px;
}

.portfolio-modal-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.portfolio-tag {
    padding: 6px 14px;
    background: var(--gray-100);
    color: var(--gray-700);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
}

/* ========================================
   Appointment View - Client Widget (embedded in chat bubble)
   ======================================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.chat-appointment-view {
    display: flex;
    flex-direction: column;
    height: 450px;
    background: var(--bg-primary);
    animation: fadeIn 0.25s ease;
}

.chat-appointment-body {
    flex: 1;
    padding: 20px 24px;
    overflow-y: auto;
}

.chat-appointment-body::-webkit-scrollbar {
    width: 6px;
}

.chat-appointment-body::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

.chat-appointment-body::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 4px;
}

/* Steps */
.appointment-step {
    display: none;
    animation: stepFadeIn 0.3s ease;
}

.appointment-step.active {
    display: block;
}

@keyframes stepFadeIn {
    from {
        opacity: 0;
        transform: translateX(15px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.appointment-step h5 {
    margin: 0 0 16px 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Types Grid */
.appointment-types-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.appointment-type-option {
    padding: 18px 14px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.appointment-type-option i {
    font-size: 1.8rem;
    color: var(--electric);
    transition: transform 0.2s ease;
}

.appointment-type-option span {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.appointment-type-option small {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

.appointment-type-option:hover {
    border-color: var(--electric);
    background: rgba(0, 113, 227, 0.08);
    transform: translateY(-3px);
}

.appointment-type-option:hover i {
    transform: scale(1.1);
}

.appointment-type-option.selected {
    border-color: var(--electric);
    background: rgba(0, 113, 227, 0.12);
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.25);
}

.appointment-type-option.selected i {
    color: var(--electric-light);
}

/* Date Field */
.appointment-date-field {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    color: var(--text-primary);
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.appointment-date-field:focus {
    border-color: var(--electric);
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.15);
    outline: none;
}

.appointment-date-field::-webkit-calendar-picker-indicator {
    cursor: pointer;
    filter: invert(0.7);
}

/* Slots Grid */
.appointment-slots-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    min-height: 120px;
}

.appointment-slot-btn {
    padding: 12px 10px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.appointment-slot-btn:hover:not(.disabled) {
    border-color: var(--electric);
    background: rgba(0, 113, 227, 0.08);
    transform: scale(1.05);
}

.appointment-slot-btn.selected {
    border-color: var(--electric);
    background: var(--electric);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.35);
}

.appointment-slot-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: var(--bg-tertiary);
}

.slots-placeholder {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-muted);
    padding: 30px;
}

.slots-placeholder i {
    font-size: 1.3rem;
    margin-right: 8px;
}

/* Confirm Card */
.appointment-confirm-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 18px;
}

.confirm-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.confirm-row:last-child {
    border-bottom: none;
}

.confirm-row i {
    width: 20px;
    color: var(--electric);
    font-size: 1rem;
}

.confirm-row span {
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 500;
}

/* Appointment View Footer */
.chat-appointment-footer {
    display: flex;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.chat-appointment-footer .btn {
    flex: 1;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.chat-appointment-footer .btn-primary {
    background: var(--electric);
    color: white;
}

.chat-appointment-footer .btn-primary:hover {
    background: var(--electric-dark);
    transform: translateY(-2px);
}

.chat-appointment-footer .btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.chat-appointment-footer .btn-secondary:hover {
    background: var(--bg-primary);
}

.chat-appointment-footer .btn-success {
    background: var(--success);
    color: white;
}

.chat-appointment-footer .btn-success:hover {
    background: #2da84f;
    transform: translateY(-2px);
}

.chat-appointment-footer .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* Chat User Actions */
.chat-user-actions {
    display: flex;
    gap: 8px;
}

/* Responsive Appointment View */
@media (max-width: 480px) {
    .appointment-types-grid {
        grid-template-columns: 1fr;
    }

    .appointment-slots-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .chat-appointment-view {
        height: 100%;
    }
}

/* ========================================
   Utility Classes
   ======================================== */
.text-gradient {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.shadow-glow {
    box-shadow: var(--shadow-glow);
}

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

/* ========================================
   Utility Classes
   ======================================== */
.text-gradient {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.shadow-glow {
    box-shadow: var(--shadow-glow);
}

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

/* ========================================
   Flatpickr - Thème Novean (dark/light)
   ======================================== */
.flatpickr-calendar {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-xl) !important;
    box-shadow: var(--shadow-xl) !important;
    font-family: 'Outfit', sans-serif !important;
}
.flatpickr-month, .flatpickr-weekdays {
    background: var(--bg-secondary) !important;
}
.flatpickr-current-month, .flatpickr-current-month .cur-month,
.flatpickr-current-month input.cur-year {
    color: var(--text-primary) !important;
}
.flatpickr-weekday {
    color: var(--text-secondary) !important;
    font-weight: 600 !important;
}
.flatpickr-day {
    color: var(--text-primary) !important;
    border-radius: var(--radius-md) !important;
}
.flatpickr-day:hover {
    background: var(--bg-tertiary) !important;
    border-color: transparent !important;
}
.flatpickr-day.selected, .flatpickr-day.selected:hover {
    background: var(--electric) !important;
    border-color: var(--electric) !important;
    color: white !important;
}
.flatpickr-day.today {
    border-color: var(--electric) !important;
    color: var(--electric) !important;
}
/* Jours désactivés (passés + week-ends) : grisés, non-cliquables */
.flatpickr-day.disabled,
.flatpickr-day.disabled:hover,
.flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover {
    color: var(--text-muted) !important;
    background: transparent !important;
    cursor: not-allowed !important;
    opacity: 0.35 !important;
    text-decoration: line-through !important;
}
.flatpickr-prev-month, .flatpickr-next-month {
    color: var(--text-secondary) !important;
    fill: var(--text-secondary) !important;
}
.flatpickr-prev-month:hover, .flatpickr-next-month:hover {
    color: var(--electric) !important;
    fill: var(--electric) !important;
}

/* ============================================================
   ✦ REFONTE « AURORA PREMIUM » ✦
   Couche d'ambiance globale + verre + néons (mode sombre par défaut)
   ============================================================ */

/* --- 1. Aurore animée derrière tout le site --- */
body::before {
    content: '';
    position: fixed;
    inset: -25%;
    z-index: -2;
    pointer-events: none;
    background:
        radial-gradient(38% 48% at 16% 18%, rgba(139, 92, 246, 0.30), transparent 60%),
        radial-gradient(34% 42% at 84% 12%, rgba(34, 211, 238, 0.22), transparent 60%),
        radial-gradient(46% 50% at 78% 78%, rgba(244, 114, 182, 0.22), transparent 62%),
        radial-gradient(42% 46% at 18% 86%, rgba(59, 130, 246, 0.24), transparent 60%);
    filter: blur(40px) saturate(125%);
    animation: auroraDrift 30s ease-in-out infinite alternate;
    will-change: transform;
}
@keyframes auroraDrift {
    0%   { transform: translate3d(0, 0, 0) scale(1); }
    50%  { transform: translate3d(0, -3%, 0) scale(1.08) rotate(1.5deg); }
    100% { transform: translate3d(0, 2%, 0) scale(1.05) rotate(-1.5deg); }
}
/* Grain subtil pour la texture premium */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
[data-theme="light"] body::before { opacity: 0.5; }
[data-theme="light"] body::after { opacity: 0.025; }
@media (prefers-reduced-motion: reduce) {
    body::before { animation: none; }
}

/* --- 2. Sections transparentes : l'aurore circule à travers tout --- */
.hero,
.services, [data-theme="light"] .services,
.pricing, [data-theme="light"] .pricing,
.portfolio,
.values-section,
.process-section,
.testimonials-section,
.faq-section,
.contact {
    background: transparent !important;
}
/* On masque les vagues séparatrices (look daté) au profit d'un flux continu */
.wave-divider { display: none !important; }

/* --- 3. Hero : titre massif + lueur --- */
/* padding-top desktop uniquement : sur mobile/tablette la media query 768px gère le padding réduit */
@media (min-width: 769px) {
    .hero { padding-top: 200px; }
}
.hero-content h1 {
    font-size: clamp(2.4rem, 6vw, 4.6rem);
    letter-spacing: -0.03em;
    line-height: 1.15;
    padding-bottom: 0.08em; /* évite la coupe des jambages sur le texte en dégradé */
    filter: drop-shadow(0 4px 30px rgba(139, 92, 246, 0.45));
}
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    margin-bottom: 26px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    white-space: nowrap;
}
/* Badge plus compact sur mobile (gagne de la place sous la navbar) */
@media (max-width: 768px) {
    .hero-eyebrow {
        gap: 6px;
        padding: 5px 12px;
        margin-bottom: 18px;
        font-size: 0.72rem;
    }
    .hero-eyebrow .dot-live { width: 6px; height: 6px; }
}
.hero-eyebrow .dot-live {
    width: 8px; height: 8px; border-radius: 50%;
    background: #22d3ee; box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.6);
    animation: pulseLive 2s infinite;
}
@keyframes pulseLive {
    0% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.5); }
    70% { box-shadow: 0 0 0 10px rgba(34, 211, 238, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0); }
}

/* --- 4. Boutons : néon + dégradé animé + balayage --- */
.btn-primary {
    background: linear-gradient(120deg, #3b82f6, #8b5cf6, #f472b6, #8b5cf6, #3b82f6);
    background-size: 250% 100%;
    animation: btnGradient 6s ease infinite;
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.45), 0 0 0 1px rgba(255,255,255,0.06) inset;
}
@keyframes btnGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.btn-primary:hover {
    box-shadow: 0 14px 50px rgba(139, 92, 246, 0.6), 0 0 30px rgba(59, 130, 246, 0.4);
}

/* --- 5. Titres de section : lueur douce --- */
.section-title {
    filter: drop-shadow(0 2px 24px rgba(124, 58, 237, 0.35));
}

/* --- 6. Cartes "verre" qui s'illuminent --- */
.service-card,
.pricing-card,
.value-card,
.testimonial-card,
.faq-item,
.portfolio-item,
.contact-form-new {
    background: rgba(20, 23, 40, 0.55) !important;
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
[data-theme="light"] .service-card,
[data-theme="light"] .pricing-card,
[data-theme="light"] .value-card,
[data-theme="light"] .testimonial-card,
[data-theme="light"] .faq-item,
[data-theme="light"] .portfolio-item,
[data-theme="light"] .contact-form-new {
    background: rgba(255, 255, 255, 0.75) !important;
    border: 1px solid rgba(79, 142, 247, 0.15) !important;
    box-shadow: 0 10px 40px rgba(79, 142, 247, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
/* La carte "Populaire" garde son dégradé plein */
.service-card.featured { background: var(--gradient-accent) !important; }
.pricing-card.popular {
    border-color: rgba(139, 92, 246, 0.5) !important;
    box-shadow: 0 16px 60px rgba(139, 92, 246, 0.35), inset 0 1px 0 rgba(255,255,255,0.1) !important;
}
.service-card:hover,
.pricing-card:hover,
.value-card:hover,
.testimonial-card:hover {
    border-color: rgba(139, 92, 246, 0.45) !important;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5), 0 0 40px rgba(139, 92, 246, 0.25) !important;
}

/* --- 7. Navbar : verre plus profond --- */
.navbar {
    background: rgba(7, 8, 15, 0.6) !important;
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
}
[data-theme="light"] .navbar { background: rgba(250, 251, 255, 0.7) !important; }

/* --- Notifications "site-toast" (classe dédiée, sans conflit avec chat.css/admin.css) --- */
.site-toast-container {
    position: fixed;
    top: 88px;
    right: 20px;
    z-index: 100000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: calc(100vw - 40px);
    pointer-events: none;
}
.site-toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 14px;
    background: #ffffff;
    color: #0f1131;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
    border-left: 4px solid var(--electric);
    min-width: 240px;
    max-width: 380px;
    font-size: 0.92rem;
    line-height: 1.45;
    pointer-events: auto;
    transition: opacity 0.35s ease, transform 0.35s ease;
    animation: siteToastIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.site-toast i { font-size: 1.2rem; flex-shrink: 0; color: var(--electric); }
.site-toast a { color: var(--electric); font-weight: 600; }
.site-toast-success { border-left-color: #10b981; }
.site-toast-success i { color: #10b981; }
.site-toast-error { border-left-color: #ef4444; }
.site-toast-error i { color: #ef4444; }
.site-toast-warning { border-left-color: #f59e0b; }
.site-toast-warning i { color: #f59e0b; }
.site-toast-info { border-left-color: #3b82f6; }
.site-toast-info i { color: #3b82f6; }
@keyframes siteToastIn {
    from { opacity: 0; transform: translateX(120%); }
    to   { opacity: 1; transform: translateX(0); }
}
@media (max-width: 480px) {
    .site-toast-container { top: 80px; right: 12px; left: 12px; max-width: none; }
    .site-toast { min-width: 0; max-width: 100%; }
}

/* Zone tactile élargie des points de carrousel (visuel 8px conservé) */
.slider-dot {
    padding: 14px 6px !important;
    background-clip: content-box;
    box-sizing: content-box;
}
