/* ==========================================================================
   1. Variables & Paramètres globaux
   ================================================================---------- */
:root {
    --primary: #EB2400;
    --primary-dark: #DE2502;
    --blue-900: #1e3a8a;
    --slate-900: #292828;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-600: #4b5563;
    --gray-800: #1f2937;
    --gray-900: #111827;
}

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

html {
    scroll-behavior: smooth;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 18px;
}

body {
    background-color: var(--gray-50);
    color: var(--gray-800);
    line-height: 1.5;
    padding-bottom: 4rem;
}

@media (min-width: 1024px) {
    body { padding-bottom: 0; }
}

/* ==========================================================================
   2. Accessibilité & Utilitaires
   ================================================================---------- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.sr-only:focus {
    position: static;
    width: auto;
    height: auto;
    padding: 1rem;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
    background-color: var(--primary);
    color: white;
    z-index: 50;
}

.container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
}
@media (min-width: 640px) { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

/* ==========================================================================
   3. Header & Navigation
   ================================================================---------- */
.site-header {
    background: white;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 40;
}

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

.logo {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--gray-600);
    text-decoration: none;
}
@media (min-width: 640px) { .logo { font-size: 1.5rem; } }
.logo span { color: var(--primary); }

.desktop-nav {
    display: none;
    gap: 2rem;
    font-weight: 500;
    color: var(--gray-600);
}
.desktop-nav a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}
.desktop-nav a:hover { color: var(--primary); }
@media (min-width: 1024px) { .desktop-nav { display: flex; } }

.lang-switcher {
    display: flex;
    align-items: center;
    background: var(--gray-100);
    padding: 0.25rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: bold;
    border: 1px solid var(--gray-200);
}
.lang-switcher a {
    padding: 0.35rem 0.625rem;
    border-radius: 0.375rem;
    text-decoration: none;
    color: var(--gray-600);
    transition: all 0.2s;
}
.lang-switcher a.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.lang-switcher a:hover:not(.active) { color: var(--primary); }

.btn-primary {
    background-color: var(--primary);
    color: white;
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.2s, box-shadow 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
}
@media (min-width: 640px) { .btn-primary { font-size: 1rem; padding: 0.625rem 1.25rem; } }
.btn-primary:hover { background-color: var(--primary-dark); }

.header-phone-wrapper {
    display: none;
}
@media (min-width: 640px) {
    .header-phone-wrapper {
        display: block;
    }
}

.menu-btn {
    display: block;
    background: none;
    border: none;
    padding: 0.5rem;
    color: var(--gray-600);
    cursor: pointer;
    border-radius: 0.5rem;
}
.menu-btn:hover { color: var(--primary); }
@media (min-width: 1024px) { .menu-btn { display: none; } }

.mobile-menu {
    display: none;
    background: white;
    border-bottom: 1px solid var(--gray-200);
    padding: 0.75rem 1rem 1.5rem 1rem;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}
.mobile-menu:not(.hidden) { display: block; }
.mobile-menu a.mobile-link {
    display: block;
    padding: 0.5rem 0;
    color: var(--gray-700);
    text-decoration: none;
    border-bottom: 1px solid var(--gray-100);
    font-weight: 500;
}
.mobile-menu a.mobile-link:hover { color: var(--primary); }
@media (min-width: 1024px) { .mobile-menu { display: none !important; } }

/* ==========================================================================
   4. Section Hero
   ================================================================---------- */
.hero-section {
    position: relative;
    background-color: var(--slate-900);
    color: white;
    padding: 3rem 0;
    overflow: hidden;
}
@media (min-width: 640px) { .hero-section { padding: 4rem 0; } }
@media (min-width: 1024px) { .hero-section { padding: 6rem 0; } }

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(3, 7, 18, 0.85);
    background: linear-gradient(to right, rgba(3, 7, 18, 0.4), rgba(15, 23, 42, 0.5), rgba(3, 7, 18, 0.6));
}

.hero-grid {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: center;
}
@media (min-width: 1024px) {
    .hero-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 3rem; }
    .hero-content { grid-column: span 7 / span 7; }
    .hero-form-wrapper { grid-column: span 5 / span 5; }
}

.badge {
    display: inline-block;
    background-color: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.375rem 1rem;
    border-radius: 9999px;
    border: 1px solid rgba(96, 165, 250, 0.3);
    backdrop-filter: blur(4px);
}
@media (min-width: 640px) { .badge { font-size: 0.875rem; } }

.hero-title {
    font-size: 1.875rem;
    font-weight: 800;
    line-height: 1.25;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}
