/* ---------------------------------------------------------------------------
   Black Friday Week 2026 — Gymnasia Villefranche
   Habillage par-dessus Bootstrap 5.3. Couleurs et typo repris de l'affiche.
   --------------------------------------------------------------------------- */

:root {
  --or: #c68c43;
  --or-clair: #e0a95e;
  --creme: #f0ede4;
  --gris: #a9a196;
  --noir: #000;
  --noir-2: #0b0b0b;
  --noir-3: #131313;

  --bs-body-bg: var(--noir);
  --bs-body-color: var(--creme);
  --bs-body-font-family: "Montserrat", system-ui, sans-serif;
  --bs-body-font-weight: 300;
  --bs-emphasis-color: var(--creme);
  --bs-link-color: var(--or);
  --bs-link-hover-color: var(--or-clair);
  --bs-border-color: rgba(198, 140, 67, .25);
}

body {
  background: var(--noir);
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--or); color: #000; }

:focus-visible {
  outline: 2px solid var(--or-clair);
  outline-offset: 3px;
}

.lien-evitement {
  position: absolute;
  z-index: 1080;
  margin: .5rem;
  padding: .5rem 1rem;
  background: var(--or);
  color: #000;
}

/* --- Titres et blocs de texte communs ------------------------------------ */

.surtitre {
  margin-bottom: .75rem;
  color: var(--or);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .3em;
  text-transform: uppercase;
  text-align: center;
}

.titre-section {
  margin-bottom: 1.25rem;
  font-family: "Anton", "Montserrat", sans-serif;
  font-size: clamp(1.9rem, 5vw, 3rem);
  font-weight: 400;
  letter-spacing: .01em;
  line-height: 1.05;
  text-align: center;
  text-transform: uppercase;
}

.titre-section--gauche { text-align: left; }
.titre-section--gauche + .liste-conditions { margin-top: 1.5rem; }

.chapo {
  max-width: 44rem;
  margin: 0 auto;
  color: var(--gris);
  font-size: 1.05rem;
  line-height: 1.7;
  text-align: center;
}

.note {
  color: #7d766c;
  font-size: .85rem;
}

.section { padding: clamp(3.5rem, 9vw, 7rem) 0; }
.section--sombre { background: var(--noir-2); }

/* --- Boutons -------------------------------------------------------------- */

.btn-or,
.btn-fantome {
  --bs-btn-padding-x: 1.6rem;
  --bs-btn-padding-y: .7rem;
  --bs-btn-border-radius: 2px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .82rem;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}

.btn-or {
  background: var(--or);
  border: 1px solid var(--or);
  color: #000;
}
.btn-or:hover,
.btn-or:focus-visible {
  background: var(--or-clair);
  border-color: var(--or-clair);
  color: #000;
  transform: translateY(-1px);
}

.btn-fantome {
  background: transparent;
  border: 1px solid rgba(240, 237, 228, .45);
  color: var(--creme);
}
.btn-fantome:hover,
.btn-fantome:focus-visible {
  background: rgba(240, 237, 228, .08);
  border-color: var(--creme);
  color: var(--creme);
  transform: translateY(-1px);
}

.btn-lg { --bs-btn-font-size: .88rem; --bs-btn-padding-x: 2.1rem; --bs-btn-padding-y: .85rem; }

/* --- Barre de navigation -------------------------------------------------- */

.barre {
  background: rgba(0, 0, 0, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(198, 140, 67, .2);
  padding-block: .5rem;
}

.barre .navbar-brand img { display: block; }

.barre .nav-link {
  color: var(--creme);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.barre .nav-link:hover,
.barre .nav-link:focus-visible { color: var(--or); }

.barre .navbar-toggler:focus { box-shadow: none; }

/* --- Hero ----------------------------------------------------------------- */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: calc(100svh - 62px);
  padding: clamp(3rem, 8vw, 5rem) 0 clamp(2rem, 5vw, 4rem);
  overflow: hidden;
  isolation: isolate;
}

.hero__fond {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .55) 32%, rgba(0, 0, 0, .35) 52%, rgba(0, 0, 0, .88) 82%, #000 100%),
    radial-gradient(120% 70% at 50% 60%, transparent 40%, rgba(0, 0, 0, .6) 100%);
}

.hero__titre {
  margin: 0;
  font-family: "Anton", "Montserrat", sans-serif;
  font-size: clamp(3.1rem, 13vw, 8.5rem);
  font-weight: 400;
  line-height: .92;
  letter-spacing: .005em;
  text-transform: uppercase;
  text-shadow: 0 2px 40px rgba(0, 0, 0, .7);
}

.hero__titre--or { color: var(--or); }

.hero__dates {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin: clamp(1.5rem, 4vw, 2.75rem) 0 0;
  font-size: clamp(.95rem, 2.2vw, 1.5rem);
  font-weight: 300;
  letter-spacing: .22em;
}

