/* ========================================
   VOLET ISOLANT - DESIGN SYSTEM v2.0
   "L'Ingénieur-Artisan"
   ======================================== */

/* ========================================
   FONTS (Google Fonts)
   ======================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Montserrat:wght@600;700;800&display=swap');

/* ========================================
   CSS CUSTOM PROPERTIES
   ======================================== */
:root {
    /* Primary Colors */
    --primary: #e66f18;
    --primary-light: #ff8a3d;
    --primary-dark: #c55a10;
    --primary-subtle: rgba(230, 111, 24, 0.08);
    --primary-glow: rgba(230, 111, 24, 0.25);

    /* Secondary Colors */
    --secondary: #125a9c;
    --secondary-light: #1a7bd4;
    --secondary-dark: #0d4275;
    --secondary-subtle: rgba(18, 90, 156, 0.08);

    /* Accent Colors */
    --accent-green: #10b981;
    --accent-green-light: #34d399;
    --accent-green-subtle: rgba(16, 185, 129, 0.1);
    --accent-red: #ef4444;
    --accent-yellow: #f59e0b;

    /* Neutral Colors */
    --dark: #1a1a2e;
    --dark-soft: #2d2d44;
    --text: #1F2937;
    --text-light: #6B7280;
    --text-muted: #9CA3AF;
    --bg: #FFFFFF;
    --bg-alt: #F9FAFB;
    --bg-warm: #FFFBF7;
    --border: #E5E7EB;
    --border-light: #F3F4F6;

    /* Typography */
    --font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Font Sizes */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;

    /* Layout */
    --max-width: 1200px;
    --max-width-narrow: 900px;
    --max-width-wide: 1400px;

    /* Border Radius */
    --radius-sm: 6px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 8px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-primary: 0 10px 40px -10px rgba(230, 111, 24, 0.4);
    --shadow-secondary: 0 10px 40px -10px rgba(18, 90, 156, 0.3);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition: 250ms ease;
    --transition-slow: 400ms ease;
    --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Z-index */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal: 400;
    --z-tooltip: 500;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--text);
    background-color: var(--bg);
    overflow-x: hidden;
}

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

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

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

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

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

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

/* ========================================
   TYPOGRAPHY
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark);
}

h1 {
    font-size: clamp(2rem, 5vw, var(--text-5xl));
    font-weight: 800;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(1.5rem, 4vw, var(--text-4xl));
    font-weight: 700;
    letter-spacing: -0.01em;
}

h3 {
    font-size: var(--text-2xl);
}

h4 {
    font-size: var(--text-xl);
}

p {
    margin-bottom: var(--space-4);
}

.lead {
    font-size: var(--text-xl);
    color: var(--text-light);
    line-height: 1.7;
}

strong {
    font-weight: 600;
    color: var(--dark);
}

/* ========================================
   LAYOUT
   ======================================== */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.container-narrow {
    max-width: var(--max-width-narrow);
}

.container-wide {
    max-width: var(--max-width-wide);
}

.section {
    padding: var(--space-20) 0;
}

.section-sm {
    padding: var(--space-12) 0;
}

.section-lg {
    padding: var(--space-24) 0;
}

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

.header.scrolled {
    box-shadow: var(--shadow);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    text-decoration: none;
}

.logo-img {
    height: 42px;
    width: auto;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--dark);
    transition: color var(--transition-fast);
}

.logo:hover .logo-text {
    color: var(--primary);
}

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

.nav-links {
    display: flex;
    gap: var(--space-6);
    list-style: none;
}

.nav-link {
    font-weight: 500;
    color: var(--text);
    padding: var(--space-2) 0;
    position: relative;
}

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

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

.nav-link:hover::after {
    width: 100%;
}

.header-cta {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

/* Phone Button */
.btn-phone {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    font-weight: 600;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-primary);
    transition: all var(--transition);
}

.btn-phone:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px -10px rgba(230, 111, 24, 0.5);
    color: white;
}

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

/* Mobile Menu Button */
.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    transition: background var(--transition-fast);
}

.menu-toggle:hover {
    background: var(--bg-alt);
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--dark);
    position: relative;
    transition: background var(--transition-fast);
}

.menu-toggle span::before,
.menu-toggle span::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--dark);
    transition: transform var(--transition);
}

.menu-toggle span::before {
    top: -7px;
}

.menu-toggle span::after {
    bottom: -7px;
}

