/* Fraltis Group — basketball / FR */
:root {
  --bg: #0f1419;
  --bg-card: #1a222d;
  --bg-elevated: #232d3a;
  --text: #e8edf2;
  --text-muted: #9aa8b6;
  --accent: #e85d04;
  --accent-soft: rgba(232, 93, 4, 0.15);
  --court: #c45c26;
  --line: #2a3544;
  --radius: 12px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 20, 25, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
  color: var(--accent);
}

.brand-logo {
  height: 65px;
  width: auto;
  max-width: none;
}

.logo-mark {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--court), var(--accent));
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
}

.nav-main {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-main a {
  color: var(--text-muted);
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-size: 0.95rem;
  text-decoration: none;
}

.nav-main a:hover,
.nav-main a.is-active {
  color: var(--text);
  background: var(--bg-elevated);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
}

@media (max-width: 768px) {
  .brand-logo {
    height: 40px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-main {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-card);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem;
  }

  .nav-main.is-open {
    display: flex;
  }

  .nav-main a {
    width: 100%;
  }
}

/* Main */
main {
  flex: 1;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Hero */
.hero {
  padding: 3rem 0 3.5rem;
  background: radial-gradient(ellipse 80% 60% at 50% -20%, var(--accent-soft), transparent),
    linear-gradient(180deg, var(--bg-card) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 700;
  line-height: 1.2;
}

.hero-lead {
  margin: 0;
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 42rem;
}

/* Sections */
.section {
  padding: 3rem 0;
}

.section-title {
  margin: 0 0 1.5rem;
  font-size: 1.5rem;
  font-weight: 700;
}

.section-intro {
  margin: 0 0 2rem;
  color: var(--text-muted);
  max-width: 48rem;
}

/* Competition grid */
.grid-events {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.event-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: border-color 0.2s;
}

.event-card:hover {
  border-color: var(--accent);
}

.event-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 600;
}

.event-card .month {
  margin: 0;
  font-size: 0.85rem;
  color: var(--accent);
}

/* Features */
.grid-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.feature {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.feature h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.feature p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Responsible block */
.block-responsible {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
}

.block-responsible p:last-child {
  margin-bottom: 0;
}

/* Newsletter */
.newsletter {
  background: linear-gradient(135deg, var(--bg-elevated), var(--bg-card));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 36rem;
}

.newsletter h2 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

.newsletter p {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.newsletter-form input {
  flex: 1;
  min-width: 180px;
  padding: 0.65rem 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
}

.newsletter-form button {
  padding: 0.65rem 1.25rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.newsletter-form button:hover {
  filter: brightness(1.08);
}

.newsletter-form button:disabled {
  opacity: 0.7;
  cursor: wait;
}

/* Brands */
.brands-section .section-title {
  margin-bottom: 1rem;
}

.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.brand-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  transition: border-color 0.2s, transform 0.2s;
}

.brand-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  text-decoration: none;
  color: var(--accent);
}

.brand-card span {
  text-align: center;
}

.brands-grid--logos .brand-card--logo {
  min-height: 100px;
  padding: 1.25rem;
}

.brand-card--logo img {
  max-height: 44px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  margin: 0 auto;
}

/* Pre-footer legal strip */
.pre-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-card);
  padding: 1.25rem 0;
}

.pre-footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.pre-footer a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.pre-footer a:hover {
  color: var(--accent);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: #0a0e12;
  padding: 2rem 0;
}

.footer-regulators {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.25rem 2rem;
  margin-bottom: 1.5rem;
}

.footer-regulators a {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.footer-regulators a:hover {
  opacity: 1;
  text-decoration: none;
}

.footer-regulators img {
  max-height: 48px;
  width: auto;
  object-fit: contain;
}

.footer-regulators .badge-18 {
  min-width: 52px;
  min-height: 52px;
  max-height: 52px;
}

.footer-copy {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

.footer-copy strong {
  color: var(--text);
  font-weight: 600;
}

/* Inner pages */
.page-hero {
  padding: 2.5rem 0 2rem;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.page-hero .lead {
  margin: 0;
  color: var(--text-muted);
  max-width: 40rem;
}

.prose {
  padding: 2rem 0 3rem;
}

.prose p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.prose h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.2rem;
  color: var(--text);
}

.prose ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  color: var(--text-muted);
}

.prose li {
  margin-bottom: 0.35rem;
}

/* Help links (responsabilité) */
.help-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  max-width: 50rem;
}

.help-link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  min-height: 92px;
  background: #2a3544;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s;
}

.help-link img {
  max-height: 52px;
  width: auto;
  object-fit: contain;
}

.help-link:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
  text-decoration: none;
}

.help-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  text-decoration: none;
}

/* Contact */
.contact-block {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  max-width: 28rem;
}

.contact-block p {
  margin: 0 0 0.5rem;
  color: var(--text-muted);
}

.contact-block a {
  word-break: break-all;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--bg-card);
  border-top: 1px solid var(--line);
  padding: 1rem 1.25rem;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.35);
}

