/* ═══════════════════════════════════════════════════════════════════
   MERCATO GENERATOR — Direction "Stade" (éditorial sport, vert stade)
   ═══════════════════════════════════════════════════════════════════ */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Barlow', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 10px; }

:root {
  /* Couleurs — identité stade */
  --bg:        #060d09;
  --surface-1: #0d1710;
  --surface-2: #142016;
  --surface-3: #1a2b20;
  --border:    #1a2b20;
  --border-accent: rgba(74,222,128,.35);
  --text:      #eef5ef;
  --text-dim:  #a8bfae;
  --text-faint:#6b8574;
  --accent:    #4ade80;
  --accent-soft: rgba(74,222,128,.13);
  --green:     #4ade80;
  --red:       #f87171;
  --blue:      #60a5fa;

  /* Rayons — plus anguleux, moins pilule */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;
  --r-full: 999px;

  --f-head: 'Barlow Condensed', sans-serif;
  --f-body: 'Barlow', sans-serif;
  --nav-h: 72px;

  /* Alias de compatibilité (anciens noms utilisés directement dans les fichiers PHP) */
  --s1: var(--surface-1);
  --s2: var(--surface-2);
  --s3: var(--surface-3);
  --bd: var(--border);
  --t1: var(--text);
  --t2: var(--text-dim);
  --t3: var(--text-faint);
  --purple: var(--blue);
  --gold: var(--accent);
  --gold-soft: var(--accent-soft);
  --gold-glow: rgba(74,222,128,.3);
  --radius: var(--r-md);
}

h1, h2, h3, h4 { font-family: var(--f-head); font-weight: 900; margin: 0; letter-spacing: -.005em; }
p { margin: 0; }

.section-label {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-head); font-weight: 800; font-size: 12.5px;
  letter-spacing: .22em; text-transform: uppercase; color: var(--accent);
}
.section-label::before { content: ''; width: 22px; height: 2px; background: var(--accent); }

/* ─────────────────────────────────────────────────────────────────
   BOUTONS — biseautés, façon écusson
───────────────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--accent); color: #ffffff;
  font-family: var(--f-head); font-weight: 900; font-size: 16px;
  letter-spacing: .03em; text-transform: uppercase;
  padding: 16px 32px;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  transition: transform .15s ease, filter .15s ease;
  border: none; cursor: pointer; text-decoration: none;
}
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: transparent; color: var(--text);
  font-family: var(--f-head); font-weight: 800; font-size: 15px; text-transform: uppercase;
  padding: 15px 28px; border: 2px solid var(--surface-3);
  transition: all .15s ease; text-decoration: none;
}
.btn-ghost:hover { border-color: var(--border-accent); color: var(--accent); }
.btn-sm {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--f-head); font-weight: 800; font-size: 12.5px; text-transform: uppercase;
  color: var(--accent); padding: 9px 16px;
  border: 1px solid var(--border-accent); background: var(--accent-soft);
  text-decoration: none; transition: all .18s ease;
}
.btn-sm:hover { background: rgba(74,222,128,.22); }
.btn-cancel { color: var(--text-dim); text-decoration: none; }

/* ─────────────────────────────────────────────────────────────────
   HEADER
───────────────────────────────────────────────────────────────── */
#site-header {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  height: var(--nav-h); padding: 0 40px;
  background: rgba(6,13,9,.9); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-logo { display: flex; align-items: baseline; gap: 3px; text-decoration: none; }
.wordmark { font-family: var(--f-head); font-weight: 900; font-size: 22px; color: var(--text); font-style: italic; letter-spacing: -.01em; }
.site-logo .sub, .footer-brand .wordmark .sub { color: var(--accent); font-weight: 900; }
.menu-toggle { display: none; background: var(--surface-1); border: 1px solid var(--border); color: var(--text); font-family: var(--f-head); font-weight: 700; padding: 10px 16px; }
#primary-menu { display: flex; align-items: center; gap: 6px; }
#primary-menu a {
  font-family: var(--f-head); font-weight: 700; font-size: 14.5px; text-transform: uppercase; letter-spacing: .02em;
  color: var(--text-dim); text-decoration: none; padding: 8px 12px;
  transition: color .15s;
}
#primary-menu a:hover { color: var(--accent); }
#primary-menu a.nav-cta {
  background: var(--accent); color: #052e14; font-weight: 900;
  padding: 10px 20px; margin-left: 8px;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}
