/* ============================================
   HEIRION - Style Principal
   Site 3.0 Futuriste & Ultra UX/UI
   ============================================ */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Syne:wght@400;500;600;700;800&display=swap');

/* ============================================
   Variables CSS - Thème Heirion
   ============================================ */
:root {
    /* Couleurs principales */
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --primary-glow: rgba(99, 102, 241, 0.4);
    
    --accent: #f97316;
    --accent-light: #fb923c;
    --accent-dark: #ea580c;
    --accent-glow: rgba(249, 115, 22, 0.4);
    
    /* Couleurs de fond */
    --bg-dark: #0a0a14;
    --bg-darker: #050508;
    --bg-card: rgba(20, 20, 35, 0.8);
    --bg-card-hover: rgba(30, 30, 50, 0.9);
    --bg-glass: rgba(255, 255, 255, 0.03);
    --bg-glass-hover: rgba(255, 255, 255, 0.06);
    
    /* Couleurs de texte */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    
    /* Bordures et ombres */
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(99, 102, 241, 0.3);
    --shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 40px var(--primary-glow);
    --shadow-glow-accent: 0 0 40px var(--accent-glow);
    
    /* Typographie */
    --font-primary: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Syne', 'Outfit', sans-serif;
    
    /* Espacements */
    --section-padding: clamp(60px, 10vw, 120px);
    --container-max: 1400px;
    --border-radius: 16px;
    --border-radius-lg: 24px;
    --border-radius-xl: 32px;
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-medium: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

/* Offset pour les ancres avec header fixe */
section[id] {
    scroll-margin-top: 20px;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Background global avec gradient dynamique */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse 100% 60% at 50% -10%, rgba(99, 102, 241, 0.2), transparent 50%),
        radial-gradient(ellipse 80% 50% at 100% 30%, rgba(139, 92, 246, 0.12), transparent 50%),
        radial-gradient(ellipse 60% 40% at 0% 70%, rgba(99, 102, 241, 0.1), transparent 50%),
        radial-gradient(ellipse 40% 30% at 80% 90%, rgba(249, 115, 22, 0.08), transparent 50%),
        var(--bg-dark);
    z-index: -2;
    pointer-events: none;
}

/* Scan line supprimé pour clarté */

/* Selection */
::selection {
    background: var(--primary);
    color: white;
}

/* ============================================
   Typographie
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
}

p {
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    color: var(--text-secondary);
}

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

/* ============================================
   Container & Layout
   ============================================ */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 clamp(20px, 5vw, 80px);
}

.section {
    padding: var(--section-padding) 0;
    position: relative;
}

/* ============================================
   Navigation Header
   ============================================ */
.header {
    position: fixed;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 80px);
    max-width: 1200px;
    z-index: 1000;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.header.header-hidden {
    transform: translateX(-50%) translateY(-150%);
    opacity: 0;
    pointer-events: none;
}

.header-inner {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--border-radius-xl);
    padding: 16px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 
        0 4px 24px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.2);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--bg-dark);
}

.logo-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 10px 20px;
    font-weight: 500;
    font-size: 1.2rem;
    color: var(--bg-dark);
    border-radius: var(--border-radius);
    transition: var(--transition-fast);
    position: relative;
}

.nav-link:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
}

