/*
 * Pro/Active — accueil V3.
 * Photos d'abord, angles vifs, mouvement progressif et aucun contenu vital
 * masqué sans JavaScript. Préfixe exclusif : ac-.
 */

.ac-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.ac-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.ac-main {
  overflow: clip;
  background: var(--pa-fond);
}

.ac-section,
#recherche,
#services,
#pourqui,
#le-centre,
#contact {
  scroll-margin-top: 96px;
}

.ac-section {
  position: relative;
  padding-block: clamp(48px, 6vw, 88px);
}

.ac-section h2,
.ac-contact h2 {
  margin: 0;
  font-family: var(--pa-police-titre);
  font-size: clamp(34px, 5vw, 68px);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: var(--pa-blanc);
}

.ac-relief {
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.25s ease;
}

.ac-relief.is-relief {
  transition-duration: 0.09s, 0.25s;
}

.ac-relief picture,
.ac-relief > img,
.ac-relief > span {
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.ac-relief.is-relief picture,
.ac-relief.is-relief > img {
  transform: translateZ(22px) scale(1.025);
}

.ac-relief:focus-visible,
.ac-technique:focus-visible,
.ac-offre:focus-visible,
.ac-diapo a:focus-visible,
.ac-diapo button:focus-visible,
.ac-contact a:focus-visible {
  outline: 3px solid var(--pa-blanc);
  outline-offset: 4px;
}

/* Entrée pivotante reprise du relief3d de Com'in Clean. Le masquage reste
   conditionné à .js-anim, classe posée par le socle JavaScript commun. */
.js-anim .ac-piliers__grille[data-anim-serie] > *,
.js-anim .ac-recuperation__photos[data-anim-serie] > *,
.js-anim .ac-centre__cartes[data-anim-serie] > * {
  transform: perspective(1000px) rotateY(-22deg) rotateX(8deg) translateY(44px) scale(0.95);
  transform-origin: 50% 100%;
}

.js-anim .ac-piliers__grille[data-anim-serie].est-visible > *,
.js-anim .ac-recuperation__photos[data-anim-serie].est-visible > *,
.js-anim .ac-centre__cartes[data-anim-serie].est-visible > * {
  transform: none;
}

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

.vt-hero--accueil.ac-hero {
  position: relative;
  z-index: 2;
  display: block;
  min-height: calc(100vh - 76px);
  overflow: visible;
  background: var(--pa-fond-profond);
}

@supports (min-height: 100svh) {
  .vt-hero--accueil.ac-hero {
    min-height: calc(100svh - 76px);
  }
}

.ac-hero__cadre,
.ac-hero__voile {
  position: absolute;
  inset: 0;
}

.ac-hero__cadre {
  overflow: hidden;
}

.ac-hero__fond {
  position: absolute;
  inset: -7vh 0;
}

.ac-hero__fond .vt-defile {
  inset: 0;
}

.ac-hero__fond .vt-defile__img {
  object-position: center;
}

.ac-hero__voile {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(1, 26, 47, 0.9) 0%, rgba(1, 38, 71, 0.66) 42%, rgba(1, 38, 71, 0.08) 78%, transparent 100%),
    linear-gradient(0deg, rgba(1, 26, 47, 0.7) 0%, transparent 40%);
}

