/* ===========================================================
   Résonée — Design system
   =========================================================== */

:root {
  --violet-deep: #5e3486;
  --violet: #8a5cb8;
  --violet-mid: #a97fd1;
  --lavande: #c6a3e8;
  --lavande-light: #e5d3f5;
  --bg-pale: #faf6fd;
  --bg-white: #ffffff;
  --ink: #2b1f3d;
  --ink-soft: #5a4d6e;
  --gold: #d9b98a;

  --gradient-brand: linear-gradient(120deg, var(--violet-deep) 0%, var(--violet-mid) 55%, var(--lavande) 100%);
  --gradient-soft: linear-gradient(160deg, var(--lavande-light) 0%, var(--bg-pale) 60%);

  --font-display: "Playfair Display", "Georgia", serif;
  --font-body: "Jost", "Segoe UI", sans-serif;

  --radius: 18px;
  --shadow-soft: 0 20px 50px -20px rgba(94, 52, 134, 0.35);
  --shadow-card: 0 10px 30px -12px rgba(94, 52, 134, 0.25);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg-pale);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

/* ---------- Ambient background ----------
   A soft, fixed field of blurred color washes sitting behind the whole
   page, so sections can stay transparent and blend into one another
   instead of stacking as visibly separate flat-colored blocks. */
.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  transform: translateZ(0);
}
.ambient-bg span {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
}
.ambient-bg span:nth-child(1) {
  width: 42vw; height: 42vw; min-width: 340px; min-height: 340px;
  background: var(--lavande);
  top: -12%; left: -12%;
  opacity: 0.5;
}
.ambient-bg span:nth-child(2) {
  width: 34vw; height: 34vw; min-width: 300px; min-height: 300px;
  background: var(--violet-mid);
  top: 30%; right: -10%;
  opacity: 0.35;
}
.ambient-bg span:nth-child(3) {
  width: 38vw; height: 38vw; min-width: 320px; min-height: 320px;
  background: var(--violet);
  bottom: -14%; left: 12%;
  opacity: 0.28;
}
.ambient-bg span:nth-child(4) {
  width: 22vw; height: 22vw; min-width: 200px; min-height: 200px;
  background: var(--gold);
  top: 62%; right: 22%;
  opacity: 0.14;
}

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--violet-deep);
  margin: 0 0 0.5em;
  line-height: 1.15;
  font-weight: 600;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }

p { margin: 0 0 1em; color: var(--ink-soft); }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--violet);
  margin-bottom: 0.9em;
}

.section {
  padding: 96px 0;
}

.section--tight { padding: 64px 0; }

.section--soft {
  background: transparent;
}

.section--brand {
  background: var(--gradient-brand);
  color: #fff;
}
.section--brand h2, .section--brand h3 { color: #fff; }
.section--brand p { color: rgba(255,255,255,0.88); }

.center { text-align: center; }

.lede {
  font-size: 1.15rem;
  max-width: 640px;
}
.center .lede { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: var(--violet-deep);
  color: #fff;
  box-shadow: var(--shadow-card);
}
.btn--primary:hover { background: var(--violet); box-shadow: var(--shadow-soft); }

.btn--outline {
  background: transparent;
  border-color: var(--violet);
  color: var(--violet-deep);
}
.btn--outline:hover { background: var(--lavande-light); }

.btn--light {
  background: #fff;
  color: var(--violet-deep);
}
.btn--light:hover { background: var(--lavande-light); }

.btn-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.center .btn-row { justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 253, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(94, 52, 134, 0.08);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand img { height: 40px; width: auto; }

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding: 6px 0;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--gradient-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }

.nav a.nav-diner-ose {
  margin-left: 10px;
  padding: 6px 16px;
  border: 1.5px solid #c9963f;
  border-radius: 999px;
  color: #8a6a2f;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.nav a.nav-diner-ose::after { display: none; }
.nav a.nav-diner-ose:hover,
.nav a.nav-diner-ose.active {
  background: #8a6a2f;
  border-color: #8a6a2f;
  color: #fff;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--violet-deep);
  margin: 5px 0;
  transition: 0.25s;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 90px 0 100px;
  background: transparent;
}

.hero .container { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-logo { width: min(420px, 100%); margin-bottom: 24px; }

.hero-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; }

/* ---------- Editorial hero ---------- */
.hero-grid--editorial { grid-template-columns: 1.25fr 0.75fr; }

.hero-media--editorial { position: relative; }

.hero-chip {
  position: absolute;
  bottom: -28px;
  left: -32px;
  width: 130px;
  aspect-ratio: 1/1;
  border-radius: 14px;
  overflow: hidden;
  border: 5px solid #fff;
  box-shadow: var(--shadow-soft);
  transform: rotate(-7deg);
}
.hero-chip img { width: 100%; height: 100%; object-fit: cover; }

.scroll-cue {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: fit-content;
  margin: 56px auto 0;
  color: var(--violet-deep);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
  animation: scroll-cue-bounce 2s ease-in-out infinite;
}
@keyframes scroll-cue-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal--visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue { animation: none; }
}

/* ---------- Zigzag events ---------- */
.zigzag { display: flex; flex-direction: column; gap: 80px; }

.zigzag-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.zigzag-row--reverse .zigzag-media { order: 2; }
.zigzag-row--reverse .zigzag-body { order: 1; }

.zigzag-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  aspect-ratio: 4/3;
}
.zigzag-media img { width: 100%; height: 100%; object-fit: cover; }

