/* ==========================================================================
   FIRESTOP — Industrial Safety Refined
   Direction esthétique : Apple x ABB Schneider Electric x Bauhaus industriel
   ========================================================================== */

:root {
    /* Palette principale */
    --color-bg: #0a0a0a;
    --color-bg-alt: #111111;
    --color-surface: #1a1a1a;
    --color-surface-2: #222222;
    --color-text: #f5f5f5;
    --color-text-muted: #a0a0a0;
    --color-text-dim: #707070;
    --color-border: #2a2a2a;
    --color-border-strong: #3a3a3a;
    
    /* Couleurs sécurité */
    --color-red: #DC2626;
    --color-red-bright: #EF4444;
    --color-red-deep: #991B1B;
    --color-orange: #F97316;
    --color-amber: #FBBF24;
    
    /* Accents */
    --color-gold: #D4A574;
    --color-gold-bright: #E8BC85;
    --color-blue: #3B82F6;
    --color-green: #10B981;
    
    /* Typography */
    --font-display: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;
    --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;
    
    /* Container */
    --container-max: 1280px;
    
    /* Transitions */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.4);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.5);
    --shadow-red: 0 4px 30px rgba(220, 38, 38, 0.3);
    --shadow-glow-red: 0 0 60px rgba(220, 38, 38, 0.4);
}

/* Reset et base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    font-weight: 400;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Texture subtile sur le body */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(220, 38, 38, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(59, 130, 246, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

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

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

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

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* ============================ TYPOGRAPHY ============================ */

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

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h4 { font-size: 1.25rem; }

.mono {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    letter-spacing: 0.05em;
}

.eyebrow {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-red-bright);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: var(--space-md);
}

.eyebrow::before {
    content: '';
    width: 32px;
    height: 1px;
    background: var(--color-red-bright);
    display: inline-block;
}

.text-muted { color: var(--color-text-muted); }
.text-dim { color: var(--color-text-dim); }
.text-accent { color: var(--color-red-bright); }
.text-gold { color: var(--color-gold); }

/* ============================ BUTTONS ============================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1.75rem;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.9375rem;
    letter-spacing: 0.01em;
    border-radius: 4px;
    transition: var(--transition);
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn-sm {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1.25rem 2.25rem;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background: var(--color-red-bright);
    box-shadow: var(--shadow-glow-red);
    transform: translateY(-1px);
}

.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.btn-primary:hover::after {
    transform: translateX(100%);
}

.btn-outline {
    background: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-border-strong);
}

.btn-outline:hover {
    border-color: var(--color-red-bright);
    color: var(--color-red-bright);
}

.btn-ghost {
    background: transparent;
    color: var(--color-text-muted);
}

.btn-ghost:hover {
    color: var(--color-text);
}

.btn svg {
    width: 18px;
    height: 18px;
}

/* ============================ TOP BAR & HEADER ============================ */

.topbar {
    background: var(--color-red-deep);
    color: white;
    font-size: 0.8125rem;
    padding: 0.5rem 0;
}

.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.topbar-text {
    font-weight: 500;
}

.topbar-phone {
    font-family: var(--font-mono);
    font-weight: 500;
    color: white;
}

.topbar-phone:hover {
    color: var(--color-amber);
}

.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem var(--space-md);
    gap: var(--space-lg);
}

.logo {
    display: inline-flex;
    align-items: baseline;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.04em;
    color: var(--color-text);
}

.logo-mark { color: var(--color-text); }
.logo-mark-alt { color: var(--color-red); }
.logo-sub {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-text-dim);
    margin-left: 0.25rem;
    font-family: var(--font-mono);
}

.logo-footer .logo-mark-alt {
    color: var(--color-red-bright);
}

.nav {
    display: flex;
    gap: var(--space-lg);
    align-items: center;
}

.nav-link {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-text-muted);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover {
    color: var(--color-text);
}

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

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--color-red);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-text);
    transition: var(--transition);
}

