/* ===========================================
   PANNEAU SOLAIRE CHERBOURG — CSS
   =========================================== */

:root {
    --primary: #0077B6;
    --primary-dark: #005A8C;
    --primary-light: #00A8E8;
    --secondary: #90E0EF;
    --secondary-light: #CAF0F8;
    --accent: #F9A825;
    --accent-dark: #F57F17;
    --text: #1A1A2E;
    --text-light: #4A4A6A;
    --text-muted: #7A7A9A;
    --bg: #FFFFFF;
    --bg-alt: #F7FBFE;
    --bg-card: #FFFFFF;
    --border: #E0E8F0;
    --shadow: 0 2px 12px rgba(0,119,182,0.08);
    --shadow-lg: 0 8px 32px rgba(0,119,182,0.12);
    --shadow-hover: 0 12px 40px rgba(0,119,182,0.18);
    --radius: 12px;
    --radius-lg: 20px;
    --radius-sm: 8px;
    --transition: 0.25s ease;
    --font: 'Inter', -apple-system, sans-serif;
    --font-display: 'Plus Jakarta Sans', 'Inter', sans-serif;
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.7; font-size: 16px; }
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); }
ul { list-style: none; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); line-height: 1.2; color: var(--text); }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 3vw, 1.6rem); font-weight: 700; }
h4 { font-size: 1.1rem; font-weight: 600; }

/* CONTAINER */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* BUTTONS */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; border-radius: var(--radius-sm); font-weight: 600; font-size: 1rem; border: none; cursor: pointer; transition: all var(--transition); text-align: center; justify-content: center; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-secondary { background: var(--secondary-light); color: var(--primary-dark); }
.btn-secondary:hover { background: var(--secondary); transform: translateY(-2px); }
.btn-accent { background: var(--accent); color: var(--text); font-weight: 700; }
.btn-accent:hover { background: var(--accent-dark); color: #fff; transform: translateY(-2px); }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-lg { padding: 18px 36px; font-size: 1.1rem; border-radius: var(--radius); }

/* ============ HEADER ============ */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.95); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; color: var(--text); line-height: 1.2; }
.logo strong { color: var(--primary); font-size: 1.05rem; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a { font-size: 0.95rem; font-weight: 500; color: var(--text-light); }
.main-nav a:hover { color: var(--primary); }
.btn-nav { background: var(--primary); color: #fff !important; padding: 10px 22px; border-radius: var(--radius-sm); font-weight: 600; }
.btn-nav:hover { background: var(--primary-dark); color: #fff !important; }
.burger { display: none; background: none; border: none; cursor: pointer; color: var(--text); }

/* ============ HERO ============ */
.hero { position: relative; padding: 80px 0 60px; overflow: hidden; background: linear-gradient(135deg, var(--bg-alt) 0%, var(--secondary-light) 100%); }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-content { position: relative; z-index: 2; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--secondary-light); color: var(--primary-dark); padding: 8px 16px; border-radius: 50px; font-size: 0.85rem; font-weight: 600; margin-bottom: 20px; }
.hero-badge i { color: var(--accent); }
.hero h1 { margin-bottom: 20px; }
.hero h1 span { color: var(--primary); }
.hero-text { font-size: 1.15rem; color: var(--text-light); margin-bottom: 32px; line-height: 1.8; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--border); }
.hero-stat { text-align: center; }
.hero-stat .number { font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: var(--primary); display: block; }
.hero-stat .label { font-size: 0.85rem; color: var(--text-muted); }
.hero-image { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.hero-image img { width: 100%; height: 420px; object-fit: cover; }
.hero-image::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(0,119,182,0.1), transparent); }

/* ============ SECTIONS ============ */
section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-header { text-align: center; max-width: 700px; margin: 0 auto 50px; }
.section-header p { color: var(--text-light); margin-top: 12px; font-size: 1.1rem; }
.section-label { display: inline-flex; align-items: center; gap: 6px; color: var(--primary); font-weight: 600; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; }

/* ============ CARDS GRID ============ */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; transition: all var(--transition); }
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); border-color: var(--secondary); }
.card-icon { width: 52px; height: 52px; border-radius: var(--radius-sm); background: var(--secondary-light); display: flex; align-items: center; justify-content: center; color: var(--primary); margin-bottom: 16px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--text-light); font-size: 0.95rem; }

/* ============ VILLES GRID ============ */
.villes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.ville-link { display: flex; align-items: center; gap: 8px; padding: 14px 18px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); font-weight: 500; color: var(--text); transition: all var(--transition); font-size: 0.93rem; }
.ville-link:hover { background: var(--secondary-light); border-color: var(--primary); color: var(--primary); transform: translateX(4px); }
.ville-link .zip { color: var(--text-muted); font-size: 0.8rem; margin-left: auto; }

