/* Zonga Mobile — responsive overrides
   Breakpoints: mobile ≤767 · tablet 768–1023 · desktop ≥1024
   Desktop hero/topbar live in site-premium.css (@media min-width 1024px) */

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  width: 100%;
}

main {
  width: 100%;
  overflow-x: hidden;
}

/* ── Shared mobile + tablet (< desktop) ── */
@media (max-width: 1023px) {
  .hero-phones {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
  }

  .hero-stage--split {
    grid-template-columns: 1fr;
    padding: 8px 0 0;
  }

  .hero-copy--split {
    text-align: center;
    align-items: center;
  }

  .hero-copy--split h1,
  .hero-copy--split .hero-lead,
  .hero-copy--split .hero-devis-hint {
    text-align: center;
  }

  .hero-copy--split h1 {
    max-width: none;
  }

  .hero-actions--split,
  .trust-strip--compact {
    justify-content: center !important;
  }

  .hero-visual-circle {
    order: -1;
    margin-bottom: 8px;
  }

  .hero-circle-frame {
    width: min(72vw, 280px);
  }

  .topbar--classic {
    flex-wrap: wrap;
    width: 100%;
    padding: 10px 16px;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(243, 232, 212, 0.96);
    backdrop-filter: blur(10px);
  }

  .nav-toggle {
    display: flex;
  }

  .nav-contact--classic {
    display: none !important;
  }

  .topbar-nav--classic {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    order: 3;
    padding: 12px 0 4px;
    gap: 4px;
    border-top: 1px solid rgba(42, 36, 28, 0.1);
  }

  .topbar-nav--classic.is-open {
    display: flex;
  }

  .topbar-nav--wizards > a,
  .topbar-nav--wizards .nav-dropdown-toggle {
    width: 100%;
    text-align: left;
    padding: 16px 12px;
    letter-spacing: 0.14em;
  }

  .nav-dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    background: rgba(255, 255, 255, 0.55);
    margin: 0 0 4px;
    padding: 4px 0 4px 12px;
  }

  .nav-dropdown.is-open .nav-dropdown-menu {
    display: flex;
  }

  .mobile-cta-bar {
    display: none;
  }

  .hero-shell {
    min-height: 0 !important;
    overflow: visible !important;
    padding: 0 max(16px, env(safe-area-inset-left)) 0 max(16px, env(safe-area-inset-right));
  }

  .hero-stage {
    width: 100% !important;
    max-width: 100%;
    padding: 48px 0 80px;
    min-height: 0;
  }

  .hero-shell .hero-copy {
    width: 100% !important;
    max-width: min(560px, 100%) !important;
    margin: 0 auto;
    padding: 8px 0 0 !important;
    background: none !important;
    text-align: center;
    align-items: center;
  }

  .hero-shell .hero-copy h1 {
    max-width: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
    font-size: clamp(1.85rem, 5.5vw, 2.75rem) !important;
    line-height: 1.14 !important;
    letter-spacing: -0.02em;
    text-align: center;
    white-space: normal;
    word-break: normal;
    overflow-wrap: normal;
  }

  .hero-shell .hero-copy h1 em {
    display: inline;
    white-space: nowrap;
  }

  .hero-shell .hero-path {
    justify-content: center;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-shell .hero-lead {
    max-width: 520px;
    font-size: 15px !important;
    line-height: 1.55;
    text-align: center;
  }

  .hero-shell .hero-price {
    justify-content: center !important;
    justify-items: center !important;
    margin-top: 16px !important;
  }

  .hero-shell .hero-actions {
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px !important;
    margin-top: 18px !important;
  }

  .hero-devis-hint {
    text-align: center;
  }

  .hero-shell .trust-strip {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center !important;
    align-items: center !important;
    gap: 10px 16px;
    margin-top: 20px !important;
    font-size: 11px;
    line-height: 1.35;
    max-width: 520px;
  }

  .trust-strip span {
    display: inline-flex;
  }

  /* Topbar — compact 2-row (< desktop) — legacy only */
  .topbar:not(.topbar--classic) {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100% !important;
    max-width: 100%;
    margin: 0;
    padding: 10px 0 12px;
    gap: 10px;
    grid-template-columns: auto 1fr auto !important;
    grid-template-rows: auto auto;
    background: rgba(247, 243, 236, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(184, 149, 106, 0.2);
  }

  .topbar:not(.topbar--classic) .topbar-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    justify-content: center;
    overflow-x: auto;
    gap: 8px;
  }

  .topbar:not(.topbar--classic) .topbar-nav a {
    flex-shrink: 0;
    padding: 10px 12px;
    font-size: 13px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
  }

  .nav-trust {
    display: flex !important;
    justify-self: end;
    font-size: 11px;
    gap: 6px;
    white-space: nowrap;
  }

  .nav-contact {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 10px 12px !important;
    min-width: 44px;
    min-height: 44px;
    margin-left: 0 !important;
    gap: 0 !important;
  }

  .nav-contact span {
    display: none !important;
  }

  .nav-contact .wa-ico {
    width: 20px;
    height: 20px;
    margin: 0;
    vertical-align: middle;
    display: block;
  }

  /* WhatsApp flottant — tablette : pill icon + texte centrés */
  .whatsapp-float {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    padding: 0 18px !important;
    min-height: 52px !important;
    width: auto !important;
    height: auto !important;
    border-radius: 999px !important;
    bottom: max(20px, env(safe-area-inset-bottom));
    right: max(20px, env(safe-area-inset-right));
  }

  .whatsapp-float span {
    display: inline !important;
    line-height: 1.2;
    white-space: nowrap;
  }

  .whatsapp-float .wa-ico {
    width: 20px !important;
    height: 20px !important;
    flex-shrink: 0;
    margin: 0;
    vertical-align: middle;
    display: block;
  }

  /* Hero : sans-serif propre (remplace serif + script Allura) */
  .hero-shell .hero-copy h1,
  .hero-shell .hero-copy h1 em {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif !important;
    font-style: normal !important;
    font-weight: 700 !important;
    letter-spacing: -0.03em !important;
  }

  .hero-shell .hero-copy h1 em {
    font-weight: 600 !important;
    color: var(--premium-gold-dark, #9A7848) !important;
    font-size: 1em !important;
  }

  .hero-shell .hero-price strong {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em !important;
  }
}

/* ── Phone-only (< tablet) ── */
@media (max-width: 767px) {
  body {
    padding-bottom: env(safe-area-inset-bottom, 0);
  }

  .logo-frame {
    width: 46px;
    height: 46px;
  }

  .nav-trust a {
    font-size: 10px;
  }

  .nav-contact .nav-contact-label {
    display: none;
  }

  .hero-shell .hero-stage {
    padding: 40px 0 72px;
  }

  .hero-shell .hero-copy {
    max-width: 100% !important;
    text-align: left;
    align-items: flex-start;
    padding: 12px 0 0 !important;
    gap: 0;
  }

  .hero-shell .hero-copy h1 {
    font-size: clamp(1.85rem, 7.5vw, 2.35rem) !important;
    line-height: 1.12 !important;
    text-align: left;
    max-width: 13em !important;
    margin-bottom: 4px !important;
  }

  /* Hero allégé : H1 + badge Google + prix + CTA devis (WA = barre sticky) */
  .hero-shell .hero-lead,
  .hero-shell .hero-path,
  .hero-shell .hero-trust-badges,
  .hero-shell .hero-actions .hero-wa-link {
    display: none !important;
  }

  .hero-shell .google-trust-badge {
    display: inline-flex !important;
    margin-top: 18px !important;
    width: auto;
    justify-content: flex-start;
    font-size: 13px;
    padding: 10px 14px;
  }

  .hero-shell .hero-price {
    margin-top: 24px !important;
  }

  .hero-shell .hero-price small {
    display: none !important;
  }

  .hero-shell .hero-actions {
    margin-top: 22px !important;
  }

  .eyebrow {
    font-size: 9px !important;
  }

  .hero-shell .hero-price {
    justify-content: flex-start !important;
    justify-items: start !important;
  }

  .hero-price strong {
    font-size: 34px !important;
  }

  .hero-shell .hero-actions {
    flex-direction: column;
    align-items: stretch !important;
    width: 100%;
    gap: 10px !important;
    margin-top: 18px !important;
  }

  .hero-shell .hero-actions .button {
    width: 100%;
    min-height: 52px;
    justify-content: center;
    font-size: 14px;
  }

  .google-trust-badge {
    width: 100%;
    justify-content: flex-start;
    box-sizing: border-box;
  }

  .hero-devis-hint {
    text-align: left;
    font-size: 12px;
    line-height: 1.45;
  }

  .hero-shell .trust-strip {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 8px;
    font-size: 12px;
    max-width: none;
  }

  .trust-strip span {
    display: block;
  }

  /* Devis / wizard */
  .configurator-section {
    padding: 72px 16px 88px !important;
  }

  .section-intro {
    padding: 0 !important;
    margin-bottom: 28px !important;
  }

  .section-intro h2 {
    font-size: clamp(1.5rem, 6.5vw, 2rem) !important;
    line-height: 1.08 !important;
    text-align: left;
  }

  .section-intro p {
    font-size: 14px;
    text-align: left;
  }

  .configurator-card {
    border-radius: 20px !important;
  }

  .progress-wrap {
    padding: 12px 8px 8px !important;
    gap: 4px;
    background: transparent !important;
    border-bottom: none !important;
  }

  .configurator-card .progress-step:not(:last-child)::after {
    display: none;
  }

  .progress-step {
    font-size: 0;
    justify-content: center;
  }

  .progress-step > span {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }

  .progress-step small {
    display: none;
  }

  .panel {
    min-height: 0 !important;
    padding: 24px 16px 20px !important;
  }

  .panel-heading h3 {
    font-size: clamp(1.25rem, 5.5vw, 1.5rem) !important;
    line-height: 1.15 !important;
    text-align: left;
  }

  .brand-grid {
    grid-template-columns: 1fr !important;
    gap: 10px;
  }

  .brand-choice {
    min-height: 72px;
    padding: 12px 14px;
  }

  .model-grid {
    max-height: min(55vh, 420px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    grid-template-columns: 1fr !important;
  }

  .model-choice {
    min-height: 76px;
  }

  .screen-compare {
    grid-template-columns: 1fr !important;
  }

  .screen-option {
    padding: 16px 14px;
  }

  .screen-option .screen-title {
    font-size: 18px;
  }

  .panel-actions {
    flex-direction: column-reverse;
    gap: 10px;
  }

  .panel-actions .button {
    width: 100%;
    min-height: 52px;
  }

  .button-wide {
    min-height: 52px;
    font-size: 14px;
  }

  /* Sections contenu */
  .proof-section,
  .story-section,
  .realisations-section,
  .zones-section,
  .review-section,
  .lcd-oled-section,
  .faq-section,
  .seo-content-section,
  .payment-section {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .seo-content-section,
  .story-section,
  .realisations-section,
  .lcd-oled-section,
  .payment-section {
    padding-top: 64px !important;
    padding-bottom: 64px !important;
  }

  .story-block {
    padding: 28px 20px;
    border-radius: 22px;
  }

  .story-lead {
    font-size: 18px;
  }

  .proof-section {
    padding-top: 72px !important;
    padding-bottom: 72px !important;
  }

  .proof-copy h2,
  .realisations-inner h2,
  .zones-section h2,
  .reviews-premium h2 {
    text-align: left;
    font-size: clamp(1.4rem, 6vw, 1.85rem) !important;
  }

  .proof-copy p,
  .realisations-inner > p {
    text-align: left;
    font-size: 14px;
  }

  .proof-grid {
    grid-template-columns: 1fr !important;
  }

  .ba-frames {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .ba-frame {
    min-height: 140px;
  }

  .lcd-oled-compare-head,
  .lcd-oled-compare-row {
    font-size: 12px;
  }

  .section-cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .section-cta-row .button,
  .section-cta-row a {
    width: 100%;
    text-align: center;
  }

  .zone-whatsapp-btn {
    width: 100%;
    justify-content: center;
    min-height: 48px;
  }

  /* Avis marquee */
  .reviews-marquee {
    margin-left: -16px;
    margin-right: -16px;
    width: calc(100% + 32px);
  }

  .reviews-marquee .review-slide {
    flex-basis: min(82vw, 300px) !important;
    width: min(82vw, 300px) !important;
    max-width: min(82vw, 300px) !important;
  }

  .reviews-premium {
    text-align: left;
  }

  .review-section {
    padding-top: 64px !important;
    padding-bottom: 72px !important;
  }

  .reviews-premium .section-kicker {
    display: block;
    margin-bottom: 6px;
    font-size: 10px;
    letter-spacing: 0.14em;
    opacity: 0.85;
  }

  .reviews-meta-line {
    text-align: left;
    text-transform: none !important;
    letter-spacing: 0.02em !important;
    font-size: 13px !important;
    margin-bottom: 20px !important;
    color: #8a8478 !important;
  }

  .topbar:not(.topbar--classic) .topbar-nav {
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .topbar:not(.topbar--classic) .topbar-nav::-webkit-scrollbar {
    display: none;
  }

  .topbar:not(.topbar--classic) .topbar-nav a {
    padding: 10px 12px;
    font-size: 13px;
  }

  /* Footer + FAB */
  footer {
    padding: 48px 16px 24px !important;
  }

  .footer-inner {
    gap: 20px;
  }

  .footer-sitemap {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 20px;
    max-width: none;
  }

  .footer-nav {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .footer-cta {
    width: 100%;
    justify-content: center;
    align-items: center;
    min-height: 48px;
    padding: 12px 16px;
    border-radius: 999px;
    background: rgba(196, 165, 116, 0.15);
    gap: 10px;
  }

  .footer-cta .wa-ico {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    display: block;
    margin: 0;
  }

  /* Phone : barre sticky bas (remplace le FAB) */
  .whatsapp-float {
    display: none !important;
  }

  .faq-section {
    padding-top: 64px !important;
    padding-bottom: max(112px, calc(96px + env(safe-area-inset-bottom))) !important;
    background: #faf8f4 !important;
  }

  .faq-block h2 {
    text-align: left !important;
    font-size: clamp(1.4rem, 6vw, 1.85rem) !important;
    margin-bottom: 20px !important;
  }

  .faq-item {
    border-bottom: none !important;
    background: #fff;
    border-radius: 14px;
    margin-bottom: 8px;
    border: 1px solid rgba(184, 149, 106, 0.12) !important;
    overflow: hidden;
  }

  .faq-item summary {
    padding: 16px 14px;
  }

  .faq-item p {
    padding: 0 14px 16px;
  }

  .configurator-section .section-intro {
    margin-bottom: 24px !important;
  }

  .configurator-section .section-kicker {
    opacity: 0.9;
    margin-bottom: 8px;
  }

  /* Sticky bar conversion (phone only) */
  .mobile-cta-bar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 19;
    gap: 8px;
    padding: 10px 12px max(10px, env(safe-area-inset-bottom));
    background: rgba(255, 252, 247, 0.96);
    border-top: 1px solid rgba(184, 149, 106, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 -8px 24px rgba(57, 49, 39, 0.08);
  }

  .mobile-cta-bar .mobile-cta-devis {
    flex: 1;
    min-height: 48px;
    font-size: 14px;
    padding: 0 14px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-cta-bar .mobile-cta-wa-link {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: auto;
    min-width: auto;
    height: 48px;
    min-height: 48px;
    padding: 0 16px;
    border-radius: 999px;
    background: #25d366;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
  }

  .mobile-cta-bar .mobile-cta-wa-link:active {
    transform: scale(0.96);
  }

  .mobile-cta-bar .mobile-cta-wa-link .wa-ico {
    width: 20px;
    height: 20px;
    display: block;
    flex-shrink: 0;
  }

  .mobile-cta-bar .mobile-cta-wa-label {
    display: inline;
    line-height: 1;
  }

  body {
    padding-bottom: calc(68px + env(safe-area-inset-bottom, 0));
  }

  body.wizard-open .mobile-cta-bar {
    display: none;
  }

  body.wizard-open {
    padding-bottom: env(safe-area-inset-bottom, 0);
  }
}

@media (max-width: 380px) {
  .hero-shell .hero-copy h1 {
    font-size: 1.55rem !important;
    max-width: 100% !important;
  }

  .g-reviews--nav .g-reviews-txt {
    font-size: 10px;
  }
  .g-reviews--nav .g-reviews-g {
    width: 12px;
    height: 12px;
  }
}

/* ── 14/09 — mobile : rien ne se mange ── */
@media (max-width: 1023px) {
  .topbar,
  .topbar:not(.topbar--classic) {
    height: auto !important;
    min-height: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    align-items: center;
  }

  .hero-shell .hero-copy {
    background: transparent !important;
    padding: 8px 0 0 !important;
  }

  .hero-shell .hero-copy h1 {
    max-width: 100% !important;
    overflow: visible;
    white-space: normal !important;
    overflow-wrap: break-word;
  }

  .configurator-section::before {
    display: none !important;
  }

  .configurator-card {
    overflow: visible;
  }

  .welcome-panel .panel-heading p,
  .panel-heading p,
  .panel-sub,
  .section-intro p {
    overflow-wrap: anywhere;
    white-space: normal !important;
    max-width: 100% !important;
  }

  .configurator-card {
    overflow: visible !important;
  }

  .progress-wrap {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    padding-left: 4px !important;
    padding-right: 4px !important;
  }

  .progress-step:not(:last-child)::after {
    display: none;
  }

  .quality-tiers {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .hero-shell .hero-copy h1 .h1-break {
    display: block;
  }

  .hero-shell .hero-copy h1 {
    font-size: clamp(1.7rem, 8vw, 2.05rem) !important;
    line-height: 1.18 !important;
    max-width: 100% !important;
  }

  .g-reviews--nav {
    display: none;
  }

  .topbar:not(.topbar--classic) {
    grid-template-columns: auto 1fr auto !important;
    padding: 8px 0 10px;
  }

  .topbar:not(.topbar--classic) .topbar-nav {
    justify-content: flex-start;
    padding: 0 4px;
    gap: 2px;
  }

  .topbar:not(.topbar--classic) .topbar-nav a {
    padding: 8px 10px;
    font-size: 12px;
  }

  /* Barre du bas = WhatsApp seul — plus de 2e bouton devis par-dessus le wizard */
  .mobile-cta-bar .mobile-cta-devis {
    display: none;
  }

  .mobile-cta-bar {
    justify-content: stretch;
    z-index: 40;
  }

  .mobile-cta-bar .mobile-cta-wa-link {
    flex: 1;
    justify-content: center;
  }

  .configurator-section {
    padding-bottom: 112px !important;
  }

  .offre-section,
  .preuve-section,
  .zones-section {
    padding-bottom: 96px !important;
  }

  .faq-section {
    padding-bottom: max(128px, calc(112px + env(safe-area-inset-bottom))) !important;
  }

  .screen-compare {
    grid-template-columns: 1fr !important;
    gap: 8px;
    overflow: visible !important;
  }

  .screen-compare-side {
    padding: 14px 14px !important;
    font-size: 14px !important;
    text-align: left;
  }

  .screen-compare-side strong {
    font-size: 15px !important;
  }

  .screen-compare-side span {
    font-size: 13px !important;
  }

  .panel-heading,
  .panel-heading h3,
  .welcome-panel .panel-heading h3,
  .panel-sub {
    display: block;
    width: 100%;
    max-width: 100% !important;
    white-space: normal !important;
    overflow: visible !important;
    overflow-wrap: anywhere;
    text-overflow: unset !important;
    box-sizing: border-box;
  }

  .configurator-section {
    overflow: visible !important;
  }

  .progress-wrap {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    grid-template-columns: none;
  }

  .progress-step {
    flex: 1 1 0;
    min-width: 0;
    justify-content: center;
  }

  .offre-card span:last-child {
    white-space: normal !important;
    overflow-wrap: anywhere;
    max-width: 100%;
  }

  .offre-quality h3 {
    font-size: 1.25rem !important;
    line-height: 1.25;
    text-align: left;
  }

  .offre-card span:last-child {
    white-space: normal;
    overflow-wrap: break-word;
  }

  .offre-quality {
    padding-bottom: 24px;
  }
}

/* Tablet polish (768–1023) */
@media (min-width: 768px) and (max-width: 1023px) {
  .logo-frame {
    width: 56px;
    height: 56px;
  }

  .nav-contact .nav-contact-label {
    display: none;
  }

  .configurator-section {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }

  .brand-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
