/* ═══════════════════════════════════════════════
   PRÉNOMS.FR — Charte Éditorial Doré
   styles.css
   ═══════════════════════════════════════════════ */

/* ── TOKENS ── */
:root {
  --gold: #b8965a;
  --gold-l: #e8d5b0;
  --gold-pale: #faf5ec;
  --gold-deep: #8a6a30;
  --ink: #1a1814;
  --ink-2: #3d3830;
  --ink-3: #7a7266;
  --ink-4: #a09880;
  --cream: #faf8f4;
  --cream-2: #f2ede4;
  --cream-3: #ece6da;
  --border: #ddd5c4;
  --border-2: #ccc4b0;
  --white: #ffffff;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-pill: 50px;
  --shadow: 0 2px 16px rgba(26,24,20,.08);
  --shadow-lg: 0 8px 40px rgba(26,24,20,.12);
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'DM Sans', system-ui, sans-serif;
  --trans: .2s ease;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-sans); background: var(--cream); color: var(--ink); overflow-x: hidden; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font-family: var(--font-sans); cursor: pointer; }

/* ── CONTAINER ── */
.container { max-width: 1080px; margin: 0 auto; padding: 0 1.5rem; }

/* ══════════════════════════════════════
   NAVIGATION
══════════════════════════════════════ */
#nav {
  position: sticky; top: 0; z-index: 200;
  background: var(--ink);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.nav-inner {
  max-width: 1080px; margin: 0 auto;
  padding: .9rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.logo {
  font-family: var(--font-serif); font-size: 1.5rem; font-weight: 300;
  color: var(--cream); letter-spacing: .12em; text-transform: uppercase;
  white-space: nowrap; flex-shrink: 0;
}
.logo span { color: var(--gold-l); font-style: italic; }
.logo:hover span { color: var(--gold); }

.nav-links { display: flex; gap: .3rem; align-items: center; }
.nav-link {
  font-size: .65rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(255,255,255,.6); padding: .35rem .85rem; border-radius: var(--radius-pill);
  border: 1px solid transparent; transition: var(--trans);
}
.nav-link:hover { color: #fff; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.15); }
.nav-link.active { color: #fff; background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.2); }
.nav-premium {
  background: var(--gold); color: var(--ink) !important; border-color: var(--gold) !important;
  font-weight: 600;
}
.nav-premium:hover { background: var(--gold-l); border-color: var(--gold-l) !important; }

.nav-burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: .25rem; }
.nav-burger span { display: block; width: 22px; height: 1.5px; background: rgba(255,255,255,.7); transition: var(--trans); border-radius: 2px; }

/* ══════════════════════════════════════
   PUBLICITÉ
══════════════════════════════════════ */
.ad-banner {
  background: var(--cream-2); border-bottom: 1px solid var(--border);
  padding: .55rem 1.5rem;
  display: flex; align-items: center; justify-content: center; gap: .75rem;
}
.ad-banner-footer { border-top: 1px solid var(--border); border-bottom: none; }
.ad-label { font-size: .58rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-4); flex-shrink: 0; }
.ad-slot {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: .62rem; color: var(--ink-4); font-style: italic;
}
.ad-slot-728 { width: min(728px, 100%); height: 50px; }
.ad-slot-970 { width: min(970px, 100%); height: 50px; }
.ad-slot-300 { width: 300px; height: 250px; }
.ad-slot-160 { width: 160px; height: 600px; }

/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */
.hero {
  min-height: 92vh;
  background: var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 5rem 1.5rem 4rem;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 115%, rgba(184,150,90,.2) 0%, transparent 65%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: .4;
}
.hero-ornament {
  font-size: 1.2rem; color: var(--gold); margin-bottom: 1.5rem; letter-spacing: .3em;
  animation: fadeUp .6s ease both;
}
.hero-content { position: relative; z-index: 1; max-width: 700px; }
.hero-tag {
  font-size: .65rem; letter-spacing: .25em; text-transform: uppercase;
  color: var(--gold); font-weight: 500; margin-bottom: 1.1rem;
  animation: fadeUp .6s .1s ease both;
}
.hero-title {
  font-family: var(--font-serif); font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 300; color: var(--cream); line-height: 1.08; margin-bottom: 1.25rem;
  animation: fadeUp .6s .2s ease both;
}
.hero-title em { font-style: italic; color: var(--gold-l); }
.hero-sub {
  font-size: clamp(.88rem, 2vw, 1.05rem); color: rgba(250,248,244,.5);
  max-width: 520px; line-height: 1.8; margin: 0 auto 2.5rem;
  animation: fadeUp .6s .3s ease both;
}
.hero-cta { display: flex; gap: .75rem; flex-wrap: wrap; justify-content: center; animation: fadeUp .6s .4s ease both; }
.hero-scroll-hint {
  position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.2); font-size: .75rem; letter-spacing: .15em;
  animation: fadeUp .6s .8s ease both, bob 2s 1.5s ease-in-out infinite;
}