#primary-menu a.nav-cta:hover { filter: brightness(1.1); }
.nav-search { margin-left: 4px; }
.nav-search input {
  background: var(--surface-1); border: 1px solid var(--border);
  color: var(--text); padding: 9px 16px; font-size: 13.5px; width: 160px; font-family: var(--f-body);
  transition: border-color .15s;
}
.nav-search input:focus { outline: none; border-color: var(--border-accent); }

@media (max-width: 960px) {
  #site-header { padding: 0 20px; flex-wrap: wrap; }
  .menu-toggle { display: block; }
  #primary-menu { display: none; }
  #site-header.nav-mobile-open {
    height: auto;
    align-items: flex-start;
    background: var(--bg);
    backdrop-filter: none;
  }
  #site-header.nav-mobile-open #primary-menu {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    order: 10;
    gap: 4px;
    padding: 16px 0 20px;
    border-top: 1px solid var(--border);
    margin-top: 16px;
  }
  #site-header.nav-mobile-open #primary-menu a { text-align: left; }
  #site-header.nav-mobile-open .nav-search { order: -1; margin: 0 0 8px; }
  #site-header.nav-mobile-open .nav-search input { width: 100%; }
}

/* ─────────────────────────────────────────────────────────────────
   FOOTER
───────────────────────────────────────────────────────────────── */
#site-footer {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 48px;
  padding: 64px 40px 32px; border-top: 1px solid var(--border);
  max-width: 1280px; margin: 0 auto;
}
.footer-brand p { color: var(--text-dim); font-size: 14px; margin: 16px 0 20px; max-width: 320px; line-height: 1.6; }
.footer-col h4 { font-family: var(--f-head); font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--text-faint); margin-bottom: 16px; font-weight: 800; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--text-dim); text-decoration: none; font-size: 14.5px; transition: color .15s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  grid-column: 1 / -1; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border);
  color: var(--text-faint); font-size: 13px;
}
@media (max-width: 800px) { #site-footer { grid-template-columns: 1fr; gap: 32px; } }

/* ─────────────────────────────────────────────────────────────────
   HERO ACCUEIL — stade, projecteur, italique majuscule
───────────────────────────────────────────────────────────────── */
.hero { position: relative; padding: 100px 24px 64px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg-grad { position: absolute; top: -240px; left: 50%; transform: translateX(-50%); width: 1000px; height: 1000px; background: radial-gradient(circle, rgba(74,222,128,.16) 0%, transparent 65%); }
.hero-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.02) 1px,transparent 1px), linear-gradient(90deg,rgba(255,255,255,.02) 1px,transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse 70% 70% at 50% 20%, black 0%, transparent 75%); }
.hero-accent { display: none; }

