/*
 * BarberFreedom v0.5.0 — Home
 * Intro · Hero deux salons · Services · Booking · CTA mobile
 * Dépend de base.css (tokens : --spacing-*, --ease-*, --dur-*, --shadow-*, --bf-*)
 */

/* ── Intro premium ───────────────────────────────────────────── */

.bf-intro {
  position: fixed;
  inset: 0;
  z-index: 7000;
  display: grid;
  place-items: center;
  padding-inline: var(--spacing-5);
  background: var(--bf-black);
  pointer-events: none;
}

.bf-intro__word {
  font-family: var(--bf-font-serif);
  font-size: clamp(38px, 12vw, 128px); /* bornes px (leçon HM) */
  font-style: italic;
  font-weight: 900;
  letter-spacing: .1em;
  line-height: 1.1;
  color: var(--bf-white);
  text-align: center;
  max-width: 100%;
  animation: bfIntro 3.2s var(--ease-reveal) forwards;
}

/* 1.8.2 : une fois par visite — html.bf-intro-vue est posée dans le <head> par intro-once.js */
.bf-intro-vue .bf-intro { display: none; }

@keyframes bfIntro {
  0%        { opacity: 0; transform: scale(1.08); filter: blur(18px); }
  25%, 82%  { opacity: 1; filter: blur(0); }
  100%      { opacity: 0; transform: scale(.94); visibility: hidden; }
}

/* ── Hero ────────────────────────────────────────────────────── */

.bf-hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  background: var(--bf-black);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: grid-template-columns var(--dur-slow) var(--ease-card);
}

/* Split cinématique : le panneau visé s'agrandit, l'autre se rétracte. */
.bf-hero:has(.bf-salon--alpes:hover),
.bf-hero:has(.bf-salon--alpes:focus-within) {
  grid-template-columns: minmax(0, 1.42fr) minmax(0, 0.58fr);
}

.bf-hero:has(.bf-salon--cygnes:hover),
.bf-hero:has(.bf-salon--cygnes:focus-within) {
  grid-template-columns: minmax(0, 0.58fr) minmax(0, 1.42fr);
}

.bf-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 55%, rgba(206,164,111,.08), transparent 36%),
    linear-gradient(to bottom, rgba(0,0,0,.2), rgba(0,0,0,.82));
}

.bf-hero__logo {
  position: absolute;
  z-index: 3;
  width: clamp(220px, 30vw, 500px);
  top: 52%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: .16;
  pointer-events: none;
  mix-blend-mode: screen;
  animation: bfLogo 6s infinite ease-in-out;
}

@keyframes bfLogo {
  50% { opacity: .28; transform: translate(-50%, -50%) scale(1.05); }
}

/* ── Salon ───────────────────────────────────────────────────── */

.bf-salon {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  cursor: pointer;
  overflow: hidden;
  padding: 130px var(--spacing-6) 100px;
  transition:
    transform var(--dur-slow) var(--ease-card),
    filter    var(--dur-slow) var(--ease-card);
}

.bf-salon::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at center, rgba(206,164,111,.17), transparent 44%),
    linear-gradient(to top, rgba(0,0,0,.96), rgba(0,0,0,.26));
  transition: opacity var(--dur-mid) var(--ease-card);
}

.bf-salon:hover::before,
.bf-salon:focus-within::before {
  opacity: .9;
}

/* Photo de fond plein cadre (URL via --bf-hero-img, cf. inc/hero.php).
   Assombrie au repos pour la lisibilité des titres ; éclaircie au survol.
   Ken Burns ping-pong (zoom + travelling latéral) en va-et-vient continu. */
.bf-salon::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--bf-hero-img);
  background-size: cover;
  background-position: center;
  filter: brightness(.4) saturate(.92);
  transition: filter var(--dur-slow) var(--ease-card);
  animation: bf-kenburns 5s var(--ease-card) infinite alternate;
  will-change: transform;
}

