/* ════════════════════════════════════════════
   Dr SCANTEIE — UI v4
   Tokens driven by theme.js (4 palettes)
   DESIGN_VARIANCE: 5 · MOTION: 4 · DENSITY: 3
   ════════════════════════════════════════════ */

/* ── Tokens (defaults = Palette 1 / Clean Orthodontist) ── */
:root {
  --primary:        #2E5A8A;
  --primary-dark:   #1E4A7A;
  --primary-light:  #E8F1F8;
  --accent:         #5BBFB5;
  --accent-dark:    #4AA9A0;
  --dark:           #243B53;
  --muted:          #6B7F94;
  --surface:        #F8FAFC;
  --neutral:        #E5E7EB;

  --ease-out-expo:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-out:       cubic-bezier(0.23, 1, 0.32, 1);

  /* Radius system — reduced for sharper, less-AI feel */
  --r-sm:   4px;
  --r-md:   6px;
  --r-lg:   10px;
  --r-xl:   14px;
}

/* ── Theme fallback: no-JS default ─────────── */
html:not([data-palette]) {
  --primary:        #2E5A8A;
  --primary-dark:   #1E4A7A;
  --primary-light:  #E8F1F8;
  --accent:         #5BBFB5;
  --accent-dark:    #4AA9A0;
  --dark:           #243B53;
  --muted:          #6B7F94;
  --surface:        #F8FAFC;
  --neutral:        #E5E7EB;
}

/* ── Theme overrides via data-palette ───────── */
/* Each palette's values are set by theme.js via
   element.style.setProperty(). This block is a
   static fallback for when JS hasn't run yet. */
[data-palette="palette-1"] { /* Clean Orthodontist — set by JS */ }
[data-palette="palette-2"] { /* Premium Orthodontics — set by JS */ }
[data-palette="palette-3"] { /* Bright Smile — set by JS */ }
[data-palette="palette-4"] { /* Trendy European — set by JS */ }

/* ── Base ─────────────────────────────────── */
html { scroll-behavior: smooth; font-size: 17px; }

h1, h2, h3, h4 { text-wrap: balance; }
p               { text-wrap: pretty; }

/* ── Z-index scale ───────────────────────── */
/* palette-toolbar: 8500 · toast: 8000 · modal: 7000 · dropdown: 6000 · sticky-nav: 5000 · sticky-cta: 4000 */

/* ── Hero entrance animations ────────────── */
@keyframes hero-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
@keyframes card-in {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: none; }
}

.hero-enter {
  opacity: 0;
  animation: hero-in 0.72s var(--ease-out-expo) both;
}
.hero-enter-1 { animation-delay: 0.08s; }
.hero-enter-2 { animation-delay: 0.20s; }
.hero-enter-3 { animation-delay: 0.32s; }
.hero-enter-4 { animation-delay: 0.46s; }

.hero-card-enter {
  opacity: 0;
  animation: card-in 0.80s var(--ease-out-expo) 0.32s both;
}

