/* ==========================================================
   REFONTE SAINTE-MARIE-LA-MER — Design tokens
   ========================================================== */

:root {
  /* Palette de base — pilotée par ambiance via data-ambiance sur <html> */
  --night-900: #0A2540;
  --night-800: #1B4F72;
  --night-700: #234567;
  --night-600: #2980b9;
  --night-400: #4A90E2;
  --sun:       #FFD93D;
  --sun-dark:  #FFA62B;
  --coral:     #FF7849;
  --coral-pink:#FF3D8E;
  --mint:      #10b981;
  --mint-dark: #16a34a;
  --cream-50:  #FFFCF3;
  --cream-100: #FFF8E7;
  --cream-200: #FEF3C7;
  --paper:     #F9F1DE;

  /* Tokens compositionnels — ce que les ambiances overrident */
  --bg-page:        var(--cream-50);
  --bg-header:      #FFF8E7;
  --bg-hero:        radial-gradient(ellipse at 30% 0%, #143b66 0%, #0a2540 65%);
  --bg-section-alt: #FFFCF3;
  --bg-section-dark:linear-gradient(135deg, #0a2540 0%, #1B4F72 100%);

  --fg-on-light:    #0A2540;
  --fg-on-dark:     #FFFFFF;
  --fg-muted-light: rgba(10,37,64,.62);
  --fg-muted-dark:  rgba(255,255,255,.72);

  --accent:         #FFD93D;   /* signature */
  --accent-deep:    #FFA62B;
  --accent-soft:    rgba(255,217,61,.18);
  --accent-text:    #FFD93D;

  --secondary:      #FF7849;
  --secondary-deep: #FF3D8E;

  --font-display:   'Fraunces', Georgia, serif;
  --font-body:      'DM Sans', system-ui, sans-serif;
  --font-hand:      'Caveat', cursive;

  --hero-h1-size:   clamp(48px, 7.5vw, 108px);
  --hero-padding-y: clamp(80px, 12vh, 140px);
  --section-py:     clamp(72px, 9vw, 128px);

  --radius-card:    24px;
  --radius-pill:    999px;

  --shadow-card:    0 12px 32px -8px rgba(10,37,64,.18), 0 2px 6px rgba(10,37,64,.06);
  --shadow-card-hi: 0 28px 60px -12px rgba(10,37,64,.28), 0 4px 10px rgba(10,37,64,.08);

  --card-bg:        rgba(255,255,255,.94);
  --card-border:    rgba(255,255,255,.5);
  --card-blur:      14px;
}

/* === Ambiance 1: Méditerranée (default, fidèle au mockup refonte) === */
html[data-ambiance="mediterranee"] {
  --bg-page:        #FFFCF3;
  --bg-header:      #FFF8E7;
  --bg-hero:        radial-gradient(ellipse at 30% 0%, #143b66 0%, #0a2540 70%);
  --accent:         #FFD93D;
  --accent-deep:    #FFA62B;
  --accent-soft:    rgba(255,217,61,.16);
  --accent-text:    #FFD93D;
  --secondary:      #FF7849;
}

/* === Ambiance 2: Soleil Couchant === */
html[data-ambiance="couchant"] {
  --bg-page:        #FFF6EE;
  --bg-header:      #FFE9D6;
  --bg-hero:        radial-gradient(ellipse at 80% 20%, #f5a96b 0%, #c84e2f 35%, #4a1d3f 100%);
  --accent:         #FF7849;
  --accent-deep:    #E94B2A;
  --accent-soft:    rgba(255,120,73,.16);
  --accent-text:    #FFB48A;
  --secondary:      #FFD93D;
  --fg-on-dark:     #FFF1E5;
}

/* === Ambiance 3: Nuit Étoilée === */
html[data-ambiance="nuit"] {
  --bg-page:        #0A1729;
  --bg-header:      #0F1F36;
  --bg-hero:        radial-gradient(ellipse at 50% -10%, #1a3a5c 0%, #061121 60%, #04080F 100%);
  --bg-section-alt: #0F1F36;
  --accent:         #6FE3C5;
  --accent-deep:    #10b981;
  --accent-soft:    rgba(111,227,197,.14);
  --accent-text:    #6FE3C5;
  --secondary:      #FFD93D;
  --fg-on-light:    #E8EEF7;
  --fg-muted-light: rgba(232,238,247,.65);
  --card-bg:        rgba(20,40,68,.62);
  --card-border:    rgba(111,227,197,.18);
}

/* === Ambiance 4: Carnet de voyage === */
html[data-ambiance="carnet"] {
  --bg-page:        #F3E9CF;
  --bg-header:      #ECDFBC;
  --bg-hero:        linear-gradient(155deg, #2c1810 0%, #4a2c1a 60%, #6b3a1e 100%);
  --bg-section-alt: #EAD9B0;
  --accent:         #C84E2F;
  --accent-deep:    #A03A1F;
  --accent-soft:    rgba(200,78,47,.14);
  --accent-text:    #F4C26B;
  --secondary:      #6B8E4E;
  --font-display:   'Fraunces', Georgia, serif;
}

/* === Typo direction tweak: "moderne" => sans-serif partout sauf hand === */
html[data-typo="moderne"] {
  --font-display:   'DM Sans', system-ui, sans-serif;
}

/* === Densité === */
html[data-density="compact"] {
  --hero-padding-y: clamp(56px, 8vh, 96px);
  --section-py:     clamp(56px, 7vw, 96px);
  --hero-h1-size:   clamp(40px, 6vw, 84px);
}

/* === LIVE cards style === */
html[data-cards="solid"] {
  --card-bg:        #FFFFFF;
  --card-border:    rgba(10,37,64,.08);
  --card-blur:      0px;
}
html[data-cards="minimal"] {
  --card-bg:        transparent;
  --card-border:    rgba(255,255,255,.22);
  --card-blur:      0px;
}

/* ----------------------------------------------------------
   Reset + base
   ---------------------------------------------------------- */
*,*::before,*::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  background: var(--bg-page);
  color: var(--fg-on-light);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
@media (min-width: 768px) { .container { padding: 0 40px; } }

.eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent-deep);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.5vw, 60px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.02em;
  margin: 8px 0 0;
  text-wrap: balance;
}
.section-title em {
  font-style: italic;
  color: var(--secondary);
  font-weight: 600;
}
.section-lead {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--fg-muted-light);
  max-width: 60ch;
  margin: 18px auto 0;
  text-wrap: pretty;
}

/* ----------------------------------------------------------
   Header
   ---------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg-header) 92%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(10,37,64,.06);
}
html[data-ambiance="nuit"] .site-header {
  border-bottom-color: rgba(255,255,255,.06);
}
.header-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 14px 0;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand-logo {
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  display: grid; place-items: center;
  color: var(--night-900); font-family: var(--font-display); font-weight: 900;
  box-shadow: 0 4px 14px rgba(0,0,0,.15), inset 0 -2px 4px rgba(0,0,0,.1);
  flex-shrink: 0;
}
.brand-logo svg { width: 26px; height: 26px; }
.brand-text { line-height: 1.15; }
.brand-eyebrow {
  font-size: 10px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase;
  color: var(--fg-muted-light);
}
.brand-name {
  font-family: var(--font-display); font-weight: 700; font-size: 18px;
  color: var(--fg-on-light);
}
.brand-tag {
  font-family: var(--font-display); font-style: italic; font-size: 13px;
  color: var(--fg-muted-light);
}

.nav { display: none; gap: 28px; align-items: center; }
@media (min-width: 1024px) { .nav { display: flex; } }
.nav a {
  font-weight: 600; font-size: 14px; color: var(--fg-on-light);
  position: relative; padding: 4px 2px; transition: color .2s;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .25s ease;
}
.nav a:hover { color: var(--accent-deep); }
.nav a:hover::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 12px; }
.tel-link {
  display: none; align-items: center; gap: 6px; font-weight: 600; font-size: 14px;
}
@media (min-width: 768px) { .tel-link { display: inline-flex; } }
.tel-link svg { width: 16px; height: 16px; color: var(--accent-deep); }

/* ----------------------------------------------------------
   Pills (boutons "candy")
   ---------------------------------------------------------- */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--radius-pill);
  font-weight: 600; font-size: 14px; line-height: 1;
  transition: transform .15s ease, box-shadow .15s ease, background .2s;
  white-space: nowrap; cursor: pointer; border: 0;
}
.pill svg { width: 16px; height: 16px; }
.pill-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #0A2540;
  box-shadow: 0 6px 0 var(--secondary), 0 12px 24px -8px rgba(255,166,43,.5);
}
.pill-primary:hover { transform: translateY(2px); box-shadow: 0 4px 0 var(--secondary), 0 8px 18px -8px rgba(255,166,43,.5); }
.pill-primary:active { transform: translateY(5px); box-shadow: 0 1px 0 var(--secondary); }
.pill-secondary {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-deep));
  color: #fff;
  box-shadow: 0 4px 16px -4px color-mix(in srgb, var(--secondary) 60%, transparent);
}
.pill-secondary:hover { transform: translateY(-2px); }
.pill-ghost {
  background: rgba(255,255,255,.08);
  color: var(--fg-on-dark);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(10px);
}
.pill-ghost:hover { background: rgba(255,255,255,.14); }
.pill-cream {
  background: var(--cream-100);
  color: var(--night-900);
  border: 1px solid rgba(10,37,64,.06);
  font-size: 13px; padding: 8px 14px;
}
html[data-ambiance="nuit"] .pill-cream {
  background: rgba(255,255,255,.06);
  color: var(--fg-on-light);
  border-color: rgba(255,255,255,.12);
}
html[data-ambiance="carnet"] .pill-cream {
  background: rgba(255,255,255,.7);
  color: #2c1810;
}

