/*
Theme Name: Tournois Bowling V4 footer simple
Theme URI: https://tournois-bowling.com
Author: Tournois Bowling
Description: Thème WordPress complet, sans Elementor, pour une plateforme de tournois de bowling. Page d'accueil avec accès Joueurs et Organisateurs, fond visuel bleu/orange, design responsive et personnalisable.
Version: 1.6.3
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: tournois-bowling
*/

:root {
  --tb-navy: #020a23;
  --tb-blue: #0057d8;
  --tb-blue-light: #21a7ff;
  --tb-orange: #ff6a00;
  --tb-orange-2: #ff9a1e;
  --tb-white: #ffffff;
  --tb-muted: rgba(255,255,255,.76);
  --tb-shadow: rgba(0,0,0,.55);
  --tb-card: rgba(3, 14, 44, .74);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--tb-white);
  background: var(--tb-navy);
}
body.admin-bar .tb-header { top: 32px; }
a { color: inherit; }
img { max-width: 100%; height: auto; }

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

.tb-site {
  min-height: 100vh;
  background: var(--tb-navy);
}

.tb-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  width: 100%;
  backdrop-filter: blur(18px);
  background: linear-gradient(180deg, rgba(2, 10, 35, .85), rgba(2, 10, 35, .20));
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.tb-header-inner {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.tb-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  font-weight: 950;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.tb-brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 0 24px rgba(33,167,255,.28);
}
.tb-brand-text { font-size: clamp(1rem, 2vw, 1.35rem); }
.tb-brand-text span { color: var(--tb-orange); }

.tb-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0;
  padding: 0;
}
.tb-nav a {
  text-decoration: none;
  font-weight: 800;
  font-size: .92rem;
  color: rgba(255,255,255,.82);
  transition: color .2s ease, transform .2s ease;
}
.tb-nav a:hover { color: var(--tb-orange); transform: translateY(-1px); }

.tb-main { min-height: 100vh; }

.tb-hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background-color: var(--tb-navy);
  background-image:
    radial-gradient(circle at 80% 55%, rgba(0, 100, 255, .20), transparent 34%),
    linear-gradient(90deg, rgba(2, 10, 35, .98) 0%, rgba(2, 10, 35, .72) 40%, rgba(2, 10, 35, .28) 100%),
    var(--tb-bg-image);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  padding: 40px 0 70px;
}

.tb-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255,255,255,.06) 0 1px, transparent 1px 100%),
    radial-gradient(circle at 15% 15%, rgba(33,167,255,.18), transparent 28%),
    radial-gradient(circle at 55% 80%, rgba(255,106,0,.16), transparent 34%);
  background-size: 56px 56px, auto, auto;
  opacity: .55;
}

.tb-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 170px;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(2,10,35,.92));
}

.tb-container {
  position: relative;
  z-index: 2;
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
}

.tb-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid rgba(33,167,255,.35);
  border-radius: 999px;
  background: rgba(3, 14, 44, .58);
  box-shadow: 0 0 35px rgba(0,87,216,.28);
  color: var(--tb-muted);
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  font-size: .78rem;
}
.tb-eyebrow::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 99px;
  background: var(--tb-orange);
  box-shadow: 0 0 18px var(--tb-orange);
}

.tb-title {
  margin: 24px 0 14px;
  max-width: 850px;
  font-size: clamp(2.4rem, 6vw, 5.8rem);
  line-height: .92;
  letter-spacing: -.055em;
  font-weight: 1000;
  text-transform: uppercase;
  text-wrap: balance;
}
.tb-title strong {
  color: var(--tb-orange);
  text-shadow: 0 0 32px rgba(255,106,0,.30);
}
.tb-subtitle {
  margin: 0 0 40px;
  max-width: 720px;
  color: var(--tb-muted);
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  line-height: 1.55;
  font-weight: 650;
}

.tb-access-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: stretch;
}

