/*
Theme Name: BMX Hyeres Club
Theme URI: https://bmxhyeres.com/
Author: BMX Hyeres
Description: Theme moderne bleu et jaune pour le BMX Club de Hyeres.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: bmx-hyeres
*/

:root {
  --bmx-blue: #0057b8;
  --bmx-blue-dark: #06315f;
  --bmx-yellow: #ffd21f;
  --bmx-ink: #111827;
  --bmx-muted: #607086;
  --bmx-line: #d8e0ea;
  --bmx-bg: #f6f8fb;
  --bmx-white: #ffffff;
  --bmx-radius: 8px;
  --bmx-shadow: 0 16px 40px rgba(6, 49, 95, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--bmx-ink);
  background: var(--bmx-bg);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--bmx-line);
  backdrop-filter: blur(12px);
}

.header-inner,
.site-main,
.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--bmx-blue-dark);
  background: var(--bmx-yellow);
  border: 3px solid var(--bmx-blue);
  border-radius: 50%;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-logo img {
  width: auto;
  max-width: 86px;
  max-height: 58px;
  display: block;
}

.brand-logo-wide img {
  max-width: min(420px, 48vw);
  max-height: 68px;
}

.brand-logo-wide + .brand-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.brand-name {
  display: block;
  color: var(--bmx-blue-dark);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}

.brand-place {
  display: block;
  color: var(--bmx-muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--bmx-line);
  background: var(--bmx-white);
  border-radius: var(--bmx-radius);
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--bmx-blue-dark);
  content: "";
}

.menu-toggle span::before {
  transform: translateY(-6px);
}

.menu-toggle span::after {
  transform: translateY(4px);
}

.primary-menu {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-menu a {
  display: block;
  padding: 10px 12px;
  color: var(--bmx-blue-dark);
  border-radius: var(--bmx-radius);
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
}

.primary-menu a:hover,
.primary-menu .current-menu-item > a {
  background: rgba(0, 87, 184, 0.08);
  color: var(--bmx-blue);
}

.hero {
  min-height: calc(100vh - 76px);
  display: grid;
  align-items: center;
  position: relative;
  overflow: hidden;
  color: var(--bmx-white);
  background:
    linear-gradient(90deg, rgba(6, 49, 95, 0.94), rgba(0, 87, 184, 0.78) 55%, rgba(6, 49, 95, 0.44)),
    repeating-linear-gradient(135deg, rgba(255,255,255,0.12) 0 2px, transparent 2px 18px),
    radial-gradient(circle at 82% 22%, rgba(255, 210, 31, 0.9), transparent 22%),
    linear-gradient(135deg, #06315f, #0057b8);
}

.hero::after {
  position: absolute;
  right: -100px;
  bottom: -90px;
  width: 520px;
  height: 520px;
  border: 26px solid rgba(255, 210, 31, 0.72);
  border-radius: 50%;
  content: "";
}

.hero-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0 96px;
  position: relative;
  z-index: 1;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--bmx-yellow);
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-kicker::before {
  width: 34px;
  height: 4px;
  background: var(--bmx-yellow);
  border-radius: 999px;
  content: "";
}

.hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(2.6rem, 7vw, 6.6rem);
  line-height: 0.94;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 strong {
  color: var(--bmx-yellow);
}

.hero-text {
  max-width: 610px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.15rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button,
.wp-block-button__link,
button,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 0;
  border-radius: var(--bmx-radius);
  background: var(--bmx-blue);
  color: var(--bmx-white);
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.button-accent {
  background: var(--bmx-yellow);
  color: var(--bmx-blue-dark);
}

.button-outline {
  border: 2px solid rgba(255, 255, 255, 0.7);
  background: transparent;
  color: var(--bmx-white);
}

.button-light {
  background: var(--bmx-white);
  color: var(--bmx-blue-dark);
  border: 1px solid var(--bmx-line);
}

.section {
  padding: 72px 0;
}

.section-blue {
  background: var(--bmx-blue-dark);
  color: var(--bmx-white);
}

.section-title {
  max-width: 760px;
  margin: 0 0 28px;
  color: var(--bmx-blue-dark);
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
  text-transform: uppercase;
}

.section-blue .section-title {
  color: var(--bmx-white);
}

.lead {
  max-width: 760px;
  color: var(--bmx-muted);
  font-size: 1.08rem;
}

.section-blue .lead {
  color: rgba(255, 255, 255, 0.78);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 36px;
}

.feature-card,
.post-card {
  background: var(--bmx-white);
  border: 1px solid var(--bmx-line);
  border-radius: var(--bmx-radius);
  box-shadow: var(--bmx-shadow);
}

.feature-card {
  padding: 24px;
}

.feature-card h3,
.post-card h2 {
  margin: 0 0 10px;
  color: var(--bmx-blue-dark);
  font-size: 1.2rem;
  line-height: 1.2;
}

.feature-card p,
.post-card p {
  margin: 0;
  color: var(--bmx-muted);
}

.feature-number {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  background: var(--bmx-yellow);
  color: var(--bmx-blue-dark);
  border-radius: 50%;
  font-weight: 900;
}

.track-band {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: center;
}

.track-visual {
  min-height: 330px;
  position: relative;
  overflow: hidden;
  border-radius: var(--bmx-radius);
  background:
    linear-gradient(145deg, rgba(255, 210, 31, 0.84), rgba(255, 210, 31, 0.35)),
    repeating-linear-gradient(160deg, transparent 0 22px, rgba(6, 49, 95, 0.22) 22px 26px),
    var(--bmx-blue);
  box-shadow: var(--bmx-shadow);
}

.track-visual::before,
.track-visual::after {
  position: absolute;
  inset: auto auto 42px -70px;
  width: 430px;
  height: 190px;
  border: 30px solid var(--bmx-blue-dark);
  border-radius: 50%;
  transform: rotate(-13deg);
  content: "";
}

.track-visual::after {
  inset: 54px -120px auto auto;
  border-color: rgba(255, 255, 255, 0.88);
  transform: rotate(18deg);
}

.post-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.post-card {
  overflow: hidden;
}

.post-card a {
  text-decoration: none;
}

.post-card-image {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--bmx-blue), var(--bmx-yellow));
}