/* ══════════════════════════════════════
   BOUTONS
══════════════════════════════════════ */
.btn-primary {
  display: inline-block; background: var(--gold); color: var(--ink);
  border: none; padding: .85rem 2rem;
  font-family: var(--font-sans); font-size: .78rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase; border-radius: var(--radius-pill);
  transition: var(--trans);
}
.btn-primary:hover { background: var(--gold-l); transform: translateY(-1px); }
.btn-primary:active { transform: none; }

.btn-ghost {
  display: inline-block; background: transparent; color: rgba(250,248,244,.75);
  border: 1px solid rgba(255,255,255,.22); padding: .85rem 2rem;
  font-family: var(--font-sans); font-size: .78rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase; border-radius: var(--radius-pill);
  transition: var(--trans);
}
.btn-ghost:hover { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.4); }

.btn-ghost-light {
  display: inline-block; background: transparent; color: var(--ink-2);
  border: 1px solid var(--border); padding: .85rem 2rem;
  font-family: var(--font-sans); font-size: .78rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase; border-radius: var(--radius-pill);
  transition: var(--trans);
}
.btn-ghost-light:hover { border-color: var(--ink-3); color: var(--ink); }

.btn-ink {
  display: inline-block; background: var(--ink); color: var(--cream);
  border: none; padding: .75rem 1.75rem;
  font-family: var(--font-sans); font-size: .75rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase; border-radius: var(--radius-pill);
  transition: var(--trans); cursor: pointer;
}
.btn-ink:hover { background: var(--ink-2); }
.btn-ink:disabled { opacity: .4; cursor: not-allowed; }

/* ══════════════════════════════════════
   MICRO LABELS / TITRES DE SECTIONS
══════════════════════════════════════ */
.section-micro {
  font-size: .62rem; letter-spacing: .25em; text-transform: uppercase;
  color: var(--gold); font-weight: 500; margin-bottom: .6rem; text-align: center;
}
.section-title {
  font-family: var(--font-serif); font-size: clamp(1.9rem, 4.5vw, 3rem);
  font-weight: 300; color: var(--ink); line-height: 1.2;
  margin-bottom: .75rem; text-align: center;
}
.section-title em { font-style: italic; color: var(--ink-3); }
.section-sub {
  font-size: .9rem; color: var(--ink-3); text-align: center;
  max-width: 480px; margin: 0 auto 3rem; line-height: 1.75;
}

/* ══════════════════════════════════════
   RECHERCHE RAPIDE
══════════════════════════════════════ */
.quick-search-section {
  background: var(--white); border-bottom: 1px solid var(--border);
  padding: 2rem 0;
}
.search-bar-wrap {
  display: flex; max-width: 600px; margin: 0 auto;
  background: var(--cream); border: 1px solid var(--border); border-radius: var(--radius-pill);
  overflow: hidden; box-shadow: var(--shadow);
}
.search-input {
  flex: 1; border: none; outline: none; background: var(--white);
  padding: .85rem 1.4rem; font-family: var(--font-sans); font-size: .95rem; color: var(--ink);
}
.search-input::placeholder { color: var(--ink-4); }
/* Dans le hero uniquement : fond semi-transparent, texte clair */
.hero .search-bar-wrap { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); }
.hero .search-input { background: transparent; color: var(--cream); }
.hero .search-input::placeholder { color: rgba(255,255,255,.45); }
.hero .search-input:focus { background: rgba(255,255,255,.08); }
.search-btn {
  background: var(--ink); color: var(--cream); border: none;
  padding: .85rem 1.6rem; font-family: var(--font-sans);
  font-size: .72rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  border-radius: 0 var(--radius-pill) var(--radius-pill) 0;
  transition: var(--trans); white-space: nowrap;
}
.search-btn:hover { background: var(--gold); color: var(--ink); }
.search-btn:disabled { opacity: .4; cursor: not-allowed; }
.quick-tags {
  display: flex; gap: .4rem; flex-wrap: wrap; justify-content: center;
  margin-top: .9rem; max-width: 600px; margin-left: auto; margin-right: auto;
}
.qtag {
  font-size: .72rem; background: var(--white); border: 1px solid var(--border);
  color: var(--ink-2); padding: .32rem .8rem; border-radius: var(--radius-pill);
  transition: var(--trans);
}
.qtag:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }

