/* =========================================================
   Lons Volley Club du Moulin – feuille de style principale
   ========================================================= */
:root {
  --blue-dark: #0E2678;
  --blue-night: #221F7B;
  --blue: #1f4fc1;
  --blue-light: #689ADE;
  --bg-soft: #F3F4FA;
  --grey: #8F8F8F;
  --grey-light: #E2E2E2;
  --white: #ffffff;
  --black: #111;
  --font-title: 'Anton', Impact, sans-serif;
  --font-body: 'Azeret Mono', ui-monospace, monospace;
  --header-h: 96px;
  --radius: 6px;
  --shadow: 0 10px 30px rgba(14, 38, 120, .15);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  color: var(--black);
  background: var(--white);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-title);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .02em;
  line-height: 1.1;
  margin: 0 0 .6em;
  color: var(--blue-dark);
}
h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; }

.container { width: min(1140px, 92%); margin: 0 auto; }
.section { padding: 90px 0; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--blue-dark); color: var(--white); }
.section--dark h2, .section--dark h3 { color: var(--white); }
.center { text-align: center; }
.lead { font-size: 1.05rem; max-width: 760px; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-block;
  padding: 14px 34px;
  font-family: var(--font-title);
  font-size: 1.15rem;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
  color: var(--white);
  background: var(--blue-dark);
  border: 2px solid var(--blue-dark);
  border-radius: 40px;
  transition: background .25s, color .25s, transform .25s;
  cursor: pointer;
}
.btn:hover { background: transparent; color: var(--blue-dark); transform: translateY(-2px); }
.btn--light { background: var(--white); color: var(--blue-dark); border-color: var(--white); }
.btn--light:hover { background: transparent; color: var(--white); }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
  transition: height .3s;
}
.site-header.is-scrolled { --header-h: 74px; }
.site-header .container {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand img { height: calc(var(--header-h) - 24px); width: auto; transition: height .3s; }
.brand span {
  font-family: var(--font-title);
  font-size: 1.35rem;
  text-transform: uppercase;
  color: var(--blue-dark);
  line-height: 1.05;
}
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 6px; }
.main-nav a, .main-nav button.dropdown-toggle {
  display: block;
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: .9rem;
  text-decoration: none;
  color: var(--blue-dark);
  background: none; border: none; cursor: pointer;
  position: relative;
}
.main-nav > ul > li > a::after, .main-nav button.dropdown-toggle::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px;
  height: 2px; background: var(--blue-dark);
  transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.main-nav a:hover::after, .main-nav a.active::after,
.main-nav button.dropdown-toggle:hover::after, .main-nav .has-dropdown.active > button::after { transform: scaleX(1); }
.main-nav a.active { font-weight: 700; }

.has-dropdown { position: relative; }
.dropdown {
  position: absolute; top: 100%; left: 0; min-width: 200px;
  background: var(--white); box-shadow: var(--shadow); border-radius: var(--radius);
  padding: 8px 0 !important; display: block !important;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s, transform .2s, visibility .2s;
}
.has-dropdown:hover .dropdown, .has-dropdown.open .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a { padding: 8px 18px; }
.dropdown a:hover { background: var(--bg-soft); }

.login-btn {
  font-size: .85rem; padding: 8px 18px; border-radius: 30px;
  border: 1.5px solid var(--blue-dark); color: var(--blue-dark); background: none;
  font-family: var(--font-body); cursor: pointer; transition: all .2s;
  display: inline-flex; align-items: center; gap: 8px;
}
.login-btn:hover { background: var(--blue-dark); color: var(--white); }