.nav-link.active {
    color: var(--primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.nav-cta {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white !important;
    padding: 12px 28px;
    border-radius: var(--border-radius-lg);
    font-weight: 600;
    font-size: 1.2rem;
    box-shadow: 0 4px 16px var(--primary-glow);
    transition: var(--transition-fast);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--primary-glow);
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
}

/* Bouton Télécharger - caché par défaut sur desktop */
.nav-download-mobile {
    display: none !important;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    background: rgba(99, 102, 241, 0.08);
    border: none;
    cursor: pointer;
    padding: 12px;
    border-radius: 12px;
    z-index: 1001;
    transition: all 0.3s ease;
    width: 48px;
    height: 48px;
}

/* Force l'affichage du menu toggle sur mobile */
@media screen and (max-width: 1150px) {
    .menu-toggle {
        display: flex !important;
    }
    
    .header .header-inner .nav {
        display: none !important;
    }
    
    .header .header-inner .nav.active {
        display: flex !important;
    }
}

.menu-toggle:hover {
    background: rgba(99, 102, 241, 0.15);
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    transform-origin: center;
}

.menu-toggle span:nth-child(1) {
    width: 22px;
}

.menu-toggle span:nth-child(2) {
    width: 16px;
}

.menu-toggle span:nth-child(3) {
    width: 22px;
}

.menu-toggle.active {
    background: rgba(99, 102, 241, 0.15);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
    width: 22px;
}

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

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
    width: 22px;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 160px;
    padding-bottom: 0;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.hero::before,
.hero::after {
    display: none;
}

.hero-content {
    max-width: 900px;
    z-index: 1;
    margin: 0 auto;
    text-align: center;
}

.hero-tagline {
    display: inline-block;
    color: var(--accent);
    font-size: clamp(0.875rem, 1.5vw, 1rem);
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.2s;
}

.hero-title {
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.4s;
}

.hero-title span {
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.25rem);
    max-width: 700px;
    margin: 0 auto 40px;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.6s;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.8s;
}

/* ============================================
   Boutons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--border-radius-lg);
    border: none;
    cursor: pointer;
    transition: var(--transition-fast);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px var(--primary-glow);
}

.btn-secondary {
    background: var(--bg-glass);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--bg-glass-hover);
    border-color: var(--primary);
    transform: translateY(-3px);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: white;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-accent:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px var(--accent-glow);
}

/* ============================================
   App Carousel Infini (8 images) - Pleine largeur
   ============================================ */
/* Force la suppression complète du fond pour la section carousel */
section.app-carousel-section,
section.app-carousel-section.section,
.app-carousel-section.section,
main section.app-carousel-section,
body section.app-carousel-section,
main > section.app-carousel-section,
body > main > section.app-carousel-section {
    width: 100% !important;
    background: none !important;
    background-color: rgba(0, 0, 0, 0) !important;
    background-image: none !important;
    background-clip: border-box !important;
    background-origin: border-box !important;
    background-size: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    position: relative;
    overflow: visible;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    z-index: auto !important;
    isolation: isolate !important;
    mix-blend-mode: normal !important;
}

/* Force également sur tous les enfants directs */
section.app-carousel-section > *,
.app-carousel-section > * {
    background: none !important;
    background-color: rgba(0, 0, 0, 0) !important;
}

.app-carousel-section::before,
.app-carousel-section::after {
    display: none !important;
    content: none !important;
    background: none !important;
    background-color: transparent !important;
    background-image: none !important;
    opacity: 0 !important;
}

.app-carousel-container {
    width: 100%;
    padding: 30px 0;
    overflow: hidden;
    position: relative;
    background: none !important;
    background-color: transparent !important;
    background-image: none !important;
    margin: 0 !important;
    border: none !important;
    backdrop-filter: none !important;
}

.app-carousel {
    width: 100%;
    overflow: hidden;
    position: relative;
    background: none !important;
    background-color: transparent !important;
    background-image: none !important;
    backdrop-filter: none !important;
}

.app-carousel-track {
    display: flex;
    gap: 0 !important;
    width: fit-content;
}

.app-carousel-item {
    flex-shrink: 0;
    width: auto;
    height: auto;
    overflow: visible;
    position: relative;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

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

.mockup-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-align: center;
    padding: 20px;
    background: 
        linear-gradient(135deg, rgba(99, 102, 241, 0.05), transparent);
}

.mockup-placeholder svg {
    margin-bottom: 16px;
    opacity: 0.5;
}

.mockup-image {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 80vh;
    display: block;
    margin: 0 !important;
    padding: 0 !important;
}

/* ============================================
   App Mockup (ancien style - conservé pour compatibilité)
   ============================================ */
.hero-mockup {
    margin-top: 60px;
    display: flex;
    justify-content: center;
    gap: 30px;
    perspective: 1000px;
}