.hero-content { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-head); font-weight: 800; font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent); border: 1px solid var(--border-accent);
  padding: 8px 18px; margin-bottom: 28px;
}
.hero-title { font-family: var(--f-head); font-weight: 900; font-style: italic; text-transform: uppercase; font-size: clamp(38px, 7vw, 74px); line-height: .95; margin-bottom: 22px; }
.hero-title span, .hero-title em {
  color: var(--accent); font-style: italic;
  -webkit-text-stroke: 2px var(--accent); -webkit-text-fill-color: transparent;
}
.hero-desc { font-size: 17.5px; color: var(--text-dim); max-width: 500px; margin: 0 auto 32px; line-height: 1.6; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.hero-stats { display: flex; gap: 0; margin-top: 56px; flex-wrap: wrap; justify-content: center; }
.hero-stat { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 0 32px; border-right: 1px solid var(--surface-3); }
.hero-stat:last-child { border-right: none; }
.hero-stat .n { font-family: var(--f-head); font-weight: 900; font-style: italic; font-size: 32px; color: var(--accent); line-height: 1; }
.hero-stat .n span { color: var(--accent); }
.hero-stat .l { font-size: 11px; color: var(--text-faint); font-family: var(--f-head); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-top: 4px; }

.hero-right { display: flex; align-items: center; justify-content: center; width: 100%; margin-top: 8px; }
.hero-image-wrap { width: 100%; max-width: 480px; aspect-ratio: 1/1; overflow: hidden; background: var(--surface-1); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; }
.hero-image-wrap img { width: 84%; height: 84%; object-fit: contain; }

/* Cadres iPhone */
.hero-phones { display: flex; justify-content: center; align-items: flex-end; gap: 14px; margin-top: 56px; }
.iphone-frame { position: relative; width: 200px; background: #050805; border-radius: 40px; padding: 10px; box-shadow: 0 30px 70px rgba(0,0,0,.55), inset 0 0 0 2px rgba(255,255,255,.05); flex-shrink: 0; }
.iphone-frame.tilt-l { transform: rotate(-6deg); }
.iphone-frame.tilt-r { transform: rotate(6deg); margin-top: 44px; }
.iphone-frame.tilt-c { margin-top: -16px; z-index: 2; width: 220px; }
.iphone-notch { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 90px; height: 20px; background: #050805; border-radius: 0 0 14px 14px; z-index: 2; }
.iphone-screen { position: relative; width: 100%; aspect-ratio: 390/844; border-radius: 30px; overflow: hidden; background: var(--bg); }
.iphone-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

@media (max-width: 720px) { .hero-phones { display: none; } }

/* ─────────────────────────────────────────────────────────────────
   BANDEAU DE STATS
───────────────────────────────────────────────────────────────── */
.stats-band { background: var(--surface-1); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 36px 24px; }
.stats-band-inner { display: flex; justify-content: center; gap: 0; flex-wrap: wrap; max-width: 1100px; margin: 0 auto; }
.stats-band-item { text-align: center; padding: 0 40px; border-right: 1px solid var(--surface-3); }
.stats-band-item:last-child { border-right: none; }
.stats-band-item .n { font-family: var(--f-head); font-weight: 900; font-style: italic; font-size: 27px; color: var(--text); }
.stats-band-item .l { font-size: 11px; color: var(--text-faint); margin-top: 2px; font-family: var(--f-head); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }

/* ─────────────────────────────────────────────────────────────────
   TICKER
───────────────────────────────────────────────────────────────── */
.ticker { background: var(--accent); padding: 12px 0; overflow: hidden; }
.ticker-track { display: flex; width: max-content; animation: tickerScroll 32s linear infinite; }
.ticker-track:hover { animation-play-state: paused; }
.ticker-item { font-family: var(--f-head); font-weight: 800; font-size: 13.5px; letter-spacing: .05em; text-transform: uppercase; color: #052e14; padding: 0 30px; white-space: nowrap; display: flex; align-items: center; gap: 12px; }
.ticker-dot { width: 5px; height: 5px; border-radius: 50%; background: rgba(5,46,20,.4); flex-shrink: 0; }
@keyframes tickerScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ─────────────────────────────────────────────────────────────────
   SECTIONS GÉNÉRIQUES
───────────────────────────────────────────────────────────────── */
.section { padding: 88px 24px; max-width: 1160px; margin: 0 auto; }
.features-header, .how-header { text-align: center; max-width: 620px; margin: 0 auto 48px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.features-header h2, .how-header h2 { font-family: var(--f-head); font-weight: 900; font-style: italic; text-transform: uppercase; font-size: clamp(26px, 4vw, 38px); }
.features-header p, .how-header p { color: var(--text-dim); font-size: 16px; line-height: 1.6; font-style: normal; }

/* Fonctionnalités */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--border); border: 1px solid var(--border); }
.feature-card { position: relative; background: var(--surface-1); padding: 30px; transition: background .2s; }
.feature-card:hover { background: var(--surface-2); }
.feature-accent { display: none; }
.feature-num { position: absolute; top: 24px; right: 26px; font-family: var(--f-head); font-weight: 900; font-style: italic; font-size: 13px; color: var(--text-faint); }
.feature-icon { width: 44px; height: 44px; background: var(--accent-soft); display: flex; align-items: center; justify-content: center; font-size: 19px; margin-bottom: 18px; }
.feature-card h3 { font-family: var(--f-head); font-weight: 800; font-size: 17px; margin-bottom: 8px; text-transform: uppercase; }
.feature-card p { font-size: 14px; color: var(--text-dim); line-height: 1.6; }
@media (max-width: 860px) { .features-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .features-grid { grid-template-columns: 1fr; } }

/* Bandeau de clubs défilant */
.clubs-strip { padding: 32px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); overflow: hidden; }
.clubs-strip-label { text-align: center; font-family: var(--f-head); font-weight: 800; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 24px; }
.clubs-row { display: flex; width: max-content; gap: 12px; animation: clubsScroll 50s linear infinite; }
.clubs-row.reverse { animation-direction: reverse; }
.club-pill { display: flex; align-items: center; gap: 10px; padding: 8px 18px 8px 8px; background: var(--surface-1); border: 1px solid var(--border); white-space: nowrap; font-size: 14px; }
.club-logo { width: 26px; height: 26px; border-radius: 50%; background: #fff; flex-shrink: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.club-logo img { width: 100%; height: 100%; object-fit: contain; }
.club-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; margin-left: 8px; }
@keyframes clubsScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Ce que ça change (avant/après) */
.transform-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--border); border: 1px solid var(--border); }
.transform-card { background: var(--surface-1); padding: 30px; }
.transform-before { display: inline-block; color: var(--text-faint); font-size: 12.5px; text-decoration: line-through; background: var(--surface-2); padding: 6px 14px; margin-bottom: 18px; }
.transform-after { font-family: var(--f-head); font-size: 19px; font-weight: 800; text-transform: uppercase; line-height: 1.3; margin-bottom: 10px; }
.transform-after .arrow { color: var(--accent); margin-right: 6px; }
.transform-card p { font-size: 14px; color: var(--text-dim); line-height: 1.6; }
@media (max-width: 860px) { .transform-grid { grid-template-columns: 1fr; } }

