:root {
  --home-bg: #050505;
  --home-surface: #101010;
  --home-border: rgba(255, 255, 255, 0.12);
  --home-text-soft: rgba(255, 255, 255, 0.8);
  --apam-blue: #2f6bff;
}

.hero-scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 92px;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  cursor: pointer;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  animation: heroBounce 1.8s ease-in-out infinite;
}

.hero-scroll-indicator span {
  width: 10px;
  height: 10px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg) translateY(-2px);
}

.hero-scroll-indicator:hover,
.hero-scroll-indicator:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(47, 107, 255, 0.2);
}

@keyframes heroBounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, -8px); }
}

.home-main {
  position: relative;
  background: linear-gradient(180deg, #141414 0%, #1d1d1d 100%);
  overflow-x: clip;
}

.home-main::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(42% 30% at 14% 8%, rgba(47, 107, 255, 0.12), transparent 70%),
    radial-gradient(30% 24% at 84% 28%, rgba(255, 255, 255, 0.08), transparent 72%);
  opacity: 0.65;
}


.home-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: calc(0.2 + (var(--section-progress, 0) * 0.8));
  transition: opacity 0.5s ease;
}

.home-glow--top {
  background:
    radial-gradient(58% 36% at 50% 6%, rgba(47, 107, 255, 0.26), transparent 72%),
    radial-gradient(34% 22% at 80% 16%, rgba(255, 255, 255, 0.14), transparent 75%);
}

.home-container {
  width: min(1180px, calc(100% - 120px));
  margin: 0 auto;
}

.home-section {
  position: relative;
  z-index: 1;
  padding: 88px 0;
  background: #171717;
  color: #fff;
  overflow-x: clip;
}

.home-section::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.24), transparent);
}

.home-section:last-child::after {
  display: none;
}

.home-section--light {
  background: #fff;
  color: #060606;
}

.home-section--light .home-kicker {
  color: rgba(0, 0, 0, 0.58);
}

.home-section--light .section-intro,
.home-section--light p,
.home-section--light .history-timeline span,
.home-section--light .location-note {
  color: rgba(0, 0, 0, 0.78);
}

.home-section--light .history-timeline li {
  border-left-color: rgba(47, 107, 255, 0.45);
}

.home-section--light .history-media img {
  border-color: rgba(0, 0, 0, 0.16);
}

.home-section--light .home-btn {
  color: #fff;
  background: #0a0a0a;
  border-color: #0a0a0a;
}

.home-section--light .home-btn--ghost {
  color: #0a0a0a;
  border-color: rgba(0, 0, 0, 0.45);
  background: transparent;
}

.home-section--dark {
  background: #1a1a1a;
  color: #fff;
}

.home-kicker {
  font-family: "GPMenu", system-ui, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 12px;
}

.home-section h2 {
  font-family: "Swiss911", sans-serif;
  font-size: clamp(2rem, 4vw, 3.3rem);
  letter-spacing: -0.01em;
  margin-bottom: 18px;
  text-transform: uppercase;
  font-style: italic;
}

.section-intro,
.home-section p,
.history-timeline span,
.location-note {
  color: var(--home-text-soft);
  line-height: 1.6;
}

.home-section h2 {
  position: relative;
  display: inline-block;
  overflow: visible;
}

.home-section h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 72px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(47, 107, 255, 0.9), rgba(47, 107, 255, 0.2));
}

#histoire .split-layout > div {
  padding: 8px 0;
}

#histoire p,
#histoire .section-intro,
#histoire .history-timeline span,
#histoire .location-note {
  color: #000;
}


.stats-grid--intro .stat-card {
  background: transparent;
  border-color: rgba(47, 107, 255, 0.55);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.club-quote {
  margin: 22px 0 0;
  padding: 28px 30px;
  border-left: 3px solid rgba(47, 107, 255, 0.9);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  font-size: clamp(1.2rem, 2.1vw, 1.8rem);
  line-height: 1.5;
  font-style: italic;
}

.club-quote--hero {
  margin: 0;
  padding: clamp(34px, 5vw, 52px);
  border-left: 4px solid rgba(255, 255, 255, 0.86);
  border-radius: 18px;
  background: linear-gradient(145deg, #141414 0%, #060606 100%);
  box-shadow: 0 26px 56px rgba(0, 0, 0, 0.46), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: #fff;
}

.club-quote__text {
  margin: 0;
  font-family: "Swiss911", sans-serif;
  letter-spacing: -0.01em;
  text-wrap: balance;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 1.06;
  font-style: normal;
  text-transform: none;
}

.club-quote cite {
  display: block;
  margin-top: 20px;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-style: normal;
  color: rgba(255, 255, 255, 0.78);
}

.quote-word {
  display: inline;
  opacity: 0;
  transition: opacity 80ms linear;
  transition-delay: calc(var(--word-index) * 34ms);
}

.club-quote.is-animated .quote-word {
  opacity: 1;
}

#citation-club {
  background: #1a1a1a;
  color: #fff;
}

#citation-club .club-quote__text.is-typing::after {
  content: "";
  display: inline-block;
  width: 0.09em;
  height: 0.9em;
  margin-left: 0.12em;
  vertical-align: -0.08em;
  background: #fff;
  animation: quoteCaret 0.65s steps(1, end) infinite;
}

