/*
Theme Name: Code IPTV Pro
Theme URI: https://iptvcodepro.com/
Author: Code IPTV
Author URI: https://iptvcodepro.com/
Description: Abonnement IPTV premium en France — thème Code IPTV (site #5). Contenu 100% editable depuis l'admin WordPress (pages, articles, Customizer). Compatible Rank Math / Yoast.
Version: 1.0.6
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: codeiptvpro
*/

/* ============================================================
   CODE IPTV — site #5 — Swiss / programme-guide, LIGHT
   Palette: white + royal blue + trophy gold (user override, site #5)
   Fonts: Archivo (display) · Public Sans (body) · IBM Plex Mono
   Signature: "grille des programmes" broadcast schedule grid
   ============================================================ */

:root {
  /* --- palette (OKLCH) --- */
  --surface:    oklch(0.994 0.003 255);
  --surface-2:  oklch(0.972 0.006 255);
  --surface-3:  oklch(0.940 0.010 255);
  --paper:      oklch(1 0 0);
  --ink:        oklch(0.215 0.035 262);
  --ink-2:      oklch(0.415 0.030 262);
  --ink-3:      oklch(0.560 0.024 262);
  --line:       color-mix(in oklch, var(--ink) 14%, transparent);
  --line-soft:  color-mix(in oklch, var(--ink) 8%, transparent);

  --blue:       oklch(0.485 0.190 262);
  --blue-deep:  oklch(0.395 0.170 264);
  --blue-soft:  color-mix(in oklch, var(--blue) 12%, var(--surface));
  --navy:       oklch(0.205 0.045 264);
  --navy-2:     oklch(0.265 0.052 264);
  --navy-line:  color-mix(in oklch, white 12%, transparent);
  --on-navy:    color-mix(in oklch, white 82%, var(--navy));
  --on-navy-dim:color-mix(in oklch, white 58%, var(--navy));
  --red:       oklch(0.575 0.208 27);
  --red-deep:  oklch(0.485 0.190 27);
  --red-soft:  color-mix(in oklch, var(--red) 16%, var(--surface));

  /* --- type --- */
  --f-display: "Archivo", system-ui, sans-serif;
  --f-body:    "Public Sans", system-ui, sans-serif;
  --f-mono:    "IBM Plex Mono", ui-monospace, monospace;

  /* --- rhythm --- */
  --wrap: 1180px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --sp: clamp(3.5rem, 8vw, 7rem);
  --radius: 4px;
  --radius-lg: 10px;
  --rail: 76px; /* grille time-code rail width on desktop */
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--f-body);
  background: var(--surface);
  color: var(--ink);
  line-height: 1.6;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.02; font-weight: 800; letter-spacing: -0.02em; }
strong { font-weight: 700; }

/* ---------- layout helpers ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--sp); position: relative; }
.eyebrow {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue-deep);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 3px;
  background: var(--red);
  display: inline-block;
}
.tricolor { display: inline-flex; gap: 3px; vertical-align: middle; }
.tricolor i { width: 8px; height: 14px; display: inline-block; }
.tricolor i:nth-child(1){ background: oklch(0.45 0.14 260); }
.tricolor i:nth-child(2){ background: var(--paper); border-block: 1px solid var(--line); }
.tricolor i:nth-child(3){ background: oklch(0.55 0.19 25); }

/* text-based internal links (keyword anchors) */
.tlink { color: var(--blue-deep); font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: var(--red); }
.tlink:hover { text-decoration-color: var(--blue); }

