/* ═══════════════════════════════════════════════════════════════
   PUBLIC PAGE CSS
   Mobile-first · Premium · Lisible · Conversion-focused
   ═══════════════════════════════════════════════════════════════ */

/* ──────────────────────────────────────────────
   CUSTOM PROPERTIES — Thème sombre par défaut
   ────────────────────────────────────────────── */
:root {
    --color-bg: #0D0D0D;
    --color-surface: #161616;
    --color-surface-2: #1F1F1F;
    --color-text: #EDEDED;
    --color-text-2: #A3A3A3;
    --color-text-3: #5C5C5C;
    --color-accent: #E8C97A;
    --color-accent-hover: #F5DFA0;
    --color-accent-light: #2A2214;
    --color-border: #2A2A2A;
    --color-border-light: #222222;

    /* Badges */
    --badge-favorite-bg: #3B2509;
    --badge-favorite-text: #F5C97A;
    --badge-value-bg: #0E2340;
    --badge-value-text: #7EB8F5;
    --badge-premium-bg: #1E0F3B;
    --badge-premium-text: #BEA6F5;
    --badge-new-bg: #0A2618;
    --badge-new-text: #6DDBA8;
    --badge-default-bg: #242424;
    --badge-default-text: #9A9A9A;

    /* Shadows */
    --shadow-card: 0 1px 3px rgba(0, 0, 0, .5), 0 8px 24px rgba(0, 0, 0, .4);
    --shadow-cta: 0 2px 12px rgba(232, 201, 122, .3);

    /* Radius */
    --radius-card: 14px;
    --radius-btn: 10px;
    --radius-badge: 20px;

    /* Layout */
    --max-width: 680px;

    /* Typography */
    --font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ──────────────────────────────────────────────
   THÈME CLAIR (si préférence système ou data-theme)
   ────────────────────────────────────────────── */
@media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) {
        --color-bg: #F5F3EE;
        --color-surface: #FFFFFF;
        --color-surface-2: #FAFAF8;
        --color-text: #1A1A1A;
        --color-text-2: #4B5563;
        --color-text-3: #9CA3AF;
        --color-accent: #B8952A;
        --color-accent-hover: #9A7C22;
        --color-accent-light: #FDF6E3;
        --color-border: #E5E7EB;
        --color-border-light: #F0EDE8;

        --badge-favorite-bg: #FEF3C7;
        --badge-favorite-text: #92400E;
        --badge-value-bg: #DBEAFE;
        --badge-value-text: #1E40AF;
        --badge-premium-bg: #EDE9FE;
        --badge-premium-text: #5B21B6;
        --badge-new-bg: #D1FAE5;
        --badge-new-text: #065F46;
        --badge-default-bg: #F3F4F6;
        --badge-default-text: #374151;

        --shadow-card: 0 1px 4px rgba(0, 0, 0, .06), 0 4px 16px rgba(0, 0, 0, .04);
        --shadow-cta: 0 2px 8px rgba(184, 149, 42, .35);
    }
}

[data-theme="light"] {
    --color-bg: #F5F3EE;
    --color-surface: #FFFFFF;
    --color-surface-2: #FAFAF8;
    --color-text: #1A1A1A;
    --color-text-2: #4B5563;
    --color-text-3: #9CA3AF;
    --color-accent: #B8952A;
    --color-accent-hover: #9A7C22;
    --color-accent-light: #FDF6E3;
    --color-border: #E5E7EB;
    --color-border-light: #F0EDE8;

    --badge-favorite-bg: #FEF3C7;
    --badge-favorite-text: #92400E;
    --badge-value-bg: #DBEAFE;
    --badge-value-text: #1E40AF;
    --badge-premium-bg: #EDE9FE;
    --badge-premium-text: #5B21B6;
    --badge-new-bg: #D1FAE5;
    --badge-new-text: #065F46;
    --badge-default-bg: #F3F4F6;
    --badge-default-text: #374151;

    --shadow-card: 0 1px 4px rgba(0, 0, 0, .06), 0 4px 16px rgba(0, 0, 0, .04);
    --shadow-cta: 0 2px 8px rgba(184, 149, 42, .35);
}

