/* ========================================
   PANNEAU SOLAIRE MONTROUGE — Main Styles
   ======================================== */

/* CSS Custom Properties */
:root {
    --primary: #0077B6;
    --primary-dark: #005f8f;
    --primary-light: #0090d9;
    --secondary: #90E0EF;
    --secondary-light: #CAF0F8;
    --accent: #FF8C00;
    --accent-light: #FFA940;
    --text: #1a1a2e;
    --text-light: #4a5568;
    --text-muted: #718096;
    --bg: #ffffff;
    --bg-alt: #f7f9fc;
    --bg-dark: #0a1628;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Plus Jakarta Sans', 'Inter', sans-serif;
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 40px;
    --space-2xl: 64px;
    --space-3xl: 96px;
    --transition: 0.25s ease;
}

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

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

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

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

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

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

/* Skip Link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
    z-index: 10000;
    font-weight: 600;
}
.skip-link:focus {
    top: var(--space-md);
    color: white;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.2;
    color: var(--text);
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(1.5rem, 3.5vw, 2.5rem);
    letter-spacing: -0.01em;
}

h3 {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
}

h4 {
    font-size: 1.125rem;
    font-weight: 700;
}

p {
    margin-bottom: var(--space-md);
    color: var(--text-light);
}

.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 14px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    line-height: 1.4;
}

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

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 14px rgba(0,119,182,0.35);
}
.btn-primary:hover {
    background: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,119,182,0.45);
}

.btn-accent {
    background: var(--accent);
    color: white;
    box-shadow: 0 4px 14px rgba(255,140,0,0.35);
}
.btn-accent:hover {
    background: var(--accent-light);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,140,0,0.45);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

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

.btn-lg {
    padding: 18px 36px;
    font-size: 1.1rem;
    border-radius: var(--radius-lg);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.875rem;
}

.btn-nav {
    background: var(--accent);
    color: white;
    padding: 10px 20px;
    border-radius: var(--radius);
    font-size: 0.9rem;
}
.btn-nav:hover {
    background: var(--accent-light);
    color: white;
}

.btn-cta {
    background: var(--accent);
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 700;
    white-space: nowrap;
}
.btn-cta:hover {
    background: var(--accent-light);
    color: white;
}

/* ========================================
   HEADER
   ======================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: var(--space-md) 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
    color: var(--text);
    font-size: 1.1rem;
}
.logo-icon {
    font-size: 1.5rem;
}
.logo-text {
    font-weight: 500;
}
.logo-text strong {
    color: var(--primary);
    font-weight: 700;
}

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

.main-nav .nav-list a {
    color: var(--text);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color var(--transition);
}
.main-nav .nav-list a:hover {
    color: var(--primary);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
    color: var(--text);
}
.nav-toggle .icon {
    width: 24px;
    height: 24px;
}

/* ========================================
   HERO
   ======================================== */
.hero {
    position: relative;
    padding: var(--space-3xl) 0;
    background: linear-gradient(135deg, var(--bg-dark) 0%, #0d2137 50%, var(--primary-dark) 100%);
    overflow: hidden;
    min-height: 85vh;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.pexels.com/photos/29206488/pexels-photo-29206488.jpeg?auto=compress&cs=tinysrgb&fit=crop&h=900&w=1600') center/cover no-repeat;
    opacity: 0.15;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, var(--bg) 0%, transparent 100%);
}

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

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: rgba(144,224,239,0.15);
    color: var(--secondary);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: var(--space-lg);
    border: 1px solid rgba(144,224,239,0.25);
}

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

.hero h1 .highlight {
    color: var(--secondary);
    position: relative;
}

.hero-desc {
    color: rgba(255,255,255,0.8);
    font-size: 1.15rem;
    margin-bottom: var(--space-xl);
    max-width: 540px;
}

.hero-ctas {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
    margin-bottom: var(--space-xl);
}

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

.hero-stat {
    text-align: left;
}
.hero-stat-value {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--secondary);
}
.hero-stat-label {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
}

.hero-visual {
    position: relative;
}