/* ── Scroll reveal ────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity  0.65s var(--ease-out-expo),
    transform 0.65s var(--ease-out-expo);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}
[data-reveal][data-delay="1"] { transition-delay: 0.08s; }
[data-reveal][data-delay="2"] { transition-delay: 0.16s; }
[data-reveal][data-delay="3"] { transition-delay: 0.26s; }
[data-reveal][data-delay="4"] { transition-delay: 0.36s; }

/* ── Reduced motion — collapse everything ── */
@media (prefers-reduced-motion: reduce) {
  [data-reveal],
  .hero-enter,
  .hero-card-enter {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── Accessibility ───────────────────────── */
.skip-to-content {
  position: absolute;
  left: -9999px;
  top: 1rem;
  z-index: 10000;
  padding: 8px 18px;
  background: var(--primary);
  color: white;
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}
.skip-to-content:focus { left: 1rem; }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

/* ── Navbar ─────────────────────────────── */
.nav-header {
  background: transparent;
  transition: background 0.35s var(--ease-out-quart),
              box-shadow  0.35s var(--ease-out-quart);
}
.nav-header .nav-logo,
.nav-header .nav-link {
  color: white;
  transition: color 0.18s ease;
  text-decoration: none;
}
.nav-header .nav-link:hover { color: rgba(255,255,255,0.70); }

.nav-header .btn-nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: white;
  border: 1.5px solid rgba(255,255,255,0.38);
  border-radius: var(--r-md);
  padding: 7px 15px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.18s ease, transform 0.12s ease;
}
.nav-header .btn-nav-phone:hover  { background: rgba(255,255,255,0.10); }
.nav-header .btn-nav-phone:active { transform: scale(0.97); }

.nav-header .btn-nav-rdv {
  background: var(--accent);
  color: white;
  border-radius: var(--r-md);
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
.nav-header .btn-nav-rdv:hover  { background: var(--accent-dark); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,0,0,0.20); }
.nav-header .btn-nav-rdv:active { transform: scale(0.97); box-shadow: none; }

@media (hover: hover) and (pointer: fine) {
  .nav-header .nav-link:hover { color: rgba(255,255,255,0.70); }
  .nav-header .btn-nav-phone:hover  { background: rgba(255,255,255,0.10); }
  .nav-header .btn-nav-rdv:hover  { background: var(--accent-dark); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,0,0,0.20); }
}

/* Scrolled state */
.nav-header.nav-scrolled {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06), 0 2px 20px rgba(0,0,0,0.05);
}
.nav-header.nav-scrolled .nav-logo,
.nav-header.nav-scrolled .nav-link { color: var(--dark); }
.nav-header.nav-scrolled .nav-link:hover { color: var(--primary); }

.nav-header.nav-scrolled .btn-nav-phone {
  color: var(--primary);
  border-color: var(--primary-light);
}
.nav-header.nav-scrolled .btn-nav-phone:hover { background: var(--primary-light); }

/* Logo text reveal on scroll */
.nav-header .nav-logo-text {
  opacity: 0;
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  transition: opacity 0.3s ease, max-width 0.3s ease;
}
.nav-header.nav-scrolled .nav-logo-text {
  opacity: 1;
  max-width: 300px;
}

/* Hamburger */
.hamburger-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.hamburger-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: background 0.18s ease;
}
.nav-header.nav-scrolled .hamburger-btn span { background: var(--dark); }

/* Mobile nav link */
.mobile-nav-link {
  display: block;
  padding: 12px 16px;
  border-radius: var(--r-md);
  font-weight: 500;
  color: var(--dark);
  text-decoration: none;
  transition: background 0.14s ease, color 0.14s ease;
}
.mobile-nav-link:hover {
  background: var(--primary-light);
  color: var(--primary);
}

/* ── Hero ─────────────────────────────────── */
.hero-section {
  background: var(--surface);
  min-height: 100dvh;
}

/* ── Hero info card ────────────────────────── */
.glass-card {
  background: #FFFFFF;
  border: 1px solid var(--neutral);
  box-shadow:
    0 1px 2px rgba(0,0,0,0.04),
    0 12px 32px rgba(0,0,0,0.07);
}

