/* La Piste des Voltigeurs — site public */
:root {
  --on-leather: #f4ede1;
  --leather: #5b3520;
  --leather-2: #7a4a2c;
  --saddle: #b4582e;
  --sand: #f4ede1;
  --sand-2: #e9dcc6;
  --cream: #fbf8f3;
  --ink: #2b1d14;
  --ink-2: #5e4d40;
  --line: #dccbb2;
  --ok: #3f7a4a;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(43, 29, 20, .06), 0 8px 24px rgba(43, 29, 20, .08);
  --serif: "Bodoni Moda", Georgia, "Times New Roman", serif;
  --sans: "Karla", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 17px/1.6 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--leather); text-underline-offset: 3px; }
a:hover { color: var(--saddle); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--saddle); outline-offset: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--ink-2); }
.small { font-size: .9rem; }
.tight { margin: 0; }
.lead { font-size: 1.15rem; color: var(--ink-2); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; color: var(--saddle); margin-bottom: .6em; }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 100; background: #fff; padding: 8px 12px; border-radius: 8px; }
.link { font-weight: 700; text-decoration: none; }
.link:hover { text-decoration: underline; }
.h-small { font-family: var(--sans); font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: var(--saddle); margin: 1.4em 0 .5em; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; padding: .85em 1.4em; border-radius: 999px; border: 2px solid var(--leather); background: var(--leather); color: var(--on-leather); font: 700 1rem/1 var(--sans); text-decoration: none; cursor: pointer; transition: background .15s, transform .15s; }
.btn:hover { background: var(--saddle); border-color: var(--saddle); color: #fff; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--leather); }
.btn--ghost:hover { background: var(--leather); color: var(--on-leather); border-color: var(--leather); }
.btn--light { background: var(--sand); color: var(--leather); border-color: var(--sand); }
.btn--small { padding: .6em 1.1em; font-size: .92rem; }
.btn--block { width: 100%; }

/* En-tête */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(251, 248, 243, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 600 1.15rem/1.1 var(--serif); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) { padding: .5em .8em; border-radius: 8px; text-decoration: none; color: var(--ink); font-weight: 500; }
.nav a:not(.btn):hover, .nav a.is-active { background: var(--sand); color: var(--leather); }
.nav .btn { margin-left: 8px; }
.navtoggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
.navtoggle__bar, .navtoggle__bar::before, .navtoggle__bar::after { position: absolute; left: 10px; width: 24px; height: 2px; background: var(--ink); content: ""; transition: transform .2s; }
.navtoggle__bar { top: 21px; }
.navtoggle__bar::before { left: 0; top: -7px; }
.navtoggle__bar::after { left: 0; top: 7px; }
.navtoggle[aria-expanded="true"] .navtoggle__bar { background: transparent; }
.navtoggle[aria-expanded="true"] .navtoggle__bar::before { transform: translateY(7px) rotate(45deg); }
.navtoggle[aria-expanded="true"] .navtoggle__bar::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .navtoggle { display: block; }
  .nav { position: fixed; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch; background: var(--cream); padding: 12px 20px 24px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); transform: translateY(-120%); visibility: hidden; transition: transform .25s, visibility 0s .25s; }
  .nav.is-open { transform: none; visibility: visible; transition: transform .25s; }
  .nav a:not(.btn) { padding: .9em .6em; font-size: 1.1rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav .btn { margin: 14px 0 0; }
}

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--sand); padding: clamp(56px, 10vw, 120px) 0; }
.hero__inner { position: relative; z-index: 2; max-width: var(--wrap); }
.hero h1 { max-width: 14ch; }
.hero__text { font-size: 1.2rem; max-width: 34em; color: var(--ink-2); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__art { position: absolute; right: -40px; bottom: -10px; width: min(52vw, 620px); opacity: .95; z-index: 1; }
.hero--photo { background: var(--hero, none) var(--hero-pos, center) / cover no-repeat; color: #fff; min-height: min(78vh, 680px); display: flex; align-items: center; }
.hero--h-compact.hero--photo { min-height: min(55vh, 440px); }
.hero--h-standard.hero--photo { min-height: min(78vh, 680px); }
.hero--h-grand.hero--photo { min-height: min(90vh, 820px); }
.hero--h-full.hero--photo { min-height: 100vh; }
.hero--photo .hero__text { color: rgba(255, 255, 255, .88); }
.hero--photo .eyebrow { color: var(--sand-2); }
.hero--photo .btn--ghost { color: #fff; border-color: #fff; }
.hero--photo .btn--ghost:hover { background: #fff; color: var(--leather); }
/* Média de fond (photo ou vidéo) + voile pour la lisibilité du titre */
.hero__bgvideo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--hero-pos, center); z-index: 0; }
.hero__slides { position: absolute; inset: 0; z-index: 0; }
.hero__slide { position: absolute; inset: 0; background-size: cover; background-position: var(--hero-pos, center); opacity: 0; transition: opacity 1.2s ease; }
.hero__slide.is-active { opacity: 1; }
.hero__scrim { position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(43, 29, 20, .82) 0%, rgba(43, 29, 20, .55) 55%, rgba(43, 29, 20, .15) 100%); }
/* Titre centré */
.hero--center { text-align: center; }
.hero--center .hero__scrim { background: rgba(43, 29, 20, .55); }
.hero--center .hero__inner { margin-inline: auto; }
.hero--center h1, .hero--center .hero__text { max-width: none; margin-inline: auto; }
.hero--center .hero__actions { justify-content: center; }
/* Titre à droite */
.hero--right { text-align: right; }
.hero--right .hero__scrim { background: linear-gradient(270deg, rgba(43, 29, 20, .82) 0%, rgba(43, 29, 20, .55) 55%, rgba(43, 29, 20, .15) 100%); }
.hero--right .hero__inner { margin-left: auto; }
.hero--right h1, .hero--right .hero__text { max-width: none; margin-left: auto; }
.hero--right .hero__actions { justify-content: flex-end; }
@media (max-width: 760px) {
  .hero--right { text-align: left; }
  .hero--right .hero__actions { justify-content: flex-start; }
}
/* Taille du titre */
.hero--title-large h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
.hero--title-xl h1 { font-size: clamp(2.8rem, 7vw, 4.8rem); line-height: 1.05; }
@media (max-width: 700px) {
  .hero__art { position: static; width: 100%; max-width: 420px; margin: 32px auto -40px; }
  .hero h1 { max-width: none; }
}

/* Sections */
.section { padding: clamp(48px, 8vw, 96px) 0; }
.section--sand { background: var(--sand); }
.section--dark { background: var(--ink); color: var(--sand); }
.section--dark .link { color: var(--sand-2); }
.section__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.section__head h2 { margin: 0; }
.pagehead { background: var(--sand); padding: clamp(40px, 7vw, 80px) 0 clamp(28px, 5vw, 56px); }
.pagehead .lead { max-width: 40em; margin: 0; }
.split { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(28px, 6vw, 80px); align-items: start; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }
.stack > * + * { margin-top: 32px; }
.stack-sm > * + * { margin-top: 24px; }
.empty { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink-2); text-align: center; }
.note { background: var(--sand); border-left: 4px solid var(--saddle); padding: 16px 20px; border-radius: 0 var(--radius) var(--radius) 0; margin: 32px 0; }
.note p:last-child { margin: 0; }