.cookie-banner.is-visible {
  display: flex;
}

.cookie-banner p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 520px;
}

.cookie-banner .btn-accept {
  padding: 0.5rem 1.25rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.cookie-banner .btn-accept:hover {
  filter: brightness(1.08);
}

/* ——— Homepage (style proche Boulancia) ——— */
html:not(.age-verified) body.age-gate-open {
  overflow: hidden;
}

body.cookie-modal-open {
  overflow: hidden;
}

.logo--with-18 {
  align-items: center;
  gap: 0.5rem;
}

.logo-text {
  font-weight: 700;
}

.logo-age {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 1.75rem;
  padding: 0 0.4rem;
  border-radius: 6px;
  background: #c62828;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.hero--split {
  padding: 2.5rem 0 2rem;
  border-bottom: 1px solid var(--line);
}

.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

@media (max-width: 900px) {
  .hero-split {
    grid-template-columns: 1fr;
  }
}

.hero-split__text h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.65rem, 4vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
}

.hero-lead--second {
  margin-top: 1rem;
}

.hero-split__media {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.hero-split__media img {
  width: 100%;
  height: auto;
  vertical-align: middle;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.section--brands-home {
  padding: 2rem 0 2.5rem;
  background: linear-gradient(180deg, #141b24 0%, var(--bg) 100%);
}

.brand-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

@media (max-width: 900px) {
  .brand-tiles {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .brand-tiles {
    grid-template-columns: 1fr;
  }
}

.brand-tile {
  background: #2a3544;
  color: #1a1a1a;
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  border: 1px solid #000000;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.brand-tile__logo {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-tile__logo img {
  max-height: 48px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}

.brand-tile__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 8rem;
  padding: 0.55rem 1.25rem;
  background: var(--accent);
  color: #fff !important;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none !important;
  transition: filter 0.2s, transform 0.15s;
}

.brand-tile__btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.section--muted {
  background: rgba(26, 34, 45, 0.5);
}

.section-outro {
  margin: 2rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  max-width: 48rem;
}

.help-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin: 1.25rem 0 0 !important;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.help-inline a {
  font-weight: 600;
  word-break: break-all;
}

.footer-blurb {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--line);
  background: var(--bg-card);
}

.footer-blurb p {
  margin: 0;
  max-width: 42rem;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.footer-brand-line {
  text-align: center;
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.5rem;
  margin: 0 0 1.5rem;
  font-size: 0.9rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--accent);
  text-decoration: none;
}

.footer-links__sep {
  color: var(--line);
  user-select: none;
}

.footer-brand-name {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text);
}

/* Age gate */
.age-gate {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(5, 8, 12, 0.92);
  backdrop-filter: blur(6px);
}

html:not(.age-verified) .age-gate {
  display: flex;
}

html.age-verified .age-gate {
  display: none !important;
}

.age-gate__panel {
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  text-align: center;
}

.age-gate__badge {
  display: inline-flex;
  margin: 0 0 1rem;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  background: #c62828;
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
}

.age-gate__panel h2 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  line-height: 1.3;
}

.age-gate__hint {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.age-gate__fields {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 1rem;
  text-align: left;
}

.age-gate__fields label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.age-gate__fields select {
  padding: 0.5rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  font: inherit;
}

.age-gate__error {
  color: #ff8a80;
  font-size: 0.9rem;
  margin: 0 0 0.75rem;
}

.age-gate__submit {
  width: 100%;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.age-gate__submit:hover {
  filter: brightness(1.08);
}

/* Cookie modal (homepage) */
.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem;
  background: rgba(5, 8, 12, 0.65);
}

.cookie-modal.is-visible {
  display: flex;
}

html:not(.age-verified) .cookie-modal {
  display: none !important;
}

.cookie-modal__panel {
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow: auto;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem 1rem;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.45);
}

.cookie-modal__head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.cookie-modal__icon {
  font-size: 1.35rem;
}

.cookie-modal__title {
  margin: 0;
  font-size: 1.15rem;
}

.cookie-modal__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

.cookie-tab {
  padding: 0.4rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
}

.cookie-tab.is-active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--text);
}

.cookie-modal__body {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.cookie-modal__body p {
  margin: 0 0 0.75rem;
}

.cookie-categories {
  margin: 0;
  padding-left: 1.1rem;
}

.cookie-categories li {
  margin-bottom: 0.5rem;
}

.cookie-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

.btn-cookie {
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-cookie--ghost {
  background: var(--bg-elevated);
  border-color: var(--line);
  color: var(--text);
}

.btn-cookie--ghost:hover {
  border-color: var(--accent);
}

.btn-cookie--primary {
  background: var(--accent);
  color: #fff;
}

.btn-cookie--primary:hover {
  filter: brightness(1.08);
}

.page-home .newsletter {
  max-width: none;
  width: 100%;
}

.page-home .newsletter-form {
  max-width: 36rem;
}