.burger { display: none; background: none; border: none; cursor: pointer; padding: 10px; }
.burger span { display: block; width: 26px; height: 2px; background: var(--blue-dark); margin: 6px 0; transition: transform .3s, opacity .3s; }
.burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero accueil ---------- */
.hero {
  position: relative;
  min-height: clamp(520px, calc(100vh - var(--header-h)), 860px);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  background: #000 url("../assets/img/hero.jpg") center/cover no-repeat;
  color: var(--white);
}
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,38,120,.25), rgba(14,38,120,.65)); }
.marquee {
  position: absolute; left: 0; width: 100%; overflow: hidden; white-space: nowrap;
  font-family: var(--font-title); font-size: clamp(6rem, 18vw, 15rem); line-height: 1;
  pointer-events: none; user-select: none;
}
.marquee--top { top: 6%; color: transparent; -webkit-text-stroke: 2px rgba(255,255,255,.55); }
.marquee--bottom { bottom: 6%; color: rgba(255,255,255,.18); }
.marquee__track { display: inline-block; animation: marquee 28s linear infinite; }
.marquee--bottom .marquee__track { animation-direction: reverse; }
.marquee__track span { padding: 0 .25em; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.hero__content { position: relative; text-align: center; padding: 20px; }
.hero__content h1 { color: var(--white); font-size: clamp(4rem, 14vw, 10rem); margin: 0; text-shadow: 0 6px 30px rgba(0,0,0,.4); }
.hero__content p { font-size: 1.1rem; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 30px; }

/* Bandeau de page interne */
.page-banner {
  position: relative; padding: 120px 0 100px; color: var(--white); text-align: center;
  background: var(--blue-dark) center/cover no-repeat;
}
.page-banner::before { content: ""; position: absolute; inset: 0; background: rgba(14,38,120,.6); }
.page-banner .container { position: relative; }
.page-banner h1 { color: var(--white); margin-bottom: .2em; }
.page-banner p { max-width: 700px; margin: 0 auto; }

/* ---------- Grilles ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.split--reverse > :first-child { order: 2; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 40px; }
.card {
  position: relative; display: block; overflow: hidden; border-radius: var(--radius);
  aspect-ratio: 5 / 3; text-decoration: none; box-shadow: var(--shadow);
}
.card img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%); transition: transform .6s, filter .6s; }
.card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(14,38,120,.85), rgba(14,38,120,.05) 60%); transition: background .4s; }
.card span {
  position: absolute; left: 0; right: 0; bottom: 18px; z-index: 1; text-align: center;
  font-family: var(--font-title); font-size: 2rem; letter-spacing: .08em; color: var(--white);
}
.card:hover img { transform: scale(1.08); filter: grayscale(0); }

/* ---------- Chiffres ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 50px; text-align: center; }
.stat__number { font-family: var(--font-title); font-size: clamp(3.5rem, 8vw, 6rem); line-height: 1; color: var(--white); }
.stat__label { font-family: var(--font-title); letter-spacing: .15em; font-size: 1.2rem; color: var(--blue-light); }

/* ---------- Rejoignez-nous ---------- */
.join {
  position: relative; color: var(--white);
  background: var(--blue-night) url("../assets/img/rejoindre.jpg") center/cover fixed no-repeat;
}
.join::before { content: ""; position: absolute; inset: 0; background: rgba(34,31,123,.82); }
.join .container { position: relative; }
.join h2, .join h3 { color: var(--white); }
.recruit { background: rgba(255,255,255,.1); border-left: 4px solid var(--white); padding: 26px 30px; border-radius: var(--radius); }
.recruit ul { margin: 0; padding-left: 20px; }
.recruit li { margin: 6px 0; }

/* ---------- Contact ---------- */
.contact { background: var(--bg-soft); padding: 80px 0 50px; }
.contact__head { text-align: center; margin-bottom: 40px; }
.contact__head p { font-size: 1.1rem; margin: 0; color: var(--grey); }
.contact__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.contact__item { background: var(--white); border-radius: var(--radius); padding: 28px 20px; text-align: center; box-shadow: 0 4px 14px rgba(0,0,0,.04); }
.contact__item svg { width: 34px; height: 34px; fill: var(--blue-dark); margin-bottom: 10px; }
.contact__item h4 { font-size: 1.1rem; margin-bottom: .3em; }
.contact__item a { text-decoration: none; word-break: break-word; }
.contact__item a:hover { color: var(--blue); text-decoration: underline; }
.socials { display: flex; justify-content: center; gap: 14px; }
.socials img { width: 40px; height: 40px; transition: transform .2s; }
.socials a:hover img { transform: scale(1.15); }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--blue-dark); color: rgba(255,255,255,.8); font-size: .8rem; padding: 26px 0; }
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.site-footer a { color: var(--white); margin-right: 18px; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* ---------- Inscription ---------- */
.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 30px; }
.price-box { background: var(--white); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }
.price-box h3 { border-bottom: 2px solid var(--blue-dark); padding-bottom: 10px; }
.price-row { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; border-bottom: 1px dashed var(--grey-light); }
.price-row:last-child { border-bottom: none; }
.price-row strong { font-family: var(--font-title); font-size: 1.25rem; color: var(--blue-dark); white-space: nowrap; font-weight: 400; }
.note { font-size: .8rem; color: var(--grey); margin-top: 20px; }