/* ---------- grille des programmes (SIGNATURE) ---------- */
.grille { position: relative; }
.grille-rail {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: var(--rail);
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; justify-content: space-between;
  padding-block: 1.2rem;
  pointer-events: none;
}
.grille-rail time {
  font-family: var(--f-mono);
  font-size: 0.66rem;
  color: var(--ink-3);
  letter-spacing: 0.04em;
  padding-left: 0.6rem;
  position: relative;
}
.grille-rail time::after {
  content: ""; position: absolute; right: -1px; top: 50%;
  width: 7px; height: 1px; background: var(--red-deep);
}
.grille-body { padding-left: calc(var(--rail) + clamp(1rem, 3vw, 2.4rem)); }
.hairline { border: 0; border-top: 1px solid var(--line); margin: 0; }
.tick-rule {
  height: 14px; width: 100%;
  background-image: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 44px);
  border-bottom: 1px solid var(--line);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--f-display); font-weight: 700; letter-spacing: -0.01em;
  font-size: 1.02rem;
  padding: 0.95rem 1.6rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .16s ease, background .16s ease, box-shadow .16s ease;
}
.btn-primary { background: var(--blue); color: var(--paper); box-shadow: 0 2px 0 var(--blue-deep); }
.btn-primary:hover { background: var(--blue-deep); transform: translateY(-2px); box-shadow: 0 6px 18px color-mix(in oklch, var(--blue) 30%, transparent); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-gold { background: var(--red); color: var(--paper); box-shadow: 0 2px 0 var(--red-deep); }
.btn-gold:hover { background: var(--red-deep); transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklch, var(--surface) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--f-display); font-weight: 900; letter-spacing: -0.03em; font-size: 1.28rem; }
.brand .mark {
  width: 34px; height: 34px; border-radius: 6px;
  background: var(--ink); color: var(--red);
  display: grid; place-items: center; font-size: 1rem; font-weight: 900;
  font-family: var(--f-mono);
}
.brand .lo { color: var(--blue-deep); }
.nav { margin-left: auto; display: flex; align-items: center; gap: 1.4rem; }
.nav a.navlink { font-weight: 600; font-size: 0.95rem; color: var(--ink-2); }
.nav a.navlink:hover { color: var(--ink); }
.nav-cta { margin-left: 0.4rem; }
.burger { display: none; background: none; border: 1px solid var(--line); border-radius: 6px; width: 42px; height: 42px; cursor: pointer; }
.burger span { display: block; width: 18px; height: 2px; background: var(--ink); margin: 3px auto; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: clip; padding-top: clamp(2rem, 5vw, 3.5rem); }
.hero .ghost {
  position: absolute; right: -2%; top: 4%;
  font-family: var(--f-display); font-weight: 900;
  font-size: clamp(7rem, 22vw, 20rem);
  color: var(--ink); opacity: 0.04; letter-spacing: -0.04em;
  pointer-events: none; user-select: none; line-height: 0.8; z-index: 0;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; position: relative; z-index: 1; }
.hero h1 {
  font-size: clamp(2.7rem, 8vw, 5.6rem);
  text-transform: uppercase;
  margin-block: 1rem 1.2rem;
}
.hero h1 .accent { color: var(--blue-deep); }
.hero .lede { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--ink-2); max-width: 34ch; }
.hero .lede b { color: var(--ink); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.8rem; }
.hero-media { position: relative; }
.hero-media .shot {
  border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line);
  box-shadow: 0 24px 60px -30px color-mix(in oklch, var(--ink) 40%, transparent);
  aspect-ratio: 16/10; background: var(--surface-3);
}
.hero-media .shot img { width: 100%; height: 100%; object-fit: cover; }

/* channel logo pills */
.logo-strip { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.4rem; }
.logo-strip span {
  font-family: var(--f-mono); font-size: 0.74rem; font-weight: 600;
  border: 1px solid var(--line); background: var(--paper);
  border-radius: 100px; padding: 0.4rem 0.85rem; color: var(--ink-2);
}

/* stats grid */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; margin-top: 1.6rem; }
.stats .cell { background: var(--paper); padding: 1.15rem 1.2rem; min-width: 0; }
.stats .num { font-family: var(--f-display); font-weight: 900; font-size: clamp(1.6rem, 2.4vw, 2.1rem); letter-spacing: -0.03em; white-space: nowrap; }
.stats .num .u { color: var(--red-deep); }
.stats .lbl { font-size: 0.8rem; color: var(--ink-3); margin-top: 0.15rem; }