/* Comparatif */
.comp-table-wrap { max-width: 820px; margin: 0 auto; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.comp-table { width: 100%; min-width: 460px; border-collapse: collapse; }
.comp-table th, .comp-table td { padding: 16px; text-align: center; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.comp-table th { color: var(--text-faint); font-family: var(--f-head); text-transform: uppercase; font-size: 11px; letter-spacing: .06em; font-weight: 700; }
.comp-table td:first-child, .comp-table th:first-child { text-align: left; color: var(--text); font-weight: 600; }
.comp-table .ok { color: var(--accent); font-weight: 800; }
.comp-table .no { color: var(--text-faint); }
.comp-table tr.highlight td { background: var(--accent-soft); }

/* Comment ça marche */
.how-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.how-step { text-align: center; }
.how-num { width: 60px; height: 60px; background: var(--surface-1); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; font-family: var(--f-head); font-weight: 900; font-style: italic; font-size: 24px; color: var(--accent); }
.how-step h3 { font-family: var(--f-head); font-weight: 800; font-size: 16.5px; margin-bottom: 8px; text-transform: uppercase; }
.how-step p { font-size: 14px; color: var(--text-dim); line-height: 1.6; }
@media (max-width: 700px) { .how-steps { grid-template-columns: 1fr; } }

/* CTA final */
.cta-section { text-align: center; }
.cta-inner { max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.cta-inner h2 { font-family: var(--f-head); font-weight: 900; font-style: italic; text-transform: uppercase; font-size: clamp(28px, 4.5vw, 42px); }
.cta-inner p { color: var(--text-dim); font-size: 16px; margin-bottom: 8px; }
.cta-sub { color: var(--text-faint); font-size: 13px; margin-top: 14px; }
.cta-sub span { color: var(--text-dim); }

/* ─────────────────────────────────────────────────────────────────
   BLOG
───────────────────────────────────────────────────────────────── */
.blog-hero { max-width: 700px; margin: 0 auto; padding: 72px 24px 40px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.blog-hero h1 { font-family: var(--f-head); font-weight: 900; font-style: italic; text-transform: uppercase; font-size: clamp(32px, 5vw, 48px); }
.blog-hero p { color: var(--text-dim); font-size: 16px; }
.blog-grid-wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px 88px; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--border); border: 1px solid var(--border); }
.post-card { background: var(--surface-1); overflow: hidden; text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: background .2s; }
.post-card:hover { background: var(--surface-2); }
.post-card-thumb { aspect-ratio: 16/9; background: var(--surface-2); }
.post-card-thumb-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 32px; text-decoration: none; }
.post-card-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.mg-post-cats { display: flex; gap: 6px; flex-wrap: wrap; }
.mg-post-cats a { font-family: var(--f-head); font-weight: 800; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; text-decoration: none; }
.post-card-title { font-family: var(--f-head); font-size: 18px; font-weight: 800; line-height: 1.3; }
.post-card-title a { text-decoration: none; color: var(--text); }
.post-card-excerpt { font-size: 13.5px; color: var(--text-dim); line-height: 1.55; }
.post-card-meta { margin-top: auto; padding-top: 8px; }
.post-card-date { font-size: 11.5px; color: var(--text-faint); font-family: var(--f-head); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
@media (max-width: 860px) { .blog-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .blog-grid { grid-template-columns: 1fr; } }

.pagination { display: flex; justify-content: center; margin-top: 48px; }
.pagination ul { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0; }
.pagination a { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid var(--border); color: var(--text-dim); text-decoration: none; font-family: var(--f-head); font-weight: 700; }
.pagination a.current { background: var(--accent); color: #052e14; border-color: var(--accent); }

/* ─────────────────────────────────────────────────────────────────
   HERO GÉNÉRIQUE (club / championnat / joueur / classement)
───────────────────────────────────────────────────────────────── */
.mg-hero { position: relative; padding: 72px 40px 48px; overflow: hidden; border-bottom: 1px solid var(--border); }
.mg-hero-bg { position: absolute; inset: 0; z-index: 0; background: radial-gradient(ellipse 70% 60% at 25% 20%, color-mix(in srgb, var(--accent-page, var(--accent)) 13%, transparent) 0%, transparent 70%); }
.mg-hero-inner { position: relative; z-index: 1; max-width: 1100px; margin: 0 auto; }
.mg-breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-family: var(--f-head); font-weight: 700; font-size: 12.5px; color: var(--text-faint); margin-bottom: 28px; text-transform: uppercase; letter-spacing: .03em; }
.mg-breadcrumb a { color: var(--text-faint); text-decoration: none; }
.mg-breadcrumb a:hover { color: var(--text-dim); }
.mg-breadcrumb strong { color: var(--text-dim); font-weight: 800; }
.mg-hero-main { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.mg-hero-text { flex: 1; min-width: 240px; }
.mg-hero-eyebrow { font-family: var(--f-head); font-weight: 700; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 14px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mg-hero-flag { font-size: 18px; }
.mg-hero-abbr { color: var(--text-faint); }
.mg-hero h1 { font-family: var(--f-head); font-weight: 900; font-style: italic; text-transform: uppercase; font-size: clamp(32px, 5vw, 54px); line-height: 1; margin-bottom: 24px; }
.mg-hero-stats { display: flex; gap: 0; margin-bottom: 24px; flex-wrap: wrap; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.mg-hero-stat { display: flex; flex-direction: column; gap: 2px; padding: 0 24px; border-right: 1px solid var(--surface-3); }
.mg-hero-stat:first-child { padding-left: 0; }
.mg-hero-stat:last-child { border-right: none; }
.mg-hero-stat a { display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: inherit; transition: opacity .15s; }
.mg-hero-stat a:hover { opacity: .7; }
.mg-hero-stat strong { font-family: var(--f-head); font-weight: 900; font-style: italic; font-size: 27px; color: var(--text); line-height: 1; }
.mg-hero-stat span { font-family: var(--f-head); font-weight: 700; font-size: 11px; color: var(--text-faint); letter-spacing: .06em; text-transform: uppercase; margin-top: 4px; }
.mg-hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

.mg-badge { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; position: relative; }
.mg-badge-ring { width: 100%; height: 100%; border-radius: 50%; display: flex; align-items: center; justify-content: center; overflow: hidden; border: 2px solid var(--border-accent); }
.mg-badge-ring img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 640px) {
  .mg-hero { padding: 48px 20px 36px; }
  .mg-hero-main { gap: 16px; }
  .mg-hero-text { min-width: 0; width: 100%; flex-basis: 100%; }
  .mg-hero-main .mg-badge { width: 68px !important; height: 68px !important; }
  .mg-hero-stats { gap: 0; }
  .mg-hero-stat { padding: 0 16px; }
  .mg-hero-ctas { flex-direction: column; align-items: stretch; }
  .mg-hero-ctas .btn-primary, .mg-hero-ctas .btn-ghost { width: 100%; }
}

/* Onglets */
.mg-tabs { display: flex; gap: 4px; padding: 0 40px; margin-top: 24px; border-bottom: 1px solid var(--border); max-width: 1100px; margin-left: auto; margin-right: auto; overflow-x: auto; }
.mg-tab-btn { background: none; border: none; padding: 14px 18px; font-family: var(--f-head); font-weight: 800; font-size: 13.5px; text-transform: uppercase; color: var(--text-faint); cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; transition: color .15s; }
.mg-tab-btn:hover { color: var(--text-dim); }
.mg-tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); }
.mg-tab-panel { display: none; }
.mg-tab-panel.active { display: block; }
@media (max-width: 640px) { .mg-tabs { padding: 0 20px; } }

/* Contenu générique de section */
.mg-section-header { max-width: 1100px; margin: 0 auto; padding: 40px 40px 24px; }
.mg-section-header h2 { font-family: var(--f-head); font-weight: 900; font-style: italic; text-transform: uppercase; font-size: clamp(22px, 3.5vw, 32px); margin-top: 6px; }
.mg-section-header p { color: var(--text-dim); font-size: 14.5px; margin-top: 8px; }
@media (max-width: 640px) { .mg-section-header { padding: 32px 20px 20px; } }

/* Effectif */
.mg-squad { max-width: 1100px; margin: 0 auto; padding: 0 40px 48px; }
.mg-squad-group { margin-bottom: 28px; }
.mg-squad-group-label { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-head); font-weight: 800; font-size: 15px; text-transform: uppercase; letter-spacing: .04em; border-left: 3px solid; padding-left: 12px; margin-bottom: 14px; }
.mg-squad-group-label span { color: var(--text-faint); font-weight: 600; }
.mg-squad-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); }
.mg-player-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--surface-1); text-decoration: none; color: inherit; transition: background .15s; }
.mg-player-row:hover { background: var(--surface-2); }
.mg-player-avatar { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; border: 1px solid; font-family: var(--f-head); font-weight: 800; font-size: 13px; color: var(--text); }
.mg-player-avatar img { width: 100%; height: 100%; object-fit: cover; }
.mg-player-info { flex: 1; min-width: 0; }
.mg-player-name { font-family: var(--f-head); font-weight: 800; font-size: 14px; color: var(--text); line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mg-player-meta { display: flex; gap: 8px; font-size: 11.5px; color: var(--text-faint); margin-top: 2px; }
.mg-player-value { font-family: var(--f-head); font-weight: 800; font-size: 13px; color: var(--accent); flex-shrink: 0; white-space: nowrap; }
.mg-empty-squad { max-width: 1100px; margin: 0 auto; padding: 40px; text-align: center; color: var(--text-dim); }

/* Actualités liées */
.mg-related { max-width: 1100px; margin: 0 auto; padding: 0 40px 48px; }
.mg-related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; background: var(--border); border: 1px solid var(--border); }
.mg-related-card { display: flex; flex-direction: column; background: var(--surface-1); overflow: hidden; text-decoration: none; color: inherit; transition: background .18s; }
.mg-related-card:hover { background: var(--surface-2); }
.mg-related-thumb { aspect-ratio: 16/10; background: var(--surface-2); }
.mg-related-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 24px; }
.mg-related-body { padding: 16px; }
.mg-related-date { font-size: 11px; color: var(--text-faint); font-family: var(--f-head); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 6px; }
.mg-related-title { font-family: var(--f-head); font-weight: 800; font-size: 15px; line-height: 1.3; color: var(--text); margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 900px) { .mg-related-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .mg-related-grid { grid-template-columns: 1fr; } }

