/* ============================================================================
   Règlesdusport — Feuille de styles principale

/* ---------------------------------------------------------------------------
   1. VARIABLES DE THÈME
   --------------------------------------------------------------------------- */
:root,
[data-theme="dark"] {
  --bg:            #0a0f0d;
  --bg-soft:       #0f1714;
  --bg-soft-2:     #141d19;
  --line:          #1e2b25;
  --line-strong:   #2c3d35;
  --text:          #eef3f0;
  --text-soft:     #9fb1a8;
  --text-faint:    #6a7d74;
  --accent:        #c8fa3c;
  --accent-deep:   #9bd400;
  --accent-ink:    #0a0f0d;
  --bg-header:     #070c0a;
  --bg-footer:     #03060a;
  --warn:          #ff6a3d;
  --shadow:        0 24px 60px -20px rgba(0,0,0,.7);
  --grid-line:     rgba(255,255,255,.035);
}
[data-theme="light"] {
  --bg:            #f4f6f2;
  --bg-soft:       #ffffff;
  --bg-soft-2:     #eef1ea;
  --line:          #e2e6dc;
  --line-strong:   #d2d8c9;
  --text:          #141b17;
  --text-soft:     #4f5d55;
  --text-faint:    #7d8a81;
  --accent:        #6fa800;
  --accent-deep:   #557f00;
  --accent-ink:    #ffffff;
  --bg-header:     #ecefe7;
  --bg-footer:     #e3e7dc;
  --warn:          #e0461c;
  --shadow:        0 24px 50px -24px rgba(20,40,30,.25);
  --grid-line:     rgba(0,0,0,.04);
}

/* ---------------------------------------------------------------------------
   2. RESET & BASES
   --------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Archivo', system-ui, sans-serif;
  background: var(--bg); color: var(--text);
  line-height: 1.6; -webkit-font-smoothing: antialiased;
  transition: background .4s ease, color .4s ease;
  overflow-x: hidden;
}
/* Motif « lignes de terrain » sur tout le fond */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 100% 80% at 50% 0%, #000 40%, transparent 100%);
}
/* Grain léger */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.layer { position: relative; z-index: 2; }
header.layer { position: sticky; top: 0; z-index: 200; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img, svg { max-width: 100%; display: block; }
::selection { background: var(--accent); color: var(--accent-ink); }
.wrap { width: min(1200px, 92vw); margin-inline: auto; }
.display { font-family: 'Anton', sans-serif; font-weight: 400; text-transform: uppercase; letter-spacing: -.01em; line-height: .92; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------------------------------------------------------------------------
   3. EN-TÊTE
   --------------------------------------------------------------------------- */
header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg-header) 92%, transparent);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: 'Anton', sans-serif; font-size: 24px; letter-spacing: .02em; flex-shrink: 0; }
/* Marque : pictogramme athlete dans le chronometre.
   Le motif est un MASQUE : la couleur vient de background-color, donc elle vaut
   toujours exactement var(--accent) -- le meme vert que le mot << sport >> du
   logotype, dans le theme sombre comme dans le theme clair. */
.brand .mark { width: 32px; height: 32px; flex-shrink: 0; border-radius: 7px;
  background-color: var(--accent); transition: transform .25s ease; }