/* ============================ HERO ============================ */

.hero {
    position: relative;
    padding: var(--space-2xl) 0 var(--space-xl);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: var(--space-xl);
    align-items: center;
}

.hero-text {
    position: relative;
    z-index: 2;
}

.hero h1 {
    margin-bottom: var(--space-md);
}

.hero h1 .accent {
    color: var(--color-red-bright);
    position: relative;
    display: inline-block;
}

.hero h1 .accent::after {
    content: '';
    position: absolute;
    bottom: 0.05em;
    left: 0;
    right: 0;
    height: 0.15em;
    background: var(--color-red);
    z-index: -1;
    opacity: 0.3;
}

.hero-lead {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-lg);
    max-width: 540px;
    line-height: 1.5;
}

.hero-actions {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
    margin-bottom: var(--space-lg);
}

.hero-meta {
    display: flex;
    gap: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--color-border);
    flex-wrap: wrap;
}

.hero-meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.hero-meta-value {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
}

.hero-meta-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--color-text-dim);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Hero visuel (boîtier produit illustré CSS) */
.hero-visual {
    position: relative;
    aspect-ratio: 1;
    max-width: 520px;
    margin-left: auto;
}

.hero-product {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Grille technique en arrière-plan */
.hero-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    border-radius: 12px;
}

.hero-visual::after {
    content: '';
    position: absolute;
    inset: 20%;
    background: radial-gradient(circle, rgba(220, 38, 38, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(40px);
    z-index: 0;
}

/* Box produit (placeholder pour quand tu n'as pas encore l'image) */
.product-box {
    position: relative;
    width: 60%;
    aspect-ratio: 0.85;
    background: linear-gradient(135deg, #DC2626 0%, #991B1B 100%);
    border-radius: 4px;
    box-shadow: 
        0 30px 60px rgba(0,0,0,0.5),
        0 0 80px rgba(220, 38, 38, 0.3),
        inset 0 2px 0 rgba(255,255,255,0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.5rem;
    z-index: 2;
    transform: rotate(-5deg);
    transition: transform var(--transition-slow);
}

.hero-visual:hover .product-box {
    transform: rotate(-3deg) scale(1.02);
}

.product-box-brand {
    font-family: var(--font-display);
    font-weight: 800;
    color: white;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
}

.product-box-flame {
    align-self: center;
    width: 60px;
    height: 60px;
    color: rgba(255,255,255,0.9);
}

.product-box-spec {
    font-family: var(--font-mono);
    font-size: 0.625rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.4;
}

/* Câbles latéraux */
.product-cable {
    position: absolute;
    width: 30%;
    height: 8px;
    background: linear-gradient(to right, transparent, #3B82F6 20%, #3B82F6 80%, transparent);
    top: 35%;
}

.product-cable.left { left: -10%; }
.product-cable.right { right: -10%; }

/* Spec floating cards */
.spec-card {
    position: absolute;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--color-text);
    box-shadow: var(--shadow-md);
    z-index: 3;
    animation: floatCard 6s ease-in-out infinite;
}

.spec-card.s1 { top: 10%; right: 5%; }
.spec-card.s2 { bottom: 15%; left: 0; animation-delay: 1s; }
.spec-card.s3 { top: 50%; right: -5%; animation-delay: 2s; }

.spec-card-label {
    color: var(--color-text-dim);
    margin-bottom: 0.25rem;
    font-size: 0.6875rem;
}

.spec-card-value {
    color: var(--color-red-bright);
    font-weight: 700;
}

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

/* ============================ SECTIONS ============================ */

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

.section-header {
    max-width: 720px;
    margin: 0 auto var(--space-xl);
    text-align: center;
}

.section-header.left {
    margin-left: 0;
    text-align: left;
}

.section-header h2 {
    margin-bottom: var(--space-md);
}

.section-lead {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* ============================ PROBLÈME (stats) ============================ */

.problem-section {
    background: var(--color-bg-alt);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1px;
    background: var(--color-border);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
}

.stat-card {
    background: var(--color-bg-alt);
    padding: var(--space-lg);
    transition: var(--transition);
}

.stat-card:hover {
    background: var(--color-surface);
}

.stat-value {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--color-red-bright);
    line-height: 1;
    margin-bottom: var(--space-xs);
    letter-spacing: -0.04em;
}

.stat-unit {
    font-size: 1.5rem;
    color: var(--color-red);
}

.stat-label {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-sm);
}

.stat-desc {
    font-size: 0.9375rem;
    color: var(--color-text-dim);
    line-height: 1.5;
}

/* ============================ FONCTIONNEMENT (3 étapes) ============================ */

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    position: relative;
}

.steps-grid::before {
    content: '';
    position: absolute;
    top: 50px;
    left: 8%;
    right: 8%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--color-border-strong) 20%, var(--color-border-strong) 80%, transparent);
    z-index: 0;
}