.hero-img-wrapper {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.hero-img-wrapper img {
    width: 100%;
    height: 450px;
    object-fit: cover;
}

.hero-floating-card {
    position: absolute;
    bottom: -20px;
    left: -30px;
    background: white;
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.hero-floating-card .icon {
    width: 40px;
    height: 40px;
    color: var(--accent);
}

.hero-floating-card-text strong {
    display: block;
    font-size: 1.1rem;
    color: var(--text);
}
.hero-floating-card-text span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

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

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

.section-dark {
    background: var(--bg-dark);
    color: white;
}
.section-dark h2,
.section-dark h3 {
    color: white;
}
.section-dark p {
    color: rgba(255,255,255,0.7);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-header .badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    background: var(--secondary-light);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-md);
}

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

.section-header p {
    font-size: 1.1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ========================================
   CARDS
   ======================================== */
.card {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: all var(--transition);
}

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

.card-icon {
    width: 56px;
    height: 56px;
    background: var(--secondary-light);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
}
.card-icon .icon {
    width: 28px;
    height: 28px;
    color: var(--primary);
}

.card h3 {
    margin-bottom: var(--space-sm);
}

.card p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Grid layouts */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

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

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

/* ========================================
   SIMULATOR
   ======================================== */
.simulator {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    color: white;
    position: relative;
    overflow: hidden;
}

.simulator::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(144,224,239,0.15) 0%, transparent 70%);
    border-radius: 50%;
}

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

.simulator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: start;
    position: relative;
    z-index: 2;
}

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

.sim-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    font-size: 0.95rem;
}

.sim-form-group input,
.sim-form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: var(--radius);
    background: rgba(255,255,255,0.1);
    color: white;
    font-size: 1rem;
    font-family: var(--font-body);
    transition: border-color var(--transition);
}

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

.sim-form-group input:focus,
.sim-form-group select:focus {
    outline: none;
    border-color: var(--secondary);
    background: rgba(255,255,255,0.15);
}

.sim-form-group select option {
    background: var(--primary-dark);
    color: white;
}

.sim-range {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: rgba(255,255,255,0.2);
    outline: none;
    border: none !important;
    padding: 0 !important;
}
.sim-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--secondary);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.sim-range-value {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: var(--space-sm);
}

.sim-results {
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    border: 1px solid rgba(255,255,255,0.15);
}

.sim-result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sim-result-item:last-child {
    border-bottom: none;
}

.sim-result-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.sim-result-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary);
}

.sim-result-highlight {
    background: rgba(255,140,0,0.15);
    border: 1px solid rgba(255,140,0,0.3);
    border-radius: var(--radius);
    padding: var(--space-md);
    text-align: center;
    margin-top: var(--space-lg);
}

.sim-result-highlight .big {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
    display: block;
}

/* ========================================
   CITY CARDS
   ======================================== */
.city-card {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    text-decoration: none;
    color: var(--text);
    transition: all var(--transition);
}

.city-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
    transform: translateX(4px);
    color: var(--primary);
}

.city-card .icon {
    width: 20px;
    height: 20px;
    color: var(--primary);
    flex-shrink: 0;
}

.city-card-name {
    font-weight: 600;
    flex: 1;
}

.city-card-zip {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ========================================
   INSTALLER CARDS
   ======================================== */
.installer-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.installer-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--secondary);
}

.installer-card-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: var(--space-md);
}

.installer-card-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.installer-card-location {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}
.installer-card-location .icon {
    width: 14px;
    height: 14px;
}

.installer-card-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--secondary-light);
    padding: 6px 12px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--primary);
    white-space: nowrap;
}

.installer-card-certifs {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.certif-badge {
    background: #E8F5E9;
    color: #2E7D32;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.installer-card-desc {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: var(--space-md);
}

.installer-card-footer {
    display: flex;
    gap: var(--space-sm);
}

/* ========================================
   LEADRS FORM
   ======================================== */
.leadrs-section {
    background: linear-gradient(135deg, var(--bg-alt) 0%, var(--secondary-light) 100%);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    text-align: center;
}

.leadrs-frame {
    margin-top: var(--space-lg);
    border-radius: var(--radius);
    overflow: hidden;
    background: white;
}

.leadrs-frame iframe {
    width: 100%;
    min-height: 800px;
    border: none;
    background: transparent;
}

/* ========================================
   FAQ
   ======================================== */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: var(--space-md);
    background: white;
    overflow: hidden;
    transition: box-shadow var(--transition);
}

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

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

