/*
Theme Name: ASHVB Modern
Theme URI: https://ashvb.fr
Author: ASHVB
Description: Theme WordPress moderne pour un club de volleyball.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.3
Text Domain: ashvb-modern
*/

:root {
  --ink: #10141f;
  --navy: #172241;
  --blue: #2057a8;
  --club-yellow: #ffd21c;
  --club-yellow-dark: #e8af00;
  --court: #d18b4f;
  --coral: #ef5b4f;
  --mint: #59c9a5;
  --paper: #f7f8fb;
  --white: #ffffff;
  --muted: #657084;
  --line: rgba(16, 20, 31, 0.12);
  --shadow: 0 18px 60px rgba(23, 34, 65, 0.16);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 210, 28, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(23, 34, 65, 0.18);
  box-shadow: 0 12px 34px rgba(23, 34, 65, 0.12);
}

.top-banner {
  color: var(--club-yellow);
  background:
    linear-gradient(90deg, #062a55, var(--navy));
}

.top-banner-inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 42px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: center;
  font-size: 14px;
  font-weight: 850;
}

.top-banner a {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--navy);
  background: var(--club-yellow);
  white-space: nowrap;
}

.nav {
  width: min(1180px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 850;
  letter-spacing: 0;
  color: var(--navy);
}

.brand-mark {
  width: 76px;
  height: 76px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  padding: 4px;
  background: var(--navy);
  box-shadow: 0 12px 24px rgba(23, 34, 65, 0.22);
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand small {
  display: block;
  color: rgba(23, 34, 65, 0.72);
  font-size: 12px;
  font-weight: 700;
}

.coach-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 2px solid var(--navy);
  border-radius: 8px;
  color: var(--navy);
  background: var(--club-yellow);
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(23, 34, 65, 0.18);
  white-space: nowrap;
}

.coach-link:hover,
.coach-link:focus {
  color: var(--club-yellow);
  background: var(--navy);
}

.menu {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 750;
}

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

.menu a {
  padding: 10px 0;
}

.menu .coach-link {
  padding: 0 18px;
}

.menu a:hover {
  color: #061c3d;
}

.menu-dropdown {
  position: relative;
}

.menu-dropdown-trigger::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
}

.menu-dropdown-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  min-width: 170px;
  padding: 8px;
  border-radius: 8px;
  background: var(--navy);
  box-shadow: 0 18px 40px rgba(23, 34, 65, 0.22);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -6px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.menu-dropdown-panel a {
  display: block;
  padding: 10px 12px;
  border-radius: 6px;
  color: var(--white);
  white-space: nowrap;
}

.menu-dropdown-panel a:hover,
.menu-dropdown-panel a:focus {
  color: var(--navy);
  background: var(--club-yellow);
}

.menu-dropdown:hover .menu-dropdown-panel,
.menu-dropdown:focus-within .menu-dropdown-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: var(--club-yellow);
  color: var(--navy);
  font-weight: 850;
  box-shadow: 0 14px 28px rgba(255, 210, 28, 0.24);
}

.button.secondary {
  background: var(--white);
  color: var(--navy);
  border-color: var(--line);
  box-shadow: none;
}

@keyframes heroFade {
  0% {
    opacity: 0;
    transform: scale(1.04);
  }

  8%,
  31% {
    opacity: 1;
  }

  39%,
  100% {
    opacity: 0;
    transform: scale(1.1);
  }
}

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  align-items: end;
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--navy);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(7, 18, 38, 0.9) 0%, rgba(7, 18, 38, 0.72) 42%, rgba(7, 18, 38, 0.18) 100%),
    linear-gradient(180deg, rgba(255, 210, 28, 0.16), rgba(255, 210, 28, 0));
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  height: 22vh;
  background: linear-gradient(180deg, rgba(247, 248, 251, 0), var(--paper));
}

.hero-slider,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slider {
  z-index: 0;
}

.hero-slide {
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.04);
  animation: heroFade 18s infinite;
}

.hero-slide-1 {
  opacity: 1;
}

.hero-slide-2 {
  animation-delay: 6s;
}

.hero-slide-3 {
  animation-delay: 12s;
}

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

