/* ════════════════════════════════════════════════════════════
   MADAWAY TOURS — components.css
   Header, footer, hero, cartes, timelines, wizard, Maya, lightbox…
   ════════════════════════════════════════════════════════════ */

/* ── Preloader ─────────────────────────────────────────────── */
.preloader {
  position: fixed;
  inset: 0;
  z-index: var(--z-preloader);
  background: var(--ink-deep);
  display: grid;
  place-items: center;
  transition: opacity .6s var(--ease-luxe), visibility .6s;
}
.preloader.done { opacity: 0; visibility: hidden; }
.preloader-inner { text-align: center; }
.preloader-logo { position: relative; width: 104px; height: 104px; margin-inline: auto; display: grid; place-items: center; isolation: isolate; }
.preloader-logo img {
  width: 100%; height: 100%; object-fit: contain; border-radius: 50%; position: relative; z-index: 1;
  animation: logo-pulse 2.6s var(--ease-luxe) infinite;
}
/* halo doré rotatif (sheen) derrière l'emblème */
.preloader-logo::before {
  content: ""; position: absolute; inset: -7px; border-radius: 50%; z-index: 0;
  background: conic-gradient(from 0deg, transparent 0 34%, rgba(201,169,97,.95) 50%, transparent 66% 100%);
  filter: blur(8px); opacity: .55; animation: logo-halo 3.6s linear infinite;
}
@keyframes logo-pulse {
  0%, 100% { transform: scale(1);    filter: drop-shadow(0 0 14px rgba(201,169,97,.30)); }
  50%      { transform: scale(1.05); filter: drop-shadow(0 0 28px rgba(201,169,97,.60)); }
}
@keyframes logo-halo { to { transform: rotate(360deg); } }
.preloader-count {
  margin-top: 1.2rem;
  font-family: var(--font-mono);
  font-size: .8rem;
  letter-spacing: .3em;
  color: var(--cream-dim);
}

/* ── Header sticky intelligent ─────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: var(--z-header);
  transition: transform var(--t-med) var(--ease-out), background var(--t-med) ease,
              box-shadow var(--t-med) ease, padding var(--t-med) ease;
  padding-block: 1.4rem;
}
/* ── Vague dorée animée : ligne de séparation menu / page ──────
   Deux couches SVG (halo large diffus + trait net) qui défilent en
   parallaxe contraire. Animation par background-position sur une bande
   de 18px → repaint minime, très léger et fluide. */
.site-header::before, .site-header::after {
  content: ""; position: absolute; inset-inline: 0; bottom: -7px; height: 18px;
  pointer-events: none; z-index: 0; background-repeat: repeat-x;   /* sous le contenu du header */
}
.site-header::before {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='340'%20height='18'%3E%3Cpath%20d='M0%209%20Q85%203%20170%209%20T340%209'%20fill='none'%20stroke='%23C9A961'%20stroke-opacity='0.30'%20stroke-width='6'%20stroke-linecap='round'/%3E%3C/svg%3E");
  background-size: 340px 18px;
  animation: mdw-wave-b 19s linear infinite;
}
.site-header::after {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='220'%20height='18'%3E%3Cpath%20d='M0%209%20Q55%202%20110%209%20T220%209'%20fill='none'%20stroke='%23C9A961'%20stroke-width='2.2'%20stroke-linecap='round'/%3E%3C/svg%3E");
  background-size: 220px 18px;
  animation: mdw-wave-a 12s linear infinite;
}
@keyframes mdw-wave-a { to { background-position-x: 220px; } }
@keyframes mdw-wave-b { from { background-position-x: 340px; } to { background-position-x: 0; } }
/* ── Petit surfeur doré qui surfe la vague en va-et-vient ──────
   transforms composées (translateX lent + flip aux extrémités sur l'élément ;
   bob vertical + tangage sur l'enfant) → 100 % GPU, très léger. */
.surfer {
  position: absolute; left: 0; bottom: -5px; z-index: 1;
  width: 30px; height: 26px; pointer-events: none;
  animation: surfer-x 60s ease-in-out infinite;
  will-change: transform;
}
.surfer > span {
  display: block; width: 100%; height: 100%;
  background: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2046%2036'%3E%3Cg%20fill='none'%20stroke='%23C9A961'%20stroke-width='2.6'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M11%2030%20Q25%2033.5%2041%2028.5'/%3E%3Cpath%20d='M19%2029.5%20L24%2020%20L30%2028.5'/%3E%3Cpath%20d='M24%2020%20L27.5%2012.5'/%3E%3Cpath%20d='M26.5%2014.5%20L19.5%2012%20M26.5%2014.5%20L34.5%2013.5'/%3E%3C/g%3E%3Ccircle%20cx='28'%20cy='9.2'%20r='2.9'%20fill='%23C9A961'/%3E%3C/svg%3E") center / contain no-repeat;
  animation: surfer-bob 4s ease-in-out infinite;
}
@keyframes surfer-x {
  0%, 100% { transform: translateX(7vw) scaleX(1); }
  48%      { transform: translateX(80vw) scaleX(1); }
  50%      { transform: translateX(80vw) scaleX(-1); }
  98%      { transform: translateX(7vw) scaleX(-1); }
}
@keyframes surfer-bob {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50%      { transform: translateY(-3px) rotate(5deg); }
}
.site-header.scrolled {
  background: rgba(6, 8, 16, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(245,240,230,.07);
  padding-block: .8rem;
}
.site-header.hidden { transform: translateY(-110%); }

/* Figurants du header — discrets, dans les marges hors container.
   Invisibles sur header transparent (ils flotteraient dans le vide) :
   ils apparaissent avec la barre pleine, comme grimpés dessus. */
.header-figs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity .5s ease .15s;
}
.site-header.scrolled .header-figs { opacity: 1; }
.hf-maki {
  position: absolute;
  right: 26px;
  bottom: 0;
  height: 24px;
  width: auto;
  opacity: .55;
}
.hf-cam {
  position: absolute;
  left: 30px;
  top: 100%;
  height: 14px;
  width: auto;
  transform: scaleY(-1); /* suspendu tête en bas sous la barre */
  opacity: .5;
}
@media (max-width: 1380px) { .header-figs { display: none; } }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1rem, 2.5vw, 2.5rem);
  /* le bandeau peut être plus large que le contenu (1240) pour loger toute la nav */
  width: min(100% - 3rem, var(--container-wide));
  position: relative;
  z-index: 2;   /* contenu (nav, menu langue, CTA) AU-DESSUS de la vague (0) et du surfeur (1) */
}
.logo {
  display: flex;
  align-items: center;
  gap: .8rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: .01em;
}
/* ── Logo emblème (image) + effet halo doré moderne ── */
/* Logo = simple image (aucun pseudo-élément flouté ni filtre : robuste, ne peut pas
   « fantômer » sur un header fixe pendant le défilement, quel que soit le navigateur). */
.logo-mark { position: relative; flex: none; width: 46px; height: 46px; display: grid; place-items: center; }
.logo-mark img { width: 100%; height: 100%; object-fit: contain; display: block; transition: transform .4s var(--ease-luxe); }
.logo:hover .logo-mark img { transform: scale(1.06); }
@media (prefers-reduced-motion: reduce) {
  .preloader-logo::before, .preloader-logo img { animation: none; }
  .logo-mark img { transition: none; }
  .site-header::before, .site-header::after { animation: none; }
  .surfer, .surfer > span { animation: none; }
}
/* Logo du MENU agrandi — taille UNIQUE (pas d'animation de redimensionnement au scroll). */
.site-header .logo-mark { width: 64px; height: 64px; }
.logo svg { width: 38px; height: 38px; flex: none; }
.logo .logo-sub {
  display: block;
  font-family: var(--font-mono);
  font-size: .56rem;
  letter-spacing: .34em;
  color: var(--ochre);
  text-transform: uppercase;
}
.main-nav { display: flex; align-items: center; gap: clamp(.9rem, 1.4vw, 1.45rem); }
.main-nav a {
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .03em;
  color: var(--cream-dim);
  transition: color var(--t-fast) ease;
  position: relative;
  padding-block: .4em;
  white-space: nowrap;           /* jamais de coupure de libellé en plein milieu */
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--ochre);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-med) var(--ease-out);
}
.main-nav a:hover, .main-nav a.active { color: var(--cream); }
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }
.header-cta { display: flex; align-items: center; gap: 1.1rem; }
.header-cta .btn { white-space: nowrap; }   /* « Demander un devis » / « Richiedi un preventivo » sur une ligne */

/* Sélecteur de langue */
.lang-switch { position: relative; }
.lang-switch > button {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .2em;
  color: var(--cream-dim);
  display: flex;
  align-items: center;
  gap: .5em;
  padding: .5em .3em;
  text-transform: uppercase;
}
.lang-switch > button:hover { color: var(--ochre); }
.lang-menu {
  position: absolute;
  top: calc(100% + .6rem);
  right: 0;
  background: var(--ink-panel);
  border: 1px solid rgba(245,240,230,.1);
  border-radius: var(--radius);
  min-width: 130px;
  padding: .4rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all var(--t-fast) ease;
  box-shadow: 0 18px 40px rgba(0,0,0,.5);
}
.lang-switch.open .lang-menu { opacity: 1; visibility: visible; transform: none; }
.lang-menu a {
  display: block;
  padding: .55em .9em;
  border-radius: 4px;
  font-size: .85rem;
  color: var(--cream-dim);
}
.lang-menu a:hover { background: var(--ink-soft); color: var(--cream); }
.lang-menu a.current { color: var(--ochre); }

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: .6rem;
  z-index: calc(var(--z-header) + 2);
}
.burger span {
  width: 26px; height: 2px;
  background: var(--cream);
  transition: transform var(--t-med) var(--ease-luxe), opacity var(--t-fast) ease;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Nav mobile plein écran */
.mobile-nav {
  position: fixed;
  inset: 0;
  /* au-dessus de la bannière cookies (z-modal) : le menu ouvert doit rester entièrement lisible */
  z-index: calc(var(--z-modal) + 1);
  background: var(--ink-deep);
  display: grid;
  place-content: center;
  text-align: center;
  clip-path: circle(0% at calc(100% - 3rem) 2.4rem);
  visibility: hidden;
  transition: clip-path .7s var(--ease-luxe), visibility .7s;
}
.mobile-nav.open {
  clip-path: circle(150% at calc(100% - 3rem) 2.4rem);
  visibility: visible;
}
.mobile-nav a {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 7vw, 2.8rem);
  padding: .35em 0;
  color: var(--cream-dim);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .5s ease, transform .6s var(--ease-out), color .3s ease;
}
.mobile-nav.open a { opacity: 1; transform: none; }
.mobile-nav a:hover { color: var(--ochre); }
.mobile-nav .mobile-langs {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 1.6rem;
}
.mobile-nav .mobile-langs a {
  font-family: var(--font-mono);
  font-size: .85rem;
  letter-spacing: .25em;
}

