/* ===== PromoRider — feuille de style ===== */
:root {
  --bg: #07090D;
  --surface: #11161F;
  --surface-2: #19202C;
  --line: #262F3E;
  --text: #F3F5F8;
  --muted: #A9B3C2;
  --orange: #FF7A1A;
  --orange-hover: #FF9445;
  --yellow: #FFD21F;
  --lime: #A6E22E;
  --cyan: #3FC3F0;
  --on-accent: #0B0F17;
  --radius: 18px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
#promos { scroll-margin-top: 100px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); line-height: 1.5; }
img { max-width: 100%; display: block; }
a { color: var(--cyan); }
a:hover { color: #7FD8F7; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ----- En-tête ----- */
.site-header { background: #000; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; gap: 12px 24px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.logo img { height: 64px; width: auto; }
.nav { display: flex; flex-wrap: wrap; gap: 4px; flex: 1 1 auto; }
.nav a { padding: 10px 14px; border-radius: 999px; color: var(--text); font-weight: 700; font-size: 15px; text-decoration: none; }
.nav a:hover { background: var(--surface-2); color: var(--text); }
.nav a[aria-current="page"] { background: var(--orange); color: var(--on-accent); }
.community-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; background: #1877F2; color: #fff; font-weight: 800; font-size: 15px; text-decoration: none; }
.community-btn:hover { background: #3B8DF5; color: #fff; }
.community-btn[aria-current="page"] { outline: 2px solid #fff; outline-offset: 2px; }

/* ----- Textes ----- */
.eyebrow { margin: 0 0 10px; font-weight: 800; font-size: 15px; color: var(--orange); text-transform: uppercase; letter-spacing: .06em; }
h1 { margin: 0; font-size: clamp(34px, 5.4vw, 60px); line-height: 1.03; font-weight: 900; letter-spacing: -0.025em; }
h1 .hl { color: var(--yellow); }
.lead { margin: 16px 0 0; font-size: 18px; color: var(--muted); max-width: 660px; }
h2 { margin: 0; font-size: 24px; font-weight: 900; letter-spacing: -0.01em; }
main { padding: 40px 0 72px; }
main > .wrap { display: flex; flex-direction: column; gap: 28px; }

/* ----- Boutons ----- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 800; font-size: 16px; text-decoration: none; border: 1px solid transparent; cursor: pointer; }
.btn-primary { background: var(--orange); color: var(--on-accent); }
.btn-primary:hover { background: var(--orange-hover); color: var(--on-accent); }
.btn-ghost { background: transparent; border-color: #3A4558; color: var(--text); }
.btn-ghost:hover { border-color: var(--orange); color: var(--text); }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 14px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 15px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-weight: 800; font-size: 15px; cursor: pointer; }
.chip:hover { border-color: #4A566B; }
.chip[aria-pressed="true"] { background: var(--text); color: var(--on-accent); border-color: var(--text); }
.chip .count { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.chip[aria-pressed="true"] .count { background: #D5DAE2; color: var(--on-accent); }

/* ----- Blocs ----- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.panel { padding: 20px 22px; }
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; }
.hero-text { flex: 999 1 520px; min-width: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 26px; max-width: 560px; }
.stat { padding: 14px 16px; }
.stat b { display: block; font-size: 26px; font-weight: 900; color: var(--yellow); }
.stat span { font-size: 13px; color: var(--muted); }
.notice { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.notice p { margin: 0; }
.notice .grow { flex: 999 1 380px; min-width: 0; }
.notice .muted { color: var(--muted); font-size: 15px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.step .num { font-size: 13px; font-weight: 900; color: var(--orange); }
.step h3 { margin: 6px 0 0; font-size: 18px; }
.step p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.tool { display: block; padding: 26px; border-radius: 22px; text-decoration: none; color: var(--on-accent); }
.tool:hover { color: var(--on-accent); filter: brightness(1.06); }
.tool small { font-weight: 900; font-size: 13px; letter-spacing: .06em; }
.tool strong { display: block; margin-top: 8px; font-size: 26px; line-height: 1.15; font-weight: 900; }
.tool p { margin: 8px 0 0; font-size: 15px; }
.tool .go { margin-top: 16px; font-weight: 900; }
.tool-orange { background: var(--orange); }
.tool-cyan { background: var(--cyan); }
.tool-lime { background: var(--lime); }
.tool-fb { background: #1877F2; color: #fff; }
.tool-fb:hover { color: #fff; }
.legal { background: #0E2230; border: 1px solid #1E4A63; border-radius: 14px; padding: 14px 18px; font-size: 15px; color: #D7EEF8; }

/* ----- Filtres ----- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.search { flex: 1 1 280px; min-height: 48px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 15px; }
.search::placeholder { color: #8893A4; }
.result-count { margin: -10px 0 0; color: var(--muted); }
.result-count b { color: var(--text); }

/* ----- Cartes produit ----- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.product { display: flex; flex-direction: column; overflow: hidden; }
.product .media { position: relative; height: auto; aspect-ratio: 1 / 1; overflow: hidden; background: radial-gradient(circle at 50% 60%, #1E2735, #10151D 70%); display: flex; align-items: center; justify-content: center; }
.product .media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.product .media.has-photo { background: #000; }
.badge { position: absolute; z-index: 1; top: 12px; left: 12px; background: var(--yellow); color: var(--on-accent); font-weight: 900; font-size: 14px; padding: 5px 10px; border-radius: 999px; }
.hearts { position: absolute; z-index: 1; top: 12px; right: 12px; background: #000; border: 1px solid var(--line); color: #FF5A6E; font-size: 14px; font-weight: 900; padding: 4px 10px; border-radius: 999px; }
.product .body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.brand { margin: 0; font-size: 14px; color: var(--muted); }
.product h3 { margin: 2px 0 0; font-size: 22px; font-weight: 900; letter-spacing: -0.01em; }
.specs { display: flex; flex-wrap: wrap; gap: 6px; }
.spec { font-size: 13px; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: var(--surface-2); color: #D8DEE7; border: 1px solid var(--line); }
.price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price b { font-size: 28px; font-weight: 900; }
.price s { color: var(--muted); font-size: 16px; }
.avis { margin: 0; font-size: 14px; padding: 10px 12px; background: var(--surface-2); border-left: 3px solid var(--lime); border-radius: 10px; color: #E3E8EF; }
.avis strong { color: var(--lime); }
.code { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 10px 10px 14px; background: #000; border: 1px dashed #4A566B; border-radius: 12px; }
.code small { display: block; font-size: 12px; font-weight: 700; color: var(--muted); }
.code b { font-size: 16px; letter-spacing: .04em; color: var(--yellow); }
.code b.masked { letter-spacing: .12em; color: #6B7686; user-select: none; }
.code .btn-sm { white-space: nowrap; }
.product .actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; }
.product .actions .btn { flex: 1 1 140px; }
.empty { padding: 28px; text-align: center; }

/* ----- Newsletter / pied ----- */
.newsletter { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; padding: 28px; border: 2px solid var(--orange); border-radius: 22px; background: linear-gradient(135deg, #1A1208, #11161F 60%); }
.newsletter > div { flex: 1 1 260px; min-width: 0; }
.newsletter h2 { font-size: 30px; line-height: 1.1; }
.newsletter p { color: var(--muted); }
.newsletter form { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.field { min-height: 48px; padding: 0 14px; border: 1px solid #3A4558; border-radius: 12px; background: #000; }
.small { font-size: 12px; color: var(--muted); }
.site-footer { border-top: 1px solid var(--line); background: #000; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 18px 28px; justify-content: space-between; padding-top: 28px; padding-bottom: 28px; }
.site-footer p { margin: 0; flex: 1 1 420px; font-size: 13px; color: var(--muted); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 16px; font-size: 14px; font-weight: 700; }

/* ----- Comparateur ----- */
.layout { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.sidebar { flex: 1 1 300px; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.content { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.slider { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.slider .row { display: flex; justify-content: space-between; gap: 8px; }
.slider label { font-size: 13px; font-weight: 800; letter-spacing: .03em; }
.slider output { font-weight: 900; color: var(--yellow); }
.slider input { width: 100%; margin-top: 10px; accent-color: var(--orange); }
.switch { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: transparent; font-weight: 800; cursor: pointer; text-align: left; }
.switch .track { width: 40px; height: 22px; border-radius: 999px; background: #3A4558; position: relative; flex: none; transition: background .15s; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 999px; background: #fff; transition: left .15s; }
.switch[aria-pressed="true"] .track { background: var(--orange); }
.switch[aria-pressed="true"] .track::after { left: 21px; }
.summary-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 14px 18px; }
.summary-bar b { font-size: 22px; font-weight: 900; color: var(--yellow); }
.best { display: grid; grid-template-columns: 1fr; overflow: hidden; border: 2px solid var(--orange); }
@media (min-width: 900px) { .best { grid-template-columns: minmax(0, 360px) minmax(0, 1fr); } .best .media { aspect-ratio: auto; min-height: 100%; } }
.best .body { min-width: 0; }
.best h3 { font-size: 34px; }
.score { text-align: center; background: #000; border: 1px solid var(--line); border-radius: 14px; padding: 8px 12px; align-self: flex-start; }
.score b { display: block; font-size: 24px; font-weight: 900; color: var(--lime); }
.score span { font-size: 11px; color: var(--muted); }
.head-row { display: flex; justify-content: space-between; gap: 10px; }
.product.selected { border-color: var(--cyan); }
.cmp-btn[aria-pressed="true"] { background: var(--cyan); color: var(--on-accent); border-color: var(--cyan); }
.table-box { overflow-x: auto; margin-top: 14px; }
table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 10px; border-bottom: 1px solid var(--line); }
thead th { font-weight: 900; border-bottom-width: 2px; }
tbody th { color: var(--muted); font-weight: 700; }
td.top { color: var(--lime); font-weight: 900; }

/* ----- Quiz ----- */
.quiz-card { flex: 999 1 560px; min-width: 0; padding: 26px; }
.pill { display: inline-block; background: var(--text); color: var(--on-accent); font-weight: 900; font-size: 14px; padding: 6px 14px; border-radius: 999px; }
.pill.ok { background: var(--lime); }
.progress { margin-top: 20px; height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.progress div { height: 100%; background: linear-gradient(90deg, var(--orange), var(--yellow)); border-radius: 999px; transition: width .2s; }
.quiz-card h2 { margin-top: 22px; font-size: 30px; }
.options { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 24px; }
.option { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-height: 68px; padding: 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); text-align: left; cursor: pointer; }
.option:hover { border-color: var(--orange); }
.option[aria-pressed="true"] { border: 2px solid var(--orange); }
.option strong { font-size: 16px; }
.option span { font-size: 13px; color: var(--muted); }
.criteria { flex: 1 1 280px; padding: 22px; }
.criteria ul { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.criteria li { padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px; font-weight: 700; font-size: 14px; }
.criteria li.hl { border-color: var(--lime); color: var(--lime); }
.result { display: flex; flex-wrap: wrap; gap: 18px; padding: 20px; }
.result.first { border: 2px solid var(--orange); }
.result .pct { width: 88px; height: 88px; border-radius: 16px; background: var(--surface-2); display: flex; flex-direction: column; align-items: center; justify-content: center; flex: none; }
.result.first .pct { background: var(--orange); color: var(--on-accent); }
.result .pct b { font-size: 26px; font-weight: 900; }
.result .pct span { font-size: 11px; font-weight: 700; }
.result .info { flex: 999 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.result ul { margin: 0; padding-left: 18px; color: #DCE2EA; }
.rank { font-size: 13px; font-weight: 900; color: var(--orange); }
.warn { font-size: 12px; font-weight: 800; padding: 3px 8px; border-radius: 999px; background: #3B2207; color: #FFC58A; }

@media (max-width: 640px) {
  .site-header { position: static; }
  .logo img { height: 52px; }
  .logo { order: 1; }
  .community-btn { order: 2; margin-left: auto; min-height: 40px; padding: 0 14px; font-size: 14px; }
  .nav { order: 3; }
  .site-header .wrap { gap: 6px; padding-top: 6px; padding-bottom: 6px; }
  .nav { flex: 1 1 100%; flex-wrap: nowrap; justify-content: space-between; gap: 2px; overflow-x: auto; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { flex: none; padding: 8px 9px; font-size: 13.5px; white-space: nowrap; }
  .hero-actions .btn { flex: 1 1 100%; }
  #promos { scroll-margin-top: 16px; }
  .stats { grid-template-columns: 1fr 1fr 1fr; }
  .stat b { font-size: 20px; }
}
@media (max-width: 400px) {
  .newsletter { padding: 20px; }
  .wrap { padding: 0 14px; }
  .nav a { padding: 7px 7px; font-size: 12.5px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } html { scroll-behavior: auto; } }

/* ----- Menu : libellés courts sur mobile ----- */
.nav .s { display: none; }
@media (max-width: 640px) {
  .nav .l { display: none; }
  .nav .s { display: inline; }
}

/* ----- Page vidéos ----- */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.video-card { display: flex; flex-direction: column; overflow: hidden; }
.player { position: relative; aspect-ratio: 16 / 9; background: #000; }
.player button { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: #000; cursor: pointer; }
.player img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: opacity .15s; }
.player button:hover img { opacity: 1; }
.player .play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 72px; height: 50px; border-radius: 14px; background: #FF0033; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(0,0,0,.45); }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player .badge, .player .hearts { z-index: 2; }
.video-card .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.video-card h3 { margin: 0; font-size: 21px; font-weight: 900; }
.video-card .vtitle { margin: 0; font-size: 14px; color: var(--muted); }
.video-card .actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; }
.video-card .actions .btn { flex: 1 1 140px; }
.yt-note { font-size: 13px; color: var(--muted); }

/* ----- Page communauté ----- */
.btn-fb { background: #1877F2; color: #fff; }
.btn-fb:hover { background: #3B8DF5; color: #fff; }
.comm-hero { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
.comm-hero-text { flex: 999 1 520px; min-width: 0; }
.comm-total { flex: 1 1 240px; padding: 26px; text-align: center; border-color: #1877F2; background: radial-gradient(circle at 50% 0%, #10284A, var(--surface) 70%); }
.comm-total b { display: block; font-size: clamp(40px, 6vw, 56px); line-height: 1; font-weight: 900; color: var(--yellow); }
.comm-total span { display: block; margin-top: 8px; color: var(--muted); }
.n1 { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; padding: 28px; border: 2px solid var(--yellow); background: linear-gradient(135deg, #2A2105, var(--surface) 55%); }
.n1-badge { flex: 0 0 auto; width: 150px; height: 150px; border-radius: 50%; background: var(--yellow); color: var(--on-accent); display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 900; box-shadow: 0 0 0 8px rgba(255,210,31,.15); }
.n1-rank { font-size: 52px; line-height: 1; }
.n1-badge span:last-child { font-size: 15px; }
.n1-body { flex: 999 1 320px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.n1-body h2 { font-size: clamp(24px, 3.4vw, 34px); line-height: 1.1; }
.n1-body p { margin: 0; color: #D7DEE8; }
.n1-count b { font-size: 30px; font-weight: 900; color: var(--yellow); }
.why { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.why-item h3 { margin: 10px 0 0; font-size: 18px; }
.why-item p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.group { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.group-head { display: flex; gap: 12px; align-items: center; }
.group-ico { width: 44px; height: 44px; border-radius: 12px; background: #1877F2; color: #fff; display: flex; align-items: center; justify-content: center; flex: none; }
.group h3 { margin: 0; font-size: 17px; line-height: 1.25; }
.group-count { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.group-count b { color: var(--text); }
.group > p { margin: 0; color: var(--muted); font-size: 14px; flex: 1; }
.bar { height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.bar span { display: block; height: 100%; border-radius: 999px; background: #1877F2; }
.follow { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; }
.follow .grow { flex: 999 1 300px; }
.follow h2 { font-size: 20px; }
.follow .muted { margin: 4px 0 0; color: var(--muted); }
.follow-links { display: flex; flex-wrap: wrap; gap: 8px; }
.comm-cta { text-align: center; padding: 36px 20px; border-radius: 22px; background: linear-gradient(135deg, #0D2A52, #11161F 70%); border: 1px solid #1E4A80; }
.comm-cta h2 { font-size: clamp(24px, 4vw, 32px); }
.comm-cta p { margin: 8px auto 20px; color: var(--muted); max-width: 520px; }
@media (max-width: 640px) {
  .n1 { padding: 22px; }
  .n1-badge { width: 110px; height: 110px; }
  .n1-rank { font-size: 38px; }
}

/* ----- Quiz : photo du modèle sur chaque résultat ----- */
.result { padding: 0; gap: 0; overflow: hidden; }
.result .info { padding: 20px; min-width: 0; }
@media (min-width: 641px) { .result-media { margin: 16px 0 16px 16px; border-radius: 14px; overflow: hidden; } }
.result-media { position: relative; flex: 0 0 280px; align-self: flex-start; }
.result-media .media { position: relative; aspect-ratio: 1 / 1; height: auto; overflow: hidden; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 50% 60%, #1E2735, #10151D 70%); }
.result-media .media.has-photo { background: #000; }
.result-media .media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.result-media .pct { position: absolute; left: 12px; bottom: 12px; z-index: 2; width: 80px; height: 80px; box-shadow: 0 6px 18px rgba(0,0,0,.45); }
.result:not(.first) .result-media .pct { background: rgba(17,22,31,.92); border: 1px solid var(--line); }
@media (max-width: 640px) {
  .result-media { flex: 1 1 100%; }
}
