/* =====================================================
   BENOIT & PARTNERS — LEAD QUIZ
   Mobile-first. Variables C3V. Zéro framework.
   ===================================================== */

/* ── VARIABLES ── */
* {
  -webkit-forced-color-adjust: none;
  forced-color-adjust: none;
}

:root {
  color-scheme: light only;
  --navy:   #1B2E4A;
  --slate:  #2D4A6F;
  --sand:   #F4EDE4;
  --dune:   #D4C4AF;
  --gold:   #D4B15A;
  --gold-l: #B8963E;
  --copper: #C47A3A;
  --cream:  #FAF6F0;
  --deep:   #0D1A2D;

  --error: #c0392b;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-ui: 'Montserrat', -apple-system, sans-serif;

  --radius:    8px;
  --radius-lg: 16px;
  --t:         0.2s ease;
}

/* ── RESET ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background-color: #1B2E4A;
  color-scheme: light only;
}

body {
  font-family: var(--font-ui);
  font-weight: 300;
  color: var(--navy);
  background: transparent;
  min-height: 100dvh;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ── HEADER FIXE ── */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: rgba(13,26,45,.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0.8rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,.18);
  display: flex;
  align-items: center;
}

/* ── PAGE WRAPPER ── */
#quiz-app {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: transparent;
  position: relative;
  z-index: 1;
}

/* ── HERO ── */
.hero {
  padding: 3rem 1.25rem 2rem;
  text-align: center;
  position: relative;
  background-image:
    linear-gradient(rgba(13,26,45,.55), rgba(13,26,45,.55)),
    radial-gradient(ellipse 90% 55% at 50% 0%, rgba(212,177,90,.08) 0%, transparent 65%),
    linear-gradient(to bottom, rgba(13,26,45,.9) 0%, transparent 60%),
    linear-gradient(to bottom, transparent 72%, #1B2E4A 90%),
    url('https://images.unsplash.com/photo-1589829545856-d10d557cf95f?w=1600&auto=format&fit=crop&q=80');
  background-size: cover;
  background-position: center 25%;
  background-repeat: no-repeat;
  background-attachment: scroll;
}

.hero::before { display: none; }

.hero-title br { display: none; }

.hero-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.hero-logo-img {
  max-height: 68px;
  width: auto;
  display: block;
}

.hero-tagline {
  display: none;
  font-family: var(--font-ui);
  font-size: 39px;
  color: var(--sand);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  line-height: 1;
  text-align: right;
  opacity: .9;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 5.8vw, 2.8rem);
  font-weight: 400;
  color: var(--sand);
  line-height: 1.25;
  margin-bottom: 0.75rem;
  position: relative;
}

.hero-title em {
  font-style: italic;
  color: var(--gold);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
}

.hero-badge {
  font-size: 12px;
  font-weight: 500;
  color: #fff;
  letter-spacing: 0.03em;
  background: rgba(13,26,45,.75);
  border: 1px solid rgba(255,255,255,.15);
  padding: 0.2rem 0.55rem;
  border-radius: 100px;
}

.hero-badge--green {
  background: #2D7A4F;
  border-color: #2D7A4F;
  color: #fff;
}

/* ── QUIZ CARD ── */
.quiz-card,
.quiz-card * {
  forced-color-adjust: none;
}

.quiz-card {
  background: #FAF6F0;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  flex: 1;
  padding: 1.75rem 1.25rem 2.5rem;
  box-shadow: 0 -6px 48px rgba(0,0,0,.32);
  position: relative;
  z-index: 1;
  margin-top: -80px;
}

/* ── PROGRESS ── */
.quiz-progress {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
}

.progress-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.progress-dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--dune);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--dune);
  background: white;
  transition: all var(--t);
  position: relative;
}

.progress-item.active .progress-dot {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
  box-shadow: 0 0 0 4px rgba(212,177,90,.15);
}

.progress-item.done .progress-dot {
  border-color: var(--navy);
  color: white;
}

.progress-item.done .progress-dot span { display: none; }
.progress-item.done .progress-dot::after {
  content: '✓';
  font-size: 0.75rem;
}

.progress-label {
  font-size: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dune);
  white-space: nowrap;
}

.progress-item.active .progress-label { color: var(--navy); }
.progress-item.done .progress-label   { color: var(--slate); }

.progress-connector {
  flex: 1;
  height: 1.5px;
  background: var(--dune);
  margin: 0 0.4rem;
  margin-bottom: 1.4rem;
  transition: background var(--t);
}

.progress-connector.done { }

/* ── STEP TRANSITIONS ── */
.quiz-step { display: none; }
.quiz-step.active {
  display: block;
  animation: stepIn .3s ease both;
}

