/* DISPON DESKTOP REFRESH — 2026-10-18
   Desktop/laptop visual polish only. Mobile (<=900px) is intentionally untouched. */
@media (min-width:901px){
  :root{
    --desktop-max:1360px;
    --desktop-gutter:clamp(24px,3vw,48px);
    --desktop-section-gap:clamp(48px,5vw,76px);
  }

  html,body{overflow-x:hidden}
  body{background:#f6faf7}
  .site-header{position:sticky;top:0;z-index:1000;background:rgba(255,255,255,.97)!important;backdrop-filter:blur(10px);border-bottom:1px solid #dcebe1!important;box-shadow:0 4px 18px rgba(15,31,23,.05)!important}
  .site-header .header-inner,.site-header .header-container{width:min(var(--desktop-max),calc(100% - 2*var(--desktop-gutter)));max-width:var(--desktop-max);min-height:78px;margin-inline:auto;padding-inline:0!important;gap:18px}
  .site-header .mobile-menu-toggle{display:none!important}
  .site-header .nav{display:flex!important;position:static!important;flex-direction:row!important;align-items:center!important;gap:clamp(8px,1vw,16px)!important;margin-left:auto!important;background:transparent!important;padding:0!important;box-shadow:none!important;max-width:none!important;width:auto!important;border:0!important}
  .site-header .nav a{display:inline-flex!important;align-items:center;min-height:40px;padding:8px 5px!important;border:0!important;border-bottom:2px solid transparent!important;border-radius:8px!important;font-size:clamp(10px,.82vw,13px)!important;font-weight:700!important;white-space:nowrap!important;color:#17241d!important}
  .site-header .nav a:hover,.site-header .nav a.active{color:#075a27!important;background:#f1f9f4!important;border-bottom-color:#075a27!important}
  .site-header .header-actions{display:flex!important;align-items:center;gap:7px!important;margin-left:0!important;flex:0 0 auto}
  .site-header .header-actions>*{white-space:nowrap}
  .site-header .header-pro-cta,.site-header .city-pill,.site-header .login-pill,.site-header .signup-pill{font-size:clamp(9px,.72vw,12px)!important;padding:9px 11px!important;min-height:40px!important;border-radius:11px!important}
  .site-header .city-pill span{margin-left:7px!important}

  /* Keep the 901–1180px laptop header usable without changing phones. */
  @media (min-width:901px) and (max-width:1180px){
    .site-header .header-inner,.site-header .header-container{width:calc(100% - 28px);gap:10px}
    .site-header .nav{gap:4px!important}
    .site-header .nav a{font-size:11px!important;padding-inline:4px!important}
    .site-header .header-pro-cta{display:none!important}
    .site-header .city-pill{font-size:11px!important;padding-inline:8px!important}
    .site-header .login-pill,.site-header .signup-pill{font-size:11px!important;padding-inline:8px!important}
  }

  main{width:100%}
  .hero-modern,.hero{width:min(var(--desktop-max),calc(100% - 2*var(--desktop-gutter)));max-width:var(--desktop-max);margin:0 auto!important}
  .hero-modern{min-height:560px;padding:58px 0 46px!important;grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr)!important;gap:clamp(34px,5vw,72px)!important;align-items:center!important}
  .hero-modern-copy{max-width:650px!important;padding:0!important}
  .hero-modern-copy h1{font-size:clamp(46px,5vw,70px)!important;line-height:1.02!important;letter-spacing:-.055em!important;margin:18px 0 18px!important}
  .hero-modern-copy p{max-width:650px!important;font-size:clamp(16px,1.35vw,20px)!important;line-height:1.65!important;margin-bottom:28px!important}
  .hero-eyebrow{font-size:12px!important;padding:9px 13px!important;border-radius:999px!important}
  .hero-actions{display:flex!important;gap:12px!important;align-items:center!important;justify-content:flex-start!important;flex-wrap:wrap!important}
  .hero-actions .btn{min-height:48px!important;padding-inline:20px!important}
  .hero-steps{max-width:680px!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important;margin-top:30px!important}
  .hero-steps li{font-size:12px!important}
  .hero-modern-visual{min-height:0!important;height:auto!important;display:flex!important;align-items:center!important;justify-content:center!important;margin:0!important;padding:0!important}
  .hero-modern-visual img{display:block!important;width:100%!important;max-width:650px!important;height:auto!important;max-height:none!important;object-fit:cover!important;border-radius:24px!important;box-shadow:0 22px 55px rgba(15,31,23,.12)!important}
  .hero-floating-card{right:18px!important;bottom:18px!important}

  /* Search section: one coherent desktop card. */
  .search-section{width:min(1160px,calc(100% - 2*var(--desktop-gutter)))!important;max-width:1160px!important;margin:10px auto 0!important;padding:42px 42px 34px!important;border-radius:26px!important;background:#fff!important;border:1px solid #dcebe1!important;box-shadow:0 18px 48px rgba(15,31,23,.08)!important}
  .search-heading{max-width:820px!important;margin:0 auto 28px!important;display:block!important;text-align:left!important}
  .search-heading .section-kicker{margin-bottom:14px!important}
  .search-heading h2{font-size:clamp(36px,3.5vw,50px)!important;line-height:1.04!important;letter-spacing:-.045em!important;margin:0!important}
  .search-heading p{max-width:720px!important;font-size:16px!important;line-height:1.65!important;margin:14px 0 0!important}
  .search-box{grid-template-columns:1.2fr 1.1fr .8fr auto!important;gap:12px!important;align-items:end!important;padding:14px!important;border-radius:20px!important;background:#f7fbf8!important;border:1px solid #e1eee5!important;box-shadow:none!important}
  .search-field{min-width:0!important}
  .search-field input,.search-field select{min-height:50px!important}
  .search-button{min-height:50px!important;white-space:nowrap!important;padding-inline:22px!important}
  .search-proof,.popular-searches{margin-top:18px!important}

  .trust-strip{width:min(1160px,calc(100% - 2*var(--desktop-gutter)))!important;margin:24px auto 0!important;border:1px solid #dcebe1!important;border-radius:20px!important;background:#fff!important;box-shadow:0 8px 26px rgba(15,31,23,.05)!important}
  .trust-strip>div{padding:18px 20px!important}

  .content-section,.feature-banner,.urgency-section,.ai-section,.contact-section,.dispon-strasbourg-section{width:min(var(--desktop-max),calc(100% - 2*var(--desktop-gutter)))!important;max-width:var(--desktop-max)!important;margin-left:auto!important;margin-right:auto!important}
  .content-section{padding-left:0!important;padding-right:0!important;margin-top:var(--desktop-section-gap)!important;margin-bottom:var(--desktop-section-gap)!important}
  .section-title-row{align-items:end!important;margin-bottom:24px!important}
  .section-title-row h2{font-size:clamp(30px,3vw,42px)!important}
  .service-categories{grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:16px!important}
  .service-card{min-height:190px!important}
  .professionals{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:18px!important}
  .professional-card{min-width:0!important}

  .dispon-strasbourg-section{padding:0!important;margin-top:var(--desktop-section-gap)!important;margin-bottom:var(--desktop-section-gap)!important}
  .dispon-strasbourg-inner{min-height:470px!important;grid-template-columns:minmax(0,1fr) minmax(420px,.95fr)!important;border-radius:28px!important}
  .dispon-strasbourg-copy{padding:52px!important}
  .dispon-strasbourg-copy h2{font-size:clamp(40px,4.4vw,58px)!important}
  .dispon-strasbourg-lead{max-width:700px!important;font-size:19px!important;line-height:1.6!important}
  .dispon-strasbourg-visual{padding:28px!important}
  .dispon-strasbourg-visual img{max-width:620px!important;border-radius:22px!important}

  .feature-banner{min-height:420px!important;padding:44px!important;border-radius:26px!important;gap:42px!important}
  .feature-banner h2{font-size:clamp(32px,3.4vw,48px)!important}
  .feature-banner p{max-width:600px!important;font-size:16px!important;line-height:1.65!important}
  .feature-banner img{max-height:340px!important}
  .steps-container{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:16px!important}
  .step-card{min-height:190px!important}
  .urgency-section{min-height:180px!important;padding:34px 40px!important;border-radius:24px!important}
  .ai-section{margin-top:var(--desktop-section-gap)!important;margin-bottom:var(--desktop-section-gap)!important}
  .ai-card{padding:46px!important;min-height:300px!important;border-radius:26px!important}
  .contact-section{min-height:170px!important;padding:34px 40px!important;border-radius:24px!important}

  /* Internal/auth/legal/admin pages: consistent desktop rhythm. */
  .legal-page,.auth-page,.password-page,.contact-page,.tracking-page,.professional-page,.admin-page,.dashboard-page,.client-main,.messages-page{width:min(1180px,calc(100% - 2*var(--desktop-gutter)))!important;max-width:1180px!important;margin-left:auto!important;margin-right:auto!important}
  .legal-page,.auth-page,.password-page,.contact-page,.tracking-page{padding-top:48px!important;padding-bottom:64px!important}
  .legal-card,.content-card,.info-card,.contact-card,.tracking-card,.auth-card,.password-card{border-radius:20px!important;box-shadow:0 12px 32px rgba(15,31,23,.06)!important}
  .auth-card{max-width:980px!important}
  .auth-card,.password-card{padding:38px!important}
  .professional-page{padding-top:48px!important;padding-bottom:64px!important}
  .professional-hero{margin-bottom:34px!important}
  .professional-form-section{border-radius:22px!important;padding:34px!important}
  .professional-form{gap:12px!important}
  .professional-form input,.professional-form select,.professional-form textarea{min-height:48px!important}
  .client-main{padding:44px 0 70px!important}
  .client-grid{gap:22px!important}
  .messages-page{padding:44px 0 70px!important}
  .admin-page{padding-top:44px!important;padding-bottom:70px!important}

  .site-footer{margin-top:var(--desktop-section-gap)!important;padding-top:58px!important}
  .footer-container{width:min(1360px,calc(100% - 2*var(--desktop-gutter)))!important;max-width:1360px!important;margin-inline:auto!important;grid-template-columns:1.45fr 1fr 1fr 1fr 1.25fr!important;gap:28px!important}
  .footer-bottom{width:min(1360px,calc(100% - 2*var(--desktop-gutter)))!important;max-width:1360px!important;margin-inline:auto!important;padding:22px 0 26px!important}
}

/* DISPON RESPONSIVE DESKTOP FIX — 2026-10-19
   Base preserved. Mobile behavior remains unchanged (<=900px).
   901–1199px = compact laptop/iPad landscape desktop.
   >=1200px = full desktop. */
@media (min-width:901px){
  /* The old header duplicated authentication controls in .header-actions.
     On desktop we use the two auth links already inside the main nav. */
  .site-header .header-actions{display:none!important}
  .site-header .nav .auth-nav-login,
  .site-header .nav .auth-nav-signup{
    display:inline-flex!important;
    align-items:center;
    justify-content:center;
    gap:6px;
    flex:0 0 auto;
    min-height:40px!important;
    padding:8px 12px!important;
    border:1px solid #075a27!important;
    border-radius:11px!important;
    background:#fff!important;
    color:#075a27!important;
    font-weight:800!important;
    text-decoration:none!important;
    border-bottom:1px solid #075a27!important;
  }
  .site-header .nav .auth-nav-login:hover,
  .site-header .nav .auth-nav-signup:hover{
    background:#e6f5ea!important;
    color:#075a27!important;
    border-color:#075a27!important;
  }
  .site-header .nav .auth-nav-login{background:#075a27!important;color:#fff!important}
  .site-header .nav .auth-nav-login:hover{background:#043d1b!important;color:#fff!important}
  .site-header .nav .auth-link-icon{width:16px;height:16px;flex:0 0 16px}

  /* Keep the navigation inside the laptop viewport instead of allowing it to
     trigger the mobile-looking overflow seen in the base version. */
  .site-header .header-inner{
    width:calc(100% - 32px)!important;
    max-width:1440px!important;
    gap:12px!important;
  }
  .site-header .logo{flex:0 0 auto!important}
  .site-header .brand-logo-full{display:block!important;width:auto!important;height:44px!important;max-width:150px!important;object-fit:contain}
  .site-header .nav{min-width:0!important;flex:1 1 auto!important;margin-left:auto!important;justify-content:flex-end!important;gap:clamp(4px,.65vw,11px)!important}
  .site-header .nav a{font-size:clamp(10px,.78vw,13px)!important;padding:7px clamp(3px,.35vw,6px)!important;min-width:0!important}

  /* Center the local-availability badge across the complete hero on desktop. */
  .hero-modern{position:relative!important;padding-top:82px!important}
  /* Keep the centered territory badge in its own visual band so it never
     overlaps the hero headline on laptop/desktop. */
  .hero-modern-copy{padding-top:42px!important}
  .hero-modern > .hero-modern-copy > .hero-eyebrow{
    position:absolute!important;
    top:22px!important;
    left:50%!important;
    transform:translateX(-50%)!important;
    z-index:2!important;
    margin:0!important;
    white-space:nowrap!important;
  }

  /* Search remains a single row on wide desktop, but becomes a clean 2x2
     layout on laptop/iPad landscape so no field is squeezed or clipped. */
  .search-box>*{min-width:0!important}
}

@media (min-width:901px) and (max-width:1199px){
  .site-header .header-inner{min-height:70px!important;width:calc(100% - 24px)!important;gap:8px!important}
  .site-header .brand-logo-full{height:40px!important;max-width:132px!important}
  .site-header .nav{gap:2px!important}
  .site-header .nav a{font-size:11px!important;padding:7px 3px!important;letter-spacing:-.01em!important}
  .site-header .nav .auth-nav-login,
  .site-header .nav .auth-nav-signup{min-height:36px!important;padding:7px 7px!important;font-size:11px!important;gap:3px!important;border-radius:9px!important}
  .site-header .nav .auth-link-icon{display:none!important}

  .hero-modern{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:28px!important;min-height:500px!important;padding-top:76px!important}
  .hero-modern-copy{padding-top:34px!important}
  .hero-modern > .hero-modern-copy > .hero-eyebrow{font-size:11px!important;padding:8px 11px!important;max-width:90vw!important;overflow:hidden!important;text-overflow:ellipsis!important}
  .hero-modern-copy h1{font-size:clamp(40px,5vw,54px)!important}
  .hero-modern-copy p{font-size:15px!important;line-height:1.55!important}
  .hero-modern-visual img{max-width:520px!important}

  .search-section{width:calc(100% - 24px)!important;padding:30px 24px 28px!important}
  .search-heading{max-width:none!important}
  .search-box{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:12px!important}
  .search-button{width:100%!important}
  .search-proof,.popular-searches{min-width:0!important}

  .service-categories{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  .professionals{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .steps-container{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .dispon-strasbourg-inner{grid-template-columns:minmax(0,1fr) minmax(300px,.85fr)!important}
  .dispon-strasbourg-copy{padding:36px!important}
}

@media (min-width:1200px){
  .site-header .header-inner{min-height:78px!important;width:min(1440px,calc(100% - 48px))!important}
  .site-header .brand-logo-full{height:46px!important;max-width:160px!important}
  .site-header .nav{gap:clamp(6px,.7vw,13px)!important}
  .site-header .nav a{font-size:clamp(11px,.78vw,13px)!important;padding-inline:5px!important}
  .site-header .nav .auth-nav-login,
  .site-header .nav .auth-nav-signup{font-size:12px!important;padding-inline:12px!important}
  .hero-modern{padding-top:88px!important}
  .hero-modern-copy{padding-top:48px!important}
}

/* DISPON RESPONSIVE PROFESSIONAL PASS — 2026-10-19 / 2026.10
   Goal: desktop, laptop and tablet layouts reach the same visual discipline as mobile.
   Mobile <=767px remains untouched. No business logic is changed here. */
@media (min-width:768px){
  html,body{overflow-x:hidden}
  .site-header .header-inner,.site-header .header-container{box-sizing:border-box}
  .hero-modern,.search-section,.content-section,.marketplace-confidence,.feature-banner,
  .urgency-section,.ai-section,.contact-section,.dispon-strasbourg-section{box-sizing:border-box}
}

/* Tablet / iPad portrait: keep the familiar menu, but give the page a real tablet canvas. */
@media (min-width:768px) and (max-width:900px){
  .site-header .header-inner{min-height:72px!important;width:calc(100% - 36px)!important;max-width:1100px!important}
  .site-header .mobile-menu-toggle{display:grid!important;place-items:center!important;margin-left:auto!important}
  .site-header .nav{display:none!important}
  .site-header .header-actions{display:none!important}
  .hero-modern{width:calc(100% - 36px)!important;max-width:1100px!important;display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:30px!important;min-height:0!important;padding:56px 0 44px!important;align-items:center!important}
  .hero-modern-copy{padding:22px 0 12px!important;max-width:100%!important}
  .hero-modern-copy h1{font-size:clamp(42px,6.4vw,58px)!important;line-height:1.02!important;margin:16px 0 18px!important}
  .hero-modern-copy p{font-size:16px!important;line-height:1.6!important}
  .hero-modern > .hero-modern-copy > .hero-eyebrow{position:static!important;transform:none!important;display:inline-flex!important;white-space:normal!important;max-width:100%!important;margin:0 0 14px!important;font-size:11px!important;padding:8px 11px!important}
  .hero-modern-visual{order:initial!important;width:100%!important;aspect-ratio:4/3!important;min-height:0!important}
  .hero-modern-visual img{width:100%!important;height:100%!important;object-fit:contain!important;object-position:center!important;border-radius:22px!important}
  .hero-actions{display:flex!important;flex-wrap:wrap!important}
  .search-section{width:calc(100% - 36px)!important;max-width:1100px!important;margin:18px auto 0!important;padding:34px 30px 30px!important}
  .search-box{grid-template-columns:1fr 1fr!important;gap:12px!important}
  .search-button{grid-column:1/-1!important;width:100%!important}
  .service-categories{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  .professionals{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .steps-container{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .marketplace-confidence{grid-template-columns:repeat(3,minmax(0,1fr))!important;width:calc(100% - 36px)!important;margin-inline:auto!important}
  .feature-banner,.urgency-section,.ai-section,.contact-section{width:calc(100% - 36px)!important;margin-left:auto!important;margin-right:auto!important}
  .dispon-strasbourg-section{width:calc(100% - 36px)!important}
}

/* Laptop: reserve a real band for the territory badge; it must never touch the H1. */
@media (min-width:901px) and (max-width:1199px){
  .hero-modern{min-height:570px!important;padding-top:104px!important;padding-bottom:48px!important;align-items:center!important}
  .hero-modern-copy{padding-top:72px!important}
  .hero-modern > .hero-modern-copy > .hero-eyebrow{top:28px!important;max-width:calc(100% - 24px)!important;overflow:visible!important;text-overflow:clip!important;white-space:nowrap!important}
  .hero-modern-copy h1{font-size:clamp(42px,4.7vw,56px)!important;line-height:1.04!important;margin-top:12px!important}
  .hero-modern-copy p{max-width:600px!important}
  .hero-modern-visual{align-self:center!important}
  .hero-modern-visual img{max-width:540px!important}
  .search-section{margin-top:20px!important}
}

/* Full desktop: spacious, marketplace-style hero and clear information hierarchy. */
@media (min-width:1200px){
  .hero-modern{min-height:640px!important;padding-top:112px!important;padding-bottom:54px!important;align-items:center!important}
  .hero-modern-copy{padding-top:70px!important}
  .hero-modern > .hero-modern-copy > .hero-eyebrow{top:30px!important}
  .hero-modern-copy h1{font-size:clamp(50px,4.6vw,70px)!important;line-height:1.01!important;margin-top:12px!important;margin-bottom:20px!important}
  .hero-modern-copy p{max-width:650px!important;font-size:18px!important;line-height:1.62!important}
  .hero-modern-visual img{max-width:660px!important}
  .search-section{margin-top:26px!important}
}

/* Very wide screens: prevent the marketplace from becoming stretched or sparse. */
@media (min-width:1500px){
  .hero-modern{gap:76px!important}
  .search-section,.trust-strip{max-width:1240px!important}
  .service-categories{grid-template-columns:repeat(4,minmax(0,1fr))!important}
  .professionals{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}

/* Desktop component quality: stable card heights and safer long marketplace labels. */
@media (min-width:901px){
  .service-card,.professional-card,.step-card{min-width:0!important;overflow:hidden!important}
  .service-card h3,.professional-card h3,.step-card h3{overflow-wrap:anywhere!important;text-wrap:balance}
  .service-card p,.professional-card p,.step-card p{overflow-wrap:anywhere!important}
  .professional-actions{min-width:0!important}
  .professional-actions .btn,.professional-actions button,.service-button{white-space:nowrap!important}
  .search-field{min-width:0!important}
  .search-field input,.search-field select,.search-button{min-width:0!important;max-width:100%!important}
}

/* DISPON MOBILE MENU + FOOTER MICRO-FIX — 2026.11
   Safe patch on top of 2026.10. No business logic changes.
   Fixes the menu trigger after deep scroll and guarantees footer-bottom text contrast. */
@media (max-width:900px){
  /* When the menu locks the document at the current scroll position, a sticky
     header can otherwise inherit the negative body offset and disappear.
     Keep the header pinned to the viewport while the menu is open so the
     hamburger becomes a reliable X in the same physical place. */
  body.mobile-nav-open .site-header{
    position:fixed !important;
    top:0 !important;
    left:0 !important;
    right:0 !important;
    width:100% !important;
    z-index:10050 !important;
  }
  body.mobile-nav-open .site-header .mobile-menu-toggle{
    position:static !important;
    visibility:visible !important;
    opacity:1 !important;
    z-index:10052 !important;
  }
  body.mobile-nav-open .mobile-nav-backdrop{
    z-index:10040 !important;
  }
  body.mobile-nav-open .mobile-nav-portal{
    z-index:10045 !important;
  }
}

/* Footer legal line: never inherit the dark page text color on the green footer. */
.site-footer .footer-bottom,
.site-footer .footer-bottom p,
.site-footer .footer-bottom p:first-child,
.site-footer .footer-bottom p:last-child{
  color:#e5f8eb !important;
}
.site-footer .footer-bottom p:first-child{font-weight:700 !important;}
.site-footer .footer-bottom p:last-child{opacity:1 !important;}

/* =====================================================================
   DISPON 2026.12 — LAYOUT / TYPOGRAPHY POLISH  (2026-10-19)
   No business logic touched. Fixes headings, labels, alignment, sizing.
   ===================================================================== */

/* ---- ALL SCREENS: small section labels are real pills, not full-width green bars ---- */
.section-kicker{display:inline-block!important;width:fit-content!important;max-width:100%;padding:5px 11px!important;border-radius:999px!important;line-height:1.3!important;margin-bottom:10px!important;vertical-align:top}
.section-heading-center .section-kicker,.how-it-works .section-kicker{margin-inline:auto}
.search-field select,.search-field input{text-overflow:ellipsis}
/* any promo image that carries its own headline must never be cropped */
.visual-refresh-section img{max-height:none!important;height:auto!important;aspect-ratio:1536/576;object-fit:contain!important;object-position:center!important}

/* ---- PHONES: 7 service cards = 3 rows of 2 + one centred card (no orphan hole) ---- */
@media (max-width:767px){
  .service-categories>.service-card:last-child:nth-child(odd){grid-column:1/-1;justify-self:center;width:calc(50% - 5px)}
}

/* ---- iPAD PORTRAIT: slightly calmer vertical rhythm ---- */
@media (min-width:768px) and (max-width:900px){
  .search-heading,.section-title-row{margin-bottom:20px!important}
  .content-section{padding-inline:clamp(18px,3vw,28px)!important}
}

/* ---- LAPTOP / DESKTOP (>= 901px): one shared container, readable text ---- */
@media (min-width:901px){
  html body{--dx-w:1360px;--dx-gutter:clamp(20px,3vw,44px);--dx-gap:clamp(44px,4.6vw,72px);--dx-box:min(var(--dx-w),calc(100% - 2*var(--dx-gutter)))}

  /* every block starts and ends on the same vertical lines */
  html body .site-header .header-inner,html body .site-header .header-container{width:var(--dx-box)!important;max-width:var(--dx-w)!important}
  html body .hero-modern,html body .search-section,html body .trust-strip,html body .marketplace-confidence,
  html body .content-section,html body .feature-banner,html body .urgency-section,html body .ai-section,
  html body .contact-section,html body .dispon-strasbourg-section,
  html body .footer-container,html body .footer-bottom{width:var(--dx-box)!important;max-width:var(--dx-w)!important;margin-left:auto!important;margin-right:auto!important}

  /* search card: heading left-aligned with the form, wider fields (no clipped placeholders) */
  html body .search-section{padding:clamp(24px,3vw,40px)!important}
  html body .search-heading{max-width:none!important;margin:0 0 24px!important}
  html body .search-box{grid-template-columns:minmax(0,1.25fr) minmax(0,1.25fr) minmax(0,1fr) auto!important}
  html body .search-field .field-help,html body .search-field small{overflow-wrap:break-word}

  /* section cards get real inner padding so headings never touch the card edge */
  html body .content-section{padding:clamp(24px,3vw,44px)!important}

  /* services: 4 + 3 centred (3 per row on narrow laptops), titles never cut mid-word */
  html body .service-categories{display:flex!important;flex-wrap:wrap!important;justify-content:center!important;gap:18px!important}
  html body .service-categories>*{flex:0 0 calc((100% - 3*18px)/4)!important;max-width:calc((100% - 3*18px)/4)!important;min-height:0!important}
  html body .service-card h3,html body .professional-card h3,html body .step-card h3{overflow-wrap:break-word!important;word-break:normal!important;hyphens:auto;-webkit-hyphens:auto;font-size:clamp(16px,1.3vw,20px)!important;line-height:1.2!important;text-wrap:balance}
  html body .service-card p,html body .professional-card p,html body .step-card p{overflow-wrap:break-word!important}

  /* promo banners: show the full artwork (headline included) */
  html body .feature-banner,html body .urgency-section,html body .contact-section{min-height:0!important}
  html body .feature-banner{display:block!important;padding:clamp(14px,1.6vw,22px)!important}
  html body .feature-banner img{width:100%!important}

  html body .site-footer{margin-top:var(--dx-gap)!important}
}
@media (min-width:901px) and (max-width:1099px){
  html body .service-categories>*{flex-basis:calc((100% - 2*18px)/3)!important;max-width:calc((100% - 2*18px)/3)!important}
}
/* iPad landscape / small laptop: legible header (was 9px) – secondary links move to the footer/page sections */
@media (min-width:901px) and (max-width:1199px){
  html body .site-header .nav a[href="#ai-section"],
  html body .site-header .nav a[href="contact.html"]:nth-of-type(7){display:none!important}
  html body .site-header .nav a{font-size:11px!important;padding-inline:5px!important}
  html body .site-header .nav .auth-nav-login,html body .site-header .nav .auth-nav-signup{font-size:11px!important;padding-inline:9px!important}
}

@media (min-width:901px){
  /* the territory badge is centred across the whole hero (its positioning parent was the text column) */
  html body .hero-modern>.hero-modern-copy{position:static!important}
  html body .hero-modern{position:relative!important;padding-left:clamp(20px,3vw,48px)!important;padding-right:clamp(20px,3vw,48px)!important}
}

@media (min-width:901px){
  /* hero: left-aligned copy, compact badge band, equal-height service cards */
  html body .hero-modern{min-height:0!important;padding-top:88px!important;padding-bottom:clamp(32px,3.6vw,52px)!important}
  html body .hero-modern>.hero-modern-copy{padding-top:0!important;text-align:left!important}
  html body .hero-modern-copy h1,html body .hero-modern-copy p{text-align:left!important;margin-left:0!important}
  html body .hero-modern>.hero-modern-copy>.hero-eyebrow{top:26px!important}
  html body .hero-actions{justify-content:flex-start!important}
  html body .service-categories>*{align-self:stretch!important}
}
@media (min-width:901px) and (max-width:1199px){
  html body .search-box{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important}
  html body .search-box .search-button{grid-column:1/-1!important;width:100%!important}
  html body .hero-steps{grid-template-columns:repeat(2,minmax(0,1fr))!important;max-width:420px!important}
  html body .hero-actions .btn{font-size:14px!important;padding-inline:16px!important}
}

@media (min-width:901px) and (max-width:1199px){
  /* 2 columns: [service][address] / [availability][Rechercher] – no staggered or half-empty rows */
  html body .search-box{align-items:stretch!important}
  html body .search-box .search-button{grid-column:auto!important;align-self:end!important;width:100%!important;min-height:56px!important}
}

/* ---- iPAD PORTRAIT (768–900): same inset + hierarchy as laptop, hero stacked ---- */
@media (min-width:768px) and (max-width:900px){
  html body .content-section,html body .trust-strip{width:calc(100% - 36px)!important;max-width:1100px!important;margin-left:auto!important;margin-right:auto!important;box-sizing:border-box!important}
  html body .content-section{padding:28px clamp(20px,3.4vw,30px)!important;margin-top:36px!important;margin-bottom:36px!important}
  html body .trust-strip{margin-top:18px!important}
  /* search heading: one column (label, title, text) instead of three squeezed columns */
  html body .search-heading{display:block!important;margin:0 0 20px!important}
  html body .search-heading h2{font-size:clamp(30px,4.6vw,38px)!important;line-height:1.08!important}
  html body .search-heading p{max-width:none!important}
  html body .search-box{align-items:stretch!important}
  html body .search-box .search-button{grid-column:auto!important;align-self:end!important;width:100%!important;min-height:56px!important}
  /* hero: copy first, picture below – no cramped 3-line headline */
  html body .hero-modern{grid-template-columns:minmax(0,1fr)!important;gap:26px!important;padding:78px 0 34px!important;justify-items:center}
  html body .hero-modern>.hero-modern-copy{max-width:640px!important;text-align:center!important}
  html body .hero-modern-copy h1,html body .hero-modern-copy p{text-align:center!important;margin-inline:auto!important}
  html body .hero-modern>.hero-modern-copy>.hero-eyebrow{position:absolute!important;top:24px!important;left:50%!important;transform:translateX(-50%)!important;white-space:nowrap!important;margin:0!important;font-size:11px!important}
  html body .hero-actions{justify-content:center!important}
  html body .hero-steps{grid-template-columns:repeat(4,minmax(0,1fr))!important;max-width:640px!important;margin-inline:auto!important;text-align:left}
  html body .hero-modern-visual{width:100%!important;max-width:620px!important;aspect-ratio:auto!important}
  html body .hero-modern-visual img{height:auto!important}
  /* 7 services: 3 per row, last row centred, equal card heights */
  html body .service-categories{display:flex!important;flex-wrap:wrap!important;justify-content:center!important;gap:14px!important}
  html body .service-categories>*{flex:0 0 calc((100% - 2*14px)/3)!important;max-width:calc((100% - 2*14px)/3)!important;align-self:stretch!important;min-height:0!important}
  html body .service-card h3{overflow-wrap:break-word!important;font-size:clamp(16px,2.3vw,19px)!important;line-height:1.2!important}
}

@media (min-width:768px) and (max-width:900px){
  html body .hero-modern{position:relative!important;padding-top:92px!important}
  html body .hero-modern>.hero-modern-copy{position:static!important;padding-top:0!important}
  html body .search-box>.search-field{align-self:stretch!important}
}

/* ---- inner pages: readable line length + proportionate page titles ---- */
@media (min-width:901px){
  html body .legal-page{width:min(920px,calc(100% - 2*var(--dx-gutter,32px)))!important;max-width:920px!important}
  html body .legal-page h1{font-size:clamp(34px,3.4vw,46px)!important;line-height:1.08!important}
  html body .legal-page p,html body .legal-page li{max-width:75ch}
}
@media (min-width:768px){
  html body .password-card h1{font-size:clamp(28px,2.8vw,36px)!important;line-height:1.12!important;letter-spacing:-.02em!important;overflow-wrap:break-word}
}

/* =====================================================================
   DISPON REFRESH — PROMO BANNER TEXT VISIBILITY FIX
   Only fixes responsive rendering of the three artwork banners.
   No HTML, JS, auth, booking, database, or functionality changes.
   ===================================================================== */
.visual-refresh-link,
.visual-refresh-link img{
  box-sizing:border-box!important;
}
html body .visual-refresh-section .visual-refresh-link{
  width:100%!important;
  max-width:none!important;
  overflow:hidden!important;
}
html body .visual-refresh-section .visual-refresh-link img{
  display:block!important;
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  aspect-ratio:auto!important;
  object-fit:contain!important;
  object-position:center center!important;
  transform:none!important;
}
@media (max-width:760px){
  html body .visual-refresh-section .visual-refresh-link img{
    width:100%!important;
    height:auto!important;
    aspect-ratio:auto!important;
    object-fit:contain!important;
    object-position:center center!important;
  }
}
