/* =====================================================
   legal-pages.css — RefCadastrale.fr
   ===================================================== */

/* ── Hero ── */
.lp-hero {
    background: linear-gradient(140deg, #0f1c34 0%, #0055A4 55%, #1a6fd4 100%);
    color: #fff;
    padding: 4rem 2.5rem 3.5rem;
    text-align: center;
    border-radius: 24px 24px 0 0;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 85, 164, 0.35);
}

.lp-hero.hero-warn {
    background: linear-gradient(140deg, #431407 0%, #c2410c 55%, #ea580c 100%);
    box-shadow: 0 8px 32px rgba(194, 65, 12, 0.35);
}

.lp-hero::after {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    pointer-events: none;
}

.lp-hero::before {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -40px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    pointer-events: none;
}

.lp-hero-emoji {
    font-size: 3.5rem;
    display: block;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
    position: relative;
    z-index: 1;
}

.lp-hero h1 {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    margin: 0 0 0.75rem;
    line-height: 1.15;
    position: relative;
    z-index: 1;
}

.lp-hero h1 .hl {
    color: #7eb5f5;
}

.lp-hero.hero-warn h1 .hl {
    color: #fdba74;
}

.lp-hero-sub {
    font-size: 1rem;
    opacity: 0.82;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.65;
    position: relative;
    z-index: 1;
}

/* ── Tricolor ── */
.lp-tricolor {
    height: 5px;
    background: linear-gradient(90deg, #0055A4 33.3%, #ffffff 33.3% 66.6%, #EF4135 66.6%);
    border: none;
    margin: 0 0 2.5rem;
}

/* ── Layout ── */
.lp-wrap {
    display: grid;
    grid-template-columns: 230px 1fr;
    gap: 2rem;
    align-items: start;
}

@media (max-width: 860px) {
    .lp-wrap {
        grid-template-columns: 1fr;
    }

    .lp-nav {
        display: none;
    }
}

/* ── Sidebar nav ── */
.lp-nav {
    position: sticky;
    top: 80px;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.4rem;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.07);
}

.lp-nav-label {
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #94a3b8;
    margin-bottom: 0.9rem;
    padding-bottom: 0.7rem;
    border-bottom: 1.5px solid #f1f5f9;
}

.lp-nav a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.83rem;
    color: #475569;
    text-decoration: none;
    padding: 7px 10px;
    border-radius: 8px;
    margin-bottom: 3px;
    transition: background 0.14s, color 0.14s, padding-left 0.14s;
    font-weight: 500;
}

.lp-nav a::before {
    content: '›';
    font-size: 1rem;
    color: #cbd5e1;
    transition: color 0.14s;
    flex-shrink: 0;
}

.lp-nav a:hover {
    background: #eff6ff;
    color: #0055A4;
    padding-left: 14px;
}

.lp-nav a:hover::before {
    color: #0055A4;
}

/* ── Content ── */
.lp-body {
    min-width: 0;
}

/* ── Sections / Cards ── */
.lp-section {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-left: 5px solid #0055A4;
    border-radius: 14px;
    padding: 1.75rem 2rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    scroll-margin-top: 90px;
    transition: box-shadow 0.2s, border-left-color 0.2s;
}

.lp-section:hover {
    box-shadow: 0 6px 26px rgba(0, 85, 164, 0.12);
    border-left-color: #1a6fd4;
}

.lp-section.warn {
    border-left-color: #f97316;
}

.lp-section.warn:hover {
    border-left-color: #ea580c;
    box-shadow: 0 6px 26px rgba(249, 115, 22, 0.12);
}

.lp-section-head {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.2rem;
    padding-bottom: 1rem;
    border-bottom: 1.5px solid #f1f5f9;
}

.lp-num {
    flex-shrink: 0;
    min-width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #0055A4;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lp-section.warn .lp-num {
    background: #f97316;
}

.lp-section-title {
    font-size: 1.08rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    line-height: 1.3;
}

.lp-section-sup {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #0055A4;
    display: block;
    margin-bottom: 1px;
}

.lp-section.warn .lp-section-sup {
    color: #f97316;
}

/* ── Body text ── */
.lp-section p {
    font-size: 0.915rem;
    color: #374151;
    line-height: 1.85;
    margin-bottom: 1rem;
}

.lp-section p:last-child {
    margin-bottom: 0;
}

.lp-section ul,
.lp-section ol {
    padding-left: 1.4rem;
    margin-bottom: 1rem;
}

.lp-section li {
    font-size: 0.915rem;
    color: #374151;
    line-height: 1.75;
    margin-bottom: 0.45rem;
}

