:root {
    --brand-primary: #080054;
    --brand-accent: #ff9100;
    --brand-accent-light: #ffb347;
    --gray: #7e8097;
    --border: #ececf3;
    --gradient-accent: linear-gradient(135deg, #ff9100, #ffb347);
    --gradient-hero: linear-gradient(105deg, rgba(8, 0, 84, 0.62) 0%, rgba(8, 0, 84, 0.35) 45%, rgba(8, 0, 84, 0.52) 100%);
    --shadow-primary: 0 25px 70px rgba(8, 0, 84, 0.18);
    --shadow-accent: 0 15px 40px rgba(255, 145, 0, 0.28);
    --overlay-contact: linear-gradient(120deg, rgba(8, 0, 84, 0.65), rgba(8, 0, 84, 0.48));
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.terrain-page {
    font-family: 'Poppins', sans-serif;
    background: #f4f5fc;
    color: #111;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; }
.container { width: min(92%, 1400px); margin-inline: auto; }
section { padding: clamp(72px, 10vw, 110px) 0; }

.terrain-page section[id] { scroll-margin-top: 120px; }
.terrain-page > header {
    position: fixed !important;
    top: 0; left: 0; right: 0;
    z-index: 10050 !important;
}

@media (max-width: 767px) {
    .terrain-page .mobile-menu-btn {
        position: relative;
        z-index: 10060 !important;
    }

    .terrain-page .nav-menu {
        z-index: 10055 !important;
    }
}

/* Boutons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 30px;
    border-radius: 60px;
    font-size: 15px;
    font-weight: 600;
    transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}
.btn-primary {
    background: var(--gradient-accent);
    color: #fff;
    box-shadow: var(--shadow-accent);
}
.btn-primary:hover { transform: translateY(-4px); }
.btn-outline {
    border: 2px solid rgba(255, 255, 255, 0.55);
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
}
.btn-outline:hover { background: #fff; color: var(--brand-primary); }
.btn-dark { background: var(--brand-primary); color: #fff; }
.btn-dark:hover { transform: translateY(-3px); box-shadow: var(--shadow-primary); }
.btn-ghost {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.22); }

/* Hero */
.terrain-hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.terrain-hero__media { position: absolute; inset: 0; z-index: 0; }
.terrain-hero__bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.05);
    animation: terrainKenBurns 24s ease-in-out infinite alternate;
    filter: saturate(1.1) contrast(1.05);
}
@keyframes terrainKenBurns {
    from { transform: scale(1.05) translate(0, 0); }
    to { transform: scale(1.14) translate(-1.5%, -1%); }
}
.terrain-hero__overlay {
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
    pointer-events: none;
}
.terrain-hero__overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 55% at 90% 10%, rgba(255, 145, 0, 0.28), transparent 55%),
        radial-gradient(ellipse 50% 40% at 10% 90%, rgba(255, 145, 0, 0.12), transparent 50%);
}
.terrain-hero__shimmer {
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.06) 50%, transparent 70%);
    background-size: 200% 100%;
    animation: terrainShimmer 8s ease-in-out infinite;
    pointer-events: none;
}
@keyframes terrainShimmer {
    0%, 100% { background-position: 200% 0; }
    50% { background-position: -200% 0; }
}
.terrain-hero .container { position: relative; z-index: 2; padding-top: 110px; padding-bottom: 70px; }
.terrain-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.28);
    padding: 12px 20px;
    border-radius: 60px;
    color: #fff;
    margin-bottom: 28px;
    backdrop-filter: blur(16px);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.04em;
}
.terrain-hero__badge .dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #25d366;
    box-shadow: 0 0 12px rgba(37, 211, 102, 0.8);
    animation: terrainPulse 2s ease-in-out infinite;
}
@keyframes terrainPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.15); }
}
.terrain-hero h1 {
    font-size: clamp(38px, 7vw, 82px);
    line-height: 1.06;
    color: #fff;
    margin-bottom: 22px;
    text-shadow: 0 4px 40px rgba(0, 0, 0, 0.35);
}
.terrain-hero h1 .accent {
    color: var(--brand-accent);
    display: block;
    text-shadow: 0 2px 24px rgba(255, 145, 0, 0.35);
}
.terrain-hero__lead {
    color: rgba(255, 255, 255, 0.94);
    font-size: clamp(16px, 2vw, 20px);
    line-height: 1.85;
    max-width: 680px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}