/* ========================================
   HERO SECTION - "La Révélation Thermique"
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 72px;
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-soft) 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(230, 111, 24, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(18, 90, 156, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: var(--space-8);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: var(--space-8);
    margin-bottom: var(--space-8);
    flex-wrap: wrap;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-6) var(--space-8);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-stat:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.hero-stat-loss {
    background: rgba(220, 53, 69, 0.15);
    border-color: rgba(220, 53, 69, 0.3);
}

.hero-stat-savings {
    background: rgba(40, 167, 69, 0.15);
    border-color: rgba(40, 167, 69, 0.3);
}

.hero-stat-amount {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1;
}

.hero-stat-loss .hero-stat-amount {
    color: #ff6b6b;
}

.hero-stat-savings .hero-stat-amount {
    color: #51cf66;
}

.hero-stat-currency {
    font-size: 0.5em;
    font-weight: 600;
    margin-left: 0.1em;
}

.hero-stat-label {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.8);
    margin-top: var(--space-2);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (max-width: 640px) {
    .hero-stats {
        gap: var(--space-4);
    }

    .hero-stat {
        padding: var(--space-4) var(--space-6);
        flex: 1;
        min-width: 140px;
    }
}

/* Shutter Animation Container */
.shutter-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto var(--space-12);
    perspective: 1000px;
}

.shutter-frame {
    position: relative;
    background: linear-gradient(180deg, #3a3a3a 0%, #2a2a2a 100%);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    box-shadow:
        inset 0 2px 4px rgba(255,255,255,0.1),
        0 20px 60px rgba(0,0,0,0.5);
}

.shutter-slats {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--secondary);
}

.shutter-slat {
    height: 40px;
    background: linear-gradient(180deg,
        #f5f5f5 0%,
        #e0e0e0 50%,
        #d0d0d0 100%
    );
    border-bottom: 1px solid #bbb;
    transform-origin: center top;
    transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    z-index: 1;
}

.shutter-slat::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255,255,255,0.3) 0%, transparent 100%);
}

/* Shutter Open State */
.shutter-container.open .shutter-slat {
    transform: rotateX(-75deg);
}

.shutter-container.open .shutter-slat:nth-child(1) { transition-delay: 0s; }
.shutter-container.open .shutter-slat:nth-child(2) { transition-delay: 0.05s; }
.shutter-container.open .shutter-slat:nth-child(3) { transition-delay: 0.1s; }
.shutter-container.open .shutter-slat:nth-child(4) { transition-delay: 0.15s; }
.shutter-container.open .shutter-slat:nth-child(5) { transition-delay: 0.2s; }
.shutter-container.open .shutter-slat:nth-child(6) { transition-delay: 0.25s; }

/* Content revealed behind shutters */
.shutter-reveal {
    position: absolute;
    top: var(--space-6);
    left: var(--space-6);
    right: var(--space-6);
    bottom: var(--space-6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
    border-radius: var(--radius);
    padding: var(--space-8);
    opacity: 0;
    transition: opacity 0.5s ease 0.3s;
}

.shutter-container.open .shutter-reveal {
    opacity: 1;
}

.reveal-amount {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 800;
    color: white;
    line-height: 1;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.reveal-amount .currency {
    font-size: 0.5em;
    opacity: 0.8;
}

.reveal-label {
    font-size: var(--text-lg);
    color: rgba(255,255,255,0.8);
    margin-top: var(--space-2);
}

/* Savings display */
.savings-display {
    margin-top: var(--space-4);
    padding: var(--space-3) var(--space-6);
    background: var(--accent-green);
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}

.savings-display .amount {
    font-weight: 700;
    color: white;
    font-size: var(--text-xl);
}

.savings-display .label {
    color: rgba(255,255,255,0.9);
    font-size: var(--text-sm);
}

/* Hero Text */
.hero-tagline {
    display: inline-block;
    padding: var(--space-2) var(--space-4);
    background: var(--primary-subtle);
    border: 1px solid rgba(230, 111, 24, 0.2);
    border-radius: var(--radius-full);
    color: var(--primary-light);
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-6);
}

.hero-title {
    color: white;
    margin-bottom: var(--space-6);
}

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

.hero-description {
    font-size: var(--text-xl);
    color: rgba(255,255,255,0.7);
    max-width: 600px;
    margin: 0 auto var(--space-8);
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    justify-content: center;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-8);
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: 600;
    border-radius: var(--radius);
    transition: all var(--transition);
    cursor: pointer;
    text-decoration: none;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px -10px rgba(230, 111, 24, 0.5);
    color: white;
}