@media (max-width: 1400px) {
  /* Palier intermédiaire : resserrer avant le passage au burger */
  .main-nav { gap: .95rem; }
  .main-nav a { font-size: .85rem; }
  .header-cta { gap: .7rem; }
  .logo { font-size: 1.15rem; }
}
@media (max-width: 1240px) {
  /* Dernier palier desktop : resserre encore (sécurise l'IT, plus large) */
  .main-nav { gap: .72rem; }
  .main-nav a { font-size: .82rem; letter-spacing: .02em; }
  .logo .logo-sub { display: none; }   /* libère de la place sans rien casser */
}
@media (max-width: 1180px) {
  /* Bascule vers le menu burger tant qu'il reste de la marge (toutes langues) */
  .main-nav, .header-cta .btn, .lang-switch.desktop-only { display: none; }
  .burger { display: flex; }
}
/* Menu plein écran : 9 entrées — garantir l'accès sur petits écrans */
@media (max-height: 700px) {
  .mobile-nav { place-content: start center; overflow-y: auto; padding-block: 5.2rem 2rem; }
  .mobile-nav a { font-size: clamp(1.3rem, 5.4vw, 1.9rem); padding: .28em 0; }
  .mobile-nav .mobile-langs { margin-top: 1.2rem; }
}

/* ── Hero plein écran ──────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--ink-deep);
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.6s var(--ease-luxe);
}
.hero-slide.active { opacity: 1; }
.hero-slide img, .hero-slide picture, .hero-slide picture img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-slide.active .kenburns {
  animation: kenburns 9s var(--ease-luxe) forwards;
}
@keyframes kenburns {
  from { transform: scale(1) translate(0, 0); }
  to   { transform: scale(1.12) translate(-1.5%, -1.2%); }
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6,8,16,.55) 0%, rgba(6,8,16,.18) 42%, rgba(6,8,16,.92) 100%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding-bottom: clamp(5rem, 12vh, 9rem);
}
.hero h1 { max-width: 14ch; margin-block: var(--space-2) var(--space-3); }
.hero h1 .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}
.hero h1 .word > span {
  display: inline-block;
  /* L'état initial et le reveal sont pilotés en JS (transitions) :
     le texte reste toujours visible si le JS ou les animations échouent. */
  transition: transform 1s var(--ease-luxe);
}
.hero .lead { max-width: 52ch; margin-bottom: var(--space-4); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-meta {
  position: absolute;
  z-index: 2;
  right: clamp(1.5rem, 4vw, 4rem);
  bottom: clamp(5rem, 12vh, 9rem);
  display: grid;
  gap: .9rem;
  text-align: right;
}
@media (max-width: 760px) { .hero-meta { display: none; } }

/* Indicateur scroll */
.scroll-hint {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 1.6rem;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: .6rem;
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--cream-dim);
}
.scroll-hint .line {
  width: 1px; height: 44px;
  background: rgba(245,240,230,.25);
  position: relative;
  overflow: hidden;
}
.scroll-hint .line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ochre);
  animation: scroll-drop 2.1s var(--ease-luxe) infinite;
}
@keyframes scroll-drop {
  0% { transform: translateY(-100%); }
  55% { transform: translateY(0); }
  100% { transform: translateY(100%); }
}
/* Mobile : le bas du hero accueille déjà les dots + la bulle Maya */
@media (max-width: 560px) {
  .scroll-hint { display: none; }
}

/* Pagination hero */
.hero-dots {
  position: absolute;
  z-index: 2;
  left: clamp(1.5rem, 4vw, 4rem);
  bottom: 1.8rem;
  display: flex;
  gap: .6rem;
}
.hero-dots button {
  width: 26px; height: 3px;
  background: rgba(245,240,230,.25);
  border-radius: 2px;
  transition: background var(--t-fast) ease;
}
.hero-dots button.active { background: var(--ochre); }

/* ── Marquee infini ────────────────────────────────────────── */
.marquee {
  overflow: hidden;
  padding-block: 1.3rem;
  border-block: 1px solid rgba(245,240,230,.08);
  background: var(--ink-deep);
  position: relative;
}
.marquee-track {
  display: flex;
  gap: 3.5rem;
  width: max-content;
  animation: marquee 36s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee-item {
  display: flex;
  align-items: center;
  gap: 3.5rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-style: italic;
  color: var(--cream-dim);
  white-space: nowrap;
}
.marquee-item::after {
  content: "✦";
  font-size: .8rem;
  color: var(--terra);
  font-style: normal;
}

/* Bandeau réassurance */
.reassurance {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr));
  gap: 1px;
  background: rgba(245,240,230,.08);
  border-block: 1px solid rgba(245,240,230,.08);
}
.reassurance > div {
  background: var(--ink);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--cream-dim);
}
.reassurance svg { width: 22px; height: 22px; color: var(--ochre); flex: none; }

/* ── Layouts à deux colonnes (responsive) ──────────────────── */
.layout-split {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(280px, 1fr);
  gap: var(--space-5);
  align-items: start;
}
.layout-split.narrow-side { grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr); }
.layout-aside-sticky {
  position: sticky;
  top: 96px;
  display: grid;
  gap: var(--space-3);
  min-width: 0;
}
.layout-split > * { min-width: 0; }
@media (max-width: 920px) {
  .layout-split, .layout-split.narrow-side { grid-template-columns: 1fr; gap: var(--space-4); }
  .layout-aside-sticky { position: static; }
}
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
@media (max-width: 480px) { .cols-2 { grid-template-columns: 1fr; } }

/* ── Cartes tour (tilt 3D) ─────────────────────────────────── */
.tours-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(310px, 100%), 1fr));
  gap: var(--space-4);
}
.tour-card {
  position: relative;
  border-radius: var(--radius-lg);
  background: var(--ink-panel);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform var(--t-fast) ease-out, box-shadow var(--t-med) ease;
  will-change: transform;
}
.tour-card:hover { box-shadow: 0 30px 70px rgba(0,0,0,.55), var(--glow-ochre); }
/* Carte VEDETTE : bannière horizontale pleine largeur (hiérarchie éditoriale) */
@media (min-width: 760px) {
  .tour-card.is-featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    align-items: stretch;
  }
  .tour-card.is-featured .tour-card-media { aspect-ratio: auto; height: 100%; min-height: 360px; }
  .tour-card.is-featured .tour-card-body { padding: 2.4rem 2.6rem; align-content: center; gap: 1.1rem; }
  .tour-card.is-featured h3 { font-size: clamp(1.5rem, 2.3vw, 2.05rem); line-height: 1.12; }
  .tour-card.is-featured .tour-card-route { font-size: 1.02rem; max-width: 46ch; }
}
/* ── Manifeste : respiration typographique plein-cadre ── */
.manifesto { padding-block: clamp(4.5rem, 10vw, 8rem); text-align: center; }
.manifesto .eyebrow { justify-content: center; }
.manifesto-quote {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.9rem, 4.4vw, 3.3rem); line-height: 1.16; letter-spacing: -.01em;
  max-width: 20ch; margin: var(--space-3) auto 0; color: var(--cream);
}
@supports (text-wrap: balance) { .manifesto-quote { text-wrap: balance; } }
.tour-card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.tour-card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease-luxe);
}
.tour-card:hover .tour-card-media img { transform: scale(1.08); }
.tour-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(6,8,16,.65));
}
.tour-card .badge { position: absolute; top: 14px; right: 14px; z-index: 2; }
.tour-card-ref {
  position: absolute;
  bottom: 12px; left: 16px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: .2em;
  color: var(--ochre);
  opacity: 0;
  transform: translateY(8px);
  transition: all var(--t-med) var(--ease-out);
}
.tour-card:hover .tour-card-ref { opacity: 1; transform: none; }
.tour-card-body { padding: 1.6rem 1.6rem 1.8rem; display: grid; gap: .9rem; }
.tour-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2em;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cream-dim);
}
.tour-card h3 { font-size: 1.45rem; }
.tour-card h3 a::after { content: ""; position: absolute; inset: 0; }
.tour-card-route {
  font-family: var(--font-mono);
  font-size: .7rem;
  color: var(--cream-dim);
  letter-spacing: .06em;
  line-height: 1.9;
}
.tour-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: .9rem;
  border-top: 1px solid rgba(245,240,230,.08);
}
.tour-card-price { display: grid; }
.tour-card-price .from {
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--cream-dim);
}
.tour-card-price .amount {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--ochre);
  white-space: nowrap;
}
.price-table td.price { white-space: nowrap; }
.tour-card .btn { position: relative; z-index: 2; }

/* ── Grille destinations ───────────────────────────────────── */
.destinations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: var(--space-3);
}
.dest-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  display: grid;
  align-items: end;
}
.dest-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-luxe); }
.dest-card:hover img { transform: scale(1.07); }
.dest-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(185deg, transparent 40%, rgba(6,8,16,.88));
}
.dest-card-body { position: relative; z-index: 2; padding: 1.8rem; display: grid; gap: .4rem; }
.dest-card h3 { font-size: 1.6rem; }
.dest-card .mono { color: var(--ochre); font-size: .64rem; }
.dest-card-link::after { content: ""; position: absolute; inset: 0; z-index: 3; }

/* ── Stats / compteurs ─────────────────────────────────────── */
.stats-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: var(--space-4);
  text-align: center;
}
.stat { display: flex; flex-direction: column; align-items: center; }
.stat .stat-value {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 4rem);
  color: var(--ochre);
  line-height: 1;
  text-shadow: var(--glow-ochre);
}
.stat .stat-label {
  margin-top: .6rem;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--cream-dim);
}

/* ── Piliers « pourquoi » ──────────────────────────────────── */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: var(--space-3);
}
.pillar {
  background: var(--cream-soft);
  border: 1px solid rgba(11,14,20,.08);
  border-radius: var(--radius-lg);
  padding: 2.2rem 1.9rem;
  display: grid;
  gap: 1rem;
  align-content: start;
  transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med) ease;
}
.pillar:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px rgba(11,14,20,.12);
}
.pillar-icon { width: 46px; height: 46px; color: var(--terra-deep); }
.pillar-icon path, .pillar-icon circle, .pillar-icon rect {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
}
.is-visible .pillar-icon path, .is-visible .pillar-icon circle, .is-visible .pillar-icon rect {
  animation: icon-draw 1.6s var(--ease-luxe) forwards;
  animation-delay: .25s;
}
@keyframes icon-draw { to { stroke-dashoffset: 0; } }
.pillar p { font-size: .92rem; color: rgba(11,14,20,.62); }
.pillar .num {
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: .25em;
  color: rgba(11,14,20,.4);
}

/* ── Section parallaxe immersive ───────────────────────────── */
.parallax-banner {
  position: relative;
  min-height: 72vh;
  overflow: hidden;
  display: grid;
  align-items: center;
}
.parallax-banner .parallax-img {
  position: absolute;
  inset: -12% 0;
  width: 100%; height: 124%;
  object-fit: cover;
  will-change: transform;
}
.parallax-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6,8,16,.88) 0%, rgba(6,8,16,.45) 55%, rgba(6,8,16,.2) 100%);
}
.parallax-banner .container { position: relative; z-index: 2; }

/* ── Horizon malgache (séparateur organique de sections) ───── */
/* La hauteur suit la largeur (ratio 1600:150) pour ne jamais déformer
   les silhouettes ; sous 960px le slice recadre sur le centre de la
   scène. Posé en absolu sur le bord de la section image. */