.step-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: var(--space-lg);
    position: relative;
    transition: var(--transition);
    z-index: 1;
}

.step-card:hover {
    border-color: var(--color-red-deep);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-bg);
    border: 2px solid var(--color-red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--color-red-bright);
    font-size: 1.25rem;
    margin-bottom: var(--space-md);
}

.step-icon {
    width: 40px;
    height: 40px;
    color: var(--color-text-muted);
    margin-bottom: var(--space-sm);
}

.step-title {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
    color: var(--color-text);
}

.step-desc {
    color: var(--color-text-muted);
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* ============================ PRODUIT DÉTAIL ============================ */

.product-section {
    background: var(--color-bg);
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: start;
}

.product-info h2 {
    margin-bottom: var(--space-md);
}

.product-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--color-border);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    overflow: hidden;
    margin: var(--space-lg) 0;
}

.product-spec {
    background: var(--color-surface);
    padding: var(--space-sm) var(--space-md);
}

.product-spec-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--color-text-dim);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.product-spec-value {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--color-text);
    font-size: 0.9375rem;
}

.price-block {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: var(--space-lg);
    margin: var(--space-lg) 0;
}

.price-current {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-text);
    line-height: 1;
}

.price-currency {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-left: 0.25rem;
}

.price-note {
    color: var(--color-text-muted);
    font-size: 0.875rem;
    margin-top: var(--space-xs);
}

/* Packs/Bundles */
.packs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-md);
    margin: var(--space-lg) 0;
}

.pack-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: var(--space-lg);
    text-align: center;
    transition: var(--transition);
    position: relative;
    cursor: pointer;
}

.pack-card.featured {
    border-color: var(--color-red);
    box-shadow: 0 0 30px rgba(220, 38, 38, 0.15);
}

.pack-card.featured::before {
    content: 'POPULAIRE';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-red);
    color: white;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: 0.1em;
}

.pack-card:hover {
    border-color: var(--color-red-bright);
    transform: translateY(-2px);
}

.pack-units {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--color-text-dim);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-xs);
}

.pack-title {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
}

.pack-price {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-red-bright);
    margin-bottom: var(--space-xs);
}

.pack-old-price {
    font-size: 0.9375rem;
    color: var(--color-text-dim);
    text-decoration: line-through;
    margin-bottom: var(--space-sm);
}

.pack-save {
    display: inline-block;
    background: rgba(16, 185, 129, 0.15);
    color: var(--color-green);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 0.25rem 0.625rem;
    border-radius: 4px;
    font-weight: 600;
}

/* ============================ USES (cas d'usage) ============================ */

.uses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-md);
}

.use-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: var(--space-lg);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.use-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-red), var(--color-orange));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.use-card:hover::before {
    transform: scaleX(1);
}

.use-card:hover {
    border-color: var(--color-border-strong);
    transform: translateY(-2px);
}

.use-icon {
    width: 36px;
    height: 36px;
    color: var(--color-red-bright);
    margin-bottom: var(--space-md);
}

