:root{
  /* Sunset warm: vacation + emotion + conversion */
  --sand: #fff7ee;   /* warm ivory */
  --sand2: #ffe6cf;  /* soft peach */
  --lagoon: #2bb3c8; /* cool balance */
  --ocean: #1f3b63;  /* deep navy accent */
  --coral: #ff6b6b;  /* small accents */
  --mint: #19c3a6;
  --mintDeep: #0ea890;
  --sun: #ff9f1c;    /* primary CTA */
  --white: #ffffff;
  --ink: rgba(10, 24, 35, .92);

  --panel: rgba(255,255,255,.88);
  --stroke: rgba(10, 24, 35, .10);
  --text: rgba(10, 24, 35, .92);
  --muted: rgba(10, 24, 35, .64);
}

html { scroll-behavior: smooth; }
html, body{
  /* Prevent accidental horizontal scroll on mobile */
  overflow-x: clip;
}
body {
  color: var(--text);
  background:
    radial-gradient(980px 560px at 12% 8%, rgba(34, 211, 238, .14), transparent 62%),
    radial-gradient(920px 600px at 88% 16%, rgba(56, 189, 248, .10), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.94) 0%, rgba(255,255,255,.88) 40%, rgba(255,255,255,.92) 100%),
    url("../assets/images/home-bg.png");
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat;
  background-size: auto, auto, auto, cover;
  background-position: 0 0, 0 0, 0 0, center;
  background-attachment: fixed;
}

img, video{
  max-width: 100%;
}

.glass { background: var(--panel); border: 1px solid var(--stroke); }
.shadow-soft { box-shadow: 0 18px 50px rgba(10,24,35,.10); }
.ring-brand { box-shadow: 0 0 0 3px rgba(20, 184, 166, .22); }
.page-enter { animation: pageIn 520ms ease-out both; }
.anim-float { animation: floaty 5.5s ease-in-out infinite; }
.anim-float-slow { animation: floaty 7.5s ease-in-out infinite; }
.anim-pop { animation: popIn 520ms cubic-bezier(.2,.9,.2,1) both; }

.card-hover {
  transition: transform 130ms cubic-bezier(.2,.9,.2,1), box-shadow 130ms ease, border-color 130ms ease, filter 130ms ease;
}
.card-hover:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 22px 60px rgba(10,24,35,.16) !important;
  border-color: rgba(20, 184, 166, .58) !important;
  filter: saturate(1.06) !important;
  outline: 3px solid rgba(20, 184, 166, .22) !important;
  outline-offset: 3px !important;
}

/* Slightly larger logo in header */
.site-header img[src$="assets/logo.png"],
.site-header img[src$="../assets/logo.png"]{
  height: 112px !important;
  width: 112px !important;
}

/* When logo is large, reduce gap to the brand text */
.site-header a.flex.items-center.gap-2{
  gap: 0px !important;
}
.site-header a.flex.items-center.gap-2 > div{
  margin-left: -14px !important;
}

@media (max-width: 420px){
  .site-header img[src$="assets/logo.png"],
  .site-header img[src$="../assets/logo.png"]{
    height: 84px !important;
    width: 84px !important;
  }
  .site-header a.flex.items-center.gap-2{
    gap: 0px !important;
  }
  .site-header a.flex.items-center.gap-2 > div{
    margin-left: -10px !important;
  }
}

.btn-primary{
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
  white-space: nowrap;
  box-shadow: 0 14px 34px rgba(20, 184, 166, .34);
}
.btn-primary:hover{
  transform: translateY(-1px);
  box-shadow: 0 18px 44px rgba(20, 184, 166, .46);
  filter: saturate(1.04);
}
.btn-primary:active{
  transform: translateY(0px) scale(0.99);
  box-shadow: 0 10px 26px rgba(20, 184, 166, .28);
}

.btn-ghost{
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
  white-space: nowrap;
  box-shadow: 0 10px 26px rgba(7, 24, 35, .18);
}
.btn-ghost:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(7, 24, 35, .24);
  filter: saturate(1.02);
}
.btn-ghost:active{
  transform: translateY(0px) scale(0.99);
  box-shadow: 0 8px 18px rgba(7, 24, 35, .22);
}