/* ----------------------------------------------------------
   Hero
   ---------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--bg-hero);
  color: var(--fg-on-dark);
  padding: var(--hero-padding-y) 0 calc(var(--hero-padding-y) - 24px);
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(900px 600px at 90% 110%, color-mix(in srgb, var(--accent) 22%, transparent) 0%, transparent 60%),
    radial-gradient(700px 500px at 10% 100%, color-mix(in srgb, var(--secondary) 14%, transparent) 0%, transparent 65%);
  pointer-events: none;
}
.hero::after {
  /* stars / grain texture */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .35;
  background-image:
    radial-gradient(1px 1px at 12% 22%, rgba(255,255,255,.4) 50%, transparent 51%),
    radial-gradient(1px 1px at 78% 14%, rgba(255,255,255,.3) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 45% 38%, rgba(255,255,255,.25) 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 62%, rgba(255,255,255,.3) 50%, transparent 51%),
    radial-gradient(1px 1px at 25% 78%, rgba(255,255,255,.22) 50%, transparent 51%),
    radial-gradient(2px 2px at 62% 88%, rgba(255,255,255,.18) 50%, transparent 51%);
  background-size: 100% 100%;
  pointer-events: none;
}

.hero-grid {
  display: grid; gap: 48px; align-items: start;
  grid-template-columns: 1fr;
}
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1.4fr 1fr; gap: 64px; }
}