.post-card-content {
  padding: 20px;
}

.post-meta {
  margin-bottom: 8px;
  color: var(--bmx-blue);
  font-size: 0.84rem;
  font-weight: 900;
  text-transform: uppercase;
}

.content-wrap {
  width: min(860px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0;
}

.entry-title {
  margin: 0 0 24px;
  color: var(--bmx-blue-dark);
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
  text-transform: uppercase;
}

.entry-content {
  background: var(--bmx-white);
  border: 1px solid var(--bmx-line);
  border-radius: var(--bmx-radius);
  padding: clamp(22px, 4vw, 42px);
}

.has-elementor-content .content-wrap {
  width: 100%;
  padding-top: 0;
}

.page-elementor .elementor-page-content {
  width: 100%;
}

.page-elementor .elementor-section,
.page-elementor .e-con {
  --bmx-elementor-max: 1180px;
}

.page-elementor .elementor-widget-container a {
  color: var(--bmx-blue);
}

.page-head {
  padding-bottom: 20px;
}

.full-width-content {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 72px;
}

.full-width-content > * {
  max-width: 100%;
}

.full-width-content .wp-block-cover,
.full-width-content .alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
}

.entry-content h2,
.entry-content h3 {
  color: var(--bmx-blue-dark);
  line-height: 1.15;
}

.entry-content blockquote {
  margin: 28px 0;
  padding-left: 18px;
  border-left: 5px solid var(--bmx-yellow);
  color: var(--bmx-blue-dark);
  font-size: 1.18rem;
  font-weight: 800;
}

.site-footer {
  background: #071f3d;
  color: var(--bmx-white);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(320px, 1.3fr) minmax(220px, 0.8fr);
  align-items: start;
  gap: 24px;
  padding: 42px 0 30px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-logo {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  overflow: hidden;
  background: var(--bmx-white);
  border: 3px solid var(--bmx-yellow);
  border-radius: 50%;
}

.footer-logo img {
  width: auto;
  max-width: 54px;
  max-height: 54px;
  display: block;
}

.footer-club-name {
  color: var(--bmx-white);
  font-size: 1.1rem;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}

.footer-mini {
  max-width: 310px;
  margin-top: 8px;
  font-size: 0.92rem;
}

.footer-link-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 1fr));
  gap: 22px;
}

.footer-nav {
  justify-self: stretch;
}

