/* Styles généraux & Reset */
:root {
    --primary: #3A6E78;
    --primary-hover: #2E5A63;
    --secondary: #C9A66B;
    --secondary-hover: #B8915A;
    --dark: #1C2B2E;
    --light-bg: #F7F5F0;
    --card-bg: rgba(255, 255, 255, 0.85);
    --border: rgba(58, 110, 120, 0.18);
    --shadow: 0 10px 30px -5px rgba(58, 110, 120, 0.10);
    --shadow-hover: 0 20px 40px -5px rgba(58, 110, 120, 0.18);
    --border-radius-lg: 16px;
    --border-radius-md: 10px;
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

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

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

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

/* Animations au scroll */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Header & Navigation */
header.site-header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.logo-icon {
    width: 32px;
    height: 32px;
    color: var(--primary);
}

.logo-text span {
    font-weight: 300;
    color: var(--dark);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-link {
    font-weight: 600;
    font-size: 0.95rem;
    color: #4A5A5D;
    padding: 8px 12px;
    border-radius: var(--border-radius-md);
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
    background: rgba(144, 224, 239, 0.15);
}

.nav-btn {
    background: linear-gradient(135deg, var(--primary), #2E5A63);
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 119, 182, 0.2);
}

.nav-btn:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 119, 182, 0.3);
}

/* Burger Menu Mobile */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--dark);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 100px 20px;
    background: radial-gradient(circle at 10% 20%, rgba(144, 224, 239, 0.2) 0%, rgba(255, 255, 255, 0.5) 90%);
    overflow: hidden;
}

.hero-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    font-size: 3rem;
    line-height: 1.15;
    margin-bottom: 20px;
    color: var(--dark);
}

.hero-content h1 span {
    background: linear-gradient(135deg, var(--primary), #2E5A63);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-tagline {
    font-size: 1.15rem;
    color: #4A5A5D;
    margin-bottom: 30px;
    font-weight: 500;
}

.hero-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #2E5A63);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 119, 182, 0.2);
    border: none;
}

.btn-primary:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 119, 182, 0.3);
}

.btn-secondary {
    background: white;
    color: var(--primary);
    border: 2px solid rgba(0, 119, 182, 0.2);
}

.btn-secondary:hover {
    background: rgba(144, 224, 239, 0.1);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.hero-image-wrapper {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    aspect-ratio: 4 / 3;
}

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

/* Outils Quick Accès */
.tools-strip {
    max-width: 1200px;
    margin: -40px auto 60px auto;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.tool-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: var(--border-radius-lg);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

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

.tool-icon {
    width: 48px;
    height: 48px;
    background: rgba(58, 110, 120, 0.18);
    border-radius: var(--border-radius-md);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.tool-card h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
}

.tool-card p {
    color: #4A5A5D;
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.tool-link {
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--primary);
    align-self: flex-start;
}

/* Section Container */
.section {
    padding: 80px 20px;
}

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

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px auto;
}

.section-badge {
    background: rgba(58, 110, 120, 0.18);
    color: var(--primary-hover);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 15px;
}

.section-header h2 {
    font-size: 2.25rem;
    margin-bottom: 15px;
}

.section-header p {
    color: #4A5A5D;
    font-size: 1.05rem;
}

/* Grid d'articles de blog / Magazine */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

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

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.blog-card-image {
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

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

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

.blog-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-card-meta {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: #6B7B7E;
    margin-bottom: 12px;
}

.blog-card-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-card-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
    line-height: 1.35;
}

.blog-card-excerpt {
    color: #4A5A5D;
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Annuaire des Vitriers - Recherche et Cartes */
.search-wrapper {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--border-radius-lg);
    padding: 30px;
    box-shadow: var(--shadow);
    margin-bottom: 50px;
}

.search-form {
    display: grid;
    grid-template-columns: 2fr 1fr auto;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #4A5A5D;
}

.form-control {
    padding: 12px 16px;
    border: 1.5px solid #E2DDD3;
    border-radius: var(--border-radius-md);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background-color: #F7F5F0;
}

.form-control:focus {
    border-color: var(--primary);
    outline: none;
    background-color: white;
}

.search-btn {
    align-self: flex-end;
    height: 50px;
}

/* Cartes Pros */
.pros-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.pro-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--border-radius-lg);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    gap: 25px;
}

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

.pro-logo-container {
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, #C9A66B 0%, #3A6E78 100%);
    border-radius: var(--border-radius-md);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-family: var(--font-heading);
    font-weight: 800;
    flex-shrink: 0;
}

.pro-details {
    flex-grow: 1;
}

.pro-badge {
    background: rgba(16, 185, 129, 0.1);
    color: #3A6E78;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 8px;
}

.pro-title {
    font-size: 1.35rem;
    margin-bottom: 5px;
}

.pro-location {
    font-size: 0.9rem;
    color: #6B7B7E;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 12px;
}