@supports ((-webkit-mask-image: url('')) or (mask-image: url(''))) {
  .brand .mark { border-radius: 0;
    -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%3E%3Cmask%20id='m'%3E%3Crect%20width='32'%20height='32'%20rx='7'%20fill='%23fff'/%3E%3Ccircle%20cx='16'%20cy='16'%20r='10.8'%20fill='none'%20stroke='%23000'%20stroke-width='3.0'/%3E%3Cg%20transform='rotate(-48%2016%2016)'%3E%3Crect%20x='13.1'%20y='0.8'%20width='5.8'%20height='5.0'%20rx='1.8'%20fill='%23000'/%3E%3C/g%3E%3Cg%20transform='rotate(48%2016%2016)'%3E%3Crect%20x='13.1'%20y='0.8'%20width='5.8'%20height='5.0'%20rx='1.8'%20fill='%23000'/%3E%3C/g%3E%3Crect%20x='14.5'%20y='1.5'%20width='3.0'%20height='4.3'%20rx='1.3'%20fill='%23000'/%3E%3Cg%20transform='translate(5.65,6.07)%20scale(0.62)'%3E%3Ccircle%20cx='20.6'%20cy='7.4'%20r='4.7'%20fill='%23000'/%3E%3Cg%20fill='none'%20stroke='%23000'%20stroke-width='5.2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M19.4%2012.6%20L13.9%2018.1'/%3E%3Cpath%20d='M19.4%2012.6%20L13.0%2010.2'/%3E%3Cpath%20d='M19.4%2012.6%20L26.0%2016.1'/%3E%3Cpath%20d='M13.9%2018.1%20L19.1%2022.6%20L18.1%2028.6'/%3E%3Cpath%20d='M13.9%2018.1%20L7.4%2022.6'/%3E%3C/g%3E%3C/g%3E%3C/mask%3E%3Crect%20width='32'%20height='32'%20rx='7'%20fill='%23fff'%20mask='url(%23m)'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%3E%3Cmask%20id='m'%3E%3Crect%20width='32'%20height='32'%20rx='7'%20fill='%23fff'/%3E%3Ccircle%20cx='16'%20cy='16'%20r='10.8'%20fill='none'%20stroke='%23000'%20stroke-width='3.0'/%3E%3Cg%20transform='rotate(-48%2016%2016)'%3E%3Crect%20x='13.1'%20y='0.8'%20width='5.8'%20height='5.0'%20rx='1.8'%20fill='%23000'/%3E%3C/g%3E%3Cg%20transform='rotate(48%2016%2016)'%3E%3Crect%20x='13.1'%20y='0.8'%20width='5.8'%20height='5.0'%20rx='1.8'%20fill='%23000'/%3E%3C/g%3E%3Crect%20x='14.5'%20y='1.5'%20width='3.0'%20height='4.3'%20rx='1.3'%20fill='%23000'/%3E%3Cg%20transform='translate(5.65,6.07)%20scale(0.62)'%3E%3Ccircle%20cx='20.6'%20cy='7.4'%20r='4.7'%20fill='%23000'/%3E%3Cg%20fill='none'%20stroke='%23000'%20stroke-width='5.2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M19.4%2012.6%20L13.9%2018.1'/%3E%3Cpath%20d='M19.4%2012.6%20L13.0%2010.2'/%3E%3Cpath%20d='M19.4%2012.6%20L26.0%2016.1'/%3E%3Cpath%20d='M13.9%2018.1%20L19.1%2022.6%20L18.1%2028.6'/%3E%3Cpath%20d='M13.9%2018.1%20L7.4%2022.6'/%3E%3C/g%3E%3C/g%3E%3C/mask%3E%3Crect%20width='32'%20height='32'%20rx='7'%20fill='%23fff'%20mask='url(%23m)'/%3E%3C/svg%3E") center / contain no-repeat; }
}
.brand:hover .mark { transform: scale(1.08); }
@media (prefers-reduced-motion: reduce) { .brand .mark, .brand:hover .mark { transition: none; transform: none; } }
.brand span.accent { color: var(--accent); }
.nav-search { flex: 1; max-width: 420px; position: relative; display: flex; align-items: center; }
.nav-search svg { position: absolute; left: 14px; width: 18px; height: 18px; color: var(--text-faint); }
.nav-search input { width: 100%; background: var(--bg-soft); border: 1px solid var(--line); color: var(--text); padding: 11px 14px 11px 42px; border-radius: 12px; font-size: 14.5px; transition: border-color .2s, box-shadow .2s; }
.nav-search input::placeholder { color: var(--text-faint); }
.nav-search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.nav-links { display: flex; gap: 22px; font-size: 14.5px; font-weight: 500; }
.nav-links a { color: var(--text-soft); transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.theme-toggle { width: 40px; height: 40px; border-radius: 11px; border: 1px solid var(--line); background: var(--bg-soft); display: grid; place-items: center; transition: border-color .2s, transform .2s; }
.theme-toggle:hover { border-color: var(--accent); transform: translateY(-1px); }
.theme-toggle svg { width: 18px; height: 18px; }
[data-theme="dark"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: none; }
.btn-burger { display: none; }

/* ---------------------------------------------------------------------------
   4. EMPLACEMENTS PUBLICITAIRES
   Containers réservés aux monétisations.
   --------------------------------------------------------------------------- */
.ad { display: none; }                 /* masqué tant que le consentement pub n'est pas donné */
body.ads-on .ad { display: block; }
.ad-slot {
  border: 1px dashed var(--line-strong); border-radius: 14px;
  background: repeating-linear-gradient(45deg, transparent, transparent 10px, color-mix(in srgb, var(--text-faint) 5%, transparent) 10px, color-mix(in srgb, var(--text-faint) 5%, transparent) 20px);
  color: var(--text-faint); text-align: center;
  display: grid; place-items: center; gap: 4px;
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
}
.ad-slot small { font-size: 10px; opacity: .7; letter-spacing: .04em; text-transform: none; }
.ad-leaderboard .ad-slot { min-height: 90px; }    /* 728x90 */
.ad-inline .ad-slot { min-height: 250px; }         /* 300x250 */
.ad-footer .ad-slot { min-height: 100px; margin-top: 8px; }
.ad-wrap { margin: 24px auto; }

/* ---------------------------------------------------------------------------
   5. HÉRO
   --------------------------------------------------------------------------- */
.hero { padding: 88px 0 56px; position: relative; }
.hero::before { content: ""; position: absolute; top: -10%; left: 50%; width: 760px; height: 540px; transform: translateX(-50%); background: radial-gradient(ellipse at center, color-mix(in srgb, var(--accent) 16%, transparent), transparent 65%); filter: blur(20px); z-index: 0; pointer-events: none; }
.hero-inner { position: relative; z-index: 2; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-deep); border: 1px solid var(--line-strong); padding: 7px 14px; border-radius: 100px; background: var(--bg-soft); margin-bottom: 26px; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.hero h1 { font-size: clamp(46px, 8.5vw, 116px); max-width: 14ch; margin: 0 auto 24px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.rotator { display: inline-block; color: var(--warn); transition: opacity .25s ease; }
.hero p.lead { font-size: clamp(16px, 2vw, 19px); color: var(--text-soft); max-width: 56ch; margin: 0 auto 36px; }
.hero-search { max-width: 620px; margin: 0 auto; display: flex; align-items: center; gap: 10px; background: var(--bg-soft); border: 1px solid var(--line-strong); border-radius: 16px; padding: 8px 8px 8px 18px; box-shadow: var(--shadow); }
.hero-search svg { width: 22px; height: 22px; color: var(--text-faint); flex-shrink: 0; }
.hero-search input { flex: 1; background: none; border: none; color: var(--text); font-size: 16.5px; padding: 12px 4px; }
.hero-search input:focus { outline: none; }
.hero-search input::placeholder { color: var(--text-faint); }
.hero-search button { background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 15px; padding: 12px 22px; border-radius: 11px; transition: transform .15s, background .2s; }
.hero-search button:hover { transform: translateY(-1px); background: var(--accent-deep); }
.quick { margin-top: 18px; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; font-size: 13.5px; color: var(--text-faint); align-items: center; }
.quick button { color: var(--text-soft); border: 1px solid var(--line); padding: 5px 12px; border-radius: 100px; transition: all .18s; }
.quick button:hover { color: var(--text); border-color: var(--accent); }
.stats { display: flex; gap: 48px; justify-content: center; margin-top: 52px; flex-wrap: wrap; }
.stat .num { font-family: 'Anton', sans-serif; font-size: 42px; }
.stat .num em { color: var(--accent); font-style: normal; }
.stat .lbl { font-size: 13px; color: var(--text-faint); text-transform: uppercase; letter-spacing: .08em; }
.reveal { opacity: 0; transform: translateY(18px); animation: rise .8s cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* 6. SECTIONS GÉNÉRIQUES */
section { padding: 72px 0; position: relative; }
.section-head { margin-bottom: 15px; }
.section-head .kicker { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-deep); margin-bottom: 10px; }
.section-head h2 { font-size: clamp(30px, 4.5vw, 52px); max-width: 30ch; }
.section-head p { color: var(--text-soft); max-width: 118ch; margin-top: 14px; font-size: 16.5px; }

/* 7. CATÉGORIES */
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cat { border: 1px solid var(--line); background: var(--bg-soft); border-radius: 18px; padding: 24px; text-align: left; transition: transform .2s, border-color .2s, background .2s; position: relative; overflow: hidden; }
.cat:hover { transform: translateY(-4px); border-color: var(--accent); background: var(--bg-soft-2); }
.cat .ico { font-size: 30px; margin-bottom: 16px; display: block; }
.cat h3 { font-size: 18px; margin-bottom: 4px; }
.cat span { font-size: 13.5px; color: var(--text-faint); }
.cat::after { content: ""; position: absolute; left: 24px; bottom: 18px; height: 3px; width: 22px; background: var(--accent); border-radius: 3px; transition: width .25s ease; }
.cat:hover::after { width: 48px; }
.cat[data-cat="Tous"] {
  border-width: 1px;
  border-style: dashed;
  border-color: var(--text-faint);
}
.cat[data-cat="Tous"]:hover  { border-color: var(--accent); }
.cat[data-cat="Tous"].active { border-style: solid; border-color: var(--accent); }

/* 8. EXPLORATEUR */
.explorer-bar { display: flex; flex-wrap: wrap; margin-bottom: 35px;gap: 35px; align-items: stretch; flex-direction: column; }
.explorer-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { font-size: 13.5px; font-weight: 600; padding: 8px 15px; border-radius: 100px; border: 1px solid var(--line-strong); color: var(--text-soft); background: var(--bg-soft); transition: all .18s; }
.chip:hover { color: var(--text); }
.chip.active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.result-count { margin-left: auto; font-size: 18px; color: var(--text-faint); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { border: 1px solid var(--line); background: var(--bg-soft); border-radius: 20px; padding: 22px; text-align: left; transition: transform .2s, border-color .2s, box-shadow .2s; display: flex; flex-direction: column; gap: 14px; position: relative; overflow: hidden; }
.card:hover { transform: translateY(-5px); border-color: var(--accent); box-shadow: var(--shadow); }
.card-top { display: flex; align-items: center; justify-content: space-between; }
.card .emoji { width: 52px; height: 52px; border-radius: 14px; background: var(--bg-soft-2); display: grid; place-items: center; font-size: 28px; border: 1px solid var(--line); }
.card .tag { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-deep); border: 1px solid var(--line-strong); padding: 4px 10px; border-radius: 100px; }
.card h3 { font-size: 21px; }
.card .desc { font-size: 14px; color: var(--text-soft); line-height: 1.5; min-height: 42px; }
.card .meta { display: flex; gap: 16px; font-size: 12.5px; color: var(--text-faint); margin-top: auto; padding-top: 6px; border-top: 1px solid var(--line); }
.card .meta b { color: var(--text-soft); font-weight: 600; }
.card .go { font-size: 13.5px; font-weight: 700; color: var(--accent); display: flex; align-items: center; gap: 6px; }
.empty { grid-column: 1 / -1; text-align: center; color: var(--text-faint); padding: 60px 0; font-size: 16px; }

/* 9. FONCTIONNALITÉS */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.feature { border: 1px solid var(--line); background: var(--bg-soft); border-radius: 20px; padding: 30px; display: flex; gap: 18px; align-items: flex-start; }
.feature .fico { width: 50px; height: 50px; flex-shrink: 0; border-radius: 13px; background: color-mix(in srgb, var(--accent) 14%, transparent); display: grid; place-items: center; font-size: 24px; border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
.feature h3 { font-size: 19px; margin-bottom: 6px; }
.feature p { font-size: 14.5px; color: var(--text-soft); }

/* 10. CTA NEWSLETTER */
.cta { border: 1px solid var(--line-strong); border-radius: 28px; padding: 54px; background: radial-gradient(ellipse at 80% 20%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 60%), var(--bg-soft); text-align: center; position: relative; overflow: hidden; }
.cta h2 { font-size: clamp(28px, 4vw, 46px); max-width: 20ch; margin: 0 auto 16px; }
.cta p { color: var(--text-soft); max-width: 52ch; margin: 0 auto 28px; font-size: 16.5px; }
.newsletter { display: flex; gap: 10px; justify-content: center; max-width: 480px; margin: 0 auto; flex-wrap: wrap; }
.newsletter input { flex: 1; min-width: 220px; background: var(--bg); border: 1px solid var(--line-strong); color: var(--text); padding: 14px 18px; border-radius: 12px; font-size: 15px; }
.newsletter input:focus { outline: none; border-color: var(--accent); }
.btn-primary { background: var(--accent); color: var(--accent-ink); font-weight: 700; padding: 14px 26px; border-radius: 12px; transition: transform .15s, background .2s; }
.btn-primary:hover { transform: translateY(-2px); background: var(--accent-deep); }
.newsletter-msg { margin-top: 14px; font-size: 14px; color: var(--accent-deep); min-height: 18px; }

/* 11. PIED DE PAGE */
footer { border-top: 1px solid var(--line); padding: 56px 0 40px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.foot-grid > div:first-child p { color: var(--text-soft); font-size: 14px; margin-top: 14px; max-width: 32ch; }
.foot-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--text-faint); margin-bottom: 14px; }
.foot-col a, .foot-col button { display: block; color: var(--text-soft); font-size: 14.5px; margin-bottom: 9px; transition: color .2s; text-align: left; }
.foot-col a:hover, .foot-col button:hover { color: var(--accent); }
.foot-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--text-faint); font-size: 13.5px; align-items: center; }
.foot-bottom button { font-size: 13.5px; color: var(--text-faint); text-decoration: underline; }

/* ---------------------------------------------------------------------------
   12. MODALE GÉNÉRIQUE (fiches sport + pages légales&ressources)
   --------------------------------------------------------------------------- */
.modal-overlay { position: fixed; inset: 0; z-index: 100; background: color-mix(in srgb, #000 60%, transparent); backdrop-filter: blur(6px); display: none; align-items: flex-start; justify-content: center; padding: 40px 20px; overflow-y: auto; }
.modal-overlay.open { display: flex; }
.modal { width: min(860px, 100%); background: var(--bg); border: 1px solid var(--line-strong); border-radius: 24px; box-shadow: var(--shadow); overflow: hidden; animation: pop .4s cubic-bezier(.2,.8,.2,1); }
@keyframes pop { from { opacity: 0; transform: translateY(20px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-close { position: absolute; top: 22px; right: 22px; width: 38px; height: 38px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line-strong); font-size: 18px; display: grid; place-items: center; transition: border-color .2s, transform .2s; z-index: 5; }
.modal-close:hover { border-color: var(--warn); transform: rotate(90deg); }

/* En-tête de fiche sport */
.modal-hero { padding: 34px; position: relative; background: radial-gradient(ellipse at 90% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 55%), var(--bg-soft); border-bottom: 1px solid var(--line); }
.modal-hero .m-emoji { font-size: 54px; margin-bottom: 14px; }
.modal-hero .tag { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-deep); }
.modal-hero h2 { font-family: 'Anton', sans-serif; font-size: 46px; text-transform: uppercase; letter-spacing: -.01em; margin: 6px 0 10px; }
.modal-hero .m-desc { color: var(--text-soft); max-width: 56ch; }
.facts { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 24px; }
.fact .v { font-family: 'Anton', sans-serif; font-size: 24px; }
.fact .v em { color: var(--accent); font-style: normal; }
.fact .k { font-size: 12px; color: var(--text-faint); text-transform: uppercase; letter-spacing: .07em; }

/* Onglets */
.tabs { display: flex; gap: 2px; padding: 0 34px; border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 4; overflow-x: auto; }
.tab { padding: 16px 14px; font-size: 14px; font-weight: 600; color: var(--text-faint); border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; white-space: nowrap; }
.tab:hover { color: var(--text-soft); }
.tab.active { color: var(--text); border-bottom-color: var(--accent); }
.tab-body { padding: 30px 34px 36px; }
.tab-pane { display: none; animation: fade .3s ease; }
.tab-pane.active { display: block; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* Règles */
.rule { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.rule:last-child { border-bottom: none; }
.rule .n { flex-shrink: 0; width: 30px; height: 30px; border-radius: 9px; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent-deep); font-weight: 800; font-size: 13px; display: grid; place-items: center; }
.rule p { font-size: 15px; color: var(--text-soft); }
.rule p b { color: var(--text); font-weight: 700; }
.variant { padding: 16px; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; background: var(--bg-soft); }
.variant h4 { font-size: 16px; margin-bottom: 4px; }
.variant p { font-size: 14px; color: var(--text-soft); }
.official { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; font-weight: 700; font-size: 14.5px; color: var(--accent); border: 1px solid var(--line-strong); padding: 11px 18px; border-radius: 11px; transition: border-color .2s; }
.official:hover { border-color: var(--accent); }

/* Diagrammes animés */
.diagram { margin-bottom: 26px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg-soft); padding: 18px; }
.diagram h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--text-faint); margin-bottom: 12px; }
.diagram svg { width: 100%; height: auto; border-radius: 10px; }
/* Animations des diagrammes */
.dg-ball { animation: dgball 6s ease-in-out infinite; }
@keyframes dgball { 0%,100% { transform: translate(0,0); } 25% { transform: translate(60px,-20px); } 50% { transform: translate(120px,15px); } 75% { transform: translate(40px,30px); } }
.dg-dash { stroke-dasharray: 6 6; animation: dgdash 1.4s linear infinite; }
@keyframes dgdash { to { stroke-dashoffset: -24; } }
.dg-pulse { animation: dgpulse 2.4s ease-in-out infinite; transform-origin: center; }
@keyframes dgpulse { 0%,100% { opacity: .35; } 50% { opacity: 1; } }
.dg-swim { animation: dgswim 4s ease-in-out infinite; }
@keyframes dgswim { 0% { transform: translateX(0); } 100% { transform: translateX(360px); } }
.dg-run { animation: dgrun 5s linear infinite; offset-rotate: 0deg; }

/* Histoire / Compétitions / Sportifs */
.prose p { font-size: 15px; color: var(--text-soft); margin-bottom: 14px; }
.prose p b { color: var(--text); }
.timeline-note { font-size: 13px; color: var(--text-faint); border-left: 2px solid var(--line-strong); padding-left: 14px; margin-top: 10px; }
.list-rich { display: flex; flex-direction: column; gap: 10px; }
.list-rich .item { display: flex; gap: 14px; align-items: flex-start; padding: 13px 16px; border: 1px solid var(--line); border-radius: 13px; background: var(--bg-soft); }
.list-rich .item .b { font-size: 18px; }
.list-rich .item h5 { font-size: 15px; margin-bottom: 2px; }
.list-rich .item p { font-size: 13.5px; color: var(--text-soft); }

/* Quiz */
.quiz-intro { color: var(--text-soft); font-size: 15px; margin-bottom: 8px; }
.quiz-progress { font-size: 13px; color: var(--text-faint); margin-bottom: 18px; }
.q { margin-bottom: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.q:last-of-type { border-bottom: none; }
.q .q-text { font-weight: 700; font-size: 15.5px; margin-bottom: 12px; }
.q .q-text span { color: var(--accent-deep); }
.opt { display: block; width: 100%; text-align: left; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--bg-soft); color: var(--text-soft); font-size: 14.5px; margin-bottom: 8px; transition: all .18s; }
.opt:hover:not(.locked) { border-color: var(--accent); color: var(--text); }
.opt.correct { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--text); }
.opt.wrong { border-color: var(--warn); background: color-mix(in srgb, var(--warn) 14%, transparent); color: var(--text); }
.quiz-score { margin-top: 14px; padding: 18px; border-radius: 14px; background: var(--bg-soft); border: 1px solid var(--line-strong); font-size: 15px; display: none; position: sticky; bottom: 0; }
.quiz-score.show { display: block; }
.quiz-score b { color: var(--accent); font-size: 18px; }

/* Pages légales & ressources */
.page-modal { padding: 40px; position: relative; }
.page-modal h1 {font-family: 'Anton', sans-serif; font-size: clamp(34px, 5.5vw, 36px);text-transform: uppercase; letter-spacing: -.01em; line-height: .95; margin-bottom: 8px;}
.page-modal h2 { font-family: 'Anton', sans-serif; font-size: 25px; text-transform: uppercase; letter-spacing: -.005em; margin: 34px 0 10px;  color: var(--text); margin-bottom: 6px;}
.page-modal .updated { font-size: 13px; color: var(--text-faint); margin-bottom: 26px; }
.page-modal h3 { font-size: 19px; margin: 26px 0 10px; }
.page-modal h4 { font-size: 15px; margin: 18px 0 6px; color: var(--text); }
.page-modal p, .page-modal li { font-size: 14.5px; color: var(--text-soft); margin-bottom: 6px; }
.page-modal ul { padding-left: 20px; }
.page-modal a { color: var(--accent); }
.page-modal table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 13.5px; }
.page-modal th, .page-modal td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; color: var(--text-soft); }
.page-modal th { color: var(--text); background: var(--bg-soft); }
details.faq { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; background: var(--bg-soft); }
details.faq summary { padding: 16px; font-weight: 600; cursor: pointer; font-size: 15px; }
details.faq summary::-webkit-details-marker { color: var(--accent); }
details.faq p { padding: 0 16px 16px; }

