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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #ffffff;
    color: #333;
    line-height: 1.6;
}

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

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: #003366;
    color: #fff;
    padding: 10px 16px;
    z-index: 2000;
}

.skip-link:focus {
    left: 10px;
}

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid #eee;
    z-index: 1000;
    padding: 15px 0;
    backdrop-filter: blur(8px);
}

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

.header-left {
    display: flex;
    align-items: center;
    gap: 28px;
}

.logo-link {
    text-decoration: none;
    color: inherit;
}

.logo {
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -1px;
    margin-bottom: 0;
}

.logo span,
.hero-text h2,
.hero-text h1,
.page-intro h1,
.content-card h2,
.footer-col h2,
.btn-secondary,
.nav-menu a:hover,
.phone-link:hover {
    color: #003366;
}

.nav-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.nav-menu a {
    text-decoration: none;
    color: #666;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s;
}

.header-right {
    text-align: right;
}

.phone-link {
    display: block;
    text-decoration: none;
    color: #333;
    font-weight: 700;
    margin-bottom: 8px;
}

.btn-cta,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    min-height: 44px;
}

.btn-cta {
    background: #003366;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-cta:hover {
    background: #004a94;
}

.content-wrapper {
    margin-top: 120px;
    padding: 40px 20px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    min-height: 80vh;
}

.page-intro {
    max-width: 860px;
    margin: 0 auto 30px;
    text-align: center;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.82rem;
    font-weight: 700;
    color: #003366;
    margin-bottom: 8px;
}

.page-intro h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.15;
    margin-bottom: 16px;
}

.lead {
    font-size: 1.08rem;
    color: #5c6670;
}

.grid-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.placeholder-img {
    background: #f4f4f4;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    border-radius: 8px;
    color: #999;
}

.simple-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
}

.simple-form input,
.simple-form select {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.btn-search {
    background: #333;
    color: #fff;
    border: none;
    padding: 12px;
    cursor: pointer;
}

.hero-section {
    display: flex;
    align-items: center;
    gap: 50px;
    padding: 20px 0 40px;
}

.hero-image,
.hero-text {
    flex: 1;
}

.hero-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.hero-text h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-text p {
    font-size: 1.05rem;
    color: #555;
    margin-bottom: 18px;
}

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

.btn-secondary {
    background: transparent;
    border: 2px solid #003366;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: #003366;
    color: white;
}

.content-section,
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    position: relative;
}

.content-card,
.card-dark,
.card-light,
.card-full-width,
.legal-content {
    border-radius: 14px;
    padding: 28px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.04);
}

.content-card,
.card-light,
.card-full-width,
.legal-content {
    background: #fff;
    border: 1px solid #e9edf2;
}

.card-dark {
    background: #003366;
    color: #fff;
}

.card-dark h2,
.card-dark h3 {
    color: #fff;
}

.content-card h2,
.card-light h2,
.card-full-width h2,
.legal-content h1,
.legal-content h2 {
    margin-bottom: 16px;
}

.feature-list,
.list-dark,
.list-white,
.legal-content ul,
.modern-numbered-list {
    padding-left: 20px;
}

.feature-list li,
.list-dark li,
.list-white li,
.legal-content li,
.modern-numbered-list li {
    margin-bottom: 12px;
}

.list-white li {
    color: rgba(255, 255, 255, 0.92);
}

.faq-item + .faq-item {
    margin-top: 16px;
}

.info-section-full {
    position: relative;
}

.card-content-inner {
    max-width: 900px;
}



.main-footer {
    background: #f4f4f4;
    padding: 60px 20px;
    margin-top: 50px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-col h2 {
    margin-bottom: 20px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
}

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

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    text-decoration: none;
    color: #666;
    font-size: 0.95rem;
}

.footer-col ul li a:hover {
    color: #003366;
}

@media (max-width: 900px) {
    .hero-section,
    .content-section,
    .info-grid,
    .footer-container {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .hero-section {
        text-align: center;
        gap: 30px;
    }

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

@media (max-width: 768px) {
    .main-header {
        position: static;
    }

    .header-container,
    .header-left {
        flex-direction: column;
        text-align: center;
    }

    .header-right {
        text-align: center;
    }

    .content-wrapper {
        margin-top: 0;
        padding-top: 24px;
    }

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

.info-box {
    background-color: #e6f2ff; /* bleu clair */
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
    color: #1f4f82; /* cohérent avec ton thème */
    font-size: 15px;
    line-height: 1.6;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}


/* Image de fond fixe - Balance Notaire */
.content-wrapper {
    margin-top: 120px;
    padding: 40px 20px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    min-height: 80vh;
    position: relative; /* ← Ajout */
}

.bg-balance-fixed {
    position: absolute; /* ← fixed → absolute */
    bottom: 0;
    right: 0;
    width: 350px;
    aspect-ratio: 4 / 3;
    background-image: url('/images/BALANCE-NOTAIRE.png');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: bottom right;
    opacity: 0.30;
    pointer-events: none;
    z-index: 0;
}

@media (max-width: 768px) {
    .bg-balance-fixed {
        width: 220px;
        opacity: 0.40; /* Moins présente sur mobile pour ne pas gêner la lecture */
    }
}

.bg-balance-fixed2 {
    position: absolute; /* ← fixed → absolute */
    bottom: -50px;
    right: -25px;
    width: 350px;
    aspect-ratio: 4 / 3;
    background-image: url('/images/MAISON.png');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: bottom right;
    opacity: 0.30;
    pointer-events: none;
    z-index: 0;
}

@media (max-width: 768px) {
    .bg-balance-fixed2 {
        width: 220px;
        opacity: 0.40; /* Moins présente sur mobile pour ne pas gêner la lecture */
    }
}