.zigzag-body h3 { margin-bottom: 10px; }

@media (max-width: 800px) {
  .zigzag-row, .zigzag-row--reverse { grid-template-columns: 1fr; }
  .zigzag-row--reverse .zigzag-media, .zigzag-row--reverse .zigzag-body { order: initial; }
  .hero-grid--editorial { grid-template-columns: 1fr; }
  .hero-chip { display: none; }
}

/* ---------- Photo mosaic ---------- */
.mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 160px;
  gap: 14px;
}
.mosaic-item {
  border-radius: 14px;
  overflow: hidden;
  grid-row: span 1;
}
.mosaic-item--tall { grid-row: span 2; }
.mosaic-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.mosaic-item:hover img { transform: scale(1.06); }

@media (max-width: 700px) {
  .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 130px; }
}

/* ---------- Mood cards ---------- */
.mood-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.mood-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 32px 28px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-top: 4px solid var(--violet);
}
.mood-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-soft); }
.mood-card--gold { border-top-color: #c9963f; }

.mood-card__eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--violet);
  font-weight: 600;
}
.mood-card--gold .mood-card__eyebrow { color: #b8925a; }

.mood-card h3 { margin: 0; font-size: 1.3rem; }
.mood-card p { margin: 0; font-size: 0.92rem; }

.mood-card__arrow {
  margin-top: 10px;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--violet-deep);
}
.mood-card--gold .mood-card__arrow { color: #8a6a2f; }

@media (max-width: 800px) {
  .mood-grid { grid-template-columns: 1fr; }
}

/* ---------- Cards / grids ---------- */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }

.card__media { aspect-ratio: 16/11; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.card:hover .card__media img { transform: scale(1.06); }

.card__body { padding: 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }

/* Territory cards */
.territory {
  display: block;
  padding: 40px 28px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-card);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.territory:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
  background: var(--lavande-light);
}
.territory .picto { width: 46px; margin: 0 auto 18px; }

/* Keyword pills */
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.pill {
  padding: 9px 20px;
  border-radius: 999px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.35);
  font-size: 0.88rem;
  letter-spacing: 0.03em;
}
.section:not(.section--brand) .pill {
  background: var(--lavande-light);
  border: 1px solid transparent;
  color: var(--violet-deep);
}

/* Quote */
.quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  color: var(--violet-deep);
  max-width: 820px;
  margin: 0 auto;
  line-height: 1.5;
}
.quote::before, .quote::after { content: "\201C"; }
.quote::after { content: "\201D"; }

/* Ambassadrice profile */
.profile {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
  align-items: center;
}
.profile-photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 4/5;
}
.profile-photo img { width: 100%; height: 100%; object-fit: cover; }

.placeholder-photo {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: var(--gradient-brand);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.1rem;
  text-align: center;
  padding: 24px;
}

/* Info list */
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.info-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-soft); }
.info-list strong { color: var(--violet-deep); min-width: 130px; display: inline-block; }

/* Form */
.form {
  display: grid;
  gap: 18px;
  max-width: 560px;
}
.form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--violet-deep);
}
.form input, .form textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1px solid rgba(94,52,134,0.2);
  background: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
}
.form input:focus, .form textarea:focus {
  outline: none;
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(138,92,184,0.15);
}
.form textarea { min-height: 140px; resize: vertical; }

.form-note {
  font-size: 0.82rem;
  color: var(--ink-soft);
  opacity: 0.8;
}
.form-note--error {
  color: #b3413d;
  opacity: 1;
  font-weight: 500;
}