.ac-hero__contenu {
  position: relative;
  z-index: 3;
  min-height: calc(100vh - 76px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(28px, 5vh, 54px);
  padding-block: clamp(28px, 7vh, 84px);
}

@supports (min-height: 100svh) {
  .ac-hero__contenu {
    min-height: calc(100svh - 76px);
  }
}

.ac-hero__message {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  max-width: 900px;
}

.ac-hero__titre {
  margin: 0;
  font-family: var(--pa-police-titre);
  font-size: clamp(48px, 8vw, 116px);
  font-weight: 400;
  line-height: 0.82;
  letter-spacing: -0.055em;
  text-transform: uppercase;
  color: var(--pa-blanc);
  perspective: 900px;
}

.ac-hero__mot {
  display: block;
  transform-origin: left bottom;
}

.ac-hero__mot:nth-child(2) {
  padding-left: 0.55em;
}

.ac-hero__mot:nth-child(3) {
  padding-left: 1.1em;
  color: var(--pa-accent);
}

.ac-js .ac-hero__mot {
  opacity: 0;
  filter: blur(7px);
  transform: translateY(0.55em) rotateX(-18deg);
  transition: opacity 0.65s ease, filter 0.65s ease,
    transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

.ac-js .ac-hero__mot.is-visible {
  opacity: 1;
  filter: none;
  transform: none;
}

.ac-hero__phrase {
  max-width: 540px;
  margin: 0;
  color: var(--pa-texte);
  font-size: clamp(15px, 2vw, 19px);
  font-weight: 650;
  line-height: 1.45;
}

.ac-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
}

.ac-hero__reserver {
  min-width: 210px;
  min-height: 56px;
  padding: 17px 42px;
  font-size: 18px;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    background 0.2s ease, color 0.2s ease;
}

.ac-hero__reserver:hover {
  transform: translate(-3px, -3px);
}

/* Badge vidéo « Comment ça marche » ------------------------------------
   Les animations vidéo faites par le client (static/video/). Lien MP4 en
   repli sans JS ; comment-ca-marche.js ouvre la modale <dialog>. */

.ac-cm-badge {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 4px 16px 4px 4px;
  background: rgba(1, 26, 47, 0.72);
  border: 1px solid var(--pa-accent);
  color: var(--pa-blanc);
  text-decoration: none;
}

.ac-cm-badge:hover,
.ac-cm-badge:focus-visible {
  color: var(--pa-blanc);
}

.ac-cm-badge:hover .ac-cm-badge__titre,
.ac-cm-badge:focus-visible .ac-cm-badge__titre {
  color: var(--pa-accent);
}

.ac-cm-badge:focus-visible {
  outline: 3px solid var(--pa-blanc);
  outline-offset: 3px;
}

.ac-cm-badge__rond {
  position: relative;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--pa-accent);
}

/* Onde carrée qui s'élargit autour du bouton lecture (pas d'ombre : charte). */
.ac-cm-badge__rond::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid var(--pa-accent);
  animation: ac-cm-onde 2.4s ease-out infinite;
  pointer-events: none;
}

.ac-cm-badge__icone {
  width: 16px;
  height: 16px;
  margin-left: 2px;
  fill: var(--pa-fond-profond);
}

.ac-cm-badge__texte {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ac-cm-badge__titre {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  transition: color 0.15s ease;
}

.ac-cm-badge__sous {
  color: var(--pa-texte);
  font-size: 12px;
}

@keyframes ac-cm-onde {
  0% { opacity: 0.9; transform: scale(1); }
  70%, 100% { opacity: 0; transform: scale(1.5); }
}

.ac-cm-modale {
  width: 100%;
  max-width: min(720px, 92vw);
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--pa-texte);
}

.ac-cm-modale::backdrop {
  background: rgba(1, 15, 29, 0.86);
}

.ac-cm-modale__cadre {
  position: relative;
  aspect-ratio: 16 / 9;
  margin-top: 52px;
  background: #000;
  border: 1px solid var(--pa-bordure);
}

.ac-cm-modale__fermer {
  position: absolute;
  top: -52px;
  right: 0;
  z-index: 1;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--pa-bordure);
  background: var(--pa-fond-profond);
  color: var(--pa-blanc);
  cursor: pointer;
}

.ac-cm-modale__fermer:hover,
.ac-cm-modale__fermer:focus-visible {
  border-color: var(--pa-accent);
  color: var(--pa-accent);
}

.ac-cm-modale__fermer svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: square;
}

.ac-cm-modale__lecteur {
  display: block;
  width: 100%;
  height: 100%;
  background: #000;
}