/* ---------------------------------------------------------------------------
   13. BANNIÈRE & PANNEAU COOKIES (RGPD)
   --------------------------------------------------------------------------- */
.cookie-banner { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 200; width: min(940px, 94vw); background: var(--bg-soft); border: 1px solid var(--line-strong); border-radius: 18px; box-shadow: var(--shadow); padding: 22px 24px; display: none; }
.cookie-banner.show { display: block; animation: rise .5s ease; }
.cookie-banner h3 { font-size: 17px; margin-bottom: 6px; }
.cookie-banner p { font-size: 13.5px; color: var(--text-soft); margin-bottom: 16px; }
.cookie-banner p a { color: var(--accent); text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-actions button { font-weight: 700; font-size: 14px; padding: 11px 20px; border-radius: 11px; transition: all .18s; }
.btn-accept { background: var(--accent); color: var(--accent-ink); }
.btn-accept:hover { background: var(--accent-deep); }
.btn-reject { border: 1px solid var(--line-strong); color: var(--text); }
.btn-reject:hover { border-color: var(--text-soft); }
.btn-custom { border: 1px solid transparent; color: var(--text-soft); margin-left: auto; }
.btn-custom:hover { color: var(--text); }
/* Panneau de réglages détaillés */
.cookie-prefs { display: none; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.cookie-banner.expanded .cookie-prefs { display: block; }
.pref-row { display: flex; align-items: flex-start; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.pref-row:last-child { border-bottom: none; }
.pref-row .pref-text h4 { font-size: 14.5px; margin-bottom: 2px; }
.pref-row .pref-text p { font-size: 12.5px; margin: 0; }
/* Interrupteur */
.switch { position: relative; width: 44px; height: 24px; flex-shrink: 0; margin-top: 2px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider { position: absolute; inset: 0; background: var(--line-strong); border-radius: 100px; transition: .2s; }
.switch .slider::before { content: ""; position: absolute; height: 18px; width: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; }
.switch input:checked + .slider { background: var(--accent); }
.switch input:checked + .slider::before { transform: translateX(20px); }
.switch input:disabled + .slider { opacity: .5; cursor: not-allowed; }


/* ---------------------------------------------------------------------------
   14. délais d'apparition, bloc « 150 sports », et utilitaires.
   --------------------------------------------------------------------------- */
.d1{animation-delay:.05s}.d2{animation-delay:.12s}.d3{animation-delay:.2s}
.d4{animation-delay:.28s}.d5{animation-delay:.36s}.d6{animation-delay:.44s}
.hidden{display:none!important}
.skip-link{position:absolute;left:-999px;top:0;background:var(--accent);color:var(--accent-ink);padding:10px 16px;border-radius:0 0 10px 0;z-index:300;font-weight:700}
.skip-link:focus{left:0}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:6px}

/* Bloc « cap des 150 sports » */
.roadmap .cta h2{max-width:40ch}
.roadmap .cta {max-width: 750px; margin-inline: auto; }
.progress-wrap{max-width:520px;margin:22px auto 0}
.progress-bar{height:12px;border-radius:100px;background:var(--bg-soft-2);border:1px solid var(--line-strong);overflow:hidden}
.progress-bar i{display:block;height:100%;width:15%;background:linear-gradient(90deg,var(--accent-deep),var(--accent));border-radius:100px;transition:width 1.2s cubic-bezier(.2,.7,.2,1)}
.progress-meta{display:flex;justify-content:space-between;margin-top:10px;font-size:13px;color:var(--text-faint)}
.progress-meta b{color:var(--text)}

/* Onglet Compétitions & Athlètes : sous-titres */
.subhead{font-size:12px;text-transform:uppercase;letter-spacing:.12em;color:var(--accent-deep);font-weight:700;margin:6px 0 12px}
.subhead:not(:first-child){margin-top:26px}

/* Liens « officiel » désactivés visuellement quand href manquant déjà gérés. Pied de page : libellé légal discret */
.foot-bottom a{color:var(--text-faint)}
.foot-bottom a:hover{color:var(--accent)}

/* Utilitaires pages légales & ressources */
.muted{color:var(--text-faint);font-size:14px}
.back-link{display:inline-block;margin-top:28px;color:var(--accent);font-weight:700;text-decoration:none}
.back-link:hover{text-decoration:underline}

/* ==================================================================
   Bascule thème sur les fiches, quiz interactif, guillemets
   ================================================================== */

/* Bouton thème poussé à droite du menu (fiches + accueil) */
.nav .nav-links { margin-left: auto; }

/* Quiz statique : les réponses sont masquées PAR DÉFAUT (avec ou sans JS),
   et ne se révèlent qu'une fois la question validée (.answered ajouté par le JS). */
.quiz-static .opts li.ok { border-color: var(--line); color: var(--text-soft); background: transparent; }
.quiz-static .badge { display: none; }
.quiz-static.is-live .opts li { cursor: pointer; }
.quiz-static.is-live .opts li:hover { border-color: var(--accent); color: var(--text); }
.quiz-static .q.answered .opts li { cursor: default; }
.quiz-static .q.answered .opts li.ok {
  border-color: var(--accent); color: var(--text);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
}
.quiz-static .q.answered .opts li.ok .badge { display: inline; }
.quiz-static .q.answered .opts li.chosen-wrong {
  border-color: var(--warn); color: var(--text);
  background: color-mix(in srgb, var(--warn) 12%, transparent);
}

/* ---  footer + listes sans puces --- */

/* Footer plus foncé que le corps, cohérent sur toutes les pages */
footer { background: var(--bg-footer); }

/* Listes « Compétitions majeures / Sportifs & références » : plus de puces,
   présentation en cartes comme la section « Variantes ». */
.list-rich { gap: 12px; }
.list-rich .item { display: block; padding: 16px; }
.list-rich .item .b { display: none; }

/* --- explorateur, espacements, tableaux fédérations --- */

/* Carte catégorie active : même code couleur que les chips */
.cat.active { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--bg-soft)); }
.cat.active h3 { color: var(--text); }

/* Respiration entre l'en-tête de fiche et le premier schéma */
.fiche .modal-hero { margin-bottom: 24px; }

/* Tableaux des fédérations : plus lisibles, sans surcharge */
.fed-table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 16px 0 26px;
  font-size: 14px; border: 1px solid var(--line-strong); border-radius: 14px; overflow: hidden; }