.horizon-divider {
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: max(90px, 9.375vw);
  z-index: 1;
  pointer-events: none;
}
.horizon-divider svg { display: block; width: 100%; height: 100%; }
.horizon-divider.hz-flip {
  top: auto;
  bottom: -1px;
  transform: scaleY(-1);
}
.hz-ink { fill: var(--ink); }
.hz-fig {
  fill: var(--ochre);
  opacity: .85;
  /* fin cerne sombre : garde les silhouettes lisibles sur fond clair */
  stroke: rgba(11, 14, 20, .5);
  stroke-width: .9;
  paint-order: stroke;
}
.hz-fig .terra { fill: var(--terra); }
.hz-tail {
  fill: none;
  stroke: var(--ochre);
  stroke-width: 4;
  stroke-dasharray: 6 4.5; /* anneaux de la queue du maki */
}
.hz-tail-s {
  fill: none;
  stroke: var(--ochre);
  stroke-width: 1.6;
  stroke-dasharray: 2.5 2;
}
.hz-wheel { fill: none; stroke: var(--ochre); stroke-width: 3; }
.hz-wheel2 { fill: none; stroke: var(--ochre); stroke-width: 2; }
.hz-line { fill: none; stroke: var(--ochre); stroke-width: 1.8; stroke-linecap: round; }
.hz-line2 { fill: none; stroke: var(--ochre); stroke-width: 2.6; stroke-linecap: round; }
.hz-dust { opacity: .35; }
.hz-dust.d2 { opacity: .22; }
.hz-eye { fill: var(--ink); stroke: none; }

/* Mode « ligne d'horizon » : bandeau en flux entre deux sections de
   même fond — simple trait ocre ondulant + silhouettes */
.horizon-divider.hz-inline {
  position: relative;
  top: auto;
  z-index: auto;
}
.hz-ground {
  fill: none;
  stroke: rgba(201, 169, 97, .38);
  stroke-width: 1.5;
}

/* ── Timeline horizontale épinglée (accueil) ───────────────── */
.hscroll-section { position: relative; }
.hscroll-sticky {
  position: sticky;
  top: 0;
  min-height: 100vh;
  display: grid;
  align-content: center;
  overflow: hidden;
  gap: var(--space-4);
}
.hscroll-track {
  display: flex;
  gap: var(--space-3);
  will-change: transform;
  padding-inline: max(1.5rem, calc((100vw - var(--container)) / 2));
}
.hscroll-card {
  flex: none;
  width: min(420px, 78vw);
  background: var(--ink-panel);
  border: 1px solid rgba(245,240,230,.08);
  border-radius: var(--radius-lg);
  padding: 1.9rem;
  display: grid;
  gap: .8rem;
  align-content: start;
}
.hscroll-card .day-num {
  font-family: var(--font-mono);
  color: var(--terra);
  font-size: .7rem;
  letter-spacing: .25em;
}
.hscroll-card h3 { font-size: 1.3rem; }
.hscroll-card p { font-size: .92rem; color: var(--cream-dim); }
.hscroll-progress {
  height: 2px;
  background: rgba(245,240,230,.1);
  margin-inline: max(1.5rem, calc((100vw - var(--container)) / 2));
  position: relative;
}
.hscroll-progress span {
  position: absolute;
  inset: 0;
  background: var(--ochre);
  transform-origin: left;
  transform: scaleX(0);
}

/* Mobile / tactile : carrousel natif scroll-snap au lieu du pin —
   plus fluide au doigt, pas de section de 3000px à scroller. */
.hscroll-native .hscroll-sticky {
  position: static;
  min-height: 0;
  padding-block: var(--space-6);
}
.hscroll-native .hscroll-track {
  overflow-x: auto;
  transform: none !important;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 1.2rem;
  scrollbar-width: none;
}
.hscroll-native .hscroll-track::-webkit-scrollbar { display: none; }
.hscroll-native .hscroll-card { scroll-snap-align: center; }

/* ── Timeline verticale (fiche tour) ───────────────────────── */
.timeline { position: relative; display: grid; gap: var(--space-4); }
.timeline::before {
  content: "";
  position: absolute;
  left: 11px; top: 8px; bottom: 8px;
  width: 1px;
  background: rgba(245,240,230,.12);
}
.timeline .timeline-progress {
  position: absolute;
  left: 11px; top: 8px;
  width: 1px;
  height: 0;
  background: linear-gradient(180deg, var(--terra), var(--ochre));
  transition: height .25s linear;
}
.timeline-day {
  position: relative;
  padding-left: 3.2rem;
  display: grid;
  gap: .7rem;
}
.timeline-day::before {
  content: "";
  position: absolute;
  left: 4px; top: 8px;
  width: 15px; height: 15px;
  border-radius: 50%;
  border: 1px solid var(--ochre);
  background: var(--ink);
  transition: background var(--t-fast) ease, box-shadow var(--t-fast) ease;
}
.timeline-day.is-visible::before {
  background: var(--terra);
  box-shadow: 0 0 14px rgba(184,80,66,.7);
}
.timeline-day .day-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 1rem;
}
.timeline-day .day-tag {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .22em;
  color: var(--terra);
  text-transform: uppercase;
}
.timeline-day .gps {
  font-family: var(--font-mono);
  font-size: .64rem;
  color: var(--cream-dim);
  letter-spacing: .12em;
}
.timeline-day p { color: var(--cream-dim); font-size: .96rem; }
.timeline-day .day-amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4em;
  font-size: .78rem;
  color: var(--cream-dim);
}
.timeline-day .day-amenities svg { width: 15px; height: 15px; color: var(--ochre); vertical-align: -3px; margin-right: .4em; }
.timeline-day img { border-radius: var(--radius); margin-top: .4rem; }

/* ── Fiche tour ────────────────────────────────────────────── */
.tour-hero { padding-top: clamp(7rem, 14vh, 9rem); }
.tour-gallery {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 10px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: clamp(360px, 52vh, 560px);   /* hauteur bornée : la galerie ne s'étire plus à l'infini */
}
.tour-gallery:not(:has(.g-side)) { grid-template-columns: 1fr; }  /* une seule photo → pleine largeur */
.tour-gallery .g-main { height: 100%; }
.tour-gallery a {
  position: relative;
  display: block;
  overflow: hidden;
  height: 100%;
}
.tour-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-luxe); }
.tour-gallery a:hover img { transform: scale(1.06); }
/* jusqu'à 4 vignettes → grille 2×2 qui remplit la colonne de droite */
.tour-gallery .g-side { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; }
.tour-gallery .g-side:has(a:only-child) { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.tour-gallery .g-more {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(6,8,16,.6);
  font-family: var(--font-mono);
  font-size: .8rem;
  letter-spacing: .2em;
}
@media (max-width: 760px) {
  .tour-gallery { grid-template-columns: 1fr; height: auto; }
  .tour-gallery .g-main, .tour-gallery .g-main a { height: auto; aspect-ratio: 16 / 10; }
  .tour-gallery .g-side { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .tour-gallery .g-side a { height: auto; aspect-ratio: 4 / 3; }
}

/* Barre sticky fiche tour */
.tour-sticky {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(6,8,16,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(245,240,230,.08);
  transform: translateY(-100%);
  transition: transform var(--t-med) var(--ease-out);
}
.tour-sticky.visible { transform: none; }
.tour-sticky-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: .8rem;
}
.tour-sticky-inner .t-title { font-family: var(--font-display); font-size: 1.05rem; }
.tour-sticky-inner .t-meta { display: flex; gap: 1.6em; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em; color: var(--cream-dim); }
.tour-sticky-inner .t-actions { display: flex; gap: .8rem; }
@media (max-width: 760px) { .tour-sticky-inner .t-meta { display: none; } }
@media (max-width: 640px) {
  /* Barre compacte : uniquement les deux CTA, pleine largeur */
  .tour-sticky-inner { flex-wrap: wrap; gap: .5rem .8rem; padding-block: .6rem; }
  .tour-sticky-inner > div:first-child { display: none; }
  .tour-sticky-inner .t-actions { width: 100%; }
  .tour-sticky-inner .t-actions .btn { flex: 1; justify-content: center; }
}

/* Inclus / non inclus */
.included-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: var(--space-3);
}
.included-col {
  background: var(--ink-panel);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
}
.included-col ul { display: grid; gap: .7rem; margin-top: 1rem; }
.included-col li { display: flex; gap: .8em; align-items: flex-start; font-size: .94rem; color: var(--cream-dim); }
/* Sur section claire, le composant passe en encre (cream-dim y est illisible) */
.on-light .included-col li { color: rgba(11, 14, 20, .72); }
.included-col li svg { width: 17px; height: 17px; flex: none; margin-top: .2em; }
.included-col.yes li svg { color: var(--success); }
.included-col.no li svg { color: var(--terra); }

/* Tableau tarifs */
.price-table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.price-table th, .price-table td {
  padding: .9em 1.1em;
  text-align: left;
  border-bottom: 1px solid rgba(245,240,230,.08);
}
.price-table th {
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ochre);
}
.price-table td.price { font-family: var(--font-display); font-size: 1.1rem; color: var(--ochre); }
.price-note { font-size: .82rem; color: var(--cream-dim); margin-top: 1rem; }

/* Carte Leaflet / fallback */
.tour-map-block { max-width: 980px; margin-inline: auto; }
.tour-map {
  width: 100%;
  height: clamp(360px, 40vw, 500px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ink-panel);
  display: grid;
  place-items: center;
  color: var(--cream-dim);
  font-size: .9rem;
  text-align: center;
  padding: 1rem;
}
.tour-map.leaflet-ready { padding: 0; }
/* Zoom Leaflet : cibles tactiles plus grandes sur mobile (>= 40px) */
@media (max-width: 760px) {
  .leaflet-touch .leaflet-bar a,
  .leaflet-touch .leaflet-control-zoom a,
  .leaflet-control-zoom a {
    width: 40px !important;
    height: 40px !important;
    line-height: 40px !important;
    font-size: 22px !important;
  }
}

/* Accordéon FAQ */
.accordion { display: grid; gap: .8rem; }
.accordion-item {
  background: var(--ink-panel);
  border: 1px solid rgba(245,240,230,.08);
  border-radius: var(--radius);
  overflow: hidden;
}
.accordion-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.4rem;
  font-weight: 600;
}
.accordion-item summary::-webkit-details-marker { display: none; }
.accordion-item summary .chev {
  flex: none;
  width: 18px; height: 18px;
  color: var(--ochre);
  transition: transform var(--t-med) var(--ease-out);
}
.accordion-item[open] summary .chev { transform: rotate(180deg); }
.accordion-body {
  padding: 0 1.4rem 1.3rem;
  color: var(--cream-dim);
  font-size: .94rem;
}