/* Résultat rapide */
.quick-result-card {
  max-width: 600px; margin: 1.25rem auto 0;
  background: var(--cream-2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.25rem; animation: fadeUp .3s ease;
}
.qr-name { font-family: var(--font-serif); font-size: 1.8rem; font-weight: 300; color: var(--ink); }
.qr-origin { font-size: .72rem; color: var(--ink-3); margin-bottom: .5rem; }
.qr-chips { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: .7rem; }
.chip {
  font-size: .6rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  padding: .22rem .65rem; border-radius: var(--radius-pill);
}
.chip-f { background: #fdf0f5; color: #c2547a; border: 1px solid #f4c0d1; }
.chip-m { background: #eef3fb; color: #2d5f9e; border: 1px solid #b5d4f4; }
.chip-mx { background: #f4f0fb; color: #6b52c4; border: 1px solid #cbc7f0; }
.chip-gold { background: var(--cream-2); color: var(--gold-deep); border: 1px solid var(--gold-l); }
.chip-neutral { background: var(--cream-2); color: var(--ink-3); border: 1px solid var(--border); }
.qr-meaning { font-size: .88rem; color: var(--ink-2); line-height: 1.65; margin-bottom: .85rem; }
.qr-scores { display: grid; grid-template-columns: repeat(2,1fr); gap: .4rem; }
.qr-score-item { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .55rem .75rem; }
.qrs-label { font-size: .58rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-4); margin-bottom: .2rem; }
.qrs-val { font-size: .85rem; font-weight: 500; color: var(--ink-2); }
.qr-cta { margin-top: .85rem; }

/* ══════════════════════════════════════
   OUTILS
══════════════════════════════════════ */
.tools-section { padding: 5rem 0; background: var(--cream); }
.tools-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}
.tool-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.75rem; display: block; position: relative;
  transition: var(--trans); overflow: hidden;
}
.tool-card::before {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0; transition: var(--trans);
}
.tool-card:hover { border-color: var(--gold-l); transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.tool-card:hover::before { opacity: 1; }
.tool-card:hover .tool-arrow { color: var(--gold); }
.tool-icon { font-size: 1.6rem; color: var(--gold); margin-bottom: 1rem; }
.tool-title {
  font-family: var(--font-serif); font-size: 1.25rem; font-weight: 300;
  color: var(--ink); margin-bottom: .45rem;
}
.tool-desc { font-size: .82rem; color: var(--ink-3); line-height: 1.65; margin-bottom: 1.5rem; }
.tool-arrow { font-size: .72rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-4); transition: var(--trans); }

/* ══════════════════════════════════════
   STATS
══════════════════════════════════════ */
.stats-section { background: var(--ink); padding: 4rem 0; }
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr));
  gap: 1rem; margin-bottom: 2.5rem;
}
.stat { text-align: center; }
.stat-n {
  font-family: var(--font-serif); font-size: 2.8rem; font-weight: 300;
  color: var(--gold-l); line-height: 1;
}
.stat-l { font-size: .65rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(250,248,244,.35); margin-top: .35rem; }
.stats-quote {
  text-align: center; font-family: var(--font-serif); font-size: 1.15rem;
  font-style: italic; color: rgba(250,248,244,.35); max-width: 480px; margin: 0 auto;
}