.hero-eyebrow {
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(20px, 2.2vw, 28px);
  color: var(--accent-text);
  margin: 0;
}
.hero-title {
  font-family: var(--font-display);
  font-size: var(--hero-h1-size);
  font-weight: 700; line-height: .96; letter-spacing: -.025em;
  margin: 4px 0 0;
  text-wrap: balance;
}
.hero-title .accent { color: var(--accent); }
.hero-sub {
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(18px, 1.8vw, 24px);
  color: rgba(255,255,255,.86);
  margin: 28px 0 0;
}
.hero-status {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent);
}
.hero-status .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--mint); box-shadow: 0 0 0 0 var(--mint);
  animation: livePulse 1.8s infinite;
}

.hero-good-news {
  margin-top: 28px;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--accent) 22%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 60%, transparent);
  color: var(--fg-on-dark);
  font-size: 14px;
}
.hero-good-news strong { color: var(--accent); font-weight: 700; }
.hero-good-news svg { width: 16px; height: 16px; color: var(--accent); }

.hero-ctas {
  margin-top: 36px;
  display: flex; flex-wrap: wrap; gap: 12px;
}

/* Pills services (sous CTAs) */
.hero-pills {
  margin-top: 22px;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.hero-pills .pill-cream {
  animation: floatUp 4s ease-in-out infinite;
}
.hero-pills .pill-cream:nth-child(2) { animation-delay: .2s; }
.hero-pills .pill-cream:nth-child(3) { animation-delay: .4s; }
.hero-pills .pill-cream:nth-child(4) { animation-delay: .6s; }
.hero-pills .pill-cream:nth-child(5) { animation-delay: .8s; }
.hero-pills .pill-cream:nth-child(6) { animation-delay: 1.0s; }
.hero-pills .pill-cream:nth-child(7) { animation-delay: 1.2s; }
.hero-pills .pill-cream:nth-child(8) { animation-delay: 1.4s; }

/* Cards live */
.live-stack { display: grid; gap: 12px; }
.live-card {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px; border-radius: 20px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(var(--card-blur));
  -webkit-backdrop-filter: blur(var(--card-blur));
  color: var(--fg-on-light);
  box-shadow: var(--shadow-card);
  transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), box-shadow .3s;
}
html[data-ambiance="nuit"] .live-card { color: #E8EEF7; }
html[data-cards="minimal"] .live-card { color: var(--fg-on-dark); box-shadow: none; }
.live-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hi); }
.live-icon {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 28%, transparent);
  color: var(--accent-deep); flex-shrink: 0;
}
.live-icon svg { width: 22px; height: 22px; }
.live-meta { flex: 1; min-width: 0; }
.live-label {
  display: flex; align-items: center; gap: 8px;
  font-size: 10px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase;
  color: var(--fg-muted-light);
}
html[data-ambiance="nuit"] .live-label { color: rgba(232,238,247,.55); }
html[data-cards="minimal"] .live-label { color: rgba(255,255,255,.6); }
.live-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: var(--radius-pill);
  background: var(--mint); color: #fff;
  font-size: 9px; font-weight: 800; letter-spacing: .12em;
}
.live-badge::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff;
  animation: livePulse 1.8s infinite;
}
.live-value {
  font-family: var(--font-display); font-weight: 700; font-size: 18px;
  margin-top: 2px; color: inherit;
}
html[data-cards="minimal"] .live-value { color: #fff; }
.live-sub {
  font-size: 12px; color: var(--fg-muted-light); margin-top: 2px;
}
html[data-cards="minimal"] .live-sub { color: rgba(255,255,255,.62); }

/* Jauge */
.gauge-card {
  margin-top: 24px;
  padding: 18px 20px; border-radius: 20px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(var(--card-blur));
  color: var(--fg-on-light);
  box-shadow: var(--shadow-card);
  max-width: 520px;
}
html[data-cards="minimal"] .gauge-card { color: var(--fg-on-dark); box-shadow: none; }
html[data-ambiance="nuit"] .gauge-card { color: #E8EEF7; }
.gauge-head {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  margin-bottom: 14px;
}
.gauge-head-l { display: flex; align-items: center; gap: 10px; }
.gauge-head-r { color: var(--fg-muted-light); font-weight: 500; letter-spacing: .04em; text-transform: none; }
html[data-cards="minimal"] .gauge-head-r { color: rgba(255,255,255,.6); }

.gauge-track-wrap { position: relative; padding-top: 30px; }
.gauge-track {
  height: 14px; border-radius: var(--radius-pill); overflow: hidden;
  background: linear-gradient(90deg,
    #16a34a 0%, #4ade80 22%, #FFD93D 50%, #FFA62B 75%, #ef4444 100%);
  box-shadow: inset 0 1px 3px rgba(0,0,0,.25);
}
.gauge-marker {
  position: absolute; top: 24px;
  transform: translateX(-50%);
  transition: left .8s cubic-bezier(.34, 1.56, .64, 1);
}
.gauge-marker-dot {
  width: 26px; height: 26px; border-radius: 50%;
  background: #fff;
  border: 3px solid var(--mint-dark);
  box-shadow: 0 4px 10px rgba(0,0,0,.3);
  margin: 0 auto;
}
.gauge-bubble {
  position: absolute; left: 50%; bottom: 32px; transform: translateX(-50%);
  background: var(--mint-dark); color: #fff;
  padding: 4px 10px; border-radius: var(--radius-pill);
  font-size: 11px; font-weight: 700; white-space: nowrap;
}
.gauge-bubble::after {
  content: ""; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  border: 5px solid transparent; border-top-color: var(--mint-dark);
}
.gauge-legend {
  display: flex; justify-content: space-between;
  margin-top: 10px;
  font-size: 11px; color: var(--fg-muted-light);
}
html[data-cards="minimal"] .gauge-legend { color: rgba(255,255,255,.6); }

/* Hero scroll cue */
.hero-cue {
  position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%);
  display: none; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255,255,255,.55);
  font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  transition: color .2s;
}
.hero-cue:hover { color: var(--accent); }
.hero-cue::after {
  content: ""; width: 10px; height: 10px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); animation: cueBounce 1.8s infinite;
}
@media (min-width: 1024px) { .hero-cue { display: flex; } }