.filet {
  flex: 0 1 8rem;
  height: 1px;
  background: var(--or);
}

.hero__remise {
  margin: clamp(.25rem, 1vw, .75rem) 0 0;
  font-family: "Anton", "Montserrat", sans-serif;
  font-weight: 400;
  line-height: .85;
  letter-spacing: -.01em;
}

.hero__remise-nb { font-size: clamp(5.5rem, 27vw, 17rem); }

.hero__remise-pc {
  font-size: clamp(2rem, 9vw, 5.5rem);
  vertical-align: super;
  line-height: 1;
}

.hero__objet {
  margin: 0;
  font-size: clamp(1rem, 3vw, 1.9rem);
  font-weight: 300;
  letter-spacing: .06em;
}

.hero__mention {
  margin: clamp(2rem, 5vw, 3rem) auto 0;
  padding-top: 1.1rem;
  max-width: 30rem;
  border-top: 1px solid rgba(198, 140, 67, .55);
  color: var(--gris);
  font-size: .9rem;
  font-weight: 300;
  letter-spacing: .08em;
}

/* --- Compte à rebours ----------------------------------------------------- */

.compteur {
  background: var(--noir-2);
  border-block: 1px solid rgba(198, 140, 67, .25);
}

.compteur__intro {
  margin: 0;
  color: var(--or);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .3em;
  text-transform: uppercase;
}

.compteur li { min-width: 4.5rem; }