.fed-table th, .fed-table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.fed-table thead th { background: color-mix(in srgb, var(--accent) 10%, var(--bg-soft-2));
  color: var(--text); font-size: 12.5px; text-transform: uppercase; letter-spacing: .07em; }
.fed-table tbody tr:nth-child(even) { background: color-mix(in srgb, var(--bg-soft) 55%, transparent); }
.fed-table tbody tr:last-child td { border-bottom: 0; }
.fed-table tbody tr:hover { background: color-mix(in srgb, var(--accent) 7%, transparent); }
.fed-table td { color: var(--text-soft); }
.fed-table a { color: var(--accent); text-decoration: none; }
.fed-table a:hover { text-decoration: underline; }


/* --- lien fédération aligné sur les pastilles voisines --- */
.fiche .related { align-items: stretch; }
.fiche .related .official {
  margin-top: 0;                 
  padding: 9px 14px;
  font-size: 14px;
  border-radius: 100px;
  background: var(--bg-soft);
}

/* --- bouton « Rejouer le quiz » --- */
.quiz-replay {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 16px 0 4px; padding: 10px 18px;
  font-size: 14px; font-weight: 700;
  color: var(--accent-ink); background: var(--accent);
  border: 1px solid var(--accent); border-radius: 100px;
  transition: filter .2s, transform .1s;
}
.quiz-replay:hover { filter: brightness(1.08); }
.quiz-replay:active { transform: translateY(1px); }
.quiz-replay[hidden] { display: none; }

