/* ═══════════════════════════════════════════════
   A-T-E Conseil – Landing Page Styles (Spain, loft insulation, English)
   Copied from the live English page (landing-anglais-michelle) — same palette:
   Navy (#0F2240) & Gold (#C9A84C). Spain-specific additions at the end (section "ES").
   ═══════════════════════════════════════════════ */

/* ── Fonts hosted locally (no Google Fonts request) ── */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('assets/fonts/inter-latin.woff2') format('woff2'); }
/* Fraunces variable (weights 400-800 + "opsz" axis 9-144, latin subset, OFL licence in assets/fonts):
   same font as the model page (Google Fonts), so the headline renders the same with "opsz" 144. */
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('assets/fonts/fraunces-var-latin.woff2') format('woff2'); }

/* ── Base ── */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  overflow-anchor: none; /* the quiz card grows a lot between steps: no browser scroll anchoring (Android Chrome) */
}

body {
  overflow-anchor: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  background-color: #FAF7F0;
  color: #0F2240;
}

/* ── Typography ── */
.serif {
  font-family: 'Fraunces', serif;
  font-variation-settings: "opsz" 144;
}

.display {
  font-family: 'Fraunces', serif;
  font-variation-settings: "opsz" 144;
  font-weight: 700;
  line-height: 1.1;
}

/* ── Brand stripe (the model used the French tricolour here: replaced by navy/gold, no flag) ── */
.brand-stripe {
  height: 3px;
  background: linear-gradient(to right, #0F2240 0%, #C9A84C 50%, #0F2240 100%);
}

/* ── Animations ── */
@keyframes pulse-slow {
  0%, 100% { opacity: 1; transform: translateX(0) rotate(var(--rotate, 0deg)); }
  50% { opacity: 0.6; transform: translateX(4px) rotate(var(--rotate, 0deg)); }
}

@keyframes scale-up {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes score-count {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@keyframes check-in {
  0% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes dot-pulse {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

@keyframes ring-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201, 168, 76, 0.35); }
  50% { box-shadow: 0 0 0 10px rgba(201, 168, 76, 0); }
}

.ring-pulse {
  animation: ring-pulse 2.4s ease-out infinite;
}

.animate-pulse-slow {
  --rotate: 90deg;
  animation: pulse-slow 2s ease-in-out infinite;
}

.animate-scale-up {
  animation: scale-up 0.4s ease-out;
}

.animate-fade-in-up {
  animation: fade-in-up 0.5s ease-out forwards;
}

.animate-check-in {
  animation: check-in 0.4s ease-out;
}

/* ── Shimmer overlay for urgency banner ── */
.shimmer {
  position: relative;
  overflow: hidden;
}

.shimmer::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
  animation: shimmer 3s ease-in-out infinite;
}

/* ── Processing Spinner ── */
.processing-spinner {
  width: 56px;
  height: 56px;
  border: 4px solid #E5E7EB;
  border-top-color: #C9A84C;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto;
}

/* ── Processing Dots ── */
.processing-dots {
  display: inline-flex;
  gap: 6px;
}

.processing-dots span {
  width: 8px;
  height: 8px;
  background-color: #C9A84C;
  border-radius: 50%;
  animation: dot-pulse 1.4s ease-in-out infinite;
}

.processing-dots span:nth-child(2) { animation-delay: 0.2s; }
.processing-dots span:nth-child(3) { animation-delay: 0.4s; }

/* ── Hero Background ── */
.hero-bg {
  background: radial-gradient(ellipse at 50% 0%, rgba(201, 168, 76, 0.08) 0%, transparent 60%), #FAF7F0;
}

/* ── CTA Button (legacy compatibility) ── */
.cta-button {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: none;
}

.cta-button::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.cta-button:hover::after {
  left: 100%;
}

/* ── 3D Gold Button (PAC style) ── */
.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(180deg, #D4B96A 0%, #C9A84C 100%);
  color: #0F2240;
  font-weight: 700;
  padding: 1rem 2.5rem;
  border-radius: 0.75rem;
  border: none;
  cursor: pointer;
  font-size: 1.125rem;
  box-shadow: 0 6px 0 -1px #8f7027, 0 12px 24px -8px rgba(143, 112, 39, 0.45);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  position: relative;
  overflow: hidden;
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 0 -1px #8f7027, 0 18px 30px -8px rgba(143, 112, 39, 0.55);
}

.btn-gold:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 -1px #8f7027, 0 6px 14px -8px rgba(143, 112, 39, 0.4);
}