/* ── Buttons — shape consistency: var(--r-md) = 10px ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--primary);
  color: white;
  border-radius: var(--r-md);
  padding: 12px 28px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
.btn-primary:hover  { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 18px rgba(0,0,0,0.20); }
.btn-primary:active { transform: scale(0.97); box-shadow: none; }

.btn-outline-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1.5px solid var(--primary);
  color: var(--primary);
  border-radius: var(--r-md);
  padding: 10px 24px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease, transform 0.12s ease;
}
.btn-outline-primary:hover  { background: var(--primary); color: white; }
.btn-outline-primary:active { transform: scale(0.97); }

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  background: var(--accent);
  color: white;
  border-radius: var(--r-md);
  padding: 14px 32px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  letter-spacing: -0.01em;
  box-shadow: 0 4px 20px rgba(0,0,0,0.18);
  transition: background 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease;
}
.btn-hero-primary:hover  { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,0,0.25); }
.btn-hero-primary:active { transform: scale(0.97); box-shadow: none; }

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--primary);
  color: var(--primary);
  border-radius: var(--r-md);
  padding: 12px 28px;
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.12s ease;
}
.btn-hero-secondary:hover  { border-color: var(--primary-dark); background: var(--primary-light); }
.btn-hero-secondary:active { transform: scale(0.97); }

.btn-outline-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1.5px solid rgba(255,255,255,0.32);
  color: white;
  border-radius: var(--r-md);
  padding: 10px 20px;
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.12s ease;
}
.btn-outline-white:hover  { background: rgba(255,255,255,0.09); border-color: rgba(255,255,255,0.60); }
.btn-outline-white:active { transform: scale(0.97); }

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover        { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 18px rgba(0,0,0,0.20); }
  .btn-outline-primary:hover { background: var(--primary); color: white; }
  .btn-hero-primary:hover   { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,0,0.25); }
  .btn-hero-secondary:hover { border-color: var(--primary-dark); background: var(--primary-light); }
  .btn-outline-white:hover  { background: rgba(255,255,255,0.09); border-color: rgba(255,255,255,0.60); }
}

/* ── Section helpers ──────────────────────── */
.section-padding {
  padding-top: 64px;
  padding-bottom: 64px;
}

.section-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.hr-accent {
  border: none;
  height: 2px;
  width: 40px;
  background: var(--accent);
  margin: 14px auto 0;
}

/* ── Specialty chips ───────────────────────── */
.specialty-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 20px;
}
.specialty-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: var(--r-sm);
  background: var(--primary-light);
  color: var(--primary);
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--primary-light);
  transition: background 0.16s ease, border-color 0.16s ease;
}
.specialty-chip:hover { background: var(--primary-light); border-color: var(--primary); }
.specialty-chip .material-icons { font-size: 15px; color: var(--accent); }

@media (hover: hover) and (pointer: fine) {
  .specialty-chip:hover { background: var(--primary-light); border-color: var(--primary); }
}

/* ── CV items ─────────────────────────────── */
.cv-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: white;
  border: 1px solid var(--neutral);
  font-size: 14px;
  color: var(--muted);
  line-height: 1.58;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.cv-item:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  border-color: var(--primary);
  transform: translateX(3px);
}

.cv-dot {
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 7px;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent);
}

/* ── Publications ──────────────────────────── */
.publication-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--r-md);
  border: 1px solid var(--neutral);
  background: white;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}
.publication-card:hover {
  border-color: var(--primary-light);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}
.publication-card:active { transform: scale(0.99); }

@media (hover: hover) and (pointer: fine) {
  .publication-card:hover {
    border-color: var(--primary-light);
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transform: translateY(-2px);
  }
}

/* ── Accordion ──────────────────────────────── */
.accordion-item {
  background: white;
  border-radius: var(--r-lg);
  border: 1px solid var(--neutral);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
}
.accordion-item.is-open {
  border-color: var(--primary-light);
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background 0.14s ease;
}
.accordion-trigger:hover { background: var(--surface); }

.accordion-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.accordion-icon-wrap.accent {
  background: var(--accent);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.accordion-chevron {
  flex-shrink: 0;
  color: var(--muted);
  transition: transform 0.32s var(--ease-out-expo);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.42s var(--ease-out-expo);
}

.accordion-content {
  padding: 0 22px 26px 22px;
  border-top: 1px solid var(--surface);
}

/* ── Info cards (Accès section) ─────────────── */
.info-card {
  background: white;
  border-radius: var(--r-lg);
  padding: 24px;
  border: 1px solid var(--neutral);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.03);
}