.pro-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 700;
    color: #C9A66B;
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.pro-rating span {
    color: #6B7B7E;
    font-weight: 400;
    font-size: 0.85rem;
}

.pro-specialties {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.spec-tag {
    background: #EEEAE2;
    color: #4A5A5D;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 50px;
}

.pro-footer-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pro-phone {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Outils interactifs - Simulateur */
.simulator-container {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.simulator-form-side {
    padding: 40px;
    background: #F7F5F0;
    border-right: 1px solid var(--border);
}

.simulator-results-side {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.simulator-form-side h2, .simulator-results-side h2 {
    font-size: 1.75rem;
    margin-bottom: 25px;
}

.simulator-group {
    margin-bottom: 20px;
}

.slider-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.slider-container input[type="range"] {
    flex-grow: 1;
    height: 6px;
    border-radius: 5px;
    background: #E2DDD3;
    outline: none;
    accent-color: var(--primary);
}

.slider-val {
    min-width: 60px;
    text-align: right;
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary);
}

.results-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.result-box {
    background: rgba(144, 224, 239, 0.15);
    border: 1px solid var(--border);
    border-radius: var(--border-radius-md);
    padding: 20px;
    text-align: center;
}

.result-box-label {
    font-size: 0.85rem;
    color: #4A5A5D;
    font-weight: 600;
    margin-bottom: 5px;
}

.result-box-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-hover);
    font-family: var(--font-heading);
}

.result-box-unit {
    font-size: 0.9rem;
    font-weight: 500;
    color: #6B7B7E;
}

.simulation-visualizer {
    background: #0F1B1E;
    border-radius: var(--border-radius-md);
    height: 180px;
    position: relative;
    overflow: hidden;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vis-room {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #1C2B2E 0%, #0F1B1E 100%);
}

.vis-window {
    width: 100px;
    height: 80px;
    background: rgba(58, 110, 120, 0.18);
    border: 3px solid #6B7B7E;
    box-shadow: 0 0 50px rgba(144, 224, 239, 0.5);
    z-index: 10;
    transition: var(--transition);
}

.vis-light-ray {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 150px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 100%);
    transform: translate(-30%, -50%) skewX(-30deg);
    z-index: 5;
    pointer-events: none;
    transition: var(--transition);
}

/* Comparateur de vitrage */
.comparateur-table-wrapper {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 40px;
}

.comparateur-table {
    width: 100%;
    border-collapse: collapse;
}

.comparateur-table th, .comparateur-table td {
    padding: 18px 24px;
    text-align: left;
}

.comparateur-table th {
    background: #F7F5F0;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--dark);
    border-bottom: 2px solid #E2DDD3;
}

.comparateur-table td {
    border-bottom: 1px solid #E2DDD3;
}

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

.comparateur-table tr:hover td {
    background: rgba(144, 224, 239, 0.05);
}

.badge-coefficient {
    background: var(--dark);
    color: white;
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: 700;
}

.badge-coefficient.green {
    background: #3A6E78;
}

.badge-coefficient.orange {
    background: #C9A66B;
}

/* Call to Action */
.cta-banner {
    background: linear-gradient(135deg, var(--primary) 0%, #2E5A63 100%);
    border-radius: var(--border-radius-lg);
    padding: 60px;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(58, 110, 120, 0.18);
}

.cta-banner h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.cta-banner p {
    font-size: 1.15rem;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-btn {
    background: white;
    color: var(--primary-hover);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.cta-btn:hover {
    background: #EDF3F4;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Footer */
footer.site-footer {
    background: #0F1B1E;
    color: #6B7B7E;
    padding: 80px 20px 40px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 50px;
}

.footer-brand p {
    margin-top: 20px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-col h3 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 25px;
    position: relative;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--secondary);
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-col ul a {
    color: #6B7B7E;
    font-size: 0.95rem;
}

.footer-col ul a:hover {
    color: white;
    padding-left: 5px;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.footer-links-bottom {
    display: flex;
    gap: 20px;
}

.footer-links-bottom a {
    color: #6B7B7E;
}

.footer-links-bottom a:hover {
    color: #6B7B7E;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .tools-strip {
        margin-top: -20px;
    }
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 15px;
    }
    .menu-toggle {
        display: block;
    }
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        border-bottom: 1px solid var(--border);
        padding: 20px;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
    }
    .main-nav.active {
        display: block;
    }
    .main-nav ul {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    .nav-btn {
        text-align: center;
    }
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .hero {
        padding: 60px 20px;
    }
    .tools-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .tools-strip {
        margin-top: 0;
    }
    .section {
        padding: 50px 20px;
    }
    .blog-grid {
        grid-template-columns: 1fr;
    }
    .pros-grid {
        grid-template-columns: 1fr;
    }
    .pro-card {
        flex-direction: column;
        gap: 15px;
    }
    .search-form {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .search-btn {
        width: 100%;
    }
    .simulator-container {
        grid-template-columns: 1fr;
    }
    .simulator-form-side {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}