  :root {
    --pelouse-fonce: #0E2E1F;
    --pelouse: #16412C;
    --vert-vif: #4CAF52;
    --or: #E8A33D;
    --brique: #C1442E;
    --sable: #F6F2E7;
    --sable-carte: #FFFFFF;
    --encre: #17190F;
    --encre-douce: #5B5F4F;
    --ligne: #E4DEC9;
    --radius: 10px;
    --shadow: 0 8px 24px rgba(14,46,31,0.08);
  }
  * { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
  html { scroll-behavior: smooth; }
  body { background: var(--sable); color: var(--encre); font-family: 'Work Sans', sans-serif; line-height: 1.55; overscroll-behavior-y: none; }
  button, a { touch-action: manipulation; }
  section[id] { scroll-margin-top: 66px; }
  h1,h2,h3,.font-display { font-family: 'Anton', sans-serif; font-weight: 400; letter-spacing: 0.02em; text-transform: uppercase; color: var(--pelouse-fonce); }
  .mono { font-family: 'JetBrains Mono', monospace; }
  a { color: inherit; text-decoration: none; }
  img { max-width: 100%; display: block; }
  button { font-family: inherit; cursor: pointer; border: none; }
  .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

  .pelouse-band { height: 10px; background-image: repeating-linear-gradient(90deg, var(--vert-vif) 0 26px, var(--pelouse) 26px 52px); opacity: 0.9; }

  header.site-header { position: sticky; top: 0; z-index: 80; background: var(--pelouse-fonce); color: #fff; padding-top: env(safe-area-inset-top); }
  .header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; gap: 16px; max-width: 1200px; margin: 0 auto; }
  .brand { display: flex; align-items: center; gap: 10px; }
  .brand .mark { width: 42px; height: 42px; border-radius: 50%; background: var(--or); color: var(--pelouse-fonce); display: flex; align-items: center; justify-content: center; font-family: 'Anton', sans-serif; font-size: 18px; overflow: hidden; box-shadow: 0 0 0 2px rgba(232,163,61,0.35); }
  .brand .mark img { width: 100%; height: 100%; object-fit: cover; }
  .brand .name { font-family: 'Anton', sans-serif; font-size: 19px; letter-spacing: 0.03em; }
  .brand .name small { display:block; font-family:'Work Sans',sans-serif; text-transform:none; font-size:11px; color: var(--or); letter-spacing: 0.08em; }
  nav.main-nav { display: flex; gap: 22px; }
  nav.main-nav a { font-size: 14px; font-weight: 600; opacity: 0.85; }
  nav.main-nav a:hover { opacity: 1; color: var(--or); }
  .nav-toggle { display: none; background: none; color: #fff; font-size: 22px; }

  /* ---------- BARRE DE NAVIGATION BASSE (mobile, façon app) ---------- */
  .app-tabbar { display: none; }
  @media (max-width: 700px) {
    .app-tabbar {
      display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
      background: rgba(14,46,31,0.98); backdrop-filter: blur(10px);
      border-top: 1px solid rgba(255,255,255,0.08);
      padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
      box-shadow: 0 -6px 20px rgba(0,0,0,0.25);
    }
    .app-tabbar a, .app-tabbar button {
      flex: 1; background: none; display: flex; flex-direction: column; align-items: center; justify-content: center;
      gap: 3px; padding: 6px 2px; color: #9FB0A4; font-size: 10px; font-weight: 700;
      text-transform: uppercase; letter-spacing: .02em; border-radius: 10px; min-height: 48px;
    }
    .app-tabbar a .ico, .app-tabbar button .ico { font-size: 19px; line-height: 1; }
    .app-tabbar a.active, .app-tabbar button.active { color: var(--or); }
    .app-tabbar a:active, .app-tabbar button:active { background: rgba(255,255,255,0.06); }
    .app-tabbar .tb-live .ico { position: relative; }
    .app-tabbar .tb-live.is-live .ico::after {
      content: ""; position: absolute; top: -1px; right: -3px; width: 7px; height: 7px; border-radius: 50%;
      background: var(--brique); box-shadow: 0 0 0 2px rgba(14,46,31,0.98); animation: pulse 1.4s infinite;
    }
    body { padding-bottom: calc(58px + env(safe-area-inset-bottom)); }
  }

  @media (max-width: 820px) {
    nav.main-nav { position: fixed; inset: 62px 0 0 0; background: var(--pelouse-fonce); flex-direction: column; padding: 20px; gap: 4px; transform: translateY(-110%); transition: transform .25s ease; }
    nav.main-nav.open { transform: translateY(0); }
    nav.main-nav a { padding: 12px 4px; border-bottom: 1px solid rgba(255,255,255,0.08); }
    .nav-toggle { display: block; }
  }

  .hero {
    background:
      radial-gradient(circle at 20% 20%, rgba(76,175,82,0.30), transparent 55%),
      linear-gradient(180deg, rgba(10,24,16,0.88) 0%, rgba(14,46,31,0.93) 55%, var(--pelouse-fonce) 100%),
      url('./assets/hero-bg.jpg') center 30% / cover no-repeat;
    color: #fff; padding: 54px 0 40px;
  }
  .hero .eyebrow { color: var(--or); font-weight: 700; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 10px; }
  .hero h1 { font-size: clamp(32px, 5vw, 54px); color: #fff; line-height: 1.05; max-width: 720px; }
  .hero p.lead { margin-top: 14px; max-width: 560px; color: #D9E4DA; font-size: 16px; }

  .scoreboard { margin-top: 30px; background: #0A241A; border: 1px solid rgba(232,163,61,0.25); border-radius: var(--radius); padding: 18px 20px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
  .scoreboard .live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--brique); animation: pulse 1.4s infinite; flex-shrink:0; }
  @keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.35} }
  .scoreboard .label { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--or); font-weight: 700; }
  .scoreboard .teams { display: flex; align-items: center; gap: 14px; font-family:'Anton',sans-serif; font-size: 22px; }
  .scoreboard .score { font-family: 'JetBrains Mono', monospace; font-size: 26px; color: var(--or); }
  .scoreboard .meta { margin-left: auto; font-size: 13px; color: #B9C4B7; }
  .scoreboard a.btn-voir { background: var(--or); color: var(--pelouse-fonce); font-weight: 700; padding: 8px 16px; border-radius: 999px; font-size: 13px; }

  section { padding: 54px 0; }
  .section-head { display:flex; align-items:baseline; justify-content:space-between; margin-bottom: 26px; gap: 12px; flex-wrap: wrap; }
  .section-head h2 { font-size: 28px; }
  .tabs { display: flex; gap: 8px; }
  .tabs button { background: var(--sable-carte); border: 1px solid var(--ligne); padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: 13px; color: var(--encre-douce); }
  .tabs button.active { background: var(--pelouse-fonce); color: #fff; border-color: var(--pelouse-fonce); }

  .card { background: var(--sable-carte); border: 1px solid var(--ligne); border-radius: var(--radius); box-shadow: var(--shadow); }

  .phase-group { border-bottom: 1px solid var(--ligne); }
  .phase-group:last-child { border-bottom: none; }
  .phase-title { padding: 12px 18px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--pelouse); background: #F0EAD9; }

  .match-row { display: grid; grid-template-columns: 52px 1fr auto 18px; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--ligne); cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: rgba(0,0,0,0.05); }
  .match-row:last-child { border-bottom: none; }
  .match-row:hover { background: #FBF9F2; }
  .match-row .mr-time { text-align:center; }
  .match-row .mr-time .mr-hour { font-family:'JetBrains Mono',monospace; font-size: 12.5px; color: var(--encre); font-weight:700; }
  .match-row .mr-time .mr-status { font-size: 10px; font-weight:700; text-transform:uppercase; color: var(--encre-douce); margin-top:2px; }
  .match-row .mr-time .mr-status.en_cours { color: var(--brique); }
  .match-row .mr-time .mr-status.termine { color: var(--pelouse); }
  .match-row .mr-teams { min-width:0; display:flex; flex-direction:column; gap:7px; }
  .match-row .mr-team { display:flex; align-items:center; gap:9px; font-weight:700; font-size:13.5px; min-width:0; }
  .match-row .mr-team span.mr-team-name { overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
  .match-row .mr-team.mr-winner span.mr-team-name { color: var(--pelouse-fonce); }
  .match-row .mr-team.mr-loser span.mr-team-name { color: var(--encre-douce); font-weight:600; }
  .match-row .logo { width: 24px; height: 24px; border-radius: 50%; background: var(--pelouse); flex-shrink:0; display:flex;align-items:center;justify-content:center;color:#fff;font-size:9px;font-family:'Anton',sans-serif; overflow:hidden; }
  .match-row .mr-scores { display:flex; flex-direction:column; gap:7px; align-items:flex-end; }
  .match-row .mr-score { font-family:'JetBrains Mono',monospace; font-weight:700; font-size:15px; min-width:16px; text-align:right; color: var(--encre-douce); }
  .match-row .mr-score.mr-winner-score { color: var(--pelouse-fonce); }
  .match-row .mr-chevron { color: var(--ligne); font-size:18px; text-align:center; }
  .match-row .mr-vote-pill { grid-column: 1 / -1; margin-top: 2px; display:flex; justify-content:flex-end; }

  .badge { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing:.05em; padding: 4px 10px; border-radius: 999px; }
  .badge.programme { background:#EAF2EC; color: var(--pelouse); }
  .badge.en_cours { background:#FDEBE7; color: var(--brique); }
  .badge.termine { background:#F0EAD9; color: var(--encre-douce); }

  .teams-list { background: var(--sable-carte); border: 1px solid var(--ligne); border-radius: var(--radius); box-shadow: var(--shadow); overflow:hidden; }
  .team-row { display:flex; align-items:center; gap:12px; padding:13px 16px; border-bottom:1px solid var(--ligne); cursor:pointer; touch-action: manipulation; -webkit-tap-highlight-color: rgba(0,0,0,0.05); }
  .team-row:last-child { border-bottom:none; }
  .team-row:hover { background:#FBF9F2; }
  .team-row .logo { width: 38px; height: 38px; border-radius: 50%; flex-shrink:0; background: var(--pelouse); display:flex;align-items:center;justify-content:center;color:#fff;font-family:'Anton',sans-serif; font-size:13px; overflow:hidden; }
  .team-row .team-row-info { flex:1; min-width:0; }
  .team-row .team-row-name { font-weight:700; font-size:14.5px; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
  .team-row .team-row-meta { font-size:11.5px; color:var(--encre-douce); margin-top:2px; }
  .team-row .mr-chevron { color: var(--ligne); font-size:19px; flex-shrink:0; }

  .team-info-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-bottom:18px; }
  .team-info-item { background:#FAF8F1; border-radius:10px; padding:12px 14px; }
  .team-info-item .tii-label { font-size:10.5px; text-transform:uppercase; letter-spacing:.05em; color:var(--encre-douce); }
  .team-info-item .tii-value { font-size:15px; font-weight:700; margin-top:3px; }
  #tableClassementMini tr.te-highlight td { background: #FDF6E9; font-weight:700; }

  table { width: 100%; border-collapse: collapse; }
  .table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  th, td { padding: 12px 14px; text-align: left; font-size: 14px; }
  th { background: var(--pelouse-fonce); color: #fff; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; }
  tr:nth-child(even) td { background: #FBF9F2; }
  td.num, th.num { text-align: center; }

  .awards-grid { display:grid; grid-template-columns: repeat(auto-fill,minmax(230px,1fr)); gap:16px; }
  .award-card { padding: 22px; text-align: center; }
  .award-photo { width: 100%; height: 140px; object-fit: cover; border-radius: 8px; margin-bottom: 12px; cursor: zoom-in; }
  .award-card:not(:has(.award-photo))::before { content:"🏆"; font-size: 28px; display:block; margin-bottom:10px; }
  .award-card .type { font-size: 11px; text-transform: uppercase; letter-spacing:.08em; color: var(--or); font-weight: 700; }
  .award-card h3 { margin-top: 6px; font-size: 17px; }

  /* ---------- GALERIE / MOMENTS FORTS ---------- */
  .gallery-grid { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 130px; gap: 10px; }
  .gallery-grid a { display:block; border-radius: 10px; overflow: hidden; position: relative; box-shadow: var(--shadow); }
  .gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
  .gallery-grid a:hover img { transform: scale(1.06); }
  .gallery-grid a.big { grid-column: span 3; grid-row: span 2; }
  .gallery-grid a.tall { grid-row: span 2; }
  @media (max-width: 820px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
    .gallery-grid a.big { grid-column: span 2; grid-row: span 1; }
    .gallery-grid a.tall { grid-row: span 1; }
  }

  /* ---------- SECTIONS THÉMATIQUES SOMBRES (façon BeSoccer) ---------- */
  .dark-section {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }
  .dark-section .section-head h2,
  .dark-section h2 { color: #fff; }
  .dark-section .section-head { border-color: rgba(255,255,255,0.12); }
  .dark-section .empty-state { color: #AEB8AC; }
  .dark-section .tabs button { background: rgba(255,255,255,0.92); }
  .dark-section .poule-tag,
  .dark-section .team-card .poule-tag { color: var(--encre-douce); }

  #live { background-image: linear-gradient(180deg, rgba(9,20,14,0.92), rgba(9,20,14,0.95)), url('./assets/bg-live.jpg'); }
  #matchs { background-image: linear-gradient(180deg, rgba(9,20,14,0.93), rgba(9,20,14,0.96)), url('./assets/bg-matchs.jpg'); }
  #equipes { background-image: linear-gradient(180deg, rgba(9,20,14,0.90), rgba(9,20,14,0.95)), url('./assets/bg-equipes.jpg'); }
  #classements { background-image: linear-gradient(180deg, rgba(9,20,14,0.93), rgba(9,20,14,0.96)), url('./assets/bg-classements.jpg'); }
  #recompenses { background-image: linear-gradient(180deg, rgba(9,20,14,0.90), rgba(9,20,14,0.95)), url('./assets/bg-recompenses.jpg'); }
  #actus { background-image: linear-gradient(180deg, rgba(9,20,14,0.93), rgba(9,20,14,0.96)), url('./assets/bg-actus.jpg'); }

  footer {
    position: relative;
    color: #C9D3C9; padding: 44px 0 30px; margin-top: 30px; font-size: 13px;
    background:
      linear-gradient(180deg, rgba(14,46,31,0.92), rgba(10,24,16,0.96)),
      url('./assets/footer-bg.jpg') center 35% / cover no-repeat;
  }
  footer .footer-inner { display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; }
  footer .footer-brand { display:flex; align-items:center; gap:12px; }
  footer .footer-brand img { width:46px; height:46px; border-radius:50%; box-shadow: 0 0 0 2px rgba(232,163,61,0.35); }
  footer .footer-brand .fb-name { font-family:'Anton',sans-serif; color:#fff; font-size:16px; letter-spacing:.02em; }
  footer .footer-brand .fb-sub { font-size:11.5px; color: var(--or); text-transform:uppercase; letter-spacing:.06em; margin-top:2px; }
  footer p.credit { margin-top: 22px; padding-top:18px; border-top:1px solid rgba(255,255,255,0.1); }
  footer a { color: var(--or); }

  .overlay { position: fixed; inset:0; background: rgba(10,20,14,0.6); display:none; align-items:flex-start; justify-content:center; padding: 26px 16px; z-index: 100; overflow-y:auto; }
  .overlay.open { display: flex; }
  .modal { background: var(--sable); border-radius: 14px; max-width: 780px; width: 100%; max-height: 92vh; display: flex; flex-direction: column; overflow: hidden; }
  .modal-head { background: linear-gradient(135deg, var(--pelouse-fonce), #123324); color:#fff; padding: 22px; position: relative; flex-shrink: 0; }
  .modal-close { position:absolute; top:14px; right:16px; background:rgba(255,255,255,0.12); width:32px; height:32px; border-radius:50%; color:#fff; font-size:18px; opacity:.9; display:flex; align-items:center; justify-content:center; }
  .modal-score { display:flex; align-items:center; justify-content:center; gap: 26px; margin-top: 10px; }
  .modal-score .equipe { text-align:center; width: 150px; }
  .modal-score .equipe .logo { width:56px;height:56px;border-radius:50%;background:rgba(255,255,255,0.12); border: 2px solid rgba(232,163,61,0.4); margin:0 auto 8px; display:flex;align-items:center;justify-content:center; font-family:'Anton',sans-serif; overflow:hidden;}
  .modal-score .chiffres { font-family:'JetBrains Mono',monospace; font-size: 42px; font-weight: 700; color: var(--or); }
  .modal-body { padding: 22px; overflow-y: auto; }
  .modal-section { margin-bottom: 22px; }
  .modal-section h4 { font-size: 12px; text-transform:uppercase; letter-spacing:.08em; color: var(--encre-douce); margin-bottom: 10px; }

  /* ---------- SOUS-ONGLETS FICHE MATCH (façon SofaScore) ---------- */
  .match-subtabs { display:flex; background: #0E2E1F; border-top:1px solid rgba(255,255,255,0.08); }
  .mst-btn { flex:1; padding:12px 6px; font-size:12.5px; font-weight:700; color:#9FB0A4; background:none; text-align:center; border-bottom:2px solid transparent; }
  .mst-btn.active { color:#fff; border-color: var(--or); }
  .mst-panel { display:none; }
  .mst-panel.active { display:block; }

  /* ---------- COMPOSITIONS — TERRAIN FAÇON SOFASCORE ---------- */
  .pitch-wrap { margin: -4px -4px 18px; }
  .pitch-team-label { display:flex; align-items:center; gap:8px; font-weight:700; font-size:13px; padding: 6px 4px; }
  .pitch-team-label img { width:20px; height:20px; border-radius:50%; object-fit:cover; }
  .pitch { position:relative; background: linear-gradient(180deg,#2E7D4F,#25693F 50%,#2E7D4F); border-radius:12px; padding: 10px 4px; overflow:hidden; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.15); }
  .pitch::before { content:""; position:absolute; left:6%; right:6%; top:50%; height:1px; background:rgba(255,255,255,0.35); }
  .pitch::after { content:""; position:absolute; left:50%; top:50%; width:70px; height:70px; margin:-35px 0 0 -35px; border:1px solid rgba(255,255,255,0.35); border-radius:50%; }
  .pitch-half { display:flex; flex-direction:column; justify-content:space-evenly; min-height:150px; position:relative; z-index:1; }
  .pitch-row { display:flex; justify-content:space-evenly; align-items:flex-start; padding:4px 2px; }
  .pitch-player { display:flex; flex-direction:column; align-items:center; gap:2px; width:52px; text-align:center; cursor:pointer; }
  .pitch-player .pp-avatar-wrap { position:relative; }
  .pitch-player .avatar { width:30px; height:30px; border-radius:50%; object-fit:cover; border:2px solid #fff; background: var(--pelouse-fonce); color:#fff; display:flex; align-items:center; justify-content:center; font-family:'Anton',sans-serif; font-size:10px; }
  .pitch-player .pp-num { position:absolute; bottom:-3px; right:-3px; background: var(--or); color: var(--pelouse-fonce); font-size:8px; font-weight:800; width:14px; height:14px; border-radius:50%; display:flex; align-items:center; justify-content:center; box-shadow:0 0 0 1.5px #fff; }
  .pitch-player .pp-name { font-size:9px; font-weight:700; color:#fff; text-shadow: 0 1px 3px rgba(0,0,0,0.7); line-height:1.15; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:52px; }
  .pitch-empty-msg { text-align:center; padding:40px 16px; color:#fff; font-size:13px; opacity:.85; }

  .bench-list { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-top:6px; }
  .bench-col h5 { font-size:11px; text-transform:uppercase; letter-spacing:.05em; color:var(--encre-douce); margin-bottom:8px; display:flex; align-items:center; gap:6px; }
  .bench-col h5 img { width:16px; height:16px; border-radius:50%; object-fit:cover; }
  @media (max-width:560px) { .bench-list { grid-template-columns:1fr; } }

  /* ---------- STATISTIQUES ---------- */
  .stat-compare-row { margin-bottom:16px; }
  .stat-compare-labels { display:flex; justify-content:space-between; font-size:12.5px; font-weight:700; margin-bottom:6px; }
  .stat-compare-bar { display:flex; height:8px; border-radius:999px; overflow:hidden; background:var(--ligne); }
  .stat-compare-bar .sc-home { background: var(--pelouse-fonce); }
  .stat-compare-bar .sc-away { background: var(--or); }
  .stat-compare-name { text-align:center; font-size:10.5px; color:var(--encre-douce); text-transform:uppercase; letter-spacing:.05em; margin-top:6px; }
  .event-line { display:flex; align-items:center; gap:10px; font-size: 14px; padding: 6px 0; }
  .event-line .min { font-family:'JetBrains Mono',monospace; color: var(--encre-douce); width: 36px; }

  .vote-box { background: #FFF7E9; border: 1px solid #F0D9A6; border-radius: var(--radius); padding: 18px; text-align:center; }

  /* ---------- LIVE ---------- */
  .live-empty { color:#C9D3C9; font-size:14px; padding:20px 0; text-align:center; }
  .live-featured-wrap { margin-bottom: 22px; }
  .live-featured-badge { display:inline-flex; align-items:center; gap:6px; background:var(--brique); color:#fff; font-size:11.5px; font-weight:700; text-transform:uppercase; letter-spacing:.05em; padding:5px 12px; border-radius:999px; margin-bottom:10px; }
  .live-featured-dot { width:7px; height:7px; border-radius:50%; background:#fff; animation:dashPulseLive 1.4s infinite; }
  @keyframes dashPulseLive { 0%{opacity:1;} 50%{opacity:.35;} 100%{opacity:1;} }
  .live-featured-title { color:#fff; font-weight:700; margin-bottom:10px; }
  .live-embed { position:relative; width:100%; padding-top:56.25%; border-radius:var(--radius); overflow:hidden; background:#000; }
  .live-embed iframe { position:absolute; inset:0; width:100%; height:100%; border:none; }
  .live-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); gap:16px; }
  .live-card { background:#fff; border-radius:var(--radius); overflow:hidden; }
  .live-card .live-embed { border-radius:0; }
  .live-card .live-card-title { padding:12px 14px; font-weight:700; font-size:14px; color:var(--encre); }

  /* ---------- ESPACE RESPONSABLE ---------- */
  .resp-field { margin-bottom: 14px; text-align:left; }
  .resp-field label { display:block; font-size:11px; text-transform:uppercase; letter-spacing:.06em; color: var(--encre-douce); margin-bottom: 5px; }
  .resp-field input { width:100%; padding:10px 12px; border:1px solid var(--ligne); border-radius:8px; font-family:inherit; font-size:14px; background:#fff; color:var(--encre); }
  .resp-btn { background: var(--or); color: var(--pelouse-fonce); font-weight:700; padding:11px 20px; border-radius:999px; font-size:14px; width:100%; }
  .resp-btn:disabled { opacity:.6; }
  .resp-btn-secondary { background:none; border:1px solid var(--ligne); color:var(--encre); padding:8px 16px; border-radius:999px; font-size:13px; }
  .resp-erreur { color: var(--brique); font-size:12.5px; margin-top:8px; min-height:16px; }
  .resp-stats-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:10px; margin:16px 0 22px; }
  .resp-stat { background:#fff; border:1px solid var(--ligne); border-radius:12px; padding:14px 10px; text-align:center; box-shadow: var(--shadow); }
  .resp-stat .n { font-family:'JetBrains Mono',monospace; font-weight:700; font-size:24px; color:var(--pelouse-fonce); }
  .resp-stat .l { font-size:10px; text-transform:uppercase; letter-spacing:.05em; color:var(--encre-douce); margin-top:2px; }
  .resp-section-title { font-size:13px; text-transform:uppercase; letter-spacing:.06em; color:var(--encre-douce); font-weight:700; margin:22px 0 12px; padding-bottom:8px; border-bottom:2px solid var(--ligne); display:flex; align-items:center; gap:8px; }
  .resp-player-row { display:flex; align-items:center; gap:12px; padding:10px 6px; border-bottom:1px solid var(--ligne); font-size:14.5px; border-radius:8px; transition:background .15s; }
  .resp-player-row:hover { background:#FBF9F2; }
  .resp-player-row img, .resp-player-row .av { width:42px; height:42px; border-radius:50%; object-fit:cover; flex-shrink:0; background: var(--pelouse-fonce); color:var(--or); display:flex; align-items:center; justify-content:center; font-family:'Anton',sans-serif; font-size:14px; }
  .resp-match-card { border:1px solid var(--ligne); border-left: 4px solid var(--or); border-radius:10px; padding:16px; margin-bottom:14px; background:#fff; box-shadow: var(--shadow); }
  .resp-match-card .titre { font-weight:700; margin-bottom:4px; font-size:15.5px; }
  .resp-match-card .meta { font-size:12px; color:var(--encre-douce); margin-bottom:10px; }
  .resp-feuille-etat { font-size:12px; font-weight:700; padding:4px 10px; border-radius:999px; display:inline-block; }
  .resp-feuille-etat.ok { background:#EAF2EC; color:var(--pelouse); }
  .resp-feuille-etat.attente { background:#FFF7E9; color:#B8860B; }
  .resp-feuille-etat.fermee { background:#F0EDE2; color:var(--encre-douce); }
  .resp-checklist { max-height:220px; overflow-y:auto; border:1px solid var(--ligne); border-radius:8px; padding:8px 12px; margin:10px 0; }
  .resp-checklist label { display:flex; align-items:center; gap:8px; padding:5px 0; font-size:13.5px; }
  .compo-select-row { display:flex; align-items:center; gap:8px; padding:6px 0; border-bottom:1px solid var(--ligne); flex-wrap: wrap; }
  .compo-select-row:last-child { border-bottom:none; }
  .compo-select-row .poste-select { width:auto; padding:5px 8px; font-size:12px; border:1px solid var(--ligne); border-radius:6px; background:#fff; }
  .compo-select-row .dossard-input { width:52px; padding:5px 6px; font-size:12.5px; font-family:'JetBrains Mono',monospace; font-weight:700; text-align:center; border:1px solid var(--ligne); border-radius:6px; background:#fff; color:var(--pelouse-fonce); }
  .compo-select-row .dossard-input::placeholder { font-family:'Work Sans',sans-serif; font-weight:400; color:var(--encre-douce); }
  .compo-select-row .dossard-input.manquant { border-color: var(--brique); background:#FDEBE7; }

  /* ---------- FEUILLE DE MATCH (public) ---------- */
  .compo-teams { display:grid; grid-template-columns:1fr 1fr; gap:20px; }
  .compo-col { background:#fff; border:1px solid var(--ligne); border-radius:12px; padding:16px; }
  .compo-col h5 { font-size:13px; text-transform:uppercase; letter-spacing:.05em; color:var(--pelouse-fonce); font-weight:700; margin-bottom:10px; padding-bottom:8px; border-bottom:2px solid var(--sable); }
  .compo-player { display:flex; align-items:center; gap:10px; padding:8px 0; font-size:14.5px; font-weight:600; border-bottom:1px solid var(--ligne); }
  .compo-player:last-child { border-bottom:none; }
  .compo-player .avatar { width:34px; height:34px; border-radius:50%; object-fit:cover; flex-shrink:0; background:var(--pelouse); color:var(--or); display:flex; align-items:center; justify-content:center; font-family:'Anton',sans-serif; font-size:12px; }
  .compo-player .num { font-family:'JetBrains Mono',monospace; font-weight:700; color:var(--pelouse-fonce); width:24px; flex-shrink:0; }
  .compo-player .poste { margin-left:auto; font-size:11px; color:var(--encre-douce); text-transform:uppercase; background:var(--sable); padding:3px 8px; border-radius:999px; }
  @media (max-width:560px) { .compo-teams { grid-template-columns:1fr; } }
  .vote-box.closed { background: #F0EAD9; border-color: var(--ligne); }
  .vote-box.open { background: linear-gradient(135deg,#FFF7E9,#FFEFCB); border: 2px solid var(--or); box-shadow: 0 0 0 5px rgba(232,163,61,0.12); animation: voteGlow 2s ease-in-out infinite; }
  @keyframes voteGlow { 0%,100%{ box-shadow: 0 0 0 5px rgba(232,163,61,0.12); } 50%{ box-shadow: 0 0 0 9px rgba(232,163,61,0.05); } }
  .vote-box .vote-title-open { font-family:'Anton',sans-serif; font-size: 20px; color: var(--brique); letter-spacing:.02em; display:flex; align-items:center; justify-content:center; gap:8px; }
  .vote-box .vote-title-open .dot-live { width:10px; height:10px; border-radius:50%; background:var(--brique); animation: pulse 1.2s infinite; }
  .vote-box .countdown { font-family:'JetBrains Mono',monospace; font-size: 24px; font-weight:700; color: var(--brique); margin: 8px 0 14px; }
  .vote-teams { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-top:12px; text-align:left; }
  .vote-team-col { background:#fff; border:1px solid var(--ligne); border-radius:12px; overflow:hidden; }
  .vote-team-head { display:flex; align-items:center; gap:8px; padding:10px 12px; background:var(--pelouse-fonce); color:#fff; font-weight:700; font-size:12.5px; }
  .vote-team-head img { width:22px; height:22px; border-radius:50%; object-fit:cover; flex-shrink:0; }
  .vote-team-list { max-height:250px; overflow-y:auto; -webkit-overflow-scrolling:touch; }
  .vote-player-row { display:flex; align-items:stretch; width:100%; border-bottom:1px solid var(--ligne); }
  .vote-player-row:last-child { border-bottom:none; }
  .vp-select { flex:1; display:flex; align-items:center; gap:9px; background:#fff; border:none; padding:9px 6px 9px 12px; font-size:12.5px; font-weight:600; text-align:left; color: var(--encre); transition: background .12s; min-width:0; }
  .vp-select span:last-child { overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
  .vote-player-row .avatar { width:30px; height:30px; border-radius:50%; object-fit:cover; flex-shrink:0; background:var(--pelouse); color:var(--or); display:flex; align-items:center; justify-content:center; font-family:'Anton',sans-serif; font-size:11px; }
  .vote-player-row .num { font-family:'JetBrains Mono',monospace; color:var(--pelouse-fonce); font-weight:700; width:24px; flex-shrink:0; }
  .vp-select:hover:not(:disabled) { background:#FFFBF2; }
  .vp-select:active:not(:disabled) { background:#FFF3D9; }
  .vp-select.voted { background: var(--vert-vif); color:#fff; }
  .vp-select.voted .num { color:#fff; }
  .vp-select:disabled:not(.voted) { opacity:.45; }
  .vp-voir { flex-shrink:0; width:38px; background:#fff; border:none; border-left:1px solid var(--ligne); color:var(--encre-douce); font-size:15px; }
  .vp-voir:hover { background:#FFFBF2; color:var(--pelouse-fonce); }
  @media (max-width:640px) { .vote-teams { grid-template-columns:1fr; } .vote-team-list { max-height:200px; } }
  .vote-msg { margin-top: 10px; font-size: 13px; color: var(--encre-douce); }
  .vote-live-block { margin-top: 16px; text-align: left; }
  .vote-live-meta { font-size: 11px; color: var(--encre-douce); margin-bottom: 8px; text-align: center; }
  .vote-leaderboard { display: flex; flex-direction: column; gap: 8px; }
  .vote-lb-row { display: grid; grid-template-columns: 90px 1fr 42px; align-items: center; gap: 8px; font-size: 12px; }
  .vote-lb-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

  /* ---------- APERÇU JOUEUR AVANT VOTE ---------- */
  .player-preview-box { text-align:center; padding:32px 22px 26px; position:relative; }
  .player-preview-box .modal-close { position:absolute; top:12px; right:14px; background:rgba(0,0,0,0.08); color:var(--encre); }
  .player-preview-photo, .player-preview-avatar { width:110px; height:110px; border-radius:50%; margin:0 auto 14px; border:4px solid var(--or); box-shadow:0 8px 24px rgba(0,0,0,.15); }
  .player-preview-photo { object-fit:cover; }
  .player-preview-avatar { background:var(--pelouse-fonce); color:var(--or); display:flex; align-items:center; justify-content:center; font-family:'Anton',sans-serif; font-size:34px; }
  .player-preview-num { font-family:'JetBrains Mono',monospace; color:var(--or); font-weight:700; font-size:13px; }
  .player-preview-name { font-family:'Anton',sans-serif; font-size:21px; color:var(--pelouse-fonce); text-transform:uppercase; letter-spacing:.01em; margin-top:4px; }
  .player-preview-meta { font-size:12.5px; color:var(--encre-douce); margin-top:5px; text-transform:uppercase; letter-spacing:.03em; }
  .player-preview-vote-btn { margin-top:22px; width:100%; background:var(--vert-vif); color:#fff; padding:14px; border-radius:10px; font-weight:700; font-size:14.5px; }
  .player-preview-vote-btn:disabled { opacity:.5; }
  .player-preview-vote-btn.voted { background:var(--pelouse-fonce); }

  /* ---------- HOMME DU MATCH — carte mise en avant ---------- */
  .hdm-card { display:flex; align-items:center; gap:14px; background:linear-gradient(135deg,#FFF8E8,#FBEBC4); border:1px solid var(--or); border-radius:14px; padding:14px 16px; margin-bottom:20px; cursor:pointer; box-shadow:0 3px 10px rgba(201,138,44,0.15); }
  .hdm-card:hover { box-shadow:0 5px 16px rgba(201,138,44,0.25); }
  .hdm-card .hdm-avatar-wrap { position:relative; flex-shrink:0; }
  .hdm-card .hdm-avatar { width:58px; height:58px; border-radius:50%; object-fit:cover; border:3px solid var(--or); box-shadow:0 4px 10px rgba(0,0,0,.15); display:block; background:var(--pelouse-fonce); color:#fff; }
  .hdm-card .hdm-avatar.hdm-initials { display:flex; align-items:center; justify-content:center; font-family:'Anton',sans-serif; font-size:18px; }
  .hdm-card .hdm-star { position:absolute; bottom:-2px; right:-2px; background:var(--or); color:#fff; width:20px; height:20px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:11px; box-shadow:0 0 0 2px #fff; }
  .hdm-card .hdm-badge { font-size:10.5px; font-weight:800; text-transform:uppercase; letter-spacing:.06em; color:#B8860B; display:flex; align-items:center; gap:5px; }
  .hdm-card .hdm-name { font-family:'Anton',sans-serif; font-size:18px; color:var(--pelouse-fonce); margin-top:2px; }
  .hdm-card .hdm-meta { font-size:12px; color:var(--encre-douce); margin-top:2px; }
  .hdm-mini-pill { display:inline-flex; align-items:center; gap:5px; background:#FBEBC4; color:#8A6100; font-size:10.5px; font-weight:700; padding:4px 10px; border-radius:999px; }
  .player-preview-stats-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:8px; margin-top:16px; }
  .player-preview-stats-grid .pps-n { font-family:'Anton',sans-serif; font-size:18px; color:var(--pelouse-fonce); }
  .player-preview-stats-grid .pps-l { font-size:9.5px; color:var(--encre-douce); text-transform:uppercase; letter-spacing:.03em; margin-top:2px; }
  .vote-lb-bar-track { background: #EFE6CE; border-radius: 999px; height: 10px; overflow: hidden; }
  .vote-lb-bar { background: var(--vert-vif); height: 100%; border-radius: 999px; transition: width .3s; }
  .vote-lb-score { text-align: right; font-family: 'JetBrains Mono', monospace; color: var(--pelouse-fonce); font-weight: 700; }

  /* Bandeau public "vote ouvert" — bien visible en haut de page */
  .vote-banner { margin-top: 16px; background: linear-gradient(120deg, var(--brique), #D9622F); border-radius: var(--radius); padding: 16px 20px; display:flex; align-items:center; gap:16px; flex-wrap:wrap; box-shadow: 0 8px 22px rgba(193,68,46,0.35); animation: voteBannerPulse 1.8s ease-in-out infinite; }
  @keyframes voteBannerPulse { 0%,100%{ box-shadow: 0 8px 22px rgba(193,68,46,0.35);} 50%{ box-shadow: 0 8px 30px rgba(193,68,46,0.6);} }
  .vote-banner .vb-icon { font-size: 26px; }
  .vote-banner .vb-text { color:#fff; }
  .vote-banner .vb-text b { font-family:'Anton',sans-serif; letter-spacing:.03em; font-size:16px; display:block; }
  .vote-banner .vb-text span { font-size: 12.5px; opacity:.9; }
  .vote-banner .vb-btn { margin-left:auto; background:#fff; color: var(--brique); font-weight:800; padding: 11px 22px; border-radius: 999px; font-size: 14px; letter-spacing:.02em; }
  .vote-banner .vb-btn:hover { background: var(--sable); }
  .match-row { position: relative; }
  .vote-pill { display:inline-flex; align-items:center; gap:5px; background: var(--brique); color:#fff; font-size: 10px; font-weight:800; text-transform:uppercase; letter-spacing:.05em; padding: 5px 10px; border-radius: 999px; animation: pulse 1.4s infinite; justify-self:end; }
  .vote-pill .dot-live { width:6px; height:6px; border-radius:50%; background:#fff; }

  .empty-state { text-align:center; padding: 40px 20px; color: var(--encre-douce); }
  .roster-grid { display:grid; grid-template-columns: repeat(auto-fill,minmax(110px,1fr)); gap:14px; }
  .roster-card { text-align:center; cursor:pointer; }
  .roster-card img, .roster-card .ph { width:76px; height:76px; border-radius:50%; object-fit:cover; margin:0 auto 6px; cursor:zoom-in; background:var(--pelouse); color:#fff; display:flex;align-items:center;justify-content:center; font-family:'Anton',sans-serif; }
  .roster-card .nom { font-size:12px; font-weight:700; }
  .roster-card .poste { font-size:10px; color:var(--encre-douce); text-transform:uppercase; }
  .team-card { cursor: pointer; }
  .bracket-scroll { display:flex; gap:20px; overflow-x:auto; padding: 18px; }
  .bracket-col { min-width:190px; display:flex; flex-direction:column; justify-content:space-around; gap:16px; }
  .bracket-col-title { font-size:11px; text-transform:uppercase; letter-spacing:.06em; color: var(--encre-douce); font-weight:700; text-align:center; margin-bottom:4px; }
  .bracket-match { background:#FBF9F2; border:1px solid var(--ligne); border-radius:8px; overflow:hidden; cursor:pointer; touch-action: manipulation; -webkit-tap-highlight-color: rgba(0,0,0,0.05); }
  .bracket-match:hover { border-color: var(--or); }
  .bracket-match .bracket-datetime { display:flex; align-items:center; justify-content:center; gap:5px; background: var(--pelouse-fonce); color: var(--or); font-family:'JetBrains Mono',monospace; font-size:11.5px; font-weight:700; padding:6px 8px; letter-spacing:.02em; }
  .bracket-match .bracket-datetime.a-definir { background:#EFEAD9; color: var(--encre-douce); }
  .bracket-team { padding:8px 10px; font-size:12px; font-weight:600; display:flex; justify-content:space-between; gap:6px; border-bottom:1px solid var(--ligne); }
  .bracket-team:last-child { border-bottom:none; }
  .bracket-team.vainqueur { background:#EAF2EC; color: var(--pelouse-fonce); }
  .toast { position:fixed; bottom:20px; right:20px; background: var(--pelouse-fonce); color:#fff; padding:12px 18px; border-radius:8px; font-size:13px; opacity:0; transform:translateY(10px); transition:.25s; z-index:200; }
  .toast.show { opacity:1; transform:translateY(0); }
  .toast.error { background: var(--brique); }

  /* ==================================================================
     RESPONSIVE MOBILE
     ================================================================== */
  @media (max-width: 700px) {
    .container { padding: 0 14px; }
    section { padding: 36px 0; }
    .section-head { margin-bottom: 18px; }
    .section-head h2 { font-size: 21px; }
    .tabs { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 2px; }
    .tabs button { white-space: nowrap; padding: 7px 13px; font-size: 12px; min-height: 34px; }
    .resp-btn, .resp-btn-secondary, .btn-voir, .vb-btn { min-height: 44px; display:inline-flex; align-items:center; justify-content:center; }
    .vp-select, .vp-voir { min-height: 44px; }
    .match-row { min-height: 56px; }
    .team-card, .award-card { cursor: pointer; }

    .header-inner { padding: 12px 14px; }
    .brand .mark { width: 36px; height: 36px; font-size: 15px; }
    .brand .name { font-size: 15.5px; }
    .brand .name small { font-size: 10px; }

    .hero { padding: 30px 0 24px; }
    .hero h1 { font-size: 28px; }
    .hero p.lead { font-size: 14.5px; }

    .scoreboard { padding: 14px 16px; gap: 10px; }
    .scoreboard .teams { font-size: 16px; gap: 8px; }
    .scoreboard .score { font-size: 19px; }
    .scoreboard .meta { order: 5; margin-left: 0; width: 100%; }
    .scoreboard a.btn-voir { width: 100%; text-align: center; }

    .vote-banner { flex-direction: column; align-items: flex-start; padding: 14px 16px; }
    .vote-banner .vb-btn { margin-left: 0; width: 100%; text-align: center; }

    /* Calendrier des matchs : lignes compactes façon app de scores en direct */
    .match-row { grid-template-columns: 42px 1fr auto 14px; gap: 8px; padding: 11px 12px; }
    .match-row .mr-hour { font-size: 11px; }
    .match-row .mr-status { font-size: 9px; }
    .match-row .mr-team { font-size: 12.5px; gap: 7px; }
    .match-row .logo { width: 20px; height: 20px; font-size: 8px; }
    .match-row .mr-score { font-size: 13.5px; }
    .badge { font-size: 8.5px; padding: 3px 6px; }
    .vote-pill { font-size: 8.5px; padding: 4px 7px; }
    .vote-pill span:not(.dot-live) { display: none; }

    .teams-grid, .roster-grid, .awards-grid, .live-grid { grid-template-columns: repeat(auto-fill, minmax(130px,1fr)); gap: 12px; }

    table { font-size: 12px; }
    th, td { padding: 8px 8px; }

    /* Fiches / modales quasi plein écran sur mobile */
    .overlay { padding: 0; align-items: stretch; }
    .modal { max-width: 100%; width: 100%; height: 100%; max-height: 100%; border-radius: 0; }
    .modal-head { padding: 18px 16px; }
    .modal-score { gap: 10px; }
    .modal-score .equipe { width: 96px; }
    .modal-score .equipe .logo { width: 42px; height: 42px; }
    .modal-score .chiffres { font-size: 30px; }
    .modal-body { padding: 16px; }

    .compo-teams { grid-template-columns: 1fr; gap: 14px; }
    .compo-col { padding: 12px; }
    .compo-player { font-size: 13.5px; }

    .vote-team-list { max-height: 180px; }

    /* Espace responsable : vrai dashboard mobile */
    .resp-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .resp-stat { padding: 12px 8px; }
    .resp-stat .n { font-size: 20px; }
    .resp-player-row { font-size: 13.5px; gap: 10px; }
    .resp-player-row img, .resp-player-row .av { width: 36px; height: 36px; }
    .resp-match-card { padding: 13px; }

    .toast { left: 14px; right: 14px; bottom: calc(70px + env(safe-area-inset-bottom)); text-align: center; }
  }

  @media (max-width: 380px) {
    .match-row { grid-template-columns: 36px 1fr auto 12px; gap:7px; padding: 10px 10px; }
    .hero h1 { font-size: 24px; }
  }