.btn-secondary {
    background: white;
    color: var(--dark);
    box-shadow: var(--shadow);
}

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

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
}

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

.btn-lg {
    padding: var(--space-5) var(--space-10);
    font-size: var(--text-lg);
}

.btn-icon {
    width: 20px;
    height: 20px;
}

/* ========================================
   SOLUTION SECTION
   ======================================== */
.solution-section {
    background: var(--bg);
    position: relative;
}

.solution-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
}

.solution-visual {
    position: relative;
}

.solution-diagram {
    position: relative;
    background: linear-gradient(135deg, var(--bg-alt) 0%, white 100%);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    box-shadow: var(--shadow-lg);
}

.diagram-layers {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.diagram-layer {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-4);
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.diagram-layer:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
    transform: translateX(8px);
}

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

.layer-content h4 {
    font-size: var(--text-base);
    margin-bottom: var(--space-1);
}

.layer-content p {
    font-size: var(--text-sm);
    color: var(--text-light);
    margin: 0;
}

.solution-content {
    max-width: 500px;
}

.section-label {
    display: inline-block;
    padding: var(--space-2) var(--space-4);
    background: var(--primary-subtle);
    border-radius: var(--radius-full);
    color: var(--primary);
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-4);
}

.solution-content h2 {
    margin-bottom: var(--space-6);
}

.solution-content p {
    color: var(--text-light);
    font-size: var(--text-lg);
    line-height: 1.8;
}

.solution-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
    margin-top: var(--space-8);
    padding-top: var(--space-8);
    border-top: 1px solid var(--border);
}

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

.stat-value {
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.stat-label {
    font-size: var(--text-sm);
    color: var(--text-light);
    margin-top: var(--space-2);
}

/* ========================================
   PROOF SECTION (Testimonials + Stats)
   ======================================== */
.proof-section {
    background: var(--bg-alt);
    position: relative;
    overflow: hidden;
}

.proof-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary-subtle) 0%, transparent 70%);
    pointer-events: none;
}

.proof-header {
    text-align: center;
    margin-bottom: var(--space-16);
}

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

/* Big Stats */
.big-stats {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.big-stat {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    box-shadow: var(--shadow);
    text-align: center;
    transition: all var(--transition);
}

.big-stat:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.big-stat-value {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.big-stat-label {
    font-size: var(--text-lg);
    color: var(--text);
    margin-top: var(--space-3);
    font-weight: 500;
}

.big-stat-sub {
    font-size: var(--text-sm);
    color: var(--text-light);
    margin-top: var(--space-1);
}

/* Testimonials */
.testimonials-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.testimonial-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    box-shadow: var(--shadow);
    position: relative;
    transition: all var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: var(--space-4);
    right: var(--space-6);
    font-family: Georgia, serif;
    font-size: 6rem;
    line-height: 1;
    color: var(--primary-subtle);
    pointer-events: none;
}

.testimonial-stars {
    display: flex;
    gap: var(--space-1);
    margin-bottom: var(--space-4);
}

.testimonial-stars svg {
    width: 20px;
    height: 20px;
    fill: var(--accent-yellow);
}

.testimonial-text {
    font-size: var(--text-lg);
    line-height: 1.7;
    color: var(--text);
    margin-bottom: var(--space-6);
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.testimonial-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: var(--text-xl);
}

.testimonial-info h4 {
    font-size: var(--text-base);
    margin-bottom: var(--space-1);
}

.testimonial-info p {
    font-size: var(--text-sm);
    color: var(--text-light);
    margin: 0;
}

/* Certifications */
.certifications {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-8);
    margin-top: var(--space-12);
    padding-top: var(--space-12);
    border-top: 1px solid var(--border);
}

.cert-badge {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-6);
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

.cert-badge:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.cert-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-green-subtle);
    border-radius: var(--radius-sm);
    color: var(--accent-green);
}

.cert-text {
    font-weight: 600;
    color: var(--dark);
    font-size: var(--text-sm);
}

/* ========================================
   NAVIGATION PAR INTENTION
   ======================================== */
.intent-section {
    background: white;
}

.intent-header {
    text-align: center;
    margin-bottom: var(--space-12);
}

.intent-header h2 {
    margin-bottom: var(--space-4);
}

.intent-header p {
    font-size: var(--text-xl);
    color: var(--text-light);
}

.intent-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}

.intent-card {
    position: relative;
    background: var(--bg-alt);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    text-align: center;
    transition: all var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
    overflow: hidden;
}

.intent-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--card-accent, var(--primary));
    transform: scaleX(0);
    transition: transform var(--transition);
}

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

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