.btn-gold::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transition: left 0.5s;
}

.btn-gold:hover::after {
  left: 100%;
}

/* ── Quiz Option Buttons (PAC .opt style) ── */
.opt {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  min-height: 56px;
  padding: 0.85rem 1.15rem;
  border: 2px solid rgba(15, 34, 64, 0.15);
  border-radius: 0.75rem;
  background: #FAF7F0;
  cursor: pointer;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: #0F2240;
  transition: all 0.18s ease;
  box-shadow: 0 1px 3px rgba(15, 34, 64, 0.06);
}

.opt:hover {
  border-color: #C9A84C;
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px -4px rgba(15, 34, 64, 0.12);
}

.opt.selected {
  border-color: #0F2240;
  background-color: #0F2240;
  color: white;
  box-shadow: 0 4px 12px -2px rgba(15, 34, 64, 0.3);
}

.opt .bullet {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(15, 34, 64, 0.25);
  flex-shrink: 0;
  transition: all 0.18s ease;
}

.opt:hover .bullet {
  border-color: #C9A84C;
}

.opt.selected .bullet {
  border-color: #C9A84C;
  background-color: #C9A84C;
}

.opt.selected .bullet::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: white;
}

/* Color-coded quiz options (still supported) */
.opt--green {
  border-color: #d1fae5 !important;
  background-color: rgba(58, 139, 92, 0.04);
}
.opt--green:hover {
  border-color: #3A8B5C !important;
  background-color: rgba(58, 139, 92, 0.08) !important;
}
.opt--green.selected {
  background-color: #3A8B5C !important;
  border-color: #3A8B5C !important;
  color: white;
}
.opt--red {
  border-color: #fecaca !important;
  background-color: rgba(239, 68, 68, 0.04);
}
.opt--red:hover {
  border-color: #ef4444 !important;
  background-color: rgba(239, 68, 68, 0.08) !important;
}
.opt--red.selected {
  background-color: #ef4444 !important;
  border-color: #ef4444 !important;
  color: white;
}

/* ── Progress Pips (PAC .pip style) ── */
.pip {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background-color: #E5E7EB;
  transition: all 0.3s ease;
}

.pip.done {
  background-color: #C9A84C;
}

.pip.active {
  width: 24px;
  background-color: #0F2240;
}

/* ── Legacy quiz-option (kept for compatibility) ── */
.quiz-option {
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid #E5E7EB;
  border-radius: 12px;
  padding: 16px 20px;
  background: white;
  text-align: left;
  width: 100%;
  font-size: 0.95rem;
  color: #374151;
}

.quiz-option:hover {
  border-color: #0F2240;
  background-color: rgba(15, 34, 64, 0.04);
  transform: translateY(-1px);
}

.quiz-option.selected {
  border-color: #0F2240;
  background-color: rgba(15, 34, 64, 0.06);
  font-weight: 600;
}

.quiz-option .option-check {
  display: none;
}

.quiz-option.selected .option-check {
  display: flex;
}

/* ── Commitment Options ── */
.commitment-option {
  cursor: pointer;
  transition: all 0.2s ease;
}

.commitment-option.selected {
  border-color: #0F2240 !important;
  background-color: rgba(15, 34, 64, 0.06) !important;
}

/* ── FAQ ── */
.faq-item {
  transition: all 0.2s ease;
}

.faq-item.faq-open {
  border-left: 3px solid #C9A84C;
}

.faq-arrow {
  transition: transform 0.3s ease;
}

.faq-arrow.rotated {
  transform: rotate(180deg);
}

/* ── Score Ring ── */
.score-ring circle {
  transition: stroke-dashoffset 1.5s ease-out;
}

