/* ============================================================
   ELITE KEYS — Legal Pages
   Premium dark luxury aesthetic (aligned with Corporate)
   Shared by: mentions, CGV, politique-confidentialité, licence VTC
   ============================================================ */

#pg-lg {
    --l-bg: #08090a;
    --l-surface: #101214;
    --l-surface2: #181b1f;
    --l-gold: #c7a24a;
    --l-gold-light: #e0c072;
    --l-text: #f2f2f2;
    --l-muted: #8a8f96;
    --l-border: rgba(255,255,255,0.06);
    background: var(--l-bg);
    color: var(--l-text);
    font-family: 'Raleway', sans-serif;
    min-height: 100vh;
}

.lg-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 28px;
}

/* ── Buttons ── */
.lg-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(.4,0,.2,1);
    border: 1px solid rgba(255,255,255,0.12);
    color: #fff;
    background: transparent;
}
.lg-btn:hover {
    border-color: var(--l-gold);
    color: var(--l-gold);
}
.lg-btn--gold {
    background: var(--l-gold);
    color: var(--l-bg);
    border-color: var(--l-gold);
}
.lg-btn--gold:hover {
    background: #fff;
    color: var(--l-bg);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(199,162,74,0.35);
}

/* ═══════════════════════════════════════
   HERO (compact)
   ═══════════════════════════════════════ */
.lg-hero {
    position: relative;
    padding: 140px 0 80px;
    overflow: hidden;
}
.lg-hero-mesh {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 30%, rgba(199,162,74,0.08) 0%, transparent 60%),
        radial-gradient(ellipse 60% 80% at 80% 70%, rgba(199,162,74,0.05) 0%, transparent 60%),
        radial-gradient(ellipse 50% 50% at 50% 50%, rgba(30,33,38,1) 0%, var(--l-bg) 100%);
    animation: lgMeshShift 20s ease-in-out infinite alternate;
}
@keyframes lgMeshShift {
    0%   { background-position: 0% 0%, 100% 100%, 50% 50%; }
    100% { background-position: 20% 10%, 80% 90%, 50% 50%; }
}
.lg-hero-grain {
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 128px;
    pointer-events: none;
}
.lg-hero-inner {
    position: relative;
    z-index: 2;
    text-align: center;
    animation: lgHeroFadeIn 1s ease-out both;
}
@keyframes lgHeroFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
.lg-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 22px;
    border-radius: 50px;
    border: 1px solid rgba(199,162,74,0.2);
    background: rgba(199,162,74,0.06);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--l-gold);
    margin-bottom: 28px;
}
.lg-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--l-gold);
    box-shadow: 0 0 10px var(--l-gold);
}
.lg-hero-h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.4rem, 5.5vw, 4.4rem);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 18px;
}
.lg-hero-h1 em {
    color: var(--l-gold);
    font-style: italic;
}
.lg-hero-meta {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--l-muted);
    font-weight: 600;
    margin-top: 8px;
}
.lg-hero-meta-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--l-gold);
    opacity: 0.6;
}

/* ═══════════════════════════════════════
   LAYOUT: TOC + CONTENT
   ═══════════════════════════════════════ */
.lg-layout {
    padding: 60px 0 40px;
    border-top: 1px solid var(--l-border);
}
.lg-layout-grid {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 64px;
    align-items: start;
}

/* ── TOC sidebar ── */
.lg-toc {
    position: sticky;
    top: 100px;
}
.lg-toc-label {
    font-size: 0.65rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--l-gold);
    font-weight: 800;
    margin-bottom: 20px;
}
.lg-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    border-left: 1px solid var(--l-border);
}
.lg-toc-list li {
    position: relative;
}
.lg-toc-list a {
    display: block;
    padding: 10px 0 10px 20px;
    color: var(--l-muted);
    font-size: 0.88rem;
    text-decoration: none;
    transition: all 0.3s;
    border-left: 2px solid transparent;
    margin-left: -1px;
    line-height: 1.5;
}
.lg-toc-list a:hover {
    color: var(--l-text);
    border-left-color: rgba(199,162,74,0.4);
}
.lg-toc-list a.is-active {
    color: var(--l-gold);
    border-left-color: var(--l-gold);
    font-weight: 600;
}

/* ── Content ── */
.lg-content {
    min-width: 0;
}
.lg-block {
    padding: 36px 0;
    border-bottom: 1px solid var(--l-border);
    scroll-margin-top: 100px;
}
.lg-block:first-child { padding-top: 0; }
.lg-block:last-child { border-bottom: 0; padding-bottom: 0; }