/* Card accent colors */
.intent-card[data-intent="cold"] { --card-accent: #3b82f6; }
.intent-card[data-intent="secure"] { --card-accent: #8b5cf6; }
.intent-card[data-intent="save"] { --card-accent: var(--accent-green); }
.intent-card[data-intent="repair"] { --card-accent: var(--accent-yellow); }
.intent-card[data-intent="project"] { --card-accent: var(--primary); }
.intent-card[data-intent="choose"] { --card-accent: var(--secondary); }

.intent-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-6);
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    font-size: 2.5rem;
    transition: all var(--transition);
}

.intent-card:hover .intent-icon {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: var(--shadow-md);
}

.intent-title {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--dark);
    margin-bottom: var(--space-3);
}

.intent-description {
    font-size: var(--text-sm);
    color: var(--text-light);
    margin-bottom: var(--space-6);
    line-height: 1.6;
}

.intent-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.intent-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-3) var(--space-4);
    background: white;
    border-radius: var(--radius);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text);
    transition: all var(--transition-fast);
}

.intent-link:hover {
    background: var(--card-accent, var(--primary));
    color: white;
    transform: translateX(4px);
}

.intent-link svg {
    width: 16px;
    height: 16px;
    opacity: 0;
    transform: translateX(-8px);
    transition: all var(--transition-fast);
}

.intent-link:hover svg {
    opacity: 1;
    transform: translateX(0);
}

/* ========================================
   SIMULATOR SECTION
   ======================================== */
.simulator-section {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-soft) 100%);
    position: relative;
    overflow: hidden;
}

.simulator-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(230, 111, 24, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(18, 90, 156, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.simulator-container {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.simulator-header {
    text-align: center;
    margin-bottom: var(--space-12);
}

.simulator-header h2 {
    color: white;
    margin-bottom: var(--space-4);
}

.simulator-header p {
    color: rgba(255,255,255,0.7);
    font-size: var(--text-lg);
}

.simulator-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--space-10);
    box-shadow: var(--shadow-xl);
}

.simulator-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.form-label {
    font-weight: 600;
    color: var(--dark);
    font-size: var(--text-base);
}

.form-hint {
    font-size: var(--text-sm);
    color: var(--text-light);
}

/* Custom Select */
.custom-select {
    position: relative;
}

.custom-select select {
    width: 100%;
    padding: var(--space-4) var(--space-5);
    font-size: var(--text-base);
    font-family: inherit;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: white;
    appearance: none;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.custom-select select:hover {
    border-color: var(--text-muted);
}

.custom-select select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-subtle);
}

.custom-select::after {
    content: '';
    position: absolute;
    right: var(--space-5);
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid var(--text-light);
    pointer-events: none;
}

/* Range Slider */
.range-container {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.range-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.range-value {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--primary);
}

.range-value span {
    font-size: var(--text-base);
    color: var(--text-light);
    font-weight: 400;
}

.range-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    border-radius: var(--radius-full);
    background: var(--border);
    outline: none;
    transition: all var(--transition-fast);
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    cursor: pointer;
    box-shadow: var(--shadow-primary);
    transition: all var(--transition-fast);
}

.range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.range-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    cursor: pointer;
    border: none;
    box-shadow: var(--shadow-primary);
}

/* Results */
.simulator-results {
    display: none;
    padding: var(--space-8);
    background: linear-gradient(135deg, var(--accent-green-subtle) 0%, rgba(16, 185, 129, 0.05) 100%);
    border-radius: var(--radius-lg);
    margin-top: var(--space-6);
    text-align: center;
    animation: fadeInUp 0.5s ease;
}

.simulator-results.show {
    display: block;
}

.result-title {
    font-size: var(--text-lg);
    color: var(--text-light);
    margin-bottom: var(--space-4);
}

.result-amount {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--accent-green);
    line-height: 1;
}

.result-period {
    font-size: var(--text-base);
    color: var(--text-light);
    margin-top: var(--space-2);
}

.result-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
    margin-top: var(--space-6);
    padding-top: var(--space-6);
    border-top: 1px solid var(--border);
}

.result-detail {
    text-align: center;
}

.result-detail-value {
    font-weight: 700;
    font-size: var(--text-xl);
    color: var(--dark);
}

.result-detail-label {
    font-size: var(--text-sm);
    color: var(--text-light);
}

.simulator-cta {
    margin-top: var(--space-8);
    text-align: center;
}

/* ========================================
   CONTACT / DIAGNOSTIC SECTION
   ======================================== */