/* ── Témoignages slider ────────────────────────────────────── */
.testi-slider { position: relative; overflow: hidden; }
.testi-track {
  display: flex;
  transition: transform .7s var(--ease-luxe);
}
.testi-slide { flex: none; width: 100%; padding-inline: 2px; }
.testi-card {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
  display: grid;
  gap: 1.3rem;
  justify-items: center;
}
.testi-card blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.4vw, 1.65rem);
  font-style: italic;
  line-height: 1.45;
}
.testi-card .who { display: grid; gap: .2rem; justify-items: center; }
.testi-card .who .name { font-weight: 700; }
.testi-card .who .tour-ref { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .18em; color: var(--cream-dim); text-transform: uppercase; }
.testi-nav { display: flex; justify-content: center; gap: 1rem; margin-top: var(--space-4); }
.testi-nav button {
  width: 46px; height: 46px;
  border: 1px solid rgba(245,240,230,.2);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--cream);
  transition: all var(--t-fast) ease;
}
.testi-nav button:hover { border-color: var(--ochre); color: var(--ochre); transform: scale(1.06); }
.on-light .testi-nav button { border-color: rgba(11,14,20,.25); color: var(--ink); }
.on-light .testi-card .who .tour-ref { color: rgba(11, 14, 20, .55); }

/* Grille témoignages (page dédiée) */
.testi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(310px, 100%), 1fr)); gap: var(--space-3); }
.testi-box {
  background: var(--ink-panel);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  display: grid;
  gap: 1rem;
  align-content: start;
}
.testi-box blockquote { font-size: .98rem; color: var(--cream-dim); font-style: italic; }

/* ── Blog ──────────────────────────────────────────────────── */
.posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(310px, 100%), 1fr)); gap: var(--space-4); }
.post-card { display: grid; gap: 1rem; position: relative; }
.post-card-media { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 10; }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-luxe); }
.post-card:hover .post-card-media img { transform: scale(1.06); }
.post-card .meta { display: flex; gap: 1.4em; font-family: var(--font-mono); font-size: .64rem; letter-spacing: .18em; text-transform: uppercase; color: var(--cream-dim); }
.post-card h3 { font-size: 1.3rem; }
.post-card h3 a::after { content: ""; position: absolute; inset: 0; }
.post-card p { font-size: .92rem; color: var(--cream-dim); }
.on-light .post-card p { color: rgba(11,14,20,.6); }
.on-light .post-card .meta { color: rgba(11,14,20,.5); }

/* Article */
.prose { max-width: 720px; margin-inline: auto; display: grid; gap: 1.2rem; }
.prose h2, .prose h3, .prose h4 { margin-top: 1.2rem; }
.prose p, .prose li { color: var(--cream-dim); font-size: 1.04rem; }
.prose ul { list-style: none; display: grid; gap: .5rem; padding-left: 1.4em; }
.prose ul li { position: relative; }
.prose ul li::before {
  content: "—";
  position: absolute;
  left: -1.4em;
  color: var(--terra);
}
.prose a { color: var(--ochre); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--cream); }

/* ── Wizard devis ──────────────────────────────────────────── */
.wizard { max-width: 760px; margin-inline: auto; }
.wizard-progress { display: grid; gap: .7rem; margin-bottom: var(--space-5); }
.wizard-progress .steps-row {
  display: flex;
  justify-content: space-between;
  gap: .8em;
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cream-dim);
}
.wizard-progress .steps-row .current { color: var(--ochre); }
@media (max-width: 560px) {
  /* Mobile : n'afficher que l'étape courante */
  .wizard-progress .steps-row span { display: none; }
  .wizard-progress .steps-row .current { display: block; }
}
.wizard-bar {
  height: 3px;
  border-radius: 2px;
  background: rgba(245,240,230,.1);
  overflow: hidden;
}
.wizard-bar span {
  display: block;
  height: 100%;
  width: 25%;
  background: linear-gradient(90deg, var(--terra), var(--ochre));
  transition: width .6s var(--ease-luxe);
  box-shadow: var(--glow-ochre);
}
.wizard-step { display: none; border: 0; padding: 0; margin: 0; min-width: 0; }
.wizard-step.active { display: block; animation: step-in .55s var(--ease-out); }
@keyframes step-in {
  from { opacity: 0; transform: translateX(36px); }
  to   { opacity: 1; transform: none; }
}
.wizard-step h2 { font-size: var(--fs-h3); margin-bottom: var(--space-4); }
.wizard-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: var(--space-4);
}
.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }
.choice-card { position: relative; }
.choice-card input { position: absolute; opacity: 0; inset: 0; }
.choice-card label {
  display: grid;
  gap: .3rem;
  padding: 1.2rem 1.3rem;
  border: 1px solid rgba(245,240,230,.14);
  border-radius: var(--radius);
  cursor: pointer;
  height: 100%;
  transition: border-color var(--t-fast) ease, background var(--t-fast) ease, transform var(--t-fast) ease;
}
.choice-card label strong { font-size: 1rem; }
.choice-card label small { color: var(--cream-dim); font-size: .8rem; }
.choice-card input:checked + label {
  border-color: var(--ochre);
  background: rgba(201,169,97,.08);
  box-shadow: 0 0 0 1px var(--ochre), var(--glow-ochre);
}
.choice-card input:focus-visible + label { outline: 2px solid var(--ochre); outline-offset: 2px; }

/* Chips d'intérêts */
.chips { display: flex; flex-wrap: wrap; gap: .7rem; }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.chip label {
  display: inline-block;
  padding: .6em 1.2em;
  border: 1px solid rgba(245,240,230,.18);
  border-radius: 100px;
  font-size: .88rem;
  cursor: pointer;
  transition: all var(--t-fast) ease;
}
.chip input:checked + label {
  background: var(--terra);
  border-color: var(--terra);
  color: var(--cream-soft);
  box-shadow: var(--glow-terra);
}

/* Slider budget */
.budget-slider { display: grid; gap: 1rem; }
.budget-value {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--ochre);
}
input[type="range"] {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--terra) var(--fill, 40%), rgba(245,240,230,.14) var(--fill, 40%));
  outline-offset: 6px;
}
input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--ochre);
  border: 3px solid var(--ink);
  box-shadow: var(--glow-ochre);
  cursor: grab;
}
input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--ochre);
  border: 3px solid var(--ink);
  cursor: grab;
}

/* Compteur +/- voyageurs */
.counter-field { display: flex; align-items: center; gap: 1.2rem; }
.counter-field button {
  width: 44px; height: 44px;
  border: 1px solid rgba(245,240,230,.2);
  border-radius: 50%;
  font-size: 1.3rem;
  color: var(--cream);
  transition: all var(--t-fast) ease;
}
.counter-field button:hover { border-color: var(--ochre); color: var(--ochre); }
.counter-field .value { font-family: var(--font-display); font-size: 1.6rem; min-width: 2ch; text-align: center; }

/* Écran de succès */
.success-screen { text-align: center; display: grid; gap: 1.4rem; justify-items: center; padding-block: var(--space-5); }
.success-ref {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  letter-spacing: .25em;
  color: var(--ochre);
  border: 1px dashed rgba(201,169,97,.5);
  padding: .8em 1.6em;
  border-radius: var(--radius);
  box-shadow: var(--glow-ochre);
}
.success-check { width: 84px; height: 84px; color: var(--success); }
.success-check circle, .success-check path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  animation: icon-draw 1.4s var(--ease-luxe) forwards;
}

/* ── Maya widget ───────────────────────────────────────────── */
.maya-fab {
  position: fixed;
  right: 1.6rem;
  bottom: 1.6rem;
  z-index: var(--z-maya);
  width: 62px; height: 62px;
  border-radius: 50%;
  background: var(--terra);
  color: var(--cream-soft);
  display: grid;
  place-items: center;
  border: 1px solid rgba(201,169,97,.45);
  box-shadow: 0 12px 34px rgba(0,0,0,.45), var(--glow-terra);
  transition: transform var(--t-fast) var(--ease-out), box-shadow var(--t-fast) var(--ease-out);
}
.maya-fab:hover { transform: scale(1.07); box-shadow: 0 16px 42px rgba(0,0,0,.5), var(--glow-terra), var(--glow-ochre); }
.maya-fab::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--terra);
  animation: maya-pulse 2.6s var(--ease-out) infinite;
}
@keyframes maya-pulse {
  0% { transform: scale(1); opacity: .8; }
  100% { transform: scale(1.65); opacity: 0; }
}
.maya-fab svg { width: 26px; height: 26px; }
.maya-fab .maya-close-ic { display: none; }
.maya-open .maya-fab .maya-chat-ic { display: none; }
.maya-open .maya-fab .maya-close-ic { display: block; }