/* Account CTA: match lagoon/mint tones */
.btn-account{
  background: linear-gradient(135deg, rgba(45, 212, 191, .22), rgba(20, 184, 166, .26), rgba(13, 148, 136, .36));
  border: 1px solid rgba(20, 184, 166, .78);
  color: rgba(10, 24, 35, .94);
  transition: transform 180ms ease, filter 180ms ease, box-shadow 180ms ease;
  white-space: nowrap;
}
.btn-account:hover{
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(20, 184, 166, .32);
  background: linear-gradient(135deg, rgba(45, 212, 191, .26), rgba(20, 184, 166, .32), rgba(13, 148, 136, .44));
}
.btn-account:active{ transform: translateY(0px) scale(0.99); }

/* Scroll reveal */
.reveal{
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 520ms ease, transform 520ms cubic-bezier(.2,.9,.2,1), filter 520ms ease;
  will-change: opacity, transform;
  filter: saturate(.96) hue-rotate(-6deg);
}
.reveal.is-visible{
  opacity: 1;
  transform: translateY(0);
  filter: saturate(1) hue-rotate(0deg);
}

/* Card media: force consistent image height */
.card-media{
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

@media (max-width: 520px){
  /* Slightly taller media on phones to avoid "too thin" cards */
  .card-media{
    aspect-ratio: 4 / 3;
  }
  /* Reduce hover lift on touch devices */
  .card-hover:hover{
    transform: none !important;
    outline: none !important;
    box-shadow: 0 18px 50px rgba(10,24,35,.12) !important;
  }
}

/* Compact media for pricing pages */
.media-compact{
  aspect-ratio: 16 / 7;
  max-height: 170px;
}

/* Larger media for kitesurf page */
.media-kite{
  aspect-ratio: 16 / 8;
  max-height: 240px;
}
@supports not (aspect-ratio: 1 / 1){
  .card-media{
    position: relative;
  }
  .card-media::before{
    content: "";
    display: block;
    padding-top: 62.5%; /* 10/16 */
  }
  .card-media > img{
    position: absolute;
    inset: 0;
  }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  html { scroll-behavior: auto !important; }
  /* Keep hover feedback, disable only autoplay animations/reveals */
  .page-enter, .anim-float, .anim-float-slow, .anim-pop, .skeleton { animation: none !important; }
  .reveal{ opacity: 1 !important; transform: none !important; transition: none !important; }
}

@keyframes pageIn{
  from{ opacity: 0; }
  to{ opacity: 1; }
}
@keyframes floaty{
  0%,100%{ transform: translateY(0); }
  50%{ transform: translateY(-6px); }
}
@keyframes popIn{
  from{ opacity: 0; transform: translateY(10px) scale(.98); }
  to{ opacity: 1; transform: translateY(0) scale(1); }
}

/* Header / menu animation */
.site-header{
  position: relative;
  transition: backdrop-filter 180ms ease, background-color 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  /* Base bandeau color (theme vacances) */
  background-color: rgba(255, 243, 214, .78);
}

/* Header layout: keep nav visible, actions pinned right */
.site-header > div{
  justify-content: flex-start !important;
  gap: 14px;
}
.site-header > div > .site-nav{
  flex: 1 1 auto;
  min-width: 0; /* allow overflow scrolling instead of pushing under actions */
}
.site-header > div > div:last-child{
  margin-left: auto;
  flex: 0 0 auto;
}
.site-header a{
  min-width: 0;
}
.site-header a .text-sm.font-semibold{
  white-space: nowrap;
}
.site-nav{
  flex-wrap: nowrap;
  /* prevent "mixed" wrapping on mid widths */
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
}
.site-nav::-webkit-scrollbar{ display: none; } /* Chrome/Safari */

/* Mobile menu (hamburger + drawer) */
.mobile-nav-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(255,255,255,.62);
  border: 1px solid rgba(10,24,35,.10);
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}
.mobile-nav-btn:hover{ transform: translateY(-1px); }
.mobile-nav-btn:active{ transform: translateY(0px) scale(.99); }