.contact-section {
    background: var(--bg-warm);
    position: relative;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
}

.contact-content {
    max-width: 480px;
}

.contact-content h2 {
    margin-bottom: var(--space-6);
}

.contact-content p {
    font-size: var(--text-lg);
    color: var(--text-light);
    margin-bottom: var(--space-8);
}

.contact-benefits {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.contact-benefit {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.benefit-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-green-subtle);
    border-radius: var(--radius);
    color: var(--accent-green);
    flex-shrink: 0;
}

.benefit-text h4 {
    font-size: var(--text-base);
    margin-bottom: var(--space-1);
}

.benefit-text p {
    font-size: var(--text-sm);
    color: var(--text-light);
    margin: 0;
}

/* Contact Form */
.contact-form-wrapper {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--space-10);
    box-shadow: var(--shadow-lg);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
}

.form-input {
    width: 100%;
    padding: var(--space-4) var(--space-5);
    font-size: var(--text-base);
    font-family: inherit;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    transition: all var(--transition-fast);
}

.form-input:hover {
    border-color: var(--text-muted);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-subtle);
}

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

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

.form-submit {
    width: 100%;
}

/* ========================================
   SITEMAP PAGE
   ======================================== */
.sitemap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-6);
}

.sitemap-category {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sitemap-category:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.sitemap-category-header {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-5);
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.sitemap-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius);
    flex-shrink: 0;
}

.sitemap-icon svg {
    width: 18px;
    height: 18px;
    stroke: var(--white);
}

.sitemap-category-header h2 {
    font-size: var(--text-base);
    font-weight: 700;
    color: var(--white);
    margin: 0;
}

.sitemap-links {
    list-style: none;
    padding: var(--space-4) var(--space-5);
    margin: 0;
}

.sitemap-links li {
    border-bottom: 1px solid var(--border-light);
}

.sitemap-links li:last-child {
    border-bottom: none;
}

.sitemap-links a {
    display: block;
    padding: var(--space-2) 0;
    color: var(--text);
    font-size: var(--text-sm);
    text-decoration: none;
    transition: all 0.2s ease;
}

.sitemap-links a:hover {
    color: var(--primary);
    padding-left: var(--space-2);
}

/* ========================================
   LEGAL PAGES (Mentions légales)
   ======================================== */
.legal-page {
    padding: var(--space-16) 0;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--space-10);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

.legal-content h1 {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-8);
    padding-bottom: var(--space-6);
    border-bottom: 2px solid var(--primary);
    color: var(--dark);
}

.legal-content section {
    margin-bottom: var(--space-8);
}

.legal-content section:last-child {
    margin-bottom: 0;
}

.legal-content h2 {
    font-size: var(--text-xl);
    color: var(--secondary);
    margin-bottom: var(--space-4);
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.legal-content h2::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 24px;
    background: var(--primary);
    border-radius: 2px;
}

.legal-content p {
    color: var(--text);
    line-height: 1.8;
    margin-bottom: var(--space-4);
}

.legal-content p:last-child {
    margin-bottom: 0;
}

.legal-content strong {
    color: var(--dark);
}

@media (max-width: 768px) {
    .sitemap-grid {
        grid-template-columns: 1fr;
    }

    .legal-content {
        padding: var(--space-6);
        border-radius: var(--radius-lg);
    }

    .legal-content h1 {
        font-size: var(--text-2xl);
    }
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: var(--dark);
    color: rgba(255,255,255,0.7);
    padding: var(--space-16) 0 var(--space-8);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: var(--space-12);
    padding-bottom: var(--space-12);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-6);
}

.footer-logo img {
    height: 40px;
    filter: brightness(0) invert(1);
}

.footer-logo span {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 700;
    color: white;
}

.footer-brand p {
    font-size: var(--text-sm);
    line-height: 1.7;
    margin-bottom: var(--space-6);
}

.footer-phone {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    background: var(--primary);
    color: white;
    border-radius: var(--radius-full);
    font-weight: 600;
    transition: all var(--transition);
}

.footer-phone:hover {
    background: var(--primary-light);
    color: white;
}

.footer-column h4 {
    color: white;
    font-size: var(--text-base);
    margin-bottom: var(--space-6);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    font-size: var(--text-sm);
    transition: all var(--transition-fast);
}

.footer-links a:hover {
    color: white;
    padding-left: var(--space-2);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-8);
    font-size: var(--text-sm);
}

.footer-legal {
    display: flex;
    gap: var(--space-6);
}