.eyebrow {
  color: var(--club-yellow);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  width: min(760px, 100%);
  margin-bottom: 20px;
  font-size: clamp(46px, 8vw, 92px);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero p {
  width: min(620px, 100%);
  color: rgba(255, 255, 255, 0.84);
  font-size: 19px;
}

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

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(820px, calc(100% - 32px));
  margin: -70px auto 0;
  position: relative;
  z-index: 3;
  overflow: hidden;
  border-radius: 8px;
  background: var(--line);
  box-shadow: var(--shadow);
}

.stat {
  min-height: 130px;
  padding: 26px;
  background: var(--white);
}

.stat strong {
  display: block;
  color: var(--blue);
  font-size: 34px;
  line-height: 1;
}

.stat span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 750;
}

.section {
  padding: 92px 0;
}

.info-section {
  background: #eef3f8;
}

.private-hero {
  padding: 110px 0 74px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(23, 34, 65, 0.96), rgba(32, 87, 168, 0.88)),
    var(--navy);
}

.private-hero h1 {
  margin-bottom: 14px;
}

.private-hero p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
}

.private-login {
  max-width: 520px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.private-dashboard .section-head {
  align-items: center;
}

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

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 34px;
}

.section-head h2 {
  max-width: 680px;
  margin-bottom: 0;
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1.02;
}

.section-head p {
  max-width: 440px;
  margin-bottom: 0;
  color: var(--muted);
}

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

.card {
  min-height: 220px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 34px rgba(23, 34, 65, 0.06);
}

.card h3 {
  margin-bottom: 10px;
  font-size: 22px;
}

.card p,
.schedule li,
.contact-panel p {
  color: var(--muted);
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 18px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(89, 201, 165, 0.16);
  color: #17775d;
  font-size: 12px;
  font-weight: 850;
}

.split {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 32px;
  align-items: center;
}

.court-panel {
  min-height: 460px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px),
    linear-gradient(135deg, var(--court), #b56d35);
  background-size: 50% 100%, 100% 50%, auto;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.court-panel::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 4px;
  height: 100%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.78);
}

.court-panel::after {
  content: "";
  position: absolute;
  right: 12%;
  top: 18%;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, #ffffff 0 10%, transparent 11%),
    conic-gradient(from 30deg, #ffffff 0 22%, var(--blue) 22% 36%, #ffffff 36% 62%, var(--coral) 62% 75%, #ffffff 75% 100%);
  box-shadow: 0 24px 38px rgba(16, 20, 31, 0.28);
}

.dark-band {
  color: var(--white);
  background: var(--navy);
}

.dark-band .section-head p,
.dark-band .card p {
  color: rgba(255, 255, 255, 0.72);
}

.dark-band .card {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.13);
}

.schedule {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.schedule li {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  align-items: center;
  min-height: 76px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.schedule strong {
  color: var(--navy);
}

.contact-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  padding: 34px;
  border-radius: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.whatsapp-chat {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px 0 10px;
  border-radius: 999px;
  color: var(--white);
  background: #25d366;
  box-shadow: 0 18px 42px rgba(37, 211, 102, 0.36);
  font-size: 14px;
  font-weight: 900;
}

.whatsapp-chat:hover,
.whatsapp-chat:focus {
  color: var(--white);
  background: #1fb85a;
}

.whatsapp-chat-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #25d366;
  background: var(--white);
  font-size: 12px;
  font-weight: 950;
}

.whatsapp-chat-text {
  white-space: nowrap;
}

.site-footer {
  padding: 34px 0;
  color: rgba(255, 255, 255, 0.74);
  background: #0c111d;
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

@media (max-width: 860px) {
  .top-banner-inner {
    min-height: 56px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    text-align: left;
  }

  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .nav-left {
    width: 100%;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .brand-mark {
    width: 64px;
    height: 64px;
  }

  .menu {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .menu-dropdown {
    position: static;
  }

  .menu-dropdown-panel {
    left: 0;
    transform: translate(0, -6px);
  }

  .menu-dropdown:hover .menu-dropdown-panel,
  .menu-dropdown:focus-within .menu-dropdown-panel {
    transform: translate(0, 0);
  }

  .hero {
    min-height: 760px;
  }

  .hero-inner {
    padding: 78px 0 122px;
  }

  .stats,
  .grid,
  .split,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .schedule li {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
  }

  .whatsapp-chat {
    right: 14px;
    bottom: 14px;
    min-height: 52px;
    padding-right: 14px;
  }
}