.schedule { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }
.day { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.day h3 { background: var(--blue-dark); color: var(--white); text-align: center; padding: 14px; margin: 0; font-size: 1.6rem; }
.slot { padding: 16px 18px; border-bottom: 1px solid var(--grey-light); font-size: .85rem; }
.slot:last-child { border-bottom: none; }
.slot time { display: block; font-family: var(--font-title); font-size: 1.2rem; color: var(--blue-dark); }
.slot .place { display: inline-block; font-size: .72rem; background: var(--bg-soft); color: var(--blue-dark); border-radius: 20px; padding: 1px 10px; margin: 4px 0; }

.steps { counter-reset: step; list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps li { counter-increment: step; background: var(--white); padding: 18px 18px 18px 64px; border-radius: var(--radius); position: relative; box-shadow: 0 4px 14px rgba(0,0,0,.05); }
.steps li::before { content: counter(step); position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 50%; background: var(--blue-dark); color: var(--white); display: grid; place-items: center; font-family: var(--font-title); }
.alert { margin-top: 30px; padding: 18px 24px; background: var(--blue-dark); color: var(--white); border-radius: var(--radius); font-weight: 700; }

/* ---------- Documents ---------- */
.docs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; margin-top: 40px; }
.doc { background: var(--white); border-radius: var(--radius); padding: 26px; text-align: center; text-decoration: none; box-shadow: var(--shadow); transition: transform .25s; }
.doc:hover { transform: translateY(-6px); }
.doc img { width: 130px; margin: 0 auto 16px; }
.doc h3 { font-size: 1.2rem; margin: 0; }
.doc small { display: block; margin-top: 8px; color: var(--grey); }
.doc--disabled { opacity: .55; cursor: default; }
.doc--disabled:hover { transform: none; }

/* ---------- Équipes ---------- */
.teams { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; margin-top: 40px; }
.team { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); text-decoration: none; display: block; transition: transform .3s; }
a.team:hover { transform: translateY(-6px); }
.team__img { aspect-ratio: 3 / 2; overflow: hidden; background: var(--bg-soft); }
.team__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
a.team:hover .team__img img { transform: scale(1.05); }
.team__img--empty { display: grid; place-items: center; color: var(--grey); font-family: var(--font-title); font-size: 1.4rem; }
.team__body { padding: 22px 26px; }
.team__body h3 { margin: 0 0 .3em; }
.team__body p { margin: 0; color: var(--grey); font-size: .85rem; }
.credit { text-align: right; color: var(--grey); font-size: .8rem; margin-top: 30px; font-style: italic; }