/* ============ ENTREPRISE CARD ============ */
.entreprise-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; transition: all var(--transition); }
.entreprise-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.entreprise-card h3 { color: var(--primary); margin-bottom: 4px; }
.entreprise-card .location { color: var(--text-muted); font-size: 0.9rem; display: flex; align-items: center; gap: 6px; margin-bottom: 12px; }
.entreprise-card .description { color: var(--text-light); margin-bottom: 16px; font-size: 0.95rem; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.tag { display: inline-block; padding: 4px 12px; background: var(--secondary-light); color: var(--primary-dark); border-radius: 50px; font-size: 0.8rem; font-weight: 500; }
.tag-gold { background: #FFF8E1; color: var(--accent-dark); }

/* ============ FAQ ============ */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 12px; overflow: hidden; }
.faq-question { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; background: var(--bg-card); border: none; cursor: pointer; font-size: 1rem; font-weight: 600; color: var(--text); text-align: left; transition: background var(--transition); font-family: var(--font); }
.faq-question:hover { background: var(--bg-alt); }
.faq-question i { flex-shrink: 0; transition: transform var(--transition); color: var(--primary); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.3s ease; }
.faq-answer-inner { padding: 0 24px 18px; color: var(--text-light); line-height: 1.8; }
.faq-item.active .faq-answer { max-height: 500px; }
.faq-item.active .faq-question i { transform: rotate(180deg); }

/* ============ LEADRS FORM ============ */
.leadrs-form-wrapper { border-radius: var(--radius); overflow: hidden; background: var(--bg-card); border: 1px solid var(--border); box-shadow: var(--shadow); }
.leadrs-form-wrapper iframe { width: 100%; min-height: 600px; border: none; display: block; }

/* ============ BREADCRUMB ============ */
.breadcrumb { padding: 16px 0; font-size: 0.88rem; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { color: var(--text-light); }
.breadcrumb .sep { margin: 0 8px; color: var(--border); }

/* ============ PAGE HERO (Inner pages) ============ */
.page-hero { padding: 60px 0 40px; background: linear-gradient(135deg, var(--bg-alt), var(--secondary-light)); }
.page-hero h1 { margin-bottom: 12px; }
.page-hero p { color: var(--text-light); font-size: 1.1rem; max-width: 700px; }

/* ============ CONTENT ============ */
.content-section { padding: 60px 0; }
.content-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 48px; }
.content-main h2 { margin: 40px 0 16px; }
.content-main h3 { margin: 28px 0 12px; }
.content-main p { margin-bottom: 16px; color: var(--text-light); }
.content-main ul, .content-main ol { margin: 0 0 16px 24px; color: var(--text-light); }
.content-main li { margin-bottom: 8px; }
.sidebar-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; margin-bottom: 24px; position: sticky; top: 96px; }
.sidebar-card h3 { font-size: 1.1rem; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--secondary); }