.use-title {
    font-size: 1.125rem;
    margin-bottom: var(--space-sm);
}

.use-desc {
    color: var(--color-text-muted);
    font-size: 0.9375rem;
}

/* ============================ FAQ ============================ */

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-md) 0;
}

.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    color: var(--color-text);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.125rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-sm) 0;
}

.faq-question::after {
    content: '+';
    color: var(--color-red-bright);
    font-size: 1.5rem;
    font-weight: 300;
    transition: var(--transition);
    flex-shrink: 0;
}

.faq-item.open .faq-question::after {
    transform: rotate(45deg);
}

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

.faq-item.open .faq-answer {
    max-height: 500px;
    padding-bottom: var(--space-md);
}

.faq-answer p {
    margin-bottom: var(--space-sm);
    line-height: 1.7;
}

/* ============================ FORMULAIRE ============================ */

.form-section {
    background: var(--color-bg-alt);
    border-top: 1px solid var(--color-border);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: start;
}

.form-info h2 {
    margin-bottom: var(--space-md);
}

.form-benefits {
    list-style: none;
    margin-top: var(--space-lg);
}

.form-benefits li {
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--color-text-muted);
}

.form-benefits li::before {
    content: '✓';
    color: var(--color-green);
    font-weight: 700;
    flex-shrink: 0;
}

.order-form {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: var(--space-lg);
}

.form-group {
    margin-bottom: var(--space-md);
}

.form-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    background: var(--color-bg);
    border: 1px solid var(--color-border-strong);
    color: var(--color-text);
    padding: 0.875rem 1rem;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-red-bright);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}

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

.form-submit {
    width: 100%;
    padding: 1.125rem;
    font-size: 1rem;
}

.form-disclaimer {
    text-align: center;
    color: var(--color-text-dim);
    font-size: 0.8125rem;
    margin-top: var(--space-md);
}

.form-success,
.form-error {
    padding: var(--space-md);
    border-radius: 6px;
    margin-bottom: var(--space-md);
    font-size: 0.9375rem;
}

.form-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--color-green);
    color: var(--color-green);
}

.form-error {
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid var(--color-red);
    color: var(--color-red-bright);
}

/* ============================ CTA BANNER ============================ */