/* ──────────────────────────────────────────────
   RESET & BASE
   ────────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: inherit;
    text-decoration: none;
}

ul,
ol {
    list-style: none;
}

/* ──────────────────────────────────────────────
   CONTAINER
   ────────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ──────────────────────────────────────────────
   HERO
   ────────────────────────────────────────────── */
.hero {
    padding: 56px 0 48px;
    border-bottom: 1px solid var(--color-border-light);
}

.hero__author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.hero__avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-border);
    flex-shrink: 0;
}

.hero__author-name {
    font-size: .9rem;
    font-weight: 500;
    color: var(--color-text-2);
    letter-spacing: .01em;
}

.hero__title {
    font-size: clamp(1.75rem, 5vw, 2.4rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -.02em;
    margin-bottom: 14px;
    color: var(--color-text);
}

.hero__subtitle {
    font-size: 1.1rem;
    color: var(--color-text-2);
    font-weight: 400;
    margin-bottom: 16px;
    line-height: 1.5;
}

.hero__text {
    font-size: .975rem;
    color: var(--color-text-2);
    max-width: 560px;
    line-height: 1.7;
    margin-top: 8px;
}

.hero__author-bio {
    font-size: .875rem;
    color: var(--color-text-2);
    line-height: 1.6;
    margin-top: -12px;
    margin-bottom: 20px;
    max-width: 520px;
}

.hero__socials {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.hero__social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    transition: transform .2s ease, opacity .2s ease;
    flex-shrink: 0;
}

.hero__social-link:hover {
    transform: scale(1.1);
    opacity: .9;
}

.hero__social-link svg {
    width: 20px;
    height: 20px;
}

.hero__social-link--insta {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.hero__social-link--tiktok {
    background: #010101;
}

.hero__social-link--youtube {
    background: #FF0000;
}

.hero__image-wrap {
    margin-top: 28px;
    border-radius: var(--radius-card);
    overflow: hidden;
    max-height: 320px;
}

.hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ──────────────────────────────────────────────
   MAIN CONTENT
   ────────────────────────────────────────────── */
.content {
    padding: 48px 0 64px;
}

/* ──────────────────────────────────────────────
   SECTIONS
   ────────────────────────────────────────────── */
.section {
    margin-bottom: 56px;
}

.section__header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--color-border-light);
}

.section__title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text);
    letter-spacing: -.015em;
}

.section__desc {
    margin-top: 6px;
    font-size: .9rem;
    color: var(--color-text-2);
}

/* ──────────────────────────────────────────────
   PRODUCT CARDS
   ────────────────────────────────────────────── */
.products-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-card {
    position: relative;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: box-shadow .2s ease, transform .2s ease;
}

.product-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08), 0 8px 24px rgba(0, 0, 0, .07);
    transform: translateY(-1px);
}

/* Badge */
.product-card__badge {
    position: absolute;
    top: 14px;
    right: 14px;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .03em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: var(--radius-badge);
    z-index: 1;
}

.badge--favorite {
    background: var(--badge-favorite-bg);
    color: var(--badge-favorite-text);
}

.badge--value {
    background: var(--badge-value-bg);
    color: var(--badge-value-text);
}

.badge--premium {
    background: var(--badge-premium-bg);
    color: var(--badge-premium-text);
}

.badge--new {
    background: var(--badge-new-bg);
    color: var(--badge-new-text);
}

.badge--default {
    background: var(--badge-default-bg);
    color: var(--badge-default-text);
}

/* Image */
.product-card__image-wrap {
    width: 100%;
    height: 160px;
    overflow: hidden;
    background: var(--color-surface);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card__image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform .4s ease;
}

.product-card:hover .product-card__image {
    transform: scale(1.02);
}

/* Body */
.product-card__body {
    padding: 22px 22px 24px;
    flex: 1;
    min-width: 0;
}

/* Layout côte à côte sur écrans larges */
@media (min-width: 640px) {
    .product-card {
        display: flex;
        flex-direction: row;
        align-items: stretch;
    }

    .product-card__image-wrap {
        width: 200px;
        height: auto;
        min-height: 160px;
        flex-shrink: 0;
    }

    .product-card__badge {
        top: 12px;
        right: 12px;
    }
}

.product-card__title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-text);
    letter-spacing: -.01em;
    margin-bottom: 8px;
    line-height: 1.3;
}

.product-card__hook {
    font-size: .9rem;
    font-style: italic;
    color: var(--color-accent);
    margin-bottom: 12px;
    line-height: 1.5;
}