@media (max-width: 700px) {
  .ac-cm-badge {
    min-height: 52px;
    padding-right: 12px;
  }

  .ac-cm-badge__titre {
    font-size: 14px;
  }

  .ac-cm-modale {
    max-width: min(380px, 92vw);
  }

  .ac-cm-modale__cadre {
    aspect-ratio: 9 / 16;
    max-height: calc(100svh - 90px);
    margin-inline: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ac-cm-badge__rond::after {
    animation: none;
    opacity: 0;
  }
}

/* Recherche de sport ---------------------------------------------------- */

.ac-recherche {
  position: relative;
  z-index: 8;
  width: min(780px, 100%);
  margin: 0;
  padding: 17px;
  background: rgba(1, 26, 47, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(12px);
}

.ac-recherche__label {
  display: block;
  margin: 0 0 10px;
  color: var(--pa-blanc);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.ac-recherche__ligne {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: stretch;
  gap: 10px;
}

.ac-recherche__champ {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
}

.ac-recherche__loupe {
  position: absolute;
  z-index: 1;
  left: 17px;
  top: 50%;
  width: 21px;
  height: 21px;
  transform: translateY(-50%);
  fill: none;
  stroke: var(--pa-accent);
  stroke-width: 1.8;
  stroke-linecap: round;
  pointer-events: none;
}

.ac-recherche__input {
  min-height: 56px;
  padding: 14px 16px 14px 51px;
  border: 2px solid transparent;
  background: var(--pa-blanc);
  color: var(--pa-fond);
  font-size: 16px;
  font-weight: 700;
}

.ac-recherche__input::placeholder {
  color: #506b82;
}

.ac-recherche__input:focus {
  border-color: var(--pa-accent);
  outline: 2px solid var(--pa-blanc);
  outline-offset: 2px;
}

.ac-recherche__input::-webkit-search-cancel-button {
  appearance: none;
}

.ac-recherche__btn {
  width: auto;
  min-width: 132px;
  min-height: 56px;
  padding: 14px 22px;
  white-space: nowrap;
}

.ac-suggestions {
  position: absolute;
  z-index: 70;
  top: calc(100% + 7px);
  left: 0;
  right: 0;
  max-height: 252px;
  overflow-y: auto;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--pa-panneau);
  border: 2px solid var(--pa-accent);
}

.ac-suggestion {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 11px 13px;
  cursor: pointer;
  color: var(--pa-texte);
  font-size: 15px;
  font-weight: 750;
  line-height: 1.25;
}

.ac-suggestion svg {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--pa-accent);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ac-suggestion__libelle {
  flex: 1 1 auto;
  min-width: 0;
}

.ac-suggestion__note {
  flex: 0 0 auto;
  color: var(--pa-accent);
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ac-suggestion:hover,
.ac-suggestion.is-actif {
  background: var(--pa-carte-alt);
  color: var(--pa-blanc);
}

.ac-suggestion:hover svg,
.ac-suggestion.is-actif svg,
.ac-suggestion:hover .ac-suggestion__note,
.ac-suggestion.is-actif .ac-suggestion__note {
  stroke: var(--pa-blanc);
  color: var(--pa-blanc);
}

.ac-suggestion.is-actif {
  outline: 2px solid var(--pa-accent);
  outline-offset: -2px;
}

/* Trois piliers --------------------------------------------------------- */

.ac-piliers {
  padding: 0;
  background: var(--pa-fond-profond);
}

.ac-piliers__grille {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-height: min(760px, 78vh);
  perspective: 1200px;
}

.ac-pilier {
  position: relative;
  min-width: 0;
  min-height: 560px;
  overflow: hidden;
  color: var(--pa-blanc);
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  isolation: isolate;
}

.ac-pilier:last-child {
  border-right: 0;
}

.ac-pilier__media,
.ac-pilier__media img,
.ac-pilier__voile {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.ac-pilier__media img {
  object-fit: cover;
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), filter 0.45s ease;
}

.ac-pilier__voile {
  z-index: 1;
  background: linear-gradient(0deg, rgba(1, 26, 47, 0.95) 0%, rgba(1, 38, 71, 0.1) 68%);
}

.ac-pilier__texte {
  position: absolute;
  z-index: 2;
  left: clamp(22px, 4vw, 58px);
  right: 22px;
  bottom: clamp(28px, 6vw, 68px);
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: var(--pa-blanc);
}

.ac-pilier__texte strong {
  font-family: var(--pa-police-titre);
  font-size: clamp(30px, 3.5vw, 58px);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}

.ac-pilier__texte small {
  color: var(--pa-texte);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ac-pilier:hover {
  color: var(--pa-blanc);
}

.ac-pilier:hover .ac-pilier__media img {
  transform: scale(1.08);
  filter: saturate(1.08);
}

.ac-pilier[href*="recuperer"] .ac-pilier__texte strong {
  color: var(--pa-accent);
}

/* Récupération ---------------------------------------------------------- */

.ac-recuperation {
  background: var(--pa-fond);
}

.ac-recuperation__photos {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(10px, 1.5vw, 22px);
  perspective: 1200px;
}

.ac-technique {
  position: relative;
  grid-column: span 3;
  aspect-ratio: 3 / 4;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--pa-bordure);
  background: var(--pa-panneau);
  color: var(--pa-blanc);
  isolation: isolate;
}

.ac-technique:nth-child(even) {
  margin-top: 44px;
}

.ac-technique picture,
.ac-technique img {
  display: block;
  width: 100%;
  height: 100%;
}

.ac-technique img {
  object-fit: cover;
  transition: transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.ac-technique::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(0deg, rgba(1, 26, 47, 0.92), transparent 58%);
  pointer-events: none;
}

.ac-technique strong {
  position: absolute;
  z-index: 2;
  left: 18px;
  right: 18px;
  bottom: 18px;
  color: var(--pa-blanc);
  font-family: var(--pa-police-titre);
  font-size: clamp(19px, 2.2vw, 30px);
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
}

.ac-technique:hover {
  color: var(--pa-blanc);
  border-color: var(--pa-accent);
}

.ac-technique:hover img {
  transform: scale(1.08);
}

.ac-recuperation__entete {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 28px;
  margin-top: clamp(34px, 6vw, 74px);
}

.ac-recuperation__entete h2 {
  max-width: 800px;
}

/* Jours et heures de la récup, même ligne que /recuperer/ et /services/
   (`.sv-horaires` de service.css, non chargée sur l'accueil). */
.ac-horaires {
  display: inline-flex;
  flex-direction: column;
  margin: 14px 0 0;
  padding: 11px 16px;
  color: var(--pa-blanc);
  background: rgba(1, 26, 47, 0.82);
  border-left: 4px solid var(--pa-accent);
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: 0.015em;
}

.ac-horaires__point {
  color: var(--pa-accent);
  font-weight: 800;
}

/* 22/10/2026 : deux lignes (sessions / massages), plus longues que l'ancienne
   « Samedi matin · 9 h… » : sur téléphone, le bloc passe sous le titre au
   lieu d'être écrasé à sa droite. */
.ac-horaires {
  flex: none;
}

@media (max-width: 900px) {
  .ac-recuperation__entete {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

.ac-offres {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.ac-offre {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 15px;
  border: 2px solid var(--pa-accent);
  color: var(--pa-blanc);
  font-size: 14px;
  font-weight: 800;
  transition: transform 0.25s ease, background 0.2s ease, color 0.2s ease;
}

.ac-offre small {
  padding-left: 10px;
  border-left: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--pa-texte-2);
  font-size: 12px;
  font-weight: 750;
}

.ac-offre:hover {
  background: var(--pa-blanc);
  color: var(--pa-fond);
  transform: translateY(-3px);
}

.ac-offre:hover small {
  color: var(--pa-fond);
  border-color: rgba(1, 38, 71, 0.3);
}

/* Bike fitting ---------------------------------------------------------- */

.ac-bike-section {
  padding-top: 0;
  background: var(--pa-fond);
}

.ac-bike {
  position: relative;
  display: block;
  min-height: 620px;
  overflow: hidden;
  border: 1px solid var(--pa-bordure);
  background: var(--pa-fond-profond);
  color: var(--pa-blanc);
  isolation: isolate;
}

.ac-bike__media,
.ac-bike__media img,
.ac-bike__voile {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.ac-bike__media img {
  object-fit: cover;
  object-position: center;
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.ac-bike__voile {
  z-index: 1;
  background: linear-gradient(90deg, rgba(1, 26, 47, 0.95) 0%, rgba(1, 38, 71, 0.68) 48%, rgba(1, 38, 71, 0.05) 100%);
}

.ac-bike__contenu {
  position: relative;
  z-index: 2;
  min-height: 620px;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 17px;
  padding: clamp(28px, 6vw, 78px);
}

.ac-bike__contenu > h2 {
  font-family: var(--pa-police-titre);
  font-size: clamp(48px, 8vw, 105px);
  font-weight: 400;
  line-height: 0.86;
  letter-spacing: -0.055em;
  text-transform: uppercase;
}

.ac-bike__phrase {
  color: var(--pa-texte);
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 700;
}

.ac-bike__formules {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.ac-bike__formules > span {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  background: rgba(1, 38, 71, 0.66);
  color: var(--pa-blanc);
  font-size: 13px;
  font-weight: 800;
}

.ac-bike:hover {
  color: var(--pa-blanc);
  border-color: var(--pa-accent);
}

.ac-bike:hover .ac-bike__media img {
  transform: scale(1.055);
}

/* Professionnels de santé ---------------------------------------------- */

.ac-sante {
  background: var(--pa-fond-profond);
}

.ac-sante .vt-conteneur {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: clamp(34px, 7vw, 96px);
  align-items: center;
}

.ac-sante__visuel {
  position: relative;
  display: block;
  min-height: 650px;
  color: inherit;
}

.ac-sante__photo {
  position: absolute;
  display: block;
  overflow: hidden;
  border: 1px solid var(--pa-bordure);
  background: var(--pa-panneau);
}

.ac-sante__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.ac-sante__photo--principale {
  inset: 0 20% 8% 0;
}

.ac-sante__photo--portrait {
  z-index: 2;
  width: 44%;
  height: 42%;
  right: 0;
  bottom: 0;
  border: 8px solid var(--pa-fond-profond);
}

.ac-sante__photo--portrait img {
  object-position: center 35%;
}

.ac-sante__visuel:hover .ac-sante__photo img {
  transform: scale(1.045);
}

.ac-sante__contenu {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.ac-sante__contenu h2 {
  font-size: clamp(30px, 3.4vw, 50px);
  overflow-wrap: break-word;
}

.ac-sante__contenu .ac-reperes {
  margin-top: 12px;
}

.ac-reperes {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--pa-bordure);
}

.ac-reperes li {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--pa-bordure);
  color: var(--pa-texte);
  font-size: 16px;
  font-weight: 800;
}

.ac-reperes li::before {
  content: "/";
  color: var(--pa-accent);
  font-family: var(--pa-police-titre);
  font-size: 25px;
}

/* Centre et diaporama --------------------------------------------------- */

.ac-centre {
  background: var(--pa-fond);
}

.ac-diapo {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  border: 1px solid var(--pa-bordure);
  background: var(--pa-fond-profond);
  isolation: isolate;
}

.ac-diapo__images,
.ac-diapo__image,
.ac-diapo__voile {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.ac-diapo__image {
  object-fit: cover;
  z-index: 0;
}

.ac-diapo__image:first-child {
  z-index: 1;
}

.ac-diapo.is-active .ac-diapo__image {
  z-index: 0;
  opacity: 0;
  transform: scale(1.035);
  transition: opacity 0.85s ease, transform 5.8s linear;
}

.ac-diapo.is-active .ac-diapo__image.is-active {
  z-index: 1;
  opacity: 1;
  transform: scale(1.08);
}

.ac-diapo__voile {
  z-index: 2;
  background: linear-gradient(0deg, rgba(1, 26, 47, 0.91) 0%, rgba(1, 38, 71, 0.12) 70%);
}

.ac-diapo__contenu {
  position: absolute;
  z-index: 3;
  left: clamp(24px, 6vw, 80px);
  right: clamp(24px, 6vw, 80px);
  bottom: clamp(82px, 11vw, 120px);
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.ac-diapo__liens {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.ac-diapo__liens a {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  padding: 10px 15px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(1, 38, 71, 0.62);
  color: var(--pa-blanc);
  font-size: 13px;
  font-weight: 800;
  transition: background 0.2s ease, color 0.2s ease, transform 0.25s ease;
}

.ac-diapo__liens a:hover {
  background: var(--pa-blanc);
  color: var(--pa-fond);
  transform: translateY(-3px);
}

.ac-diapo__commandes {
  position: absolute;
  z-index: 4;
  left: clamp(24px, 6vw, 80px);
  right: clamp(24px, 6vw, 80px);
  bottom: 25px;
  display: none;
  align-items: center;
  gap: 12px;
}

.ac-diapo.is-active .ac-diapo__commandes {
  display: flex;
}

.ac-diapo__commandes button {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(1, 38, 71, 0.75);
  color: var(--pa-blanc);
  font-size: 20px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.25s ease;
}

.ac-diapo__commandes button:hover {
  background: var(--pa-blanc);
  color: var(--pa-fond);
  transform: translateY(-2px);
}

.ac-diapo__points {
  flex: 1 1 auto;
  display: flex;
  gap: 5px;
}

.ac-diapo__point {
  flex: 1 1 0;
  max-width: 62px;
  height: 3px;
  background: rgba(255, 255, 255, 0.35);
}

.ac-diapo__point.is-active {
  background: var(--pa-accent);
}

.ac-centre__cartes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.5vw, 34px);
  margin-top: clamp(18px, 3vw, 38px);
  perspective: 1200px;
}

.ac-carte-lien {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid var(--pa-bordure);
  background: var(--pa-fond-profond);
  color: var(--pa-blanc);
  isolation: isolate;
}

.ac-carte-lien picture,
.ac-carte-lien picture::after,
.ac-carte-lien img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.ac-carte-lien picture::after {
  content: "";
  z-index: 1;
  background: linear-gradient(0deg, rgba(1, 26, 47, 0.94), transparent 66%);
}

.ac-carte-lien img {
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.ac-carte-lien > span {
  position: absolute;
  z-index: 2;
  left: clamp(22px, 4vw, 46px);
  right: 22px;
  bottom: clamp(24px, 4vw, 42px);
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.ac-carte-lien strong {
  color: var(--pa-blanc);
  font-family: var(--pa-police-titre);
  font-size: clamp(27px, 3.4vw, 46px);
  font-weight: 400;
  line-height: 0.98;
  text-transform: uppercase;
}

.ac-carte-lien small {
  color: var(--pa-texte);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ac-carte-lien:hover {
  color: var(--pa-blanc);
  border-color: var(--pa-accent);
}

.ac-carte-lien:hover img {
  transform: scale(1.07);
}

/* Contact --------------------------------------------------------------- */

.ac-contact {
  position: relative;
  min-height: 680px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--pa-fond-profond);
  isolation: isolate;
}

.ac-contact__media,
.ac-contact__media img,
.ac-contact__voile {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.ac-contact__media img {
  object-fit: cover;
  object-position: center 34%;
}

.ac-contact__voile {
  z-index: 1;
  background: linear-gradient(90deg, rgba(1, 26, 47, 0.98) 0%, rgba(1, 38, 71, 0.82) 48%, rgba(1, 38, 71, 0.22) 100%);
}

.ac-contact__contenu {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 21px;
  padding-block: 70px;
}

.ac-contact address {
  color: var(--pa-texte);
  font-size: clamp(17px, 2vw, 21px);
  font-style: normal;
  font-weight: 700;
  line-height: 1.55;
}

.ac-contact__tel {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--pa-blanc);
  font-family: var(--pa-police-titre);
  font-size: clamp(27px, 4vw, 48px);
  line-height: 1;
  transition: color 0.2s ease, transform 0.25s ease;
}

.ac-contact__tel:hover {
  color: var(--pa-accent);
  transform: translateX(5px);
}

.ac-contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ac-contact__actions a {
  width: auto;
  min-width: 160px;
  min-height: 54px;
  padding: 15px 26px;
}

/* Ordinateur : la photo de « Nous trouver » est en portrait (1066 px de
   large) ; pleine largeur, elle était agrandie et floue. Elle n'occupe plus
   que la moitié droite, le texte reste sur le fond sombre à gauche. */
@media (min-width: 981px) {
  .ac-contact__media {
    left: auto;
    width: 50%;
  }

  .ac-contact__media img {
    object-position: center 40%;
  }

  .ac-contact__voile {
    background: linear-gradient(90deg, var(--pa-fond-profond) 0%, var(--pa-fond-profond) 48%, rgba(1, 26, 47, 0.55) 56%, rgba(1, 38, 71, 0.1) 100%);
  }
}

/* Tablettes ------------------------------------------------------------- */

@media (max-width: 980px) {
  .ac-piliers__grille {
    min-height: 620px;
  }

  .ac-pilier {
    min-height: 620px;
  }

  /* Trois colonnes étroites (701-980 px) : « PERFORMER » et « RÉCUPÉRER »
     étaient coupés à 768 px (QA 19/10/2026). */
  .ac-pilier__texte {
    left: 18px;
    right: 14px;
  }

  .ac-pilier__texte strong {
    font-size: clamp(24px, 3.5vw, 40px);
  }

  .ac-technique {
    grid-column: span 6;
    aspect-ratio: 4 / 3;
  }

  .ac-technique:nth-child(even) {
    margin-top: 0;
  }

  .ac-sante .vt-conteneur {
    grid-template-columns: 1fr;
  }

  .ac-sante__visuel {
    min-height: 620px;
  }

  .ac-sante__contenu {
    max-width: 700px;
  }
}

/* Téléphone ------------------------------------------------------------- */

@media (max-width: 700px) {
  .ac-section {
    padding-block: 40px;
  }

  .vt-hero--accueil.ac-hero,
  .ac-hero__contenu {
    min-height: calc(100vh - 68px);
  }

  @supports (min-height: 100svh) {
    .vt-hero--accueil.ac-hero,
    .ac-hero__contenu {
      min-height: calc(100svh - 68px);
    }
  }

  /* La 1re photo (exercice réactif) : la sportive est aux deux tiers à
     droite ; le cadrage en ligne de bannieres.py (centre) montrait le
     pilier blanc. Les suivantes gardent leur CADRAGE. */
  .ac-hero__fond .vt-defile__img:first-child {
    object-position: 74% center !important;
  }

  .ac-hero__voile {
    background: linear-gradient(0deg, rgba(1, 26, 47, 0.95) 0%, rgba(1, 38, 71, 0.82) 52%, rgba(1, 38, 71, 0.5) 66%, rgba(1, 38, 71, 0.12) 86%, rgba(1, 38, 71, 0.05) 100%);
  }

  .ac-hero__contenu {
    justify-content: flex-end;
    gap: clamp(20px, 4.5vh, 36px);
    padding-block: 20px 24px;
  }

  .ac-hero__message {
    gap: 12px;
  }

  .ac-hero__titre {
    font-size: clamp(34px, 11.4vw, 56px);
    line-height: 0.88;
    text-shadow: 0 2px 18px rgba(1, 26, 47, 0.55);
  }

  .ac-hero__mot:nth-child(2) {
    padding-left: 0.2em;
  }

  .ac-hero__mot:nth-child(3) {
    padding-left: 0.4em;
  }

  .ac-hero__phrase {
    max-width: 330px;
    font-size: 14px;
  }

  .ac-hero__reserver {
    min-width: 150px;
    min-height: 52px;
    padding: 14px 28px;
    font-size: 17px;
  }

  .ac-hero__actions {
    gap: 12px;
  }

  .ac-recherche {
    padding: 12px;
  }

  .ac-recherche__label {
    font-size: 13px;
  }

  .ac-recherche__ligne {
    gap: 6px;
  }

  .ac-recherche__input,
  .ac-recherche__btn {
    min-height: 50px;
  }

  .ac-recherche__input {
    padding: 11px 10px 11px 43px;
    font-size: 14px;
  }

  .ac-recherche__loupe {
    left: 14px;
    width: 19px;
    height: 19px;
  }

  .ac-recherche__btn {
    min-width: 88px;
    width: auto;
    padding: 10px 11px;
    font-size: 13px;
  }

  .ac-suggestion__note {
    display: none;
  }

  .ac-piliers__grille {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .ac-pilier {
    min-height: min(58vh, 470px);
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  }

  .ac-pilier:last-child {
    border-bottom: 0;
  }

  .ac-pilier__texte {
    left: 22px;
    bottom: 27px;
  }

  .ac-pilier__texte strong {
    font-size: clamp(40px, 12vw, 55px);
  }

  .ac-recuperation__photos {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .ac-technique {
    grid-column: span 1;
    aspect-ratio: 3 / 4;
  }

  .ac-technique strong {
    left: 10px;
    right: 10px;
    bottom: 11px;
    font-size: 15px;
  }

  .ac-offres {
    display: grid;
  }

  .ac-offre {
    width: 100%;
    justify-content: space-between;
  }

  .ac-bike {
    min-height: min(76vh, 650px);
  }

  .ac-bike__media img {
    object-position: 56% center;
  }

  .ac-bike__voile {
    background: linear-gradient(0deg, rgba(1, 26, 47, 0.97) 0%, rgba(1, 38, 71, 0.19) 78%);
  }

  .ac-bike__contenu {
    min-height: min(76vh, 650px);
    padding: 24px 20px;
  }

  .ac-bike__contenu > h2 {
    font-size: clamp(47px, 17vw, 70px);
  }

  .ac-bike__phrase {
    font-size: 15px;
  }

  .ac-bike__formules {
    gap: 6px;
  }

  .ac-bike__formules > span {
    min-height: 42px;
    padding: 8px 10px;
    font-size: 12px;
  }

  .ac-sante__visuel {
    min-height: 440px;
  }

  .ac-sante__photo--principale {
    inset: 0 11% 10% 0;
  }

  .ac-sante__photo--portrait {
    width: 52%;
    height: 36%;
    border-width: 6px;
  }

  .ac-sante__contenu {
    gap: 25px;
  }

  .ac-diapo {
    min-height: min(78vh, 660px);
  }

  .ac-diapo__image {
    object-position: center;
  }

  .ac-diapo__contenu {
    left: 20px;
    right: 20px;
    bottom: 88px;
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .ac-diapo__liens {
    display: grid;
    width: 100%;
  }

  .ac-diapo__liens a {
    justify-content: center;
  }

  .ac-diapo__commandes {
    left: 20px;
    right: 20px;
    bottom: 21px;
  }

  .ac-diapo__commandes button {
    flex-basis: 44px;
    width: 44px;
    height: 44px;
  }

  .ac-centre__cartes {
    grid-template-columns: 1fr;
  }

  .ac-carte-lien {
    min-height: 300px;
  }

  .ac-contact {
    min-height: 690px;
  }

  .ac-contact__media img {
    object-position: center 30%;
  }

  .ac-contact__voile {
    background: linear-gradient(0deg, rgba(1, 26, 47, 0.98) 0%, rgba(1, 38, 71, 0.69) 66%, rgba(1, 38, 71, 0.18) 100%);
  }

  .ac-contact__contenu {
    align-self: flex-end;
    padding-block: 58px;
  }

  .ac-contact__actions {
    width: 100%;
  }

  .ac-contact__actions a {
    flex: 1 1 140px;
    min-width: 0;
  }
}

@media (max-width: 390px) {
  .ac-hero__contenu {
    padding-inline: 15px;
  }

  .ac-recherche__input {
    font-size: 13px;
  }

  .ac-recherche__btn {
    min-width: 82px;
    font-size: 12px;
  }

  .ac-bike__formules > span {
    flex: 1 1 auto;
    justify-content: center;
  }
}

@media (max-height: 650px) and (max-width: 700px) {
  .ac-hero__contenu {
    gap: 14px;
    padding-block: 12px 16px;
  }

  .ac-hero__message {
    gap: 8px;
  }

  .ac-hero__titre {
    font-size: 34px;
  }

  .ac-hero__phrase {
    font-size: 12px;
  }

  .ac-hero__reserver {
    min-height: 46px;
    padding: 11px 27px;
  }

  .ac-recherche {
    padding: 9px;
  }

  .ac-recherche__label {
    margin-bottom: 6px;
    font-size: 12px;
  }

  .ac-recherche__input,
  .ac-recherche__btn {
    min-height: 46px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ac-relief,
  .ac-relief picture,
  .ac-relief img,
  .ac-relief > span,
  .ac-hero__mot,
  .ac-pilier__media img,
  .ac-technique img,
  .ac-bike__media img,
  .ac-sante__photo img,
  .ac-diapo__image,
  .ac-carte-lien img {
    transform: none !important;
    transition: none !important;
    filter: none !important;
  }

  .ac-js .ac-hero__mot {
    opacity: 1;
    filter: none;
  }

  .ac-diapo__commandes {
    display: none !important;
  }
}