.faq-question .icon {
    width: 20px;
    height: 20px;
    color: var(--primary);
    transition: transform var(--transition);
    flex-shrink: 0;
}

.faq-question[aria-expanded="true"] .icon {
    transform: rotate(180deg);
}

.faq-answer {
    display: none;
    padding: 0 var(--space-lg) var(--space-lg);
    color: var(--text-light);
    line-height: 1.8;
}

.faq-answer.open {
    display: block;
}

/* ========================================
   BREADCRUMBS
   ======================================== */
.breadcrumbs {
    padding: var(--space-md) 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
}

.breadcrumbs-list {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    list-style: none;
    font-size: 0.85rem;
    flex-wrap: wrap;
}

.breadcrumbs-list li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text-muted);
}

.breadcrumbs-list li a {
    color: var(--text-muted);
}
.breadcrumbs-list li a:hover {
    color: var(--primary);
}

.breadcrumbs-list li:last-child {
    color: var(--primary);
    font-weight: 600;
}

.breadcrumbs-list .sep {
    color: var(--border);
}

/* ========================================
   PAGINATION
   ======================================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-sm);
    margin-top: var(--space-xl);
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 var(--space-md);
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.pagination a {
    color: var(--text);
    background: white;
}
.pagination a:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.pagination .active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ========================================
   ALPHABET FILTER
   ======================================== */
.alpha-filter {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    justify-content: center;
    margin-bottom: var(--space-xl);
}

.alpha-filter a,
.alpha-filter span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.85rem;
    transition: all var(--transition);
}

.alpha-filter a {
    background: white;
    color: var(--text);
    border: 1px solid var(--border);
}
.alpha-filter a:hover,
.alpha-filter a.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.alpha-filter span {
    background: var(--bg-alt);
    color: var(--text-muted);
    border: 1px solid var(--border);
    cursor: default;
}

/* ========================================
   SEARCH BAR
   ======================================== */
.search-bar {
    display: flex;
    gap: var(--space-md);
    max-width: 600px;
    margin: 0 auto var(--space-xl);
}

.search-bar input {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: var(--font-body);
    transition: border-color var(--transition);
}

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

/* ========================================
   NEARBY CITIES
   ======================================== */
.nearby-cities {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--space-md);
}

/* ========================================
   INFO BLOCKS
   ======================================== */
.info-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
}

.info-block.reverse {
    direction: rtl;
}
.info-block.reverse > * {
    direction: ltr;
}

.info-block-img {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.info-block-img img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

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

.info-block-content p {
    margin-bottom: var(--space-md);
}

.info-list {
    list-style: none;
    margin-bottom: var(--space-lg);
}

.info-list li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) 0;
    color: var(--text-light);
}

.info-list li .icon {
    width: 20px;
    height: 20px;
    color: #2E7D32;
    flex-shrink: 0;
}

/* ========================================
   AIDES TABLE
   ======================================== */
.aides-table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--space-lg) 0;
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.aides-table th,
.aides-table td {
    padding: var(--space-md) var(--space-lg);
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.aides-table th {
    background: var(--primary);
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

.aides-table tr:last-child td {
    border-bottom: none;
}

.aides-table tr:hover td {
    background: var(--bg-alt);
}

/* ========================================
   DEVIS PAGE
   ======================================== */
.devis-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: var(--space-2xl) 0;
    color: white;
    text-align: center;
}

.devis-hero h1 {
    color: white;
}

.devis-hero p {
    color: rgba(255,255,255,0.8);
    font-size: 1.1rem;
}

.devis-features {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    margin-top: var(--space-lg);
    flex-wrap: wrap;
}

.devis-feature {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: rgba(255,255,255,0.9);
    font-weight: 500;
}

.devis-feature .icon {
    width: 20px;
    height: 20px;
    color: var(--secondary);
}

/* ========================================
   404 PAGE
   ======================================== */
.page-404 {
    text-align: center;
    padding: var(--space-3xl) 0;
}

.page-404-icon {
    font-size: 6rem;
    margin-bottom: var(--space-lg);
}

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

.page-404 p {
    font-size: 1.1rem;
    margin-bottom: var(--space-xl);
}

.page-404-links {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   STICKY CTA
   ======================================== */
.sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: white;
    border-top: 2px solid var(--accent);
    padding: var(--space-md) 0;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
}

.sticky-cta.visible {
    transform: translateY(0);
}

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

.sticky-cta-text {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-weight: 600;
    color: var(--text);
}

.sticky-cta-text .icon {
    width: 24px;
    height: 24px;
    color: var(--accent);
}

/* ========================================
   EXIT POPUP
   ======================================== */
.exit-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.exit-popup.visible {
    display: flex;
}

.exit-popup-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
}