/* ---------- trust band ---------- */
.trust { background: var(--ink); color: var(--surface); }
.trust .row { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 3vw, 2rem); align-items: start; }
.trust .item { display: flex; gap: 0.75rem; align-items: flex-start; min-width: 0; }
.trust .item .ic { color: var(--red); flex: 0 0 auto; }
.trust .item h4 { font-size: 1rem; font-weight: 700; color: var(--surface); }
.trust .item p { font-size: 0.85rem; color: color-mix(in oklch, var(--surface) 72%, transparent); }

/* ---------- section heading ---------- */
.sec-head { max-width: 60ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.sec-head h2 { font-size: clamp(2rem, 5.5vw, 3.6rem); text-transform: uppercase; margin-block: 0.8rem; }
.sec-head p { color: var(--ink-2); font-size: 1.08rem; max-width: 52ch; }
.ghost-word {
  position: absolute; right: var(--gutter); top: -0.2em; z-index: 0;
  font-family: var(--f-display); font-weight: 900; letter-spacing: -0.04em;
  font-size: clamp(4rem, 14vw, 12rem); color: var(--ink); opacity: 0.035;
  pointer-events: none; user-select: none; line-height: 0.8;
}

/* ---------- channel cards ---------- */
.chan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.chan-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.4rem; min-width: 0; position: relative; overflow: hidden; }
.chan-card::before { content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%; }
.chan-card.c-sport::before { background: var(--blue); }
.chan-card.c-gen::before { background: var(--red); }
.chan-card.c-cine::before { background: var(--ink); }
.chan-card .cat { font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); }
.chan-card h3 { font-size: 1.25rem; margin-block: 0.3rem 0.9rem; }
.chan-pills { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chan-pills b { font-family: var(--f-mono); font-weight: 500; font-size: 0.74rem; border: 1px solid var(--line); border-radius: 5px; padding: 0.3rem 0.55rem; color: var(--ink-2); background: var(--surface); }

/* ---------- pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.price-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.6rem 1.3rem; display: flex; flex-direction: column; min-width: 0; position: relative; }
.price-card.feat { border-color: var(--red-deep); box-shadow: 0 0 0 2px var(--red-soft); }
.price-card .badge { position: absolute; top: -12px; left: 1.3rem; background: var(--red); color: var(--paper); font-family: var(--f-mono); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.28rem 0.6rem; border-radius: 100px; }
.price-card .dur { font-family: var(--f-mono); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.price-card .amt { font-family: var(--f-display); font-weight: 900; font-size: 2.8rem; letter-spacing: -0.03em; line-height: 1; margin-block: 0.5rem 0.1rem; }
.price-card .amt sup { font-size: 1.1rem; vertical-align: super; }
.price-card .per { font-size: 0.85rem; color: var(--blue-deep); font-weight: 600; }
.price-card ul.feats { margin: 1.1rem 0 1.4rem; display: grid; gap: 0.5rem; }
.price-card ul.feats li { font-size: 0.9rem; color: var(--ink-2); display: flex; gap: 0.5rem; }
.price-card ul.feats li::before { content: "▸"; color: var(--blue); }
.price-card .btn { margin-top: auto; justify-content: center; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; counter-reset: step; }
.step { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.6rem; min-width: 0; position: relative; }
.step .n { font-family: var(--f-mono); font-size: 0.78rem; color: var(--red-deep); font-weight: 700; }
.step h3 { font-size: 1.3rem; margin-block: 0.5rem; }
.step p { color: var(--ink-2); font-size: 0.95rem; }

/* ---------- SEO prose block ---------- */
.prose { max-width: 74ch; }
.prose p { margin-bottom: 1.1rem; color: var(--ink-2); }
.prose h3 { font-size: 1.5rem; margin-block: 2rem 0.8rem; color: var(--ink); }
.prose ul.bul { margin: 0 0 1.1rem; display: grid; gap: 0.5rem; }
.prose ul.bul li { padding-left: 1.4rem; position: relative; color: var(--ink-2); }
.prose ul.bul li::before { content: "■"; position: absolute; left: 0; color: var(--blue); font-size: 0.7rem; top: 0.35rem; }
.prose figure { margin: 1.8rem 0; }
.prose figure img { width: 100%; height: auto; border-radius: var(--radius-lg); border: 1px solid var(--line); }
.prose figure figcaption { font-family: var(--f-mono); font-size: 0.74rem; color: var(--ink-3); margin-top: 0.55rem; padding-left: 0.1rem; }

/* full-width media band */
.media-band { position: relative; overflow: clip; }
.media-band .band-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.media-band .band-media img { width: 100%; height: auto; border-radius: var(--radius-lg); border: 1px solid var(--line); box-shadow: 0 20px 50px -30px color-mix(in oklch, var(--ink) 45%, transparent); }
.media-band h2 { font-size: clamp(1.8rem, 4.5vw, 3rem); text-transform: uppercase; margin-block: 0.7rem 1rem; }
.media-band p { color: var(--ink-2); max-width: 46ch; }
.devices-strip { text-align: center; }
.devices-strip img { width: 100%; max-width: 940px; height: auto; margin: 1.5rem auto 0; }
@media (max-width: 800px) { .media-band .band-grid { grid-template-columns: 1fr; } .media-band.rev .band-media { order: -1; } }

/* ---------- reviews ---------- */
.rev-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.rev { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem; min-width: 0; }
.rev .stars { color: var(--red-deep); letter-spacing: 2px; font-size: 0.9rem; }
.rev p { margin-block: 0.8rem; color: var(--ink); font-size: 0.96rem; }
.rev .who { display: flex; align-items: center; gap: 0.7rem; }
.rev .av { width: 38px; height: 38px; border-radius: 50%; background: var(--blue-soft); color: var(--blue-deep); display: grid; place-items: center; font-family: var(--f-display); font-weight: 800; }
.rev .who b { font-size: 0.9rem; }
.rev .who span { font-size: 0.78rem; color: var(--ink-3); display: block; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 1rem 0; }
.faq summary { font-family: var(--f-display); font-weight: 700; font-size: 1.08rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--f-mono); color: var(--blue-deep); font-size: 1.3rem; flex: 0 0 auto; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--ink-2); margin-top: 0.7rem; font-size: 0.98rem; }

