:root {
  --radius: 16px;
  --shadow: 0 10px 30px rgba(0,0,0,.32);
  --acc: #e30613;
  --acc2: #00b3ff;
}

/* Thème couleurs */
.gp-wrap,
[data-theme="dark"] {
  --bg: #0b0d10;
  --card: #12161c;
  --muted: #9aa4af;
  --text: #eaf0f6;
}
[data-theme="light"] {
  --bg: #f6f8fb;
  --card: #ffffff;
  --muted: #54606b;
  --text: #0f141a;
}

/* CONTAINER PRINCIPAL */
.gp-wrap {
  color: var(--text);
  background: radial-gradient(1200px 600px at 10% -10%,rgba(227,6,19,.18),transparent),
    radial-gradient(1200px 600px at 110% 10%,rgba(0,179,255,.12),transparent),
    var(--bg);
  border-radius: var(--radius);
  padding: 28px 0;
  width: 100%;
}

/* GRID LAYOUT */
.gp-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
  padding-bottom: 96px;
  padding-left: 16px;
  padding-right: 16px;
  box-sizing: border-box;
  width: 100%;
}
@media (max-width: 700px) {
  .gp-grid { padding-left: 5px; padding-right: 5px; }
}

/* CARTES ET BLOCS */
.gp-card, .gp-hero, .gp-prono-bloc, .gp-sticky, .gp-sticky .gp-sticky-inner {
  border-radius: var(--radius);
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 14px 0;
}

/* HERO */
.gp-hero {
  display: grid;
  gap: 14px;
  background: linear-gradient(180deg,rgba(255,255,255,.04),rgba(255,255,255,.02));
  border: 1px solid rgba(0,0,0,.08);
  padding: 22px;
  box-shadow: var(--shadow);
}
.gp-logos {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.gp-logos img { height: 36px; object-fit: contain }
.gp-circuit {
  display: block;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: .02em;
  margin-top: 4px;
  color: #fff;
}
.gp-title { font-size: clamp(22px,3.6vw,36px);line-height:1.1;margin:0 }
.gp-sub { color: var(--muted);margin:0 }
.gp-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.gp-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.08);
  background: linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,.02));
  cursor: pointer;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 15px;
  transition: filter .14s, box-shadow .12s;
}
.gp-cta.acc {
  background: linear-gradient(180deg,rgba(227,6,19,.22),rgba(227,6,19,.12));
  border-color: rgba(227,6,19,.35);
}
.gp-cta.sky {
  background: linear-gradient(180deg,rgba(0,179,255,.22),rgba(0,0,0,0));
  border-color: rgba(0,179,255,.35);
}
.gp-cta.ghost { background: transparent }
.gp-cta:hover { filter: brightness(1.1); box-shadow:0 0 0 2px var(--acc2,.16); }

/* COUNTDOWNS */
.gp-count2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(160px,1fr));
  gap: 14px;
  justify-items: center;
  align-items: center;
  margin-top: 6px;
}
@media (max-width:640px) {
  .gp-count2 { grid-template-columns: 1fr; }
}
.cd-card {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 460px;
  display: grid;
  place-items: center;
  padding: 14px;
  border-radius: 16px;
  background: linear-gradient(180deg,rgba(0,0,0,.10),rgba(0,0,0,.04));
  border: 1px solid rgba(0,0,0,.12);
  box-shadow: inset 0 0 40px rgba(0,0,0,.2);
}
.cd-title { font-size:14px;letter-spacing:.4px;color:var(--muted);margin-bottom:6px }
.cd-time { font-variant-numeric:tabular-nums;letter-spacing:.5px;font-weight:800;font-size:clamp(28px,8vw,44px);line-height:1 }
.cd-glow { position:absolute;inset:-2px;border-radius:18px;background:conic-gradient(from 0deg at 50% 50%,var(--acc),var(--acc2),var(--acc));filter:blur(16px);opacity:.25;z-index:-1 }

/* CARD / SECTION */
.gp-card {
  background: var(--card);
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: var(--shadow);
  overflow: hidden;
  padding: 0;
}
.gp-card h2, .mgp-h2 {
  margin: 0;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(0,0,0,.06);
  font-size: 24px !important;  /* H2 plus gros */
  font-weight: 700;
}
.gp-card h3 {
  font-size: 20px !important;  /* H3 plus petit */
  font-weight: 600;
  margin: 0 0 10px 0;
}
.pad { padding: 18px }
.mgp-inline-h2 { margin:0 0 8px 0;font-size:24px }