.bf-salon:hover::after,
.bf-salon:focus-within::after {
  filter: brightness(.66) saturate(1.05);
}

/* 1.5.0 — Hero v2 : orbite Earth Studio en boucle exacte (cf. inc/hero.php →
   bf_hero_video()). Plus de filtre ni de voile global : seule la bande des
   textes, en haut des panneaux, est assombrie ; le reste de la ville garde sa
   lumière et laisse circuler les épingles (calque .bf-hero__pins).
   Écriture directe par l'Architecte (chantier 1.5.0 sans l'Ouvrier, choix user du 30/10). */
.bf-hero__video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.bf-hero--has-video::after { background: none; }
.bf-hero--has-video .bf-salon::after { content: none; }
.bf-hero--has-video .bf-hero__logo  { display: none; }

/* Textes en haut : la mention Google Earth gravée (bas droite) et la course
   des salons (moitié basse) restent dégagées. */
.bf-hero--has-video .bf-salon {
  place-items: start center;
}

.bf-hero--has-video .bf-salon::before {
  /* Paliers calculés pour WCAG AA sur toute la boucle (surtitre or ≥ 6,4:1, titre ≥ 6,4:1 en 1440x900). */
  background: linear-gradient(to bottom, rgba(0,0,0,.86) 0, rgba(0,0,0,.8) 20%, rgba(0,0,0,.5) 36%, transparent 56%);
}

.bf-hero--has-video .bf-salon__title,
.bf-hero--has-video .bf-salon__label {
  text-shadow: 0 2px 18px rgba(0,0,0,.6);
}

/* ── Épingles (positions posées par hero-video.js via --bf-pin-x/-y) ── */
.bf-hero__pins {
  position: absolute;
  inset: 0;
  z-index: 5;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--dur-mid) var(--ease-card);
}

.bf-hero__pins.is-ready { opacity: 1; }

.bf-pin {
  position: absolute;
  top: 0;
  left: 0;
  transform: translate3d(var(--bf-pin-x, -999px), var(--bf-pin-y, -999px), 0) translate(-50%, -100%);
  pointer-events: auto;
  will-change: transform;
  --bf-pin-fade: 600ms; /* 1.8.0 : fondu discret quand le lieu n'est plus visible */
  transition:
    opacity    var(--bf-pin-fade) var(--ease-card),
    visibility 0s var(--ease-card) 0s;
}

.bf-pin.is-off {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity    var(--bf-pin-fade) var(--ease-card),
    visibility 0s var(--ease-card) var(--bf-pin-fade);
}

.bf-pin--salon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-1);
  min-width: 44px;
  color: var(--bf-white);
  text-decoration: none;
}

/* 1.8.0 — Tige or, toujours verticale : du médaillon jusqu'au niveau de
   l'entrée du salon, au sol. Longueur posée à chaque image par hero-video.js
   (--bf-stem-len) ; ni angle ni marque au pied (choix de l'user). */
.bf-pin__stem {
  position: absolute;
  top: 100%;
  left: 50%;
  width: 3px;
  height: var(--bf-stem-len, 0px);
  margin-left: -1.5px;
  background: var(--bf-gold);
  box-shadow: 0 0 0 1px rgba(0,0,0,.55), 0 0 6px rgba(0,0,0,.5);
  pointer-events: none;
}

.bf-pin__badge {
  display: block;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  box-shadow: 0 2px 12px rgba(0,0,0,.45);
  transition: transform var(--dur-fast) var(--ease-btn);
}

.bf-pin--salon:hover .bf-pin__badge,
.bf-pin--salon:focus-visible .bf-pin__badge { transform: scale(1.08); }