/* ---------- final CTA ---------- */
.final { background: var(--blue-deep); color: var(--paper); border-radius: var(--radius-lg); padding: clamp(2.2rem, 5vw, 3.6rem); text-align: center; position: relative; overflow: hidden; }
.final h2 { font-size: clamp(2rem, 5vw, 3.2rem); text-transform: uppercase; color: var(--paper); }
.final p { color: color-mix(in oklch, var(--paper) 84%, transparent); max-width: 46ch; margin: 1rem auto 1.8rem; }
.final .actions { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; }

/* ---------- footer ---------- */
.site-foot { background: var(--ink); color: color-mix(in oklch, var(--surface) 78%, transparent); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
.site-foot h5 { font-family: var(--f-display); color: var(--surface); font-size: 0.95rem; letter-spacing: 0.02em; margin-bottom: 0.9rem; }
.site-foot a { color: color-mix(in oklch, var(--surface) 72%, transparent); font-size: 0.9rem; display: block; padding: 0.28rem 0; }
.site-foot a:hover { color: var(--red); }
.foot-brand .brand { color: var(--surface); }
.foot-brand p { font-size: 0.9rem; margin-top: 0.8rem; max-width: 34ch; }
.sameas { display: flex; gap: 0.6rem; margin-top: 1rem; }
.sameas a { border: 1px solid color-mix(in oklch, var(--surface) 24%, transparent); border-radius: 6px; width: 36px; height: 36px; display: grid; place-items: center; }
.foot-bot { border-top: 1px solid color-mix(in oklch, var(--surface) 16%, transparent); margin-top: 2.4rem; padding-top: 1.4rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: 0.82rem; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .trust .row { grid-template-columns: repeat(2, 1fr); }
  .chan-grid, .steps, .rev-grid { grid-template-columns: 1fr 1fr; }
  .price-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  :root { --rail: 54px; }
}
@media (max-width: 640px) {
  :root { --rail: 34px; }
  .nav { display: none; }
  .nav.open { display: flex; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; background: var(--surface); border-bottom: 1px solid var(--line); padding: 1rem var(--gutter); gap: 0.9rem; align-items: flex-start; }
  .burger { display: block; margin-left: auto; }
  .chan-grid, .steps, .rev-grid, .price-grid, .trust .row, .foot-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .grille-body { padding-left: calc(var(--rail) + 0.65rem); }
  .grille-rail time { font-size: 0.56rem; padding-left: 0.35rem; }
  .hero h1 { font-size: clamp(1.9rem, 8.6vw, 3rem); }
  .eyebrow { font-size: 0.6rem; letter-spacing: 0.12em; flex-wrap: wrap; }
  .hero .ghost { font-size: 30vw; top: 10%; opacity: 0.03; }
  .price-card .amt { font-size: 2.4rem; }
}

/* ============================================================
   V2 LAYOUT — dark/light alternating (friend-site structure)
   ============================================================ */

/* ---- dark section base ---- */
.section.dark { background: var(--navy); color: var(--on-navy); }
.section.dark h1, .section.dark h2, .section.dark h3, .section.dark h4 { color: var(--paper); }
.section.dark .sec-head p, .section.dark p { color: var(--on-navy-dim); }
.section.dark .eyebrow { color: oklch(0.74 0.14 262); }
.section.dark .grille-rail { border-right-color: var(--navy-line); }
.section.dark .grille-rail time { color: var(--on-navy-dim); }
.section.dark .grille-rail time::after { background: var(--red); }
.section.dark .ghost, .section.dark .ghost-word { color: var(--paper); opacity: 0.055; }
.section.dark .tlink { color: oklch(0.78 0.13 262); text-decoration-color: var(--red); }

/* ---- header dark ---- */
.site-head.dark { background: color-mix(in oklch, var(--navy) 88%, transparent); border-bottom-color: var(--navy-line); }
.site-head.dark .brand { color: var(--paper); }
.site-head.dark .brand .lo { color: oklch(0.74 0.15 262); }
.site-head.dark .navlink { color: var(--on-navy-dim); }
.site-head.dark .navlink:hover { color: var(--paper); }
.site-head.dark .burger { border-color: var(--navy-line); }
.site-head.dark .burger span { background: var(--paper); }
.site-head.dark .nav.open { background: var(--navy); border-bottom-color: var(--navy-line); }

/* ---- hero v2 ---- */
.hero2 { overflow: clip; padding-top: clamp(1.6rem, 4vw, 2.6rem); }
.hero2 .ghost { color: var(--paper); opacity: 0.05; }
.hero-grid2 { display: grid; grid-template-columns: 1fr 1.04fr; gap: clamp(1.5rem, 4vw, 3.2rem); align-items: center; position: relative; z-index: 1; }
.hero2 h1 { font-size: clamp(2.3rem, 5.4vw, 4.3rem); text-transform: uppercase; line-height: 1.0; margin-block: 0.7rem 0.5rem; }
.hero2 h1 .accent { color: oklch(0.74 0.16 262); }
.accroche { display: inline-block; font-family: var(--f-display); font-weight: 800; font-size: clamp(1.05rem, 1.9vw, 1.35rem); color: var(--paper); border-bottom: 4px solid var(--red); padding-bottom: 3px; margin: 0.5rem 0 1.1rem; }
.hero2 .lede { color: var(--on-navy-dim); font-size: clamp(1.0rem, 1.5vw, 1.16rem); max-width: 42ch; }
.hero2 .lede b { color: var(--paper); }
.hero-shot2 { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--navy-line); box-shadow: 0 34px 80px -34px rgba(0,0,0,.65); aspect-ratio: 16/10; }
.hero-shot2 img { width: 100%; height: 100%; object-fit: cover; }
.hero-logos { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 1.1rem; }
.hero-logos span { background: var(--paper); color: var(--ink); border-radius: 100px; padding: 0.5rem 1rem; font-family: var(--f-display); font-weight: 800; font-size: 0.82rem; letter-spacing: -0.01em; box-shadow: 0 8px 20px -10px rgba(0,0,0,.55); }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--navy-line); border: 1px solid var(--navy-line); border-radius: var(--radius-lg); overflow: hidden; margin-top: 1.1rem; }
.hero-stats .cell { background: var(--navy-2); padding: 1rem 1.15rem; min-width: 0; }
.hero-stats .num { font-family: var(--f-display); font-weight: 900; font-size: clamp(1.5rem, 2.4vw, 2rem); color: var(--paper); white-space: nowrap; letter-spacing: -0.03em; }
.hero-stats .num .u { color: var(--red); }
.hero-stats .lbl { font-size: 0.78rem; color: var(--on-navy-dim); margin-top: 0.15rem; }