/* ============ AVANTAGES Z-PATTERN ============ */
.z-section { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; padding: 60px 0; }
.z-section.reverse { direction: rtl; }
.z-section.reverse > * { direction: ltr; }
.z-image { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.z-image img { width: 100%; height: 320px; object-fit: cover; }

/* ============ STATS BAR ============ */
.stats-bar { background: var(--primary); color: #fff; padding: 40px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-item .stat-number { font-family: var(--font-display); font-size: 2.4rem; font-weight: 800; display: block; }
.stat-item .stat-label { font-size: 0.9rem; opacity: 0.85; }

/* ============ ALPHA LIST ============ */
.alpha-nav { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 32px; justify-content: center; }
.alpha-nav a { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--radius-sm); background: var(--bg-card); border: 1px solid var(--border); font-weight: 600; color: var(--text); transition: all var(--transition); }
.alpha-nav a:hover, .alpha-nav a.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ============ PAGINATION ============ */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.pagination a, .pagination span { display: flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; border-radius: var(--radius-sm); border: 1px solid var(--border); font-weight: 500; color: var(--text); transition: all var(--transition); padding: 0 12px; }
.pagination a:hover { background: var(--secondary-light); border-color: var(--primary); }
.pagination .current { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ============ CTA SECTION ============ */
.cta-section { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; padding: 80px 0; text-align: center; }
.cta-section h2 { color: #fff; margin-bottom: 16px; }
.cta-section p { color: rgba(255,255,255,0.85); max-width: 600px; margin: 0 auto 32px; font-size: 1.1rem; }

/* ============ 404 ============ */
.page-404 { text-align: center; padding: 120px 0; }
.page-404 h1 { font-size: 6rem; color: var(--primary); margin-bottom: 16px; }
.page-404 p { font-size: 1.2rem; color: var(--text-light); margin-bottom: 32px; }

/* ============ FOOTER ============ */
.site-footer { background: var(--text); color: rgba(255,255,255,0.7); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-logo { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 600; margin-bottom: 16px; }
.footer-col h4 { color: #fff; margin-bottom: 16px; font-size: 1rem; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col a { color: rgba(255,255,255,0.6); font-size: 0.9rem; }
.footer-col a:hover { color: var(--secondary); }
.footer-col p { font-size: 0.9rem; line-height: 1.7; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 20px 0; text-align: center; font-size: 0.85rem; }

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

/* ============ SEARCH ============ */
.search-box { position: relative; max-width: 500px; margin: 0 auto 32px; }
.search-box input { width: 100%; padding: 16px 20px 16px 48px; border: 2px solid var(--border); border-radius: var(--radius); font-size: 1rem; font-family: var(--font); transition: border-color var(--transition); background: var(--bg-card); }
.search-box input:focus { outline: none; border-color: var(--primary); }
.search-box i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--text-muted); }

/* ============ RESPONSIVE ============ */
@media (max-width: 968px) {
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero-image { max-height: 300px; }
    .hero-image img { height: 300px; }
    .z-section { grid-template-columns: 1fr; gap: 32px; }
    .z-section.reverse { direction: ltr; }
    .content-grid { grid-template-columns: 1fr; }
    .sidebar-card { position: static; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .main-nav { position: fixed; top: 72px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 24px; gap: 16px; border-bottom: 1px solid var(--border); transform: translateY(-120%); transition: transform 0.3s ease; z-index: 99; box-shadow: var(--shadow-lg); }
    .main-nav.active { transform: translateY(0); }
    .burger { display: block; }
}

@media (max-width: 640px) {
    .hero { padding: 40px 0; }
    section { padding: 50px 0; }
    .hero-stats { gap: 20px; flex-wrap: wrap; }
    .hero-ctas { flex-direction: column; }
    .hero-ctas .btn { width: 100%; }
    .villes-grid { grid-template-columns: 1fr; }
    .cards-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; gap: 20px; }
    .footer-grid { grid-template-columns: 1fr; }
    .alpha-nav a { width: 34px; height: 34px; font-size: 0.85rem; }
    .leadrs-form-wrapper iframe { min-height: 650px; }
}

/* ============ GUIDE CONTENT ============ */
.guide-toc { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-bottom: 40px; }
.guide-toc h3 { margin-bottom: 12px; font-size: 1rem; }
.guide-toc ol { margin-left: 20px; }
.guide-toc li { margin-bottom: 6px; }
.guide-toc a { color: var(--primary); font-weight: 500; }

/* ============ AIDE CARD ============ */
.aide-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; margin-bottom: 24px; }
.aide-card h3 { color: var(--primary); margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.aide-card .montant { display: inline-flex; align-items: center; gap: 6px; background: #E8F5E9; color: #2E7D32; padding: 6px 14px; border-radius: 50px; font-weight: 600; font-size: 0.9rem; margin-bottom: 12px; }
.aide-conditions { margin-top: 12px; }
.aide-conditions li { position: relative; padding-left: 20px; margin-bottom: 6px; color: var(--text-light); }
.aide-conditions li::before { content: '✓'; position: absolute; left: 0; color: #2E7D32; font-weight: bold; }

/* ============ VILLE NEARBY ============ */
.nearby-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }

/* ============ SIMULATEUR ============ */
.simulateur { background: var(--bg-card); border: 2px solid var(--primary); border-radius: var(--radius-lg); padding: 40px; max-width: 600px; margin: 0 auto; }
.simulateur h3 { text-align: center; margin-bottom: 24px; color: var(--primary); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 8px; font-size: 0.95rem; }
.form-group select, .form-group input[type="number"] { width: 100%; padding: 14px 16px; border: 2px solid var(--border); border-radius: var(--radius-sm); font-size: 1rem; font-family: var(--font); transition: border-color var(--transition); background: #fff; }
.form-group select:focus, .form-group input[type="number"]:focus { outline: none; border-color: var(--primary); }
.result-box { background: linear-gradient(135deg, var(--secondary-light), var(--bg-alt)); border-radius: var(--radius); padding: 24px; text-align: center; margin-top: 24px; display: none; }
.result-box.visible { display: block; }
.result-box .big-number { font-family: var(--font-display); font-size: 2.4rem; font-weight: 800; color: var(--primary); }
.result-box .sub { color: var(--text-muted); font-size: 0.9rem; }
/* ============ TÉLÉPHONE ============ */
.btn-phone { background: #16A34A; color: #fff; white-space: nowrap; }
.btn-phone:hover { background: #15803D; color: #fff; transform: translateY(-2px); }
.btn-lg ~ .btn-phone { padding: 18px 36px; font-size: 1.1rem; border-radius: var(--radius); }
.btn-sm ~ .btn-phone, .entreprise-card .btn-phone { padding: 10px 16px; font-size: 0.9rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cta-section .cta-row, .page-404 .cta-row { justify-content: center; }
aside .cta-row > .btn { width: 100%; }
.form-phone { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin-top: 16px; color: var(--text-light); font-weight: 500; }
.main-nav a { white-space: nowrap; }
.btn-nav-phone { display: inline-flex; align-items: center; gap: 6px; background: #16A34A; }
.btn-nav-phone:hover { background: #15803D; }
.page-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.page-hero-grid p { max-width: none; }
@media (max-width: 1150px) {
    .main-nav { gap: 18px; }
    .main-nav a { font-size: 0.9rem; }
    .btn-nav { padding: 10px 14px; }
}
@media (max-width: 968px) {
    .page-hero-grid { grid-template-columns: 1fr; gap: 32px; }
    .btn-nav { width: 100%; text-align: center; justify-content: center; }
}