.cta-banner {
    background: linear-gradient(135deg, var(--color-red-deep) 0%, var(--color-red) 100%);
    padding: var(--space-xl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 30px 30px;
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
}

.cta-content h2 {
    color: white;
    margin-bottom: var(--space-md);
}

.cta-content p {
    color: rgba(255,255,255,0.9);
    font-size: 1.125rem;
    margin-bottom: var(--space-lg);
}

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

.cta-banner .btn-primary:hover {
    background: var(--color-bg);
    color: var(--color-red-bright);
}

/* ============================ FOOTER ============================ */

.footer {
    background: var(--color-bg-alt);
    border-top: 1px solid var(--color-border);
    padding: var(--space-xl) 0 var(--space-md);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.footer-tagline {
    color: var(--color-text-muted);
    margin: var(--space-md) 0;
    line-height: 1.6;
    font-size: 0.9375rem;
}

.cert-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: var(--space-md);
}

.cert-badge {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    padding: 0.375rem 0.75rem;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.footer-title {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text);
    margin-bottom: var(--space-md);
}

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

.footer-links li {
    margin-bottom: var(--space-xs);
}

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

.footer-links a:hover {
    color: var(--color-red-bright);
}

.footer-bottom {
    border-top: 1px solid var(--color-border);
    padding-top: var(--space-md);
    color: var(--color-text-dim);
    font-size: 0.8125rem;
    display: flex;
    justify-content: space-between;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.footer-disclaimer {
    font-style: italic;
}

/* ============================ WHATSAPP FLOAT ============================ */

.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #25D366;
    color: white;
    padding: 0.875rem 1.25rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.9375rem;
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
    z-index: 90;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 40px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
    width: 22px;
    height: 22px;
}

/* ============================ ANIMATIONS ============================ */

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

.fade-in {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.fade-in-delay-1 { animation-delay: 0.1s; }
.fade-in-delay-2 { animation-delay: 0.2s; }
.fade-in-delay-3 { animation-delay: 0.3s; }
.fade-in-delay-4 { animation-delay: 0.4s; }

/* ============================ RESPONSIVE ============================ */

@media (max-width: 1024px) {
    .hero-grid,
    .product-grid,
    .form-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .steps-grid::before { display: none; }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav,
    .header .btn {
        display: none;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .nav.open {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--color-bg-alt);
        border-bottom: 1px solid var(--color-border);
        padding: var(--space-md);
        gap: 0;
    }
    
    .nav.open .nav-link {
        padding: var(--space-sm) 0;
        border-bottom: 1px solid var(--color-border);
        width: 100%;
    }
    
    .hero {
        padding: var(--space-xl) 0;
    }
    
    .section {
        padding: var(--space-xl) 0;
    }
    
    .hero-meta {
        gap: var(--space-md);
    }
    
    .product-specs {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .topbar-inner {
        justify-content: center;
        text-align: center;
    }
    
    .topbar-phone {
        display: none;
    }
    
    .whatsapp-float span {
        display: none;
    }
    
    .whatsapp-float {
        padding: 1rem;
        border-radius: 50%;
    }
    
    .spec-card.s3 { right: -15px; }
}

@media (max-width: 480px) {
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.75rem; }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .stat-value {
        font-size: 2.5rem;
    }
}

/* ==========================================================================
   AJOUTS V2 : Switcher langue, vidéo hero, affiche intégrée
   ========================================================================== */

/* Top bar enhancements */
.topbar-right {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Language switcher */
.lang-switcher {
    display: flex;
    gap: 2px;
    background: rgba(0, 0, 0, 0.3);
    padding: 2px;
    border-radius: 4px;
}

.lang-link {
    color: rgba(255, 255, 255, 0.7);
    padding: 2px 8px;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 3px;
    font-family: var(--font-mono);
    letter-spacing: 0.05em;
    transition: var(--transition-fast);
}

.lang-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.lang-link.active {
    background: white;
    color: var(--color-red-deep);
}

/* Hero video container - remplace le boîtier illustré CSS */
.hero-video {
    position: relative;
    aspect-ratio: 1;
    max-width: 520px;
    margin-left: auto;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--color-border-strong);
    box-shadow: 0 30px 60px rgba(0,0,0,0.6), 0 0 80px rgba(220, 38, 38, 0.2);
}

.hero-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Mask le bandeau noir du logo enlevé en haut gauche */
.hero-video::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 35%;
    height: 18%;
    background: linear-gradient(135deg, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.8) 70%, transparent 100%);
    z-index: 2;
    pointer-events: none;
}

/* Overlay sur la vidéo : badge "DÉMO RÉELLE" */
.hero-video-badge {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background: rgba(220, 38, 38, 0.95);
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 6px;
}

.hero-video-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

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

/* Section affiche intégrée */
.poster-section {
    background: var(--color-bg);
    padding: var(--space-2xl) 0;
}

.poster-frame {
    max-width: 720px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0,0,0,0.5), 0 0 100px rgba(220, 38, 38, 0.15);
    border: 1px solid var(--color-border-strong);
}

.poster-frame img {
    width: 100%;
    display: block;
}

/* Section avec video complète en page Fonctionnement */
.demo-video-container {
    max-width: 800px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
}

.demo-video-container video {
    width: 100%;
    display: block;
}

/* Image produit page produit */
.product-hero-image {
    background: linear-gradient(135deg, rgba(255,255,255,0.02), rgba(255,255,255,0.04));
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 2rem;
    aspect-ratio: 0.85;
    max-width: 520px;
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-hero-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Page horizontale (affiche2) sur fonctionnement */
.horizontal-poster {
    max-width: 1000px;
    margin: var(--space-xl) auto;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--color-border-strong);
    box-shadow: 0 30px 60px rgba(0,0,0,0.4);
}