.bf-pin__name {
  display: block;
  padding: var(--spacing-1) var(--spacing-2);
  border: 1px solid var(--bf-border-gold);
  border-radius: 999px;
  background: rgba(0,0,0,.78);
  font-family: var(--bf-font-sans);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.bf-pin--salon:focus-visible {
  outline: 2px solid var(--bf-gold);
  outline-offset: 4px;
  border-radius: var(--spacing-2);
}

/* Repères : étiquette centrée sur le lieu, non cliquable. */
.bf-pin--landmark {
  transform: translate3d(var(--bf-pin-x, -999px), var(--bf-pin-y, -999px), 0) translate(-50%, -50%);
  pointer-events: none;
}

.bf-pin--landmark .bf-pin__name {
  padding: 0;
  border: 0;
  background: none;
  color: rgba(255,255,255,.92);
  font-weight: 500;
  letter-spacing: .12em;
  text-shadow: 0 1px 3px rgba(0,0,0,.9), 0 0 12px rgba(0,0,0,.7);
}

/* ── Bouton Pause / Lecture (WCAG 2.2.2) ── */
.bf-hero__toggle {
  position: absolute;
  z-index: 6;
  bottom: var(--spacing-5);
  left: var(--spacing-5);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--bf-border-gold);
  border-radius: 50%;
  background: rgba(0,0,0,.6);
  color: var(--bf-white);
  cursor: pointer;
  transition:
    background-color var(--dur-fast) var(--ease-card),
    transform        var(--dur-fast) var(--ease-btn);
}

.bf-hero__toggle[hidden] { display: none; }
.bf-hero__toggle:hover   { background: rgba(0,0,0,.82); }
.bf-hero__toggle:active  { transform: scale(.97); }

.bf-hero__toggle:focus-visible {
  outline: 2px solid var(--bf-gold);
  outline-offset: 3px;
}

.bf-hero__toggle-icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bf-hero__toggle-icon--play { display: none; fill: currentColor; }
.bf-hero.is-paused .bf-hero__toggle-icon--pause { display: none; }
.bf-hero.is-paused .bf-hero__toggle-icon--play  { display: block; }

@keyframes bf-kenburns {
  from { transform: scale(1.12) translate3d(-2.2%, 0, 0); }
  to   { transform: scale(1.18) translate3d(2.2%, 0, 0); }
}

.bf-salon--cygnes {
  border-left: 1px solid var(--bf-border);
}

.bf-salon__card-link {
  position: absolute;
  inset: 0;
  z-index: 3;
}

.bf-salon__content {
  position: relative;
  z-index: 4;
  width: min(100%, 520px);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(var(--spacing-4), 2.4vw, var(--spacing-5));
}

.bf-salon__label {
  color: var(--bf-gold);
  font-family: var(--bf-font-serif);
  font-size: clamp(14px, 1.8vw, 22px);
  font-style: italic;
  letter-spacing: .26em;
  text-transform: uppercase;
  line-height: 1.5;
  text-wrap: balance;
}

.bf-salon__title {
  font-family: var(--bf-font-serif);
  font-size: clamp(64px, 9vw, 144px); /* bornes px (leçon HM) */
  line-height: .84;
  margin: 0;
  color: rgba(255,255,255,.9);
  text-shadow: 0 2px 24px rgba(0,0,0,.55);
  text-wrap: balance;
  transition:
    color     var(--dur-mid) var(--ease-card),
    transform var(--dur-mid) var(--ease-card);
}

.bf-salon:hover .bf-salon__title,
.bf-salon:focus-within .bf-salon__title {
  color: #fff;
  transform: translateY(-4px);
}

.bf-salon .bf-btn {
  width: min(100%, 340px);
  min-width: 0;
  position: relative;
  z-index: 5;
}

/* ── Services & prix ─────────────────────────────────────────── */

.bf-services {
  background: var(--bf-black);
  text-align: center;
}

.bf-services__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(44px, 7vw, 100px);
  margin-top: clamp(46px, 6vw, 70px);
  text-align: left;
}