.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.facts li { display: flex; flex-direction: column; padding: 18px 20px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); border-left: 4px solid var(--saddle); }
.facts strong { font: 600 1.3rem/1.2 var(--serif); }
.facts span { color: var(--ink-2); }

/* Cartes disciplines */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card__media { aspect-ratio: 4 / 3; background: var(--sand-2); display: grid; place-items: center; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__placeholder { font: 600 4rem/1 var(--serif); color: var(--leather-2); opacity: .5; }
@media (max-width: 640px) { .card__media:has(.card__placeholder), .discipline__media:has(.card__placeholder) { aspect-ratio: auto; height: 96px; min-height: 0; } .card__placeholder { font-size: 2.6rem; } }
.card__body { padding: 18px 20px 20px; }
.card__body p:last-child { margin: 0; color: var(--ink-2); }
.tag { display: inline-block; font-size: .8rem; font-weight: 700; color: var(--saddle); background: #f8e7dc; padding: .2em .7em; border-radius: 999px; margin-bottom: .8em; }

/* Cartes de discipline cliquables (accueil) */
.card--link { text-decoration: none; color: inherit; transition: transform .15s ease, box-shadow .15s ease; }
.card--link:hover, .card--link:focus-visible { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(43, 29, 20, .18); }
.card--link:focus-visible { outline: 2px solid var(--saddle); outline-offset: 3px; }
.card--link .card__media img { transition: transform .3s ease; }
.card--link:hover .card__media img { transform: scale(1.04); }
.card__more { display: inline-block; margin-top: .9em; font-weight: 700; color: var(--saddle); }
.card--link:hover .card__more { text-decoration: underline; }

.discipline { display: grid; grid-template-columns: 320px 1fr; gap: 32px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; scroll-margin-top: 90px; }
.discipline__media { background: var(--sand-2); display: grid; place-items: center; min-height: 220px; }
.discipline__media img { width: 100%; height: 100%; object-fit: cover; }
.discipline__body { padding: 28px 28px 24px 0; }
@media (max-width: 760px) {
  .discipline { grid-template-columns: 1fr; gap: 0; }
  .discipline__media { aspect-ratio: 16 / 9; min-height: 0; }
  .discipline__body { padding: 22px; }
}
/* Page « Nos chevaux » : toutes les photos au même format, bandes homogènes */
.discipline--uniform { align-items: start; min-height: 240px; }
.discipline--uniform .discipline__media { height: 240px; min-height: 0; align-self: start; }
.discipline--uniform .discipline__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 760px) {
  .discipline--uniform { min-height: 0; }
  .discipline--uniform .discipline__media { height: 200px; aspect-ratio: auto; }
}
.slots { list-style: none; padding: 0; margin: 0 0 1.2em; border-top: 1px solid var(--line); }
.slots li { display: flex; flex-wrap: wrap; gap: 4px 14px; padding: .55em 0; border-bottom: 1px solid var(--line); }
.slots strong { min-width: 90px; }

/* Stages */
.event { display: grid; grid-template-columns: 72px 1fr auto; gap: 20px; align-items: center; background: #fff; border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); margin-bottom: 14px; }
.event__date { text-align: center; background: var(--leather); color: var(--on-leather); border-radius: 12px; padding: 10px 0; }
.event__day { display: block; font: 600 1.7rem/1 var(--serif); }
.event__month { display: block; text-transform: uppercase; font-size: .75rem; letter-spacing: .1em; }
.event__body h3 { margin-bottom: .2em; }
.event__meta { color: var(--ink-2); margin: 0 0 .4em; }
.event__body p:last-child { margin-bottom: 0; }
.event__side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.event__price { font: 600 1.3rem/1 var(--serif); margin: 0; }
.pill { font-size: .8rem; font-weight: 700; background: #f8e7dc; color: var(--saddle); padding: .25em .8em; border-radius: 999px; }
.pill--muted { background: var(--sand-2); color: var(--ink-2); }
@media (max-width: 640px) {
  .event { grid-template-columns: 60px 1fr; }
  .event__side { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
}

/* Tarifs */
.prices { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.price { background: #fff; border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow); border-top: 4px solid var(--saddle); }
.price h2 { font-size: 1.35rem; }
.price__amount { font: 600 2.4rem/1 var(--serif); color: var(--leather); margin: .2em 0 .3em; }
.price__detail { font-weight: 700; margin-bottom: .3em; }

/* Galerie */
.mosaic { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mosaic img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
@media (max-width: 640px) { .mosaic { grid-template-columns: repeat(2, 1fr); } }
.gallery { columns: 3 260px; column-gap: 14px; }
.gallery figure { margin: 0 0 14px; break-inside: avoid; }
.gallery img { border-radius: 10px; width: 100%; }
.gallery figcaption { font-size: .9rem; color: var(--ink-2); padding: 6px 2px 0; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 92vh; }
.lightbox::backdrop { background: rgba(20, 12, 6, .88); }
.lightbox img { max-width: 94vw; max-height: 88vh; border-radius: 8px; }
.lightbox__close { position: fixed; top: 12px; right: 16px; background: none; border: 0; color: #fff; font-size: 2.4rem; cursor: pointer; }

/* Vidéo et carte (chargement au clic) */
.video, .map { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--ink); }
.map { aspect-ratio: 4 / 3; background: var(--sand-2); }
.video iframe, .map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__play, .map__load { position: absolute; inset: 0; width: 100%; border: 0; padding: 0; cursor: pointer; background: none; }
.video__play img { width: 100%; height: 100%; object-fit: cover; opacity: .8; }
.video__btn { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: var(--saddle); color: #fff; font-weight: 700; padding: .9em 1.6em; border-radius: 999px; }
.map__load { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--leather); font: 700 1.1rem var(--sans); background: repeating-linear-gradient(45deg, var(--sand), var(--sand) 12px, var(--sand-2) 12px, var(--sand-2) 24px); }
.map__load small { font-weight: 400; color: var(--ink-2); max-width: 26em; padding: 0 20px; }
.bigcontact { font: 600 1.6rem/1.2 var(--serif); text-decoration: none; }
.social { display: flex; flex-wrap: wrap; gap: 10px; }

/* Formulaire */
.form fieldset { border: 0; padding: 0; margin: 0 0 36px; }
.form legend { font: 600 1.35rem/1.2 var(--serif); margin-bottom: 16px; padding: 0 0 8px; width: 100%; border-bottom: 1px solid var(--line); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; }
.optional { font-weight: 400; color: var(--ink-2); font-size: .85rem; }
.hint { color: var(--ink-2); font-size: .92rem; }
input[type="text"], input[type="email"], input[type="tel"], input[type="date"], input:not([type]), select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 10px; padding: .75em .9em; min-height: 48px;
}
input:focus, select:focus, textarea:focus { border-color: var(--saddle); outline: none; box-shadow: 0 0 0 3px rgba(180, 88, 46, .18); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; gap: 0; } }
.choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 20px; }
@media (max-width: 560px) { .choices { grid-template-columns: 1fr; } }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; }
.choice span { display: block; text-align: center; padding: 14px 10px; border: 2px solid var(--line); border-radius: 12px; font-weight: 700; background: #fff; transition: all .15s; }
.choice input:checked + span { border-color: var(--leather); background: var(--leather); color: var(--on-leather); }
.choice input:focus-visible + span { outline: 3px solid var(--saddle); outline-offset: 2px; }
.consent { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 24px; font-size: .95rem; cursor: pointer; }
.consent input { width: 22px; height: 22px; margin-top: 2px; flex: none; accent-color: var(--leather); }
.hp { position: absolute; left: -9999px; }
[data-show-for][hidden] { display: none; }
.alert { background: #fff4e5; border: 1px solid #f0c98f; border-radius: 12px; padding: 14px 18px; margin-bottom: 24px; }
.alert--error { background: #fdecea; border-color: #f2b8b0; }
.alert ul { margin: 0; padding-left: 20px; }
.merci__logo { margin: 0 auto 20px; }

.prose h2 { font-size: 1.4rem; margin-top: 1.6em; }
.cta { background: var(--sand); }

/* Pied de page */
.footer { background: var(--leather); color: var(--on-leather); padding: 48px 0 32px; }
.footer a { color: var(--on-leather); }
.footer .btn--light { color: var(--leather); }
.footer .btn--light:hover { color: #fff; }
.footer__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.footer__name { font: 600 1.3rem/1.2 var(--serif); }
.footer .muted { color: var(--sand-2); }
.footer__legal { font-size: .88rem; opacity: .85; }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Page « Bientôt en ligne » et bandeau d'aperçu */
.soon { min-height: 100vh; display: grid; place-items: center; background: var(--sand); padding: 20px; }
.soon__box { text-align: center; max-width: 520px; }
.soon__box img { margin: 0 auto 20px; }
.preview-banner { background: #fff4e0; border-bottom: 1px solid #f0d3a1; color: var(--ink); font-size: .92rem; text-align: center; padding: 8px 16px; }
.preview-banner a { font-weight: 700; }

/* Logo du club (format libre) */
.brand__logo { height: 44px; width: auto; max-width: 150px; object-fit: contain; }
.soon__box img, .merci__logo { height: 84px; width: auto; max-width: 240px; object-fit: contain; }
/* Nom du club (titre) : police dédiée + présentation possible sur plusieurs lignes */
.brand__name { font-family: var(--brand-font, var(--serif)); line-height: 1.05; display: inline-block; }
/* Bandeau d'infos défilant (événements, promos) */
.ticker { background: var(--tbg, #b4582e); color: var(--tfg, #fff); overflow: hidden; white-space: nowrap; }
.ticker__link { color: inherit; text-decoration: none; display: block; }
.ticker__track { display: inline-flex; animation: ticker-scroll 28s linear infinite; }
.ticker__group { display: inline-flex; gap: 2.5rem; padding: .5rem 2.5rem .5rem 0; }
.ticker__item { font: 600 .9rem/1.4 var(--sans); }
.ticker:hover .ticker__track { animation-play-state: paused; }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker__track { animation: none; } }
/* Bande visuelle en haut des pages intérieures (photos/vidéo) */
.pagebanner { position: relative; height: 220px; overflow: hidden; background: var(--sand-2); }
.pagebanner .hero__scrim { background: linear-gradient(180deg, rgba(43,29,20,.15), rgba(43,29,20,.30)); }
@media (max-width: 760px) { .pagebanner { height: 150px; } }
/* Bande info/promo un peu plus haute et lisible */
.ticker__group { padding-top: .75rem; padding-bottom: .75rem; }
.ticker__item { font-size: 1.02rem; }