.tb-access-card {
  display: block;
  position: relative;
  isolation: isolate;
  min-height: 460px;
  border-radius: 30px;
  overflow: hidden;
  text-decoration: none;
  background: var(--tb-card);
  box-shadow: 0 30px 90px var(--tb-shadow), inset 0 0 0 1px rgba(255,255,255,.12);
  transform: translateZ(0);
  transition: transform .24s ease, box-shadow .24s ease, filter .24s ease;
}
.tb-access-card:hover,
.tb-access-card:focus-visible {
  transform: translateY(-10px) scale(1.012);
  box-shadow: 0 42px 110px rgba(0,0,0,.70), 0 0 48px rgba(33,167,255,.22), inset 0 0 0 1px rgba(255,255,255,.20);
  filter: saturate(1.08);
}
.tb-access-card img {
  width: 100%;
  height: 100%;
  min-height: 460px;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.tb-access-card:hover img { transform: scale(1.035); }
.tb-access-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(2,10,35,.72));
  z-index: 1;
  pointer-events: none;
}

.tb-card-label {
  position: absolute;
  z-index: 2;
  right: 22px;
  bottom: 22px;
  padding: 12px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--tb-orange), var(--tb-orange-2));
  box-shadow: 0 12px 35px rgba(255,106,0,.35);
  font-weight: 1000;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.tb-section {
  padding: 86px 0;
  background: linear-gradient(180deg, rgba(2,10,35,.96), rgba(2,10,35,1));
}
.tb-section h2 {
  margin: 0 0 22px;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
  text-transform: uppercase;
}
.tb-section h2 strong { color: var(--tb-orange); }
.tb-section p {
  max-width: 780px;
  color: var(--tb-muted);
  font-size: 1.1rem;
  line-height: 1.7;
}

.tb-content-page {
  min-height: 100vh;
  padding: 62px 0 90px;
  background:
    linear-gradient(rgba(2,10,35,.88), rgba(2,10,35,.96)),
    var(--tb-bg-image);
  background-size: cover;
  background-position: center;
}
.tb-content-box {
  color: #17213f;
  background: rgba(255,255,255,.94);
  border-radius: 28px;
  padding: clamp(28px, 5vw, 64px);
  box-shadow: 0 35px 90px rgba(0,0,0,.45);
}
.tb-content-box h1,
.tb-content-box h2,
.tb-content-box h3 { color: #071534; }
.tb-content-box a { color: #0057d8; }

.tb-footer {
  padding: 28px 0;
  background: #010718;
  border-top: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.65);
  font-size: .92rem;
}
.tb-footer-inner {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 22px;
}
.tb-footer-copy {
  justify-self: start;
}
.tb-footer-signature {
  justify-self: end;
  text-align: right;
}
.tb-footer-menu {
  justify-self: center;
}
.tb-footer-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px 18px;
  flex-wrap: wrap;
}
.tb-footer-menu a {
  color: rgba(255,255,255,.78);
  text-decoration: none;
  font-weight: 700;
  transition: color .2s ease;
}
.tb-footer-menu a:hover,
.tb-footer-menu a:focus {
  color: var(--tb-orange-2);
}

@media (max-width: 900px) {
  body.admin-bar .tb-header { top: 46px; }
  .tb-header-inner { width: min(100% - 26px, 1240px); min-height: 70px; }
  .tb-footer-inner { grid-template-columns: 1fr; text-align: center; }
  .tb-footer-copy, .tb-footer-menu, .tb-footer-signature { justify-self: center; text-align: center; }
  .tb-nav { display: none; }
  .tb-container { width: min(100% - 26px, 1240px); }
  .tb-hero { padding-top: 35px; background-attachment: scroll; }
  .tb-access-grid { grid-template-columns: 1fr; gap: 22px; }
  .tb-access-card, .tb-access-card img { min-height: 420px; }
}

@media (max-width: 560px) {
  .tb-brand-mark { width: 38px; height: 38px; border-radius: 12px; }
  .tb-brand-text { font-size: .92rem; }
  .tb-title { font-size: clamp(2.05rem, 14vw, 3.5rem); }
  .tb-subtitle { font-size: 1rem; margin-bottom: 26px; }
  .tb-access-card, .tb-access-card img { min-height: 360px; border-radius: 22px; }
  .tb-card-label { right: 16px; bottom: 16px; padding: 10px 14px; font-size: .82rem; }
  .tb-footer-inner { width: min(100% - 26px, 1240px); }
}