.product-card__desc {
    font-size: .925rem;
    color: var(--color-text-2);
    line-height: 1.65;
    margin-bottom: 14px;
}

/* Features (pour qui / point faible) */
.product-card__feature {
    display: flex;
    gap: 8px;
    font-size: .875rem;
    line-height: 1.5;
    margin-bottom: 8px;
    color: var(--color-text-2);
}

.product-card__feature-icon {
    flex-shrink: 0;
    width: 18px;
    margin-top: 1px;
}

.product-card__feature--pro .product-card__feature-icon {
    color: var(--color-accent);
}

.product-card__feature--con .product-card__feature-icon {
    color: var(--color-text-3);
}

/* CTA Button */
.product-card__cta {
    display: block;
    width: 100%;
    margin-top: 20px;
    padding: 15px 20px;
    background: var(--color-accent);
    color: #000;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border-radius: var(--radius-btn);
    box-shadow: var(--shadow-cta);
    transition: background .18s ease, transform .15s ease, box-shadow .18s ease;
    letter-spacing: .01em;
    text-decoration: none;
    cursor: pointer;
    min-height: 52px;
    line-height: 22px;
}

.product-card__cta:hover {
    background: var(--color-accent-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-cta);
}

.product-card__cta:active {
    transform: translateY(0);
    box-shadow: var(--shadow-cta);
}

/* ──────────────────────────────────────────────
   DISCLOSURE
   ────────────────────────────────────────────── */
.disclosure {
    border-top: 1px solid var(--color-border-light);
    padding: 28px 0 40px;
}

.disclosure__text {
    font-size: .8rem;
    color: var(--color-text-3);
    line-height: 1.6;
}

.disclosure__label {
    display: inline-block;
    font-size: .7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    background: var(--color-border-light);
    color: var(--color-text-3);
    padding: 2px 7px;
    border-radius: 4px;
    margin-right: 8px;
    vertical-align: middle;
}

/* ──────────────────────────────────────────────
   EMPTY STATE (PUBLIC)
   ────────────────────────────────────────────── */
.empty-public {
    text-align: center;
    padding: 80px 0;
    color: var(--color-text-3);
    font-size: 1rem;
}

/* ──────────────────────────────────────────────
   SECTION ANCHOR (offset pour sticky nav)
   ────────────────────────────────────────────── */
.section-anchor {
    display: block;
    height: 0;
    margin-top: -24px;
    padding-top: 24px;
    visibility: hidden;
    pointer-events: none;
}

/* ──────────────────────────────────────────────
   TOP DISCLAIMER
   ────────────────────────────────────────────── */
.top-disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: var(--color-accent-light);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 28px;
    font-size: .82rem;
    color: var(--color-text-2);
    line-height: 1.55;
}

.top-disclaimer__icon {
    font-size: .95rem;
    flex-shrink: 0;
    margin-top: 1px;
    opacity: .7;
}

@media (prefers-color-scheme: dark) {
    .top-disclaimer {
        background: rgba(74, 222, 128, .07);
        border-color: var(--color-border);
    }
}

/* ──────────────────────────────────────────────
   TABLE DES MATIÈRES (TOC)
   ────────────────────────────────────────────── */
.toc {
    margin-bottom: 36px;
}

.toc__label {
    font-size: .78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--color-text-3);
    margin-bottom: 10px;
}

.toc__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Style pills */
.toc--pills .toc__link {
    display: inline-block;
    padding: 6px 14px;
    border-radius: var(--radius-badge);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    font-size: .85rem;
    font-weight: 500;
    color: var(--color-text-2);
    transition: background .15s, border-color .15s, color .15s;
    text-decoration: none;
}

.toc--pills .toc__link:hover,
.toc--pills .toc__link:focus-visible {
    background: var(--color-accent-light);
    border-color: var(--color-accent);
    color: var(--color-accent);
    outline: none;
}

/* Style links */
.toc--links .toc__list {
    gap: 0 24px;
}

.toc--links .toc__link {
    font-size: .88rem;
    color: var(--color-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color .15s;
}

.toc--links .toc__link:hover,
.toc--links .toc__link:focus-visible {
    color: var(--color-accent-hover);
    outline: none;
}

/* ──────────────────────────────────────────────
   BLOC PRIX PRODUIT
   ────────────────────────────────────────────── */
.product-card__price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px;
    margin: 12px 0 4px;
    padding: 10px 12px;
    background: var(--color-bg);
    border-radius: 8px;
    border: 1px solid var(--color-border-light);
}