.mockup-device {
    width: 280px;
    height: 580px;
    background: var(--bg-card);
    border-radius: 40px;
    border: 3px solid var(--border-subtle);
    overflow: hidden;
    position: relative;
    transition: var(--transition-medium);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.mockup-device:hover {
    transform: translateY(-10px) rotateY(5deg);
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.5),
        0 0 40px var(--primary-glow);
}

/* ============================================
   Styles avancés pour toutes les sections
   ============================================ */
.section {
    position: relative;
    z-index: 1;
    overflow: visible;
}

.section > .container {
    position: relative;
    z-index: 2;
}

/* ============================================
   SYSTÈME DE FONDS PAR PAGE
   Chaque page a son propre style de fond
   ============================================ */

/* Reset des sections */
.section {
    position: relative;
    background: transparent;
}

/* Exception pour la section carousel - aucun fond */
.section.app-carousel-section,
section.app-carousel-section {
    background: none !important;
    background-color: rgba(0, 0, 0, 0) !important;
}

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

/* ============================================
   PAGE D'ACCUEIL - Fond avec horloges (canvas)
   ============================================ */

/* Hero : Transparent pour voir les horloges */
.hero {
    background: transparent;
}

/* Features + App Showcase : Groupe "Tech" */
.features,
.app-showcase {
    background: linear-gradient(180deg, 
        transparent 0%, 
        rgba(10, 10, 25, 0.7) 10%, 
        rgba(10, 10, 25, 0.8) 50%,
        rgba(10, 10, 25, 0.7) 90%,
        transparent 100%
    );
}

/* Exception : la section carousel ne doit PAS avoir de fond */
.app-carousel-section,
section.app-carousel-section {
    background: none !important;
    background-color: rgba(0, 0, 0, 0) !important;
    background-image: none !important;
}

/* Grille tech subtile pour Features */
.features::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.5;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
    mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
}

/* Stats + Testimonials : Groupe "Confiance" */
.stats,
.testimonials {
    background: linear-gradient(180deg, 
        transparent 0%, 
        rgba(8, 8, 20, 0.6) 15%, 
        rgba(8, 8, 20, 0.7) 50%,
        rgba(8, 8, 20, 0.6) 85%,
        transparent 100%
    );
}

/* CTA : Focus lumineux */
.cta-section {
    background: radial-gradient(ellipse 80% 50% at center, 
        rgba(99, 102, 241, 0.08) 0%, 
        transparent 70%
    );
}

/* ============================================
   PAGE APPLICATION - Fond Digital/Tech (STATIQUE)
   ============================================ */
body.page-application {
    background: 
        radial-gradient(ellipse 100% 50% at 50% 0%, rgba(30, 30, 60, 0.5) 0%, transparent 60%),
        var(--bg-dark);
}

body.page-application .page-header {
    background: transparent;
}

/* Effet scan lines subtil pour la page app */
body.page-application .section {
    background: transparent;
}

body.page-application .section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 3px,
        rgba(99, 102, 241, 0.015) 3px,
        rgba(99, 102, 241, 0.015) 4px
    );
    pointer-events: none;
    opacity: 0.8;
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
    mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
}

/* ============================================
   PAGE NOTAIRE - Fond SOBRE et Officiel (STATIQUE)
   ============================================ */
body.page-notaire {
    background: #060610;
}

body.page-notaire .page-header {
    background: linear-gradient(180deg, 
        rgba(99, 102, 241, 0.05) 0%, 
        transparent 100%
    );
}

/* Pas d'effet sur les sections - très sobre */
body.page-notaire .section {
    background: transparent;
}

/* Juste un léger accent sur le formulaire */
body.page-notaire #inscription {
    background: linear-gradient(180deg, 
        transparent 0%, 
        rgba(99, 102, 241, 0.03) 50%,
        transparent 100%
    );
}

/* ============================================
   PAGE PARTENAIRE - Fond Réseau (STATIQUE)
   ============================================ */
body.page-partenaire {
    background: 
        radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(99, 102, 241, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(249, 115, 22, 0.03) 0%, transparent 50%),
        var(--bg-dark);
    background-attachment: fixed;
}

body.page-partenaire .section {
    background: transparent;
}

