/* ============================================================================
   VirtualNostalgia — Couche de raffinement (chargée APRÈS app.css)
   Objectif : un rendu éditorial et professionnel.
   - suppression du dégradé magenta et des effets « clinquants »
   - hiérarchie typographique affirmée, rythme vertical régulier
   - composants sobres : accents discrets, bordures fines, ombres douces
   ========================================================================== */

:root {
    /* Palette resserrée : un seul accent chaud (ambre) + un or profond en appui.
       Le magenta d'origine (#e879f9) donnait un rendu « générique ». */
    --accent: #e8a33d;
    --accent-strong: #c9822a;
    --accent-2: #c08a3e;
    --accent-soft: rgba(232, 163, 61, 0.12);
    --hero-grad: none;
    --brand-grad: linear-gradient(135deg, #e8a33d, #c9822a);

    --ink: #f3ece2;
    --ink-soft: #b4a897;
    --ink-faint: #7a7061;

    --rule: rgba(255, 255, 255, 0.09);
    --rule-strong: rgba(255, 255, 255, 0.16);

    --measure: 68ch;          /* longueur de ligne confortable en lecture */
    --section-y: clamp(56px, 7vw, 96px);
}

/* ---------------------------------------------------------------- Typographie */

body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    letter-spacing: -0.021em;       /* resserre les titres : plus « éditorial » */
    line-height: 1.12;
    text-wrap: balance;
}

p { text-wrap: pretty; }

/* ------------------------------------------------------------------- Sections */

.home-section { padding-block: var(--section-y); }

.section-title {
    font-size: clamp(1.5rem, 2.6vw, 2.05rem);
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
}

/* Les pictogrammes de titre passent au second plan (ils saturaient la page) */
.section-title .icon { color: var(--accent); opacity: 0.75; }

.section-sub {
    color: var(--ink-soft);
    font-size: 1rem;
    max-width: 56ch;
    margin-bottom: 30px;
}

/* ----------------------------------------------------------------------- Héros */

.hero { padding: clamp(56px, 8vw, 104px) 0 clamp(48px, 6vw, 76px); }

/* Une seule nappe lumineuse, plus discrète ; on retire le halo magenta. */
.hero::before {
    background: radial-gradient(ellipse, rgba(232, 163, 61, 0.10), transparent 64%);
    animation: none;
    top: -240px;
}
.hero::after { display: none; }

/* Kicker : un filet + des capitales espacées, au lieu d'une pastille générique */
.hero-eyebrow {
    background: none;
    border: 0;
    border-radius: 0;
    padding: 0 0 0 42px;
    color: var(--ink-soft);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    position: relative;
    margin-bottom: 24px;
}
.hero-eyebrow::before {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    top: 50%;
    width: 30px;
    height: 1px;
    background: var(--accent);
}
.hero-eyebrow .icon { display: none; }   /* plus d'étincelles */

/* Variante centrée (pages internes) : le filet passe SOUS le texte, pas dedans */
.hero-eyebrow.is-centered {
    padding: 0 0 12px;
    display: inline-block;
}
.hero-eyebrow.is-centered::before {
    inset-inline-start: 50%;
    transform: translateX(-50%);
    top: auto;
    bottom: 0;
    width: 36px;
}

.hero h1 {
    font-size: clamp(2.4rem, 5.4vw, 4rem);
    line-height: 1.06;
    margin-bottom: 22px;
}

/* Le mot mis en avant : couleur pleine + soulignement fin, sans dégradé */
.hero h1 .grad {
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
    color: var(--accent);
    position: relative;
    white-space: nowrap;
}

.hero p.lead {
    font-size: 1.12rem;
    line-height: 1.65;
    color: var(--ink-soft);
    max-width: 52ch;
}

/* Statistiques : chiffres en police d'affichage (le retro-pixel faisait « gadget ») */
.hero-stats { gap: clamp(24px, 4vw, 52px); margin-top: clamp(36px, 5vw, 56px); }

.hero-stats .hs b {
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 3vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.hero-stats .hs span {
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-faint);
}

/* Pastilles flottantes : on calme l'animation (elles « dansaient » sans raison) */
.float-chip { animation: none !important; backdrop-filter: blur(6px); }

/* ------------------------------------------------------------------- Boutons */

/* Suppression du reflet qui balayait le bouton en boucle */
.btn-primary::after { display: none; }