/* Breadcrumb-ish back link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--violet);
  margin-bottom: 28px;
}
.back-link:hover { text-decoration: underline; }

/* ---------- Interactive map (Leaflet) ---------- */
.map-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
  align-items: stretch;
}

.salon-map {
  height: 460px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  z-index: 0;
  background: var(--bg-pale);
}

.salon-map .leaflet-tile-pane {
  filter: saturate(0.55) brightness(1.08) sepia(0.18) hue-rotate(215deg) contrast(0.96);
}

.salon-map .leaflet-control-attribution {
  background: rgba(255,255,255,0.75);
  font-size: 10px;
  color: var(--ink-soft);
}

.salon-map .leaflet-control-zoom {
  border: none !important;
  box-shadow: var(--shadow-card) !important;
}
.salon-map .leaflet-control-zoom a {
  background: #fff !important;
  color: var(--violet-deep) !important;
  border: none !important;
}
.salon-map .leaflet-control-zoom a:hover {
  background: var(--lavande-light) !important;
}

.salon-marker__dot {
  position: absolute;
  top: 50%; left: 50%;
  width: 18px; height: 18px;
  margin: -9px 0 0 -9px;
  border-radius: 50%;
  background: var(--violet-deep);
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(94,52,134,0.4);
  transition: background 0.25s ease, transform 0.25s ease;
  display: block;
}

.salon-marker__pulse {
  position: absolute;
  top: 50%; left: 50%;
  width: 18px; height: 18px;
  margin: -9px 0 0 -9px;
  border-radius: 50%;
  background: var(--violet-mid);
  opacity: 0.45;
  animation: map-pulse 2.4s ease-out infinite;
  display: block;
}

.salon-marker--active .salon-marker__dot {
  background: var(--gold);
  transform: scale(1.25);
}

.salon-marker__label {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--violet-deep) !important;
  background: rgba(255,255,255,0.9) !important;
  border: none !important;
  box-shadow: var(--shadow-card) !important;
}
.salon-marker__label::before { border-top-color: rgba(255,255,255,0.9) !important; }

@keyframes map-pulse {
  0% { transform: scale(0.6); opacity: 0.45; }
  70% { transform: scale(2.2); opacity: 0; }
  100% { transform: scale(2.2); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .salon-marker__pulse { animation: none; opacity: 0.2; }
}

/* City panel (updated on marker click, no navigation) */
.city-panel {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.city-panel--empty {
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
  background: #fff;
  border: 1.5px dashed var(--lavande);
}
.city-panel--empty h3 { margin-bottom: 6px; }

.city-panel__icon {
  width: 52px;
  margin: 0 auto 18px;
  opacity: 0.85;
}

.city-panel__hint {
  color: var(--ink-soft);
  font-size: 0.95rem;
  max-width: 280px;
  margin: 0 auto 24px;
}

.city-panel__quicklinks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.pill-btn {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1.5px solid var(--violet);
  background: #fff;
  color: var(--violet-deep);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.pill-btn:hover {
  background: var(--violet-deep);
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
}

.city-panel__media { aspect-ratio: 16/10; overflow: hidden; }
.city-panel__media img { width: 100%; height: 100%; object-fit: cover; }

.city-panel__body { padding: 28px; display: flex; flex-direction: column; gap: 8px; }
.city-panel__body h3 { margin-top: 0; }
.city-panel__body .btn-row { margin-top: 8px; }

@media (max-width: 900px) {
  .map-layout { grid-template-columns: 1fr; }
  .salon-map { height: 360px; }
}

/* ---------- Yurplan booking widget ---------- */
.yurplan-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 20px;
}

.yurplan-widget-container { width: 100%; }
.yurplan-widget { border: none; border-radius: 12px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.75);
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.site-footer .brand img { height: 34px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .profile, .grid-2 { grid-template-columns: 1fr; }
  .profile { text-align: left; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .nav { position: fixed; top: 70px; left: 0; right: 0; background: var(--bg-white); flex-direction: column; align-items: flex-start; gap: 0; padding: 12px 24px 24px; box-shadow: var(--shadow-card); transform: translateY(-130%); transition: transform 0.3s ease; }
  .nav.open { transform: translateY(0); }
  .nav a { width: 100%; padding: 12px 0; border-bottom: 1px solid rgba(94,52,134,0.08); }
  .nav a.nav-diner-ose { margin-left: 0; padding: 12px 0; border: none; border-radius: 0; background: none; color: #8a6a2f; }
  .nav a.nav-diner-ose:hover, .nav a.nav-diner-ose.active { background: none; color: #8a6a2f; }
  .nav-toggle { display: block; }
  .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
}