/* Effet de connexion sur certaines sections */
body.page-partenaire .section:nth-child(even)::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        transparent 40%, 
        rgba(99, 102, 241, 0.02) 50%, 
        transparent 60%
    );
    pointer-events: none;
}

/* ============================================
   PAGE CONTACT - Fond QUASI UNI (focus formulaire)
   ============================================ */
body.page-contact {
    background: 
        radial-gradient(ellipse 60% 40% at 50% 30%, rgba(99, 102, 241, 0.05) 0%, transparent 60%),
        var(--bg-dark);
}

body.page-contact .section {
    background: transparent;
}

/* ============================================
   PAGE BLOG - Fond UNI (focus lecture)
   ============================================ */
body.page-blog {
    background: linear-gradient(180deg, 
        rgba(15, 15, 30, 1) 0%, 
        var(--bg-dark) 300px
    );
}

body.page-blog .section {
    background: transparent;
}

/* ============================================
   PAGE À PROPOS - Fond UNI (focus lecture)
   ============================================ */
body.page-apropos {
    background: var(--bg-dark);
}

body.page-apropos .page-header {
    background: radial-gradient(ellipse 80% 60% at 50% 20%, 
        rgba(99, 102, 241, 0.06) 0%, 
        transparent 70%
    );
}

body.page-apropos .section {
    background: transparent;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-eyebrow {
    color: var(--accent);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.section-title {
    margin-bottom: 20px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.feature-card-full {
    grid-column: 1 / -1;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--border-radius-lg);
    padding: 32px;
    transition: var(--transition-medium);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-glow), transparent);
    opacity: 0;
    transition: var(--transition-medium);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.15);
}

.feature-card:hover::before {
    opacity: 0.1;
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 8px 24px var(--primary-glow);
}

.feature-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.feature-description {
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ============================================
   Stats Section
   ============================================ */
.stats {
    padding: var(--section-padding) 0;
    position: relative;
}

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

/* Section stats avec layout 2 colonnes + 1 pleine largeur */
.stats-2-columns .stats-grid {
    grid-template-columns: repeat(2, 1fr);
}

.stat-item-full {
    grid-column: 1 / -1;
}

.stat-item {
    padding: 40px 20px;
    border-radius: var(--border-radius-lg);
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    transition: var(--transition-medium);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(99, 102, 241, 0.1),
        transparent
    );
    transition: left 0.5s ease;
}

.stat-item:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 
        0 10px 40px rgba(99, 102, 241, 0.2),
        0 0 20px rgba(99, 102, 241, 0.1);
}

.stat-item:hover::before {
    left: 100%;
}

.stat-number {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4.5vw, 3.5rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================
   Testimonials Section
   ============================================ */
.testimonials {
    background: transparent;
    position: relative;
}

.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--border-radius-lg);
    padding: 32px;
    position: relative;
    transition: var(--transition-medium);
    overflow: hidden;
}

.testimonial-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.15);
}

.testimonial-quote {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 24px;
    font-style: italic;
    color: var(--text-secondary);
}

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

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

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
}

.testimonial-info h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

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

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
    text-align: center;
    padding: var(--section-padding) 0;
    position: relative;
}

.cta-box {
    background: linear-gradient(135deg, var(--bg-card), rgba(99, 102, 241, 0.08));
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--border-radius-xl);
    padding: 60px 40px;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.1);
}

/* CTA box sans ligne de séparation */