.horizontal-poster img {
    width: 100%;
    display: block;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-video {
        max-width: 100%;
        margin: 0 auto;
    }
    .product-hero-image {
        max-width: 100%;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .topbar-text {
        font-size: 0.7rem;
    }
    .lang-switcher {
        padding: 1px;
    }
    .lang-link {
        padding: 2px 6px;
        font-size: 0.65rem;
    }
}

@media (max-width: 480px) {
    .topbar-inner {
        gap: 0.5rem;
    }
    .topbar-text {
        font-size: 0.65rem;
        line-height: 1.3;
    }
}

/* ==========================================================================
   AJOUT v2.1 : Schéma technique propre (remplace photo Alibaba)
   ========================================================================== */

.product-tech-card {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.04) 0%, rgba(0, 0, 0, 0.4) 100%);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    aspect-ratio: 0.85;
    max-width: 520px;
    margin-left: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.product-tech-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
}

.tech-badge {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--color-red-bright);
    letter-spacing: 0.15em;
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.3);
    padding: 6px 12px;
    border-radius: 4px;
    z-index: 2;
}

.tech-device {
    position: relative;
    width: 75%;
    aspect-ratio: 1.17;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.tech-box {
    position: relative;
    width: 70%;
    aspect-ratio: 1.17;
    background: linear-gradient(135deg, #DC2626 0%, #991B1B 100%);
    border-radius: 6px;
    box-shadow: 
        0 25px 50px rgba(0,0,0,0.5),
        0 0 60px rgba(220, 38, 38, 0.25),
        inset 0 2px 0 rgba(255,255,255,0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1rem;
    border: 1px solid rgba(0, 0, 0, 0.3);
    transform: rotate(-2deg);
    transition: transform 0.5s ease;
}

.product-tech-card:hover .tech-box {
    transform: rotate(0deg) scale(1.02);
}

.tech-box-top {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1rem;
    color: white;
    letter-spacing: 0.08em;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.tech-box-mid {
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tech-line {
    font-family: var(--font-mono);
    font-size: 0.625rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    letter-spacing: 0.02em;
}

.tech-box-warn {
    background: #F0B030;
    color: #000;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 700;
}

.tech-cable {
    position: absolute;
    width: 28%;
    height: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(to right, transparent, #3B82F6 15%, #3B82F6 85%, transparent);
    border-radius: 3px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.tech-cable.left {
    left: -8%;
}

.tech-cable.right {
    right: -8%;
}

.tech-cable.left::before,
.tech-cable.right::before {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    background: #DC2626;
    border-radius: 3px;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

.tech-cable.left::before {
    left: -7px;
}

.tech-cable.right::before {
    right: -7px;
}

.tech-dim {
    position: absolute;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--color-text-muted);
    background: var(--color-bg-alt);
    padding: 3px 8px;
    border-radius: 3px;
    border: 1px solid var(--color-border);
}

.tech-dim-h {
    bottom: -10%;
    left: 50%;
    transform: translateX(-50%);
}

.tech-dim-v {
    top: 50%;
    left: -25%;
    transform: translateY(-50%);
}

.tech-dim-d {
    top: 5%;
    right: -25%;
}

.tech-certs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    z-index: 2;
}

.tech-cert {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: var(--color-text-muted);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    padding: 4px 10px;
    border-radius: 3px;
    letter-spacing: 0.05em;
}

@media (max-width: 1024px) {
    .product-tech-card {
        max-width: 100%;
        margin: 0 auto;
    }
    .tech-dim-v { left: -10%; }
    .tech-dim-d { right: -10%; }
}

@media (max-width: 480px) {
    .product-tech-card {
        padding: 2rem 1rem;
        aspect-ratio: 1;
    }
    .tech-dim-v, .tech-dim-d { display: none; }
}