/* Grilles clubs / championnats */
.mg-clubs-grid-section, .mg-leagues-grid-section { max-width: 1100px; margin: 0 auto; padding: 40px 40px 64px; }
.mg-clubs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); }
.mg-club-tile { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 22px 14px 18px; background: var(--surface-1); text-decoration: none; color: inherit; text-align: center; transition: background .18s; }
.mg-club-tile:hover { background: var(--surface-2); }
.mg-club-tile-name { font-family: var(--f-head); font-weight: 700; font-size: 13px; color: var(--text); line-height: 1.2; }
.mg-club-tile-abbr { font-family: var(--f-head); font-weight: 600; font-size: 10.5px; color: var(--text-faint); }

.mg-leagues-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); }
.mg-league-card { display: flex; align-items: center; gap: 16px; padding: 18px 20px; background: var(--surface-1); text-decoration: none; color: inherit; transition: background .18s; }
.mg-league-card:hover { background: var(--surface-2); }
.mg-league-card-body { flex: 1; min-width: 0; }
.mg-league-card-eyebrow { display: flex; gap: 8px; font-size: 12px; color: var(--text-faint); }
.mg-league-card-name { font-family: var(--f-head); font-weight: 800; font-size: 16px; color: var(--text); margin: 2px 0; }
.mg-league-card-meta { font-size: 12px; color: var(--text-faint); }
.mg-league-card-chev { color: var(--text-faint); font-size: 20px; }
@media (max-width: 640px) { .mg-clubs-grid-section, .mg-leagues-grid-section { padding: 32px 20px 48px; } }