.cta-title {
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.cta-description {
    max-width: 600px;
    margin: 0 auto 32px;
    position: relative;
    z-index: 1;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: transparent;
    padding: 80px 0 30px;
    border-top: 1px solid var(--border-subtle);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand {
    max-width: 300px;
    justify-self: start;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 20px;
    text-align: center;
}

.footer-logo-image {
    width: 200px;
    height: 200px;
    display: block;
}

.footer-description {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.footer-social {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0 auto;
}

.social-link {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.social-link svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
    transition: var(--transition-fast);
}

/* Couleurs spécifiques par réseau social */
.social-link[aria-label="Facebook"] {
    color: #1877f2;
    background: rgba(24, 119, 242, 0.15);
    border-color: rgba(24, 119, 242, 0.3);
}

.social-link[aria-label="Instagram"] {
    color: #e4405f;
    background: rgba(228, 64, 95, 0.15);
    border-color: rgba(228, 64, 95, 0.3);
}

.social-link[aria-label="TikTok"] {
    color: #ffffff;
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.social-link[aria-label="YouTube"] {
    color: #ff0000;
    background: rgba(255, 0, 0, 0.15);
    border-color: rgba(255, 0, 0, 0.3);
}

.social-link[aria-label="X (Twitter)"] {
    color: #ffffff;
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.social-link:hover {
    transform: translateY(-3px);
    border-color: currentColor;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.social-link[aria-label="Facebook"]:hover {
    background: rgba(24, 119, 242, 0.3);
    border-color: #1877f2;
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.4);
}

.social-link[aria-label="Instagram"]:hover {
    background: rgba(228, 64, 95, 0.3);
    border-color: #e4405f;
    box-shadow: 0 4px 12px rgba(228, 64, 95, 0.4);
}

.social-link[aria-label="TikTok"]:hover {
    background: rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.social-link[aria-label="YouTube"]:hover {
    background: rgba(255, 0, 0, 0.3);
    border-color: #ff0000;
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.4);
}

.social-link[aria-label="X (Twitter)"]:hover {
    background: rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.footer-column h4 {
    font-size: 1rem;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    font-size: 0.95rem;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary-light);
    padding-left: 8px;
}

.footer-newsletter h4 {
    margin-bottom: 16px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-input {
    flex: 1;
    padding: 12px 16px;
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 20px var(--primary-glow);
}

.newsletter-input::placeholder {
    color: var(--text-muted);
}

.newsletter-btn {
    padding: 12px 20px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition-fast);
}

.newsletter-btn:hover {
    background: var(--primary-light);
}

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

.footer-copyright {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-legal a {
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

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

/* ============================================
   Page Header (pour les sous-pages)
   ============================================ */
.page-header {
    padding: 200px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.page-header::before {
    display: none;
}

.page-header::after {
    display: none;
}

.page-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 16px;
    position: relative;
}

.page-subtitle {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

/* ============================================
   Cards Grid
   ============================================ */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--border-radius-lg);
    padding: 32px;
    transition: var(--transition-medium);
}

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

/* ============================================
   Contact Form
   ============================================ */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

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

.form-label {
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 16px 20px;
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 20px var(--primary-glow);
}

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

/* Calcul contact : déblocage du bouton (côté client) */
.contact-calc {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(99, 102, 241, 0.03));
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: var(--border-radius);
    padding: 20px;
}

.contact-calc-box {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contact-calc-question {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.02em;
}

.contact-calc-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-calc-row .contact-calc-answer {
    flex: 1;
    max-width: 140px;
    font-size: 1.1rem;
    text-align: center;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.contact-calc-answer.contact-calc-ok {
    border-color: rgba(34, 197, 94, 0.5);
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.2);
}

.contact-calc-refresh {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    border-radius: var(--border-radius);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.contact-calc-refresh:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.4);
    color: var(--primary-light);
}

.contact-calc-refresh:active {
    transform: scale(0.96);
}

.contact-calc-refresh svg {
    transition: transform 0.3s ease;
}

.contact-calc-refresh:hover svg {
    transform: rotate(-180deg);
}

.contact-calc-hint {
    margin: 10px 0 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.contact-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (max-width: 480px) {
    .contact-calc-row .contact-calc-answer {
        max-width: 100%;
    }
}

/* ============================================
   Blog Cards
   ============================================ */
.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: var(--transition-medium);
}

.blog-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.blog-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--bg-card-hover), var(--bg-card));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.blog-content {
    padding: 24px;
}

.blog-meta {
    display: flex;
    gap: 16px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.blog-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.blog-excerpt {
    font-size: 0.95rem;
    line-height: 1.7;
}

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

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Animation classes pour JavaScript */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* ============================================
   Canvas Background (Horloge animée)
   ============================================ */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ============================================
   Glow Orbs - désactivés pour fond épuré
   ============================================ */
.glow-orb-container {
    display: none;
}

/* Pas de lignes de séparation - transitions progressives */

/* ============================================
   Glow Effects
   ============================================ */
.glow-primary {
    box-shadow: 0 0 40px var(--primary-glow);
}

.glow-accent {
    box-shadow: 0 0 40px var(--accent-glow);
}

.text-glow {
    text-shadow: 0 0 30px var(--primary-glow);
}

/* Effet néon sur les titres de section */
.section-title {
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
    box-shadow: 0 0 20px var(--primary-glow);
}

/* Pulse animation pour certains éléments */
.pulse-glow {
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 20px var(--primary-glow);
    }
    50% {
        box-shadow: 0 0 40px var(--primary-glow), 0 0 60px var(--primary-glow);
    }
}

/* Shimmer effect */
.shimmer {
    position: relative;
    overflow: hidden;
}

.shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 200%; }
}

/* ============================================
   Utility Classes
   ============================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mt-4 { margin-top: 40px; }
.mt-5 { margin-top: 50px; }

.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.mb-4 { margin-bottom: 40px; }
.mb-5 { margin-bottom: 50px; }

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   Responsive Design
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    
    .footer-brand {
        justify-self: center;
        text-align: center;
        align-items: center;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .hero-mockup {
        gap: 20px;
    }
    
    .mockup-device {
        width: 240px;
        height: 500px;
    }
}

/* Mobile Large - Menu mobile déroulant à partir de 1150px */
@media (max-width: 1150px) {
    .header-inner {
        position: relative !important;
    }
    
    .header .nav {
        display: none !important;
        position: absolute !important;
        top: calc(100% + 16px) !important;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) translateY(-15px) !important;
        width: calc(100% - 20px) !important;
        max-width: 380px !important;
        height: auto !important;
        max-height: calc(100vh - 150px) !important;
        overflow-y: auto !important;
        background: rgba(255, 255, 255, 0.97) !important;
        backdrop-filter: blur(25px) !important;
        -webkit-backdrop-filter: blur(25px) !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        gap: 4px !important;
        padding: 12px !important;
        border-radius: 24px !important;
        border: 1px solid rgba(99, 102, 241, 0.15) !important;
        box-shadow: 
            0 25px 80px rgba(0, 0, 0, 0.15),
            0 10px 40px rgba(99, 102, 241, 0.12),
            0 0 0 1px rgba(255, 255, 255, 0.8) inset !important;
        opacity: 0 !important;
        z-index: 1000 !important;
    }
    
    .header .nav.active {
        display: flex !important;
        transform: translateX(-50%) translateY(0) !important;
        opacity: 1 !important;
        animation: dropdownSlideIn 0.35s cubic-bezier(0.32, 0.72, 0, 1) forwards !important;
    }
    
    @keyframes dropdownSlideIn {
        from {
            opacity: 0;
            transform: translateX(-50%) translateY(-15px);
        }
        to {
            opacity: 1;
            transform: translateX(-50%) translateY(0);
        }
    }
    
    .header .nav .nav-link {
        display: flex !important;
        align-items: center !important;
        font-size: 1rem !important;
        padding: 14px 18px !important;
        border-radius: 14px !important;
        text-align: left !important;
        width: 100% !important;
        color: var(--bg-dark) !important;
        background: transparent !important;
        transition: all 0.2s ease !important;
        position: relative !important;
    }
    
    .header .nav .nav-link:hover {
        background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(99, 102, 241, 0.04)) !important;
        color: var(--primary) !important;
        transform: translateX(6px) !important;
    }
    
    .header .nav .nav-link.active {
        background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(99, 102, 241, 0.06)) !important;
        color: var(--primary) !important;
    }
    
    .header .nav .nav-link.active::after {
        display: none !important;
    }
    
    .header .nav .nav-cta {
        margin: 8px 0 0 0 !important;
        width: 100% !important;
        text-align: center !important;
        padding: 16px 20px !important;
        border-radius: 16px !important;
        font-size: 1rem !important;
        background: linear-gradient(135deg, var(--primary), var(--primary-dark)) !important;
    }
    
    /* Bouton Télécharger - visible uniquement en mobile */
    .nav-download-mobile {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 8px 0 0 0 !important;
        width: 100% !important;
        text-align: center !important;
        padding: 16px 20px !important;
        border-radius: 16px !important;
        font-size: 1rem !important;
        font-weight: 600 !important;
        background: linear-gradient(135deg, var(--primary), var(--primary-dark)) !important;
        color: white !important;
        box-shadow: 0 4px 16px var(--primary-glow) !important;
        transition: var(--transition-fast) !important;
    }
    
    .nav-download-mobile:hover {
        transform: translateY(-2px) !important;
        box-shadow: 0 8px 24px var(--primary-glow) !important;
        background: linear-gradient(135deg, var(--primary-light), var(--primary)) !important;
    }
    
    .menu-toggle {
        display: flex !important;
    }
}

