/**
 * Styles - Installation de Fenêtres France
 * Mobile-first, lightweight design
 */

:root {
    --primary-color: #1b3a6b;      /* Navy professionnel */
    --primary-dark: #122850;       /* Hover navy */
    --secondary-color: #e07b39;    /* Amber CTA (Leroy Merlin, Amazon) */
    --secondary-dark: #c46830;     /* Hover amber */
    --text-color: #2d3748;         /* Charcoal doux */
    --text-light: #64748b;         /* Gris secondaire */
    --border-color: #e2e8f0;       /* Bordure subtile */
    --bg-light: #f8fafc;           /* Fond légèrement bleuté */
    --bg-white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-padding-top: 110px; /* Compense le header sticky (~85px) + marge visuelle */
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

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

/* Header */
header {
    background: white;
    border-top: 4px solid var(--primary-color);
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
    margin-bottom: 30px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

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

header h1,
header .logo {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 24px;
    font-weight: bold;
}

.contact-phone {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.contact-phone:hover {
    text-decoration: underline;
}

.tagline {
    color: #666;
    margin-top: 5px;
}

/* Breadcrumb */
.breadcrumb {
    margin-bottom: 20px;
    color: #666;
    font-size: 14px;
}

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

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Hero 2 colonnes */
.hero-two-columns {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
    padding: 40px;
    background: var(--bg-light);
    border-radius: 10px;
    align-items: start;
}

.hero-left h1 {
    color: var(--primary-color);
    font-size: 32px;
    margin-bottom: 15px;
}

.hero-left h2 {
    font-size: 20px;
    color: var(--text-color);
    margin-bottom: 25px;
    font-weight: normal;
}

.arguments {
    margin: 25px 0;
}

.argument {
    font-size: 16px;
    margin-bottom: 12px;
    color: var(--text-color);
    font-weight: 500;
}

.reviews {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.stars {
    color: #ffc107;
    font-size: 20px;
    letter-spacing: 2px;
}

.review-text {
    color: #666;
    font-size: 14px;
}

/* Formulaire */
.form-container {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.form-container h3 {
    text-align: center;
    color: white;
    background: var(--primary-color);
    margin: -30px -30px 20px -30px;
    padding: 14px 20px;
    border-radius: 8px 8px 0 0;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.form-errors {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    border-radius: 6px;
    padding: 10px 15px;
    margin-bottom: 15px;
}

.form-errors p {
    color: #dc2626;
    font-size: 0.9rem;
    margin: 3px 0;
}

.lead-form input,
.lead-form select {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.cta-button {
    width: 100%;
    padding: 15px;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.cta-button:hover {
    background: var(--primary-dark);
}

/* Badges de confiance */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    padding: 20px 0;
    margin-bottom: 40px;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.badge {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-light);
}

/* Hero homepage */
.hero {
    background: linear-gradient(135deg, #1b3a6b 0%, #0f2444 100%);
    color: white;
    padding: 40px;
    border-radius: 10px;
    margin-bottom: 40px;
}

.hero h1,
.hero h2 {
    color: white;
    border-bottom: none;
    margin-bottom: 15px;
}

.hero p {
    font-size: 18px;
    margin-bottom: 25px;
}

.hero .lead-form {
    background: white;
    padding: 30px;
    border-radius: 8px;
    margin: 20px 0;
}

.hero .lead-form input,
.hero .lead-form select,
.hero .lead-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 16px;
    color: var(--text-color);
}

.hero .lead-form button {
    width: 100%;
    padding: 15px;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.hero .lead-form button:hover {
    background: var(--secondary-dark);
}

/* Bénéfices */
.benefits {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.benefit {
    flex: 1;
    min-width: 150px;
    text-align: center;
    font-weight: 500;
}

/* Grilles villes / départements */
.city-grid,
.dept-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

/* Grille établissements (3 colonnes max) */
.business-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 20px 0;
}

.city-card,
.dept-card {
    display: block;
    padding: 15px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-color);
    text-align: center;
    transition: all 0.3s;
}

.city-card:hover,
.dept-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.dept-card strong {
    display: block;
    color: var(--primary-color);
    font-size: 20px;
    margin-bottom: 5px;
}

/* Cartes établissements */
.business-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-top: 3px solid var(--primary-color);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: box-shadow 0.2s;
}

.business-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.business-card h3 {
    color: var(--primary-color);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.business-card .address,
.business-card .phone,
.business-card .website {
    margin: 6px 0;
    font-size: 13px;
    color: #555;
}

.business-card .website a {
    color: var(--primary-color);
    text-decoration: none;
    word-break: break-word;
}

.business-card .website a:hover {
    text-decoration: underline;
}

/* Sections */
section {
    margin-bottom: 50px;
}

section h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

/* Section SEO avec image */
.seo-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    background: var(--bg-light);
    padding: 40px;
    border-radius: 8px;
    margin-bottom: 40px;
}

.seo-text h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 24px;
}

.seo-text h3 {
    color: var(--text-color);
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 20px;
}

.seo-text h4 {
    color: var(--primary-color);
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 18px;
}

.seo-text p {
    line-height: 1.8;
    margin-bottom: 15px;
}

.seo-image {
    position: sticky;
    top: 20px;
    align-self: start;
}

.seo-image img {
    width: 100%;
    height: 340px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* CTA final */
.final-cta {
    background: linear-gradient(135deg, #1b3a6b 0%, #0f2444 100%);
    color: white;
    text-align: center;
    padding: 50px 40px;
    border-radius: 10px;
    margin-bottom: 50px;
}

.final-cta h2 {
    color: white;
    border-bottom: none;
    font-size: 28px;
    margin-bottom: 15px;
}

.final-cta p {
    font-size: 18px;
    margin-bottom: 25px;
}

.cta-button-large {
    display: inline-block;
    padding: 18px 40px;
    background: var(--secondary-color);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 20px;
    font-weight: bold;
    transition: background 0.3s;
}

.cta-button-large:hover {
    background: var(--secondary-dark);
}

/* Section contenu (homepage) */
.content {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 8px;
}

.content h3 {
    color: var(--primary-color);
    margin-top: 20px;
    margin-bottom: 10px;
}

.content ul {
    margin-left: 20px;
    margin-top: 10px;
}

.content li {
    margin-bottom: 8px;
}

/* Footer */
footer {
    background: var(--bg-light);
    border-top: 1px solid var(--border-color);
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 30px;
}

.footer-column h4 {
    color: var(--text-color);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.footer-column a {
    display: block;
    color: #666;
    text-decoration: none;
    margin-bottom: 8px;
    font-size: 14px;
}

.footer-column a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: #666;
    font-size: 14px;
}

footer .container > p {
    text-align: center;
    color: #666;
    font-size: 14px;
    margin-bottom: 6px;
}

.footer-bottom a {
    color: var(--primary-color);
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* Responsive établissements */
@media (max-width: 1024px) {
    .business-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .business-list { grid-template-columns: 1fr; }
}

/* Responsive mobile */
@media (max-width: 640px) {
    .hero-two-columns {
        grid-template-columns: 1fr;
        padding: 25px 20px;
        gap: 30px;
    }

    .hero-left h1 {
        font-size: 24px;
    }

    .hero-left h2 {
        font-size: 16px;
    }

    .form-container {
        padding: 20px;
    }

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

    .trust-badges {
        gap: 15px;
    }

    .seo-content {
        grid-template-columns: 1fr;
        padding: 25px 20px;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero {
        padding: 25px 20px;
    }

    .hero .lead-form {
        padding: 20px;
    }

    .benefits {
        flex-direction: column;
    }

    .city-grid,
    .dept-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .final-cta {
        padding: 30px 20px;
    }

    .cta-button-large {
        padding: 15px 30px;
        font-size: 18px;
    }
}

/* =============================================================
   Navigation (header sticky)
   ============================================================= */
.main-nav { display: flex; align-items: center; gap: 24px; }
.nav-link { color: var(--text-color); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav-link:hover { color: var(--primary-color); }
.nav-cta {
    background: var(--secondary-color); color: white;
    padding: 12px 28px; border-radius: 6px; font-size: 18px;
    font-weight: 400; text-decoration: none;
    transition: background 0.2s;
}
.nav-cta:hover { background: var(--secondary-dark); color: white; text-decoration: none; }

/* Hamburger mobile */
.mobile-menu-btn {
    display: none; background: none; border: none; cursor: pointer;
    flex-direction: column; gap: 5px; padding: 4px;
}
.mobile-menu-btn span { display: block; width: 24px; height: 2px; background: var(--text-color); border-radius: 2px; }
.mobile-menu { display: none; padding: 16px 0; border-top: 1px solid var(--border-color); }
.mobile-menu.active { display: flex; flex-direction: column; gap: 12px; }
.mobile-menu a { color: var(--text-color); text-decoration: none; font-size: 16px; padding: 4px 0; }

@media (max-width: 768px) {
    .main-nav { display: none; }
    .mobile-menu-btn { display: flex; }
}

/* =============================================================
   Section Services
   ============================================================= */
.services-section { margin-bottom: 50px; }
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 20px;
}
.service-card {
    background: white; border-radius: 12px;
    overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: transform 0.25s, box-shadow 0.25s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.service-image { width: 100%; height: 220px; object-fit: cover; }
.service-content { padding: 24px; }
.service-content h3 { color: var(--primary-color); margin-bottom: 10px; font-size: 18px; }
.service-content p { color: var(--text-light); line-height: 1.6; }
@media (max-width: 640px) { .services-grid { grid-template-columns: 1fr; } }

/* =============================================================
   Bannière CTA intermédiaire
   ============================================================= */
.mid-cta {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-dark) 100%);
    padding: 50px 40px; border-radius: 10px;
    text-align: center; margin-bottom: 50px;
}
.mid-cta h2 { color: white; border-bottom: none; font-size: 26px; margin-bottom: 12px; }
.mid-cta p { color: rgba(255,255,255,0.9); font-size: 16px; margin-bottom: 25px; }
.btn-white {
    display: inline-block; padding: 16px 36px;
    background: white; color: var(--secondary-color);
    border-radius: 6px; font-size: 17px; font-weight: 700;
    text-decoration: none; transition: background 0.2s, color 0.2s;
}
.btn-white:hover { background: var(--primary-color); color: white; }

/* =============================================================
   Section FAQ (accordion <details>)
   ============================================================= */
.faq-section { margin-bottom: 50px; }
.faq-list {
    margin-top: 20px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
}
.faq-item {
    background: white;
    border-bottom: 1px solid var(--border-color);
}
.faq-item:last-child { border-bottom: none; }
.faq-item summary {
    padding: 18px 24px;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-color);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    transition: background 0.15s;
    user-select: none;
}
.faq-item summary:hover { background: var(--bg-light); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+';
    font-size: 22px;
    color: var(--primary-color);
    font-weight: 300;
    flex-shrink: 0;
    margin-left: 16px;
    line-height: 1;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item[open] > summary {
    color: var(--primary-color);
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
}
.faq-answer {
    padding: 18px 24px 20px;
    color: var(--text-light);
    line-height: 1.75;
    font-size: 15px;
    background: white;
}

/* =============================================================
   Page légale (mentions légales / confidentialité)
   ============================================================= */
.hero-legal {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: white;
    padding: 50px 0;
    text-align: center;
    margin-bottom: 0;
}
.hero-legal h1 {
    color: white;
    font-size: 2.2rem;
    font-weight: 700;
    border-bottom: none;
    margin-bottom: 0;
}
.legal-breadcrumb {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 16px;
    color: rgba(255,255,255,0.75);
    font-size: 14px;
}
.legal-breadcrumb a { color: rgba(255,255,255,0.75); text-decoration: none; }
.legal-breadcrumb a:hover { color: white; }
.legal-content {
    background: white;
    padding: 60px 0 80px;
}
.legal-text {
    max-width: 860px;
    margin: 0 auto;
    line-height: 1.8;
}
.legal-text h2 {
    color: var(--primary-color);
    margin-top: 40px;
    margin-bottom: 14px;
    font-size: 1.35rem;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border-color);
}
.legal-text h2:first-child { margin-top: 0; }
.legal-text h3 {
    color: var(--text-color);
    margin-top: 20px;
    margin-bottom: 8px;
    font-size: 1.05rem;
    font-weight: 600;
}
.legal-text p { margin-bottom: 12px; color: var(--text-color); }
.legal-text strong { color: var(--primary-dark); }
.legal-text a { color: var(--primary-color); }
.legal-text a:hover { text-decoration: underline; }
.legal-text ul { margin: 0 0 14px 22px; }
.legal-text ul li { margin-bottom: 5px; color: var(--text-color); }
@media (max-width: 768px) {
    .hero-legal h1 { font-size: 1.7rem; }
    .legal-content { padding: 40px 0 60px; }
}

/* =============================================================
   Formulaire 2 étapes
   ============================================================= */
.form-step { display: none; }
.form-step.active { display: block; }

.step-indicator {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 18px;
}
.step-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--border-color);
    transition: background 0.3s;
}
.step-dot.active { background: var(--primary-color); }

.form-back-btn {
    display: inline-block;
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 14px;
    cursor: pointer;
    padding: 0;
    margin-bottom: 12px;
    font-weight: 500;
}
.form-back-btn:hover { text-decoration: underline; }

.form-next-btn {
    width: 100%;
    padding: 15px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}
.form-next-btn:hover { background: var(--primary-dark); }

.consent-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 12px;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 15px;
    cursor: pointer;
}
.consent-label input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
    width: 16px !important;
    min-width: 16px;
    height: 16px;
    margin-bottom: 0;
    padding: 0;
}

.lead-form label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 4px;
}

/* =============================================================
   Page Merci + Spinner ViteUnDevis
   ============================================================= */
.merci-container {
    max-width: 650px;
    margin: 40px auto;
    text-align: center;
    padding: 40px 20px;
}
.merci-container h1 {
    color: var(--primary-color);
    font-size: 28px;
    margin-bottom: 15px;
}
.merci-container p {
    color: var(--text-color);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}
.merci-check {
    width: 70px; height: 70px;
    background: #22c55e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 36px;
    color: white;
}
.vud-spinner-wrap {
    margin: 30px auto;
    max-width: 500px;
    background: var(--bg-light);
    border-radius: 8px;
    padding: 25px;
    border: 1px solid var(--border-color);
}