/* ══════════════════════════════════════
   TENDANCES
══════════════════════════════════════ */
.trending-section { padding: 5rem 0; background: var(--cream-2); border-top: 1px solid var(--border); }
.trending-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
  gap: 1rem; margin-top: 2.5rem;
}
.trending-col { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; }
.trending-col-head {
  font-size: .62rem; letter-spacing: .16em; text-transform: uppercase;
  font-weight: 500; color: var(--ink-3); margin-bottom: .9rem;
  display: flex; align-items: center; gap: .5rem;
}
.tcol-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.tcol-dot-f { background: #c2547a; }
.tcol-dot-m { background: #2d5f9e; }
.tcol-dot-mx { background: #6b52c4; }
.trow {
  display: flex; align-items: center; gap: .65rem;
  padding: .5rem 0; border-bottom: 1px solid var(--cream-2);
  transition: var(--trans);
}
.trow:last-child { border-bottom: none; }
.trow:hover .tname { color: var(--gold); }
.trank { font-family: var(--font-serif); font-size: 1.05rem; color: var(--gold); width: 20px; text-align: right; flex-shrink: 0; }
.tname { font-size: .9rem; color: var(--ink-2); flex: 1; }
.tup { font-size: .7rem; color: #5a9a6a; font-weight: 500; }

/* ══════════════════════════════════════
   COMMENT ÇA MARCHE
══════════════════════════════════════ */
.how-section { padding: 5rem 0; background: var(--white); border-top: 1px solid var(--border); }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 2rem; margin-top: 2.5rem; }
.step { text-align: center; }
.step-n {
  font-family: var(--font-serif); font-size: 3.5rem; font-weight: 300;
  color: var(--gold-l); line-height: 1; margin-bottom: .5rem;
}
.step-title { font-size: .9rem; font-weight: 500; color: var(--ink); margin-bottom: .4rem; }
.step-desc { font-size: .8rem; color: var(--ink-3); line-height: 1.65; }

/* ══════════════════════════════════════
   PREMIUM
══════════════════════════════════════ */
.premium-section { padding: 5rem 0; background: var(--gold-pale); border-top: 1px solid var(--gold-l); }
.premium-box { max-width: 680px; margin: 0 auto; text-align: center; }
.premium-badge {
  display: inline-block; background: var(--gold); color: var(--ink);
  font-size: .62rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  padding: .35rem .95rem; border-radius: var(--radius-pill); margin-bottom: 1rem;
}
.premium-title {
  font-family: var(--font-serif); font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 300; color: var(--ink); line-height: 1.25; margin-bottom: .75rem;
}
.premium-title em { font-style: italic; }
.premium-list {
  list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
  gap: .5rem; text-align: left; margin: 1.5rem 0 2rem;
}
.premium-list li { font-size: .85rem; color: var(--ink-2); padding: .35rem 0; }
.premium-price {
  font-family: var(--font-serif); font-size: 2.8rem; font-weight: 300;
  color: var(--ink); margin-bottom: .25rem;
}
.premium-period { font-size: .85rem; color: var(--ink-3); }
.premium-cta { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; margin-top: 1.5rem; }

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
footer { background: var(--ink); padding: 3rem 0 0; }
.footer-inner {
  display: flex; flex-wrap: wrap; gap: 2.5rem; justify-content: space-between;
  padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,.07);
}
.footer-brand p { font-size: .78rem; color: rgba(255,255,255,.3); margin-top: .6rem; max-width: 220px; line-height: 1.65; }
.footer-col h4 {
  font-size: .6rem; letter-spacing: .16em; text-transform: uppercase;
  font-weight: 500; color: rgba(255,255,255,.28); margin-bottom: .75rem;
}
.footer-col a { display: block; font-size: .8rem; color: rgba(255,255,255,.42); margin-bottom: .38rem; transition: var(--trans); }
.footer-col a:hover { color: var(--gold-l); }
.footer-bottom {
  padding: 1.25rem 0; display: flex; flex-wrap: wrap;
  justify-content: space-between; align-items: center; gap: .5rem;
}
.footer-bottom p { font-size: .68rem; color: rgba(255,255,255,.22); }
.footer-ad-note { font-style: italic; }

/* ══════════════════════════════════════
   PAGE INTÉRIEURE — HEADER
══════════════════════════════════════ */
.page-header {
  background: var(--cream-2); border-bottom: 1px solid var(--border);
  padding: 2rem 0 1.75rem;
}
.page-header .container { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.page-tag { font-size: .6rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); font-weight: 500; margin-bottom: .4rem; }
.page-title { font-family: var(--font-serif); font-size: clamp(1.6rem, 4vw, 2.5rem); font-weight: 300; color: var(--ink); line-height: 1.2; }
.page-title em { font-style: italic; color: var(--ink-3); }
.page-sub { font-size: .85rem; color: var(--ink-3); margin-top: .35rem; }

/* ══════════════════════════════════════
   LAYOUT PAGE INTÉRIEURE
══════════════════════════════════════ */
.page-layout {
  max-width: 1080px; margin: 0 auto; padding: 2rem 1.5rem;
  display: grid; grid-template-columns: 1fr 200px; gap: 2rem;
}
.page-main { min-width: 0; }
.page-sidebar { display: flex; flex-direction: column; gap: 1rem; }

/* ══════════════════════════════════════
   CARDS GÉNÉRIQUES
══════════════════════════════════════ */
.card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem;
}
.card-title {
  font-family: var(--font-serif); font-size: 1.2rem; font-weight: 300;
  color: var(--ink); margin-bottom: 1rem;
}
.card-label {
  font-size: .6rem; letter-spacing: .16em; text-transform: uppercase;
  font-weight: 500; color: var(--ink-3); margin-bottom: .5rem;
}

/* ══════════════════════════════════════
   FORMULAIRES
══════════════════════════════════════ */
.form-group { margin-bottom: .9rem; }
.form-label { font-size: .65rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; color: var(--ink-3); display: block; margin-bottom: .4rem; }
.form-input {
  width: 100%; border: 1px solid var(--border); border-radius: var(--radius-pill);
  padding: .65rem 1.1rem; font-family: var(--font-sans); font-size: .9rem;
  color: var(--ink); background: var(--white); outline: none; transition: var(--trans);
}
.form-input:focus { border-color: var(--gold); }
.form-input::placeholder { color: var(--ink-4); }
.form-select {
  width: 100%; border: 1px solid var(--border); border-radius: var(--radius-pill);
  padding: .65rem 1.1rem; font-family: var(--font-sans); font-size: .9rem;
  color: var(--ink); background: var(--white); outline: none; cursor: pointer; transition: var(--trans);
}
.form-select:focus { border-color: var(--gold); }
.form-textarea {
  width: 100%; border: 1px solid var(--border); border-radius: var(--radius);
  padding: .75rem 1.1rem; font-family: var(--font-sans); font-size: .88rem;
  color: var(--ink); background: var(--white); outline: none; resize: vertical;
  min-height: 80px; transition: var(--trans);
}
.form-textarea:focus { border-color: var(--gold); }

/* ══════════════════════════════════════
   SEGMENTED CONTROLS
══════════════════════════════════════ */
.seg-ctrl {
  display: inline-flex; background: var(--cream-2); border: 1px solid var(--border);
  border-radius: var(--radius-pill); overflow: hidden;
}
.seg-btn {
  border: none; background: transparent; font-family: var(--font-sans);
  font-size: .7rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-3); padding: .42rem .95rem; cursor: pointer; transition: var(--trans);
}
.seg-btn.active { background: var(--ink); color: var(--cream); border-radius: var(--radius-pill); }