@media (max-width: 768px) {
    .header {
        top: 20px;
        width: calc(100% - 30px);
    }
    
    .hero {
        padding-top: 140px;
    }
    
    .page-header {
        padding: 160px 0 60px;
    }
    
    .header-inner {
        padding: 12px 20px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-mockup {
        flex-direction: column;
        align-items: center;
    }
    
    .mockup-device:nth-child(2) {
        transform: scale(1);
    }
    
    .mockup-device {
        width: 260px;
        height: 540px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-brand {
        justify-self: center;
        text-align: center;
        align-items: center;
        max-width: 100%;
    }
    
    .footer-logo {
        justify-content: center;
        margin-left: auto;
        margin-right: auto;
    }
    
    .footer-social {
        justify-content: center;
        margin-left: auto;
        margin-right: auto;
    }
    
    .footer-column {
        text-align: center;
    }
    
    .footer-column h4 {
        text-align: center;
    }
    
    .footer-links {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-links li {
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .testimonials-slider {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile Small */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .hero {
        padding-top: 100px;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .mockup-device {
        width: 220px;
        height: 460px;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .header,
    .footer,
    #particles-js {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .section {
        page-break-inside: avoid;
    }
}

/* ============================================
   Accessibility
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Focus styles */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 4px;
}

/* Skip link - caché par défaut, visible au focus clavier */
.skip-link {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 12px 24px;
    border-radius: 0 0 12px 12px;
    z-index: 9999;
    transition: var(--transition-fast);
    opacity: 0;
    pointer-events: none;
}

.skip-link:focus {
    top: 0;
    opacity: 1;
    pointer-events: auto;
}

/* === CAROUSEL: supprimer toutes couches de fond / overlays === */
.app-carousel-section,
/* Carousel: enlever les fonds UNIQUEMENT des wrappers (sans toucher au spotlight) */
.app-carousel-section,
.app-carousel-container,
.app-carousel,
.app-carousel-track,
.app-carousel-item,
.app-carousel-item .scene {
    background: transparent !important;
    background-image: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.app-carousel-item .threed-object {
    background: transparent !important;
    background-image: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* On garde le glass-base avec ses effets */
.app-carousel-section .glass-base {
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    box-shadow: 0 30px 60px -10px rgba(0, 0, 0, 0.8) !important;
}

/* IMPORTANT : Exception explicite pour le spotlight-layer - il DOIT avoir background + filter */
.app-carousel-item .spotlight-layer {
    background: radial-gradient(800px circle at 50% 50%, var(--spot-color, #6366f1), transparent 60%) !important;
    background-image: none !important;
    filter: blur(40px) !important;
    -webkit-filter: blur(40px) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* Empêche les "bandes" dues au placeholder */
.mockup-placeholder {
    background: transparent !important;
}

/* Effet hover pour l'image de l'interface notaire */
div[style*="interface-notaire-heirion"] {
    cursor: pointer;
}

div[style*="interface-notaire-heirion"]:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 32px 100px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.12), 0 0 60px rgba(99, 102, 241, 0.2) !important;
}

div[style*="interface-notaire-heirion"]:hover img {
    transform: scale(1.02);
}

div[style*="interface-notaire-heirion"]:hover > div[style*="position: absolute"] {
    opacity: 0.6 !important;
}