/* TABLE (Bloc horaires) */
.gp-table {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px
}
.gp-item {
  display: grid;
  grid-template-columns: minmax(120px,1fr) 1fr max-content;
  align-items: center;
  gap: 4px;
  background: linear-gradient(90deg,rgba(0,0,0,.04),rgba(0,0,0,.02));
  border: 1px solid rgba(0,0,0,.08);
  padding: 4px 8px;
  border-radius: 14px;
  margin: 0 !important;
}
.gp-item:hover { transform: translateY(-1px); box-shadow:0 8px 18px rgba(0,0,0,.18) }
.gp-day { font-weight:700 }
.gp-session { display:flex;align-items:center;gap:8px;min-width:0 }
.gp-session .gp-small { white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100% }
.gp-hour { justify-self:end;white-space:nowrap }
@media (max-width:560px) {
  .gp-item { grid-template-columns:1fr; row-gap:4px }
  .gp-hour { justify-self:start }
}
.gp-chip {
  font-size:12px;
  padding:4px 8px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.14)
}
.is-sprint { background:rgba(227,6,19,.15);border-color:rgba(227,6,19,.35) }
.is-course { background:rgba(0,179,255,.15);border-color:rgba(0,179,255,.35) }
.gp-ops { display:flex;gap:10px;flex-wrap:wrap;padding:0 16px 16px }
.gp-small { font-size:13px;color:var(--muted) }

/* BLOCS PRONO (sprint/course) */
.gp-prono-bloc {
  width: 100%;
  max-width: 100%;
  margin: 0 0 16px 0;
  padding: 0 3px 18px 3px;
  box-sizing: border-box;
  background: linear-gradient(180deg,rgba(227,6,19,.06),rgba(255,255,255,.02));
  border-top: 2px solid rgba(227,6,19,.25);
  box-shadow: 0 2px 14px rgba(0,0,0,.10);
}

/* HEAD PRONO */
.gp-prono-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 0 6px 0;
}
.gp-prono-type {
  font-size: 19px;
  font-weight: 700;
  color: var(--acc);
  letter-spacing: .03em;
  background: rgba(227,6,19,.10);
  border-radius: 8px;
  padding: 5px 15px;
  margin-right: 8px;
  box-shadow: 0 2px 8px rgba(227,6,19,.04);
}
.gp-prono-head .lead { margin:0 }

/* TOP 5 PILOTES */
.gp-options {
  display: grid;
  grid-template-columns: repeat(5,1fr);
  gap: 10px;
  margin-bottom: 8px;
  margin-top: 8px;
}
@media (max-width: 900px) {
  .gp-options { grid-template-columns:1fr 1fr 1fr }
}
@media (max-width: 640px) {
  .gp-options { grid-template-columns:1fr 1fr }
}
.gp-opt {
  padding: 12px 4px 10px 4px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.12);
  background: linear-gradient(180deg,rgba(255,255,255,.08),rgba(255,255,255,.03));
  text-align: center;
  cursor: pointer;
  min-width: 0;
  position:relative;
  transition: box-shadow .13s, border-color .11s;
}
.gp-opt.selected, .gp-opt[selected] { outline: 2px solid var(--acc); border-color: var(--acc2,.17); }
.gp-opt .name {
  display:block;
  color:var(--text);
  font-weight:700;
  margin-bottom:6px;
  font-size: 15px;
  word-break: break-word;
}
.gp-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(0,0,0,.08);
  overflow: hidden;
  margin: 4px 0 0 0;
}
.gp-bar>i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg,var(--acc),var(--acc2));
  width: 0%;
  transition: width .22s;
}

/* BTN Voir tous les pilotes */
.show-all-pilots {
  margin: 10px auto 0 auto;
  display: block;
  width: fit-content;
  background:rgba(0,179,255,.13);
  border-color:rgba(0,179,255,.29);
}
.show-all-pilots:after {
  content:'▼';
  margin-left:7px;
  font-size:13px;
  opacity:.66;
}
.gp-dropdown {
  display: none;
  margin: 10px 0 14px 0;
}
.gp-dropdown.active,
.gp-dropdown[style*="display:block"] { display: flex !important; gap: 12px; align-items: center; flex-wrap: wrap }
.gp-dropdown select {
  min-width: 180px;
  max-width: 99vw;
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 15px;
  border: 1px solid rgba(0,0,0,.17);
  background: var(--card);
  color: var(--text);
}
.gp-dropdown button {
  padding: 8px 16px;
  margin-left: 8px;
  border-radius: 10px;
  background: var(--acc2);
  color: #fff;
  border: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
}
.gp-dropdown select:focus { outline: 2px solid var(--acc2); }

#topPickSprint, #topPickCourse {
  margin: 18px 0 10px 0;
  display: flex;
  align-items: center;
  gap: 14px;
}
.avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  background: rgba(255,255,255,.09);
  color: var(--acc);
  border: 2px solid rgba(0,179,255,.19);
  font-size: 22px;
  box-shadow: 0 2px 8px rgba(0,0,0,.10);
}