/* ══════════════════════════════════════
   BADGES GENRE
══════════════════════════════════════ */
.badge-f { background: #fdf0f5; color: #c2547a; border: 1px solid #f4c0d1; }
.badge-m { background: #eef3fb; color: #2d5f9e; border: 1px solid #b5d4f4; }
.badge-mx { background: #f4f0fb; color: #6b52c4; border: 1px solid #cbc7f0; }
.badge-up { background: #edf8f0; color: #2a7a3a; border: 1px solid #9edcaa; }
.badge-dn { background: #fdf4f4; color: #a33; border: 1px solid #f7c1c1; }
.badge-st { background: var(--cream-2); color: var(--ink-3); border: 1px solid var(--border); }
.badge {
  font-size: .6rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  padding: .22rem .65rem; border-radius: var(--radius-pill); display: inline-block;
}

/* ══════════════════════════════════════
   SCORE BARS
══════════════════════════════════════ */
.score-bar-row { display: flex; align-items: center; gap: .6rem; margin-bottom: .5rem; }
.score-bar-label { font-size: .72rem; color: var(--ink-3); width: 150px; flex-shrink: 0; }
.score-bar-bg { flex: 1; height: 5px; background: var(--cream-2); border-radius: 3px; overflow: hidden; }
.score-bar-fill { height: 100%; background: var(--gold); border-radius: 3px; transition: width .6s ease; }
.score-bar-val { font-size: .72rem; color: var(--ink-3); width: 30px; text-align: right; }

/* ══════════════════════════════════════
   SPARKLINES
══════════════════════════════════════ */
.sparkline-row { display: flex; align-items: center; gap: .5rem; margin-bottom: .3rem; }
.spark-year { font-size: .68rem; color: var(--ink-3); width: 34px; text-align: right; flex-shrink: 0; }
.spark-bg { flex: 1; height: 7px; background: var(--cream-2); border-radius: 4px; overflow: hidden; }
.spark-fill { height: 100%; background: var(--gold); border-radius: 4px; transition: width .5s ease; }
.spark-count { font-size: .68rem; color: var(--ink-3); width: 38px; }

/* ══════════════════════════════════════
   PAYWALL GATE
══════════════════════════════════════ */
.gate {
  background: var(--ink); border-radius: var(--radius); padding: 1.1rem 1.4rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.gate-text { color: rgba(255,255,255,.65); font-size: .82rem; line-height: 1.55; }
.gate-text strong { color: var(--cream); display: block; margin-bottom: .15rem; }
.gate-btn {
  background: var(--gold); color: var(--ink); border: none;
  padding: .55rem 1.2rem; border-radius: var(--radius-pill);
  font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  cursor: pointer; white-space: nowrap; transition: var(--trans); flex-shrink: 0;
}
.gate-btn:hover { background: var(--gold-l); }

/* ══════════════════════════════════════
   LOADING
══════════════════════════════════════ */
.loading-bar-wrap { height: 2px; background: var(--cream-2); border-radius: 2px; overflow: hidden; margin-bottom: .75rem; }
.loading-bar { height: 100%; background: var(--gold); border-radius: 2px; width: 0; animation: loadSlide 1.6s ease-in-out infinite; }
.loading-text { font-size: .78rem; color: var(--ink-3); text-align: center; font-style: italic; padding: .5rem 0; }

/* ══════════════════════════════════════
   EMPTY STATE
══════════════════════════════════════ */
.empty-state { text-align: center; padding: 3.5rem 1rem; }
.empty-icon { font-size: 2rem; color: var(--border); margin-bottom: 1rem; }
.empty-title { font-family: var(--font-serif); font-size: 1.4rem; font-weight: 300; color: var(--ink); margin-bottom: .5rem; }
.empty-sub { font-size: .85rem; color: var(--ink-3); max-width: 300px; margin: 0 auto; }
.empty-suggestions { display: flex; gap: .4rem; flex-wrap: wrap; justify-content: center; margin-top: 1rem; }

/* ══════════════════════════════════════
   PODIUM
══════════════════════════════════════ */
.podium { display: flex; align-items: flex-end; justify-content: center; gap: .75rem; margin-bottom: 2rem; }
.podium-item { display: flex; flex-direction: column; align-items: center; gap: .4rem; flex: 1; max-width: 130px; }
.podium-name { font-family: var(--font-serif); font-size: 1.1rem; font-weight: 300; color: var(--ink); text-align: center; line-height: 1.2; }
.podium-block { width: 100%; border-radius: 6px 6px 0 0; display: flex; align-items: center; justify-content: center; }
.podium-rank { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 300; color: rgba(255,255,255,.9); }
.podium-nb { font-size: .65rem; color: var(--ink-3); text-align: center; }
.podium-1 .podium-block { height: 110px; background: var(--gold); }
.podium-2 .podium-block { height: 78px; background: #9a9a9a; }
.podium-3 .podium-block { height: 58px; background: #b87333; }

/* ══════════════════════════════════════
   RANK LIST
══════════════════════════════════════ */
.rank-item {
  background: var(--white); border: 1px solid var(--border); border-radius: 10px;
  padding: .85rem 1.1rem; display: flex; align-items: center; gap: .8rem;
  cursor: pointer; transition: var(--trans); margin-bottom: .45rem;
  animation: fadeUp .25s ease both;
}
.rank-item:hover { border-color: var(--gold-l); background: var(--cream); }
.rank-num { font-family: var(--font-serif); font-size: 1.3rem; font-weight: 300; color: var(--gold); width: 32px; text-align: center; flex-shrink: 0; }
.rank-name-col { flex: 1; min-width: 0; }
.rank-name { font-family: var(--font-serif); font-size: 1.15rem; font-weight: 300; color: var(--ink); }
.rank-origin-label { font-size: .68rem; color: var(--ink-3); }
.rank-bar-col { flex: 1; max-width: 120px; }
.rank-count { font-size: .72rem; color: var(--ink-3); white-space: nowrap; }
.rank-trend { font-size: .72rem; font-weight: 500; min-width: 32px; text-align: right; }
.trend-up { color: #3a8a4a; }
.trend-dn { color: #c33; }
.trend-eq { color: var(--ink-3); }

/* ══════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@keyframes bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}
@keyframes loadSlide {
  0% { width: 0; margin-left: 0; }
  50% { width: 55%; margin-left: 25%; }
  100% { width: 0; margin-left: 100%; }
}

/* ══════════════════════════════════════
   SIDEBAR ADS
══════════════════════════════════════ */
.sidebar-section-title {
  font-size: .6rem; letter-spacing: .16em; text-transform: uppercase;
  font-weight: 500; color: var(--ink-3); margin-bottom: .75rem;
  padding-bottom: .5rem; border-bottom: 1px solid var(--border);
}
.sidebar-link {
  display: block; font-size: .82rem; color: var(--ink-2); padding: .38rem 0;
  border-bottom: 1px solid var(--cream-2); transition: var(--trans);
}
.sidebar-link:hover { color: var(--gold); padding-left: .2rem; }
.sidebar-link:last-child { border-bottom: none; }

/* ══════════════════════════════════════
   CARTE GÉOGRAPHIQUE
══════════════════════════════════════ */
.geo-tabs {
  display: flex; gap: .3rem; margin-bottom: .75rem;
}
.geo-tab {
  border: 1px solid var(--border); border-radius: var(--radius-pill);
  background: transparent; font-family: var(--font-sans);
  font-size: .65rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-3); padding: .35rem .85rem; cursor: pointer; transition: var(--trans);
}
.geo-tab.active { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.geo-tab:hover:not(.active) { border-color: var(--gold); color: var(--ink); }

.geo-legend {
  display: flex; flex-wrap: wrap; gap: .5rem 1rem; margin-bottom: 1rem;
  padding: .6rem .75rem; background: var(--cream-2); border-radius: var(--radius-sm);
}
.geo-legend-item { display: flex; align-items: center; gap: .35rem; }
.geo-legend-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.geo-legend-item span { font-size: .65rem; color: var(--ink-3); }

.geo-panel {}
.geo-row {
  display: flex; align-items: center; gap: .6rem; padding: .4rem 0;
  border-bottom: 1px solid var(--cream-2);
}
.geo-row:last-child { border-bottom: none; }
.geo-flag { font-size: 1.1rem; width: 24px; text-align: center; flex-shrink: 0; }
.geo-name { font-size: .82rem; color: var(--ink-2); width: 180px; flex-shrink: 0; }
.geo-bar-bg { flex: 1; height: 6px; background: var(--cream-2); border-radius: 4px; overflow: hidden; }
.geo-bar-fill { height: 100%; border-radius: 4px; transition: width .5s ease; }
.geo-badge {
  font-size: .58rem; font-weight: 500; letter-spacing: .07em; text-transform: uppercase;
  padding: .18rem .55rem; border-radius: var(--radius-pill); white-space: nowrap; flex-shrink: 0;
}

/* ══════════════════════════════════════
   PERSONNALITÉS
══════════════════════════════════════ */
.perso-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: .75rem;
}
.perso-card {
  display: flex; gap: .75rem; align-items: flex-start;
  background: var(--cream-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: .85rem; transition: var(--trans);
}
.perso-card:hover { border-color: var(--gold-l); background: var(--gold-pale); }
.perso-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: .1rem; }
.perso-body { flex: 1; min-width: 0; }
.perso-nom { font-family: var(--font-serif); font-size: 1rem; font-weight: 400; color: var(--ink); margin-bottom: .2rem; }
.perso-meta { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: .35rem; align-items: center; }
.perso-domaine {
  font-size: .58rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  background: var(--gold-pale); color: var(--gold-deep); border: 1px solid var(--gold-l);
  padding: .15rem .5rem; border-radius: var(--radius-pill);
}
.perso-pays { font-size: .7rem; color: var(--ink-3); }
.perso-desc { font-size: .78rem; color: var(--ink-3); line-height: 1.5; }

@media (max-width: 640px) {
  .perso-grid { grid-template-columns: 1fr; }
  .geo-name { width: 120px; }
}


@media (max-width: 900px) {
  .page-layout { grid-template-columns: 1fr; }
  .page-sidebar { display: none; }
}

@media (max-width: 640px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--ink); padding: 1rem; border-top: 1px solid rgba(255,255,255,.08); gap: .25rem; }
  .nav-links.open { display: flex; }
  .nav-burger { display: flex; }
  #nav { position: relative; }
  .hero { min-height: 80vh; padding: 3rem 1.25rem 2.5rem; }
  .tools-grid { grid-template-columns: 1fr; }
  .premium-list { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .trending-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .footer-inner { flex-direction: column; gap: 1.5rem; }
  .qr-scores { grid-template-columns: 1fr 1fr; }
  .rank-bar-col { display: none; }
  .ad-slot-728 { height: 50px; }
  .score-bar-label { width: 100px; font-size: .68rem; }
  .page-layout { padding: 1rem; }
}

@media (max-width: 400px) {
  .steps-grid { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; align-items: center; }
  .btn-primary, .btn-ghost { width: 100%; text-align: center; }
}

/* ══════════════════════════════════════
   SÉLECTEUR PAYS / LANGUE
══════════════════════════════════════ */
.pays-selector { position: relative; flex-shrink: 0; }
.pays-selector summary.pays-btn {
  display: flex; align-items: center; gap: .35rem; list-style: none;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-pill); padding: .3rem .75rem;
  color: rgba(255,255,255,.85); cursor: pointer; font-family: var(--font-sans);
  transition: var(--trans); white-space: nowrap; user-select: none;
}
.pays-selector summary.pays-btn::-webkit-details-marker { display: none; }
.pays-selector[open] summary.pays-btn { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.3); }
.pays-selector summary.pays-btn:hover { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.3); }
.pays-chevron { font-size:.55rem; opacity:.6; transition: transform .2s; }
.pays-selector[open] .pays-chevron { transform: rotate(180deg); }
.pays-dropdown {
  position: absolute; top: calc(100% + .5rem); right: 0;
  background: var(--ink); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius); min-width: 200px;
  box-shadow: 0 8px 32px rgba(0,0,0,.4); z-index: 500;
  overflow: hidden;
}
.pays-list {
  max-height: 240px; overflow-y: auto; padding: .25rem 0;
  display: block; width: 100%;
}
.pays-list-item {
  display: block; width: 100%; text-align: left;
  background: transparent; border: none; outline: none;
  color: rgba(255,255,255,.85); font-family: var(--font-sans); font-size: .82rem;
  padding: .45rem .85rem; cursor: pointer; transition: background .15s;
  white-space: nowrap; box-sizing: border-box;
}
.pays-list-item:hover { background: rgba(255,255,255,.12); color: #fff; }
.pays-list-item.active { color: #c8a84b; font-weight: 500; }

/* ══════════════════════════════════════
   TRENDING COMPACT (HOME)
══════════════════════════════════════ */
.trending-compact { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.trending-row { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.trending-group { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.tlink {
  font-size: .8rem; color: var(--ink-2); padding: .2rem .6rem;
  border: 1px solid var(--border); border-radius: var(--radius-pill);
  transition: var(--trans); white-space: nowrap;
}
.tlink:hover { border-color: var(--gold); color: var(--gold-deep); }

/* ══════════════════════════════════════
   HERO QUICK TAGS
══════════════════════════════════════ */
.hero .qtag { background: rgba(255,255,255,.08); color: rgba(255,255,255,.7); border-color: rgba(255,255,255,.15); }
.hero .qtag:hover { background: rgba(255,255,255,.15); color: var(--cream); border-color: rgba(255,255,255,.3); }