/* ----------------------------------------------------------
   Generic section + cards
   ---------------------------------------------------------- */
section {
  padding: var(--section-py) 0;
}
.section-head { text-align: center; margin-bottom: 56px; }

.card {
  background: var(--bg-section-alt);
  border-radius: var(--radius-card);
  padding: 28px;
  box-shadow: var(--shadow-card);
  transition: transform .35s cubic-bezier(.34, 1.56, .64, 1), box-shadow .35s;
  position: relative;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card-hi); }
html[data-ambiance="nuit"] .card { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); }
html[data-ambiance="carnet"] .card { background: #FCF5E2; border: 1px solid rgba(44,24,16,.08); transform: rotate(-.4deg); }
html[data-ambiance="carnet"] .card:nth-child(2n) { transform: rotate(.5deg); }
html[data-ambiance="carnet"] .card:hover { transform: rotate(0) translateY(-6px); }

.card-icon {
  width: 56px; height: 56px; border-radius: 16px;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-deep);
  margin-bottom: 18px;
}
.card-icon svg { width: 26px; height: 26px; }

/* Section: Super pouvoir */
.section-superpower {
  background: var(--bg-section-alt);
  position: relative;
}
html[data-ambiance="mediterranee"] .section-superpower { background: linear-gradient(180deg, #FFFCF3 0%, #FFF1D8 100%); }
html[data-ambiance="couchant"] .section-superpower    { background: linear-gradient(180deg, #FFF6EE 0%, #FFE9D6 100%); }
html[data-ambiance="nuit"] .section-superpower        { background: #0F1F36; }
html[data-ambiance="carnet"] .section-superpower      { background: #EAD9B0; }

.stat-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 768px) { .stat-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-card { text-align: center; padding: 32px 20px; }
.stat-value {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1;
  background: linear-gradient(135deg, var(--accent-deep), var(--secondary));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  letter-spacing: -.02em;
}
.stat-label {
  font-size: 13px; margin-top: 10px; color: var(--fg-muted-light);
  text-transform: uppercase; letter-spacing: .12em; font-weight: 600;
}

/* Tarifs */
.tarif-grid {
  display: grid; gap: 18px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .tarif-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .tarif-grid { grid-template-columns: repeat(4, 1fr); } }
.tarif-card { padding: 30px 26px; }
.tarif-card.featured {
  border: 2px solid var(--secondary);
  transform: scale(1.04);
  box-shadow: 0 24px 60px -16px color-mix(in srgb, var(--secondary) 40%, transparent);
}
html[data-ambiance="carnet"] .tarif-card.featured { transform: rotate(0) scale(1.04); }
.tarif-badge {
  position: absolute; top: -12px; right: 18px;
  padding: 6px 14px; border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: var(--night-900); font-size: 11px; font-weight: 800;
  transform: rotate(-8deg);
  box-shadow: 0 6px 16px -4px color-mix(in srgb, var(--accent) 50%, transparent);
}
.tarif-cat {
  font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--fg-muted-light);
}
.tarif-card.featured .tarif-cat { color: var(--secondary); }
.tarif-price {
  font-family: var(--font-display); font-weight: 900;
  font-size: 52px; line-height: 1; margin-top: 8px;
  color: var(--fg-on-light);
}
html[data-ambiance="nuit"] .tarif-price { color: #E8EEF7; }
.tarif-price small { font-size: 24px; font-weight: 700; }
.tarif-desc {
  margin-top: 12px; font-size: 14px; color: var(--fg-muted-light); line-height: 1.5;
}

/* Vélo cards */
.bike-grid {
  display: grid; gap: 18px; grid-template-columns: 1fr;
}
@media (min-width: 768px) { .bike-grid { grid-template-columns: repeat(3, 1fr); } }
.bike-card { padding: 0; overflow: hidden; }
.bike-card-stripe { height: 6px; background: var(--accent); }
.bike-card:nth-child(2) .bike-card-stripe { background: var(--night-600); }
.bike-card:nth-child(3) .bike-card-stripe { background: var(--secondary); }
.bike-card-body { padding: 24px 26px 28px; }
.bike-card-tag {
  font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-deep);
  display: inline-flex; align-items: center; gap: 6px;
}
.bike-card:nth-child(2) .bike-card-tag { color: var(--night-600); }
.bike-card:nth-child(3) .bike-card-tag { color: var(--secondary); }
.bike-card h3 {
  font-family: var(--font-display); font-weight: 700; font-size: 24px;
  margin: 10px 0 0; color: var(--fg-on-light);
}
html[data-ambiance="nuit"] .bike-card h3 { color: #E8EEF7; }
.bike-card p { font-size: 14px; color: var(--fg-muted-light); margin: 10px 0 0; }

/* Simulateur */
.sim-grid {
  display: grid; gap: 36px; grid-template-columns: 1fr; align-items: center;
}
@media (min-width: 1024px) { .sim-grid { grid-template-columns: 1fr 1fr; gap: 64px; } }
.sim-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.sim-list li { display: flex; gap: 12px; font-size: 15px; align-items: flex-start; line-height: 1.45; }
.sim-list li::before {
  content: ""; width: 22px; height: 22px; border-radius: 50%;
  background: var(--secondary); flex-shrink: 0; margin-top: 2px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-size: 14px; background-position: center; background-repeat: no-repeat;
}
.sim-list li strong { color: var(--fg-on-light); }

.sim-panel { padding: 32px; }
.sim-row { margin-top: 22px; }
.sim-row-head {
  display: flex; justify-content: space-between; font-size: 14px; font-weight: 600;
}
.sim-row-head .v { color: var(--accent-deep); font-weight: 700; }
.sim-row input[type="range"] {
  width: 100%; margin-top: 10px;
  -webkit-appearance: none; appearance: none; background: transparent;
  cursor: pointer;
}
.sim-row input[type="range"]::-webkit-slider-runnable-track {
  height: 6px; border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--secondary));
}
.sim-row input[type="range"]::-moz-range-track {
  height: 6px; border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--secondary));
}
.sim-row input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px; border-radius: 50%;
  background: #fff; border: 3px solid var(--secondary);
  margin-top: -8px; box-shadow: 0 2px 6px rgba(0,0,0,.2);
}
.sim-row input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%;
  background: #fff; border: 3px solid var(--secondary);
  box-shadow: 0 2px 6px rgba(0,0,0,.2);
}
.sim-total {
  margin-top: 28px;
  background: var(--bg-section-dark); color: #fff;
  padding: 22px 24px; border-radius: 18px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
}
.sim-total-eyebrow { font-size: 10px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.sim-total-value { font-family: var(--font-display); font-weight: 900; font-size: 36px; margin-top: 6px; color: var(--accent); }
.sim-total-sub { font-size: 12px; color: rgba(255,255,255,.6); margin-top: 4px; }

/* Engagement */
.engagement-feature {
  background: var(--bg-section-alt);
  border-radius: var(--radius-card);
  padding: 36px;
  display: grid; gap: 32px; align-items: center;
  grid-template-columns: 1fr;
  box-shadow: var(--shadow-card);
}
@media (min-width: 768px) { .engagement-feature { grid-template-columns: 1fr 1fr; padding: 48px; } }
html[data-ambiance="nuit"] .engagement-feature { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); }
html[data-ambiance="carnet"] .engagement-feature { background: #FCF5E2; }
.engagement-feature ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.engagement-feature li { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--fg-on-light); }
html[data-ambiance="nuit"] .engagement-feature li { color: #E8EEF7; }
.engagement-feature li svg { width: 18px; height: 18px; color: var(--secondary); flex-shrink: 0; }
.engagement-feature h3 {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(24px, 2.5vw, 32px);
  margin: 8px 0 0; line-height: 1.1; letter-spacing: -.01em;
  color: var(--fg-on-light);
}
html[data-ambiance="nuit"] .engagement-feature h3 { color: #E8EEF7; }
.placeholder-img {
  border-radius: 18px; aspect-ratio: 4/3;
  background:
    repeating-linear-gradient(135deg, rgba(0,0,0,.04) 0 12px, transparent 12px 24px),
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 20%, var(--bg-page)), color-mix(in srgb, var(--secondary) 16%, var(--bg-page)));
  display: grid; place-items: center;
  font-family: ui-monospace, Menlo, monospace; font-size: 13px; color: var(--fg-muted-light);
  text-align: center; padding: 20px;
}