/* ---- stat strip (under sections) ---- */
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; margin-top: 2rem; }
.stat-strip .cell { background: var(--paper); padding: 1.3rem 1.3rem; min-width: 0; }
.stat-strip .num { font-family: var(--f-display); font-weight: 900; font-size: clamp(1.6rem, 3vw, 2.3rem); letter-spacing: -0.03em; white-space: nowrap; }
.stat-strip .num .u { color: var(--red); }
.stat-strip .lbl { font-size: 0.82rem; color: var(--ink-3); margin-top: 0.2rem; }
.section.dark .stat-strip { background: var(--navy-line); border-color: var(--navy-line); }
.section.dark .stat-strip .cell { background: var(--navy-2); }
.section.dark .stat-strip .num { color: var(--paper); }
.section.dark .stat-strip .lbl { color: var(--on-navy-dim); }

/* ---- competition tiles (sport) ---- */
.comp-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.comp-card { border-radius: var(--radius-lg); padding: 1.3rem; min-height: 118px; display: flex; flex-direction: column; justify-content: space-between; color: var(--paper); position: relative; overflow: hidden; }
.comp-card .k { font-family: var(--f-mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; opacity: .85; }
.comp-card .t { font-family: var(--f-display); font-weight: 900; font-size: 1.3rem; text-transform: uppercase; line-height: 1.05; }
.comp-card.b1 { background: var(--blue); }
.comp-card.b2 { background: var(--blue-deep); }
.comp-card.r1 { background: var(--red); }
.comp-card.n1 { background: var(--navy-2); border: 1px solid var(--navy-line); }

/* ---- feature split (pourquoi) ---- */
.feat-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.feat-media img { width: 100%; height: auto; border-radius: var(--radius-lg); border: 1px solid var(--line); }
.section.dark .feat-media img { border-color: var(--navy-line); }
.feat-list { display: grid; gap: 1.05rem; }
.feat-item { display: flex; gap: 0.9rem; align-items: flex-start; }
.feat-item .fi { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 10px; background: var(--blue-soft); color: var(--blue-deep); display: grid; place-items: center; }
.section.dark .feat-item .fi { background: color-mix(in oklch, var(--blue) 34%, var(--navy)); color: var(--paper); }
.feat-item h4 { font-size: 1.05rem; }
.feat-item p { font-size: 0.9rem; color: var(--ink-2); margin-top: 0.15rem; }
.section.dark .feat-item p { color: var(--on-navy-dim); }

/* ---- cost compare ---- */
.cost-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.5rem; }
.cost-card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem; background: var(--paper); }
.cost-card.win { border-color: var(--red); box-shadow: 0 0 0 2px var(--red-soft); }
.cost-card .cl { font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.cost-card .cv { font-family: var(--f-display); font-weight: 900; font-size: 2rem; margin-top: 0.35rem; letter-spacing: -0.03em; }
.cost-card.win .cv { color: var(--red); }
.cost-card .cd { font-size: 0.88rem; color: var(--ink-2); margin-top: 0.5rem; }

/* ---- payment chips ---- */
.pay { display: flex; gap: 0.55rem; flex-wrap: wrap; align-items: center; margin-top: 1.5rem; }
.pay span { border: 1px solid var(--line); border-radius: 6px; padding: 0.45rem 0.75rem; font-family: var(--f-mono); font-size: 0.72rem; color: var(--ink-2); background: var(--paper); }

/* ---- guide redesign ---- */
.guide-wrap { display: grid; grid-template-columns: 250px 1fr; gap: clamp(1.5rem, 4vw, 3.2rem); align-items: start; }
.guide-toc { position: sticky; top: 90px; border-left: 3px solid var(--red); padding-left: 1.1rem; }
.guide-toc h4 { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 0.7rem; }
.guide-toc a { display: block; padding: 0.4rem 0; font-weight: 600; font-size: 0.92rem; color: var(--ink-2); }
.guide-toc a:hover { color: var(--blue-deep); }
.guide-lead { font-size: 1.15rem; color: var(--ink); border-left: 3px solid var(--blue); padding-left: 1.1rem; margin-bottom: 1.6rem; }

/* ---- chunk set (numbered two-column answer blocks) ---- */
.chunkset { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.chunk { padding: clamp(1.5rem, 3vw, 2.4rem); border-bottom: 1px solid var(--line); min-width: 0; }
.chunk:nth-child(odd) { border-right: 1px solid var(--line); }
.chunk .cnum { font-family: var(--f-mono); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; color: var(--red); }
.chunk h3 { font-family: var(--f-mono); font-weight: 600; font-size: clamp(1.05rem, 1.6vw, 1.28rem); line-height: 1.25; letter-spacing: -0.01em; text-transform: none; margin: 0.7rem 0 0.9rem; }
.chunk .ans { font-weight: 700; color: var(--ink); font-size: 1.02rem; margin-bottom: 1rem; }
.chunk p { color: var(--ink-2); }
.chunk .clabel { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); margin: 1rem 0 0.55rem; }
.chunk ul.clist, .chunk ol.clist { list-style: none; padding: 0; display: grid; gap: 0.5rem; }
.chunk ul.clist li { padding-left: 1.3rem; position: relative; color: var(--ink-2); font-size: 0.95rem; }
.chunk ul.clist li::before { content: "\25AA"; position: absolute; left: 0.15rem; color: var(--red); font-size: 0.7rem; top: 0.32rem; }
.chunk ul.clist li b { color: var(--ink); }
.chunk ol.clist { counter-reset: ci; }
.chunk ol.clist li { counter-increment: ci; padding-left: 1.7rem; position: relative; color: var(--ink-2); font-size: 0.95rem; }
.chunk ol.clist li::before { content: counter(ci, decimal-leading-zero) "."; position: absolute; left: 0; color: var(--red); font-family: var(--f-mono); font-weight: 600; }
.chunk .mono, .chunk code { font-family: var(--f-mono); color: var(--blue-deep); font-size: 0.92em; }
@media (max-width: 720px) {
  .chunkset { grid-template-columns: 1fr; }
  .chunk:nth-child(odd) { border-right: 0; }
}

/* ---- guide cards ---- */
.guide-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.gcard { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--paper); display: flex; flex-direction: column; }
.gcard > img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.gcard .gc { padding: 1.2rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.gcard .gk { font-family: var(--f-mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red); }
.gcard h3 { font-size: 1.15rem; }
.gcard p { font-size: 0.9rem; color: var(--ink-2); }
.gcard a.more { margin-top: auto; font-weight: 700; color: var(--blue-deep); font-family: var(--f-display); }

/* ---- final CTA v2 (with image) ---- */
.final2 { background: var(--red); color: var(--paper); border-radius: var(--radius-lg); overflow: hidden; display: grid; grid-template-columns: 1.25fr 1fr; align-items: stretch; }
.final2 .fc { padding: clamp(2rem, 5vw, 3.4rem); align-self: center; }
.final2 h2 { color: var(--paper); text-transform: uppercase; font-size: clamp(1.9rem, 4.5vw, 3rem); }
.final2 p { color: color-mix(in oklch, var(--paper) 90%, transparent); margin: 1rem 0 1.6rem; max-width: 42ch; }
.final2 .actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.final2 .fm img { width: 100%; height: 100%; object-fit: cover; min-height: 260px; }
.final2 .btn-ghost { color: var(--paper); border-color: color-mix(in oklch, var(--paper) 55%, transparent); }
.final2 .btn-ghost:hover { border-color: var(--paper); }

/* ---- reviews on dark ---- */
.section.dark .rev { background: var(--navy-2); border-color: var(--navy-line); }
.section.dark .rev p { color: var(--paper); }
.section.dark .rev .who b { color: var(--paper); }
.section.dark .rev .who span { color: var(--on-navy-dim); }
.section.dark .rev .av { background: color-mix(in oklch, var(--blue) 34%, var(--navy)); color: var(--paper); }
.rev.r-blue { border-top: 4px solid var(--blue); }
.rev.r-red { border-top: 4px solid var(--red); }

/* ---- steps on dark ---- */
.section.dark .step { background: var(--navy-2); border-color: var(--navy-line); }
.section.dark .step p { color: var(--on-navy-dim); }
.section.dark .step .n { color: oklch(0.78 0.13 262); }

/* ---- trust as dark section ---- */
.trust2 .row { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 3vw, 2rem); }
.trust2 .item { display: flex; gap: 0.75rem; align-items: flex-start; min-width: 0; }
.trust2 .item .ic { color: var(--red); flex: 0 0 auto; }
.trust2 .item h4 { color: var(--paper); font-size: 1rem; }
.trust2 .item p { color: var(--on-navy-dim); font-size: 0.85rem; }