.footer-column-title {
  margin: 0 0 12px;
  color: var(--bmx-yellow);
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-menu,
.partners-menu {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-menu li + li {
  margin-top: 7px;
}

.footer-menu a {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
  text-decoration: none;
}

.footer-menu a:hover,
.footer-cookie-link:hover,
.footer-legal-links button:hover {
  color: var(--bmx-yellow);
}

.footer-cookie-link,
.footer-legal-links button {
  appearance: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  font: inherit;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.footer-widgets {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: flex-end;
}

.footer-widget {
  min-width: 180px;
}

.footer-widget-title {
  margin: 0 0 8px;
  color: var(--bmx-yellow);
  font-size: 1rem;
}

.footer-widget ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-widget li + li {
  margin-top: 6px;
}

.evf-container,
.wpcf7,
.wpforms-container,
.em.em-list,
.em-view-container,
.woocommerce,
.dataTables_wrapper,
.supsystic-tables-wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 32px auto;
}

.evf-container form,
.wpcf7 form,
.wpforms-form,
.em-search,
.em-item,
.woocommerce .products .product,
.woocommerce div.product,
.dataTables_wrapper {
  background: var(--bmx-white);
  border: 1px solid var(--bmx-line);
  border-radius: var(--bmx-radius);
  box-shadow: var(--bmx-shadow);
}

.evf-container form,
.wpcf7 form,
.wpforms-form,
.em-search,
.em-item,
.woocommerce div.product,
.dataTables_wrapper {
  padding: 22px;
}

input,
select,
textarea {
  max-width: 100%;
  min-height: 42px;
  border: 1px solid var(--bmx-line);
  border-radius: var(--bmx-radius);
  padding: 10px 12px;
  font: inherit;
}

textarea {
  min-height: 130px;
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.em.pixelbones a.button,
.em.pixelbones button.button {
  background: var(--bmx-blue);
  color: var(--bmx-white);
  border-radius: var(--bmx-radius);
  font-weight: 900;
}

.woocommerce span.onsale {
  background: var(--bmx-yellow);
  color: var(--bmx-blue-dark);
}

.n2-section-smartslider {
  margin: 0 auto;
}

.footer-partners-wrap {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.footer-partners-inner,
.footer-legal-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-partners-inner {
  padding: 28px 0;
}

.partners-title {
  margin: 0 0 18px;
  color: var(--bmx-yellow);
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  align-items: stretch;
}

.partners-menu li,
.partner-widget {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  background: var(--bmx-white);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--bmx-radius);
}

.partners-menu a,
.partner-widget a {
  color: var(--bmx-blue-dark);
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}

.partner-widget img,
.partners-menu img {
  width: auto;
  max-width: 150px;
  max-height: 54px;
  object-fit: contain;
  display: block;
}

.footer-legal {
  background: #04152b;
}

.footer-legal-inner {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
}

.footer-inner p {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
}

.footer-inner a,
.footer-legal a,
.footer-legal button {
  color: var(--bmx-yellow);
  font-weight: 900;
  text-decoration: none;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.cookie-consent {
  position: fixed;
  inset: auto 16px 16px;
  z-index: 80;
}

.cookie-panel {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(260px, 1.1fr) minmax(260px, 1fr);
  gap: 18px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--bmx-line);
  border-left: 7px solid var(--bmx-yellow);
  border-radius: var(--bmx-radius);
  box-shadow: 0 22px 60px rgba(6, 49, 95, 0.24);
}

.cookie-kicker {
  margin: 0 0 4px;
  color: var(--bmx-blue);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cookie-copy h2 {
  margin: 0 0 8px;
  color: var(--bmx-blue-dark);
  font-size: 1.55rem;
  line-height: 1.05;
}

.cookie-copy p:last-child {
  margin: 0;
  color: var(--bmx-muted);
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-content: start;
  justify-content: flex-end;
}

.cookie-actions .button {
  min-height: 42px;
}

.cookie-preferences {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.cookie-choice {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  background: var(--bmx-bg);
  border: 1px solid var(--bmx-line);
  border-radius: var(--bmx-radius);
}

.cookie-choice strong,
.cookie-choice small {
  display: block;
}

.cookie-choice strong {
  color: var(--bmx-blue-dark);
  line-height: 1.1;
}

.cookie-choice small {
  margin-top: 4px;
  color: var(--bmx-muted);
  font-size: 0.78rem;
  line-height: 1.25;
}

.cookie-choice input {
  width: 20px;
  height: 20px;
  min-height: 20px;
  accent-color: var(--bmx-blue);
}

.cookie-choice.is-required {
  background: rgba(255, 210, 31, 0.2);
}

.cookie-settings-button {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 70;
  min-height: 38px;
  padding: 8px 12px;
  background: var(--bmx-blue-dark);
  color: var(--bmx-yellow);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--bmx-radius);
  box-shadow: var(--bmx-shadow);
  font-weight: 900;
}

@media (max-width: 860px) {
  .menu-toggle {
    display: block;
  }

  .site-navigation {
    display: none;
    position: absolute;
    inset: 76px 16px auto;
    padding: 10px;
    background: var(--bmx-white);
    border: 1px solid var(--bmx-line);
    border-radius: var(--bmx-radius);
    box-shadow: var(--bmx-shadow);
  }

  .site-navigation.is-open {
    display: block;
  }

  .primary-menu {
    display: block;
  }

  .primary-menu a {
    padding: 12px;
  }

  .hero {
    min-height: 640px;
  }

  .brand-logo-wide img {
    max-width: min(270px, 68vw);
    max-height: 56px;
  }

  .hero::after {
    width: 340px;
    height: 340px;
    right: -150px;
  }

  .feature-grid,
  .post-list,
  .track-band {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .footer-link-groups {
    grid-template-columns: 1fr;
  }

  .footer-nav {
    justify-self: start;
  }

  .footer-legal-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .cookie-panel {
    grid-template-columns: 1fr;
  }

  .cookie-actions {
    justify-content: flex-start;
  }

  .cookie-preferences {
    grid-template-columns: 1fr;
  }
}