.lp-section strong {
    color: #0f172a;
    font-weight: 700;
}

.lp-section a {
    color: #0055A4;
    font-weight: 600;
    text-decoration: none;
}

.lp-section a:hover {
    text-decoration: underline;
}

/* ── Callout boxes ── */
.lp-callout {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
    background: #eff6ff;
    border: 1.5px solid #bfdbfe;
    border-radius: 10px;
    padding: 1rem 1.3rem;
    margin: 1.1rem 0;
    font-size: 0.88rem;
    color: #1d4ed8;
    line-height: 1.65;
}

.lp-callout.warn {
    background: #fff7ed;
    border-color: #fed7aa;
    color: #92400e;
}

.lp-callout.ok {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
}

.lp-callout.danger {
    background: #fff1f2;
    border-color: #fecdd3;
    color: #9f1239;
}

.lp-callout-ico {
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ── Info grid ── */
.lp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 1rem;
    margin: 1.1rem 0;
}

.lp-card {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 1.1rem 1.2rem;
    transition: border-color 0.14s, box-shadow 0.14s, transform 0.14s;
}

.lp-card:hover {
    border-color: #93c5fd;
    box-shadow: 0 4px 14px rgba(0, 85, 164, 0.1);
    transform: translateY(-2px);
}

.lp-card-label {
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #94a3b8;
    margin-bottom: 0.4rem;
}

.lp-card-val {
    font-size: 0.92rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.4;
}

.lp-card-val a {
    color: #0055A4;
    font-weight: 600;
}

/* ── Badges ── */
.lp-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.lp-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    background: #dbeafe;
    color: #1d4ed8;
    border: 1.5px solid #93c5fd;
    letter-spacing: 0.02em;
}

/* ── Feature grid (À Propos) ── */
.lp-features {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 1rem;
    margin: 1.2rem 0;
}

.lp-feature {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}

.lp-feature:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 85, 164, 0.12);
    border-color: #93c5fd;
}

.lp-feature-ico {
    font-size: 2.2rem;
    display: block;
    margin-bottom: 0.75rem;
}

.lp-feature-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.35rem;
}

.lp-feature-text {
    font-size: 0.83rem;
    color: #64748b;
    line-height: 1.6;
}

/* ── Warning banner (Disclaimer) ── */
.lp-warn-banner {
    background: linear-gradient(135deg, #fff7ed, #ffedd5);
    border: 2.5px solid #f97316;
    border-radius: 16px;
    padding: 1.75rem 2rem;
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px rgba(249, 115, 22, 0.15);
}

.lp-warn-banner-ico {
    font-size: 2.8rem;
    flex-shrink: 0;
    line-height: 1;
}

.lp-warn-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #9a3412;
    margin-bottom: 0.5rem;
}

.lp-warn-text {
    font-size: 0.9rem;
    color: #7c2d12;
    line-height: 1.7;
    margin: 0;
}

/* ── CTA block ── */
.lp-cta {
    background: linear-gradient(135deg, #0f1c34, #0055A4);
    color: #fff;
    border-radius: 16px;
    padding: 2.25rem 2.5rem;
    text-align: center;
    margin-top: 1.5rem;
    box-shadow: 0 6px 26px rgba(0, 85, 164, 0.3);
}

.lp-cta-title {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 0.55rem;
}

.lp-cta-sub {
    font-size: 0.9rem;
    opacity: 0.78;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.lp-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: #0055A4;
    font-weight: 800;
    font-size: 1rem;
    padding: 13px 30px;
    border-radius: 10px;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
    transition: transform 0.15s, box-shadow 0.15s;
}

.lp-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.25);
    text-decoration: none;
}

/* ── Updated stamp ── */
.lp-updated {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: #94a3b8;
    margin-top: 2.5rem;
    padding-top: 1.25rem;
    border-top: 1.5px solid #f1f5f9;
}

/* ── Green top-level callout ── */
.lp-top-callout {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: #f0fdf4;
    border: 1.5px solid #86efac;
    border-left: 5px solid #22c55e;
    border-radius: 12px;
    padding: 1.2rem 1.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #14532d;
    line-height: 1.7;
}

.lp-top-callout-ico {
    font-size: 1.5rem;
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .lp-hero {
        padding: 2.5rem 1.2rem 2rem;
        border-radius: 16px 16px 0 0;
    }

    .lp-section {
        padding: 1.3rem;
    }

    .lp-warn-banner {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1.3rem;
    }

    .lp-cta {
        padding: 1.5rem 1.2rem;
    }
}