/* Archive générique (classements, championnats) */
.mg-archive-hero { max-width: 720px; margin: 0 auto; padding: 72px 24px 40px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.mg-archive-hero h1 { font-family: var(--f-head); font-weight: 900; font-style: italic; text-transform: uppercase; font-size: clamp(30px, 5vw, 46px); }
.mg-archive-hero p { color: var(--text-dim); font-size: 15.5px; }

/* Classements (liste de cartes) */
.mg-rank-list { display: flex; flex-direction: column; gap: 1px; max-width: 820px; margin: 0 auto 64px; padding: 0 24px; }
.mg-rank-card { display: flex; align-items: center; gap: 16px; background: var(--surface-1); border: 1px solid var(--border); padding: 14px 18px; text-decoration: none; color: inherit; transition: background .15s; }
.mg-rank-card:hover { background: var(--surface-2); }
.mg-rank-num { font-family: var(--f-head); font-weight: 900; font-style: italic; font-size: 19px; width: 26px; text-align: center; flex-shrink: 0; color: var(--text-faint); }
.mg-rank-info { flex: 1; min-width: 0; }
.mg-rank-name { font-family: var(--f-head); font-weight: 800; font-size: 15.5px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.mg-rank-meta { display: flex; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--text-faint); margin-top: 2px; }
.mg-rank-pos { font-weight: 700; }
.mg-rank-value { font-family: var(--f-head); font-weight: 900; font-size: 15px; color: var(--accent); flex-shrink: 0; white-space: nowrap; }

.mg-featured-post { display: flex; gap: 20px; background: var(--surface-1); border: 1px solid var(--border-accent); padding: 22px; margin: 0 auto 28px; max-width: 820px; text-decoration: none; color: inherit; }
.mg-featured-post-thumb { width: 92px; height: 92px; background: var(--surface-2); display: flex; align-items: center; justify-content: center; font-size: 28px; flex-shrink: 0; }
.mg-featured-post-body h3 { font-family: var(--f-head); font-weight: 800; font-size: 18px; color: var(--text); margin: 4px 0 6px; text-transform: none; font-style: normal; }
.mg-featured-post-body p { color: var(--text-dim); font-size: 13px; line-height: 1.5; }
@media (max-width: 560px) { .mg-featured-post { flex-direction: column; } .mg-featured-post-thumb { width: 100%; height: 70px; } }

/* Tableau générique (fiche joueur, admin réutilisé côté public) */
.admin-table { width: 100%; border-collapse: collapse; background: var(--surface-1); border: 1px solid var(--border); overflow: hidden; }
.admin-table th { text-align: left; padding: 12px 16px; background: var(--surface-2); color: var(--text-faint); font-family: var(--f-head); font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
.admin-table td { padding: 12px 16px; border-top: 1px solid var(--border); font-size: 14px; }
.admin-badge { display: inline-block; padding: 3px 10px; font-size: 11px; font-weight: 700; }

/* Contenu de page (histoire, article) */
.mg-content-inner { padding: 40px; max-width: 800px; margin: 0 auto; }
.mg-content-body, .mg-content-footer { color: var(--text-dim); line-height: 1.8; font-size: 16px; }
.mg-content-body p, .single-body p { margin-bottom: 1.2em; }
.single-content-wrap { padding: 8px 0 64px; }

/* Squelette générateur */
.page-mercato-wrap { min-height: 60vh; }

/* FAQ accordéon */
.mg-faq-item { border-bottom: 1px solid var(--border); }
.mg-faq-q { width: 100%; text-align: left; background: none; border: none; color: var(--text); font-family: var(--f-head); font-weight: 800; font-size: 16px; padding: 18px 0; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; text-transform: uppercase; }
.mg-faq-chev { color: var(--accent); flex-shrink: 0; transition: transform .2s; }
.mg-faq-a { display: none; color: var(--text-dim); line-height: 1.7; padding-bottom: 18px; font-size: 14.5px; }
.mg-faq-item.open .mg-faq-a { display: block; }
.mg-faq-item.open .mg-faq-chev { transform: rotate(45deg); }

/* Mini-interface affichée en direct dans les écrans d'iPhone (pas des captures) */
.phone-ui { padding: 14px 12px; height: 100%; overflow: hidden; }
.phone-ui-topbar { display: flex; gap: 5px; margin-bottom: 14px; }
.phone-ui-topbar .pd { width: 7px; height: 7px; border-radius: 50%; background: var(--surface-3); }
.phone-ui-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.phone-ui-badge { width: 34px; height: 34px; border-radius: 50%; border: 1px solid; display: flex; align-items: center; justify-content: center; font-family: var(--f-head); font-weight: 800; font-size: 11px; flex-shrink: 0; }
.phone-ui-title { font-family: var(--f-head); font-weight: 800; font-size: 13px; color: var(--text); line-height: 1.1; }
.phone-ui-sub { font-family: var(--f-head); font-size: 9.5px; color: var(--text-faint); text-transform: uppercase; letter-spacing: .05em; margin-top: 2px; }
.phone-ui-row { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid var(--surface-3); font-size: 11.5px; }
.phone-ui-pos { font-family: var(--f-head); font-weight: 800; font-size: 9px; color: var(--accent); flex-shrink: 0; width: 22px; }
.phone-ui-rank { font-family: var(--f-head); font-weight: 900; font-style: italic; font-size: 13px; color: var(--text-faint); flex-shrink: 0; width: 16px; }
.phone-ui-name { flex: 1; min-width: 0; color: var(--text); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.phone-ui-val { font-family: var(--f-head); font-weight: 800; font-size: 11px; color: var(--accent); flex-shrink: 0; }
