/* ═══ Rapaport Immobilier — Custom Styles ═══ */

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

html {
    scroll-behavior: smooth;
}

/* ── Scroll Reveal ── */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── Hero ── */
.hero-gradient {
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.82) 0%, rgba(37, 99, 235, 0.65) 100%);
}

/* ── Cards ── */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.service-card img {
    transition: transform 0.5s ease;
}

.service-card:hover img {
    transform: scale(1.03);
}

/* ── Feature List Check ── */
.feature-check {
    position: relative;
    padding-left: 1.75rem;
}

.feature-check::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.35rem;
    width: 14px;
    height: 14px;
    background-color: #2563EB;
    border-radius: 50%;
}

.feature-check::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 0.55rem;
    width: 6px;
    height: 3px;
    border-left: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(-45deg);
}

/* ── Hamburger Animation ── */
.is-active .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.is-active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.is-active .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    width: 1.5rem;
    margin-left: 0;
}

/* ── Map ── */
#map {
    z-index: 1;
}

/* ── Availability Badge ── */
.badge-available {
    background-color: #dcfce7;
    color: #166534;
}

.badge-unavailable {
    background-color: #fef2f2;
    color: #991b1b;
}

/* ── Pricing card highlight ── */
.pricing-highlight {
    border: 2px solid #2563EB;
    position: relative;
}

.pricing-highlight::before {
    content: 'Recommended';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #2563EB;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 16px;
    border-radius: 9999px;
}

/* ── Form Focus ── */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #2563EB;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* ── Page Hero ── */
.page-hero {
    background: linear-gradient(135deg, #1e40af 0%, #2563EB 100%);
}

/* ── FAQ Accordion ── */
.faq-item {
    border-top: 1px solid #E5E7EB;
}

.faq-item:last-child {
    border-bottom: 1px solid #E5E7EB;
}

.faq-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1.25rem 0;
    text-align: left;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 500;
    color: #1B1F23;
    transition: color 0.2s ease;
}

.faq-btn:hover {
    color: #2563EB;
}

.faq-btn .faq-icon {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    transition: transform 0.3s ease;
}

.faq-item.is-open .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.is-open .faq-answer {
    max-height: 500px;
    padding-bottom: 1.25rem;
}

/* ── SEO Text Block ── */
.seo-block h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.seo-block p {
    margin-bottom: 1rem;
    line-height: 1.75;
}

.seo-block p:last-child {
    margin-bottom: 0;
}

/* ── Numbered Features ── */
.feature-num-item {
    padding: 1rem 0;
    border-bottom: 1px solid #E5E7EB;
    cursor: pointer;
    transition: all 0.3s ease;
}

.feature-num-item:first-child {
    border-top: 1px solid #E5E7EB;
}

.feature-num-item .feature-num {
    font-size: 0.8rem;
    color: #9CA3AF;
    font-weight: 500;
    margin-bottom: 0.15rem;
}

.feature-num-item h4 {
    font-weight: 700;
    color: #1B1F23;
    font-size: 1rem;
    transition: color 0.2s ease;
}

.feature-num-item:hover h4,
.feature-num-item.is-active h4 {
    color: #2563EB;
}

.feature-num-item .feature-desc {
    font-size: 0.875rem;
    color: #6B7280;
    line-height: 1.6;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease, margin 0.3s ease;
    opacity: 0;
    margin-top: 0;
}

.feature-num-item.is-active .feature-desc {
    max-height: 80px;
    opacity: 1;
    margin-top: 0.4rem;
}

/* ── SEO Dark Block ── */
.seo-dark-block {
    background-color: #1B1F23;
    color: #D1D5DB;
}

.seo-dark-block h2 {
    color: #FFFFFF;
}

.seo-dark-block h3 {
    color: #FFFFFF;
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    margin-top: 1.5rem;
}

.seo-dark-block h3:first-child {
    margin-top: 0;
}

.seo-dark-block p {
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 0.9375rem;
}

.seo-dark-block p:last-child {
    margin-bottom: 0;
}

/* ── Benefits Grid ── */
.benefit-card {
    padding: 2rem 1.5rem;
    border-radius: 0.75rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .hero-gradient {
        background: linear-gradient(180deg, rgba(30, 64, 175, 0.85) 0%, rgba(37, 99, 235, 0.65) 100%);
    }
}