.terrain-hero__buttons { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 36px; }
.terrain-hero__stats {
    margin-top: clamp(48px, 8vw, 72px);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    max-width: 720px;
}
.terrain-stat {
    padding: 20px 24px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(14px);
    transition: transform 0.4s ease, border-color 0.4s ease;
}
.terrain-stat:hover { transform: translateY(-4px); border-color: rgba(255, 145, 0, 0.45); }
.terrain-stat h3 { font-size: clamp(28px, 3.5vw, 40px); color: var(--brand-accent); }
.terrain-stat p { color: rgba(255, 255, 255, 0.9); margin-top: 6px; font-size: 13px; }

/* Trust bar */
.trust-bar {
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 28px 0;
}
.trust-bar__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(24px, 5vw, 56px);
    align-items: center;
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 14px;
    color: var(--brand-primary);
}
.trust-item i { color: var(--brand-accent); font-size: 20px; }
.trust-stars { color: #fbbf24; letter-spacing: 2px; }

/* Reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1), transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible { 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; }

/* About */
.about-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(40px, 6vw, 72px);
    align-items: center;
}
.about-visual { position: relative; }
.about-frame {
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow-primary);
    aspect-ratio: 4/3;
    background: #e8e9f4;
}
.about-frame img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.about-visual:hover .about-frame img { transform: scale(1.04); }
.about-price-box {
    position: absolute;
    right: clamp(-12px, -2vw, -28px);
    bottom: clamp(-12px, -2vw, -28px);
    background: #fff;
    padding: clamp(20px, 3vw, 32px);
    border-radius: 22px;
    box-shadow: 0 24px 60px rgba(8, 0, 84, 0.15);
    border: 1px solid var(--border);
    min-width: 160px;
}
.about-price-box h4 {
    font-size: clamp(28px, 4vw, 38px);
    color: var(--brand-accent);
    line-height: 1.1;
}
.about-price-box p { color: var(--gray); margin-top: 6px; font-size: 13px; }
.about-content h2 {
    font-size: clamp(32px, 4.5vw, 52px);
    line-height: 1.15;
    color: var(--brand-primary);
    margin-bottom: 24px;
}
.about-content p { color: #555; line-height: 1.95; margin-bottom: 18px; font-size: 16px; }
.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-top: 32px;
}
.feature {
    padding: 20px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 8px 24px rgba(8, 0, 84, 0.04);
    transition: border-color 0.3s, transform 0.3s;
}
.feature:hover { border-color: rgba(255, 145, 0, 0.4); transform: translateY(-2px); }

/* Specs cards */
.specs-section { background: #fafbff; }
.section-title { text-align: center; margin-bottom: clamp(48px, 6vw, 70px); }
.section-title span {
    color: var(--brand-accent);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.16em;
}
.section-title h2 {
    font-size: clamp(32px, 4.5vw, 54px);
    color: var(--brand-primary);
    margin-top: 14px;
    line-height: 1.15;
}
.section-title p { max-width: 720px; margin: 16px auto 0; color: var(--gray); line-height: 1.85; }
.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 24px;
}
.spec-card {
    background: #fff;
    border-radius: 24px;
    padding: 32px 28px;
    border: 1px solid rgba(8, 0, 84, 0.06);
    box-shadow: 0 16px 48px rgba(8, 0, 84, 0.06);
    text-align: center;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.spec-card:hover { transform: translateY(-8px); box-shadow: 0 24px 60px rgba(8, 0, 84, 0.1); }
.spec-card__icon {
    width: 64px; height: 64px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 145, 0, 0.15), rgba(8, 0, 84, 0.08));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: var(--brand-accent);
}
.spec-card h3 { font-size: 22px; color: var(--brand-primary); margin-bottom: 8px; }
.spec-card p { color: var(--gray); font-size: 14px; line-height: 1.7; }

