/* ════════════════════════════════════════════════════════════════════
   ROAD SIXTY GEEK — HOME « LE MAGAZINE » (Concept A)
   DA calée sur le magazine print VOL.2 : éditorial sombre/clair alterné,
   titrage condensé capitales, accent orange, gros chiffres, fil routier.
   Chargé uniquement par la home (link dans le <Head> de index.js).
   ════════════════════════════════════════════════════════════════════ */

.mag {
  --ink: #0e0e11;
  --ink-2: #17171c;
  --ink-3: #1f1f26;
  --paper: #f4f1ea;
  --paper-2: #ece7da;
  --orange: #ee7a1b;
  --orange-deep: #c85a12;
  --muted: #8f8b81;
  --muted-2: #b8b3a8;
  --line: #2a2a30;
  --line-paper: #ded8c9;
  --maxw: 1180px;

  font-family: 'Archivo', system-ui, sans-serif;
  background: var(--ink);
  color: var(--paper);
  min-height: 100vh;
  overflow-x: hidden;
}

.mag * { box-sizing: border-box; }

.mag .disp {
  font-family: 'Anton', 'Arial Narrow', sans-serif;
  font-weight: 400;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  line-height: 0.92;
}
.mag .kick {
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 3px;
  text-transform: uppercase;
}
.mag .orange { color: var(--orange); }
.mag .wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(18px, 4vw, 48px); }

/* ── Top bar ─────────────────────────────────────────────────────── */
.mag-bar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14, 14, 17, 0.88);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.mag-bar-in {
  max-width: var(--maxw); margin: 0 auto;
  padding: 13px clamp(18px, 4vw, 48px);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.mag-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.mag-logo img { height: 30px; width: auto; border-radius: 5px; }
.mag-logo .disp { font-size: 1.2rem; color: #fff; }
.mag-nav { display: flex; align-items: center; gap: 26px; }
.mag-nav a {
  color: var(--muted-2); text-decoration: none;
  font-size: 0.82rem; font-weight: 500; letter-spacing: 0.3px;
  transition: color 0.2s;
}
.mag-nav a:hover { color: #fff; }
.mag-cta {
  background: var(--orange); color: #1a1205;
  font-weight: 700; font-size: 0.8rem;
  padding: 9px 16px; border-radius: 5px;
  text-decoration: none; border: none; cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s;
  white-space: nowrap;
}
.mag-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(238, 122, 27, 0.35); }
.mag-burger { display: none; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; padding: 4px; }

/* ── Hero ────────────────────────────────────────────────────────── */
.mag-hero {
  position: relative;
  padding: clamp(48px, 9vw, 110px) 0 clamp(36px, 6vw, 64px);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.mag-hero::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 5px;
  background: repeating-linear-gradient(90deg, var(--orange) 0 38px, transparent 38px 66px);
  animation: magRoad 2.6s linear infinite;
}
@keyframes magRoad { from { background-position: 0 0; } to { background-position: 66px 0; } }
.mag-hero-grid {
  display: grid; grid-template-columns: 1.55fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center;
}
.mag-hero h1 {
  font-family: 'Anton', sans-serif; font-weight: 400;
  text-transform: uppercase; letter-spacing: 0.5px;
  font-size: clamp(2.6rem, 6.5vw, 5.4rem); line-height: 0.92;
  margin: 16px 0 0; color: #fff;
}
.mag-hero p.lede {
  font-size: clamp(0.95rem, 1.4vw, 1.1rem); line-height: 1.65;
  color: var(--muted-2); max-width: 480px; margin: 20px 0 0;
}
.mag-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.mag-btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 700; font-size: 0.92rem; padding: 13px 22px;
  border-radius: 6px; text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}
.mag-btn-orange { background: var(--orange); color: #1a1205; }
.mag-btn-orange:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(238, 122, 27, 0.4); }
.mag-btn-ghost { background: transparent; color: #fff; border-color: var(--line); }
.mag-btn-ghost:hover { border-color: var(--orange); color: var(--orange); }

/* Bloc magazine côté droit du hero */
.mag-hero-mag { position: relative; display: flex; justify-content: center; }
.mag-cover-stack { position: relative; width: min(78%, 320px); cursor: pointer; }
.mag-cover-stack img {
  width: 100%; display: block; border-radius: 6px;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.6); border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.3s;
}
.mag-cover-stack:hover img { transform: translateY(-4px) rotate(-1deg); }
.mag-cover-stack::before {
  content: ''; position: absolute; inset: 10px -12px -12px 12px;
  background: var(--ink-3); border-radius: 6px; z-index: -1; transform: rotate(2.5deg);
}
.mag-cover-badge {
  position: absolute; bottom: -14px; left: 50%; transform: translateX(-50%);
  background: var(--orange); color: #1a1205; font-weight: 700; font-size: 0.74rem;
  letter-spacing: 0.5px; padding: 8px 16px; border-radius: 20px; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 7px;
  box-shadow: 0 8px 22px rgba(238, 122, 27, 0.4);
}

/* Bandeau stats */
.mag-stats {
  display: flex; flex-wrap: wrap; gap: 0;
  border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  margin-top: clamp(32px, 5vw, 52px); background: var(--ink-2);
}
.mag-stat { flex: 1 1 150px; padding: 18px 22px; border-right: 1px solid var(--line); }
.mag-stat:last-child { border-right: none; }
.mag-stat .num { font-family: 'Anton', sans-serif; font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1; }
.mag-stat .lbl { font-size: 0.66rem; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin-top: 6px; font-weight: 600; }

/* ── En-tête de section (numérotée) ──────────────────────────────── */
.mag-sec { padding: clamp(48px, 8vw, 90px) 0; }
.mag-sec-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: clamp(24px, 4vw, 44px); }
.mag-sec-num { font-family: 'Anton', sans-serif; font-size: 1.1rem; color: var(--orange); }
.mag-sec-head h2 {
  font-family: 'Anton', sans-serif; font-weight: 400; text-transform: uppercase;
  font-size: clamp(1.8rem, 4vw, 3rem); line-height: 0.95; color: #fff; margin: 0;
}
.mag-sec-rule { flex: 1; height: 1px; background: var(--line); align-self: center; }