/* ── Form Inputs ── */
.form-input {
  font-size: 16px; /* ≥16px prevents iOS Safari auto-zoom on focus */
}
.form-input:focus {
  border-color: #0F2240;
  box-shadow: 0 0 0 3px rgba(15, 34, 64, 0.12);
}

/* ── Feedback Messages ── */
.feedback-msg {
  opacity: 0;
  transform: translateY(10px);
  animation: fade-in-up 0.5s ease-out forwards;
}

.feedback-msg:nth-child(1) { animation-delay: 0s; }
.feedback-msg:nth-child(2) { animation-delay: 0.5s; }
.feedback-msg:nth-child(3) { animation-delay: 1.0s; }
.feedback-msg:nth-child(4) { animation-delay: 1.5s; }

/* ── Sticky CTA ── */
#sticky-cta.visible {
  transform: translateY(0);
}

/* Mobile: white bar */
@media (max-width: 767px) {
  #sticky-cta {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(8px);
    border-top: 1px solid #E5E7EB;
  }
}

/* Desktop: navy gradient with gold border-top */
@media (min-width: 768px) {
  #sticky-cta {
    background: linear-gradient(180deg, #0F2240 0%, #1a3355 100%);
    border-top: 2px solid #C9A84C;
  }
  #sticky-cta button {
    background: linear-gradient(180deg, #D4B96A 0%, #C9A84C 100%);
    color: #0F2240;
  }
  #sticky-cta p {
    color: rgba(255, 255, 255, 0.6) !important;
  }
}

/* ── Intersection Observer animations ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Staggered reveal items ── */
.reveal-item {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Card hover lift ── */
.card-lift {
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.card-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px -12px rgba(15, 34, 64, 0.18);
}

/* ── Smooth FAQ accordion (grid-rows technique) ── */
.faq-answer-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.faq-answer-wrap.open {
  grid-template-rows: 1fr;
}

.faq-answer-wrap > div {
  overflow: hidden;
}

/* ── 3D press CTA button (legacy) ── */
.cta-3d {
  box-shadow: 0 6px 0 -1px #8f7027, 0 12px 24px -8px rgba(143, 112, 39, 0.45);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.cta-3d:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 0 -1px #8f7027, 0 18px 30px -8px rgba(143, 112, 39, 0.55);
}

.cta-3d:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 -1px #8f7027, 0 6px 14px -8px rgba(143, 112, 39, 0.4);
}

/* ── Responsive ── */
@media (min-width: 768px) {
  .animate-pulse-slow {
    --rotate: 0deg;
  }
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ── Selection ── */
::selection {
  background-color: rgba(15, 34, 64, 0.2);
  color: #0F2240;
}

/* ── Scrollbar (Webkit) ── */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #FAF7F0;
}

::-webkit-scrollbar-thumb {
  background: #C4CDD5;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #9AA5B4;
}

/* ── Lightbox ── */
#lightbox {
  animation: fade-in-up 0.2s ease-out;
}

#lightbox img {
  animation: scale-up 0.3s ease-out;
}

/* ── WhatsApp Floating Button ── */
#whatsapp-btn:not(.hidden) {
  animation: whatsapp-appear 0.5s ease-out, whatsapp-pulse 3s ease-in-out 0.5s infinite;
}