.bf-price {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--spacing-5);
  border-bottom: 1px solid rgba(255,255,255,.14);
  padding: var(--spacing-5) var(--spacing-1);
  color: var(--bf-white);
  font-weight: 300;
  animation: bf-rise var(--dur-slow) var(--ease-reveal) both;
  transition:
    padding-left var(--dur-mid) var(--ease-card),
    border-bottom-color var(--dur-mid) var(--ease-card),
    color var(--dur-fast) var(--ease-btn);
}

.bf-price:nth-child(1) { animation-delay: .04s; }
.bf-price:nth-child(2) { animation-delay: .10s; }
.bf-price:nth-child(3) { animation-delay: .16s; }
.bf-price:nth-child(4) { animation-delay: .22s; }

.bf-price:hover {
  padding-left: var(--spacing-3);
  border-bottom-color: var(--bf-border-gold);
  color: var(--bf-gold);
}

.bf-price__label {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-1);
  min-width: 0;
}

.bf-price__name { line-height: 1.4; }

.bf-price__cat {
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--bf-muted);
  transition: color var(--dur-fast) var(--ease-btn);
}

.bf-price:hover .bf-price__cat { color: var(--bf-gold); }

.bf-price__amount {
  flex-shrink: 0;
  color: var(--bf-gold);
  font-family: var(--bf-font-serif);
  font-style: italic;
  font-size: 1.15rem;
  white-space: nowrap;
}

/* ── Booking (section #booking) ─────────────────────────────── */

.bf-booking {
  background: var(--bf-surface);
  border-top: 1px solid #111;
}

.bf-booking__header {
  text-align: center;
  margin-bottom: clamp(var(--spacing-6), 5vw, 52px);
}

.bf-booking__locations {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--spacing-5);
  margin-bottom: var(--spacing-7);
  align-items: stretch;
}

.bf-location-card {
  border: 1px solid rgba(255,255,255,.10);
  padding: clamp(var(--spacing-6), 3vw, var(--spacing-6));
  background: var(--bf-black);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.bf-location-card h3 {
  font-family: var(--bf-font-serif);
  font-size: clamp(2rem, 3vw, 2.6rem);
  line-height: 1;
  margin: 0 0 var(--spacing-2);
}

.bf-location-card p {
  color: var(--bf-muted);
  margin: 0 0 var(--spacing-5);
  line-height: 1.7;
}

.bf-location-card .bf-btn { margin-top: auto; }

.bf-booking__module {
  max-width: 960px;
  margin-inline: auto;
}

/* Bloc réservation 1.4.0 : TRIXMAX (en ligne) ou téléphone — breakpoints dans responsive.css */
.bf-booking-direct {
  border: 1px solid var(--bf-border-gold);
  background: var(--bf-surface-2);
  box-shadow: var(--shadow-card);
  padding: var(--spacing-6);
  margin-bottom: var(--spacing-5);
  text-align: center;
}

.bf-booking-direct__title {
  font-family: var(--bf-font-serif);
  font-style: italic;
  color: var(--bf-off-white);
  font-size: clamp(24px, 3vw, 32px);
  margin: 0 0 var(--spacing-2);
}

.bf-booking-direct__text {
  color: var(--bf-muted);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto var(--spacing-6);
}

.bf-booking-direct__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--spacing-5);
}

.bf-booking-direct__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-3);
  padding: var(--spacing-5) var(--spacing-4);
  border-top: 1px solid var(--bf-border);
}

.bf-booking-direct__name {
  font-family: var(--bf-font-serif);
  color: var(--bf-off-white);
  font-size: 1.35rem;
  margin: 0;
}

.bf-booking-direct__hours {
  color: var(--bf-muted);
  font-size: 0.85rem;
  line-height: 1.7;
  margin: 0;
}

.bf-booking-direct__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-2);
  margin-top: auto;
}

.bf-booking-direct__phone {
  color: var(--bf-gold-ink);
  font-size: 0.9rem;
  text-underline-offset: 4px;
  transition: color var(--dur-fast) var(--ease-card);
}

