/* ================================================================
   ImmoGest Pro — Landing page
   Palette alignée sur l'app (violet #6750A4 / lavande / crème)
   ================================================================ */

:root {
    --primary: #6753c9;
    --primary-dark: #4f3db8;
    --primary-deep: #21005d;
    --primary-soft: #ede9fb;
    --primary-softer: #f6f4fd;
    --accent: #2e7d32;
    --ink: #1d1b1e;
    --ink-soft: #49454f;
    --ink-mute: #79747e;
    --bg: #fdfcfb;
    --card: #ffffff;
    --line: #e8e3ef;
    --radius: 20px;
    --font: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --shadow-sm: 0 1px 3px rgba(33, 0, 93, 0.07);
    --shadow-md: 0 8px 24px -8px rgba(33, 0, 93, 0.14);
    --shadow-lg: 0 24px 60px -20px rgba(33, 0, 93, 0.28);
    --grad: linear-gradient(120deg, #6753c9, #9575e8);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    color: var(--ink);
    background-color: var(--bg);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; transition: color .2s ease, background .2s ease, transform .2s ease, box-shadow .2s ease; }

.grad {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ---------------- Header ---------------- */

header {
    background: rgba(253, 252, 251, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--line);
}

.nav-container {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    padding: 0.85rem 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.01em;
}

.logo em { font-style: normal; color: var(--primary); }

.logo-img, .logo-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.9rem;
    list-style: none;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--ink-soft);
}

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

.nav-actions { display: flex; align-items: center; gap: 0.75rem; }

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--card);
    cursor: pointer;
    padding: 0 10px;
}

.nav-toggle span {
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform .25s ease, opacity .25s ease;
}

.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------- Boutons ---------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    font-family: var(--font);
    font-weight: 600;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.btn-primary {
    background: var(--grad);
    color: #fff;
    box-shadow: 0 8px 20px -6px rgba(103, 83, 201, 0.55);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -8px rgba(103, 83, 201, 0.6); }

.btn-ghost {
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--line);
}

.btn-ghost:hover { border-color: var(--primary); background: var(--primary-softer); }

.btn-light {
    background: #fff;
    color: var(--primary-dark);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.35);
}

.btn-light:hover { transform: translateY(-2px); }

.btn-sm { padding: 0.55rem 1.2rem; font-size: 0.9rem; }
.btn-lg { padding: 0.9rem 1.7rem; font-size: 1rem; }

/* ---------------- Hero ---------------- */

.hero {
    position: relative;
    padding: 5rem 1.5rem 4rem;
    background:
        radial-gradient(900px 480px at 85% -10%, rgba(149, 117, 232, 0.16), transparent 60%),
        radial-gradient(700px 420px at -10% 30%, rgba(103, 83, 201, 0.10), transparent 60%);
}

.hero-inner {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    align-items: center;
    gap: 3.5rem;
}

.badge {
    display: inline-block;
    background: var(--primary-soft);
    color: var(--primary-dark);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.4rem 0.95rem;
    border-radius: 999px;
    margin-bottom: 1.4rem;
}

.hero h1 {
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin-bottom: 1.2rem;
}

.lede {
    font-size: 1.15rem;
    color: var(--ink-soft);
    max-width: 34rem;
    margin-bottom: 2rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 0.9rem; }

.hero-apk-note {
    font-size: 0.83rem;
    color: var(--ink-mute);
    margin-bottom: 2.4rem;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 2.4rem;
    list-style: none;
    border-top: 1px solid var(--line);
    padding-top: 1.4rem;
}

.hero-stats li { display: flex; flex-direction: column; }

.hero-stats strong {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary-dark);
    letter-spacing: -0.02em;
}

.hero-stats span { font-size: 0.85rem; color: var(--ink-mute); }

.hero-visual, .portal-visual { position: relative; }

.glow {
    position: absolute;
    inset: 8% -4%;
    background: radial-gradient(closest-side, rgba(149, 117, 232, 0.35), transparent);
    filter: blur(30px);
    z-index: 0;
}

.glow-alt { background: radial-gradient(closest-side, rgba(33, 0, 93, 0.25), transparent); }

.hero-card {
    position: relative;
    z-index: 1;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.6);
    transform: perspective(1200px) rotateY(-4deg) rotateX(1.5deg);
    transition: transform .5s ease;
}

.hero-card:hover { transform: perspective(1200px) rotateY(0) rotateX(0); }

.portal-visual .hero-card { transform: perspective(1200px) rotateY(4deg) rotateX(1.5deg); }
.portal-visual .hero-card:hover { transform: perspective(1200px) rotateY(0) rotateX(0); }

.hero-card img { width: 100%; height: auto; }

/* ---------------- Sections communes ---------------- */

.section-head {
    max-width: 640px;
    margin: 0 auto 3.2rem;
    text-align: center;
}

.eyebrow {
    display: inline-block;
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 0.8rem;
}

.section-head h2, .portal-text h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.025em;
    margin-bottom: 0.9rem;
}

.section-head p { color: var(--ink-soft); font-size: 1.05rem; }

/* ---------------- Features ---------------- */

.features { padding: 5rem 1.5rem; }

.features-grid {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.4rem;
}

.feature-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.9rem 1.7rem;
    box-shadow: var(--shadow-sm);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: #d7cdf2;
}

.feature-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: var(--primary-soft);
    color: var(--primary-dark);
    margin-bottom: 1.2rem;
}