.maya-panel {
  position: fixed;
  right: 1.6rem;
  bottom: 6.4rem;
  z-index: var(--z-maya);
  width: min(400px, calc(100vw - 2.4rem));
  height: min(580px, calc(100svh - 9rem));
  display: grid;
  grid-template-rows: auto 1fr auto;
  border-radius: var(--radius-lg);
  background: rgba(19, 23, 34, .88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(245,240,230,.12);
  box-shadow: 0 40px 90px rgba(0,0,0,.6), inset 0 1px 0 rgba(245,240,230,.08);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px) scale(.97);
  transform-origin: bottom right;
  transition: all .45s var(--ease-luxe);
}
.maya-open .maya-panel { opacity: 1; visibility: visible; transform: none; }
/* Halo doré ambiant qui « respire » — sous le contenu (z-index:0) */
.maya-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(120% 60% at 50% 0%, rgba(201,169,97,.16), transparent 60%);
  animation: maya-halo-breath 14s ease-in-out infinite;
}
.maya-panel > * { position: relative; z-index: 1; }
@keyframes maya-halo-breath { 0%,100% { opacity: .6; } 50% { opacity: 1; } }
.maya-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: .85rem;
  padding: 1.05rem 1.2rem .95rem;
  background: linear-gradient(180deg, rgba(11,14,20,.78), rgba(6,8,16,.35));
  box-shadow: inset 0 1px 0 rgba(245,240,230,.08);
}
.maya-head::after {
  content: "";
  position: absolute;
  left: 1.2rem; right: 1.2rem; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,169,97,.45), transparent);
}
/* Médaillon emblème (baobab doré) + point de présence */
.maya-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  position: relative;
  overflow: visible;
  display: grid;
  place-items: center;
  flex: none;
  background: radial-gradient(120% 120% at 32% 26%, var(--ink-soft), var(--ink-deep));
  border: 1.5px solid rgba(201,169,97,.55);
  box-shadow: inset 0 0 16px rgba(201,169,97,.16), 0 6px 16px rgba(0,0,0,.45);
}
.maya-avatar .maya-emblem { width: 60%; height: 60%; object-fit: contain; filter: drop-shadow(0 1px 2px rgba(0,0,0,.5)); }
.maya-presence {
  position: absolute;
  right: -1px; bottom: -1px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: #4fd18b;
  border: 2px solid var(--ink-panel);
  box-shadow: 0 0 0 0 rgba(79,209,139,.55);
  animation: maya-presence-pulse 2.4s var(--ease-out) infinite;
}
@keyframes maya-presence-pulse {
  0% { box-shadow: 0 0 0 0 rgba(79,209,139,.5); }
  70% { box-shadow: 0 0 0 7px rgba(79,209,139,0); }
  100% { box-shadow: 0 0 0 0 rgba(79,209,139,0); }
}
.maya-head .titles { display: grid; min-width: 0; line-height: 1.18; gap: 1px; }
.maya-head .titles .maya-kicker {
  font-family: var(--font-mono);
  font-size: .52rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--ochre);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.maya-head .titles strong {
  font-family: var(--font-display);
  font-size: 1.2rem; font-weight: 600;
  letter-spacing: -.01em; line-height: 1;
  color: var(--cream);
}
.maya-head .titles .maya-presence-label {
  display: inline-flex; align-items: center; gap: .4em;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: .56rem; letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cream-dim);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.maya-head .titles .maya-presence-label::before {
  content: "";
  width: 6px; height: 6px; flex: none;
  border-radius: 50%;
  background: #4fd18b;
}
.maya-head-close {
  width: 32px; height: 32px;
  flex: none;
  display: grid; place-items: center;
  background: transparent;
  color: var(--cream-dim);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out);
}
.maya-head-close svg { width: 16px; height: 16px; }
.maya-head-close:hover { background: rgba(245,240,230,.08); color: var(--cream); }
.maya-head-close:focus-visible { outline: 2px solid var(--ochre); outline-offset: 2px; }
.maya-body {
  overflow-y: auto;
  padding: 1.2rem;
  display: grid;
  gap: .9rem;
  align-content: start;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(201,169,97,.4) transparent;
}
.maya-body::-webkit-scrollbar { width: 6px; }
.maya-body::-webkit-scrollbar-thumb { background: rgba(201,169,97,.35); border-radius: 100px; }
.maya-body::-webkit-scrollbar-thumb:hover { background: rgba(201,169,97,.6); }
.maya-msg {
  max-width: 85%;
  padding: .8em 1.05em;
  border-radius: 14px;
  font-size: .92rem;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: break-word;
}
.maya-msg.from-maya {
  background: linear-gradient(180deg, rgba(245,240,230,.085), rgba(245,240,230,.05));
  border: 1px solid rgba(245,240,230,.08);
  box-shadow: inset 2px 0 0 rgba(201,169,97,.3);
  border-bottom-left-radius: 4px;
  justify-self: start;
}
.maya-msg.from-user {
  background: linear-gradient(135deg, var(--terra), var(--terra-deep));
  color: var(--cream-soft);
  border-bottom-right-radius: 4px;
  justify-self: end;
}
.maya-msg a { color: var(--ochre); text-decoration: underline; }
/* Entrée animée des bulles (classe posée/retirée par maya.js ; pas au replay d'historique) */
.maya-msg--in { animation: maya-msg-in .32s var(--ease-out) both; }
@keyframes maya-msg-in {
  from { opacity: 0; transform: translateY(8px) scale(.98); }
  to { opacity: 1; transform: none; }
}
.maya-typing {
  display: inline-flex;
  gap: 5px;
  padding: 1em 1.1em;
  background: rgba(245,240,230,.07);
  border-radius: 14px 14px 14px 4px;
  justify-self: start;
}
.maya-typing i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cream-dim);
  animation: typing-dot 1.1s ease-in-out infinite;
}
.maya-typing i:nth-child(2) { animation-delay: .15s; }
.maya-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing-dot {
  0%, 60%, 100% { transform: translateY(0); opacity: .4; }
  30% { transform: translateY(-5px); opacity: 1; }
}
.maya-suggestions { display: flex; flex-wrap: wrap; gap: .5rem; }
.maya-suggestions button {
  font-size: .78rem;
  padding: .5em 1em;
  border: 1px solid rgba(201,169,97,.4);
  border-radius: 100px;
  color: var(--ochre);
  transition: all var(--t-fast) var(--ease-out);
}
.maya-suggestions button:hover { background: rgba(201,169,97,.12); transform: translateY(-1px); }
.maya-suggestions button:focus-visible { outline: 2px solid var(--ochre); outline-offset: 2px; }
.maya-replies { margin-top: .2rem; }

/* Cartes circuits dans le chat */
.maya-cards { display: grid; gap: .55rem; margin: .2rem 0 .4rem; }
.maya-card { display: flex; gap: .7rem; align-items: stretch; text-decoration: none; background: linear-gradient(180deg, rgba(245,240,230,.06), rgba(245,240,230,.03)); border: 1px solid rgba(245,240,230,.1); border-radius: 12px; overflow: hidden; transition: border-color var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out), box-shadow var(--t-fast) var(--ease-out); }
.maya-card:hover { border-color: rgba(201,169,97,.55); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0,0,0,.4), inset 0 0 0 1px rgba(201,169,97,.18); }
.maya-card img { width: 84px; min-height: 84px; object-fit: cover; flex: none; background: var(--ink-deep); }
.maya-card-info { display: flex; flex-direction: column; justify-content: center; gap: .15rem; padding: .55rem .65rem .55rem 0; min-width: 0; }
.maya-card-info strong { color: var(--cream); font-family: var(--font-display); font-weight: 600; font-size: .95rem; line-height: 1.18; }
.maya-card-meta { color: var(--cream-dim); font-size: .72rem; font-family: var(--font-mono); }
.maya-card-price { color: var(--ochre); font-size: .8rem; font-weight: 600; }
.maya-card-season { font-size: .68rem; font-weight: 600; margin-top: .1rem; }
.maya-season-ideal { color: #4fd18b; }
.maya-season-good { color: var(--ochre); }
.maya-season-low { color: var(--cream-dim); font-weight: 500; }

/* Boutons d'action + WhatsApp */
.maya-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin: .1rem 0 .3rem; }
.maya-action { font-size: .8rem; padding: .55em 1em; border-radius: 100px; background: rgba(184,80,66,.16); border: 1px solid rgba(184,80,66,.5); color: #f0c4ba; text-decoration: none; transition: background var(--t-fast) ease; }
.maya-action:hover { background: rgba(184,80,66,.28); }
.maya-wa { display: inline-flex; align-items: center; gap: .4em; font-size: .82rem; padding: .6em 1.1em; border-radius: 100px; background: #1faa53; color: #fff; text-decoration: none; margin: .1rem 0 .4rem; font-weight: 600; }
.maya-wa:hover { filter: brightness(1.08); }

/* Formulaire de capture de contact dans le chat */
.maya-lead { display: grid; gap: .5rem; background: rgba(245,240,230,.05); border: 1px solid rgba(201,169,97,.25); border-radius: 12px; padding: .8rem; margin: .2rem 0 .4rem; }
.maya-lead input, .maya-lead textarea { width: 100%; background: rgba(245,240,230,.06); border: 1px solid rgba(245,240,230,.14); border-radius: 8px; padding: .55em .8em; color: var(--cream); font-size: .88rem; font-family: inherit; }
.maya-lead input:focus, .maya-lead textarea:focus { outline: none; border-color: var(--ochre); }
.maya-lead textarea { resize: vertical; }
.maya-lead .maya-hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.maya-lead button { padding: .6em 1.2em; border-radius: 100px; background: var(--terra); color: #FAF7F1; font-weight: 600; font-size: .85rem; cursor: pointer; border: none; }
.maya-lead button:disabled { opacity: .6; cursor: default; }
.maya-lead-err { color: #f0a89c; font-size: .76rem; }
.maya-foot {
  display: flex;
  gap: .6rem;
  padding: .9rem;
  background: linear-gradient(0deg, rgba(11,14,20,.7), rgba(6,8,16,.3));
}
.maya-foot::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,169,97,.35), transparent);
}
.maya-foot input {
  flex: 1;
  background: rgba(245,240,230,.06);
  border: 1px solid rgba(245,240,230,.12);
  border-radius: 100px;
  padding: .7em 1.2em;
  color: var(--cream);
  font-size: .92rem;
  transition: border-color var(--t-fast) var(--ease-out), box-shadow var(--t-fast) var(--ease-out);
}
.maya-foot input:focus { outline: none; border-color: var(--ochre); box-shadow: 0 0 0 3px rgba(201,169,97,.18); }
.maya-foot button {
  width: 44px; height: 44px;
  flex: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--terra), var(--terra-deep));
  color: var(--cream-soft);
  display: grid;
  place-items: center;
  box-shadow: 0 4px 14px rgba(184,80,66,.35);
  transition: transform var(--t-fast) var(--ease-out), box-shadow var(--t-fast) var(--ease-out);
}
.maya-foot button:hover { transform: scale(1.06); box-shadow: var(--glow-terra); }
.maya-foot button:focus-visible { outline: 2px solid var(--ochre); outline-offset: 2px; }
.maya-foot button svg { width: 18px; height: 18px; }

/* Fond assombri derrière la feuille (mobile uniquement) */
.maya-backdrop { display: none; }

/* ── Maya — responsive : feuille plein écran sur mobile ────── */
@media (max-width: 560px) {
  .maya-fab {
    right: calc(1.1rem + env(safe-area-inset-right));
    bottom: calc(1.1rem + env(safe-area-inset-bottom));
    width: 58px; height: 58px;
  }
  /* FAB masqué quand la feuille est ouverte (fermeture via × ou fond) */
  .maya-open .maya-fab { opacity: 0; transform: scale(.5); pointer-events: none; }

  .maya-panel {
    left: 0; right: 0; bottom: 0; top: auto;
    width: 100%; max-width: none;
    height: 92svh;
    height: 92dvh;
    max-height: none;
    border-radius: 20px 20px 0 0;
    transform-origin: bottom center;
    transform: translateY(100%);
  }
  .maya-open .maya-panel { transform: none; }

  /* Poignée de glissement (affordance « feuille ») */
  .maya-head { padding-top: 1.55rem; }
  .maya-head::before {
    content: "";
    position: absolute;
    top: .55rem; left: 50%;
    width: 38px; height: 4px;
    margin-left: -19px;
    border-radius: 100px;
    background: rgba(245,240,230,.28);
  }
  /* Cibles tactiles ≥ 40px */
  .maya-head-close { width: 40px; height: 40px; }
  .maya-head-close svg { width: 18px; height: 18px; }

  /* Champ de saisie à l'abri de l'encoche / barre d'accueil */
  .maya-foot { padding-bottom: calc(.9rem + env(safe-area-inset-bottom)); }

  .maya-backdrop {
    display: block;
    position: fixed; inset: 0;
    z-index: calc(var(--z-maya) - 1);
    background: rgba(6,8,16,.55);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    opacity: 0; visibility: hidden;
    transition: opacity .35s var(--ease-luxe), visibility .35s var(--ease-luxe);
  }
  .maya-open .maya-backdrop { opacity: 1; visibility: visible; }
}

/* Paysage très bas : resserrer la carte flottante pour qu'elle tienne */
@media (min-width: 561px) and (max-height: 460px) {
  .maya-panel { bottom: 4.8rem; height: min(580px, calc(100svh - 6.5rem)); }
}