.footer-legal a {
    color: rgba(255,255,255,0.5);
}

.footer-legal a:hover {
    color: white;
}

/* ========================================
   SCROLL REVEAL ANIMATIONS
   ======================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Stagger children */
.stagger-children > * {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.1s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.2s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.3s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.4s; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.5s; }

.stagger-children.visible > * {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   CATEGORY PAGE TEMPLATE
   ======================================== */
.category-hero {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-soft) 100%);
    padding: calc(72px + var(--space-16)) 0 var(--space-16);
    text-align: center;
}

.category-hero h1 {
    color: white;
    margin-bottom: var(--space-4);
}

.category-hero .lead {
    color: rgba(255,255,255,0.7);
    max-width: 600px;
    margin: 0 auto;
}

.category-content {
    padding: var(--space-16) 0;
}

.category-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: var(--space-12);
}

.category-main {
    min-width: 0;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-6);
}

.article-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}

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

.article-card-image {
    height: 180px;
    overflow: hidden;
}

.article-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

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

.article-card-content {
    padding: var(--space-6);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.article-card-meta {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    font-size: var(--text-sm);
    color: var(--text-light);
    margin-bottom: var(--space-3);
}

.article-card h3 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-3);
    line-height: 1.4;
}

.article-card h3 a {
    color: var(--dark);
    text-decoration: none;
}

.article-card h3 a:hover {
    color: var(--primary);
}

.article-card p {
    color: var(--text-light);
    font-size: var(--text-sm);
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: var(--space-4);
}

.article-card .read-more {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--primary);
    font-weight: 600;
    font-size: var(--text-sm);
}

.article-card .read-more svg {
    width: 16px;
    height: 16px;
    transition: transform var(--transition-fast);
}

.article-card:hover .read-more svg {
    transform: translateX(4px);
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: calc(72px + var(--space-6));
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.sidebar-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    box-shadow: var(--shadow);
}

.sidebar-card h3 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-4);
    border-bottom: 2px solid var(--border);
}

.sidebar-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.sidebar-links a {
    display: block;
    padding: var(--space-3) var(--space-4);
    color: var(--text);
    font-size: var(--text-sm);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    border-left: 3px solid transparent;
}

.sidebar-links a:hover {
    background: var(--bg-alt);
    border-left-color: var(--primary);
    color: var(--primary);
}

.sidebar-links a.active {
    background: var(--primary-subtle);
    border-left-color: var(--primary);
    color: var(--primary);
    font-weight: 500;
}

/* Quick Form in Sidebar */
.sidebar-form {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
}

.sidebar-form h3 {
    color: white;
    border-bottom-color: rgba(255,255,255,0.2);
}

.sidebar-form .form-input {
    border-color: rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.1);
    color: white;
}

.sidebar-form .form-input::placeholder {
    color: rgba(255,255,255,0.6);
}

.sidebar-form .form-input:focus {
    background: rgba(255,255,255,0.2);
    border-color: white;
}

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

.sidebar-form .btn:hover {
    background: var(--bg-alt);
}

/* ========================================
   ARTICLE PAGE TEMPLATE
   ======================================== */
.article-hero {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-soft) 100%);
    padding: calc(72px + var(--space-12)) 0 var(--space-12);
}

.article-hero-content {
    max-width: 800px;
}

.article-breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-6);
    font-size: var(--text-sm);
}

.article-breadcrumb a {
    color: rgba(255,255,255,0.6);
}

.article-breadcrumb a:hover {
    color: white;
}

.article-breadcrumb span {
    color: rgba(255,255,255,0.4);
}

.article-hero h1 {
    color: white;
    margin-bottom: var(--space-6);
}

.article-meta-hero {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-6);
    color: rgba(255,255,255,0.7);
    font-size: var(--text-sm);
}

.article-meta-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.article-meta-item svg {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

/* Article Body */
.article-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: var(--space-12);
    padding: var(--space-12) 0;
}

.article-body {
    max-width: 100%;
    overflow: hidden;
}

.article-body h2 {
    margin-top: var(--space-12);
    margin-bottom: var(--space-6);
    padding-top: var(--space-8);
    border-top: 1px solid var(--border);
}

.article-body h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.article-body h3 {
    margin-top: var(--space-8);
    margin-bottom: var(--space-4);
}

.article-body p {
    line-height: 1.8;
    margin-bottom: var(--space-6);
}

.article-body ul,
.article-body ol {
    margin: var(--space-6) 0;
    padding-left: var(--space-8);
}