.feature-icon svg { width: 26px; height: 26px; }

.feature-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.45rem; letter-spacing: -0.01em; }

.feature-card p { font-size: 0.95rem; color: var(--ink-soft); }

/* ---------------- Showcase (3 écrans) ---------------- */

.showcase {
    padding: 5rem 1.5rem;
    background:
        radial-gradient(800px 400px at 50% 0%, rgba(103, 83, 201, 0.07), transparent 65%),
        var(--primary-softer);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.showcase-grid {
    max-width: 1020px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.6rem;
}

.shot {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform .3s ease, box-shadow .3s ease;
}

.shot:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.shot img { width: 100%; height: auto; }

.shot figcaption {
    padding: 1.1rem 1.3rem 1.25rem;
    border-top: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.shot figcaption strong { font-size: 1.02rem; font-weight: 700; letter-spacing: -0.01em; }

.shot figcaption span { font-size: 0.88rem; color: var(--ink-mute); }

/* ---------------- Portail locataire ---------------- */

.portal { padding: 5.5rem 1.5rem; }

.portal-inner {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3.5rem;
}

.portal-text p { color: var(--ink-soft); font-size: 1.05rem; margin-bottom: 1.6rem; }

.checklist { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }

.checklist li {
    position: relative;
    padding-left: 2.1rem;
    font-weight: 500;
    color: var(--ink);
}

.checklist li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.18rem;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 50%;
    background: var(--primary-soft) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%234f3db8" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M5 13l4 4 10-10"/></svg>') center / 60% no-repeat;
}

/* ---------------- CTA ---------------- */

.cta { padding: 3rem 1.5rem 5.5rem; }

.cta-inner {
    max-width: 1180px;
    margin: 0 auto;
    text-align: center;
    color: #fff;
    background:
        radial-gradient(600px 300px at 20% -20%, rgba(255, 255, 255, 0.16), transparent 60%),
        linear-gradient(120deg, #4f3db8, #21005d);
    border-radius: 28px;
    padding: 4rem 2rem;
    box-shadow: var(--shadow-lg);
}

.cta h2 {
    font-size: clamp(1.7rem, 3.5vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    margin-bottom: 0.7rem;
}

.cta p { opacity: 0.85; margin-bottom: 2rem; font-size: 1.05rem; }

.cta-note { display: block; margin-top: 1.1rem; font-size: 0.85rem; opacity: 0.65; }

/* ---------------- Footer ---------------- */

footer {
    background: var(--card);
    border-top: 1px solid var(--line);
}

.footer-container {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 2.5rem;
    padding: 3.5rem 1.5rem 2.5rem;
}

.footer-brand p {
    color: var(--ink-mute);
    font-size: 0.95rem;
    margin-top: 1rem;
    max-width: 22rem;
}

.footer-links h4 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ink-mute);
    margin-bottom: 1rem;
}

.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }

.footer-links li { color: var(--ink-soft); font-size: 0.95rem; }

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

.footer-bottom {
    border-top: 1px solid var(--line);
    text-align: center;
    padding: 1.3rem;
    font-size: 0.85rem;
    color: var(--ink-mute);
}

/* ---------------- Page légale (privacy.html) ---------------- */

.legal-content {
    max-width: 860px;
    margin: 0 auto;
    padding: 3.5rem 1.5rem;
}

.legal-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 2.5rem;
}

.legal-card h1, .legal-content h1 { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 0.5rem; }

.legal-card h2, .legal-content h2 { font-size: 1.3rem; font-weight: 700; margin: 2rem 0 0.6rem; }

.legal-card p, .legal-content p, .legal-card li, .legal-content li { color: var(--ink-soft); }

.legal-card ul, .legal-content ul { padding-left: 1.3rem; margin: 0.5rem 0 1rem; }

.update-date { color: var(--ink-mute); font-size: 0.9rem; margin-bottom: 1.5rem; }

/* ---------------- Animations ---------------- */

.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .7s ease, transform .7s ease;
}

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

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------------- Responsive ---------------- */

@media (max-width: 1000px) {
    .hero-inner, .portal-inner { grid-template-columns: 1fr; gap: 2.5rem; }
    .portal-visual { order: 2; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .showcase-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-card, .portal-visual .hero-card { transform: none; }
}

@media (max-width: 760px) {
    .nav-toggle { display: flex; flex-shrink: 0; }

    .nav-container { padding: 0.65rem 1rem; gap: 0.6rem; }

    .logo { font-size: 1rem; gap: 0.5rem; }

    .logo-img, .logo-icon { width: 32px; height: 32px; }

    .nav-actions .btn-sm { padding: 0.5rem 0.9rem; font-size: 0.85rem; }

    #site-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--card);
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow-md);
        display: none;
    }

    #site-nav.open { display: block; }

    .nav-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 0.5rem 0;
    }

    .nav-links li { width: 100%; }

    .nav-links a {
        display: block;
        padding: 0.85rem 1.5rem;
        font-size: 1rem;
    }

    .hero { padding-top: 3.5rem; }
    .hero-stats { gap: 1.6rem; }
    .features, .showcase, .portal { padding-top: 3.5rem; padding-bottom: 3.5rem; }
    .features-grid, .showcase-grid { grid-template-columns: 1fr; }
    .footer-container { grid-template-columns: 1fr; gap: 2rem; }
    .cta-inner { padding: 3rem 1.5rem; }
}