/* ── Lightbox ──────────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  background: rgba(6,8,16,.96);
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease, visibility .35s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: min(92vw, 1400px);
  max-height: 86vh;
  object-fit: contain;
  border-radius: var(--radius);
  transition: transform .3s var(--ease-out);
}
.lightbox .lb-counter {
  position: absolute;
  top: 1.4rem; left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .3em;
  color: var(--cream-dim);
}
.lightbox button {
  position: absolute;
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  color: var(--cream);
  border: 1px solid rgba(245,240,230,.2);
  border-radius: 50%;
  background: rgba(19,23,34,.5);
  transition: all var(--t-fast) ease;
}
.lightbox button:hover { border-color: var(--ochre); color: var(--ochre); }
.lightbox .lb-close { top: 1.2rem; right: 1.2rem; }
.lightbox .lb-prev { left: 1.2rem; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 1.2rem; top: 50%; transform: translateY(-50%); }
.lightbox svg { width: 20px; height: 20px; }

/* ── Filtres catalogue ─────────────────────────────────────── */
.filters-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: end;
  padding: 1.4rem;
  background: var(--ink-panel);
  border: 1px solid rgba(245,240,230,.08);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-4);
  position: relative;
  z-index: 5;
}
.filters-bar .field { margin: 0; flex: 1 1 150px; }
.filters-bar label { font-family: var(--font-mono); font-size: .6rem; letter-spacing: .2em; text-transform: uppercase; color: var(--cream-dim); }
.results-count {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .2em;
  color: var(--ochre);
  text-transform: uppercase;
  margin-bottom: var(--space-3);
  display: block;
}

/* Pagination */
.pagination { display: flex; justify-content: center; gap: .6rem; margin-top: var(--space-5); }
.pagination a, .pagination span {
  min-width: 42px; height: 42px;
  display: grid;
  place-items: center;
  padding-inline: .6em;
  border: 1px solid rgba(245,240,230,.14);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: .8rem;
  transition: all var(--t-fast) ease;
}
.pagination a:hover { border-color: var(--ochre); color: var(--ochre); }
.pagination .current { background: var(--terra); border-color: var(--terra); color: var(--cream-soft); }

/* ── CTA final ─────────────────────────────────────────────── */
.final-cta { text-align: center; position: relative; overflow: hidden; }
.final-cta h2 { font-size: clamp(2.4rem, 5vw, 4.2rem); max-width: 16ch; margin-inline: auto; }
.final-cta .lead { margin: var(--space-3) auto var(--space-4); }
.final-cta .glow-orb {
  position: absolute;
  width: 560px; height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,169,97,.14), transparent 65%);
  top: -180px; left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }

/* ── Footer ────────────────────────────────────────────────── */
.site-footer {
  position: relative;
  background: var(--ink-deep);
  border-top: 1px solid rgba(245,240,230,.07);
  padding: var(--space-6) 0 var(--space-3);
  overflow: hidden;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
  gap: var(--space-4);
  position: relative;
  z-index: 2;
}
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: .64rem;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ochre);
  margin-bottom: 1.2rem;
}
.footer-col ul { display: grid; gap: .6rem; list-style: none; padding: 0; margin: 0; }
.footer-col a { color: var(--cream-dim); font-size: .92rem; transition: color var(--t-fast) ease; }
.footer-col a:hover { color: var(--ochre); }
.footer-brand p { color: var(--cream-dim); font-size: .92rem; margin-top: 1.2rem; max-width: 36ch; }
.footer-news-form { display: flex; gap: .6rem; margin-top: 1rem; }
.footer-news-form input {
  flex: 1;
  background: var(--ink-panel);
  border: 1px solid rgba(245,240,230,.14);
  border-radius: var(--radius);
  padding: .75em 1em;
  color: var(--cream);
  font-size: .9rem;
}
.footer-news-form input:focus { outline: none; border-color: var(--ochre); }
.news-feedback { font-size: .8rem; margin-top: .6rem; color: var(--ochre); min-height: 1.2em; }
.footer-bottom {
  margin-top: var(--space-5);
  padding-top: var(--space-3);
  border-top: 1px solid rgba(245,240,230,.07);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: .8rem;
  color: var(--cream-dim);
  position: relative;
  z-index: 2;
}
.footer-bottom .gps-tag { font-size: .58rem; }

/* ── Bannière cookies ──────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  left: 1.4rem; right: 1.4rem; bottom: 1.4rem;
  z-index: var(--z-modal);
  max-width: 720px;
  margin-inline: auto;
  background: rgba(19,23,34,.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(245,240,230,.10);
  border-radius: 999px;
  padding: .7rem .8rem .7rem 1.4rem;
  box-shadow: 0 14px 36px rgba(0,0,0,.42);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem 1.2rem;
  transform: translateY(calc(100% + 2rem));
  transition: transform .6s var(--ease-luxe);
}
.cookie-banner.show { transform: none; }
.cookie-banner p { font-size: .82rem; color: var(--cream-dim); margin: 0; flex: 1 1 240px; min-width: 0; }
.cookie-banner .cookie-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.cookie-banner .cookie-more { font-size: .78rem; color: var(--ochre); }
@media (max-width: 560px) {
  .cookie-banner { border-radius: var(--radius-lg); padding: 1rem 1.2rem; }
}

/* ── Transitions de page (voile terra) ─────────────────────── */
.page-veil {
  position: fixed;
  inset: 0;
  z-index: var(--z-veil);
  background: var(--terra);
  transform: scaleX(0);
  transform-origin: right;
  pointer-events: none;
}
.page-veil.enter {
  animation: veil-in .35s var(--ease-luxe) forwards;
}
.page-veil.leave {
  transform-origin: left;
  animation: veil-out .6s var(--ease-luxe) forwards;
}
@keyframes veil-in { to { transform: scaleX(1); } }
@keyframes veil-out { from { transform: scaleX(1); } to { transform: scaleX(0); } }

/* View Transitions API : DÉSACTIVÉ.
   Le cross-fade inter-pages capturait le header (position:fixed) comme snapshot ;
   sur certaines versions de Chrome cela laissait un double du logo à l'écran.
   Le voile JS (.page-veil, ci-dessus) reste comme transition de page sûre, sans
   snapshot ni dédoublement possible. */

/* ── Curseur personnalisé (desktop fin) ────────────────────── */
@media (hover: hover) and (pointer: fine) {
  .cursor-dot, .cursor-ring {
    position: fixed;
    top: 0; left: 0;
    z-index: var(--z-cursor);
    pointer-events: none;
    border-radius: 50%;
    transform: translate(-50%, -50%);
  }
  .cursor-dot {
    width: 6px; height: 6px;
    background: var(--ochre);
  }
  .cursor-ring {
    width: 38px; height: 38px;
    border: 1px solid rgba(201,169,97,.55);
    transition: width .3s var(--ease-out), height .3s var(--ease-out),
                background .3s ease, border-color .3s ease;
    display: grid;
    place-items: center;
  }
  .cursor-ring .cursor-label {
    font-family: var(--font-mono);
    font-size: .5rem;
    letter-spacing: .2em;
    color: var(--ink-deep);
    text-transform: uppercase;
    opacity: 0;
  }
  body.cursor-hover .cursor-ring {
    width: 58px; height: 58px;
    background: rgba(201,169,97,.14);
    border-color: var(--ochre);
  }
  body.cursor-view .cursor-ring {
    width: 72px; height: 72px;
    background: var(--ochre);
    border-color: var(--ochre);
  }
  body.cursor-view .cursor-ring .cursor-label { opacity: 1; }
  body.cursor-view .cursor-dot { opacity: 0; }
}
.cursor-dot, .cursor-ring { display: none; }
@media (hover: hover) and (pointer: fine) {
  body.has-custom-cursor .cursor-dot,
  body.has-custom-cursor .cursor-ring { display: grid; }
}

/* ── 404 boussole ──────────────────────────────────────────── */
.compass-404 {
  width: 130px; height: 130px;
  margin-inline: auto;
  color: var(--ochre);
}
.compass-404 .needle {
  transform-origin: 60px 60px;
  animation: needle-spin 5s var(--ease-luxe) infinite;
}
@keyframes needle-spin {
  0% { transform: rotate(0deg); }
  30% { transform: rotate(380deg); }
  55% { transform: rotate(340deg); }
  75% { transform: rotate(365deg); }
  100% { transform: rotate(360deg); }
}

/* ── Bandeau flash ─────────────────────────────────────────── */
.flash {
  padding: 1em 1.4em;
  border-radius: var(--radius);
  margin-bottom: var(--space-3);
  font-size: .94rem;
  border: 1px solid;
}
.flash-success { background: rgba(31,111,79,.15); border-color: rgba(31,111,79,.5); color: #9BD8BC; }
.flash-error { background: rgba(192,57,43,.14); border-color: rgba(192,57,43,.5); color: #E8A99E; }

/* ── Calendrier de vent (spot Sakalava) ────────────────────── */
.wind-cal {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr);
  gap: var(--space-3) var(--space-4);
  align-items: start;
}
@media (max-width: 920px) { .wind-cal { grid-template-columns: 1fr; } }

.wind-chart-wrap {
  position: relative;
  padding-left: 44px;
  background: var(--ink-panel);
  border: 1px solid rgba(245,240,230,.08);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.2rem 1rem 56px;
}
.wind-scale { position: absolute; left: 14px; top: 1.6rem; bottom: calc(1rem + 44px); width: 40px; }
.wind-scale span {
  position: absolute;
  transform: translateY(50%);
  font-family: var(--font-mono);
  font-size: .58rem;
  letter-spacing: .08em;
  color: var(--cream-dim);
}
.wind-scale span::after {
  content: "";
  position: absolute;
  left: 42px; top: 50%;
  width: calc(100vw - 100px);
  max-width: 760px;
  height: 1px;
  background: rgba(245,240,230,.06);
  pointer-events: none;
}
.wind-scale small { font-size: .5rem; opacity: .7; }

.wind-chart {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 6px;
  position: relative;
  z-index: 2;
}
.wind-month {
  display: grid;
  justify-items: center;
  gap: .35rem;
  padding: .3rem .1rem .5rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background var(--t-fast) ease, transform var(--t-fast) var(--ease-out);
}
.wind-month:hover { background: rgba(245,240,230,.05); transform: translateY(-2px); }
.wind-month[aria-selected="true"] { background: rgba(201,169,97,.1); box-shadow: inset 0 0 0 1px rgba(201,169,97,.45); }

.wind-dir { width: 13px; height: 13px; color: var(--cream-dim); transition: color var(--t-fast) ease; }
.wind-month.q-prime .wind-dir, .wind-month.q-good .wind-dir { color: var(--ochre); }

.wind-bar-zone { position: relative; height: var(--bar-h, 170px); width: 100%; display: flex; align-items: flex-end; justify-content: center; }
/* Écrans larges : le graphe respire (barres plus hautes, colonnes aérées) */
@media (min-width: 1280px) {
  .wind-chart-wrap { --bar-h: 220px; padding-top: 2.2rem; }
  .wind-chart { gap: 10px; }
  .wind-scale { top: 2.2rem; }
}
.wind-bar {
  width: min(22px, 70%);
  border-radius: 4px 4px 2px 2px;
  position: relative;
  transform-origin: bottom;
  transform: scaleY(0);
  transition: transform .9s var(--ease-luxe);
}
.is-visible .wind-bar, .wind-cal:not([data-reveal]) .wind-bar { transform: scaleY(1); }
/* repère du vent minimum dans la barre */
.wind-bar::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: var(--kn-min, 50%);
  height: 2px;
  background: rgba(6,8,16,.55);
}
.q-prime .wind-bar { background: linear-gradient(180deg, var(--terra) 0%, var(--ochre) 100%); box-shadow: 0 0 18px rgba(184,80,66,.45); }
.q-good  .wind-bar { background: var(--ochre); }
.q-fair  .wind-bar { background: rgba(201,169,97,.45); }
.q-off   .wind-bar { background: rgba(245,240,230,.14); }

