/**
 * TECH Menuiserie - Showroom Digital
 * ===================================
 * Mercedes-style premium design
 * Conform CODEX VALI guidelines
 */

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    /* Colors */
    --primary: #003168;
    --primary-light: #4a6fa5;
    --primary-dark: #001f42;
    --accent: #ef7c1a;
    --accent-hover: #f7931e;
    --accent-light: rgba(239, 124, 26, 0.1);

    /* Neutrals */
    --white: #ffffff;
    --bg-main: #ffffff;
    --bg-alt: #faf9f7;
    --bg-dark: #0a1628;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --border: #e5e7eb;
    --border-light: #f3f4f6;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 49, 104, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 49, 104, 0.08);
    --shadow-lg: 0 12px 32px rgba(0, 49, 104, 0.12);
    --shadow-xl: 0 24px 48px rgba(0, 49, 104, 0.16);

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;

    /* Animation */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    /* Typography */
    --font-heading: 'DM Serif Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    --font-mono: 'DM Mono', monospace;

    /* Layout */
    --header-height: 72px;
    --container-width: 1200px;
    --border-radius: 8px;
    --border-radius-lg: 16px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-main);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: inherit;
    text-decoration: none;
}

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

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

.hidden {
    display: none !important;
}

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

.header-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 40px;
    transition: var(--transition-fast);
}

.logo:hover img {
    opacity: 0.8;
}

.nav {
    display: flex;
    gap: var(--space-xl);
}

.nav-link {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition-fast);
    position: relative;
}

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

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

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

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 0.9375rem;
    transition: var(--transition-normal);
    white-space: nowrap;
}

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

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(239, 124, 26, 0.35);
}

.btn-cta {
    background: var(--accent);
    color: var(--white);
    padding: 10px 20px;
    font-size: 0.875rem;
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
}

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

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

.btn-ghost:hover {
    color: var(--primary);
    background: var(--bg-alt);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1rem;
}

.btn-full {
    width: 100%;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding-top: var(--header-height);
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero-gradient {
    position: absolute;
    right: 0;
    top: 0;
    width: 60%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-alt) 0%, rgba(0, 49, 104, 0.03) 100%);
    border-radius: 0 0 0 50%;
}

.hero-content {
    padding: var(--space-3xl);
    padding-left: calc((100vw - var(--container-width)) / 2 + var(--space-lg));
}

.hero-badge {
    display: inline-block;
    background: var(--accent-light);
    color: var(--accent);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: var(--space-lg);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.15;
    color: var(--primary);
    margin-bottom: var(--space-lg);
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 480px;
    margin-bottom: var(--space-xl);
}

.hero-cta-group {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-3xl);
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.75rem;
    color: var(--primary);
}

.stat-label {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-3xl);
}

.hero-window-preview {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 4/5;
    background: linear-gradient(145deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-window-preview::before {
    content: '';
    position: absolute;
    inset: 20px;
    border: 8px solid #383e42;
    border-radius: 4px;
    background: linear-gradient(180deg, #a8d8ff 0%, #87ceeb 100%);
}

/* ============================================
   SECTION STYLING
   ============================================ */
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--space-3xl);
}

.section-badge {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: var(--space-md);
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 2.75rem);
    color: var(--primary);
    margin-bottom: var(--space-md);
}

.section-subtitle {
    font-size: 1.0625rem;
    color: var(--text-secondary);
}

/* ============================================
   AMBIANCES GALLERY
   ============================================ */
.ambiances {
    padding: var(--space-3xl) 0;
    background: var(--bg-alt);
}

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

.ambiance-card {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
    transition: var(--transition-normal);
}

.ambiance-card.large {
    grid-column: span 2;
}

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

.ambiance-window-demo {
    width: 60%;
    aspect-ratio: 3/4;
    border: 6px solid #383e42;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(4px);
    transition: var(--transition-normal);
}

.ambiance-window-demo.classic {
    border-color: #ffffff;
}

.ambiance-window-demo.natural {
    border-color: #8b7355;
}

.ambiance-window-demo.bay {
    width: 80%;
    aspect-ratio: 16/9;
}

.ambiance-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0, 49, 104, 0.9) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--space-xl);
    transition: var(--transition-normal);
}

.ambiance-card:hover .ambiance-overlay {
    background: linear-gradient(180deg, rgba(0, 49, 104, 0.2) 0%, rgba(0, 49, 104, 0.95) 100%);
}

.ambiance-card:hover .ambiance-window-demo {
    transform: scale(1.05);
}

.ambiance-overlay h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: var(--space-xs);
}

.ambiance-overlay p {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--space-md);
}

.ambiance-cta {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--accent);
    font-weight: 600;
    font-size: 0.875rem;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition-normal);
}