@media (min-width: 640px) { .hero-title { font-size: 3rem; } }
@media (min-width: 1024px) { .hero-title { font-size: 3.75rem; } }
.hero-title span { color: #60a5fa; }

.hero-desc {
    font-size: 1rem;
    color: #e2e8f0;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}
@media (min-width: 640px) { .hero-desc { font-size: 1.125rem; } }

.hero-box {
    background-color: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(51, 65, 85, 0.8);
    padding: 1.25rem;
    border-radius: 0.75rem;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
}
@media (min-width: 640px) { .hero-box { padding: 1.5rem; } }
.hero-box p.box-title { font-weight: bold; color: white; font-size: 1rem; }
@media (min-width: 640px) { .hero-box p.box-title { font-size: 1.125rem; } }
.hero-box ul { list-style: none; margin-top: 0.75rem; display: flex; flex-direction: column; gap: 0.5rem; }
.hero-box li { display: flex; align-items: flex-start; gap: 0.75rem; color: #cbd5e1; font-size: 0.875rem; }
@media (min-width: 640px) { .hero-box li { font-size: 1rem; } }

.form-card {
    background: white;
    color: var(--gray-900);
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid var(--gray-100);
}
@media (min-width: 640px) { .form-card { padding: 2rem; } }

.form-group { margin-bottom: 1rem; }
.form-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 0.25rem;
}
@media (min-width: 640px) { .form-group label { font-size: 0.875rem; } }

.form-control {
    width: 100%;
    padding: 0.625rem 1rem;
    border: 1px solid var(--gray-200);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    background: white;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

textarea.form-control { resize: vertical; }

/* ==========================================================================
   5. Sections Communes (Avantages, Processus, Biens, Contact)
   ================================================================---------- */
.section-padding { padding: 4rem 0; }
@media (min-width: 640px) { .section-padding { padding: 5rem 0; } }

.section-header {
    text-align: center;
    max-width: 48rem;
    margin: 0 auto 3rem auto;
}
.section-header span {
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.75rem;
}
@media (min-width: 640px) { .section-header span { font-size: 0.875rem; } }
.section-header h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-top: 0.5rem;
}
@media (min-width: 640px) { .section-header h2 { font-size: 2.25rem; } }
.section-header p {
    font-size: 1rem;
    color: var(--gray-600);
    margin-top: 1rem;
    line-height: 1.6;
}
@media (min-width: 640px) { .section-header p { font-size: 1.125rem; } }

/* Grilles */
.grid-4 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 640px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-4 { grid-template-columns: repeat(4, 1fr); gap: 2rem; } }

.grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

/* Cartes Avantages */
.card-feature {
    background: var(--gray-50);
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid #f1f5f9;
    transition: box-shadow 0.2s;
}
@media (min-width: 640px) { .card-feature { padding: 2rem; } }
.card-feature:hover { box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1); }
.card-icon {
    width: 3rem;
    height: 3rem;
    background-color: #dbeafe;
    color: var(--primary);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
}
.card-feature h3 { font-size: 1.25rem; font-weight: bold; margin-bottom: 0.75rem; }
.card-feature p { color: var(--gray-600); font-size: 0.875rem; line-height: 1.6; }
@media (min-width: 640px) { .card-feature p { font-size: 1rem; } }

/* Section Processus (Thème Sombre) */
.dark-section {
    background-color: var(--slate-900);
    color: white;
}
.dark-section .section-header h2 { color: white; }
.dark-section .section-header span { color: #60a5fa; }
.dark-section .section-header p { color: #94a3b8; }

.card-process {
    position: relative;
    background-color: var(--slate-800);
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid rgba(51, 65, 85, 0.8);
    transition: border-color 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
@media (min-width: 640px) { .card-process { padding: 2rem; } }
.card-process:hover { border-color: rgba(59, 130, 246, 0.5); }
.process-icon {
    width: 3rem;
    height: 3rem;
    background-color: var(--primary);
    color: white;
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: bold;
    transition: background-color 0.3s, color 0.3s;
}
.card-process:hover .process-icon {
    background-color: var(--primary-dark);
    color: white;
}

/* Cartes Biens Immobiliers */
.property-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    transition: all 0.3s;
    border: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
}
.property-card:hover { box-shadow: 0 20px 25px -5px rgba(0,0,0,0.15); }
.property-img-wrapper {
    position: relative;
    height: 14rem;
    overflow: hidden;
}
.property-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.property-card:hover .property-img-wrapper img { transform: scale(1.05); }
.property-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(37, 99, 235, 0.9);
    backdrop-filter: blur(4px);
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 0.375rem;
}
.property-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
}
@media (min-width: 640px) { .property-content { padding: 2rem; } }

/* Section Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}
@media (min-width: 1024px) {
    .contact-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
    .contact-info { grid-column: span 5 / span 5; }
    .contact-form-wrapper { grid-column: span 7 / span 7; }
}

/* ==========================================================================
   6. Footer & Éléments Fixes (Mobile CTA / Cookies)
   ================================================================---------- */
.site-footer {
    background-color: var(--slate-900);
    color: #FFFFFF;
    padding: 3rem 0;
    border-top: 1px solid var(--slate-800);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }

.footer-link {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s ease;
}
.footer-link:hover {
    color: white;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border: 1px solid var(--primary);
    transition: all 0.2s ease;
}
.social-icon:hover {
    background-color: var(--primary-dark);
    color: white;
    border-color: var(--primary);
}

.mobile-cta-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid var(--gray-200);
    padding: 0.75rem;
    display: flex;
    gap: 0.75rem;
    z-index: 50;
}
@media (min-width: 1024px) { .mobile-cta-bar { display: none; } }

.cookie-banner {
    position: fixed;
    bottom: 4.5rem;
    left: 0.75rem;
    right: 0.75rem;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    color: white;
    padding: 1rem;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    border: 1px solid rgba(51, 65, 85, 0.8);
    z-index: 60;
    transition: all 0.3s ease-in-out;
}
@media (min-width: 640px) { .cookie-banner { bottom: 5rem; padding: 1.25rem; } }
@media (min-width: 768px) {
    .cookie-banner {
        left: 1.5rem;
        right: auto;
        max-width: 28rem;
        bottom: 1.5rem;
    }
}
.cookie-banner.hidden { display: none; }
.cookie-banner.opacity-0 { opacity: 0; transform: translateY(1rem); }