.product-card__price-amount {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    letter-spacing: -.01em;
}

.product-card__price-budget {
    font-size: .8rem;
    font-weight: 600;
    color: var(--color-text-3);
    background: var(--color-border-light);
    border-radius: 4px;
    padding: 1px 6px;
    letter-spacing: .04em;
}

.product-card__price-note {
    width: 100%;
    font-size: .75rem;
    color: var(--color-text-3);
    font-style: italic;
    margin-top: 2px;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .product-card__price {
        background: rgba(255, 255, 255, .04);
        border-color: var(--color-border);
    }
}

[data-theme="dark"] .product-card__price {
    background: rgba(255, 255, 255, .04);
    border-color: var(--color-border);
}

/* ──────────────────────────────────────────────
   BOUTON THÈME
   ────────────────────────────────────────────── */
.theme-toggle {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 999;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(128, 128, 128, .35);
    background: rgba(30, 30, 30, .75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, .4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    line-height: 1;
    transition: transform .2s ease, box-shadow .2s ease;
    padding: 0;
}

.theme-toggle:hover {
    transform: scale(1.12);
    box-shadow: 0 4px 18px rgba(0, 0, 0, .5);
}

/* ──────────────────────────────────────────────
   NUMÉRO DE RANG PRODUIT
   ────────────────────────────────────────────── */
.product-card__rank {
    position: absolute;
    top: 14px;
    left: 14px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--color-accent);
    color: #fff;
    font-size: .8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    line-height: 1;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
}

/* ──────────────────────────────────────────────
   BANDEAU 3 PROMESSES
   ────────────────────────────────────────────── */
.promises-band {
    display: flex;
    gap: 0;
    margin-bottom: 32px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
}

.promises-band__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    padding: 18px 12px;
    border-right: 1px solid var(--color-border);
}

.promises-band__item:last-child {
    border-right: none;
}

.promises-band__icon {
    font-size: 1.5rem;
    line-height: 1;
}

.promises-band__text {
    font-size: .8rem;
    font-weight: 600;
    color: var(--color-text-2);
    line-height: 1.35;
}

@media (max-width: 480px) {
    .promises-band {
        flex-direction: column;
    }

    .promises-band__item {
        flex-direction: row;
        border-right: none;
        border-bottom: 1px solid var(--color-border);
        text-align: left;
        padding: 12px 16px;
        gap: 12px;
    }

    .promises-band__item:last-child {
        border-bottom: none;
    }
}

/* ──────────────────────────────────────────────
   SECTION ERREURS À ÉVITER
   ────────────────────────────────────────────── */
.mistakes-section {
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    padding: 48px 0;
    margin-top: 16px;
}

.mistakes-section__title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mistakes-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
    max-width: 560px;
}

.mistakes-list__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(239, 68, 68, .07);
    border: 1px solid rgba(239, 68, 68, .2);
    border-radius: 10px;
    font-size: .95rem;
    font-weight: 500;
    color: var(--color-text);
}

.mistakes-list__icon {
    font-size: 1rem;
    font-weight: 700;
    color: #ef4444;
    flex-shrink: 0;
    width: 20px;
    text-align: center;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .mistakes-list__item {
        background: rgba(239, 68, 68, .12);
        border-color: rgba(239, 68, 68, .3);
    }

    :root:not([data-theme="light"]) .promises-band {
        background: var(--color-surface);
    }
}

[data-theme="dark"] .mistakes-list__item {
    background: rgba(239, 68, 68, .12);
    border-color: rgba(239, 68, 68, .3);
}

/* ──────────────────────────────────────────────
   SETTINGS : PROMESSES ROW
   ────────────────────────────────────────────── */
.promises-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.promises-row__icon {
    width: 90px;
    flex-shrink: 0;
}

.promises-row__text {
    flex: 1;
}

@media (min-width: 640px) {
    .hero {
        padding: 72px 0 60px;
    }

    .hero__title {
        font-size: 2.4rem;
    }

    .hero__avatar {
        width: 60px;
        height: 60px;
    }
}