.ambiance-card:hover .ambiance-cta {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   CONFIGURATEUR
   ============================================ */
.configurateur {
    padding: var(--space-3xl) 0;
}

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

/* Progress Bar */
.progress-bar {
    position: relative;
    height: 4px;
    background: var(--border);
    border-radius: 100px;
    margin-bottom: var(--space-2xl);
}

.progress-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 33.33%;
    background: var(--accent);
    border-radius: 100px;
    transition: var(--transition-normal);
}

.progress-steps {
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
}

.progress-step {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: var(--transition-normal);
}

.progress-step.active {
    border-color: var(--accent);
    color: var(--accent);
}

.progress-step.completed {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
}

/* Config Steps */
.config-step {
    display: none;
}

.config-step.active {
    display: block;
    animation: fadeInUp 0.4s ease;
}

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

.step-question {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: var(--space-sm);
}

.step-hint {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
}

/* Option Buttons */
.options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

.option-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--space-xl);
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: var(--border-radius-lg);
    transition: var(--transition-normal);
}

.option-btn:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
}

.option-btn.selected {
    border-color: var(--accent);
    background: var(--accent-light);
}

.option-icon {
    width: 48px;
    height: 48px;
    margin-bottom: var(--space-md);
}

.option-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--primary);
}

.option-btn.selected .option-icon svg {
    stroke: var(--accent);
}

.option-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

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

/* Dimension Controls */
.dimension-controls {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.dimension-group label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.dimension-input-group {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.dimension-slider {
    flex: 1;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--border);
    border-radius: 100px;
    outline: none;
}

.dimension-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--accent);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(239, 124, 26, 0.4);
    transition: var(--transition-fast);
}

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

.dimension-value {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-family: var(--font-mono);
    font-size: 0.9375rem;
    color: var(--text-primary);
}

.dimension-value input {
    width: 60px;
    padding: var(--space-sm) var(--space-md);
    border: 2px solid var(--border);
    border-radius: var(--border-radius);
    font-family: var(--font-mono);
    font-size: 0.9375rem;
    text-align: center;
    transition: var(--transition-fast);
}

.dimension-value input:focus {
    outline: none;
    border-color: var(--primary);
}

.dimension-info {
    display: flex;
    gap: var(--space-xl);
    padding: var(--space-md);
    background: var(--bg-alt);
    border-radius: var(--border-radius);
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.info-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.info-value {
    font-weight: 600;
    color: var(--primary);
}

/* ============================================
   PREVIEW PANEL
   ============================================ */
.config-preview {
    position: sticky;
    top: calc(var(--header-height) + var(--space-lg));
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--border-light);
}

.preview-label {
    font-size: 0.8125rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.preview-controls {
    display: flex;
    gap: var(--space-xs);
}

.preview-control {
    padding: 6px 12px;
    font-size: 0.8125rem;
    color: var(--text-muted);
    border-radius: var(--border-radius);
    transition: var(--transition-fast);
}

.preview-control:hover {
    background: var(--bg-alt);
    color: var(--text-primary);
}

.preview-control.active {
    background: var(--primary);
    color: var(--white);
}

.preview-canvas {
    padding: var(--space-xl);
    background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.window-preview {
    width: 100%;
    max-width: 320px;
}

.window-preview .frame-outer {
    fill: none;
    stroke: #383e42;
    stroke-width: 8;
    transition: stroke var(--transition-normal);
}

.window-preview .frame-inner {
    fill: none;
    stroke: #383e42;
    stroke-width: 4;
    transition: stroke var(--transition-normal);
}

.window-preview .glass {
    fill: url(#glassGradient);
    fill: linear-gradient(180deg, rgba(168, 216, 255, 0.6), rgba(135, 206, 235, 0.4));
    fill: #a8d8ff;
    opacity: 0.6;
}

.window-preview .divider {
    fill: #383e42;
    transition: fill var(--transition-normal);
}

.window-preview .handle {
    fill: #1a1a1a;
}

.color-indicator {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.color-indicator .color-swatch {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    background: #383e42;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.color-indicator .color-name {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.preview-colors {
    padding: var(--space-lg);
    border-top: 1px solid var(--border-light);
}

.colors-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-md);
}

.colors-row {
    display: flex;
    gap: var(--space-sm);
}

.color-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 2px solid transparent;
    transition: var(--transition-fast);
    position: relative;
}

.color-btn:hover {
    transform: scale(1.1);
}

.color-btn.active {
    border-color: var(--accent);
}

.color-btn.active::after {
    content: '';
    position: absolute;
    inset: -4px;
    border: 2px solid var(--accent);
    border-radius: 10px;
}

/* ============================================
   RESULTAT SECTION
   ============================================ */
.resultat {
    padding: var(--space-3xl) 0;
    background: var(--bg-alt);
}

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

.resultat-viewer {
    position: sticky;
    top: calc(var(--header-height) + var(--space-lg));
}

.viewer-3d {
    background: linear-gradient(145deg, #f0f2f5 0%, #e4e7eb 100%);
    border-radius: var(--border-radius-lg);
    aspect-ratio: 4/5;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
    overflow: hidden;
}

.viewer-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: floatWindow 6s ease-in-out infinite;
}

@keyframes floatWindow {
    0%, 100% { transform: translateY(0) rotateY(0deg); }
    50% { transform: translateY(-10px) rotateY(5deg); }
}

.window-3d-demo {
    width: 50%;
    aspect-ratio: 3/4;
    perspective: 1000px;
}

.frame-3d {
    width: 100%;
    height: 100%;
    border: 12px solid #383e42;
    border-radius: 4px;
    background: linear-gradient(180deg, #a8d8ff 0%, #87ceeb 100%);
    box-shadow:
        -20px 20px 40px rgba(0, 0, 0, 0.15),
        inset 0 0 30px rgba(255, 255, 255, 0.3);
    transform: rotateY(-5deg);
    transition: transform 0.5s ease;
}

.viewer-3d:hover .frame-3d {
    transform: rotateY(5deg);
}

.viewer-controls {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
}

.viewer-btn {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

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

.viewer-btn svg {
    width: 20px;
    height: 20px;
}

/* Resultat Details */
.resultat-details {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-md);
}

.recommendation-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: linear-gradient(135deg, #ffd700 0%, #ffb300 100%);
    color: #1a1a1a;
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: var(--space-lg);
}

.resultat-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: var(--space-sm);
}

.resultat-subtitle {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
}

.resultat-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid var(--border-light);
}

