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

/* ──────────────────────────────────────────────
   CUSTOM PROPERTIES
   ────────────────────────────────────────────── */
:root {
    --color-bg: #F8F6F2;
    --color-surface: #FFFFFF;
    --color-text: #1A1A1A;
    --color-text-2: #4B5563;
    --color-text-3: #9CA3AF;
    --color-accent: #2C5F2E;
    --color-accent-hover: #1E4520;
    --color-accent-light: #EAF2EA;
    --color-border: #E5E7EB;
    --color-border-light: #F0EDE8;

    /* Badges */
    --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;

    /* Shadows */
    --shadow-card: 0 1px 4px rgba(0, 0, 0, .06), 0 4px 16px rgba(0, 0, 0, .04);
    --shadow-cta: 0 2px 8px rgba(44, 95, 46, .35);

    /* 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;
}

/* ──────────────────────────────────────────────
   DARK MODE
   ────────────────────────────────────────────── */
@media (prefers-color-scheme: dark) {
    :root {
        --color-bg: #111111;
        --color-surface: #1C1C1E;
        --color-text: #F2F2F7;
        --color-text-2: #AEAEB2;
        --color-text-3: #6C6C70;
        --color-accent: #4ADE80;
        --color-accent-hover: #22C55E;
        --color-accent-light: #14532D;
        --color-border: #2C2C2E;
        --color-border-light: #2C2C2E;

        --badge-favorite-bg: #451A03;
        --badge-favorite-text: #FCD34D;
        --badge-value-bg: #1E3A5F;
        --badge-value-text: #93C5FD;
        --badge-premium-bg: #2E1065;
        --badge-premium-text: #C4B5FD;
        --badge-new-bg: #064E3B;
        --badge-new-text: #6EE7B7;
        --badge-default-bg: #27272A;
        --badge-default-text: #A1A1AA;

        --shadow-card: 0 1px 4px rgba(0, 0, 0, .3), 0 4px 16px rgba(0, 0, 0, .25);
        --shadow-cta: 0 2px 8px rgba(74, 222, 128, .25);
    }
}

/* ──────────────────────────────────────────────
   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;
}

/* ──────────────────────────────────────────────
   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%;
    aspect-ratio: 16 / 7;
    overflow: hidden;
    background: var(--color-border-light);
    flex-shrink: 0;
}

.product-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    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: 260px;
        aspect-ratio: unset;
        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: #fff;
    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: 0 4px 14px rgba(44, 95, 46, .45);
}

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

@media (prefers-color-scheme: dark) {
    .product-card__cta {
        color: #000;
    }

    .product-card__cta:hover {
        background: var(--color-accent-hover);
        color: #000;
    }
}

/* ──────────────────────────────────────────────
   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;
}

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

    .hero__title {
        font-size: 2.4rem;
    }

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