/* Page Organisateurs */
.tb-creator-page {
  background: var(--tb-navy);
  color: var(--tb-white);
}
.tb-creator-hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: 60px 0 90px;
  overflow: hidden;
  background-image:
    radial-gradient(circle at 82% 48%, rgba(0, 96, 255, .30), transparent 30%),
    radial-gradient(circle at 72% 86%, rgba(255, 106, 0, .24), transparent 28%),
    linear-gradient(90deg, rgba(2,10,35,.98) 0%, rgba(2,10,35,.82) 48%, rgba(2,10,35,.42) 100%),
    var(--tb-bg-image);
  background-size: cover;
  background-position: center center;
}
.tb-creator-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255,255,255,.06) 0 1px, transparent 1px 100%),
    linear-gradient(180deg, transparent 70%, rgba(2,10,35,1));
  background-size: 58px 58px, auto;
  pointer-events: none;
}
.tb-creator-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .75fr);
  gap: 46px;
  align-items: center;
}
.tb-creator-copy h1 {
  margin: 24px 0 20px;
  max-width: 820px;
  font-size: clamp(2.5rem, 6vw, 5.8rem);
  line-height: .92;
  text-transform: uppercase;
  letter-spacing: -.055em;
  font-weight: 1000;
}
.tb-creator-copy h1 strong { color: var(--tb-orange); text-shadow: 0 0 38px rgba(255,106,0,.34); }
.tb-creator-lead {
  max-width: 760px;
  margin: 0 0 32px;
  color: var(--tb-muted);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.65;
  font-weight: 650;
}
.tb-creator-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.tb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 22px;
  border-radius: 999px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .035em;
  font-weight: 1000;
  border: 1px solid rgba(255,255,255,.15);
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease;
}
.tb-btn:hover { transform: translateY(-3px); }
.tb-btn-login {
  background: var(--tb-blue);
  border-color: var(--tb-blue);
  color: #fff;
}
.tb-btn-login:hover, .tb-btn-login:focus-visible { background: #0045ae; color: #fff; }
.tb-btn-login:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.tb-btn-primary {
  background: linear-gradient(135deg, var(--tb-orange), var(--tb-orange-2));
  box-shadow: 0 18px 44px rgba(255,106,0,.32);
  color: #fff;
}
.tb-btn-secondary {
  background: rgba(255,255,255,.08);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.14), 0 16px 40px rgba(0,0,0,.25);
}
.tb-creator-panel {
  min-height: 430px;
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(33,167,255,.15), rgba(255,106,0,.10)),
    rgba(3,14,44,.76);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 35px 100px rgba(0,0,0,.52), 0 0 56px rgba(33,167,255,.20);
  padding: 26px;
  backdrop-filter: blur(18px);
}
.tb-mini-dashboard {
  height: 100%;
  border-radius: 24px;
  padding: 26px;
  background: rgba(1, 8, 28, .70);
  border: 1px solid rgba(33,167,255,.24);
}
.tb-mini-dashboard span {
  display: inline-flex;
  color: var(--tb-orange);
  font-weight: 1000;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .78rem;
}
.tb-mini-dashboard strong {
  display: block;
  margin: 14px 0 26px;
  font-size: clamp(1.8rem, 3vw, 2.65rem);
  line-height: 1;
  text-transform: uppercase;
}
.tb-mini-dashboard ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.tb-mini-dashboard li {
  padding: 14px 14px 14px 42px;
  border-radius: 16px;
  background: rgba(255,255,255,.06);
  position: relative;
  color: rgba(255,255,255,.84);
  font-weight: 800;
}
.tb-mini-dashboard li::before {
  content: "✓";
  position: absolute;
  left: 15px;
  top: 13px;
  color: var(--tb-orange);
  font-weight: 1000;
}
.tb-creator-section,
.tb-creator-pricing,
.tb-creator-how,
.tb-creator-final {
  padding: 88px 0;
  background: linear-gradient(180deg, rgba(2,10,35,1), rgba(3,12,38,1));
}
.tb-section-head { max-width: 850px; margin-bottom: 38px; }
.tb-section-head-center { text-align: center; margin-left: auto; margin-right: auto; }
.tb-kicker {
  color: var(--tb-orange);
  font-weight: 1000;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .82rem;
}
.tb-section-head h2,
.tb-creator-how h2,
.tb-creator-final h2 {
  margin: 12px 0 18px;
  font-size: clamp(2rem, 4.6vw, 4rem);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -.035em;
}
.tb-section-head p,
.tb-creator-final p {
  color: var(--tb-muted);
  line-height: 1.7;
  font-size: 1.08rem;
}
.tb-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.tb-feature-card,
.tb-price-card,
.tb-final-box {
  background: rgba(255,255,255,.065);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 28px;
  padding: 26px;
  box-shadow: 0 24px 70px rgba(0,0,0,.32);
}
.tb-feature-icon {
  display: inline-flex;
  width: 46px;
  height: 46px;
  border-radius: 15px;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--tb-blue), var(--tb-blue-light));
  font-weight: 1000;
  box-shadow: 0 12px 34px rgba(33,167,255,.25);
}
.tb-feature-card h3,
.tb-price-card h3 {
  margin: 20px 0 12px;
  font-size: 1.25rem;
  text-transform: uppercase;
}
.tb-feature-card p,
.tb-price-card p,
.tb-price-card li,
.tb-pricing-disclaimer,
.tb-steps li {
  color: var(--tb-muted);
  line-height: 1.65;
}
.tb-price-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
  max-width: 980px;
  margin: 0 auto;
}
.tb-price-card { position: relative; padding: 34px; }
.tb-price-card-highlight {
  border-color: rgba(255,106,0,.55);
  box-shadow: 0 28px 90px rgba(255,106,0,.15), 0 24px 70px rgba(0,0,0,.36);
}
.tb-price-badge {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,106,0,.15);
  color: var(--tb-orange);
  font-weight: 1000;
  text-transform: uppercase;
  font-size: .78rem;
}
.tb-price {
  margin-top: 16px;
  font-size: clamp(3rem, 7vw, 5.6rem);
  line-height: 1;
  color: #fff;
  font-weight: 1000;
  letter-spacing: -.06em;
}
.tb-price-note { margin-top: 6px; }
.tb-price-card ul { padding-left: 20px; margin: 20px 0 26px; }
.tb-pricing-disclaimer { max-width: 860px; margin: 22px auto 0; text-align: center; font-size: .96rem; }
.tb-how-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: 40px; align-items: start; }
.tb-steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 16px; counter-reset: step; }
.tb-steps li {
  position: relative;
  padding: 22px 22px 22px 76px;
  border-radius: 22px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
}
.tb-steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 22px;
  top: 24px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--tb-orange);
  color: #fff;
  font-weight: 1000;
}
.tb-steps strong { color: #fff; }
.tb-creator-final { padding-top: 20px; }
.tb-final-box { text-align: center; background: linear-gradient(135deg, rgba(0,87,216,.20), rgba(255,106,0,.12)); }
.tb-final-box p { margin-left: auto; margin-right: auto; max-width: 720px; }

@media (max-width: 980px) {
  .tb-creator-hero-grid, .tb-how-grid { grid-template-columns: 1fr; }
  .tb-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tb-creator-panel { min-height: auto; }
}
@media (max-width: 680px) {
  .tb-creator-hero { padding-top: 42px; }
  .tb-feature-grid, .tb-price-grid { grid-template-columns: 1fr; }
  .tb-creator-actions { flex-direction: column; }
  .tb-btn { width: 100%; }
  .tb-price-card { padding: 26px; }
}


.tb-creator-lead-small {
  font-size: 1rem;
  color: rgba(255,255,255,.78);
}

.tb-link-plan {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.tb-link-plan a {
  display: grid;
  gap: 6px;
  padding: 20px 22px;
  text-decoration: none;
  border-radius: 18px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 18px 50px rgba(0,0,0,.26);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.tb-link-plan a:hover {
  transform: translateY(-3px);
  background: rgba(255,106,0,.13);
  border-color: rgba(255,106,0,.45);
}

.tb-link-plan strong {
  color: #fff;
  font-size: 1.12rem;
}

.tb-link-plan span {
  color: rgba(255,255,255,.74);
}

.tb-btn-disabled {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.24);
  color: rgba(255,255,255,.72);
  font-weight: 800;
  cursor: not-allowed;
}
.tb-price-debug {
  margin-top: 20px;
  padding: 18px;
  border-radius: 16px;
  background: rgba(0,0,0,.55);
  color: #fff;
  white-space: pre-wrap;
  overflow: auto;
  font-size: 12px;
}