/* ── ONCD qualification badges ──────────────── */
.qualification-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  background: white;
  border: 1px solid var(--accent);
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--dark);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.qualification-badge .material-icons { color: var(--accent); font-size: 17px; }

/* ── Why Dr. Scanteie? section ──────────── */
.why-card {
  background: white;
  border-radius: var(--r-lg);
  padding: 32px 24px;
  border: 1px solid var(--neutral);
  text-align: center;
  transition: transform 0.25s var(--ease-out-expo), box-shadow 0.25s var(--ease-out-expo);
}
.why-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.07);
}
.why-card:active { transform: scale(0.98); }
.why-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.why-card-icon .material-icons {
  font-size: 26px;
  color: var(--primary);
}
.why-card h3 {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}
.why-card p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ── Testimonial section ───────────────────── */
.testimonial-card {
  background: white;
  border-radius: var(--r-lg);
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--neutral);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.03);
}
.testimonial-card img {
  display: block;
  width: 100%;
  height: auto;
}

/* ── Sticky mobile conversion bar ───────────── */
.sticky-cta-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 4000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--neutral);
  padding: 10px 16px;
  gap: 10px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.06);
}
.sticky-cta-bar .scta-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 16px;
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.16s ease, transform 0.1s ease;
}
.sticky-cta-bar .scta-btn:active { transform: scale(0.97); }
.sticky-cta-bar .scta-call {
  background: var(--surface);
  color: var(--primary);
  border: 1.5px solid var(--neutral);
}
.sticky-cta-bar .scta-rdv {
  background: var(--accent);
  color: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.18);
}

@media (max-width: 768px) {
  .sticky-cta-bar { display: flex; }
  body { padding-bottom: 72px; }
}

/* ── Trust strip ──────────────────────────── */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: center;
  padding: 16px 0;
}
.trust-strip-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}
.trust-strip-item .material-icons {
  font-size: 18px;
  color: var(--accent);
}

/* ── Palette toolbar (client testing) ──────── */
#scanteie-palette-toolbar {
  position: fixed;
  bottom: 80px;
  right: 16px;
  z-index: 8500;
  background: white;
  border-radius: 14px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.18), 0 2px 8px rgba(0,0,0,0.08);
  border: 1px solid var(--neutral);
  width: 240px;
  overflow: hidden;
  font-family: system-ui, -apple-system, sans-serif;
}
.spt-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px 8px;
  border-bottom: 1px solid var(--neutral);
}
.spt-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--dark);
  flex: 1;
}
.spt-badge {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: #f59e0b;
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}
.spt-close {
  background: none;
  border: none;
  font-size: 18px;
  color: var(--muted);
  cursor: pointer;
  padding: 0 2px;
  line-height: 1;
}
.spt-close:hover { color: var(--dark); }
.spt-list {
  padding: 6px 6px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.spt-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: none;
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: background 0.12s ease, border-color 0.12s ease;
}
.spt-btn:hover { background: var(--surface); }
.spt-btn.spt-active {
  background: var(--primary-light);
  border-color: var(--primary);
}
.spt-swatch {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 1px solid rgba(0,0,0,0.06);
}
.spt-info {
  flex: 1;
  min-width: 0;
}
.spt-info strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--dark);
}
.spt-info small {
  display: block;
  font-size: 10px;
  color: var(--muted);
}
.spt-check {
  font-size: 14px;
  color: var(--primary);
  opacity: 0;
  transition: opacity 0.12s ease;
}
.spt-btn.spt-active .spt-check { opacity: 1; }
.spt-footer {
  padding: 8px 14px 10px;
  font-size: 9px;
  color: var(--muted);
  text-align: center;
  border-top: 1px solid var(--neutral);
  opacity: 0.6;
}

/* ── Mobile parallax fix ─────────────────── */
@media (max-width: 768px) {
  .section-padding { padding-top: 52px; padding-bottom: 52px; }
}

@media (max-width: 768px) {
  #scanteie-palette-toolbar {
    bottom: 80px;
    right: 8px;
    width: 200px;
  }
}