.mobile-drawer-overlay{
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(10,24,35,.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}
.mobile-drawer{
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(360px, 92vw);
  z-index: 81;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-left: 1px solid rgba(10,24,35,.10);
  transform: translateX(102%);
  transition: transform 220ms cubic-bezier(.2,.9,.2,1);
}
.mobile-drawer-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 14px;
  border-bottom: 1px solid rgba(10,24,35,.10);
}
.mobile-drawer-body{
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mobile-drawer a{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.60);
  border: 1px solid rgba(10,24,35,.08);
  color: rgba(10,24,35,.90);
  font-weight: 600;
  font-size: 14px;
}
.mobile-drawer a:hover{ background: rgba(255,243,214,.70); border-color: rgba(0,180,216,.22); }
.mobile-drawer .muted{
  font-weight: 700;
  color: rgba(10,24,35,.62);
}

body.mobile-drawer-open{ overflow: hidden; }
body.mobile-drawer-open .mobile-drawer-overlay{
  opacity: 1;
  pointer-events: auto;
}
body.mobile-drawer-open .mobile-drawer{ transform: translateX(0); }

@media (min-width: 768px){
  .mobile-nav-btn, .mobile-drawer, .mobile-drawer-overlay{ display: none !important; }
}

/* Header modes (mobile + auth) */
@media (max-width: 767px){
  /* Logged out: keep a compact primary CTA + hamburger */
  body.auth-out header .btn-primary{
    display: inline-flex !important;
    padding: 8px 12px !important;
    font-size: 13px !important;
    border-radius: 14px !important;
  }
  body.auth-out header .btn-ghost,
  body.auth-out header [data-whatsapp]{
    display: none !important;
  }
  body.auth-out header #mobileNavBtn{ display: inline-flex !important; }

  /* Logged in on site pages: show only "Mon compte" */
  body.auth-in.section-site header #mobileNavBtn{
    display: inline-flex !important;
  }
  body.auth-in.section-site header [data-cta="account"]{
    display: inline-flex !important;
  }
  body.auth-in.section-site header .btn-primary,
  body.auth-in.section-site header [data-whatsapp]{
    display: none !important;
  }

  /* Logged in inside account area: show hamburger + Accueil, hide others */
  body.auth-in.section-account header #mobileNavBtn{
    display: none !important;
  }
  body.auth-in.section-account header [data-cta="home"]{
    display: inline-flex !important;
  }
  body.auth-in.section-account header [data-auth-logout]{
    display: inline-flex !important;
  }
  body.auth-in.section-account header .btn-primary:not([data-auth-logout]),
  body.auth-in.section-account header [data-whatsapp],
  body.auth-in.section-account header [data-cta="account"]{
    display: none !important;
  }
  body.auth-in.section-account header a:not([data-cta="home"]):not([data-auth-logout]){
    display: none !important;
  }
}

@media (max-width: 520px){
  /* Ensure buttons are finger-friendly */
  .btn-primary, .btn-ghost{
    min-height: 44px;
  }
  .mobile-nav-btn{
    width: 44px;
    height: 44px;
  }
}

/* Make header compact on medium widths */
@media (max-width: 1100px){
  .site-header > div{ gap: 10px; }
  .site-nav{ gap: 2px !important; }
  .site-nav a{
    padding: 6px 10px !important;
    font-size: 13px !important;
  }
  .site-header .btn-primary,
  .site-header .btn-ghost{
    padding: 6px 10px !important;
    font-size: 13px !important;
    border-radius: 12px !important;
  }
  .site-header a .text-xs{
    display: none;
  }
}