@keyframes stepIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── STEP HEADER ── */
.step-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-l);
  margin-bottom: 0.4rem;
}

.step-title {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 5vw, 1.75rem);
  font-weight: 400;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 0.4rem;
}

.step-hint {
  font-size: 1rem;
  color: var(--slate);
  font-weight: 300;
  margin-bottom: 1.5rem;
}

/* ── SERVICE TILES ── */
.tiles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}

.tile {
  background: white;
  border: 1.5px solid var(--dune);
  border-radius: var(--radius);
  padding: 0.9rem 0.6rem;
  min-height: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  cursor: pointer;
  transition: all var(--t);
  text-align: center;
  -webkit-tap-highlight-color: transparent;
  width: 100%;
  font-family: inherit;
}

.tile:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.tile-icon { font-size: 1.4rem; line-height: 1; }

.tile-label {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--navy);
  line-height: 1.3;
}

.tile.selected {
  background: var(--navy);
  border-color: var(--navy);
  box-shadow: 0 2px 12px rgba(27,46,74,.2);
}

.tile.selected .tile-label { color: var(--sand); }
.tile.selected .tile-icon { filter: none; }

/* ── FIELD GROUP ── */
.field-group { margin-bottom: 1.4rem; }

.field-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 0.6rem;
}

/* ── CHIPS ── */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.chip {
  background: white;
  border: 1.5px solid var(--dune);
  border-radius: 100px;
  padding: 0.5rem 0.9rem;
  font-size: 1rem;
  font-weight: 400;
  color: var(--navy);
  cursor: pointer;
  transition: all var(--t);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  -webkit-tap-highlight-color: transparent;
  font-family: inherit;
  line-height: 1;
}

.chip:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.chip.selected {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--sand);
}

/* ── SELECT DROPDOWN ── */
.select-field {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%232D4A6F' d='M5 6L0 0h10z'/%3E%3C/svg%3E") no-repeat right 1rem center;
  border: 1.5px solid var(--dune);
  border-radius: var(--radius);
  padding: 0.75rem 2.5rem 0.75rem 1rem;
  font-size: 16px;
  font-weight: 300;
  color: var(--navy);
  font-family: inherit;
  min-height: 44px;
  cursor: pointer;
  transition: border-color var(--t);
}

.select-field:focus {
  outline: none;
  border-color: var(--gold);
}

/* ── TEXT INPUTS ── */
.input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
}

.input-field {
  width: 100%;
  border: 1.5px solid var(--dune);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-weight: 300;
  color: var(--navy);
  font-family: inherit;
  background: white;
  min-height: 44px;
  transition: border-color var(--t);
}

.input-field::placeholder { color: var(--dune); }
.input-field:focus { outline: none; border-color: var(--gold); }
.input-field.has-error { border-color: var(--error); }

/* ── TEXTAREA ── */
.textarea-field {
  width: 100%;
  border: 1.5px solid var(--dune);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-weight: 300;
  color: var(--navy);
  font-family: inherit;
  background: white;
  resize: vertical;
  min-height: 96px;
  transition: border-color var(--t);
}

.textarea-field:focus { outline: none; border-color: var(--gold); }

/* ── CHECKBOX ── */
.checkbox-wrap {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  cursor: pointer;
  min-height: 44px;
  padding: 0.25rem 0;
}

.checkbox-wrap input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-width: 20px;
  accent-color: var(--navy);
  cursor: pointer;
  margin-top: 0.15rem;
}

.checkbox-wrap span {
  font-size: 1rem;
  line-height: 1.55;
  color: var(--slate);
}

.checkbox-wrap a {
  color: var(--gold-l);
  text-decoration: underline;
}

/* ── PHONE INPUT (country code + number) ── */
.tel-input-wrap {
  display: flex;
  align-items: stretch;
  border: 1.5px solid var(--dune);
  border-radius: var(--radius);
  background: white;
  overflow: hidden;
  min-height: 50px;
  transition: border-color var(--t);
}

.tel-input-wrap:focus-within {
  border-color: var(--gold);
}

.tel-input-wrap.has-error {
  border-color: var(--error);
}

.tel-country-select {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  border-right: 1.5px solid var(--dune);
  background: #F4EDE4 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5' viewBox='0 0 8 5'%3E%3Cpath fill='%232D4A6F' d='M4 5L0 0h8z'/%3E%3C/svg%3E") no-repeat right 0.45rem center;
  padding: 0 1.6rem 0 0.65rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--navy);
  font-family: inherit;
  cursor: pointer;
  outline: none;
  flex-shrink: 0;
  /* width: auto prevents the select from collapsing */
  min-width: 0;
}

.tel-number-input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  padding: 0 1rem;
  font-size: 1rem;
  font-weight: 300;
  color: var(--navy);
  font-family: inherit;
}