/* Luxury benefits */
.luxury-section {
    background: linear-gradient(135deg, #080054, #120d72);
    position: relative;
    overflow: hidden;
}
.luxury-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(255, 145, 0, 0.14), transparent 50%);
}
.luxury-section .section-title h2,
.luxury-section .section-title p { color: #fff; position: relative; z-index: 1; }
.luxury-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}
.luxury-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 32px 26px;
    border-radius: 24px;
    backdrop-filter: blur(12px);
    transition: transform 0.35s, border-color 0.35s;
}
.luxury-card:hover { transform: translateY(-6px); border-color: rgba(255, 145, 0, 0.45); }
.luxury-card h3 { color: #fff; font-size: 20px; margin-bottom: 12px; }
.luxury-card p { color: rgba(255, 255, 255, 0.78); line-height: 1.75; font-size: 15px; }

/* Location */
.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}
.location-content h2 {
    font-size: clamp(32px, 4vw, 50px);
    color: var(--brand-primary);
    margin-bottom: 22px;
}
.location-content p { color: #666; line-height: 1.9; margin-bottom: 20px; }
.location-list div { margin-bottom: 14px; font-weight: 600; font-size: 15px; }
.map {
    height: min(520px, 55vh);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow-primary);
}
.map iframe { width: 100%; height: 100%; border: none; }

/* FAQ */
.faq-section { background: #fff; }
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
    border: 1px solid var(--border);
    border-radius: 18px;
    margin-bottom: 14px;
    overflow: hidden;
    background: #fafbff;
    transition: border-color 0.3s;
}
.faq-item.is-open { border-color: rgba(255, 145, 0, 0.45); }
.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 24px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    color: var(--brand-primary);
    text-align: left;
}
.faq-question i { color: var(--brand-accent); transition: transform 0.35s ease; }
.faq-item.is-open .faq-question i { transform: rotate(180deg); }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s ease, padding 0.45s ease;
}
.faq-item.is-open .faq-answer { max-height: 280px; }
.faq-answer p {
    padding: 0 24px 22px;
    color: #555;
    line-height: 1.85;
    font-size: 15px;
}

/* Related */
.related-section { background: #fafbff; }
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 28px;
}
.related-card {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(8, 0, 84, 0.06);
    box-shadow: 0 16px 48px rgba(8, 0, 84, 0.06);
    transition: transform 0.4s ease;
}
.related-card:hover { transform: translateY(-8px); }
.related-card img { width: 100%; height: 200px; object-fit: cover; }
.related-card__body { padding: 24px; }
.related-card h3 { font-size: 18px; color: var(--brand-primary); margin-bottom: 8px; }
.related-card p { color: var(--gray); font-size: 14px; line-height: 1.7; margin-bottom: 16px; }

/* Contact CTA */
.contact-cta { position: relative; overflow: hidden; }
.contact-cta__media { position: absolute; inset: 0; z-index: 0; }
.contact-cta__bg { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.05); }
.contact-cta__overlay { position: absolute; inset: 0; background: var(--overlay-contact); }
.contact-cta .container { position: relative; z-index: 2; }
.contact-cta__wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}
.contact-cta__content h2 {
    color: #fff;
    font-size: clamp(36px, 4.5vw, 56px);
    margin-bottom: 22px;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.3);
}
.contact-cta__content p { color: rgba(255, 255, 255, 0.92); line-height: 1.9; margin-bottom: 16px; }
.contact-card {
    background: rgba(255, 255, 255, 0.97);
    padding: 40px;
    border-radius: 28px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(8px);
}
.contact-card .contact-line {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-weight: 600;
    color: var(--brand-primary);
}
.contact-card .contact-line i { color: var(--brand-accent); width: 24px; text-align: center; }
.contact-card .btn { width: 100%; margin-top: 8px; }

/* Icône WhatsApp SVG (fiable sans Font Awesome Brands) */
.wa-svg {
    width: 1.2em;
    height: 1.2em;
    flex-shrink: 0;
    display: inline-block;
    vertical-align: -0.125em;
}
.btn .wa-svg { width: 1.25em; height: 1.25em; }
.contact-line .wa-svg { color: #25d366; }
.footer-social .wa-svg { width: 1.25rem; height: 1.25rem; color: #25d366; }
.footer-social a:hover .wa-svg { color: var(--brand-accent); }

@media (max-width: 1100px) {
    .about-grid, .location-grid, .contact-cta__wrapper { grid-template-columns: 1fr; }
    .about-price-box { right: 0; bottom: -16px; }
}
@media (max-width: 768px) {
    .about-features { grid-template-columns: 1fr; }
    .terrain-hero .container { padding-top: 130px; }
}
@media (prefers-reduced-motion: reduce) {
    .terrain-hero__bg, .terrain-hero__shimmer, .terrain-stat, .reveal { animation: none; transition: none; }
    .terrain-hero__bg { transform: none; }
    .reveal { opacity: 1; transform: none; }
}