/* ── QR code overlay ────────────────────────── */
.qr-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.45);
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}
.qr-overlay.is-open { display: flex; }
.qr-modal {
  background: white;
  border-radius: 20px;
  padding: 36px 32px 28px;
  max-width: 340px;
  width: 90vw;
  text-align: center;
  box-shadow: 0 24px 80px rgba(0,0,0,0.18);
  position: relative;
  animation: qrFadeIn 0.25s ease;
}
@keyframes qrFadeIn {
  from { opacity:0; transform:scale(0.95) translateY(8px); }
  to   { opacity:1; transform:scale(1) translateY(0); }
}
.qr-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
  color: var(--muted);
  padding: 4px 8px;
  line-height: 1;
  transition: color 0.15s;
}
.qr-close:hover { color: var(--dark); }
.qr-image {
  width: 100%;
  max-width: 260px;
  margin: 0 auto 18px;
  border-radius: 12px;
  display: block;
}
.qr-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--dark);
  margin-bottom: 10px;
}
.qr-detail {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}
.qr-hint {
  font-size: 11px;
  color: var(--muted);
  margin-top: 14px;
  opacity: 0.55;
}

/* ── Google Reviews Carousel ─────────────────── */
.rev-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}
.rev-viewport {
  flex: 1;
  overflow: hidden;
  min-width: 0;
}
.rev-track {
  display: flex;
  gap: 20px;
  transition: transform 0.42s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}
.rev-card {
  flex-shrink: 0;
  background: white;
  border: 1px solid var(--neutral);
  border-radius: var(--r-md);
  padding: 20px 20px 18px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05), 0 4px 16px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
}
.rev-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.rev-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  color: white;
  flex-shrink: 0;
}
.rev-meta { flex: 1; min-width: 0; }
.rev-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--dark);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rev-date {
  font-size: 11px;
  color: var(--muted);
  margin-top: 1px;
}
.rev-stars {
  color: #FBBC04;
  font-size: 14px;
  letter-spacing: 1px;
  margin-bottom: 8px;
  line-height: 1;
}
.rev-text {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.rev-arrow {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: white;
  border: 1px solid var(--neutral);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--dark);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.rev-arrow:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
.rev-arrow:disabled {
  opacity: 0.3;
  cursor: default;
  pointer-events: none;
}
.rev-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 20px;
}
.rev-dot {
  width: 7px;
  height: 7px;
  border-radius: 4px;
  background: var(--neutral);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: width 0.25s ease, background 0.25s ease;
}
.rev-dot.active {
  background: var(--primary);
  width: 22px;
}

/* ── Language switcher (vertical, top-right) ── */

.langswitch {
  position: fixed;
  top: 70px;
  right: 10px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--neutral);
  background: white;
  border-radius: 4px;
}

.langswitch-btn {
  writing-mode: vertical-rl;
  border: 0;
  border-bottom: 1px solid var(--neutral);
  background: transparent;
  padding: 9px 4px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  color: var(--muted);
  cursor: pointer;
  position: relative;
  transition: color 0.12s ease-out;
}

.langswitch-btn:last-child {
  border-bottom: 0;
}

.langswitch-btn:hover {
  color: var(--dark);
}

.langswitch-btn.is-active {
  color: var(--dark);
}

.langswitch-btn.is-active::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 100%;
  background: var(--primary);
}

@media (max-width: 767px) {
  .langswitch {
    top: 64px;
    right: 6px;
  }
}

/* ── Doctolib RDV button in practice info card ── */
.btn-rdv-pratique {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.8rem;
  text-decoration: none;
  transition: all 0.2s ease;
  animation: rdv-pulse 2.5s infinite;
}

.btn-rdv-pratique:hover {
  background: var(--accent);
  color: white;
}

@keyframes rdv-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(91, 191, 181, 0); }
  50% { box-shadow: 0 0 0 4px rgba(91, 191, 181, 0.15); }
}