.wind-max {
  position: absolute;
  top: -2px; left: 50%;
  transform: translate(-50%, -100%);
  font-family: var(--font-mono);
  font-size: .56rem;
  color: var(--cream-dim);
  opacity: 0;
  transition: opacity var(--t-fast) ease;
}
.wind-month:hover .wind-max, .wind-month[aria-selected="true"] .wind-max { opacity: 1; }
.q-prime .wind-max { color: var(--ochre-glow); }

.wind-m { font-family: var(--font-mono); font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; color: var(--cream); }
.wind-rel { font-family: var(--font-mono); font-size: .54rem; color: var(--cream-dim); }
.wind-month.is-now .wind-m { color: var(--terra); }
.wind-month.is-now::after {
  content: "●";
  font-size: .45rem;
  color: var(--terra);
  line-height: .5;
}

/* Bandeau saison avril → novembre */
.wind-season-band {
  grid-column: 1;
  display: flex;
  align-items: center;
  gap: 1em;
  margin-top: .8rem;
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ochre);
}
.wind-season-band span { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(201,169,97,.5), transparent); }

/* Panneau de détail — ancré en colonne 2 sur les DEUX rangées,
   sinon l'auto-placement le pousse en rangée 2 (à côté du bandeau
   saison) et laisse un grand vide au-dessus de lui. */
.wind-detail {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: start;
  background: var(--ink-panel);
  border: 1px solid rgba(245,240,230,.08);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  display: grid;
  gap: 1rem;
  position: sticky;
  top: 96px;
}
@media (max-width: 920px) {
  .wind-detail { position: static; grid-column: auto; grid-row: auto; }
}
.wind-detail-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.wind-detail-head h3 { font-size: 1.5rem; text-transform: capitalize; }
.wind-detail ul { display: grid; gap: .65rem; }
.wind-detail li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  border-bottom: 1px dashed rgba(245,240,230,.1);
  padding-bottom: .55rem;
  font-size: .92rem;
}
.wind-detail li .mono { font-size: .58rem; }
.wind-comment { color: var(--cream-dim); font-size: .94rem; font-style: italic; }
.wind-water { font-size: .6rem; }

.wind-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem;
  margin-top: var(--space-3);
  font-size: .78rem;
  color: var(--cream-dim);
}
.wind-legend .lg { display: inline-flex; align-items: center; gap: .5em; }
.wind-legend .lg::before { content: ""; width: 10px; height: 10px; border-radius: 3px; }
.wind-legend .q-prime::before { background: linear-gradient(180deg, var(--terra), var(--ochre)); }
.wind-legend .q-good::before { background: var(--ochre); }
.wind-legend .q-fair::before { background: rgba(201,169,97,.45); }
.wind-legend .q-off::before { background: rgba(245,240,230,.14); }
.wind-legend .wind-note { margin-left: auto; font-size: .68rem; font-family: var(--font-mono); letter-spacing: .04em; }

@media (max-width: 640px) {
  .wind-chart-wrap { padding: 1.2rem .6rem .8rem 42px; }
  .wind-scale { left: 8px; }
  .wind-bar-zone { height: 130px; }
  .wind-chart { gap: 3px; }
  .wind-m { font-size: .52rem; letter-spacing: .04em; }
  .wind-rel { display: none; }
  .wind-legend .wind-note { margin-left: 0; }
}

/* ── Popups riches de la carte (étapes du circuit) ─────────── */
.mdw-popup .leaflet-popup-content-wrapper {
  background: rgba(13, 17, 27, .96);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(245, 240, 230, .14);
  border-radius: 12px;
  color: var(--cream);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
  padding: 0;
}
.mdw-popup .leaflet-popup-content { margin: 0; width: auto !important; }
.mdw-popup .leaflet-popup-tip { background: rgba(13, 17, 27, .96); border: 1px solid rgba(245,240,230,.14); }
.mdw-popup .leaflet-popup-close-button {
  color: var(--cream-dim) !important;
  font-size: 18px;
  padding: 8px 10px 0 0 !important;
  z-index: 5;
}
.mdw-popup .leaflet-popup-close-button:hover { color: var(--ochre) !important; }

.mdw-pop { width: 290px; max-width: 84vw; font-family: var(--font-body); }
.mdw-pop-head {
  display: flex;
  align-items: baseline;
  gap: .7em;
  padding: .85rem 2rem .7rem 1rem;
}
.mdw-pop-num {
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .2em;
  color: var(--terra);
}
.mdw-pop-title { font-family: var(--font-display); font-size: 1rem; font-weight: 500; line-height: 1.25; color: var(--cream); }

.mdw-pop-gallery { position: relative; height: 168px; overflow: hidden; }
.mdw-pop-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mdw-pop-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.4rem .8rem .5rem;
  font-size: .72rem;
  color: var(--cream);
  background: linear-gradient(180deg, transparent, rgba(6,8,16,.85));
  pointer-events: none;
}
.mdw-pop-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(6,8,16,.65);
  color: var(--cream);
  font-size: 17px;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: background .15s ease, color .15s ease;
}
.mdw-pop-nav:hover { background: var(--terra); }
.mdw-pop-nav.prev { left: 8px; }
.mdw-pop-nav.next { right: 8px; }
.mdw-pop-dots {
  position: absolute;
  top: 8px; right: 10px;
  display: flex;
  gap: 5px;
}
.mdw-pop-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(245,240,230,.4);
  transition: background .15s ease, transform .15s ease;
}
.mdw-pop-dot.on { background: var(--ochre); transform: scale(1.25); }

.mdw-pop-video { position: relative; height: 150px; background: var(--ink-deep); }
.mdw-pop-video iframe, .mdw-pop-video video { width: 100%; height: 100%; border: 0; display: block; }
.mdw-pop-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: .5rem;
  background:
    radial-gradient(circle at 50% 45%, rgba(184,80,66,.25), transparent 60%),
    repeating-linear-gradient(90deg, rgba(245,240,230,.03) 0 1px, transparent 1px 28px);
  transition: background .2s ease;
}
.mdw-pop-play .tri {
  width: 0; height: 0;
  border-left: 16px solid var(--cream-soft);
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  margin-left: 4px;
  display: block;
  filter: drop-shadow(0 0 12px rgba(184,80,66,.8));
  transition: transform .2s var(--ease-out);
}
.mdw-pop-play:hover .tri { transform: scale(1.18); }
.mdw-pop-play .lbl {
  font-family: var(--font-mono);
  font-size: .56rem;
  letter-spacing: .3em;
  color: var(--ochre);
}
.mdw-pop-vcaption {
  padding: .6rem 1rem .85rem;
  font-size: .76rem;
  font-style: italic;
  color: var(--cream-dim);
}
.mdw-pop > .mdw-pop-gallery:last-child,
.mdw-pop > .mdw-pop-video:last-child { border-radius: 0 0 12px 12px; }

/* ── Carte Madagascar stylisée (contact, à-propos…) ────────── */
.mg-map-panel {
  background: var(--ink-panel);
  border: 1px solid rgba(245,240,230,.08);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.2rem 1.2rem;
  position: relative;
  overflow: hidden;
}
.mg-cap {
  position: relative;
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--ochre);
  margin: 0 0 .7rem .15rem;
}
.mg-map-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}
/* La carte reste compacte quelle que soit la largeur de colonne
   (sinon le SVG s'étire et écrase la mise en page voisine). */
.mg-map {
  display: block;
  width: 100%;
  max-width: 300px;
  height: auto;
  margin-inline: auto;
  position: relative;
}

.mg-island {
  stroke: var(--ochre);
  stroke-width: 1.6;
  stroke-linejoin: round;
  stroke-dasharray: 2400;
  stroke-dashoffset: 2400;
}
.is-visible .mg-island { animation: mg-draw 2.6s var(--ease-luxe) forwards; }
@keyframes mg-draw { to { stroke-dashoffset: 0; } }

.mg-islet {
  fill: rgba(201,169,97,.18);
  stroke: var(--ochre);
  stroke-width: 1.2;
}
.mg-route {
  fill: none;
  stroke: var(--terra);
  stroke-width: 1.6;
  stroke-dasharray: 4 7;
  stroke-linecap: round;
  opacity: 0;
}
.is-visible .mg-route { animation: mg-route-in 1s ease 1.8s forwards; }
@keyframes mg-route-in { to { opacity: .9; } }

.mg-pin .mg-dot {
  fill: var(--terra);
  stroke: var(--ochre);
  stroke-width: 1.4;
}
.mg-pin .mg-pulse {
  fill: none;
  stroke: var(--terra);
  stroke-width: 1.2;
  transform-box: fill-box;
  transform-origin: center;
  animation: mg-pulse 2.6s var(--ease-out) infinite;
  animation-delay: var(--pin-d, 0s);
}
@keyframes mg-pulse {
  0% { transform: scale(.6); opacity: .9; }
  100% { transform: scale(2.6); opacity: 0; }
}
.mg-label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .18em;
  fill: var(--cream);
}
.mg-sub {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: .12em;
  fill: var(--cream-dim);
}
.mg-ocean {
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: .34em;
  fill: rgba(245,240,230,.22);
}
.mg-compass circle { fill: none; stroke: rgba(245,240,230,.25); stroke-width: 1; }
.mg-compass path { fill: var(--ochre); }
.mg-compass text {
  font-family: var(--font-mono);
  font-size: 8px;
  fill: var(--cream-dim);
  text-anchor: middle;
}

/* ── Frise de baobabs (décor de bas de section) ────────────── */
.baobab-strip {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: clamp(70px, 11vw, 130px);
  pointer-events: none;
  color: var(--ochre);
  opacity: .16;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.baobab-strip svg { width: 100%; height: 100%; display: block; }
.baobab-strip .ground { stroke: currentColor; stroke-width: 1; opacity: .7; }
.baobab-strip .tree { fill: currentColor; }
.baobab-strip .tree.terra { fill: var(--terra); }

/* ── Contact : 3 colonnes sur grand écran ──────────────────── */
.contact-aside { display: grid; gap: var(--space-3); align-content: start; }
.contact-side { display: grid; gap: var(--space-3); align-content: start; }
@media (min-width: 1200px) {
  /* formulaire | carte | bureaux+WhatsApp — colonnes équilibrées */
  .contact-grid { grid-template-columns: minmax(0, 1.35fr) 330px minmax(250px, 1fr); }
  .contact-grid .contact-aside { display: contents; }
  .contact-grid .mg-map-panel { grid-column: 2; grid-row: 1; align-self: start; }
  .contact-grid .contact-side { grid-column: 3; grid-row: 1; }
}

/* ── Soleil vivant du hero ─────────────────────────────────── */
/* Optimisé GPU : dégradés peints une fois, seules les propriétés
   compositor (transform / opacity) sont animées — jamais de blur. */
.hero-sun {
  position: absolute;
  top: 6%;
  left: 56%;
  width: min(56vw, 880px);
  aspect-ratio: 1;
  pointer-events: none;
  animation: sun-drift 90s ease-in-out infinite alternate;
  will-change: transform;
}
.hero-sun span { position: absolute; border-radius: 50%; display: block; }

/* Disque solaire : halo doux à décroissance progressive — aucun point
   dur ni rayon, le rendu reste naturel sur fond chaud comme froid */
.sun-core {
  inset: 32%;
  background: radial-gradient(circle,
    rgba(255, 240, 210, .34) 0%,
    rgba(244, 212, 148, .20) 20%,
    rgba(236, 198, 124, .10) 40%,
    rgba(232, 201, 122, .04) 56%,
    transparent 72%);
  animation: sun-breathe 9s ease-in-out infinite;
  will-change: transform, opacity;
}

/* Brume atmosphérique discrète, pulsation en contre-rythme */
.sun-haze {
  inset: -14%;
  background: radial-gradient(circle,
    rgba(235, 160, 92, .09) 0%,
    rgba(184, 80, 66, .035) 40%,
    transparent 62%);
  animation: sun-breathe 13s ease-in-out infinite reverse;
  will-change: transform, opacity;
}

@keyframes sun-breathe {
  0%, 100% { transform: scale(1); opacity: .93; }
  50%      { transform: scale(1.03); opacity: 1; }
}
/* Dérive lente du soleil dans le ciel (aller-retour 2×90 s) */
@keyframes sun-drift {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-6%, 4%, 0); }
}

