/*
 * EDE Landing L4 + L5 - Premium stylesheet
 * ============================================================================
 *
 * Aligned on charter from /business-sale-market-cycle/.
 * Template wrapper bypasses GeneratePress completely, so this CSS doesn't
 * need :has() override hacks - it just defines the design directly.
 *
 * Tokens :
 *   BG primaire     : #06080C
 *   Texte body      : #F5F1E8
 *   Texte muted     : #B9B4A8
 *   Texte source    : #7E7A72
 *   Accent or       : #C9A84C
 *   Card BG primary : #0F1620 -> #0B1118 (gradient)
 *   Card BG warm    : #121A24 -> #0E141B (gradient)
 *   Card BG dark    : #0C1117
 *   Border subtle   : rgba(255,255,255,0.06)
 *   Border card     : #1B2430
 *   Border accent   : rgba(201,168,76,0.18)
 *
 * ===========================================================================
 */

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

html { background: #06080C; }

body {
    background: #06080C;
    color: #F5F1E8;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 17px;
    line-height: 1.78;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

a { color: #C9A84C; text-decoration: none; }
a:hover { opacity: 0.88; }

h1, h2, h3, h4, h5, h6 {
    color: #F5F1E8;
    font-family: 'DM Serif Display', serif;
    font-weight: 400;
    line-height: 1.15;
    margin: 0 0 16px 0;
}

p {
    color: #B9B4A8;
    margin: 0 0 12px 0;
}

ol, ul { list-style-position: outside; }

/* ============================================================================
 * MAIN WRAPPER - centered max-width container
 * ============================================================================ */

.ede-landing {
    max-width: 980px;
    margin: 0 auto;
    padding: 72px 32px;
    background: #06080C;
    color: #F5F1E8;
}

/* ============================================================================
 * HERO
 * ============================================================================ */

.ede-l4-hero,
.ede-l5-hero {
    margin-bottom: 48px;
    text-align: left;
}

.ede-l4-hero-kicker,
.ede-l5-hero-kicker {
    display: block;
    color: #9CA3AF;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.ede-l4-hero-h1,
.ede-l5-hero-h1 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(32px, 5.5vw, 58px);
    line-height: 1.04;
    font-weight: 400;
    color: #F5F1E8;
    margin: 0 0 18px 0;
    letter-spacing: -0.005em;
}

.ede-l4-hero-sub,
.ede-l5-hero-sub {
    font-family: 'Inter', sans-serif;
    font-size: 19px;
    line-height: 1.65;
    color: #B9B4A8;
    max-width: 760px;
    margin: 0;
}

/* ============================================================================
 * VALUE PROP - 4 cards with gold border-left
 * ============================================================================ */

.ede-l4-value,
.ede-l5-value {
    margin-bottom: 48px;
}

.ede-l4-value > h2,
.ede-l5-value > h2 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(26px, 3.5vw, 34px);
    color: #F5F1E8;
    margin: 0 0 24px 0;
    text-align: left;
    font-weight: 400;
}

.ede-l4-value-grid,
.ede-l5-value-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

@media (min-width: 720px) {
    .ede-l4-value-grid,
    .ede-l5-value-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

.ede-l4-value-item,
.ede-l5-value-item {
    background: linear-gradient(180deg, #0F1620, #0B1118);
    border: 1px solid #1B2430;
    border-left: 2px solid #C9A84C;
    border-radius: 6px;
    padding: 22px 24px;
}

.ede-l4-value-item h3,
.ede-l5-value-item h3 {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    font-weight: 700;
    color: #C9A84C;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin: 0 0 8px 0;
}

.ede-l4-value-item p,
.ede-l5-value-item p {
    font-size: 14px;
    line-height: 1.7;
    color: #B9B4A8;
    margin: 0;
}

/* ============================================================================
 * PAGES GRID - bloc avec border or
 * ============================================================================ */

.ede-l4-pages-grid,
.ede-l5-pages-grid {
    margin-bottom: 48px;
    padding: 28px;
    background: #0C1117;
    border: 1px solid #C9A84C;
    border-radius: 6px;
}

.ede-l4-pages-grid > h2,
.ede-l5-pages-grid > h2 {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.24em;
    color: #C9A84C;
    text-transform: uppercase;
    margin: 0 0 8px 0;
    text-align: left;
}

.ede-l4-pages-sub,
.ede-l5-pages-sub {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #7E7A72;
    margin: 0 0 24px 0;
    text-align: left;
    line-height: 1.6;
}

.ede-l4-pages-blocks,
.ede-l5-pages-blocks {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

@media (min-width: 720px) {
    .ede-l4-pages-blocks,
    .ede-l5-pages-blocks {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1000px) {
    .ede-l5-pages-blocks {
        grid-template-columns: repeat(3, 1fr);
    }
}

.ede-l4-block,
.ede-l5-block {
    background: #111821;
    border: 1px solid #1B2430;
    border-radius: 6px;
    padding: 16px 20px;
}

.ede-l4-block h3,
.ede-l5-block h3 {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    font-weight: 700;
    color: #C9A84C;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin: 0 0 12px 0;
    padding: 0 0 10px 0;
    border-bottom: 1px solid rgba(201, 168, 76, 0.2);
}

.ede-l4-block ol,
.ede-l5-block ol {
    margin: 0;
    padding: 0 0 0 20px;
    list-style: decimal;
}

.ede-l4-block li,
.ede-l5-block li {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #B9B4A8;
    line-height: 1.6;
    margin: 0 0 4px 0;
}

/* ============================================================================
 * COMPARISON TABLE
 * ============================================================================ */

.ede-l4-comparison,
.ede-l5-comparison {
    margin-bottom: 48px;
    padding: 28px;
    background: linear-gradient(180deg, #121A24, #0E141B);
    border: 1px solid #1B2430;
    border-radius: 6px;
}

.ede-l4-comparison > h2,
.ede-l5-comparison > h2 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(24px, 3.5vw, 30px);
    color: #F5F1E8;
    margin: 0 0 24px 0;
    text-align: left;
    font-weight: 400;
}

.ede-l4-comparison-table,
.ede-l5-comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.ede-l4-comparison-table th,
.ede-l5-comparison-table th {
    text-align: left;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.02);
    color: #C9A84C;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(201, 168, 76, 0.2);
}

.ede-l4-comparison-table td,
.ede-l5-comparison-table td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: #B9B4A8;
    font-size: 14px;
}

.ede-l4-comparison-table td:first-child,
.ede-l5-comparison-table td:first-child {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    color: #F5F1E8;
    letter-spacing: 0.04em;
}

.ede-l4-comparison-table .ede-l4-col-l4,
.ede-l5-comparison-table .ede-l5-col-l5 {
    background: rgba(201, 168, 76, 0.05);
    color: #F5F1E8;
    font-weight: 500;
}

@media (max-width: 600px) {
    .ede-l4-comparison-table,
    .ede-l5-comparison-table {
        font-size: 13px;
    }
    .ede-l4-comparison-table th,
    .ede-l4-comparison-table td,
    .ede-l5-comparison-table th,
    .ede-l5-comparison-table td {
        padding: 8px 10px;
    }
}

/* ============================================================================
 * FAQ - accordions sombres or +/-
 * ============================================================================ */

.ede-l4-faq,
.ede-l5-faq {
    margin-bottom: 48px;
}

.ede-l4-faq > h2,
.ede-l5-faq > h2 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(26px, 3.5vw, 34px);
    color: #F5F1E8;
    margin: 0 0 24px 0;
    text-align: left;
    font-weight: 400;
}

.ede-l4-faq-item,
.ede-l5-faq-item {
    background: linear-gradient(180deg, #0F1620, #0B1118);
    border: 1px solid #1B2430;
    border-radius: 6px;
    margin-bottom: 10px;
    padding: 16px 20px;
    cursor: pointer;
    transition: border-color 0.2s;
}

.ede-l4-faq-item[open],
.ede-l5-faq-item[open] {
    border-color: rgba(201, 168, 76, 0.4);
}

.ede-l4-faq-item summary,
.ede-l5-faq-item summary {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: #F5F1E8;
    font-size: 15px;
    cursor: pointer;
    list-style: none;
    position: relative;
    padding-right: 32px;
    line-height: 1.5;
    outline: none;
}

.ede-l4-faq-item summary::-webkit-details-marker,
.ede-l5-faq-item summary::-webkit-details-marker {
    display: none;
}

.ede-l4-faq-item summary::after,
.ede-l5-faq-item summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 18px;
    color: #C9A84C;
    font-weight: 400;
    line-height: 1;
}

.ede-l4-faq-item[open] summary::after,
.ede-l5-faq-item[open] summary::after {
    content: "-";
}

.ede-l4-faq-item p,
.ede-l5-faq-item p {
    font-family: 'Inter', sans-serif;
    margin: 12px 0 0 0;
    color: #B9B4A8;
    font-size: 14px;
    line-height: 1.7;
}

/* ============================================================================
 * CTA - Stripe checkout
 * ============================================================================ */

.ede-l4-cta,
.ede-l5-cta {
    background: linear-gradient(180deg, #0D141C, #091019);
    border: 1px solid rgba(201, 168, 76, 0.18);
    border-radius: 8px;
    padding: 40px 36px;
    text-align: center;
    margin-bottom: 44px;
    color: #F5F1E8;
}

.ede-l4-cta-price,
.ede-l5-cta-price {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(40px, 6.5vw, 56px);
    font-weight: 400;
    line-height: 1.05;
    color: #F5F1E8;
    margin: 0 0 18px 0;
    letter-spacing: -0.01em;
}

.ede-l4-cta-price-caption,
.ede-l5-cta-price-caption {
    display: block;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: #9CA3AF;
    margin-top: 12px;
}

.ede-l4-cta-button,
.ede-l5-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 28px;
    background: #C9A84C;
    color: #06080C;
    border-radius: 4px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    text-decoration: none;
    margin: 0 0 18px 0;
    transition: opacity 0.15s;
    box-shadow: none;
    border: none;
    cursor: pointer;
}

.ede-l4-cta-button:hover,
.ede-l5-cta-button:hover {
    opacity: 0.9;
    color: #06080C;
    text-decoration: none;
}

.ede-l4-cta-note,
.ede-l5-cta-note {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #7E7A72;
    margin: 0 auto;
    max-width: 480px;
    line-height: 1.6;
}

/* ============================================================================
 * FOOTER institutional 3-cols
 * ============================================================================ */

.ede-landing-footer {
    background: #06080C;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 36px 32px;
    max-width: 980px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
    font-size: 11px;
    color: #7E7A72;
    margin-top: 40px;
}

.ede-landing-footer a {
    color: #7E7A72;
    font-size: 11px;
    text-decoration: none;
}

.ede-ft-brand {
    font-weight: 700;
    color: #F5F1E8;
    font-size: 12px;
    margin-bottom: 4px;
    font-family: 'Inter', sans-serif;
}

.ede-ft-col1 div {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    color: #7E7A72;
}

.ede-ft-col2 {
    text-align: center;
}

.ede-ft-col2 div {
    margin-bottom: 2px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #7E7A72;
}

.ede-ft-col3 {
    text-align: right;
}

.ede-ft-col3 div {
    margin-bottom: 2px;
    color: #7E7A72;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
}

.ede-ft-col3 div:last-child {
    font-style: italic;
    margin-top: 2px;
}

.ede-landing-footer-bottom {
    max-width: 980px;
    margin: 0 auto;
    padding: 16px 32px 40px;
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: #7E7A72;
    font-family: 'IBM Plex Mono', monospace;
    background: #06080C;
    letter-spacing: 0.05em;
}

.ede-landing-footer-bottom a {
    color: #7E7A72;
    text-decoration: none;
    margin-left: 16px;
}

@media (max-width: 768px) {
    .ede-landing-footer {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
    }
    .ede-ft-col2,
    .ede-ft-col3 {
        text-align: center;
    }
    .ede-landing-footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    .ede-landing-footer-bottom a {
        margin: 0 8px;
    }
}

/* ============================================================================
 * MOBILE TIGHTEN
 * ============================================================================ */

@media (max-width: 768px) {
    .ede-landing {
        padding: 44px 20px;
    }
    .ede-l4-hero-h1,
    .ede-l5-hero-h1 {
        font-size: 36px;
    }
    .ede-l4-hero-sub,
    .ede-l5-hero-sub {
        font-size: 17px;
    }
    .ede-l4-pages-grid,
    .ede-l5-pages-grid,
    .ede-l4-comparison,
    .ede-l5-comparison,
    .ede-l4-cta,
    .ede-l5-cta {
        padding: 24px;
    }
    body { font-size: 16px; }
}

/* WP admin bar override (when logged-in) */
body.admin-bar { padding-top: 0; }

/* Hide WordPress admin bar shift on landing pages */
@media screen and (max-width: 782px) {
    html.wp-toolbar { padding-top: 46px !important; }
}
@media screen and (min-width: 783px) {
    html.wp-toolbar { padding-top: 32px !important; }
}