.lg-block-num {
    display: inline-block;
    font-family: 'Playfair Display', serif;
    font-size: 0.85rem;
    color: var(--l-gold);
    letter-spacing: 0.15em;
    margin-bottom: 12px;
    font-style: italic;
}
.lg-block h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.6rem, 3vw, 2rem);
    font-weight: 400;
    line-height: 1.2;
    margin: 0 0 22px;
    color: var(--l-text);
}
.lg-block p {
    color: var(--l-muted);
    font-size: 1rem;
    line-height: 1.85;
    margin: 0 0 16px;
}
.lg-block p:last-child { margin-bottom: 0; }
.lg-block strong {
    color: var(--l-text);
    font-weight: 600;
}
.lg-block a.lg-link {
    color: var(--l-gold);
    text-decoration: none;
    border-bottom: 1px solid rgba(199,162,74,0.3);
    transition: all 0.3s;
}
.lg-block a.lg-link:hover {
    border-bottom-color: var(--l-gold);
    color: var(--l-gold-light);
}

/* ── Lists ── */
.lg-list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
}
.lg-list li {
    position: relative;
    padding: 10px 0 10px 28px;
    color: var(--l-muted);
    font-size: 0.98rem;
    line-height: 1.75;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}
.lg-list li:last-child { border-bottom: 0; }
.lg-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 22px;
    width: 14px;
    height: 1px;
    background: var(--l-gold);
    opacity: 0.5;
}
.lg-list li strong {
    color: var(--l-text);
}

/* ── Info card (for SIRET/contact blocks) ── */
.lg-info-card {
    background: var(--l-surface);
    border: 1px solid var(--l-border);
    border-radius: 20px;
    padding: 28px 32px;
    margin: 8px 0 0;
}
.lg-info-card .lg-info-label {
    display: block;
    font-size: 0.65rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--l-gold);
    font-weight: 700;
    margin-bottom: 14px;
}
.lg-info-card .lg-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 32px;
}
.lg-info-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.lg-info-row dt {
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--l-muted);
    font-weight: 600;
}
.lg-info-row dd {
    margin: 0;
    color: var(--l-text);
    font-size: 0.95rem;
    font-weight: 500;
}
.lg-info-row dd a {
    color: var(--l-gold);
    text-decoration: none;
    border-bottom: 1px solid rgba(199,162,74,0.3);
}

/* ── Pricing-like cancellation rows ── */
.lg-tier-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 8px 0 0;
}
.lg-tier {
    background: var(--l-surface);
    border: 1px solid var(--l-border);
    border-radius: 18px;
    padding: 24px 22px;
    transition: all 0.3s;
}
.lg-tier:hover {
    border-color: rgba(199,162,74,0.2);
}
.lg-tier-label {
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--l-muted);
    font-weight: 600;
    margin-bottom: 8px;
}
.lg-tier-pct {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--l-gold);
    line-height: 1;
    margin-bottom: 6px;
}
.lg-tier-desc {
    font-size: 0.85rem;
    color: var(--l-muted);
    line-height: 1.5;
}

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */
@media (max-width: 1024px) {
    .lg-layout-grid { grid-template-columns: 1fr; gap: 32px; }
    .lg-toc { position: static; padding: 20px 24px; background: var(--l-surface); border: 1px solid var(--l-border); border-radius: 16px; }
    .lg-toc-list { border-left: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; }
    .lg-toc-list a { padding: 8px 12px; border-left: 0; border-radius: 8px; }
    .lg-toc-list a:hover, .lg-toc-list a.is-active { background: rgba(199,162,74,0.06); border-left: 0; }
    .lg-info-card .lg-info-grid { grid-template-columns: 1fr; }
    .lg-tier-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .lg-hero { padding: 100px 0 60px; }
    .lg-hero-h1 { font-size: 2rem; }
    .lg-toc-list { grid-template-columns: 1fr; }
    .lg-block { padding: 28px 0; }
    .lg-info-card { padding: 22px 22px; }
}

/* ═══════════════════════════════════════
   LIGHT THEME
   ═══════════════════════════════════════ */
[data-theme="light"] #pg-lg {
    --l-bg: #faf6ec;
    --l-surface: #fdfaf2;
    --l-surface2: #f1ecdd;
    --l-gold: #b8942f;
    --l-gold-light: #9c7c28;
    --l-text: #1a1a1a;
    --l-muted: #6b6e73;
    --l-border: rgba(0,0,0,0.07);
}
[data-theme="light"] .lg-hero-mesh {
    background:
        radial-gradient(ellipse 80% 60% at 20% 30%, rgba(184,148,47,0.08) 0%, transparent 60%),
        radial-gradient(ellipse 60% 80% at 80% 70%, rgba(184,148,47,0.05) 0%, transparent 60%),
        radial-gradient(ellipse 50% 50% at 50% 50%, #f5efde 0%, var(--l-bg) 100%);
}
[data-theme="light"] .lg-info-card,
[data-theme="light"] .lg-tier { background: #fdfaf2; box-shadow: 0 4px 16px rgba(0,0,0,0.03); }
[data-theme="light"] .lg-list li { border-bottom-color: rgba(0,0,0,0.04); }