.article-body li {
    margin-bottom: var(--space-3);
    line-height: 1.7;
}

.article-body blockquote {
    margin: var(--space-8) 0;
    padding: var(--space-6) var(--space-8);
    background: var(--bg-alt);
    border-left: 4px solid var(--primary);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-size: var(--text-lg);
    font-style: italic;
    color: var(--text);
}

.article-body blockquote p {
    margin: 0;
}

/* Info boxes */
.info-box,
.warning-box,
.success-box {
    margin: var(--space-8) 0;
    padding: var(--space-6);
    border-radius: var(--radius);
    display: flex;
    gap: var(--space-4);
}

.info-box {
    background: rgba(18, 90, 156, 0.08);
    border-left: 4px solid var(--secondary);
}

.warning-box {
    background: rgba(245, 158, 11, 0.08);
    border-left: 4px solid var(--accent-yellow);
}

.success-box {
    background: var(--accent-green-subtle);
    border-left: 4px solid var(--accent-green);
}

.box-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.info-box .box-icon { color: var(--secondary); }
.warning-box .box-icon { color: var(--accent-yellow); }
.success-box .box-icon { color: var(--accent-green); }

.box-content p {
    margin: 0;
}

/* Tables in articles */
.article-body table {
    width: 100%;
    margin: var(--space-8) 0;
    border-collapse: collapse;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.article-body thead {
    background: var(--dark);
    color: white;
}

.article-body th,
.article-body td {
    padding: var(--space-4) var(--space-5);
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.article-body tbody tr:hover {
    background: var(--bg-alt);
}

.article-body tbody tr:last-child td {
    border-bottom: none;
}

/* Table of Contents */
.toc-card {
    background: var(--bg-alt);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    position: sticky;
    top: calc(72px + var(--space-6));
}

.toc-card h4 {
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-light);
    margin-bottom: var(--space-4);
}

.toc-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.toc-list a {
    display: block;
    padding: var(--space-2) 0;
    color: var(--text);
    font-size: var(--text-sm);
    border-left: 2px solid transparent;
    padding-left: var(--space-4);
    transition: all var(--transition-fast);
}

.toc-list a:hover,
.toc-list a.active {
    color: var(--primary);
    border-left-color: var(--primary);
}

/* Table of Contents in Article */
.table-of-contents {
    background: linear-gradient(135deg, var(--bg-alt) 0%, var(--bg-warm) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 0;
    margin: var(--space-8) 0;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.toc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: var(--space-5) var(--space-6);
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.toc-header:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-dark) 100%);
}

.toc-title {
    font-family: var(--font-heading);
    font-size: var(--text-base);
    font-weight: 700;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.toc-title::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M4 6h16M4 10h16M4 14h16M4 18h16'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.toc-toggle {
    color: var(--white);
    font-size: var(--text-sm);
    transition: transform 0.3s ease;
}

.toc-header[aria-expanded="false"] .toc-toggle {
    transform: rotate(-90deg);
}

.toc-content {
    padding: var(--space-5) var(--space-6);
}

.table-of-contents .toc-list {
    list-style: none;
    counter-reset: toc-counter;
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 0;
}

.table-of-contents .toc-list li {
    counter-increment: toc-counter;
    border-bottom: 1px solid var(--border-light);
}

.table-of-contents .toc-list li:last-child {
    border-bottom: none;
}

.table-of-contents .toc-list a {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-2);
    color: var(--text);
    font-size: var(--text-sm);
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
    border-radius: 0 var(--radius) var(--radius) 0;
}

.table-of-contents .toc-list a::before {
    content: counter(toc-counter);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--primary);
    color: var(--white);
    font-size: var(--text-xs);
    font-weight: 700;
    border-radius: 50%;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.table-of-contents .toc-list a:hover {
    background: rgba(230, 111, 24, 0.08);
    border-left-color: var(--primary);
    color: var(--primary);
    padding-left: var(--space-4);
}

.table-of-contents .toc-list a:hover::before {
    background: var(--primary-dark);
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .table-of-contents {
        margin: var(--space-6) 0;
    }

    .toc-header {
        padding: var(--space-4) var(--space-5);
    }

    .toc-content {
        padding: var(--space-4) var(--space-5);
    }

    .table-of-contents .toc-list a {
        padding: var(--space-3) var(--space-2);
        font-size: var(--text-sm);
    }
}

/* CTA in article */
.article-cta {
    margin: var(--space-12) 0;
    padding: var(--space-10);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-xl);
    text-align: center;
    color: white;
}