/* ── Le mot du fondateur (planche claire) ────────────────────────── */
.mag-founder { background: var(--paper); color: var(--ink); }
.mag-founder .mag-sec-head h2 { color: var(--ink); }
.mag-founder .mag-sec-rule { background: var(--line-paper); }
.mag-founder .mag-sec-num { color: var(--orange-deep); }
.mag-founder-grid { display: grid; grid-template-columns: 1fr 320px; gap: clamp(28px, 5vw, 56px); align-items: start; }
.mag-founder-body { font-size: 1.05rem; line-height: 1.75; color: #3a362e; }
.mag-founder-body p { margin: 0 0 16px; }
.mag-founder-body .mag-lede {
  font-size: 1.18rem; line-height: 1.6; color: #6b6456;
  margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid var(--line-paper);
}
.mag-founder-body .dropcap {
  font-family: 'Anton', sans-serif; float: left; font-size: 4.4rem; line-height: 0.7;
  color: var(--orange-deep); margin: 6px 14px 0 0;
}
.mag-quote {
  font-size: clamp(1.2rem, 2.2vw, 1.7rem); font-style: italic; color: var(--orange-deep);
  line-height: 1.4; margin: 28px 0; padding-left: 20px; border-left: 4px solid var(--orange);
}
.mag-sign { font-family: 'Anton', sans-serif; font-size: 1.2rem; text-transform: uppercase; color: var(--ink); }
.mag-sign small { display: block; font-family: 'Archivo', sans-serif; font-size: 0.72rem; letter-spacing: 2px; color: #8a8474; font-weight: 600; margin-top: 4px; }
.mag-founder-photo {
  aspect-ratio: 3/4; background: var(--paper-2); border-radius: 8px; border: 1px solid var(--line-paper);
  display: flex; align-items: flex-end; padding: 16px; position: relative; overflow: hidden;
}
.mag-founder-photo .pname { font-family: 'Anton', sans-serif; font-size: 1.3rem; text-transform: uppercase; color: var(--ink); z-index: 1; }
.mag-founder-photo i { position: absolute; top: 14px; right: 16px; font-size: 1.6rem; color: #c9c2b0; }

/* ── Activations ─────────────────────────────────────────────────── */
.mag-activ-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.mag-card {
  position: relative; border-radius: 10px; overflow: hidden;
  border: 1px solid var(--line); background: var(--ink-2); aspect-ratio: 4/5;
  display: flex; flex-direction: column; justify-content: flex-end; cursor: pointer;
  isolation: isolate;
}
.mag-card-img { position: absolute; inset: 0; background-size: cover; background-position: center; z-index: 0; transition: transform 0.6s cubic-bezier(.22,1,.36,1); }
.mag-card:hover .mag-card-img { transform: scale(1.06); }
.mag-card::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(14,14,17,0.1) 30%, rgba(14,14,17,0.92) 92%); }
.mag-card-body { position: relative; z-index: 2; padding: 16px 16px 18px; border-bottom: 3px solid var(--orange); }
.mag-card-body .ktag { color: var(--orange); margin-bottom: 6px; }
.mag-card-body h3 { font-family: 'Anton', sans-serif; font-weight: 400; text-transform: uppercase; font-size: 1.25rem; line-height: 0.98; color: #fff; margin: 0; }
.mag-card-body p { font-size: 0.8rem; color: var(--muted-2); margin: 6px 0 0; }

/* ── Section magazine (feuilleter) ───────────────────────────────── */
.mag-flip-promo { background: var(--ink-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.mag-flip-grid { display: grid; grid-template-columns: 280px 1fr; gap: clamp(28px, 5vw, 60px); align-items: center; }
.mag-flip-covers { position: relative; display: flex; justify-content: center; }
.mag-flip-covers img { width: 100%; max-width: 260px; border-radius: 6px; box-shadow: 0 22px 50px rgba(0,0,0,0.6); border: 1px solid rgba(255,255,255,0.08); }
.mag-flip-info h2 { font-family: 'Anton', sans-serif; font-weight: 400; text-transform: uppercase; font-size: clamp(1.9rem, 4vw, 3rem); line-height: 0.95; color: #fff; margin: 0 0 14px; }
.mag-flip-info p { font-size: 1rem; line-height: 1.7; color: var(--muted-2); max-width: 480px; margin: 0 0 22px; }
.mag-flip-meta { display: flex; gap: 22px; margin-bottom: 24px; }
.mag-flip-meta div .num { font-family: 'Anton', sans-serif; font-size: 1.6rem; color: var(--orange); }
.mag-flip-meta div .lbl { font-size: 0.64rem; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); font-weight: 600; }

/* ── Chiffres ────────────────────────────────────────────────────── */
.mag-figures { background: #141005; border-top: 1px solid #2a2310; }
.mag-fig-hero { font-family: 'Anton', sans-serif; font-size: clamp(3.4rem, 10vw, 7rem); color: var(--orange); line-height: 0.85; }
.mag-fig-hero small { display: block; font-family: 'Archivo', sans-serif; font-size: 0.8rem; letter-spacing: 3px; color: var(--muted-2); font-weight: 600; margin-top: 10px; }
.mag-fig-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-top: 36px; }
.mag-fig-card { background: rgba(255,255,255,0.03); border: 1px solid #2a2310; border-radius: 10px; padding: 20px; }
.mag-fig-card .num { font-family: 'Anton', sans-serif; font-size: clamp(1.8rem, 3.5vw, 2.6rem); color: #fff; line-height: 1; }
.mag-fig-card .num .plus { color: var(--orange); }
.mag-fig-card .lbl { font-size: 0.66rem; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-top: 8px; }

/* ── Contact ─────────────────────────────────────────────────────── */
.mag-contact { background: var(--orange); color: #1a1205; }
.mag-contact-grid { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; }
.mag-contact h2 { font-family: 'Anton', sans-serif; font-weight: 400; text-transform: uppercase; font-size: clamp(2rem, 5vw, 3.6rem); line-height: 0.95; margin: 0; color: #1a1205; }
.mag-contact p { font-size: 1.05rem; color: #5a3c10; margin: 12px 0 0; max-width: 460px; }
.mag-contact-actions { display: flex; flex-direction: column; gap: 12px; }
.mag-btn-ink { background: var(--ink); color: var(--orange); }
.mag-btn-ink:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0,0,0,0.3); }

/* ── Footer ──────────────────────────────────────────────────────── */
.mag-footer { background: #0a0a0c; border-top: 1px solid var(--line); padding: 44px 0 30px; }
.mag-footer-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.mag-footer .disp { font-size: clamp(2.4rem, 8vw, 5rem); color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,0.16); }
.mag-footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.mag-footer-links a { color: var(--muted-2); text-decoration: none; font-size: 0.82rem; }
.mag-footer-links a:hover { color: var(--orange); }
.mag-footer-run { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.mag-footer-run span { font-size: 0.7rem; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); font-weight: 600; }

/* ════════════════════════════════════════════════════════════════
   FLIPBOOK — lecteur magazine plein écran
   ════════════════════════════════════════════════════════════════ */
.flip-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(6, 6, 9, 0.96);
  display: flex; flex-direction: column;
  animation: flipFade 0.25s ease;
}
@keyframes flipFade { from { opacity: 0; } to { opacity: 1; } }
.flip-top {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 14px clamp(14px, 3vw, 28px); border-bottom: 1px solid var(--line); color: #fff;
  flex-shrink: 0;
}
.flip-title { display: flex; align-items: center; gap: 10px; }
.flip-title .disp { font-family: 'Anton', sans-serif; text-transform: uppercase; font-size: 1.1rem; color: #fff; }
.flip-title .tag { background: var(--orange); color: #1a1205; font-weight: 700; font-size: 0.66rem; letter-spacing: 1px; padding: 3px 9px; border-radius: 4px; }
.flip-close { background: none; border: 1px solid var(--line); color: #fff; width: 38px; height: 38px; border-radius: 6px; font-size: 1.3rem; cursor: pointer; transition: all 0.2s; display: grid; place-items: center; }
.flip-close:hover { background: var(--orange); color: #1a1205; border-color: var(--orange); }

.flip-stage {
  flex: 1; position: relative; display: flex; align-items: center; justify-content: center;
  padding: clamp(6px, 1.4vw, 14px); min-height: 0;
}
.flip-page-wrap {
  position: relative; width: 100%; height: 100%;
  overflow: auto; touch-action: pan-x pan-y; -webkit-overflow-scrolling: touch;
  cursor: zoom-in;
}
.flip-page-wrap.zoomed { cursor: grab; }
.flip-page-wrap.zoomed:active { cursor: grabbing; }
.flip-page-scroll {
  min-width: 100%; min-height: 100%; box-sizing: border-box; padding: 6px;
  display: flex; align-items: safe center; justify-content: safe center;
}
.flip-page-frame { position: relative; display: inline-block; line-height: 0; flex: 0 0 auto; }
.flip-page {
  display: block; border-radius: 4px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
  animation: flipIn 0.4s cubic-bezier(.22,1,.36,1);
  user-select: none; -webkit-user-drag: none;
}
.flip-fitw { width: auto; padding: 0 8px; font-size: 0.95rem; }
.flip-zoom-btn {
  background: rgba(20, 20, 24, 0.85); border: 1px solid var(--line); color: #fff;
  width: 28px; height: 24px; border-radius: 5px; font-size: 1rem; line-height: 1;
  cursor: pointer; vertical-align: middle; padding: 0;
}
.flip-zoom-btn:hover { background: var(--orange); color: #1a1205; border-color: var(--orange); }
.flip-zoom-pct { display: inline-block; min-width: 46px; color: #fff; font-family: 'Anton', sans-serif; vertical-align: middle; }
.flip-counter-sep { margin: 0 10px; color: var(--line); }

/* ── Couche interactive : pastille vidéo + lightbox ──────────────── */
.flip-video-hotspot {
  position: absolute; transform: translate(-50%, -50%); z-index: 6;
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(10, 10, 12, 0.72); border: 1px solid var(--orange);
  color: #fff; padding: 9px 18px 9px 9px; border-radius: 40px; cursor: pointer;
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.5);
  font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 0.9rem;
  animation: hotspotPulse 2s ease-in-out infinite;
}
.flip-video-hotspot .play {
  width: 30px; height: 30px; border-radius: 50%; background: var(--orange);
  color: #1a1205; display: grid; place-items: center; font-size: 0.8rem; padding-left: 2px;
}
.flip-video-hotspot:hover { background: var(--orange); color: #1a1205; }
.flip-video-hotspot:hover .play { background: #1a1205; color: var(--orange); }
@keyframes hotspotPulse {
  0%, 100% { box-shadow: 0 6px 22px rgba(0,0,0,0.5), 0 0 0 0 rgba(238,122,27,0.45); }
  50% { box-shadow: 0 6px 22px rgba(0,0,0,0.5), 0 0 0 13px rgba(238,122,27,0); }
}
.flip-video-modal {
  position: fixed; inset: 0; z-index: 99999;
  background: rgba(0, 0, 0, 0.9); display: grid; place-items: center; padding: 5vw;
}
.flip-video-box { position: relative; width: min(100%, 1100px); }
.flip-video-frame {
  position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 10px;
  overflow: hidden; border: 1px solid #2a2a30; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.flip-video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.flip-video-close {
  position: absolute; top: -46px; right: 0; width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer;
}
.flip-video-close:hover { background: var(--orange); color: #1a1205; border-color: var(--orange); }
@keyframes flipIn { from { opacity: 0; transform: translateX(var(--flip-dir, 22px)) scale(0.985); } to { opacity: 1; transform: translateX(0) scale(1); } }
.flip-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 50px; height: 50px; border-radius: 50%;
  background: rgba(20, 20, 24, 0.85); border: 1px solid var(--line); color: #fff;
  font-size: 1.5rem; cursor: pointer; display: grid; place-items: center; transition: all 0.2s;
}
.flip-arrow:hover { background: var(--orange); color: #1a1205; border-color: var(--orange); }
.flip-arrow:disabled { opacity: 0.25; cursor: default; }
.flip-arrow.prev { left: clamp(8px, 2vw, 22px); }
.flip-arrow.next { right: clamp(8px, 2vw, 22px); }

.flip-bottom { flex-shrink: 0; padding: 12px clamp(14px, 3vw, 28px) 16px; border-top: 1px solid var(--line); }
.flip-counter { text-align: center; color: var(--muted-2); font-size: 0.8rem; letter-spacing: 1px; margin-bottom: 10px; }
.flip-counter b { color: var(--orange); font-family: 'Anton', sans-serif; font-size: 1rem; }
.flip-thumbs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; justify-content: flex-start; scrollbar-width: thin; }
.flip-thumb {
  flex: 0 0 auto; width: 34px; height: 48px; border-radius: 3px; overflow: hidden;
  border: 1.5px solid transparent; cursor: pointer; opacity: 0.5; transition: all 0.2s; background: var(--ink-2);
}
.flip-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.flip-thumb.active { opacity: 1; border-color: var(--orange); }
.flip-thumb:hover { opacity: 0.9; }

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 880px) {
  .mag-hero-grid { grid-template-columns: 1fr; }
  .mag-hero-mag { order: -1; margin-bottom: 12px; }
  .mag-cover-stack { width: min(62%, 240px); }
  .mag-founder-grid { grid-template-columns: 1fr; }
  .mag-founder-photo { max-width: 320px; }
  .mag-flip-grid { grid-template-columns: 1fr; }
  .mag-flip-covers { order: -1; }
  .mag-flip-covers img { max-width: 200px; }
  .mag-contact-grid { grid-template-columns: 1fr; }
  .mag-nav { display: none; }
  .mag-burger { display: block; }
  .mag-nav.open {
    display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--ink); border-bottom: 1px solid var(--line);
    padding: 18px clamp(18px, 4vw, 48px);
  }
}
@media (max-width: 520px) {
  .mag-stat { flex-basis: 50%; border-bottom: 1px solid var(--line); }
  .mag-flip-meta { gap: 16px; flex-wrap: wrap; }
  .flip-thumbs { display: none; }
  .flip-arrow { width: 42px; height: 42px; font-size: 1.3rem; }
}