.bf-booking-direct__phone:hover,
.bf-booking-direct__phone:focus-visible {
  color: var(--bf-off-white);
}

/* ── Sprint 3 : scroll-driven reveals + micro-interactions CTA ──────────── */

/* Les éléments ci-dessous portent déjà `animation: bf-rise … both` (sections.css
   / home.css). Ici on remplace uniquement leur timeline TEMPORELLE par la
   timeline du viewport : le reveal se déclenche à l'entrée à l'écran et reste
   acquis (fill both). Navigateurs sans support → comportement actuel inchangé.
   Stagger via animation-range décalées (animation-delay est ignoré par les
   timelines de scroll). */
@supports (animation-timeline: view()) {
  /* .bf-about clippe en overflow:hidden → il deviendrait le scroll container
     des timelines view() de ses enfants (reveal mort-né, vérifié au harnais).
     overflow: clip clippe à l'identique SANS créer de scroll container. */
  .bf-about {
    overflow: clip;
  }

  .bf-about__rule,
  .bf-about__pillar,
  .bf-gallery__item,
  .bf-testimonial,
  .bf-map-card,
  .bf-salon-card,
  .bf-price {
    animation-timeline: view();
    animation-range: entry 0% entry 55%;
  }

  .bf-gallery__item:nth-child(2),
  .bf-about__pillar:nth-child(2) {
    animation-range: entry 8% entry 63%;
  }

  .bf-gallery__item:nth-child(3),
  .bf-about__pillar:nth-child(3) {
    animation-range: entry 16% entry 71%;
  }

  .bf-gallery__item:nth-child(4) {
    animation-range: entry 24% entry 79%;
  }

  .bf-gallery__item:nth-child(5) {
    animation-range: entry 32% entry 87%;
  }

  .bf-gallery__item:nth-child(6) {
    animation-range: entry 40% entry 95%;
  }

  .bf-gallery__item:nth-child(7) {
    animation-range: entry 48% entry 100%;
  }
}

/* Shimmer laiton : reflet qui traverse le bouton au survol (transform only). */
.bf-btn {
  position: relative;
  overflow: hidden;
}

.bf-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 42%, rgba(212, 175, 55, 0.32) 50%, transparent 58%);
  transform: translateX(-101%);
  transition: transform var(--dur-slow) var(--ease-btn);
}

.bf-btn:hover::after {
  transform: translateX(101%);
}

.bf-btn--primary::after {
  background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, 0.45) 50%, transparent 58%);
}

/* Press feedback app-native. Déclaré après le :hover de base.css dans la
   cascade (home.css charge après) → gagne pendant l'appui. */
.bf-btn:active {
  transform: scale(0.97);
}

.bf-btn:hover:active {
  transform: translateY(-5px) scale(0.97);
}

@media (prefers-reduced-motion: reduce) {
  .bf-about__rule,
  .bf-about__pillar,
  .bf-gallery__item,
  .bf-testimonial,
  .bf-map-card,
  .bf-salon-card,
  .bf-price {
    animation: none;
  }

  .bf-btn::after {
    display: none;
  }

  .bf-btn:active,
  .bf-btn:hover:active {
    transform: none;
  }
}

/* ── Tarifs : catégories + forfaits + « Ce qui est inclus » ───────── */

.bf-tarifs__cat {
  margin-top: clamp(40px, 5vw, 64px);
  text-align: left;
}

.bf-tarifs__cat:first-of-type {
  margin-top: clamp(32px, 4vw, 48px);
}

.bf-tarifs__cat-title {
  font-family: var(--bf-font-serif);
  font-style: italic;
  color: var(--bf-white);
  font-size: clamp(1.3rem, 3vw, 1.75rem);
  padding-bottom: var(--spacing-3);
  border-bottom: 1px solid var(--bf-border-gold);
  margin-bottom: var(--spacing-3);
}