@media (max-width: 760px) {
  .hero-sun { left: 30%; top: 3%; width: 96vw; }
}

/* ── Ciel étoilé du hero ───────────────────────────────────── */
/* 3 couches d'étoiles en box-shadow (peintes une seule fois, positions
   en vw/vh donc responsive sans JS) qui scintillent en contre-phase :
   l'œil perçoit un scintillement individuel pour le coût d'une seule
   animation d'opacité par couche. Étoile filante toutes les ~22 s. */
.hero-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-stars span {
  position: absolute;
  display: block;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  will-change: transform, opacity; /* transform piloté par la parallaxe JS */
}
.stars-a {
  box-shadow: 21.5vw 45.7vh 0 rgba(226,232,255,.66), 17.9vw 49vh 1px rgba(255,228,188,.57), 84.2vw 40.4vh 0 rgba(255,228,188,.25), 67.5vw 47.8vh 0 rgba(226,232,255,.49), 85.2vw 27vh 1px rgba(255,228,188,.35), 20.9vw 34.6vh 0 rgba(255,228,188,.66), 91.6vw 14.2vh 1px rgba(255,228,188,.31), 94.3vw 65.6vh 1px rgba(226,232,255,.53), 57.6vw 54.7vh 0 rgba(226,232,255,.43), 95.9vw 60.9vh 1px rgba(226,232,255,.51), 90.7vw 36.8vh 0 rgba(226,232,255,.69), 59.3vw 65.3vh 0 rgba(226,232,255,.32), 91.8vw 65vh 0 rgba(255,228,188,.29), 5.9vw 34.3vh 1px rgba(255,228,188,.69), 91.2vw 39.8vh 0 rgba(226,232,255,.65), 60.1vw 25.3vh 0 rgba(226,232,255,.63), 12.3vw 14.6vh 0 rgba(226,232,255,.68), 11vw 20.9vh 1px rgba(226,232,255,.68), 22.8vw 20.6vh 0 rgba(255,228,188,.55), 58.4vw 29.5vh 0 rgba(226,232,255,.49), 19.9vw 4.3vh 0 rgba(255,228,188,.62), 38.7vw 12.4vh 0 rgba(226,232,255,.38), 74vw 58vh 0 rgba(226,232,255,.26), 23.3vw 10.4vh 0 rgba(226,232,255,.34), 84vw 65.3vh 0 rgba(226,232,255,.65), 30.5vw 12.7vh 0 rgba(226,232,255,.64), 68.9vw 21.6vh 1px rgba(226,232,255,.4), 44.5vw 16.5vh 1px rgba(255,228,188,.67), 21.9vw 19.9vh 0 rgba(226,232,255,.48), 76.9vw 17.2vh 0 rgba(226,232,255,.31), 38.8vw 15.8vh 0 rgba(226,232,255,.49), 45.4vw 8.7vh 1px rgba(226,232,255,.51), 63.6vw 38.2vh 1px rgba(226,232,255,.52), 77.6vw 46.6vh 0 rgba(226,232,255,.64);
  animation: star-twinkle 6s ease-in-out infinite;
}
.stars-b {
  box-shadow: 77.5vw 39.7vh 0 rgba(226,232,255,.6), 15.2vw 3.4vh 1px rgba(226,232,255,.4), 67.5vw 40.2vh 0 rgba(255,228,188,.54), 90.9vw 63.5vh 0 rgba(226,232,255,.64), 53.4vw 54vh 1px rgba(255,228,188,.63), 83.6vw 61.1vh 1px rgba(255,228,188,.38), 38.6vw 9.8vh 1px rgba(226,232,255,.61), 77vw 54.7vh 0 rgba(226,232,255,.69), 66.6vw 57.1vh 1px rgba(226,232,255,.69), 94.7vw 47.3vh 0 rgba(255,228,188,.53), 82.1vw 5vh 0 rgba(226,232,255,.39), 10.7vw 17.7vh 0 rgba(255,228,188,.6), 82.2vw 36.1vh 1px rgba(255,228,188,.6), 73.5vw 2.6vh 0 rgba(255,228,188,.33), 37.7vw 21.1vh 0 rgba(226,232,255,.36), 44.7vw 26.6vh 1px rgba(255,228,188,.27), 86.5vw 12.7vh 0 rgba(226,232,255,.6), 53.9vw 40.5vh 0 rgba(226,232,255,.5), 79.4vw 44.3vh 0 rgba(255,228,188,.43), 6.6vw 21vh 0 rgba(226,232,255,.35), 49.7vw 10.5vh 1px rgba(255,228,188,.68), 47.9vw 13vh 0 rgba(226,232,255,.49), 64.5vw 60vh 1px rgba(226,232,255,.37), 61.9vw 45.8vh 1px rgba(255,228,188,.67), 95.3vw 59.9vh 0 rgba(255,228,188,.39), 15.3vw 17.1vh 1px rgba(226,232,255,.56);
  animation: star-twinkle 9s ease-in-out infinite reverse;
}
.stars-c {
  box-shadow: 15.2vw 8.4vh 0 rgba(226,232,255,.55), 6.9vw 28.1vh 0 rgba(226,232,255,.6), 43.7vw 27.3vh 0 rgba(226,232,255,.31), 26.7vw 50.3vh 1px rgba(226,232,255,.35), 71.5vw 6.1vh 1px rgba(255,228,188,.52), 28.8vw 2.4vh 0 rgba(255,228,188,.34), 74.1vw 65.7vh 0 rgba(255,228,188,.59), 7.5vw 14.7vh 1px rgba(226,232,255,.43), 91.6vw 38.9vh 0 rgba(226,232,255,.44), 57vw 64.7vh 0 rgba(226,232,255,.31), 53.2vw 26.9vh 0 rgba(226,232,255,.34), 74vw 42.9vh 1px rgba(226,232,255,.38), 80.5vw 59.3vh 0 rgba(226,232,255,.3), 82.9vw 63.4vh 0 rgba(226,232,255,.54), 18.3vw 55vh 1px rgba(226,232,255,.66), 89.9vw 23.3vh 0 rgba(226,232,255,.33), 71.5vw 36.4vh 0 rgba(226,232,255,.32), 24.3vw 45.8vh 0 rgba(255,228,188,.43), 95.5vw 30.4vh 0 rgba(226,232,255,.57), 75vw 27vh 0 rgba(226,232,255,.46);
  animation: star-twinkle 13s ease-in-out infinite;
  animation-delay: -4s;
}
@keyframes star-twinkle {
  0%, 100% { opacity: .5; }
  50%      { opacity: 1; }
}

/* Étoile filante : traînée fine qui traverse le ciel en ~1,3 s,
   puis longue pause (cycle 22 s) — uniquement transform/opacity */
.star-shoot {
  top: 8%;
  left: 72%;
  width: 110px !important;
  height: 1px !important;
  border-radius: 0 !important;
  background: linear-gradient(90deg, transparent, rgba(230,236,255,.7) 70%, #fff);
  transform: rotate(160deg) translate3d(0, 0, 0);
  transform-origin: right center;
  opacity: 0;
  animation: star-shoot 22s linear infinite;
  animation-delay: 5s;
  will-change: transform, opacity;
}
@keyframes star-shoot {
  0%    { transform: rotate(160deg) translate3d(0, 0, 0); opacity: 0; }
  1%    { opacity: .85; }
  5.5%  { opacity: .85; }
  6.5%  { transform: rotate(160deg) translate3d(34vw, 0, 0); opacity: 0; }
  100%  { transform: rotate(160deg) translate3d(34vw, 0, 0); opacity: 0; }
}

@media (max-width: 760px) {
  /* mobile : on garde les étoiles, on coupe la filante (zone réduite) */
  .star-shoot { display: none; }
}

/* ── Page activité : Plongée / Immersioni / Diving ──────────── */
.dive-season { color: var(--ochre); margin-top: .7rem; font-size: .82rem; letter-spacing: .04em; }
.dive-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.2rem; margin-top: 1.6rem; }
.dive-card { background: var(--ink-panel, #131722); border-radius: var(--radius-lg, 10px); padding: 1.5rem 1.4rem; position: relative; }
.dive-card .dive-depth { display: inline-block; font-size: .68rem; letter-spacing: .12em; color: var(--ochre); border: 1px solid rgba(201,169,97,.35); border-radius: 999px; padding: .2em .7em; margin-bottom: .7rem; }
.dive-card h3 { font-family: "Fraunces", Georgia, serif; font-size: 1.25rem; margin: 0 0 .5rem; color: var(--cream); }
.dive-card p { font-size: .9rem; color: var(--cream-dim); line-height: 1.6; }
.dive-more { margin-top: 1.6rem; }
.dive-cta { margin-top: 3rem; text-align: center; background: linear-gradient(135deg, rgba(184,80,66,.14), rgba(201,169,97,.08)); border-radius: var(--radius-lg, 10px); padding: 2.6rem 1.6rem; }
.dive-cta p { color: var(--cream-dim); max-width: 46ch; margin: .6rem auto 1.4rem; }
.dive-cta-actions { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }

/* ── Bandeau compagnies aériennes partenaires (footer) ──────── */
.footer-partners { border-top: 1px solid rgba(245,240,230,.08); margin-top: 2.4rem; padding-top: 1.6rem; }
.footer-partners-label { display: block; font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ochre); margin-bottom: .9rem; }
.footer-partners ul { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin: 0; padding: 0; }
.footer-partners li { font-size: .8rem; color: var(--cream-dim); letter-spacing: .02em; }
.footer-partners li::before { content: "✈ "; color: rgba(201,169,97,.55); }

/* ── Index Expériences (cartes d'activité cliquables) ───────── */
.exp-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
a.exp-card { text-decoration: none; display: flex; flex-direction: column; height: 100%; transition: transform .25s ease, border-color .25s ease; }
a.exp-card:hover { transform: translateY(-4px); }
a.exp-card h3 { transition: color .2s ease; }
a.exp-card:hover h3 { color: var(--ochre); }
.exp-see { display: inline-block; margin-top: auto; padding-top: 1rem; color: var(--ochre); font-size: .85rem; }