.tel-number-input::placeholder {
  color: var(--dune);
}

/* ── ERROR MESSAGES ── */
.error-msg {
  color: var(--error);
  font-size: 0.7rem;
  margin-top: 0.4rem;
  display: none;
}
.error-msg.show { display: block; }

/* ── NAVIGATION BUTTONS ── */
.step-nav {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 1.75rem;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
  border: none;
  border-radius: var(--radius);
  padding: 0.95rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  letter-spacing: 0.04em;
  cursor: pointer;
  min-height: 52px;
  width: 100%;
  transition: background var(--t), transform .1s;
  -webkit-tap-highlight-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.btn-primary:hover  { background: var(--gold-l); }
.btn-primary:active { background: var(--gold-l); transform: scale(.99); }

.btn-primary:disabled {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
}

.btn-back {
  background: transparent;
  border: none;
  color: var(--slate);
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
  padding: 0.5rem;
  text-align: center;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  transition: color var(--t);
}

.btn-back:hover { color: var(--navy); }

/* Loading spinner inside btn */
.spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(27,46,74,.35);
  border-top-color: var(--navy);
  border-radius: 50%;
  animation: spin .6s linear infinite;
}

.btn-primary.loading .spinner    { display: inline-block; }
.btn-primary.loading .btn-label  { opacity: .6; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── RESULT PAGE ── */
.result-intro {
  text-align: center;
  margin-bottom: 1.5rem;
}

.result-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(212,177,90,.1);
  border: 1px solid rgba(212,177,90,.25);
  border-radius: 100px;
  padding: 0.35rem 0.9rem;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-l);
  margin-bottom: 0.9rem;
}

.result-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 5vw, 1.85rem);
  font-weight: 400;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.result-sub {
  font-size: 1rem;
  color: var(--slate);
  font-weight: 300;
  line-height: 1.6;
}

/* Result validation block */
.result-validation {
  margin-bottom: 1.25rem;
}

.result-validation-title {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 4vw, 1.4rem);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.result-validation-sub {
  font-size: 1rem;
  color: var(--slate);
  font-weight: 300;
  line-height: 1.6;
}

/* CTA wrap */
.result-cta-wrap {
  margin-bottom: 1.25rem;
}

.result-cta-sub {
  text-align: center;
  font-size: 0.72rem;
  color: var(--slate);
  margin-top: 0.5rem;
  letter-spacing: 0.02em;
}

/* Reassurance list */
.result-reassurance {
  list-style: none;
  margin-top: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.result-reassurance li {
  font-size: 0.9rem;
  color: var(--slate);
  font-weight: 400;
  line-height: 1.4;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

/* Cabinet card */
.cabinet-card {
  background: white;
  border: 1.5px solid var(--dune);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 1.25rem;
  box-shadow: 0 2px 16px rgba(27,46,74,.08);
}

.cabinet-top {
  background: var(--navy);
  padding: 1.25rem 1.25rem 1rem;
}

.cabinet-top-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cabinet-logo-wrap {
  width: 88px;
  height: 88px;
  background: white;
  border-radius: var(--radius);
  flex-shrink: 0;
  overflow: hidden;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cabinet-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cabinet-top-info {
  flex: 1;
  min-width: 0;
}

.cabinet-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--sand);
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.cabinet-location {
  font-size: 0.62rem;
  color: var(--dune);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 0.25rem;
  opacity: .7;
}

.cabinet-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.stars {
  color: var(--gold);
  letter-spacing: 0.05em;
  font-size: 0.85rem;
}

.rating-text {
  font-size: 0.7rem;
  color: var(--dune);
  opacity: .8;
}

.cabinet-body {
  padding: 1.25rem;
}

.cabinet-section { margin-bottom: 1.1rem; }
.cabinet-section:last-child { margin-bottom: 0; }

.cabinet-section-label {
  font-size: 0.52rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-l);
  margin-bottom: 0.5rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag {
  font-size: 0.68rem;
  padding: 0.22rem 0.65rem;
  background: #F4EDE4;
  border-radius: 100px;
  color: var(--navy);
  font-weight: 400;
}

.cabinet-desc {
  font-size: 1rem;
  color: var(--slate);
  line-height: 1.7;
}

.stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.65rem;
  margin-top: 0.85rem;
}

.stat-item {
  background: #FAF6F0;
  border-radius: var(--radius);
  padding: 0.75rem 0.5rem;
  text-align: center;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1;
}

.stat-label {
  font-size: 0.55rem;
  color: var(--slate);
  font-weight: 400;
  margin-top: 0.2rem;
  line-height: 1.3;
}

/* Selected services in result */
#result-services { min-height: 10px; }

/* CTA block */
.result-ctas {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}

.btn-calendly {
  background: var(--gold);
  color: var(--navy);
  border: none;
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  letter-spacing: 0.03em;
  cursor: pointer;
  min-height: 56px;
  width: 100%;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: background var(--t);
  -webkit-tap-highlight-color: transparent;
}

.btn-calendly:hover { background: var(--gold-l); }

.btn-callback {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
  border-radius: var(--radius);
  padding: 0.9rem 1.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  min-height: 52px;
  width: 100%;
  transition: all var(--t);
  -webkit-tap-highlight-color: transparent;
}

.btn-callback:hover { color: var(--sand); }

.result-trust {
  text-align: center;
  font-size: 0.68rem;
  color: var(--slate);
  padding: 0.25rem 0;
  line-height: 1.6;
}

/* Callback confirm */
.callback-confirm {
  display: none;
  background: rgba(27,46,74,.06);
  border: 1px solid rgba(212,177,90,.25);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  text-align: center;
  font-size: 1rem;
  color: var(--navy);
  line-height: 1.6;
  margin-top: 0.25rem;
}

.callback-confirm.show { display: block; }

/* ── LOADING SCREEN ── */
.quiz-loading {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 1.5rem;
  text-align: center;
  min-height: 260px;
  animation: stepIn .3s ease both;
}

.quiz-loading.active {
  display: flex;
}

.loading-ring {
  width: 48px;
  height: 48px;
  border: 3px solid var(--dune);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin .9s linear infinite;
  margin-bottom: 1.5rem;
}

.loading-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--navy);
  line-height: 1.35;
}