/* ---- v2 responsive ---- */
@media (max-width: 900px) {
  .hero-grid2 { grid-template-columns: 1fr; }
  .feat-split { grid-template-columns: 1fr; }
  .final2 { grid-template-columns: 1fr; }
  .guide-wrap { grid-template-columns: 1fr; }
  .guide-toc { position: static; border-left: 0; border-top: 3px solid var(--red); padding-left: 0; padding-top: 1rem; display: flex; flex-wrap: wrap; gap: 0.1rem 1.2rem; }
  .trust2 .row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .hero-stats { grid-template-columns: repeat(3, 1fr); }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .comp-grid, .cost-grid, .guide-cards, .trust2 .row { grid-template-columns: 1fr; }
  .hero2 h1 { font-size: clamp(2rem, 9vw, 3rem); }
  .final2 .fm img { min-height: 190px; }
  .final2 .fc { padding: 1.6rem; }
  .final2 .actions .btn { overflow-wrap: anywhere; max-width: 100%; }
}

/* mobile: hide decorative rail so images/content go full-width */
@media (max-width: 760px) {
  .grille-rail { display: none; }
  .grille-body { padding-left: 0; }
  .band-media { margin-top: 1.2rem; }
  .hero-shot2 { aspect-ratio: 16 / 11; }
}

/* transparent device mockup (removebg) handling */
.feat-media img.img-devices { border: none; background: transparent; box-shadow: none; }
.gcard > img.img-devices { object-fit: contain; background: var(--surface-2); padding: 0.4rem; }

/* band media framing (cleaner crop, consistent height) */
.band-media img { width: 100%; height: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius-lg); border: 1px solid var(--line); }
.section.dark .band-media img { border-color: var(--navy-line); }
@media (max-width: 760px) { .band-media img { aspect-ratio: 16 / 9; } }

/* ---------- brand logo (bundled) ---------- */
.site-head .wrap { min-height: 76px; }
.site-head .brand-img { height: 48px; width: auto; display: block; }
.site-foot .brand-img { height: 42px; width: auto; display: block; }
.site-head .brand, .site-foot .brand { gap: 0; }
@media (max-width: 640px) { .site-head .wrap { min-height: 60px; } .site-head .brand-img { height: 40px; } }