@keyframes quoteCaret {
  0%, 45% { opacity: 1; }
  46%, 100% { opacity: 0; }
}

.stats-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

#localisation .home-actions .home-btn {
  background: transparent;
  color: #fff;
  border-color: rgba(47, 107, 255, 0.75);
}

#localisation .home-actions .home-btn:hover,
#localisation .home-actions .home-btn:focus-visible {
  background: var(--apam-blue);
  border-color: var(--apam-blue);
  color: #fff;
}

#chiffres-club {
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(255, 255, 255, 0.98), rgba(242, 245, 250, 0.95) 52%, rgba(233, 238, 246, 0.94) 100%);
  color: #0a0a0a;
}

#chiffres-club .home-kicker,
#chiffres-club .section-intro {
  color: rgba(0, 0, 0, 0.65);
}

#chiffres-club h2::after {
  background: linear-gradient(90deg, rgba(10, 10, 10, 0.9), rgba(10, 10, 10, 0.2));
}

#chiffres-club .stat-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(160deg, #0f1218 0%, #1b212d 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 16px 28px rgba(10, 15, 24, 0.26);
  backdrop-filter: blur(3px);
}

#chiffres-club .stat-card::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  z-index: -1;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0) 42%);
  pointer-events: none;
}

#chiffres-club .stat-label {
  color: rgba(255, 255, 255, 0.8);
}

.stat-card {
  background: var(--home-surface);
  border: 1px solid var(--home-border);
  border-radius: 12px;
  padding: 22px;
}

.stat-value {
  font-family: "Swiss911", sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
  margin-bottom: 8px;
  color: #fff;
  letter-spacing: -0.015em;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.42),
    0 10px 14px rgba(0, 0, 0, 0.34);
}

.stat-value--text {
  font-size: clamp(1.4rem, 3vw, 2.4rem);
}

.stat-label {
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.78rem;
}

.split-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: center;
}

.history-media img {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--home-border);
  object-fit: cover;
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.28);
}

.js .reveal-on-scroll [data-reveal-item] {
  opacity: 0;
  transform: translate3d(0, 28px, 0) scale(0.98);
  filter: blur(4px);
  transition:
    opacity 0.62s cubic-bezier(.16, 1, .3, 1),
    transform 0.62s cubic-bezier(.16, 1, .3, 1),
    filter 0.62s cubic-bezier(.16, 1, .3, 1);
  transition-delay: calc(var(--reveal-order, 0) * 55ms);
  will-change: opacity, transform;
}

.js .reveal-on-scroll [data-reveal-item].is-revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
}

.js #localisation .home-actions [data-reveal-item],
.js #localisation .home-actions .home-btn {
  transition-delay: calc(160ms + (var(--reveal-order, 0) * 55ms));
}

#localisation.is-visible .home-btn {
  animation: routePulse 1.8s ease 0.25s 1;
}

@keyframes routePulse {
  0% { box-shadow: 0 0 0 0 rgba(47, 107, 255, 0.45); }
  70% { box-shadow: 0 0 0 10px rgba(47, 107, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(47, 107, 255, 0); }
}

.history-timeline {
  list-style: none;
  margin-top: 20px;
  display: grid;
  gap: 14px;
}

.history-timeline li {
  border-left: 2px solid rgba(47, 107, 255, 0.65);
  padding-left: 14px;
}

.history-timeline strong {
  display: block;
  font-family: "GPMenu", system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.highlights-list {
  margin: 12px 0 24px;
  padding-left: 20px;
  display: grid;
  gap: 8px;
}

.life-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.life-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--home-border);
}

.life-grid img:nth-child(2),
.life-grid img:nth-child(5) {
  aspect-ratio: 4 / 4.6;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

.home-btn {
  font-family: "Swiss911", sans-serif;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: #000;
  background: #fff;
  border: 2px solid #fff;
  padding: 10px 16px;
  font-size: 1.35rem;
  line-height: 1;
}

.home-btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}

.home-btn:hover,
.home-btn:focus-visible {
  background: var(--apam-blue);
  border-color: var(--apam-blue);
  color: #fff;
}

.home-btn--ghost:hover,
.home-btn--ghost:focus-visible {
  background: var(--apam-blue);
  border-color: var(--apam-blue);
  color: #fff;
}

.final-cta .home-btn,
.final-cta .home-btn--ghost {
  background: var(--apam-blue);
  border-color: var(--apam-blue);
  color: #fff;
}

.location-card {
  background: #232323;
  border: 1px solid var(--home-border);
  border-top: 3px solid rgba(47, 107, 255, 0.8);
  border-radius: 14px;
  padding: 24px;
}