.exit-popup-content {
    position: relative;
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    max-width: 480px;
    width: 90%;
    text-align: center;
    animation: popupIn 0.3s ease;
}

@keyframes popupIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.exit-popup-close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    padding: var(--space-sm);
}
.exit-popup-close .icon {
    width: 24px;
    height: 24px;
}

.exit-popup-icon {
    font-size: 3rem;
    margin-bottom: var(--space-md);
}

.exit-popup-content h2 {
    margin-bottom: var(--space-sm);
}

.exit-popup-content p {
    margin-bottom: var(--space-lg);
}

.exit-popup-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: var(--space-md);
    margin-bottom: 0;
}

/* ========================================
   REVEAL ON SCROLL
   ======================================== */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animation for children */
.reveal-stagger > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.reveal-stagger.revealed > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.revealed > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger.revealed > *:nth-child(3) { transition-delay: 0.2s; }
.reveal-stagger.revealed > *:nth-child(4) { transition-delay: 0.3s; }
.reveal-stagger.revealed > *:nth-child(5) { transition-delay: 0.4s; }
.reveal-stagger.revealed > *:nth-child(6) { transition-delay: 0.5s; }
.reveal-stagger.revealed > * {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   FOOTER
   ======================================== */
.site-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: 1.5fr 1fr 1fr 1fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-2xl);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}
.footer-logo .logo-icon {
    font-size: 1.5rem;
}
.footer-logo .logo-text {
    color: white;
    font-weight: 500;
}
.footer-logo .logo-text strong {
    color: var(--secondary);
}

.footer-desc {
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.5);
}

.footer-col h3 {
    color: white;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
    font-family: var(--font-body);
}

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

.footer-col ul li {
    margin-bottom: var(--space-sm);
}

.footer-col ul a {
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
    transition: color var(--transition);
}

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

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: var(--space-lg);
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.3);
}
.footer-bottom p {
    color: rgba(255,255,255,0.3);
    margin: 0;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-desc {
        margin: 0 auto var(--space-xl);
    }
    .hero-ctas {
        justify-content: center;
    }
    .hero-stats {
        justify-content: center;
    }
    .hero-visual {
        display: none;
    }
    .info-block {
        grid-template-columns: 1fr;
    }
    .info-block.reverse {
        direction: ltr;
    }
    .simulator-grid {
        grid-template-columns: 1fr;
    }
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }
    .nav-list {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: var(--space-lg);
        gap: var(--space-md);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
    }
    .nav-list.nav-open {
        display: flex;
    }
    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }
    .grid-4 {
        grid-template-columns: 1fr;
    }
    .hero {
        padding: var(--space-2xl) 0;
        min-height: 70vh;
    }
    .hero-stats {
        flex-direction: column;
        gap: var(--space-md);
    }
    .section {
        padding: var(--space-2xl) 0;
    }
    .sticky-cta-text span {
        display: none;
    }
    .sticky-cta-inner {
        justify-content: center;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .aides-table {
        font-size: 0.85rem;
    }
    .aides-table th,
    .aides-table td {
        padding: var(--space-sm) var(--space-md);
    }
    .devis-features {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    .hero-ctas {
        flex-direction: column;
    }
    .hero-ctas .btn {
        width: 100%;
        justify-content: center;
    }
    .alpha-filter a,
    .alpha-filter span {
        width: 32px;
        height: 32px;
        font-size: 0.75rem;
    }
    .btn-lg {
        padding: 14px 24px;
        font-size: 1rem;
    }
}

/* Body padding for sticky footer */
body {
    padding-bottom: 80px;
}