@keyframes whatsapp-appear {
  from { opacity: 0; transform: scale(0.5) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes whatsapp-pulse {
  0%, 100% { box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 4px 24px rgba(37, 211, 102, 0.7); }
}

/* ── Cookie Banner entrance ── */
#cookie-banner {
  animation: slide-up 0.4s ease-out;
}

@keyframes slide-up {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ── CTA Glow Pulse ── */
@keyframes cta-glow {
  0%, 100% { box-shadow: 0 6px 0 -1px #8f7027, 0 12px 24px -8px rgba(143, 112, 39, 0.45); }
  50% { box-shadow: 0 6px 0 -1px #8f7027, 0 12px 32px -4px rgba(201, 168, 76, 0.6), 0 0 8px rgba(201, 168, 76, 0.2); }
}

.cta-glow {
  animation: cta-glow 3s ease-in-out infinite;
}

/* ── Live Score Bar in Quiz ── */
.live-score-bar {
  transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.live-score-bump {
  animation: score-bump 0.4s ease-out;
}

@keyframes score-bump {
  0% { transform: scale(1); }
  40% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

/* ── Blurred Score Preview ── */
.blurred-score {
  filter: blur(8px);
  user-select: none;
  pointer-events: none;
}

/* ── Progress bar pulse on answer ── */
@keyframes progress-pulse {
  0% { transform: scaleY(1); }
  50% { transform: scaleY(1.5); }
  100% { transform: scaleY(1); }
}

.progress-pulse {
  animation: progress-pulse 0.3s ease-out;
}

/* ── Counter animation ── */
.counter-animate {
  display: inline-block;
}

/* ── Color-coded Quiz Options (legacy) ── */
.quiz-option--green {
  border-color: #d1fae5 !important;
  background-color: rgba(58, 139, 92, 0.04);
}
.quiz-option--green:hover {
  border-color: #3A8B5C !important;
  background-color: rgba(58, 139, 92, 0.08) !important;
}
.quiz-option--red {
  border-color: #fecaca !important;
  background-color: rgba(239, 68, 68, 0.04);
}
.quiz-option--red:hover {
  border-color: #ef4444 !important;
  background-color: rgba(239, 68, 68, 0.08) !important;
}

/* ── Step Dots (legacy) ── */
#step-dots > div {
  transition: all 0.3s ease;
}

/* ── Quiz back button ── */
.quiz-back-btn {
  transition: all 0.2s ease;
}

.quiz-back-btn:hover {
  background-color: rgba(15, 34, 64, 0.08);
}

/* ── Social Proof Toast ── */
#social-toast.visible {
  transform: translateY(0);
}

/* ── Exit Popup (PAC style) ── */
@keyframes exit-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes exit-pop-in {
  0% { opacity: 0; transform: scale(0.92) translateY(8px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* ── Confetti ── */
.confetti-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 60;
  overflow: hidden;
}

.confetti-piece {
  position: absolute;
  top: -10px;
  width: 10px;
  height: 10px;
  opacity: 0;
  animation: confetti-fall linear forwards;
}

@keyframes confetti-fall {
  0% { opacity: 1; transform: translateY(0) rotate(0deg) scale(1); }
  75% { opacity: 1; }
  100% { opacity: 0; transform: translateY(100vh) rotate(720deg) scale(0.5); }
}

/* ── Michelle Online Indicator ── */
@keyframes online-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(58, 139, 92, 0.5); }
  50% { box-shadow: 0 0 0 6px rgba(58, 139, 92, 0); }
}

.online-dot {
  animation: online-pulse 2.5s ease-in-out infinite;
}

/* ── Scarcity badge ── */
@keyframes scarcity-flash {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.scarcity-badge {
  animation: scarcity-flash 3s ease-in-out infinite;
}

/* ── Quiz resume banner ── */
.quiz-resume-banner {
  animation: fade-in-up 0.4s ease-out;
}

/* ── Reviews carousel (mobile) ── */
.snap-x::-webkit-scrollbar {
  display: none;
}
.snap-x {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* ── WhatsApp button mobile fix ── */
@media (max-width: 767px) {
  #whatsapp-btn:not(.hidden) {
    bottom: 76px !important;
  }

  #social-toast {
    bottom: 68px;
    left: 8px;
    right: 8px;
    max-width: none;
  }
}

/* ── Pulse dot (for header) ── */
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.pulse-dot {
  animation: pulse-dot 2s ease-in-out infinite;
}


/* ═══════════════════════════════════════════════
   ES — additions for the Spain page
   ═══════════════════════════════════════════════ */
.es-small { font-size: 0.8125rem; line-height: 1.45; }
.es-note { font-size: 0.75rem; line-height: 1.5; color: #6B7280; }
.es-star { color: #A68328; font-weight: 700; text-decoration: none; }
.es-star:hover { text-decoration: underline; }
.es-eyebrow { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 800; color: #B05C3B; }
.es-h1-sub { display: block; }
.es-covered { color: #0F2240; font-weight: 800; }

/* Postcode step */
.es-pc-row { display: flex; gap: 0.6rem; }
.es-pc-input { flex: 1 1 auto; min-width: 0; font-size: 1.25rem !important; font-weight: 700; letter-spacing: 0.12em; text-align: center; }
.es-pc-btn { flex: 0 0 auto; padding: 0.9rem 1.1rem !important; font-size: 1rem !important; border-radius: 0.75rem !important; white-space: nowrap; }
.es-pc-error { color: #B91C1C; font-size: 0.8rem; margin-top: 0.5rem; }
.es-provinces { font-size: 0.75rem; color: #6B7280; margin-top: 0.75rem; line-height: 1.5; }
@media (max-width: 340px) {
  .es-pc-row { flex-direction: column; }
  .es-pc-btn { width: 100%; }
}

/* Live "your area" panel */
.es-area-value { font-size: 1.05rem; font-weight: 800; color: #0F2240; line-height: 1.2; }
.es-area-sub { font-size: 0.7rem; color: rgba(15, 34, 64, 0.6); margin-top: 0.1rem; }

/* Result badge on the contact step */
.es-badge { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 700; font-size: 0.875rem; padding: 0.4rem 0.9rem; border-radius: 9999px; }
.es-badge--ok { background: rgba(58, 139, 92, 0.12); color: #2F7A4D; }
.es-badge--check { background: rgba(201, 168, 76, 0.18); color: #7A5C12; }
.es-reasons { margin: 0.75rem 0 0; padding: 0; list-style: none; }
.es-reasons li { position: relative; padding-left: 1.1rem; font-size: 0.875rem; color: #374151; line-height: 1.45; margin-top: 0.3rem; }
.es-reasons li::before { content: ''; position: absolute; left: 0.2rem; top: 0.5rem; width: 6px; height: 6px; border-radius: 50%; background: #C9A84C; }
.es-summary { background: #FAF7F0; border: 1px solid rgba(201, 168, 76, 0.3); border-radius: 1rem; padding: 0.85rem 1rem; }

/* Consent boxes */
.es-check { display: flex; gap: 0.7rem; align-items: flex-start; cursor: pointer; padding: 0.75rem; border: 2px solid #E5E7EB; border-radius: 0.75rem; background: #fff; }
.es-check input { width: 22px; height: 22px; flex: 0 0 22px; margin-top: 1px; accent-color: #0F2240; cursor: pointer; }
.es-check span { font-size: 1rem; line-height: 1.45; color: #1F2937; }
.es-check.is-error { border-color: #F87171; }
.es-optional { font-weight: 700; color: #6B7280; }
.es-gdpr { font-size: 0.875rem; line-height: 1.5; color: #4B5563; }
.es-gdpr summary { cursor: pointer; color: #8f7027; font-weight: 600; margin-top: 0.25rem; min-height: 44px; display: flex; align-items: center; }
.es-gdpr ul { margin: 0.4rem 0 0 1rem; list-style: disc; }
.es-gdpr li { margin-top: 0.2rem; }
.es-gdpr a { color: #A68328; text-decoration: underline; }
.es-pc-chip { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; background: #FAF7F0; border: 1px solid rgba(15, 34, 64, 0.12); border-radius: 0.75rem; padding: 0.6rem 0.85rem; font-size: 0.85rem; }
.es-link-btn { background: none; border: 0; color: #8f7027; font-weight: 600; text-decoration: underline; cursor: pointer; font-size: 0.9375rem; min-height: 44px; min-width: 44px; padding: 0 0.5rem; margin: -0.5rem -0.5rem -0.5rem 0; }
.es-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.es-send-error { background: #FEF2F2; border: 1px solid #FECACA; color: #991B1B; border-radius: 0.75rem; padding: 0.7rem 0.85rem; font-size: 0.8125rem; }

/* Criteria grid + photos */
.es-crit { display: flex; gap: 0.75rem; align-items: flex-start; background: #fff; border-radius: 1rem; padding: 1rem; box-shadow: 0 1px 3px rgba(15, 34, 64, 0.06); }
.es-crit-icon { width: 2.25rem; height: 2.25rem; border-radius: 9999px; background: rgba(201, 168, 76, 0.15); color: #8f7027; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-weight: 800; }
.es-crit h3 { font-weight: 700; color: #0F2240; font-size: 0.95rem; margin-bottom: 0.15rem; }
.es-crit p { font-size: 0.8125rem; color: #4B5563; line-height: 1.45; }
.es-grid-2 { display: grid; grid-template-columns: 1fr; gap: 0.75rem; }
@media (min-width: 768px) { .es-grid-2 { grid-template-columns: 1fr 1fr; gap: 1rem; } }
.es-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
@media (min-width: 768px) { .es-photos { grid-template-columns: repeat(4, 1fr); gap: 1rem; } }
.es-photo { aspect-ratio: 1 / 1; border-radius: 0.75rem; overflow: hidden; background: #F3F4F6; }
.es-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.es-hero-photo { border-radius: 1rem; overflow: hidden; aspect-ratio: 16 / 9; margin-bottom: 1.25rem; box-shadow: 0 12px 30px -14px rgba(15, 34, 64, 0.35); }
.es-hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Advisor photo (the model's image is landscape: keep the face centred in the circle) */
.es-advisor-photo { object-position: 50% 30%; }

/* Small print */
.es-smallprint { font-size: 0.75rem; line-height: 1.6; color: #4B5563; }
.es-smallprint strong { color: #0F2240; }

/* Footer links */
.es-foot a { color: #C9A84C; }
.es-foot a:hover { text-decoration: underline; }

/* Cookie banner: both buttons the same size (reject as easy as accept) */
.es-cookie-btn { min-width: 92px; min-height: 44px; padding: 0 1rem; justify-content: center; display: inline-flex; align-items: center; border-radius: 0.5rem; font-size: 0.9375rem; font-weight: 700; color: #0F2240; transition: background-color 0.2s ease; }
/* Same shape, size and weight for both choices; only the fill colour differs (both clearly visible) */
.es-cookie-btn--reject { background: #FFFFFF; border: 2px solid #FFFFFF; }
.es-cookie-btn--reject:hover { background: #F3F4F6; }
.es-cookie-btn--accept { background: #C9A84C; border: 2px solid #C9A84C; }
.es-cookie-btn--accept:hover { background: #D4B96A; }
.es-cookie-text { color: rgba(255, 255, 255, 0.85); font-size: 0.8125rem; line-height: 1.4; }

/* Thank-you page */
.progress-step { position: relative; flex: 1; text-align: center; padding-bottom: 8px; }
.progress-step::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: #E5E7EB; border-radius: 2px; }
.progress-step.done::after { background: #C9A84C; }
.progress-step.active::after { background: #0F2240; }
.progress-step .step-label { color: #9CA3AF; font-size: 0.72rem; }
.progress-step.done .step-label { color: #A68328; }
.progress-step.active .step-label { color: #0F2240; font-weight: 700; }
.ia-step { opacity: 0; transform: translateY(10px); animation: fade-in-up 0.4s ease-out forwards; }
.ia-step:nth-child(1) { animation-delay: 0s; }
.ia-step:nth-child(2) { animation-delay: 0.5s; }
.ia-step:nth-child(3) { animation-delay: 1s; }
#ia-analysis { transition: opacity 0.3s ease; }
.es-preview-note { background: #FFFBEB; border: 1px dashed #D97706; color: #92400E; border-radius: 0.75rem; padding: 0.6rem 0.8rem; font-size: 0.75rem; }

/* Privacy page */
.es-policy h2 { font-family: 'Fraunces', serif; font-weight: 700; font-size: 1.25rem; color: #0F2240; margin: 2rem 0 0.6rem; scroll-margin-top: 90px; }
.es-policy p, .es-policy li { font-size: 0.9rem; line-height: 1.65; color: #374151; }
.es-policy p { margin-top: 0.6rem; }
.es-policy ul { list-style: disc; margin: 0.5rem 0 0 1.25rem; }
.es-policy li { margin-top: 0.3rem; }
.es-policy a { color: #8f7027; text-decoration: underline; }
.es-policy table { width: 100%; border-collapse: collapse; margin-top: 0.6rem; font-size: 0.85rem; }
.es-policy th, .es-policy td { border: 1px solid #E5E7EB; padding: 0.5rem; text-align: left; vertical-align: top; color: #374151; }
.es-policy th { background: #FAF7F0; color: #0F2240; }
.es-table-wrap { overflow-x: auto; }

.es-consent-error { margin-top: -0.5rem; }
.es-main { padding-top: 6rem; padding-bottom: 4rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0; }

/* ── ES v4: first question, touch targets, optional details ── */
.es-q-hint { font-size: 0.9375rem; line-height: 1.45; color: #4B5563; }
.es-opts-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.es-opts-2 .opt { justify-content: flex-start; }
.es-back { min-height: 44px; padding: 0 0.75rem 0 0.25rem; }
.es-head-cta { font-size: 0.8125rem !important; padding: 0 0.9rem !important; min-height: 44px; border-radius: 0.5rem !important; }
.es-menu-btn { padding: 0.625rem; min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.es-optbox { min-width: 0; max-width: 100%; border: 1px solid rgba(15, 34, 64, 0.12); border-radius: 0.75rem; padding: 0.5rem 0.85rem 0.75rem; background: #FAF7F0; }
.es-optbox legend { font-size: 0.875rem; font-weight: 700; color: #4B5563; padding: 0 0.35rem; }
.es-optrow { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-top: 0.5rem; }
.es-optrow label { font-size: 1rem; color: #0F2240; font-weight: 500; flex: 1 1 auto; min-width: 0; }
.es-select { flex: 0 0 52%; max-width: 52%; min-height: 44px; font-size: 1rem; color: #0F2240; background: #fff; border: 2px solid #E5E7EB; border-radius: 0.6rem; padding: 0 0.5rem; }
.es-select:focus { border-color: #0F2240; outline: none; box-shadow: 0 0 0 2px rgba(15, 34, 64, 0.2); }
/* Cookie banner: text and the two buttons side by side, so it stays low and leaves question 1 visible */
.es-cookie-row { display: flex; flex-direction: row; align-items: center; gap: 0.6rem; }
.es-cookie-btns { display: flex; flex-shrink: 0; gap: 0.4rem; }
@media (max-width: 639px) {
  .es-cookie-btn { min-width: 76px; padding: 0 0.6rem; }
  .es-cookie-text { font-size: 0.78rem; line-height: 1.35; }
  .es-q-hint { font-size: 0.875rem; }
}
@media (min-width: 640px) { .es-cookie-row { gap: 1rem; } }
#momentum-message:empty { display: none; }
@media (max-width: 639px) { #cookie-banner { padding: 0.6rem 0.75rem; } }
.es-nowrap { white-space: nowrap; }

/* ── A/B test (17/11): version A = loft only, version B = loft + heat pump. <html data-v> is set in <head>. ── */
html:not([data-v="B"]) .only-b { display: none !important; }
html[data-v="B"] .only-a { display: none !important; }
/* B subtitle: 2 short lines on a phone, kept tight so question 1 stays above the cookie banner at 375x667 */
.es-sub-b { font-size: 0.8125rem; line-height: 1.25; }
@media (max-width: 767px) { .es-h1-b { margin-bottom: 0.25rem !important; } }
@media (min-width: 768px) { .es-sub-b { font-size: 1rem; line-height: 1.375; } }
.es-optrow--stack { flex-direction: column; align-items: stretch; gap: 0.35rem; }
.es-optrow--stack .es-select { flex: none; max-width: 100%; width: 100%; }
.es-pacnote { margin-top: 0.75rem; padding: 0.6rem 0.75rem; border-radius: 0.6rem; background: rgba(15, 34, 64, 0.05); border-left: 3px solid #C9A84C; font-size: 0.875rem; line-height: 1.45; color: #0F2240; text-align: left; }
.es-hp-layout { display: grid; grid-template-columns: 1fr; gap: 1.25rem; align-items: start; }
@media (min-width: 768px) { .es-hp-layout { grid-template-columns: 5fr 6fr; gap: 2rem; } }
.es-hp-photo { border-radius: 1rem; overflow: hidden; aspect-ratio: 4 / 3; box-shadow: 0 12px 30px -14px rgba(15, 34, 64, 0.35); }
.es-hp-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.es-hp-cards { display: grid; grid-template-columns: 1fr; gap: 0.75rem; }

/* ── v7 (18/11) : page calée sur la page France ── */
.es-legal-line { text-align: center; font-size: 0.8125rem; color: #6B7280; margin-top: 0.25rem; }
.es-legal-line a { color: #6B7280; text-decoration: underline; display: inline-flex; align-items: center; min-height: 44px; }
.es-legal-line a:hover { color: #0F2240; }
.es-map-wrap { max-width: 560px; margin-left: auto; margin-right: auto; }
.es-map { width: 100%; height: auto; display: block; }
.es-map-wrap figcaption { font-size: 0.75rem; color: #6B7280; text-align: center; margin-top: 0.5rem; line-height: 1.45; }
.es-book-btn { display: flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 48px; padding: 0.75rem 1rem; border-radius: 0.75rem; border: 2px solid #0F2240; color: #0F2240; font-weight: 700; font-size: 0.9375rem; background: #fff; text-decoration: none; transition: background-color 0.2s ease; }
.es-book-btn:hover { background: #F3EEE2; }
.es-legal-part { margin-top: 3rem !important; padding-top: 1.5rem; border-top: 1px solid rgba(15, 34, 64, 0.12); }
/* En-tête mobile comme la page France : bouton plus discret (zone à toucher gardée à 44 px) */
.es-head-cta { font-size: 0.75rem !important; padding: 0 0.8rem !important; }
@media (max-width: 400px) { header .tracking-\[0\.16em\] { letter-spacing: 0.1em; } }
/* Mobile : un peu moins d'air autour de la carte, pour garder Yes / No au premier écran avec le panneau « Your loft » */
@media (max-width: 767px) {
  #hero > div { padding-top: 1rem; }
  #quizCard .px-6.py-6 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
  #area-panel { margin-bottom: 0.75rem; }
  #quiz-questions > .mb-5 { margin-bottom: 1rem; }
  #step-dots { margin-bottom: 0.75rem; }
  #momentum-message { margin-bottom: 0.75rem; }
}

/* « + » du titre B : le glyphe Fraunces est trop fin (presque invisible), on le passe en Inter gras */
.es-plus { font-family: "Inter", system-ui, sans-serif; font-weight: 700; }

/* Mini-carte de la zone dans la question 1 + carte en grand (18/11). Depuis la zone à 25 provinces, la vignette est
   à côté de la question et la liste des régions passe dessous en pleine largeur. */
.es-q1-hintrow { display: flex; align-items: center; gap: 0.75rem; }
.es-q1-hintrow h4, .es-q1-hintrow .es-q-hint { flex: 1 1 auto; margin: 0; }
.es-q1-map { position: relative; flex: 0 0 auto; display: block; background: #FAF7F0; border: 1px solid rgba(201,168,76,0.45); border-radius: 10px; padding: 3px; cursor: pointer; }
.es-q1-map img { width: 72px; height: auto; display: block; }
.es-q1-map span { position: absolute; right: 2px; bottom: 2px; font-size: 0.625rem; font-weight: 700; color: #fff; background: #1B2A4A; border-radius: 6px; padding: 1px 5px; line-height: 1.4; }
.es-chip-map { background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 2px; }
.es-map-dialog { margin: auto; border: 0; border-radius: 16px; padding: 0; max-width: min(92vw, 620px); width: 100%; box-shadow: 0 24px 60px -16px rgba(15,34,64,0.35); }
.es-map-dialog::backdrop { background: rgba(15,34,64,0.55); }
.es-map-dialog-inner { position: relative; padding: 16px 16px 14px; background: #fff; }
.es-map-dialog-inner img { width: 100%; height: auto; display: block; }
.es-map-dialog-title { font-weight: 700; color: #1B2A4A; margin: 0 40px 8px 0; font-size: 1rem; }
.es-map-dialog-note { font-size: 0.8125rem; color: #4B5563; margin-top: 8px; line-height: 1.45; }
.es-map-close { position: absolute; top: 8px; right: 10px; width: 36px; height: 36px; border-radius: 999px; border: 0; background: #F3F4F6; color: #1B2A4A; font-size: 1.5rem; line-height: 1; cursor: pointer; }