.bf-tarifs__cat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(40px, 6vw, 90px);
}

.bf-price--featured {
  border-left: 2px solid var(--bf-gold);
  padding-left: var(--spacing-3);
}

.bf-price__badge {
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--bf-black);
  background: var(--bf-gold);
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 700;
  align-self: flex-start;
  margin-top: 4px;
  width: fit-content;
}

.bf-price__from {
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--bf-muted);
  font-style: normal;
  font-family: initial;
  margin-right: 6px;
  vertical-align: middle;
}

.bf-services__more {
  text-align: center;
  margin-top: clamp(40px, 5vw, 60px);
}

.bf-included {
  background: var(--bf-surface);
  text-align: center;
}

.bf-included__steps {
  list-style: none;
  margin: clamp(44px, 6vw, 64px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 40px);
  text-align: left;
}

.bf-included__step {
  position: relative;
  animation: bf-rise var(--dur-slow) var(--ease-reveal) both;
}

.bf-included__step:nth-child(2) {
  animation-delay: .08s;
}

.bf-included__step:nth-child(3) {
  animation-delay: .16s;
}

.bf-included__step:nth-child(4) {
  animation-delay: .24s;
}

.bf-included__num {
  display: block;
  font-family: var(--bf-font-serif);
  font-style: italic;
  font-size: 2rem;
  color: var(--bf-gold);
  line-height: 1;
  margin-bottom: var(--spacing-3);
}

.bf-included__step-title {
  color: var(--bf-white);
  font-size: 1.05rem;
  margin: 0 0 8px;
  font-weight: 500;
}

.bf-included__step-desc {
  color: var(--bf-muted);
  font-weight: 300;
  line-height: 1.7;
  font-size: .95rem;
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  .bf-included__step { animation: none; }
}

/* ── 1.6.0 : réservation TRIXMAX dans le module (une zone par salon) ─────── */
/* Zone #reserver-<salon> : masquée jusqu'au clic (attribut hidden, booking.js).
   Le cadre posé par l'extension TRIXMAX y prend toute la largeur et la hauteur
   de son contenu (integration.js). Pendant le chargement, le lien « afficher »
   de l'extension (aria-busy) tient lieu d'attente. Breakpoints : responsive.css. */
.bf-booking-direct__tunnel {
  margin-top: var(--spacing-6);
  padding-top: var(--spacing-5);
  border-top: 1px solid var(--bf-border-gold);
  scroll-margin-top: calc(var(--spacing-8) + var(--spacing-6));
}

.bf-booking-direct__tunnel:focus-visible {
  outline: 2px solid var(--bf-gold);
  outline-offset: var(--spacing-1);
}

/* :not([hidden]) : sinon ce display l'emporte sur l'attribut hidden posé au remplissage. */
.bf-booking-direct__tunnel .trixmax-afficher:not([hidden]) {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  color: var(--bf-muted);
  text-decoration: none;
}

.bf-booking-direct__tunnel .trixmax-cadre,
.bf-gift__commande .trixmax-cadre {
  display: block;
  width: 100%;
  border: 0;
}

.bf-gift__commande {
  margin-top: var(--spacing-5);
}

/* Le bouton de commande porte .bf-btn (display) : masqué une fois le formulaire affiché. */
.bf-gift__commande .trixmax-afficher[hidden] {
  display: none;
}

.bf-booking-direct__tunnel .trixmax-afficher[aria-busy="true"],
.bf-gift__commande .trixmax-afficher[aria-busy="true"] {
  cursor: progress;
  animation: bf-attente var(--dur-slow) var(--ease-reveal) infinite alternate;
}

@keyframes bf-attente {
  from { opacity: 0.56; }
  to   { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .bf-booking-direct__tunnel .trixmax-afficher[aria-busy="true"],
  .bf-gift__commande .trixmax-afficher[aria-busy="true"] { animation: none; }
}