/* ==================================================================
   BLOG — styles centralisés (étaient dupliqués en inline dans chaque
   article, d'où les incohérences d'affichage).
   ================================================================== */
.crumbs { font-size: 13px; color: var(--text-faint); margin: 22px 0 14px; }
.crumbs a { color: var(--accent); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin-top: 18px; }
.blog-card { display: flex; gap: 14px; padding: 18px; border: 1px solid var(--line-strong);
  border-radius: 16px; background: var(--bg-soft); text-decoration: none; color: var(--text);
  transition: border-color .2s, transform .2s; }
.blog-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.bc-cover { font-size: 32px; line-height: 1; flex-shrink: 0; }
.bc-body { display: flex; flex-direction: column; min-width: 0; }
.bc-tag { font-size: 12px; color: var(--accent-deep); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.blog-card h2 { font-family: 'Anton', sans-serif; font-size: 15.5px; line-height: 1.25; margin: 7px 0 5px; text-transform: none; border: 0; padding: 2px;   color: #e4f0cd;transition: color .2s;}
.blog-card:hover h2 { color: var(--accent); }
[data-theme="light"] .blog-card h2 { color: #698aaa; }
[data-theme="light"] .blog-card:hover h2 { color: var(--accent); }

.blog-card p { font-size: 14px; color: var(--text-faint); margin: 0 0 10px; line-height: 1.55; }
.bc-more { margin-top: auto; font-size: 13.5px; font-weight: 700; color: var(--accent); }

.blog-body p { margin: 0 0 14px; line-height: 1.7; }
.blog-body h2 { font-family: 'Anton', sans-serif; font-size: 22px; margin: 26px 0 10px;
  text-transform: none; border: 0; padding: 0; }
.blog-body b { color: var(--text); }
.blog-rel-h { font-family: 'Anton', sans-serif; font-size: 16px; text-transform: uppercase;
  letter-spacing: .05em; margin: 26px 0 10px; }

.blog-article .bc-tag { display: inline-block; margin-top: 4px; }

/* --- Catalogue : explorateur --- */
.page-catalogue #explorer { padding: 28px 0 0; }
.page-catalogue #explorer > .wrap { width: auto; }
.page-catalogue .explorer-bar { margin-bottom: 0; }
.page-catalogue section[id^="cat-"] { padding: 45px 0 0; }
.page-catalogue section[id^="cat-"] h2 { margin-bottom: 12px; }


/* ==================================================================
   FICHES SPORT — reglages quiz et encadres
   ================================================================== */
:root {
  /* --- Decalage vertical de la 1re question du quiz --- */
  --quiz-decalage: 26px;

  /* --- Hauteur des encadres Variantes / Competitions / Sportifs --- */
  --carte-padding-haut: 13px;  /* espace entre le haut de l'encadre et le titre h3 */
  --carte-padding-bas: 10px;  /* espace sous le dernier paragraphe */
  --carte-padding-x: 16px;
  --carte-espacement: 9px;    /* espace vertical entre deux encadres */
  --carte-titre-interligne: 1.1;  /* 2e levier : demi-interligne au-dessus du titre */
  --carte-titre-marge-bas: 2px;   /* espace entre le titre et son paragraphe */

  /* --- Fond des propositions de reponse du quiz --- */
  --quiz-option-fond:       color-mix(in srgb, var(--accent) 7%,  var(--bg-soft-2));
  --quiz-option-fond-survol:color-mix(in srgb, var(--accent) 18%, var(--bg-soft-2));
}

/* --- 1) Encadres Variantes / Competitions majeures / Sportifs & references --- */
.variant {
  padding: var(--carte-padding-haut) var(--carte-padding-x) var(--carte-padding-bas);
  margin-bottom: var(--carte-espacement);
}
.list-rich { gap: var(--carte-espacement); }
.list-rich .item {padding: var(--carte-padding-haut) var(--carte-padding-x) var(--carte-padding-bas);}

/* Selecteurs prefixes par .fiche  */
.fiche .variant h3, .fiche .variant h4,
.fiche .list-rich .item h3, .fiche .list-rich .item h5 {
  line-height: var(--carte-titre-interligne);
  margin-top: var(--carte-titre-decalage);
  margin-bottom: var(--carte-titre-marge-bas);
}
.fiche .variant p, .fiche .list-rich .item p { margin: 0; line-height: 1.45; }

/* --- Quiz --- */
.quiz-barre { display: flex; justify-content: flex-end; margin: 14px 0 0; }
.quiz-barre .quiz-replay { margin: 0; }
.quiz-static { margin-top: var(--quiz-decalage); }  /* --- Decalage de la 1re question --- */
.quiz-static .opts li { background: var(--quiz-option-fond); border: 1px solid var(--line-strong);
  transition: background .18s ease, border-color .18s ease, color .18s ease;}
.quiz-static .opts li.ok { background: var(--quiz-option-fond); border-color: var(--line-strong); }
.quiz-static.is-live .opts li:hover { background: var(--quiz-option-fond-survol); border-color: var(--accent); }
.quiz-static .q.answered .opts li.ok {background: color-mix(in srgb, var(--accent) 26%, var(--bg-soft-2));
  border-color: var(--accent);}
.quiz-static .q.answered .opts li.chosen-wrong { background: color-mix(in srgb, var(--warn) 22%, var(--bg-soft-2));
  border-color: var(--warn);}
.quiz-static .q.answered .opts li:not(.ok):not(.chosen-wrong) {background: var(--bg-soft); border-color: var(--line);}
.quiz-score { text-align: center; }
.quiz-replay-bas { display: flex; width: fit-content; margin: 18px auto 4px; }

/* Mention redactionnelle, deplacee  */
.fiche > .timeline-note { margin: 4px 0 0; }


/* ---------------------------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------------------------- */
@media (max-width: 980px) {
  .cats { grid-template-columns: repeat(2, 1fr); }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-search, .nav-links { display: none; }
  .btn-burger { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; border: 1px solid var(--line); background: var(--bg-soft); margin-left: auto; }
  .stats { gap: 28px; }
  .cta { padding: 36px 24px; }
  .modal-hero, .tab-body, .page-modal { padding-left: 22px; padding-right: 22px; }
  .tabs { padding-inline: 22px; }
  .btn-custom { margin-left: 0; }
  .blog-card { flex-direction: column; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-body h2 { font-size: 20px; }
  .fed-table { font-size: 13px; }
  .fed-table th, .fed-table td { padding: 9px 10px; }

  .nav-links.open {
    display: flex; flex-direction: column; gap: 4px;
    position: absolute; top: 64px; right: 4vw;
    min-width: 190px; padding: 10px;
    background: var(--bg-soft); border: 1px solid var(--line);
    border-radius: 14px; box-shadow: var(--shadow);
    z-index: 300;              
  }
  .nav-links.open a { padding: 12px 14px; font-size: 16px; border-radius: 8px; }
  .nav-links.open a:active { background: var(--bg-soft-2); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