@media (max-width: 860px){
  .site-header a .text-sm.font-semibold{
    font-size: 13px !important;
  }
}
.site-header::before{
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:0;
  height:2px;
  background: linear-gradient(90deg, rgba(34,211,238,.0), rgba(34,211,238,.55), rgba(56,189,248,.70), rgba(2,132,199,.55), rgba(34,211,238,.0));
  opacity: 0;
  transform: scaleX(.94);
  transition: opacity 180ms ease, transform 220ms cubic-bezier(.2,.9,.2,1);
  pointer-events:none;
}
.site-header.is-scrolled{
  background-color: rgba(236, 253, 255, .78) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 26px rgba(2, 132, 199, .12);
  border-color: rgba(10, 24, 35, .12) !important;
}
.site-header.is-scrolled::before{
  opacity: 1;
  transform: scaleX(1);
}
.site-nav a{
  position: relative;
  white-space: nowrap;
  transition: color 140ms ease, background-color 140ms ease, transform 140ms ease;
}
.site-nav a::after{
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 6px;
  height: 2px;
  background: currentColor;
  opacity: .0;
  transform: scaleX(.6);
  transform-origin: 50% 50%;
  transition: opacity 140ms ease, transform 180ms cubic-bezier(.2,.9,.2,1);
}
.site-nav a:hover{
  background-color: rgba(34, 211, 238, .12);
  transform: translateY(-1px);
}
.site-nav a:hover::after{
  opacity: .35;
  transform: scaleX(1);
}
.site-nav a.nav-active::after{
  opacity: .55;
  transform: scaleX(1);
}
.btn-primary{
  background: linear-gradient(180deg, #2dd4bf 0%, #14b8a6 52%, #0f766e 100%);
  color: var(--white);
  border: 1px solid rgba(20, 184, 166, .72);
}
.btn-primary:hover{
  background: linear-gradient(180deg, #43e6cf 0%, #1ac7b4 52%, #0f847b 100%);
  filter: none;
}
.btn-primary:active{
  background: linear-gradient(180deg, #20cbb8 0%, #14b8a6 70%, #0b5e57 100%);
}
.btn-ghost{
  background: radial-gradient(circle at 0 0, rgba(45, 212, 191, .16), transparent 52%), linear-gradient(180deg, rgba(10, 24, 35, .94) 0%, rgba(7, 24, 35, .98) 100%);
  border: 1px solid rgba(153, 246, 228, .55);
  color: rgba(244, 250, 255, .98);
}
.btn-ghost:hover{
  background: radial-gradient(circle at 0 0, rgba(45, 212, 191, .22), transparent 55%), linear-gradient(180deg, rgba(15, 34, 50, .98) 0%, rgba(10, 30, 46, 1) 100%);
  border-color: rgba(94, 234, 212, .85);
  filter: none;
}
.btn-ghost:active{
  background: radial-gradient(circle at 0 0, rgba(45, 212, 191, .18), transparent 55%), linear-gradient(180deg, rgba(7, 19, 30, .98) 0%, rgba(4, 17, 28, 1) 100%);
}

.badge{ border: 1px solid rgba(7, 26, 34, .10); background: rgba(255,255,255,.55); }

.container-max{ max-width: 1140px; }

/* Alerts */
.alert-success{
  border: 1px solid rgba(25, 195, 166, .32) !important;
  background: rgba(25, 195, 166, .12) !important;
  color: rgba(10,24,35,.92) !important;
}

/* Mobile preview button (fixed) */
.mobile-preview-btn{
  position: fixed;
  left: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 60;
  opacity: .92;
}
.mobile-preview-btn:hover{ opacity: 1; }

/* Price styling (cards) */
.price-line{
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}
.price-line .amount{
  font-weight: 800;
  letter-spacing: -0.01em;
  color: rgba(255, 107, 107, .95);
}
.price-line .unit{
  font-size: 12px;
  font-weight: 700;
  color: rgba(10, 24, 35, .58);
}

/* Card: keep meta row aligned across cards */
.card-title{
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  /* ensure same title block height even when title is 1 line */
  min-height: calc(2 * 1.35em);
}

/* Status pills */
.status-pill{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .02em;
  border: 1px solid rgba(10,24,35,.10);
}
.status-pill.pending{
  background: rgba(253, 231, 178, .60);
  color: rgba(10,24,35,.85);
}
.status-pill.approved{
  background: rgba(25, 195, 166, .16);
  color: rgba(10,24,35,.88);
}
.status-pill.denied{
  background: rgba(255, 107, 107, .14);
  color: rgba(10,24,35,.88);
}

/* Accessible focus */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible{
  outline: none;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, .28);
}

/* Simple skeleton */
.skeleton{
  background: linear-gradient(90deg, rgba(20,184,166,.08), rgba(7,26,34,.10), rgba(20,184,166,.08));
  background-size: 200% 100%;
  animation: shimmer 1.1s infinite linear;
}
@keyframes shimmer{ 0%{ background-position: 200% 0; } 100%{ background-position: -200% 0; } }

/* Small helpers */
.text-ink { color: rgba(7, 26, 34, .92); }
.text-ink-muted { color: rgba(7, 26, 34, .68); }