.btn-primary {
    background: var(--accent);
    color: #241803;
    font-weight: 650;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.btn-primary:hover {
    background: #f0b25a;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(232, 163, 61, 0.28);
}

.btn-lg .icon { opacity: 0.9; }

/* --------------------------------------------- Couverture d'article générée */

.news-fallback {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
    background:
        linear-gradient(150deg,
            hsl(var(--nf-hue, 32) 32% 16%),
            hsl(var(--nf-hue, 32) 26% 9%));
}

/* Fines lignes horizontales : évocation du balayage cathodique, sans folklore */
.news-fallback-lines {
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.045) 0 1px,
        transparent 1px 7px);
}

.news-fallback-mark {
    position: relative;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.24);
}

/* Filet de séparation quand un article n'a pas d'illustration */
.article-rule {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--rule-strong), transparent);
    margin: 30px 0 34px;
}

/* --------------------------------------------------------- Fil d'actualités */

.home-news-item { border-color: var(--rule); transition: border-color .2s ease, transform .2s ease; }
.home-news-item:hover { border-color: var(--rule-strong); transform: translateY(-2px); }

.home-news-tag,
.news-tag {
    background: rgba(12, 10, 8, 0.72);
    color: var(--accent);
    border: 1px solid rgba(232, 163, 61, 0.34);
    backdrop-filter: blur(4px);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.68rem;
}

.home-news-text h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
.home-news-text p { color: var(--ink-soft); }
.home-news-more { color: var(--accent); }

.news-date, .home-news-date {
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.74rem;
    color: var(--ink-faint);
}

/* Corps d'article : mesure de lecture et rythme soignés */
.prose { max-width: var(--measure); font-size: 1.07rem; line-height: 1.75; }
.prose h2 { font-size: 1.42rem; margin: 34px 0 12px; }
.prose ul { gap: 10px; }
.prose strong { color: var(--ink); font-weight: 650; }

/* ================================ ABONNEMENT PREMIUM ====================== */

.plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(272px, 1fr));
    gap: 22px;
    align-items: stretch;
}

.plan {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 30px 28px;
    border: 1px solid var(--rule);
    border-radius: 18px;
    background: var(--surface);
    position: relative;
}

.plan-featured {
    border-color: rgba(232, 163, 61, 0.42);
    background: linear-gradient(180deg, rgba(232, 163, 61, 0.06), var(--surface) 42%);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
}

.plan-flag {
    position: absolute;
    top: -11px;
    inset-inline-start: 28px;
    background: var(--accent);
    color: #241803;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding: 4px 11px;
    border-radius: 999px;
}

.plan-name {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.plan-price { display: flex; align-items: baseline; gap: 7px; }

.plan-price b {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4vw, 2.9rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1;
    color: var(--ink);
}

.plan-price span { color: var(--ink-faint); font-size: 0.9rem; }

.plan-note { color: var(--ink-faint); font-size: 0.82rem; margin-top: -8px; }

.plan-features { list-style: none; display: flex; flex-direction: column; gap: 11px; margin: 4px 0 0; padding: 0; flex: 1; }

.plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.93rem;
    line-height: 1.5;
    color: var(--ink-soft);
}

.plan-features li .icon { color: var(--accent); flex: 0 0 auto; margin-top: 2px; }
.plan-features li.muted { color: var(--ink-faint); }
.plan-features li.muted .icon { color: var(--ink-faint); opacity: 0.6; }

.plan .btn { justify-content: center; width: 100%; }

/* Bandeau de réassurance sous les tarifs */
.plan-reassure {
    display: flex;
    flex-wrap: wrap;
    gap: 26px;
    justify-content: center;
    margin-top: 34px;
    padding-top: 26px;
    border-top: 1px solid var(--rule);
    color: var(--ink-faint);
    font-size: 0.86rem;
}

.plan-reassure span { display: inline-flex; align-items: center; gap: 8px; }
.plan-reassure .icon { color: var(--accent); opacity: 0.8; }

/* Encart « réservé aux membres premium » (objets 3D, etc.) */
.premium-lock {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 22px 24px;
    border: 1px solid rgba(232, 163, 61, 0.3);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(232, 163, 61, 0.07), transparent);
}

.premium-lock h4 { font-size: 1.02rem; }
.premium-lock p { color: var(--ink-soft); font-size: 0.9rem; max-width: 60ch; }

/* Puce « Premium » réutilisable */
.badge-premium {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(232, 163, 61, 0.14);
    border: 1px solid rgba(232, 163, 61, 0.34);
    color: var(--accent);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* ------------------------------------------------------------- Accessibilité */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media (max-width: 700px) {
    .hero-stats { gap: 22px 32px; }
    .plan { padding: 26px 22px; }
}