.engagement-grid {
  margin-top: 24px;
  display: grid; gap: 16px; grid-template-columns: 1fr;
}
@media (min-width: 640px) { .engagement-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .engagement-grid { grid-template-columns: repeat(4, 1fr); } }
.engagement-grid .card { padding: 22px; }
.engagement-grid h3 {
  font-family: var(--font-display); font-weight: 700; font-size: 18px;
  margin: 16px 0 6px; color: var(--fg-on-light);
}
html[data-ambiance="nuit"] .engagement-grid h3 { color: #E8EEF7; }
.engagement-grid p { font-size: 13px; color: var(--fg-muted-light); margin: 0; }

/* Avis / Champion */
.section-avis { background: var(--bg-section-alt); }
html[data-ambiance="mediterranee"] .section-avis { background: linear-gradient(135deg, #fefce8 0%, #fef3c7 50%, #fde68a 100%); }
html[data-ambiance="couchant"] .section-avis    { background: linear-gradient(135deg, #FFE9D6 0%, #ffcfa9 100%); }
html[data-ambiance="nuit"] .section-avis        { background: #0F1F36; }
html[data-ambiance="carnet"] .section-avis      { background: #EAD9B0; }

.avis-badges {
  margin: 36px 0 0; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
}
.avis-cta {
  margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
}

/* Bouteille à la mer */
.section-bottle {
  background:
    radial-gradient(ellipse at 20% 30%, rgba(125,211,252,.4) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, color-mix(in srgb, var(--accent) 25%, transparent) 0%, transparent 55%),
    radial-gradient(ellipse at 50% 100%, rgba(14,165,233,.25) 0%, transparent 60%),
    var(--bg-page);
  text-align: center;
}
.bottle-eyebrow {
  font-family: var(--font-hand); font-size: 32px; color: var(--secondary); margin: 0;
}
.bottle-title {
  font-family: var(--font-hand);
  font-size: clamp(40px, 6vw, 72px); line-height: 1;
  margin: 4px 0 0; color: var(--fg-on-light);
}
.bottle-lead { color: var(--fg-muted-light); max-width: 50ch; margin: 18px auto 0; font-size: 17px; }
.bottle-form {
  margin: 30px auto 0; max-width: 540px;
  display: grid; gap: 10px; grid-template-columns: 1fr;
}
@media (min-width: 540px) { .bottle-form { grid-template-columns: 1fr auto; } }
.bottle-form input {
  padding: 14px 22px; border-radius: var(--radius-pill);
  border: 2px solid rgba(10,37,64,.1); font: inherit; font-size: 14px;
  background: #fff; color: var(--night-900);
  transition: border-color .2s;
}
html[data-ambiance="nuit"] .bottle-form input { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.15); color: #E8EEF7; }
.bottle-form input:focus { border-color: var(--secondary); outline: none; }
.bottle-icon { display: inline-block; animation: sway 6s ease-in-out infinite; color: var(--secondary); }

/* Photos */
.photo-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px;
}
@media (min-width: 768px) { .photo-grid { grid-template-columns: repeat(4, 1fr); } }
.photo {
  border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-card);
  background:
    repeating-linear-gradient(135deg, rgba(0,0,0,.04) 0 14px, transparent 14px 28px),
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 30%, var(--bg-page)), color-mix(in srgb, var(--secondary) 20%, var(--bg-page)));
  display: grid; place-items: center;
  font-family: ui-monospace, Menlo, monospace; font-size: 12px; color: var(--fg-muted-light);
  transition: transform .35s cubic-bezier(.34, 1.56, .64, 1);
  text-align: center; padding: 14px;
}
.photo.feat { grid-column: span 2; grid-row: span 2; font-size: 14px; }
html[data-ambiance="carnet"] .photo { transform: rotate(-1.5deg); }
html[data-ambiance="carnet"] .photo:nth-child(2n) { transform: rotate(1.5deg); }
.photo:hover { transform: rotate(0) scale(1.04); }

/* Vidéos */
.section-videos {
  background: var(--bg-section-dark); color: #fff;
}
.video-grid {
  display: grid; gap: 16px; grid-template-columns: 1fr;
}
@media (min-width: 1024px) { .video-grid { grid-template-columns: 1.5fr 1fr; } }
.video-feat {
  border-radius: var(--radius-card); overflow: hidden; position: relative;
  background:
    linear-gradient(180deg, rgba(10,37,64,.35), rgba(10,37,64,.75)),
    repeating-linear-gradient(45deg, rgba(255,255,255,.06) 0 18px, transparent 18px 36px),
    linear-gradient(135deg, #1B4F72, #0A2540);
  min-height: 360px;
  cursor: pointer;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 28px;
  transition: transform .35s ease;
}
.video-feat:hover { transform: translateY(-4px); }
.video-feat .play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 84px; height: 84px; border-radius: 50%;
  background: var(--secondary); display: grid; place-items: center;
  box-shadow: 0 12px 40px rgba(0,0,0,.4);
  transition: transform .25s;
}
.video-feat:hover .play { transform: translate(-50%, -50%) scale(1.08); }
.video-feat .play svg { width: 32px; height: 32px; color: #fff; margin-left: 4px; }
.video-feat-eyebrow {
  font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent); position: relative;
}
.video-feat h3 { font-family: var(--font-display); font-weight: 700; font-size: 24px; margin: 6px 0 0; position: relative; }
.video-thumbs { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
.video-thumb {
  aspect-ratio: 16/9; border-radius: 16px; position: relative; overflow: hidden;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 12px, transparent 12px 24px),
    linear-gradient(135deg, #234567, #1B4F72);
  cursor: pointer; transition: transform .25s;
}
.video-thumb:hover { transform: translateY(-3px); }
.video-thumb::after {
  content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--secondary);
  box-shadow: 0 8px 24px rgba(0,0,0,.3);
}
.video-thumb::before {
  content: ""; position: absolute; top: 50%; left: calc(50% + 2px); transform: translate(-50%, -50%);
  width: 0; height: 0; z-index: 2;
  border-left: 12px solid #fff;
  border-top: 8px solid transparent; border-bottom: 8px solid transparent;
}

/* Articles */
.article-grid {
  display: grid; gap: 18px; grid-template-columns: 1fr;
}
@media (min-width: 640px) { .article-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .article-grid { grid-template-columns: repeat(3, 1fr); } }
.article-card .card-icon { background: linear-gradient(135deg, var(--accent), var(--accent-deep)); color: #fff; }
.article-card:nth-child(2) .card-icon { background: linear-gradient(135deg, var(--secondary), var(--secondary-deep)); }
.article-card:nth-child(3) .card-icon { background: linear-gradient(135deg, #4A90E2, #1B4F72); color: #fff; }
.article-card:nth-child(4) .card-icon { background: linear-gradient(135deg, #4ade80, #16a34a); color: #fff; }
.article-card:nth-child(5) .card-icon { background: linear-gradient(135deg, #f472b6, var(--secondary)); color: #fff; }
.article-card:nth-child(6) .card-icon { background: linear-gradient(135deg, var(--night-600), var(--night-900)); color: var(--accent); }
.article-card h3 {
  font-family: var(--font-display); font-weight: 700; font-size: 20px;
  margin: 4px 0 8px; color: var(--fg-on-light); line-height: 1.2;
}
html[data-ambiance="nuit"] .article-card h3 { color: #E8EEF7; }
.article-card p { font-size: 14px; color: var(--fg-muted-light); margin: 0 0 16px; }
.article-link {
  color: var(--accent-deep); font-weight: 700; font-size: 14px;
  display: inline-flex; align-items: center; gap: 4px;
}
.article-link svg { width: 14px; height: 14px; transition: transform .2s; }
.article-card:hover .article-link svg { transform: translateX(3px); }

/* Ressources mega-menu */
.resources-grid {
  display: grid; gap: 18px; grid-template-columns: 1fr;
}
@media (min-width: 640px) { .resources-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .resources-grid { grid-template-columns: repeat(4, 1fr); } }
.resource-col {
  border-top: 4px solid var(--secondary);
}
.resource-col:nth-child(2) { border-top-color: var(--night-600); }
.resource-col:nth-child(3) { border-top-color: var(--accent-deep); }
.resource-col:nth-child(4) { border-top-color: var(--mint-dark); }
.resource-col h3 { font-family: var(--font-display); font-weight: 700; font-size: 18px; margin: 0 0 14px; color: var(--fg-on-light); }
html[data-ambiance="nuit"] .resource-col h3 { color: #E8EEF7; }
.resource-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.resource-col a { font-size: 14px; color: var(--fg-muted-light); transition: color .2s; }
.resource-col a:hover { color: var(--secondary); }

/* FAQ */
.faq-list { display: grid; gap: 12px; max-width: 760px; margin: 0 auto; }
.faq-item {
  background: var(--bg-section-alt);
  border-radius: 18px; padding: 22px 24px;
  box-shadow: var(--shadow-card);
  transition: box-shadow .2s;
}
html[data-ambiance="nuit"] .faq-item { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); }
html[data-ambiance="carnet"] .faq-item { background: #FCF5E2; }
.faq-item[open] { box-shadow: var(--shadow-card-hi); }
.faq-item summary {
  list-style: none; cursor: pointer;
  font-family: var(--font-display); font-weight: 700; font-size: 18px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  color: var(--fg-on-light);
}
html[data-ambiance="nuit"] .faq-item summary { color: #E8EEF7; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-deep);
  display: grid; place-items: center;
  font-weight: 600; font-size: 22px; line-height: 1;
  flex-shrink: 0;
  transition: transform .3s ease, background .2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); background: var(--secondary); color: #fff; }
.faq-item p { margin: 12px 0 0; font-size: 15px; color: var(--fg-muted-light); line-height: 1.6; }

/* Final CTA */
.section-final {
  padding: 60px 24px;
  background: var(--bg-page);
}
.final-card {
  max-width: 1160px; margin: 0 auto;
  border-radius: 32px; padding: 56px 32px;
  background: var(--bg-section-dark);
  color: #fff; text-align: center;
  position: relative; overflow: hidden;
}
.final-card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 0%, color-mix(in srgb, var(--accent) 45%, transparent) 0%, transparent 50%);
  pointer-events: none;
}
.final-card .eyebrow {
  font-family: var(--font-display); font-style: italic; font-size: 18px;
  color: var(--accent); letter-spacing: 0; text-transform: none;
  font-weight: 400;
}
.final-card h2 {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(32px, 4vw, 56px);
  line-height: 1.05; margin: 8px 0 0; letter-spacing: -.02em;
}
.final-card h2 .accent { color: var(--accent); }
.final-card p { margin: 20px auto 0; max-width: 52ch; color: rgba(255,255,255,.85); }
.final-card .pill-stack { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ----------------------------------------------------------
   Footer
   ---------------------------------------------------------- */
.site-footer {
  background: var(--bg-section-dark);
  color: rgba(255,255,255,.78);
  padding: 56px 0 24px;
}
.footer-top {
  display: flex; flex-direction: column; gap: 24px;
  align-items: flex-start;
  padding-bottom: 36px;
}
@media (min-width: 768px) { .footer-top { flex-direction: row; align-items: center; gap: 32px; } }
.footer-brand-meta { line-height: 1.3; }
.footer-brand-meta .brand-eyebrow { color: rgba(255,255,255,.55); }
.footer-brand-meta .brand-name { color: #fff; font-size: 22px; }
.footer-brand-meta .brand-tag { color: var(--accent); font-family: var(--font-hand); font-size: 22px; }

.footer-cols {
  display: grid; gap: 28px; grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 768px) { .footer-cols { grid-template-columns: repeat(4, 1fr); } }
.footer-col h4 {
  font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 14px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-col a { font-size: 14px; color: rgba(255,255,255,.7); transition: color .2s; }
.footer-col a:hover { color: var(--accent); }

.footer-newsletter {
  margin-top: 36px;
  background: rgba(255,255,255,.07);
  border-radius: 20px;
  padding: 24px;
  display: flex; flex-direction: column; gap: 16px;
  align-items: stretch;
}
@media (min-width: 768px) { .footer-newsletter { flex-direction: row; align-items: center; gap: 24px; } }
.footer-newsletter-meta { flex: 1; }
.footer-newsletter-title { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: #fff; }
.footer-newsletter-sub { font-size: 14px; color: rgba(255,255,255,.7); margin-top: 2px; }
.footer-newsletter form { display: flex; gap: 8px; }
.footer-newsletter input {
  flex: 1; padding: 12px 18px; border-radius: var(--radius-pill);
  border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.95);
  color: var(--night-900); font: inherit; font-size: 14px;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08); margin-top: 36px; padding-top: 24px;
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between;
  font-size: 12px; color: rgba(255,255,255,.5);
}
.footer-bottom a:hover { color: var(--accent); }

/* ----------------------------------------------------------
   FAB stack
   ---------------------------------------------------------- */
.fab-stack {
  position: fixed; right: 16px; bottom: 16px; z-index: 60;
  display: flex; flex-direction: column; gap: 10px; align-items: flex-end;
}
.fab {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  transition: transform .2s, box-shadow .2s;
  position: relative;
}
.fab:hover { transform: scale(1.05); }
.fab svg { width: 22px; height: 22px; }
.fab-question {
  width: auto; padding: 14px 18px; border-radius: var(--radius-pill);
  font-weight: 600; font-size: 13px;
  gap: 8px; display: inline-flex; align-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: var(--night-900);
}
.fab-maps { background: linear-gradient(135deg, #34d399, var(--mint-dark)); }
.fab-tel  { background: linear-gradient(135deg, var(--secondary), var(--secondary-deep)); }
.fab-tel::before {
  content: ""; position: absolute; inset: -8px; border-radius: 50%;
  border: 2px solid var(--secondary); opacity: 0;
  animation: fabPulse 2.2s infinite;
}
.fab-listen {
  background: linear-gradient(135deg, #4A90E2, var(--night-700));
  width: auto; padding: 12px 16px; border-radius: var(--radius-pill);
  gap: 8px; font-weight: 600; font-size: 12px;
}
.fab-listen.playing { background: linear-gradient(135deg, var(--mint), var(--mint-dark)); }
.fab-listen .wave {
  display: inline-flex; gap: 2px; align-items: flex-end; height: 14px;
}
.fab-listen .wave span {
  width: 2px; background: #fff; border-radius: 1px;
  height: 4px; opacity: .85;
}
.fab-listen.playing .wave span {
  animation: waveBar 1s ease-in-out infinite;
}
.fab-listen.playing .wave span:nth-child(1) { animation-delay: 0s; }
.fab-listen.playing .wave span:nth-child(2) { animation-delay: .15s; }
.fab-listen.playing .wave span:nth-child(3) { animation-delay: .3s; }
.fab-listen.playing .wave span:nth-child(4) { animation-delay: .45s; }

/* ----------------------------------------------------------
   Tweaks panel
   ---------------------------------------------------------- */
.tweaks-panel {
  position: fixed; right: 16px; bottom: 16px; z-index: 70;
  width: 320px; max-width: calc(100vw - 32px);
  background: #FFFFFF; color: #0A2540;
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0,0,0,.3), 0 4px 16px rgba(0,0,0,.1);
  padding: 18px;
  display: none;
  max-height: calc(100vh - 32px); overflow-y: auto;
}
.tweaks-panel.open { display: block; }
.tweaks-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 14px;
}
.tweaks-header h3 {
  font-family: var(--font-display); font-weight: 700; font-size: 17px; margin: 0;
}
.tweaks-close { width: 28px; height: 28px; border-radius: 50%; background: #f1f4f9; display: grid; place-items: center; }
.tweaks-close:hover { background: #e2e8f0; }
.tweaks-section { margin-top: 16px; }
.tweaks-section-title {
  font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: #64748b; margin: 0 0 8px;
}
.tweak-options { display: flex; flex-wrap: wrap; gap: 6px; }
.tweak-opt {
  padding: 7px 12px; border-radius: 999px;
  background: #f1f4f9; color: #475569;
  font-size: 12px; font-weight: 600;
  border: 1px solid transparent;
  transition: all .15s;
}
.tweak-opt:hover { background: #e2e8f0; }
.tweak-opt.active {
  background: linear-gradient(135deg, #FFD93D, #FFA62B);
  color: #0A2540; border-color: #FF7849;
}
.tweak-swatch {
  width: 28px; height: 28px; border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer; transition: transform .15s;
}
.tweak-swatch:hover { transform: scale(1.08); }
.tweak-swatch.active { border-color: #0A2540; }
.tweak-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tweak-row + .tweak-row { margin-top: 8px; }
.tweak-row label { font-size: 13px; font-weight: 600; color: #334155; }

.toggle {
  position: relative; display: inline-block;
  width: 38px; height: 22px; flex-shrink: 0;
}
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle .slider {
  position: absolute; inset: 0; cursor: pointer;
  background: #e2e8f0; border-radius: 999px; transition: .2s;
}
.toggle .slider::before {
  content: ""; position: absolute; left: 2px; top: 2px;
  width: 18px; height: 18px; border-radius: 50%;
  background: #fff; transition: .2s;
  box-shadow: 0 2px 4px rgba(0,0,0,.2);
}
.toggle input:checked + .slider { background: linear-gradient(135deg, #FFD93D, #FFA62B); }
.toggle input:checked + .slider::before { transform: translateX(16px); }

/* Tweaks toggle FAB */
.tweaks-toggle-fab {
  position: fixed; right: 16px; top: 88px; z-index: 70;
  width: 44px; height: 44px; border-radius: 50%;
  background: #fff; color: #0A2540;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  display: grid; place-items: center;
}
.tweaks-toggle-fab svg { width: 18px; height: 18px; }

/* ----------------------------------------------------------
   Animations
   ---------------------------------------------------------- */
@keyframes livePulse {
  0%   { box-shadow: 0 0 0 0 currentColor; opacity: 1; }
  50%  { box-shadow: 0 0 0 6px transparent; opacity: .8; }
  100% { box-shadow: 0 0 0 0 transparent; opacity: 1; }
}
@keyframes floatUp {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-3px); }
}
@keyframes fabPulse {
  0%   { opacity: .8; transform: scale(.9); }
  100% { opacity: 0; transform: scale(1.5); }
}
@keyframes sway {
  0%, 100% { transform: rotate(-6deg); }
  50%      { transform: rotate(6deg); }
}
@keyframes cueBounce {
  0%, 100% { transform: rotate(45deg) translate(0, 0); }
  50%      { transform: rotate(45deg) translate(2px, 2px); }
}
@keyframes waveBar {
  0%, 100% { height: 4px; }
  50%      { height: 12px; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Entry animations disabled in this environment — content always visible.
   Decorative infinite animations (livePulse, floatUp, sway, fabPulse, waveBar) unaffected. */
[data-anim] { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
  [data-anim] { opacity: 1; }
}
