  :root {
    --bleu: #1a3a6b;
    --or: #e8a020;
    --or-light: #FAEEDA;
    --or-dark: #412402;
    --bg: #f5f3ef;
    --card: #ffffff;
    --border: #e8e6e0;
    --text: #2C2C2A;
    --muted: #6c6b65;
    --subtle: #5F5E5A;
    --green: #27500A;
    --green-light: #EAF3DE;
    --green-border: #97C459;
    --red: #791F1F;
    --red-light: #FCEBEB;
    --red-border: #F09595;
    --blue-light: #E6F1FB;
    --blue-text: #0C447C;
    --violet-light: #F1E8F8;
    --violet-text: #6B2F8A;
    --montee: #639922;
    --descente: #E24B4A;
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  a, button, [role="button"], select, input, textarea {
    -webkit-tap-highlight-color: rgba(26,58,107,0.15);
    touch-action: manipulation;
  }
  a:focus-visible, button:focus-visible, [role="button"]:focus-visible,
  select:focus-visible, input:focus-visible, textarea:focus-visible,
  [tabindex]:focus-visible {
    outline: 2px solid var(--or);
    outline-offset: 2px;
  }
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
      scroll-behavior: auto !important;
    }
  }
  html, body { height: 100%; background: #000; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; }

  .app {
    max-width: 390px;
    margin: 0 auto;
    background: var(--bg);
    min-height: 100vh;
    min-height: 100dvh; /* suit la hauteur réellement visible (barre d'adresse mobile repliée ou non) */
    position: relative;
    overflow-x: clip;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 40px rgba(0,0,0,0.2);
  }

  .topbar {
    background: #000;
    padding: 0 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 52px;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 100;
  }
  .topbar-logo { display: flex; align-items: center; gap: 8px; color: white; font-size: 15px; font-weight: 600; }
  .topbar-logo .lbadge { background: var(--or); color: var(--or-dark); font-size: 10px; padding: 2px 6px; border-radius: 4px; font-weight: 600; }
  .topbar-logoimg { height: 34px; background: #fff; border-radius: 7px; padding: 3px 5px; display: block; }
  .topbar button { background: none; border: none; color: white; font-size: 20px; cursor: pointer; padding: 4px; }
  .topbar-nav { display: none; gap: 4px; align-items: center; }
  .topbar-nav a { padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 500; color: #c9c2b2; cursor: pointer; display: flex; align-items: center; gap: 7px; white-space: nowrap; }
  .topbar-nav a:hover { color: #fff; }
  .topbar-nav a.active { background: var(--or); color: var(--bleu); font-weight: 700; }

  .page { display: none; flex: 1; overflow-y: auto; padding-bottom: 72px; }
  .page.active { display: block; }

  .hero { background: var(--bleu); padding: 34px 20px 28px; color: white; }
  .hero-badge { display: inline-block; background: var(--or); color: var(--bleu); font-weight: 700; font-size: 12px; padding: 6px 13px; border-radius: 999px; }
  .hero-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 14px; }
  .hero h1 { font-size: 30px; font-weight: 800; margin: 16px 0 6px; line-height: 1.15; text-wrap: balance; }
  .hero p { color: #cfd9ec; font-size: 15px; margin: 0; max-width: 520px; }
  .journee-badge { background: rgba(255,255,255,0.12); border-radius: 8px; padding: 8px 12px; text-align: center; flex-shrink: 0; }
  .journee-badge .j { font-size: 20px; font-weight: 700; color: var(--or); }
  .journee-badge .l { font-size: 9px; color: rgba(255,255,255,0.55); margin-top: 1px; }
  .mot-card { background: rgba(255,255,255,0.1); border-radius: 10px; padding: 10px 12px; display: flex; gap: 8px; align-items: flex-start; }
  .mot-card i { font-size: 16px; color: var(--or); flex-shrink: 0; margin-top: 2px; }
  .mot-text { font-size: 12px; color: rgba(255,255,255,0.9); font-style: italic; line-height: 1.5; }
  .mot-from { font-size: 10px; color: rgba(255,255,255,0.5); margin-top: 3px; }
  .hero-stats { display: flex; gap: 32px; flex-wrap: wrap; margin-top: 24px; }
  .hero-stats .hs { text-align: left; }
  .hero-stats .hs-num { display: block; font-size: 30px; font-weight: 800; color: var(--or); line-height: 1.1; }
  .hero-stats .hs-lbl { font-size: 12px; color: #cfd9ec; text-transform: uppercase; letter-spacing: .4px; margin-top: 2px; }
  .hero-stats-grid { display: none; }

  .section { padding: 12px 14px; }
  .sec-title { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 8px; display: flex; justify-content: space-between; align-items: center; }
  .sec-title a { font-size: 11px; font-weight: 400; color: var(--bleu); cursor: pointer; text-decoration: none; }

  .score-strip { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .score-strip::-webkit-scrollbar { display: none; }
  .score-bubble { background: var(--card); border: 0.5px solid var(--border); border-radius: 10px; padding: 9px 11px; flex-shrink: 0; min-width: 162px; }
  .score-div { font-size: 9px; color: var(--muted); margin-bottom: 5px; display: flex; justify-content: space-between; align-items: center; }
  .score-row { display: flex; align-items: center; gap: 6px; }
  .score-team { font-size: 11px; font-weight: 600; color: var(--text); flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .score-team.r { text-align: right; }
  .score-box { background: var(--bleu); color: white; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 5px; white-space: nowrap; flex-shrink: 0; }
  .score-pending { background: var(--or-light); color: #854F0B; border: 0.5px solid #FAC775; font-size: 10px; padding: 3px 6px; border-radius: 5px; white-space: nowrap; flex-shrink: 0; display: flex; align-items: center; gap: 3px; }

  .pill { font-size: 9px; padding: 2px 6px; border-radius: 8px; font-weight: 500; }
  .pill-ok { background: var(--green-light); color: var(--green); }
  .pill-pending { background: var(--or-light); color: #633806; }
  .pill-reporte { background: #f0f0f0; color: var(--muted); }
  .pill-forfait { background: #fdeaea; color: #791F1F; }
  .pill-exempt { background: var(--or-light); color: #854F0B; }
  .journee-btn { font-size: 12.5px; font-weight: 700; padding: 8px 15px; border-radius: 20px; cursor: pointer; white-space: nowrap; border: 0.5px solid var(--border); background: var(--card); color: var(--muted); transition: background .12s, color .12s, border-color .12s; flex-shrink: 0; }
  .journee-btn.on { background: var(--bleu); color: white; border-color: var(--bleu); }
  .journee-btn:not(.on):hover { border-color: var(--bleu); color: var(--bleu); }
  .warn-box { background: var(--or-light); border: 0.5px solid #FAC775; border-radius: 8px; padding: 10px 12px; font-size: 12px; color: #633806; display: flex; gap: 8px; align-items: flex-start; margin-bottom: 12px; }
  .warn-box i { font-size: 15px; flex-shrink: 0; margin-top: 1px; }

  .cls-mini { background: var(--card); border: 0.5px solid var(--border); border-radius: 10px; overflow: hidden; }
  .cls-mini-tabs { display: flex; border-bottom: 0.5px solid var(--border); overflow-x: auto; scrollbar-width: none; }
  .cls-mini-tabs::-webkit-scrollbar { display: none; }
  .cls-mini-tab { padding: 8px 13px; font-size: 11px; color: var(--muted); cursor: pointer; white-space: nowrap; border-bottom: 2px solid transparent; flex-shrink: 0; transition: color .15s; }
  .cls-mini-tab.on { color: var(--bleu); border-bottom-color: var(--bleu); font-weight: 600; }
  .cls-table { width: 100%; border-collapse: collapse; font-size: 11px; table-layout: fixed; }
  .cls-table th { padding: 6px 8px; font-size: 9px; font-weight: 600; color: var(--muted); border-bottom: 0.5px solid #f5f3ef; text-align: left; }
  .cls-table th.r { text-align: right; }
  .cls-table td { padding: 7px 8px; border-bottom: 0.5px solid #f5f3ef; color: var(--text); }
  .cls-table td.r { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
  .cls-table tr:last-child td { border-bottom: none; }
  .zm td:first-child { border-left: 3px solid var(--montee); }
  .zd td:first-child { border-left: 3px solid var(--descente); }
  .pts { font-weight: 700; color: var(--bleu); }
  .legend { display: flex; gap: 14px; padding: 6px 8px; font-size: 9px; color: var(--muted); }
  .leg { display: flex; align-items: center; gap: 4px; }

  .actu-scroll { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .actu-scroll::-webkit-scrollbar { display: none; }
  .actu-bubble { background: var(--card); border: 0.5px solid var(--border); border-radius: 10px; overflow: hidden; flex-shrink: 0; width: 200px; cursor: pointer; }
  .actu-img { position: relative; height: 64px; overflow: hidden; background: repeating-linear-gradient(45deg, var(--bleu), var(--bleu) 8px, #234b86 8px, #234b86 16px); }
  .actu-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(26,58,107,0.85)); }
  .actu-img .actu-badge { position: absolute; z-index: 1; top: 6px; left: 6px; background: var(--or); color: var(--or-dark); font-size: 9px; font-weight: 700; padding: 3px 7px; border-radius: 4px; }
  .actu-body { padding: 8px 10px; }
  .badge { font-size: 9px; padding: 2px 5px; border-radius: 3px; display: inline-block; margin-bottom: 4px; font-weight: 600; }
  .badge-blue { background: var(--blue-light); color: var(--blue-text); }
  .badge-amber { background: var(--or-light); color: #633806; }
  .badge-green { background: var(--green-light); color: var(--green); }
  .actu-title { font-size: 12px; font-weight: 600; color: var(--text); line-height: 1.3; }
  .actu-date { font-size: 10px; color: var(--muted); margin-top: 3px; }

  .anim-card { background: var(--card); border: 0.5px solid var(--border); border-radius: 10px; padding: 12px 14px; margin-bottom: 8px; display: flex; gap: 10px; align-items: flex-start; }
  .anim-icon { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 15px; }
  .anim-icon.blue { background: var(--blue-light); color: var(--bleu); }
  .anim-icon.amber { background: var(--or-light); color: #854F0B; }
  .anim-icon.green { background: var(--green-light); color: var(--green); }
  .anim-title { font-size: 12px; font-weight: 600; color: var(--text); margin-bottom: 3px; }
  .anim-sub { font-size: 11px; color: var(--subtle); line-height: 1.5; }
  .anim-from { font-size: 10px; color: var(--muted); margin-top: 3px; }

  .anim-scroll { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .anim-scroll::-webkit-scrollbar { display: none; }
  .anim-bubble { background: var(--card); border: 0.5px solid var(--border); border-radius: 10px; padding: 12px; flex-shrink: 0; width: 210px; }
  .anim-bubble .anim-icon { margin-bottom: 8px; }

  .bnav { background: #000; border-top: 0.5px solid #222; display: flex; justify-content: space-around; padding: 8px 0 calc(6px + env(safe-area-inset-bottom)); position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 390px; z-index: 50; }
  .bn { display: flex; flex-direction: column; align-items: center; gap: 2px; cursor: pointer; padding: 4px 10px; border-radius: 999px; }
  .bn i { font-size: 19px; color: #c9c2b2; }
  .bn span { font-size: 9px; color: #c9c2b2; }
  .bn.on { background: var(--or); }
  .bn.on i, .bn.on span { color: var(--bleu); }

  .page-header { background: var(--bleu); padding: 14px; color: white; display: flex; align-items: center; gap: 10px; }
  .page-header h2 { font-size: 16px; font-weight: 600; text-wrap: balance; }
  .back-btn { background: none; border: none; color: white; font-size: 18px; cursor: pointer; padding: 0; }

  .div-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; padding: 12px 14px; }
  .div-card { background: var(--card); border: 0.5px solid var(--border); border-radius: 10px; padding: 12px; cursor: pointer; }
  .div-name { font-size: 13px; font-weight: 700; color: var(--bleu); }
  .div-nb { font-size: 11px; color: var(--muted); margin-top: 2px; }
  .div-leader { font-size: 11px; color: var(--text); margin-top: 5px; }
  .div-pts { font-size: 10px; color: var(--muted); }

  .sub-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
  .sub-tab { font-size: 13px; font-weight: 600; padding: 9px 18px; border-radius: 20px; cursor: pointer; background: var(--card); border: 1px solid var(--border); color: var(--muted); white-space: nowrap; transition: background .15s ease; }
  .sub-tab.on { background: var(--bleu); color: white; border-color: var(--bleu); }
  .sub-tab:not(.on):hover { border-color: var(--bleu); color: var(--bleu); }
  .cls-full { background: var(--card); border: 0.5px solid var(--border); border-radius: 10px; overflow: hidden; box-shadow: 0 1px 3px rgba(20,30,50,0.05); }
  .result-list { margin-top: 10px; }
  .res-div-group { margin-bottom: 22px; }
  .res-div-head { display: flex; align-items: center; gap: 14px; font-size: 15px; font-weight: 800; color: var(--text); margin: 0 0 12px; }
  .res-div-rule { flex: 1; height: 2px; background: var(--or); border-radius: 1px; }
  .palmares-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
  .palmares-card { position: relative; background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 22px 16px 16px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 7px; overflow: hidden; cursor: pointer; opacity: 0; transform: translateY(20px) scale(.97); transition: opacity 480ms ease, transform 480ms cubic-bezier(.16,.84,.44,1), box-shadow 200ms ease, border-color 200ms ease; }
  .palmares-card.is-visible { opacity: 1; transform: translateY(0) scale(1); }
  .palmares-card:hover { box-shadow: 0 16px 30px -14px rgba(26,58,107,.32); border-color: var(--or); transform: translateY(-4px); }
  .palmares-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--or); }
  .palmares-card .pc-badge { width: 46px; height: 46px; border-radius: 50%; background: var(--or-light); display: flex; align-items: center; justify-content: center; margin-top: 4px; color: var(--or); font-size: 19px; }
  .palmares-card .pc-div { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }
  .palmares-card .pc-champ { font-size: 15px; font-weight: 800; color: var(--bleu); line-height: 1.3; }
  .palmares-card .pc-pts { font-size: 12px; color: var(--subtle); }

  /* FAQ accordéon */
  .faq-item { background: var(--card); border: 0.5px solid var(--border); border-radius: 10px; margin-bottom: 6px; overflow: hidden; }
  .faq-question { padding: 12px 14px; font-size: 13px; font-weight: 600; color: var(--text); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
  .faq-question i { color: var(--bleu); flex-shrink: 0; transition: transform .2s; }
  .faq-item.open .faq-question i { transform: rotate(180deg); }
  .faq-reponse { display: none; padding: 0 14px 12px; font-size: 12px; color: var(--subtle); line-height: 1.6; border-top: 0.5px solid var(--border); padding-top: 10px; }
  .faq-item.open .faq-reponse { display: block; }

  /* Galerie photos + lightbox */
  .photo-thumb { aspect-ratio: 1; object-fit: cover; border-radius: 6px; width: 100%; cursor: pointer; transition: opacity .15s; }
  .photo-thumb:active { opacity: .7; }
  .lightbox { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.92); z-index: 300; flex-direction: column; align-items: center; justify-content: center; padding: 20px; overscroll-behavior: contain; }
  .lightbox.open { display: flex; }
  .lightbox img { max-width: 100%; max-height: 70vh; border-radius: 8px; object-fit: contain; }
  .lightbox-caption { color: rgba(255,255,255,0.75); font-size: 12px; margin-top: 10px; text-align: center; }
  .lightbox-close { position: absolute; top: 16px; right: 16px; background: none; border: none; color: white; font-size: 22px; cursor: pointer; }

  /* Détail d'une actualité (clic sur une actu, accueil ou page Actus) */
  .actu-modal { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(20,20,20,0.55); z-index: 300; align-items: flex-start; justify-content: center; padding: 40px 16px; overflow-y: auto; overscroll-behavior: contain; }
  .actu-modal.open { display: flex; }
  .actu-modal-card { background: var(--card); border-radius: 14px; padding: 24px 22px; max-width: 560px; width: 100%; position: relative; }
  .actu-modal-close { position: absolute; top: 14px; right: 14px; background: var(--bg); border: none; width: 30px; height: 30px; border-radius: 50%; color: var(--muted); font-size: 14px; cursor: pointer; }
  .actu-modal-badge { display: inline-block; background: var(--or); color: var(--or-dark); font-size: 10px; font-weight: 700; padding: 4px 10px; border-radius: 999px; margin-bottom: 10px; }
  .actu-modal-titre { font-size: 18px; font-weight: 700; color: var(--bleu); margin-bottom: 6px; padding-right: 26px; }
  .actu-modal-meta { font-size: 12px; color: var(--muted); margin-bottom: 16px; }
  .actu-modal-contenu { font-size: 14px; line-height: 1.6; color: var(--text); white-space: pre-line; }
  .actu-modal-photo { display: block; width: 100%; border-radius: 10px; margin-top: 16px; }

  /* Coupe de printemps */
  .coupe-selector { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
  .coupe-selector::-webkit-scrollbar { display: none; }
  .coupe-btn { font-size: 11px; font-weight: 700; padding: 6px 15px; border-radius: 999px; cursor: pointer; white-space: nowrap; border: 0.5px solid var(--border); background: var(--card); color: var(--muted); transition: background .16s, color .16s, border-color .16s; flex-shrink: 0; font-family: inherit; }
  .coupe-btn.on { background: var(--or); color: var(--or-dark); border-color: var(--or); }
  .coupe-btn:not(.on):hover { border-color: var(--or); color: var(--or-dark); }

  .phase-tabs-wrap { margin-top: 10px; border-bottom: 0.5px solid var(--border); overflow-x: auto; scrollbar-width: none; }
  .phase-tabs-wrap::-webkit-scrollbar { display: none; }
  .phase-tabs { display: flex; gap: 6px; position: relative; padding: 3px; width: max-content; }
  .phase-indicator { position: absolute; top: 3px; bottom: 3px; width: 84px; background: var(--or-light); border: 0.5px solid var(--or); border-radius: 8px; transition: left 280ms cubic-bezier(.2,.8,.2,1); z-index: 0; }
  .phase-tab { flex: 0 0 auto; width: 84px; height: 32px; display: flex; align-items: center; justify-content: center; border: none; background: transparent; cursor: pointer; border-radius: 8px; font-family: inherit; font-size: 12px; font-weight: 500; color: var(--muted); position: relative; z-index: 1; transition: color 200ms ease; }
  .phase-tab.on { font-weight: 700; color: var(--bleu); }

  .phase-panel { display: none; padding: 14px 0; }
  .phase-panel.on { display: block; }
  .phase-panel-inner { opacity: 1; transform: translateY(0); transition: opacity 160ms ease, transform 160ms ease; }
  .phase-panel-inner.is-switching { opacity: 0; transform: translateY(6px); }

  .bracket-title { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; margin: 0 0 10px; }

  .groupes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; }
  .groupe-card { background: var(--card); border: 0.5px solid var(--border); border-radius: 12px; overflow: hidden; opacity: 0; transform: translateY(20px); transition: opacity 480ms ease, transform 480ms cubic-bezier(.16,.84,.44,1), box-shadow 200ms ease, border-color 200ms ease; }
  .groupe-card.is-visible { opacity: 1; transform: translateY(0); }
  .groupe-card:hover { box-shadow: 0 14px 28px -14px rgba(26,58,107,.3); border-color: var(--or); }
  .groupe-header { background: var(--bleu); color: #fff; font-size: 12px; font-weight: 700; padding: 8px 12px; display: flex; align-items: center; gap: 7px; }
  .groupe-lettre { background: var(--or); color: var(--or-dark); width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; flex-shrink: 0; }
  .groupe-table { width: 100%; border-collapse: collapse; font-size: 11px; }
  .groupe-table th { padding: 6px 8px; font-size: 9px; font-weight: 700; color: var(--muted); text-align: left; border-bottom: 0.5px solid var(--border); background: #fafaf8; text-transform: uppercase; letter-spacing: .3px; }
  .groupe-table th.r { text-align: right; }
  .groupe-table td { padding: 6px 8px; border-bottom: 0.5px solid #f5f3ef; color: var(--text); }
  .groupe-table td.r { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
  .groupe-table tr:last-child td { border-bottom: none; }
  .g-pts { font-weight: 700; color: var(--bleu); }
  .grank-1 { color: var(--or); font-weight: 800; }
  .grank-2 { color: var(--bleu); font-weight: 700; }
  .groupe-matchs { padding: 3px 8px 8px; border-top: 0.5px solid var(--border); }
  .gmatch { display: flex; align-items: center; gap: 5px; padding: 5px 0; border-bottom: 0.5px solid #f5f3ef; font-size: 10px; }
  .gmatch:last-child { border-bottom: none; }
  .gmatch-team { flex: 1; color: var(--text); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .gmatch-team.r { text-align: right; }
  .gmatch-score { background: var(--bleu); color: #fff; font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 5px; flex-shrink: 0; }
  .gmatch-avenir { background: var(--or-light); color: #854F0B; font-size: 9px; font-weight: 600; padding: 2px 6px; border-radius: 5px; flex-shrink: 0; }

  .bracket-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
  .bracket-round { display: flex; flex-direction: column; gap: 10px; }
  .bracket-match { background: var(--card); border: 0.5px solid var(--border); border-radius: 10px; overflow: hidden; opacity: 0; transform: translateY(20px); transition: opacity 480ms ease, transform 480ms cubic-bezier(.16,.84,.44,1), box-shadow 200ms ease; }
  .bracket-match.is-visible { opacity: 1; transform: translateY(0); }
  .bracket-match:hover { box-shadow: 0 12px 24px -12px rgba(26,58,107,.28); }
  .bracket-match-label { background: var(--bleu); color: rgba(255,255,255,.75); font-size: 9px; font-weight: 700; padding: 4px 10px; text-transform: uppercase; letter-spacing: .4px; }
  .bracket-match-row { display: flex; align-items: center; padding: 8px 10px; border-bottom: 0.5px solid #f5f3ef; gap: 6px; }
  .bracket-match-row:last-child { border-bottom: none; }
  .bracket-team { flex: 1; font-size: 12px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .bracket-team.placeholder { color: var(--muted); font-weight: 400; font-style: italic; }
  .bracket-team.vainqueur { color: var(--montee); font-weight: 700; }
  .bracket-score { background: var(--bleu); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 6px; flex-shrink: 0; }
  .bracket-avenir { color: var(--muted); font-size: 11px; flex-shrink: 0; }

  .finale-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
  .finale-wrap { background: linear-gradient(135deg, var(--bleu), #2a52a0); border-radius: 12px; padding: 16px; }
  .finale-label { color: var(--or); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 10px; text-align: center; }
  .finale-match-row { display: flex; align-items: center; padding: 9px 0; gap: 8px; border-bottom: 0.5px solid rgba(255,255,255,.12); }
  .finale-match-row:last-child { border-bottom: none; }
  .finale-team { flex: 1; font-size: 14px; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .finale-team.placeholder { color: rgba(255,255,255,.4); font-style: italic; font-weight: 400; font-size: 12px; }
  .finale-score-box { background: var(--or); color: var(--or-dark); font-size: 15px; font-weight: 800; padding: 4px 12px; border-radius: 7px; flex-shrink: 0; }
  .finale-avenir { color: rgba(255,255,255,.4); font-size: 11px; flex-shrink: 0; }

  .vainqueur-card { background: var(--or); border-radius: 12px; padding: 18px; text-align: center; margin-bottom: 10px; }
  .vainqueur-trophy { font-size: 26px; margin-bottom: 6px; color: var(--or-dark); }
  .vainqueur-label { font-size: 10px; font-weight: 800; color: var(--or-dark); text-transform: uppercase; letter-spacing: .6px; margin-bottom: 5px; opacity: .8; }
  .vainqueur-nom { font-size: 18px; font-weight: 800; color: var(--or-dark); }

  .podium-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; margin-bottom: 16px; }
  .podium-card { background: var(--card); border: 0.5px solid var(--border); border-radius: 10px; padding: 10px 12px; text-align: center; }
  .podium-place { font-size: 9px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px; }
  .podium-nom { font-size: 13px; font-weight: 700; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

  @media (min-width: 620px) {
    .finale-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  }
  @media (min-width: 900px) {
    .groupes-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .bracket-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; max-width: 720px; }
    .bracket-round { max-width: 380px; }
    #inner-demis { max-width: 420px; }
    #inner-finale { max-width: 720px; }
  }
  @media (min-width: 1180px) {
    .finale-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
    #inner-finale { max-width: 1080px; }
  }
  .palmares-card .pc-link { font-size: 12px; color: var(--bleu); text-decoration: underline; text-underline-offset: 2px; }
  .result-item { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; margin-bottom: 8px; box-shadow: 0 1px 3px rgba(20,30,50,0.05); }
  .result-div-label { font-size: 11px; color: var(--muted); margin-bottom: 7px; display: flex; justify-content: space-between; align-items: center; }
  .result-row { display: flex; align-items: center; gap: 8px; }
  .result-team { font-size: 13px; font-weight: 700; color: var(--text); flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .result-team.r { text-align: right; }

  .form-card { background: var(--card); border: 0.5px solid var(--border); border-radius: 10px; padding: 14px; margin: 12px 14px; }
  .form-label { font-size: 12px; color: var(--muted); margin-bottom: 4px; display: block; }
  .form-row { margin-bottom: 12px; }
  .form-row:last-child { margin-bottom: 0; }
  .form-row select, .form-row input, .form-row textarea { width: 100%; font-size: 13px; border: 0.5px solid #D3D1C7; border-radius: 7px; padding: 9px 10px; background: var(--card); color: var(--text); }
  .form-row textarea { height: 80px; resize: none; }
  .btn-primary { background: var(--bleu); color: white; border: none; padding: 11px 20px; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; width: 100%; }
  .btn-primary:disabled { cursor: not-allowed; }
  .btn-spin { display: inline-block; width: 13px; height: 13px; border: 2px solid rgba(255,255,255,0.4); border-top-color: #fff; border-radius: 50%; margin-right: 7px; vertical-align: -2px; animation: btnSpin 0.7s linear infinite; }
  @keyframes btnSpin { to { transform: rotate(360deg); } }
  .btn-amber { background: var(--or); color: var(--or-dark); border: none; padding: 11px 20px; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; width: 100%; }

  .info-box { background: var(--blue-light); border-radius: 8px; padding: 10px 12px; margin-bottom: 12px; font-size: 12px; color: var(--blue-text); display: flex; gap: 8px; }
  .info-box i { font-size: 15px; flex-shrink: 0; margin-top: 1px; }

  /* Page "Présentation" — habillage "Panini Football 90" dédié à cette page uniquement (le
     reste du site garde sa charte bleu marine / or classique). Header/nav non concernés. */
  #page-presentation .section { background: #f4f0e6; }
  .pres-card { background: #fff; border: 1px solid rgba(0,0,0,.08); position: relative;
    clip-path: polygon(0 14px, 14px 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%); }
  .pres-titleband { background: #12294D; color: #F6C500; text-align: center; padding: 14px 20px; margin-bottom: 20px;
    font: 900 20px Arial; font-style: italic; letter-spacing: .5px;
    clip-path: polygon(0 10px, 10px 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%); }
  .pres-intro { padding: 22px 26px; margin-bottom: 20px; }
  .pres-intro p.lead { margin: 0 0 10px; font: 700 15px/1.5 Arial; color: #12294D; }
  .pres-intro p.body { margin: 0 0 8px; font: 400 14px/1.6 Arial; color: #333; }
  .pres-intro p.body:last-child { margin-bottom: 0; }

  .pres-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-bottom: 20px; }
  .pres-stat { background: #fff; border: 1px solid rgba(0,0,0,.08);
    clip-path: polygon(0 10px, 10px 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
    text-align: center; padding: 18px 6px 0; }
  .pres-stat .num { font: 900 30px Arial; font-style: italic; }
  .pres-stat .lbl { background: #12294D; color: #fff; font: 700 9px Arial; padding: 6px 4px;
    margin-top: 10px; letter-spacing: .5px; }

  .pres-valeurs { display: flex; justify-content: center; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
  .pres-valeur { width: 88px; height: 88px; border-radius: 50%; display: flex; align-items: center;
    justify-content: center; border: 3px solid #12294D; flex-shrink: 0; }
  .pres-valeur .inner { width: 66px; height: 66px; border-radius: 50%; background: #fff; display: flex;
    align-items: center; justify-content: center; font: 800 10px Arial; color: #12294D; text-align: center; padding: 4px; }

  .pres-fiches { display: flex; flex-direction: column; gap: 14px; }
  .pres-fiche { padding: 20px 22px; }
  .pres-fiche .tag { display: inline-block; font: 800 13px Arial; font-style: italic; padding: 4px 14px; margin-bottom: 10px; }
  .pres-fiche p { margin: 0 0 10px; font: 400 13.5px/1.6 Arial; color: #333; }
  .pres-fiche ul { margin: 0; padding-left: 18px; font: 400 13.5px/1.7 Arial; color: #333; }
  .pres-fiche ul.cols2 { columns: 2; column-gap: 24px; }
  .pres-cta { display: inline-block; margin-top: 4px; background: #1B7A3D; color: #fff; font: 700 12.5px Arial;
    text-decoration: none; padding: 9px 18px; border-radius: 20px; cursor: pointer; }
  .pres-fiche a.pres-inline-link { color: #1D5FAE; font-weight: 700; text-decoration: underline; cursor: pointer; }

  .pres-footer { margin-top: 20px; background: #12294D; color: #fff; text-align: center; padding: 22px;
    clip-path: polygon(0 10px, 10px 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%); }
  .pres-footer .tt { font: 900 18px Arial; font-style: italic; color: #F6C500; }
  .pres-footer .ln { font: 400 13px/1.7 Arial; margin-top: 8px; opacity: .9; }

  @media (max-width: 600px) {
    .pres-stats { grid-template-columns: repeat(2,1fr); }
    .pres-fiche ul.cols2 { columns: 1; }
    .pres-stat .num { font-size: 26px; }
  }
  .contact-hero { border-radius: 14px; padding: 16px; background: var(--bleu); color: #fff; display: flex; align-items: center; gap: 14px; margin-bottom: 10px; flex-wrap: wrap; }
  .contact-hero-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--or); color: var(--or-dark); display: flex; align-items: center; justify-content: center; font-size: 17px; flex-shrink: 0; }
  .contact-hero-info { flex: 1; min-width: 150px; }
  .contact-hero-name { font-size: 14.5px; font-weight: 700; }
  .contact-hero-sub { font-size: 11.5px; color: rgba(255,255,255,.72); margin-top: 3px; line-height: 1.4; }
  .contact-hero-actions { display: flex; gap: 8px; flex: none; }
  .contact-hero-btn { text-decoration: none; font-size: 12.5px; font-weight: 700; padding: 9px 15px; border-radius: 9px; white-space: nowrap; text-align: center; }
  .contact-hero-btn.solid { background: var(--or); color: var(--or-dark); }
  .contact-hero-btn.ghost { background: rgba(255,255,255,.16); color: #fff; }

  .resp-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 18px 0 10px; }
  .resp-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
  .resp-card { background: var(--card); border: 0.5px solid var(--border); border-radius: 12px; padding: 13px; display: flex; flex-direction: column; gap: 10px; }
  .resp-card-top { display: flex; align-items: center; gap: 10px; }
  .resp-avatar { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12.5px; font-weight: 700; flex-shrink: 0; }
  .resp-name { font-size: 13px; font-weight: 700; color: var(--text); }
  .resp-role { font-size: 10.5px; font-weight: 700; margin-top: 2px; }
  .resp-btn { text-decoration: none; display: block; text-align: center; font-size: 11.5px; font-weight: 700; color: var(--bleu); background: var(--blue-light); padding: 9px 0; border-radius: 8px; }
  @media (min-width: 480px) { .resp-grid { grid-template-columns: 1fr 1fr; } }

  .legal-h2 { font-size: 14px; font-weight: 700; color: var(--bleu); margin: 20px 0 8px; padding-bottom: 6px; border-bottom: 0.5px solid var(--border); }
  .legal-text p { font-size: 13px; line-height: 1.6; margin: 0 0 10px; color: var(--text); }
  .legal-text ul { margin: 6px 0 10px; padding-left: 20px; }
  .legal-text li { font-size: 13px; margin-bottom: 6px; line-height: 1.6; }
  .legal-table { width: 100%; border-collapse: collapse; margin: 8px 0 14px; font-size: 12.5px; }
  .legal-table th, .legal-table td { border: 0.5px solid var(--border); padding: 8px 10px; text-align: left; vertical-align: top; }
  .legal-table th { background: #fff; color: var(--bleu); font-weight: 700; width: 34%; }

  .doc-item { background: var(--card); border: 0.5px solid var(--border); border-radius: 10px; padding: 10px 12px; margin-bottom: 6px; display: flex; align-items: center; gap: 10px; cursor: pointer; }
  .doc-icon { width: 38px; height: 38px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
  .doc-icon.pdf { background: var(--or-light); color: #633806; }
  .doc-icon.xls { background: var(--green-light); color: var(--green); }
  .doc-name { font-size: 13px; font-weight: 600; color: var(--text); }
  .doc-sub { font-size: 11px; color: var(--muted); }
  .doc-div-row { background: var(--card); border: 0.5px solid var(--border); border-radius: 10px; padding: 9px 12px; margin-bottom: 6px; display: flex; align-items: center; gap: 10px; }
  .ddr-name { font-size: 13px; font-weight: 600; color: var(--text); flex: 1; }
  .ddr-btn { width: 34px; height: 34px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 14px; background: var(--or-light); color: #633806; flex-shrink: 0; }
  .ddr-btn.disabled { background: #f0f0f0; color: var(--muted); cursor: default; opacity: .6; }

  .drawer { visibility: hidden; transition: visibility 0s linear .38s; position: fixed; top: 0; left: 50%; transform: translateX(-50%); width: 390px; height: 100%; z-index: 200; }
  .drawer.open { visibility: visible; transition: visibility 0s linear 0s; }
  .drawer-bg { background: rgba(0,0,0,0); transition: background .38s ease; height: 100%; display: flex; align-items: flex-start; justify-content: flex-end; }
  .drawer.open .drawer-bg { background: rgba(0,0,0,0.45); }
  .drawer-panel { background: #000; width: 78%; height: 100%; padding: 22px 18px; overflow-y: auto; overscroll-behavior: contain; transform: translateX(100%); transition: transform .38s cubic-bezier(.32,0,.15,1); }
  .drawer.open .drawer-panel { transform: translateX(0); }
  @media (prefers-reduced-motion: reduce) {
    .drawer, .drawer-bg, .drawer-panel { transition: none !important; }
  }
  .drawer-title { font-size: 19px; font-weight: 700; color: #fff; margin-bottom: 20px; display: flex; justify-content: space-between; align-items: center; }
  .drawer-close { background: rgba(255,255,255,0.08); border: none; border-radius: 9px; width: 32px; height: 32px; cursor: pointer; font-size: 15px; color: #fff; }
  .drawer-toggle { width: 100%; display: flex; align-items: center; justify-content: space-between; background: none; border: none; padding: 0; margin-bottom: 10px; cursor: pointer; }
  .drawer-section { font-size: 11px; font-weight: 800; color: var(--or); text-transform: uppercase; letter-spacing: .1em; }
  .drawer-chevron { transition: transform .2s ease; color: var(--or); }
  .drawer-toggle.collapsed .drawer-chevron { transform: rotate(-90deg); }
  .drawer-divgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 18px; }
  .drawer-divgrid.collapsed { display: none; }
  .drawer-divider { height: 1px; background: rgba(255,255,255,0.08); margin-bottom: 18px; }
  .drawer-infos-title { margin-bottom: 10px; }
  .drawer-item { display: flex; align-items: center; gap: 12px; padding: 11px 8px; border-radius: 10px; cursor: pointer; }
  .drawer-item:hover, .drawer-item:active { background: rgba(255,255,255,0.07); }
  .drawer-item i { font-size: 16px; color: rgba(255,255,255,0.55); width: 18px; text-align: center; }
  .drawer-item span { font-size: 14px; font-weight: 600; color: rgba(255,255,255,0.92); }
  .drawer-item.admin-item { margin-top: 6px; padding-top: 17px; border-top: 1px solid rgba(255,255,255,0.08); }
  .drawer-div { display: flex; align-items: center; gap: 9px; background: rgba(255,255,255,0.06); border-radius: 12px; padding: 11px 12px; cursor: pointer; }
  .drawer-div:hover, .drawer-div:active { background: rgba(255,255,255,0.1); }
  .drawer-div i { font-size: 14px; color: rgba(255,255,255,0.55); width: 16px; text-align: center; }
  .drawer-div span { font-size: 13.5px; font-weight: 600; color: rgba(255,255,255,0.92); flex: 1; }
  .drawer-div .div-pill { background: var(--or); color: var(--or-dark); font-size: 11px; padding: 2px 7px; border-radius: 7px; font-weight: 800; }

  .loading { text-align: center; padding: 20px; color: var(--muted); font-size: 12px; }

  .home-footer { text-align: center; padding: 28px 20px 26px; margin-top: 8px; border-top: 0.5px solid var(--border); }
  .home-footer .hf-logo { width: 54px; height: 54px; object-fit: contain; background: #fff; border-radius: 12px; padding: 6px; border: 0.5px solid var(--border); }
  .home-footer .hf-title { font-size: 15px; font-weight: 700; color: var(--bleu); margin-top: 10px; }
  .home-footer .hf-sub { font-size: 11px; color: var(--muted); margin-top: 4px; line-height: 1.6; }
  .home-footer .hf-links { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: center; margin: 14px 0 12px; }
  .home-footer .hf-links a { font-size: 12px; color: var(--bleu); cursor: pointer; font-weight: 600; }
  .home-footer .hf-copy { font-size: 10px; color: var(--muted); }

  /* ── Micro-animations accueil ── */
  .actu-bubble, .score-bubble { opacity: 0; transform: translateY(20px); transition: opacity 540ms ease, transform 540ms cubic-bezier(.16,.84,.44,1); }
  .actu-bubble.is-visible, .score-bubble.is-visible { opacity: 1; transform: translateY(0); }
  .actu-bubble:hover { transform: translateY(-4px); box-shadow: 0 14px 28px -12px rgba(26,58,107,.35); border-color: var(--or); }
  .score-bubble:hover { transform: translateY(-3px); box-shadow: 0 12px 24px -10px rgba(26,58,107,.3); }
  .score-box .sep { color: rgba(255,255,255,.55); }

  /* Révélation au scroll + survol : cartes Divisions / Résultats */
  .div-card, .result-item { opacity: 0; transform: translateY(18px); transition: opacity 480ms ease, transform 480ms cubic-bezier(.16,.84,.44,1), box-shadow 200ms ease, border-color 200ms ease; }
  .div-card.is-visible, .result-item.is-visible { opacity: 1; transform: translateY(0); }
  .div-card:hover, .result-item:hover { transform: translateY(-3px); box-shadow: 0 12px 24px -12px rgba(26,58,107,.28); border-color: var(--or); }
  .div-leader-row { display: flex; align-items: center; gap: 8px; margin-top: 6px; padding-top: 9px; border-top: 1px solid var(--border); }
  .leader-crown { width: 22px; height: 22px; border-radius: 6px; background: var(--or-light); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; color: var(--or); font-size: 11px; }
  .leader-info { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
  .leader-name { font-size: 13px; font-weight: 700; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .leader-pts { font-size: 12px; color: var(--montee); font-weight: 700; }
  .score-date-mini { font-size: 10px; color: var(--muted); text-align: center; margin-top: 5px; }

  .carousel-wrap { overflow: hidden; padding-bottom: 4px; }
  .carousel-track { display: flex; gap: 8px; width: max-content; padding: 2px; animation: ffMarquee 26s linear infinite; }
  .carousel-track:hover { animation-play-state: paused; }
  @keyframes ffMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

  #cls-content { transition: opacity 160ms ease, transform 160ms ease; }
  #cls-content.is-switching { opacity: 0; transform: translateY(6px); }
  .cls-mini-tab.on { background: var(--or-light); border-radius: 8px; border-bottom-color: transparent; }

  @media (prefers-reduced-motion: reduce) {
    .actu-bubble, .score-bubble, .div-card, .result-item, .palmares-card, .groupe-card, .bracket-match { opacity: 1 !important; transform: none !important; transition: none !important; }
    .carousel-track { animation: none !important; }
    #cls-content, .phase-panel-inner { transition: none !important; }
  }

  /* En dessous du seuil PC (900px), le site remplit tout l'écran : */
  /* portrait ET paysage téléphone, sans bandes latérales. */
  @media (max-width: 899px) {
    .app { max-width: 100%; box-shadow: none; }
    .bnav { width: 100%; }
    .drawer { width: 100%; left: 0; transform: none; }
  }

  /* Bandeau d'accroche vers la page Résultats, en haut d'une fiche division */
  .div-cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; background: var(--card); border: 1px solid var(--border); border-left: 4px solid var(--or); border-radius: 12px; padding: 18px 22px; margin-bottom: 20px; box-shadow: 0 1px 3px rgba(20,30,50,0.05); cursor: pointer; transition: box-shadow .15s ease; }
  .div-cta:hover { box-shadow: 0 2px 8px rgba(20,30,50,0.08); }
  .div-cta-left { display: flex; align-items: center; gap: 14px; }
  .div-cta-icon { width: 44px; height: 44px; border-radius: 50%; background: var(--or-light); color: var(--or); font-size: 16px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
  .div-cta-title { font-weight: 700; font-size: 15px; color: var(--text); margin-bottom: 3px; }
  .div-cta-sub { font-size: 12.5px; color: var(--muted); }
  .div-cta-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--bleu); color: #fff; font-weight: 700; font-size: 13.5px; padding: 11px 20px; border-radius: 24px; white-space: nowrap; flex-shrink: 0; }
  @media (max-width: 640px) {
    .div-cta { flex-direction: column; align-items: stretch; }
    .div-cta-btn { justify-content: center; }
  }

  /* Filtre division de la page Résultats */
  .res-filter { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 12px 18px; box-shadow: 0 1px 3px rgba(20,30,50,0.05); margin-bottom: 14px; }
  .res-filter > i:first-child { color: var(--muted); font-size: 15px; }
  .res-filter > i:last-child { color: var(--muted); font-size: 12px; }
  .res-filter select { flex: 1; border: none; background: transparent; font-size: 14px; font-weight: 600; color: var(--text); font-family: inherit; padding: 0; }
  .res-filter select:focus-visible { outline: 2px solid var(--or); outline-offset: 2px; }

  /* ═══════════════ VERSION PC (desktop ≥ 900px) ═══════════════ */
  /* Couche additive : le design mobile validé reste inchangé. */
  @media (min-width: 900px) {
    html, body { background: #000; }
    .app { max-width: 1180px; box-shadow: 0 0 60px rgba(0,0,0,0.5); }

    .topbar { height: 60px; padding: 0 30px; }
    .topbar-logo { font-size: 18px; gap: 12px; }
    .topbar-logoimg { height: 40px; }
    .topbar button { font-size: 22px; }

    /* La barre de navigation passe en haut (sous la topbar) au lieu du bas */
    .topbar-nav { display: flex; }
    .bnav { display: none; }
    .bn { flex-direction: row; gap: 9px; padding: 11px 20px; border-radius: 999px; }
    .bn i { font-size: 16px; }
    .bn span { font-size: 13px; }
    .bn.on { box-shadow: none; }

    .page { padding-top: 0; padding-bottom: 36px; }
    .page-header { padding: 18px 30px; }
    .page-header h2 { font-size: 18px; }

    .hero { padding: 44px 30px 36px; }
    .hero h1 { font-size: 34px; }
    .hero p { font-size: 16px; }
    .hero { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
    .hero-left { flex: 1; min-width: 0; }
    .hero-stats { display: none; }
    .hero-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; width: 420px; flex-shrink: 0; }
    .hsg-card { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14); border-radius: 14px; padding: 22px 20px; }
    .hsg-icon { margin-bottom: 14px; }
    .hsg-icon.hsg-circle { width: 34px; height: 34px; border-radius: 50%; border: 4px solid var(--or); }
    .hsg-icon.hsg-diamond { width: 26px; height: 26px; background: var(--or); transform: rotate(45deg); margin-bottom: 18px; }
    .hsg-icon.hsg-triangle { width: 0; height: 0; border-left: 16px solid transparent; border-right: 16px solid transparent; border-bottom: 28px solid var(--or); margin-bottom: 12px; }
    .hsg-num { color: #fff; font-weight: 800; font-size: 28px; line-height: 1.1; }
    .hsg-lbl { color: #93a4bf; font-size: 11px; letter-spacing: .06em; font-weight: 600; text-transform: uppercase; margin-top: 2px; }
    .hsg-accent { background: rgba(232,160,32,0.14); border: 1px solid rgba(232,160,32,0.35); display: flex; flex-direction: column; justify-content: center; cursor: pointer; transition: background .15s ease; }
    .hsg-accent:hover { background: rgba(232,160,32,0.22); }
    .hsg-accent-text { color: var(--or); font-weight: 700; font-size: 14px; line-height: 1.35; }

    .section { padding: 18px 30px; }
    .sec-title { font-size: 15px; margin-bottom: 12px; }
    .sec-title a { font-size: 13px; }

    /* Les bandeaux défilants s'étalent en grille sur grand écran */
    .score-strip, .actu-scroll, .anim-scroll { flex-wrap: wrap; overflow: visible; gap: 12px; }
    .score-bubble { flex: 0 1 calc(25% - 12px); min-width: 200px; padding: 12px 14px; }
    .score-div { font-size: 10px; }
    .score-team { font-size: 12px; }
    .actu-bubble { width: auto; flex: 0 1 calc(25% - 12px); }
    .actu-img { height: 130px; }
    .actu-title { font-size: 13px; }

    .cls-table th, .cls-table td { padding: 9px 14px; font-size: 13px; }
    .cls-mini-tab { font-size: 12px; padding: 10px 16px; }

    .div-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; padding: 22px 30px; }
    .div-card { padding: 16px; }
    .div-name { font-size: 15px; }

    .result-item { padding: 12px 16px; max-width: 760px; }
    .result-team { font-size: 13px; }
    .anim-card { max-width: 760px; }
    .doc-item { max-width: 680px; }
    .contact-hero, .resp-grid { max-width: 680px; }
    .resp-grid { grid-template-columns: 1fr 1fr 1fr; }
    .form-card { max-width: 600px; }

    /* Le tiroir burger reste utile (liste complète des divisions) */
    .drawer { width: 1180px; max-width: 100%; }
    .drawer-panel { width: 360px; }
  }