.location-media {
  margin-top: 14px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.location-media img {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  display: block;
}

.location-card h3 {
  font-family: "GPMenu", system-ui, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

#localisation {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

#localisation::before,
#localisation::after {
  content: "";
  position: absolute;
  inset: -5%;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
}

#localisation::before {
  background:
    radial-gradient(44% 28% at 20% 62%, rgba(255, 255, 255, 0.18) 0%, transparent 70%),
    radial-gradient(38% 30% at 76% 30%, rgba(255, 255, 255, 0.15) 0%, transparent 72%),
    radial-gradient(50% 34% at 55% 82%, rgba(255, 255, 255, 0.12) 0%, transparent 72%);
}

#localisation::after {
  background: linear-gradient(180deg, rgba(14, 14, 14, 0.98) 0%, rgba(14, 14, 14, 0.92) 38%, rgba(14, 14, 14, 0.58) 68%, rgba(14, 14, 14, 0.16) 86%, transparent 100%);
  transform-origin: top center;
}

#localisation .home-container {
  position: relative;
  z-index: 1;
}



.final-cta {
  padding: 0 0 72px;
}

.final-cta--light {
  --section-lift: 40px;
  background: #1a1a1a;
  color: #fff;
  padding: 88px 0 72px;
}

.final-cta__inner {
  background: linear-gradient(135deg, rgba(150, 150, 150, 0.22), rgba(255, 255, 255, 0.06));
  border: 1px solid var(--home-border);
  border-radius: 16px;
  padding: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.final-cta--light .final-cta__inner {
  background: #1a1a1a;
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.final-cta--light .final-cta__inner p {
  color: rgba(255, 255, 255, 0.8);
}

.final-cta--light .home-btn {
  background: var(--apam-blue);
  border-color: var(--apam-blue);
  color: #fff;
}

.final-cta--light .home-btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}


@media (max-width: 980px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overscroll-behavior-x: none;
    touch-action: pan-y;
  }

  .hero-scroll-indicator { bottom: 110px; }
  .home-container { width: min(1180px, calc(100% - 36px)); }
  .home-section { padding: 68px 0; }
  .stats-grid,
  .life-grid,
  .split-layout {
    grid-template-columns: 1fr;
  }
  .final-cta__inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-scroll-indicator,
  .home-section,
  .reveal-on-scroll [data-reveal-item] {
    animation: none !important;
    transition: none !important;
  }

  .reveal-on-scroll [data-reveal-item] {
    opacity: 1;
    transform: none;
    filter: none;
  }

  .quote-word {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }

  #citation-club .club-quote__text.is-typing::after {
    display: none;
  }
}

/* ===== Localisation v2 (refonte complète du bloc voyage APAM) ===== */
#localisation {
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(47, 107, 255, 0.14), transparent 52%),
    linear-gradient(180deg, #121212 0%, #0a0a0a 100%);
}

.localisation-v2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  align-items: stretch;
}

.localisation-v2__copy {
  display: grid;
  align-content: start;
  gap: 14px;
}

.localisation-v2__actions .home-btn {
  background: #fff;
  color: #000;
  border-color: #fff;
}

.localisation-v2__actions .home-btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}

.localisation-v2__actions .home-btn:hover,
.localisation-v2__actions .home-btn:focus-visible,
.localisation-v2__actions .home-btn--ghost:hover,
.localisation-v2__actions .home-btn--ghost:focus-visible {
  background: var(--apam-blue);
  border-color: var(--apam-blue);
  color: #fff;
}

.localisation-v2__meta {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.localisation-v2__meta li {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 12px;
}

.localisation-v2__meta strong {
  display: block;
  font-family: "GPMenu", system-ui, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.68);
  margin-bottom: 4px;
}

.localisation-v2__meta span {
  font-size: 1.05rem;
  color: #fff;
}

.localisation-v2__map {
  margin: 0;
}

.localisation-v2__map-link {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 20px 36px rgba(0, 0, 0, 0.4);
  min-height: 320px;
  text-decoration: none;
}

.localisation-v2__map-link img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  filter: saturate(1.04) contrast(1.03);
  transform: scale(1.01);
  transition: transform .35s ease;
}

.localisation-v2__map-link:hover img,
.localisation-v2__map-link:focus-visible img {
  transform: scale(1.06);
}

.localisation-v2__map-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08) 10%, rgba(0, 0, 0, 0.68) 100%);
}

.localisation-v2__pin {
  position: absolute;
  top: 42%;
  left: 56%;
  z-index: 1;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #fff;
  border: 5px solid var(--apam-blue);
  box-shadow: 0 0 0 10px rgba(47, 107, 255, 0.26);
}

.localisation-v2__caption {
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 1;
  color: #fff;
  font-family: "GPMenu", system-ui, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

@media (max-width: 980px) {
  .localisation-v2 { grid-template-columns: 1fr; }
  .localisation-v2__meta { grid-template-columns: 1fr; }
  .localisation-v2__map-link,
  .localisation-v2__map-link img { min-height: 260px; }
}