.compteur__nb {
  display: block;
  font-family: "Anton", "Montserrat", sans-serif;
  font-size: clamp(1.9rem, 6vw, 3rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.compteur__label {
  display: block;
  margin-top: .35rem;
  color: var(--gris);
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.compteur--termine .compteur__nb { color: var(--gris); }

/* --- Cartes séances ------------------------------------------------------- */

.carte {
  position: relative;
  padding: 2.25rem 1.75rem;
  background: linear-gradient(180deg, var(--noir-3), var(--noir));
  border: 1px solid rgba(240, 237, 228, .12);
  border-radius: 3px;
  text-align: center;
  transition: transform .25s ease, border-color .25s ease;
}

.carte:hover {
  transform: translateY(-4px);
  border-color: rgba(198, 140, 67, .55);
}

.carte--phare {
  border-color: var(--or);
  box-shadow: 0 0 0 1px rgba(198, 140, 67, .25), 0 20px 60px -30px rgba(198, 140, 67, .8);
}

.carte__badge {
  position: absolute;
  top: -.75rem;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  padding: .3rem .9rem;
  background: var(--or);
  border-radius: 2px;
  color: #000;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  white-space: nowrap;
}

.carte__nom {
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.carte__prix {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: .9rem;
  margin-bottom: .35rem;
}

.carte__prix-barre {
  color: #6f6860;
  font-size: 1.15rem;
  text-decoration: line-through;
}

.carte__prix-or {
  color: var(--or);
  font-family: "Anton", "Montserrat", sans-serif;
  font-size: clamp(2.4rem, 6vw, 3.2rem);
  line-height: 1;
}

.carte__eco {
  margin-bottom: 1.25rem;
  color: var(--creme);
  font-size: .85rem;
  letter-spacing: .06em;
}

.carte__detail {
  margin: 0;
  color: var(--gris);
  font-size: .92rem;
  line-height: 1.6;
}

/* --- Étapes --------------------------------------------------------------- */

.etape {
  padding: 2rem 1.5rem;
  border-left: 1px solid rgba(198, 140, 67, .35);
}

.etape__num {
  margin-bottom: .75rem;
  color: var(--or);
  font-family: "Anton", "Montserrat", sans-serif;
  font-size: 2.6rem;
  line-height: 1;
}

.etape__titre {
  margin-bottom: .6rem;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: .04em;
}

.etape__texte {
  margin: 0;
  color: var(--gris);
  line-height: 1.7;
}

/* --- Conditions et infos club --------------------------------------------- */

.liste-conditions {
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--gris);
}

.liste-conditions li {
  position: relative;
  padding: .55rem 0 .55rem 1.6rem;
  border-bottom: 1px solid rgba(240, 237, 228, .08);
  line-height: 1.65;
}

.liste-conditions li::before {
  content: "";
  position: absolute;
  top: 1.25rem;
  left: 0;
  width: .55rem;
  height: 1px;
  background: var(--or);
}

.infos-club { color: var(--gris); }
.infos-club strong { color: var(--creme); letter-spacing: .1em; text-transform: uppercase; }

.affiche img {
  border: 1px solid rgba(198, 140, 67, .35);
  border-radius: 3px;
  box-shadow: 0 30px 80px -40px rgba(198, 140, 67, .6);
}

/* --- Pied de page --------------------------------------------------------- */

.pied {
  background: var(--noir);
  border-top: 1px solid rgba(240, 237, 228, .1);
  color: #6f6860;
  font-size: .85rem;
}

.pied a { color: var(--gris); text-decoration: none; }
.pied a:hover { color: var(--or); }

/* --- Apparition au défilement --------------------------------------------- */

.apparait {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}

.apparait.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .apparait { opacity: 1; transform: none; }
}

@media (max-width: 575.98px) {
  .filet { flex-basis: 2rem; }
  .hero__dates { gap: .75rem; letter-spacing: .14em; }
  .etape { border-left: 0; border-top: 1px solid rgba(198, 140, 67, .35); }
}

/* Menu déplié sur mobile */
@media (max-width: 767.98px) {
  .barre .navbar-collapse {
    margin-top: .5rem;
    padding: .5rem 0 .75rem;
    border-top: 1px solid rgba(198, 140, 67, .2);
  }

  .barre .nav-link { padding-block: .65rem; }

  .barre .btn-or {
    display: block;
    margin-top: .75rem;
    text-align: center;
  }
}

/* --- Formulaire de réservation -------------------------------------------
   Les sélecteurs suivent les classes du chunk FORM-LD-VDL-OFFSEP (celles du
   site Gymnasia) : le markup n'est pas à retoucher pour cette page.
   ------------------------------------------------------------------------- */

.panneau-form {
  max-width: 44rem;
  padding: clamp(1.5rem, 4vw, 2.75rem);
  background: linear-gradient(180deg, var(--noir-3), var(--noir));
  border: 1px solid rgba(198, 140, 67, .35);
  border-radius: 3px;
}

.php-email-forms .form-row { margin-bottom: 1.15rem; }

.php-email-forms .form-row.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.php-email-forms label {
  display: block;
  margin-bottom: .4rem;
  color: var(--creme);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.php-email-forms input:not([type="hidden"]),
.php-email-forms textarea,
.php-email-forms select {
  width: 100%;
  padding: .7rem .9rem;
  background: rgba(0, 0, 0, .55);
  border: 1px solid rgba(240, 237, 228, .18);
  border-radius: 2px;
  color: var(--creme);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 300;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.php-email-forms ::placeholder { color: #6f6860; opacity: 1; }

.php-email-forms input:focus,
.php-email-forms textarea:focus,
.php-email-forms select:focus {
  background: rgba(0, 0, 0, .7);
  border-color: var(--or);
  box-shadow: 0 0 0 .2rem rgba(198, 140, 67, .2);
  outline: none;
}

/* Le bouton : .btn-primary de Bootstrap est bleu, il faut le reprendre ici */
.php-email-forms .form-submit,
.php-email-forms .btn-primary {
  display: block;
  width: 100%;
  margin-top: 1.75rem;
  padding: .9rem 2rem;
  background: var(--or);
  border: 1px solid var(--or);
  border-radius: 2px;
  color: #000;
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: background-color .2s ease, transform .2s ease;
}

.php-email-forms .form-submit:hover,
.php-email-forms .form-submit:focus-visible {
  background: var(--or-clair);
  border-color: var(--or-clair);
  color: #000;
  transform: translateY(-1px);
}

.php-email-forms .form-note {
  margin: 1.25rem 0 0;
  color: #7d766c;
  font-size: .82rem;
  line-height: 1.6;
  text-align: center;
}

/* Message de succès renvoyé par FormIt.
   Rendu à l'intérieur de .panneau-form : celui-ci fournit déjà le cadre, on ne
   double pas la bordure. */
.panneau-form .form-success {
  padding: 0;
  background: none;
  border: 0;
}

.form-success {
  max-width: 44rem;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3rem);
  background: linear-gradient(180deg, var(--noir-3), var(--noir));
  border: 1px solid var(--or);
  border-radius: 3px;
  text-align: center;
}

.form-success-icon {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1.25rem;
  border: 1px solid var(--or);
  border-radius: 50%;
  color: var(--or);
  font-size: 1.6rem;
  line-height: 3.4rem;
}

.form-success h3 {
  margin-bottom: .75rem;
  color: var(--or);
  font-family: "Anton", "Montserrat", sans-serif;
  font-size: clamp(1.5rem, 4vw, 2rem);
  letter-spacing: .02em;
  text-transform: uppercase;
}

.form-success p { margin: 0; color: var(--gris); line-height: 1.7; }

/* Messages d'erreur FormIt — utilisables si vous ajoutez leur affichage
   au chunk (voir modx/NOTES.md, « Les erreurs de saisie »). */
.fi-error:not(:empty) {
  display: block;
  margin-top: .35rem;
  color: #e2705a;
  font-size: .82rem;
}

.fi-alerte {
  margin-bottom: 1.5rem;
  padding: .9rem 1.1rem;
  background: rgba(226, 112, 90, .12);
  border-left: 3px solid #e2705a;
  color: #f0b4a7;
  font-size: .92rem;
}

@media (max-width: 575.98px) {
  .php-email-forms .form-row.two { grid-template-columns: 1fr; }
}