.loading-sub {
  font-size: 0.875rem;
  color: var(--slate);
  font-weight: 300;
  margin-top: 0.5rem;
}

/* ── RESULT — OFFER BADGE (vert) ── */
.result-offer-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #1a6b3c;
  color: #fff;
  border-radius: var(--radius);
  padding: 0.65rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.offer-badge-icon {
  font-style: normal;
  font-weight: 700;
  flex-shrink: 0;
}

/* ── RESULT — DESCRIPTION TRONQUÉE ── */
.cabinet-desc-wrap {
  margin: 1rem 0 0.75rem;
}

.cabinet-desc {
  font-size: 0.9375rem;
  color: var(--slate);
  line-height: 1.7;
}

.cabinet-desc.truncated {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.btn-see-more {
  background: none;
  border: none;
  color: var(--gold-l);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0.3rem 0;
  font-family: inherit;
  text-decoration: underline;
  display: block;
  margin-top: 0.35rem;
  -webkit-tap-highlight-color: transparent;
}

/* ── RESULT — SERVICES B&P ── */
.bp-services {
  margin-bottom: 1rem;
}

.bp-services-label {
  font-size: 0.52rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-l);
  margin-bottom: 0.5rem;
}

/* ── FOOTER ── */
.quiz-footer {
  padding: 1.25rem;
  text-align: center;
  font-size: 0.6rem;
  color: var(--dune);
  letter-spacing: 0.04em;
  opacity: .45;
}

/* ── DESKTOP (768px+) — carte flottante centrée ── */
@media (min-width: 768px) {
  .hero-tagline {
    display: inline;
  }

  .hero-badge {
    font-size: 14px;
    padding: 0.4rem 1rem;
  }

  .hero {
    padding: 5rem 2rem 0;
    display: flex;
    flex-direction: column;
    min-height: 55vh;
  }

  .hero-title {
    font-size: clamp(2.25rem, 3.5vw, 3rem);
    max-width: 860px;
    margin-top: 0;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0.85rem;
  }

  .hero-title br { display: inline; }

  .hero-badges {
    margin-bottom: 0;
  }

  .quiz-card {
    max-width: 640px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    padding: 2.5rem 2.5rem 3rem;
    margin-top: -160px;
    margin-bottom: 3rem;
    box-shadow: 0 12px 56px rgba(0,0,0,.3);
  }

  .tiles-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .stats-row {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

/* ── MOBILE ONLY (max 767px) ── */
@media (max-width: 767px) {
  #site-header {
    padding: 0.45rem 1rem;
  }

  .hero {
    padding-top: 0;
    padding-bottom: 1.5rem;
  }

  .quiz-card {
    margin-top: 0;
  }

  .hero-logo-img {
    max-height: 44px;
  }

  .cabinet-location {
    font-size: 0.52rem;
    margin-top: 0.15rem;
  }

  .cabinet-rating {
    margin-top: 0.35rem;
    gap: 0.3rem;
  }

  .stars {
    font-size: 0.7rem;
  }

  .rating-text {
    font-size: 0.58rem;
  }
}