.spec-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
}

.spec-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-light);
    border-radius: var(--border-radius);
    color: var(--accent);
}

.spec-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: block;
}

.spec-value {
    font-weight: 600;
    color: var(--text-primary);
}

.resultat-why {
    background: var(--bg-alt);
    padding: var(--space-lg);
    border-radius: var(--border-radius);
    margin-bottom: var(--space-xl);
}

.resultat-why h4 {
    font-size: 0.875rem;
    color: var(--primary);
    margin-bottom: var(--space-sm);
}

.resultat-why p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Price Breakdown */
.resultat-price {
    margin-bottom: var(--space-xl);
}

.price-row {
    display: flex;
    justify-content: space-between;
    padding: var(--space-sm) 0;
    font-size: 0.9375rem;
}

.price-row.muted {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.price-row.total {
    padding-top: var(--space-md);
    margin-top: var(--space-sm);
    border-top: 2px solid var(--border);
    font-weight: 600;
}

.price-value {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    color: var(--accent);
}

/* Actions */
.resultat-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

/* Guarantees */
.resultat-guarantees {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-lg);
}

.guarantee {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.guarantee svg {
    color: var(--accent);
}

/* Back Button */
.btn-back {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    margin-top: var(--space-xl);
    padding: var(--space-sm) var(--space-md);
    color: var(--text-secondary);
    font-size: 0.9375rem;
    transition: var(--transition-fast);
}

.btn-back:hover {
    color: var(--primary);
}

/* ============================================
   EXPERTISE SECTION
   ============================================ */
.expertise {
    padding: var(--space-3xl) 0;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

.expertise-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-lg);
    padding: var(--space-xl);
    text-align: center;
    transition: var(--transition-normal);
}

.expertise-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-lg);
}

.expertise-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--accent);
}

.expertise-card h3 {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    color: var(--primary);
    margin-bottom: var(--space-sm);
}

.expertise-card p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    padding: var(--space-3xl) 0;
    background: var(--primary);
}

.cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    color: var(--white);
    margin-bottom: var(--space-md);
}

.cta-content p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--space-xl);
}

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

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

.footer-brand img {
    height: 32px;
    margin-bottom: var(--space-md);
    filter: brightness(0) invert(1);
}

.footer-brand p {
    font-size: 0.9375rem;
    line-height: 1.6;
}

.footer-links h4 {
    color: var(--white);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-lg);
}

.footer-links a {
    display: block;
    font-size: 0.9375rem;
    margin-bottom: var(--space-sm);
    transition: var(--transition-fast);
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8125rem;
}

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

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

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding-bottom: var(--space-3xl);
    }

    .hero-content {
        padding: var(--space-2xl);
        text-align: center;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta-group {
        justify-content: center;
    }

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

    .hero-visual {
        display: none;
    }

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

    .ambiance-card.large {
        grid-column: span 2;
    }

    .config-layout,
    .resultat-layout {
        grid-template-columns: 1fr;
    }

    .config-preview {
        position: static;
    }

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

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

@media (max-width: 768px) {
    .nav {
        display: none;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: var(--space-md);
    }

    .stat-divider {
        width: 40px;
        height: 1px;
    }

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

    .ambiance-card.large {
        grid-column: span 1;
    }

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

    .resultat-specs {
        grid-template-columns: 1fr;
    }

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

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

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

    .footer-legal {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .header,
    .footer,
    .hero-cta-group,
    .btn,
    .viewer-controls {
        display: none;
    }

    body {
        background: white;
    }

    .resultat-details {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}