.article-cta h3 {
    color: white;
    margin-bottom: var(--space-4);
}

.article-cta p {
    color: rgba(255,255,255,0.9);
    margin-bottom: var(--space-6);
}

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

.article-cta .btn:hover {
    background: var(--bg-alt);
}

/* Related articles */
.related-section {
    background: var(--bg-alt);
    padding: var(--space-16) 0;
}

.related-section h2 {
    text-align: center;
    margin-bottom: var(--space-12);
}

/* ========================================
   FAQ ACCORDION
   ======================================== */
.faq-section {
    background: white;
}

.faq-header {
    text-align: center;
    margin-bottom: var(--space-12);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.faq-item {
    background: var(--bg-alt);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
}

.faq-item:hover {
    box-shadow: var(--shadow);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-6);
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--dark);
    text-align: left;
    cursor: pointer;
    transition: all var(--transition-fast);
}

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

.faq-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    flex-shrink: 0;
    transition: all var(--transition);
}

.faq-icon svg {
    width: 14px;
    height: 14px;
    transition: transform var(--transition);
}

.faq-item.open .faq-icon {
    background: var(--primary);
    color: white;
}

.faq-item.open .faq-icon svg {
    transform: rotate(180deg);
}

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

.faq-answer-content {
    padding: 0 var(--space-6) var(--space-6);
    color: var(--text-light);
    line-height: 1.7;
}

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

/* ========================================
   BREADCRUMB
   ======================================== */
.breadcrumb {
    padding: var(--space-4) 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    list-style: none;
    font-size: var(--text-sm);
}

.breadcrumb-list li {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.breadcrumb-list a {
    color: var(--text-light);
}

.breadcrumb-list a:hover {
    color: var(--primary);
}

.breadcrumb-list .separator {
    color: var(--text-muted);
}

.breadcrumb-list .current {
    color: var(--text);
    font-weight: 500;
}

/* ========================================
   MOBILE MENU
   ======================================== */
.mobile-menu {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    z-index: var(--z-fixed);
    padding: var(--space-6);
    transform: translateX(100%);
    transition: transform var(--transition);
}

.mobile-menu.open {
    transform: translateX(0);
}

.mobile-nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.mobile-nav-links a {
    display: block;
    padding: var(--space-4);
    font-size: var(--text-lg);
    font-weight: 500;
    color: var(--dark);
    border-radius: var(--radius);
    transition: all var(--transition-fast);
}

.mobile-nav-links a:hover {
    background: var(--bg-alt);
    color: var(--primary);
}

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

.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-muted { color: var(--text-light); }
.text-white { color: white; }

.bg-primary { background-color: var(--primary); }
.bg-secondary { background-color: var(--secondary); }
.bg-alt { background-color: var(--bg-alt); }
.bg-dark { background-color: var(--dark); }

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-4 { margin-top: var(--space-4); }
.mb-4 { margin-bottom: var(--space-4); }
.mt-8 { margin-top: var(--space-8); }
.mb-8 { margin-bottom: var(--space-8); }

.hidden { display: none !important; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
    .solution-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--space-12);
    }

    .solution-visual {
        order: -1;
    }

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

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

    .category-layout,
    .article-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .sidebar-card {
        flex: 1 1 300px;
    }

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

@media (max-width: 768px) {
    :root {
        --space-16: 3rem;
        --space-20: 4rem;
        --space-24: 5rem;
    }

    .header-nav {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .mobile-menu {
        display: block;
    }

    .hero {
        min-height: auto;
        padding: calc(72px + var(--space-12)) 0 var(--space-12);
    }

    .shutter-slat {
        height: 30px;
    }

    .hero-cta {
        flex-direction: column;
    }

    .hero-cta .btn {
        width: 100%;
    }

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

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

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

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-4);
        text-align: center;
    }

    .footer-legal {
        flex-direction: column;
        gap: var(--space-2);
    }

    .btn-phone .phone-text {
        display: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-4);
    }

    .simulator-card {
        padding: var(--space-6);
    }

    .result-details {
        grid-template-columns: 1fr;
    }

    .big-stat {
        padding: var(--space-6);
    }

    .testimonial-card {
        padding: var(--space-6);
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
    .header,
    .footer,
    .sidebar,
    .hero,
    .simulator-section,
    .contact-section,
    .btn {
        display: none !important;
    }

    body {
        color: black;
        background: white;
    }

    .article-body {
        max-width: 100%;
    }

    a {
        color: black;
        text-decoration: underline;
    }
}

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

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

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