/* ---------- Vie du club ---------- */
.events { display: grid; gap: 20px; margin-top: 30px; }
.event { display: flex; gap: 24px; align-items: center; background: var(--white); border-radius: var(--radius); padding: 20px 26px; box-shadow: var(--shadow); }
.event__date { flex: 0 0 110px; text-align: center; background: var(--blue-dark); color: var(--white); border-radius: var(--radius); padding: 10px; font-family: var(--font-title); line-height: 1.1; }
.event__date b { display: block; font-size: 2.2rem; font-weight: 400; }
.event h3 { margin: 0 0 .2em; font-size: 1.3rem; }
.event p { margin: 0; color: var(--grey); }
.highlight { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: grid; grid-template-columns: 300px 1fr; }
.highlight img { height: 100%; object-fit: cover; }
.highlight div { padding: 36px; display: flex; flex-direction: column; justify-content: center; }
.highlight .year { font-family: var(--font-title); font-size: 3.5rem; color: var(--blue-light); line-height: 1; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 30px; }
.gallery button { padding: 0; border: none; cursor: zoom-in; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; background: none; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery button:hover img { transform: scale(1.06); }

.lightbox { position: fixed; inset: 0; z-index: 500; background: rgba(0,0,0,.9); display: none; align-items: center; justify-content: center; padding: 30px; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 90vh; max-width: 90vw; border-radius: var(--radius); }
.lightbox button { position: absolute; top: 20px; right: 26px; background: none; border: none; color: #fff; font-size: 2.5rem; cursor: pointer; }

/* ---------- Pages texte ---------- */
.prose { max-width: 820px; }
.prose h2 { font-size: 1.6rem; margin-top: 1.6em; }

/* ---------- Modale connexion ---------- */
.modal { position: fixed; inset: 0; z-index: 400; background: rgba(14,38,120,.6); display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.open { display: flex; }
.modal__box { background: var(--white); border-radius: 10px; padding: 40px; width: min(420px, 100%); position: relative; }
.modal__close { position: absolute; top: 10px; right: 16px; background: none; border: none; font-size: 1.8rem; cursor: pointer; color: var(--grey); }
.form label { display: block; font-size: .8rem; margin: 14px 0 4px; }
.form input { width: 100%; padding: 12px; border: 1px solid var(--grey-light); border-radius: var(--radius); font-family: inherit; }
.form input:focus { outline: 2px solid var(--blue-light); border-color: transparent; }
.form .btn { width: 100%; margin-top: 24px; }
.form__msg { font-size: .8rem; margin-top: 12px; color: var(--grey); }

/* ---------- Animations d'apparition ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: none; }

.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--blue-dark); color: var(--white); font-size: 1.3rem;
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; box-shadow: var(--shadow);
}
.to-top.show { opacity: 1; visibility: visible; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .schedule, .docs, .contact__grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  :root { --header-h: 76px; }
  .burger { display: block; }
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    background: var(--white); padding: 20px 6%;
    transform: translateX(100%); transition: transform .35s ease; overflow-y: auto;
  }
  .main-nav.open { transform: none; }
  .main-nav ul { flex-direction: column; align-items: stretch; }
  .main-nav a, .main-nav button.dropdown-toggle { font-size: 1.1rem; padding: 14px 0; width: 100%; text-align: left; }
  .main-nav a::after, .main-nav button.dropdown-toggle::after { display: none; }
  .dropdown { position: static; box-shadow: none; opacity: 1; visibility: visible; transform: none; display: none !important; padding-left: 16px !important; }
  .has-dropdown.open .dropdown { display: block !important; }
  .login-btn { margin-top: 14px; justify-content: center; width: 100%; padding: 12px; }
  .brand span { font-size: 1.05rem; }
  .split, .price-grid, .teams, .highlight { grid-template-columns: 1fr; }
  .split--reverse > :first-child { order: 0; }
  .cards, .stats { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 60px 0; }
  .join { background-attachment: scroll; }
  .highlight img { max-height: 320px; width: 100%; }
}
@media (max-width: 560px) {
  .hero__content p { font-size: .8rem; letter-spacing: .1em; }
  .schedule, .docs, .contact__grid, .steps { grid-template-columns: 1fr; }
  .event { flex-direction: column; text-align: center; }
  .event__date { flex-basis: auto; width: 120px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