/* Bouton Betclic */
.gp-betclic-btn {
  margin: 18px 0 0 0;
  width: 100%;
  max-width: 480px;
  font-size: 19px;
  font-weight: 800;
  background:linear-gradient(90deg,#e30613 80%,#ff2b56 100%);
  color: #fff !important;
  border-color: #e30613;
  text-align:center;
  letter-spacing:.02em;
  box-shadow:0 4px 22px rgba(227,6,19,.10);
  padding: 17px 8px 17px 8px;
  border-radius: 13px;
  transition: filter .14s;
}
.gp-betclic-btn:hover { filter:brightness(1.09) }

/* Sticky CTA : flottant + angle réduit + boutons centrés */
.gp-sticky {
  position: fixed !important;
  left: 0; right: 0; bottom: 0;
  z-index: 9999;
  display: flex;
  justify-content: center;
  background: none !important;
  pointer-events: none;
}
.gp-sticky-inner {
  background: rgba(15,17,22,0.97);
  border-radius: 10px 10px 0 0 !important;
  box-shadow: 0 2px 18px rgba(0,0,0,.24);
  display: flex;
  width: 100%;
  max-width: 600px;
  pointer-events: all;
  margin: 0 auto;
  padding: 8px 0;
  justify-content: center;
  align-items: center;
}
.gp-sticky .gp-cta {
  flex: 1 1 50%;
  margin: 0 8px;
  min-width: 150px;
  max-width: 50%;
  border-radius: 7px !important;
  font-size: 1.16rem;
  justify-content: center;
}

/* Modernise le select */
.gp-dropdown select {
  background: #171b22;
  color: #fff;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1.5px solid #272b32;
  font-size: 16px;
  font-family: inherit;
  box-shadow: 0 2px 18px rgba(0,0,0,0.13);
  margin-right: 10px;
  outline: none;
  min-width: 200px;
  max-width: 98vw;
}
.gp-dropdown select:focus {
  border-color: #e30613;
  box-shadow: 0 2px 12px rgba(227,6,19,0.07);
}
.gp-dropdown option {
  background: #21242b;
  color: #fff;
}
/* Bouton voter modernisé */
.gp-dropdown button,
.gp-dropdown .gp-vote-btn {
  padding: 12px 20px;
  background: linear-gradient(90deg, #e30613 80%, #ff3c7d 100%);
  color: #fff;
  font-weight: 700;
  border-radius: 12px;
  border: none;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 1px 6px rgba(0,0,0,0.11);
  transition: background 0.18s, box-shadow 0.18s;
}
.gp-dropdown button:hover,
.gp-dropdown .gp-vote-btn:hover {
  background: linear-gradient(90deg, #ff3c7d 80%, #e30613 100%);
  box-shadow: 0 3px 16px rgba(227,6,19,0.11);
}
.gp-dropdown {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #16181e;
  border-radius: 14px;
  padding: 16px 14px;
  margin-top: 10px;
  box-shadow: 0 3px 20px rgba(0,0,0,0.11);
}
.gp-dropdown select option:disabled {
  color: #aaa !important;
  background: #222 !important;
}

/* MOBILE FULL WIDTH + angles arrondis, pas de margin/padding parasite */
@media (max-width: 600px) {
  .gp-wrap,
  .gp-grid {
    max-width: 100vw !important;
    width: 100%;
    border-radius: 12px !important;
    margin: 0 auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box;
  }
  .gp-card, .gp-hero, .gp-prono-bloc, .gp-sticky, .gp-sticky .gp-sticky-inner {
    border-radius: 12px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100%;
    max-width: 100vw !important;
    box-sizing: border-box;
  }
  .gp-grid { gap: 9px !important; }
  .pad { padding-left: 8px !important; padding-right: 8px !important; }
}

/* Empêche le débordement général */
body, html {
  overflow-x: hidden;
}

/* Footer natif : on lui laisse sa largeur, couleurs, pas de border-radius forcé */
#footer, footer, .site-footer {
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  margin: 0 auto !important;
  border-radius: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
/* FAQ MotoGP Accordéon */
.gp-faq { margin-top: 28px; }
.faq-accordion { width: 100%; }
.faq-item { margin-bottom: 11px; border-radius: 10px; overflow: hidden; background: var(--card); border: 1px solid rgba(0,0,0,.08); }
.faq-q {
  width: 100%; background: none; border: none; text-align: left;
  font-size: 17px; font-weight: 700; color: var(--acc); padding: 14px 18px; cursor: pointer;
  transition: background .18s, color .18s;
  outline: none;
  position: relative;
}
.faq-q[aria-expanded="true"] { background: rgba(227,6,19,0.09); color: #fff; }
.faq-q:after {
  content: '▼';
  position: absolute; right: 20px; top: 50%; transform: translateY(-50%) rotate(0deg);
  font-size: 13px; color: var(--acc); transition: transform .18s;
}
.faq-q[aria-expanded="true"]:after { transform: translateY(-50%) rotate(180deg); }
.faq-a {
  max-height: 0; overflow: hidden;
  background: var(--bg); color: var(--text);
  transition: max-height .32s cubic-bezier(.46,.03,.52,.96);
  padding: 0 18px;
}
.faq-q[aria-expanded="true"] + .faq-a { padding-top: 7px; padding-bottom: 15px; }
.faq-a p { margin: 0; }
@media (max-width:600px) {
  .faq-q, .faq-a { font-size: 16px; padding-left: 12px; padding-right: 12px; }
}
