/* HADS HOME MOBILE V76 — ACCUEIL ONLY. Desktop >=701px untouched. */
@media (max-width:700px){
  html,body{overflow-x:hidden!important}
  .page-home main,.page-home main>section{max-width:100%!important}

  /* HERO: same geometry in FR / EN / DE; restore full artwork instead of portrait crop. */
  #hadsHomeV47{width:100%!important;max-width:100%!important;margin:0!important;overflow:hidden!important}
  #hadsHomeV47 .hads-home-v47-stage{
    position:relative!important;width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;
    aspect-ratio:1672/940!important;margin:0!important;overflow:hidden!important;border-radius:0 0 16px 16px!important;background:#f7f4fa!important
  }
  #hadsHomeV47 .hads-home-v47-image{
    position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-width:none!important;
    object-fit:fill!important;object-position:center center!important;transform:none!important;margin:0!important
  }
  #hadsHomeV47 .hads-home-v47-actions{
    position:absolute!important;z-index:30!important;left:50%!important;right:auto!important;bottom:4.2%!important;
    transform:translateX(-50%)!important;width:calc(100% - 34px)!important;max-width:760px!important;
    display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:8px!important;margin:0!important
  }
  #hadsHomeV47 .hads-home-v47-cta{
    width:100%!important;min-width:0!important;min-height:38px!important;padding:5px 9px!important;
    font-size:clamp(8px,2.35vw,10px)!important;line-height:1.08!important;white-space:normal!important;text-align:center!important
  }
  #hadsHomeV47 .hads-home-v47-nav{width:100%!important;padding:8px 0 6px!important;overflow:hidden!important}
  #hadsHomeV47 .hads-home-v47-nav-inner{display:flex!important;width:100%!important;gap:8px!important;padding:0 14px 10px!important;overflow-x:auto!important;scroll-snap-type:x proximity!important}
  #hadsHomeV47 .hads-home-v47-nav-inner>a{flex:0 0 min(72vw,260px)!important;width:auto!important;min-width:0!important;min-height:62px!important;scroll-snap-align:center!important}
  #hadsHomeV47 .hads-home-v47-slogan{width:100%!important;padding:9px 14px 13px!important;font-size:clamp(8px,2.15vw,10px)!important;text-align:center!important}

  /* All HOME sections: one centered mobile flow, never desktop side-by-side. */
  .page-home #from-idea,.page-home #why-tunisia,.page-home #why-hads,.page-home #quality-compliance,
  .page-home #experience-references,.page-home #start-project,.page-home #industrial-capability{
    width:calc(100% - 24px)!important;height:auto!important;min-height:0!important;max-width:none!important;
    margin:12px auto 0!important;padding:44px 0!important;overflow:hidden!important;border-radius:28px!important;display:block!important
  }
  .page-home #from-idea>.container,.page-home #why-tunisia>.container,.page-home #why-hads>.container,
  .page-home #quality-compliance>.container,.page-home #experience-references>.container,.page-home #start-project>.container,
  .page-home #industrial-capability>.container{
    width:calc(100% - 28px)!important;max-width:none!important;margin-left:auto!important;margin-right:auto!important
  }

  /* IDEA → FINISHED GARMENT: photo and 8 cards centered identically in all languages. */
  #from-idea .hads-idea-v55-head{width:calc(100% - 28px)!important;margin:0 auto 22px!important;text-align:left!important}
  #from-idea .hads-idea-v55-head .section-title{font-size:clamp(34px,9vw,46px)!important;line-height:1!important;overflow-wrap:anywhere!important}
  #from-idea .hads-idea-v55-head>p{font-size:16px!important;line-height:1.55!important}
  #from-idea .hads-idea-v55-layout{display:grid!important;grid-template-columns:1fr!important;width:calc(100% - 28px)!important;margin:0 auto!important;gap:18px!important}
  #from-idea .hads-idea-v55-visual{position:relative!important;width:100%!important;height:auto!important;min-height:0!important;aspect-ratio:4/3!important;border-radius:24px!important;overflow:hidden!important}
  #from-idea .hads-idea-v55-visual>img{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;object-fit:cover!important;object-position:center center!important}
  #from-idea .hads-idea-v55-caption{left:18px!important;right:18px!important;bottom:18px!important}
  #from-idea .hads-idea-v55-caption strong{font-size:clamp(18px,5vw,25px)!important;line-height:1.08!important;overflow-wrap:anywhere!important}
  #from-idea .hads-process-v55{display:grid!important;grid-template-columns:1fr!important;width:100%!important;height:auto!important;gap:14px!important}
  #from-idea .hads-process-v55 .process-item{width:100%!important;min-height:190px!important;height:190px!important;margin:0!important;transform:none!important}
  #from-idea .hads-process-v55 .process-thumb{width:100%!important;height:100%!important;object-fit:cover!important;object-position:center center!important;transform:none!important}

  /* Remaining homepage media/grids: remove desktop offsets and keep photos centered. */
  #why-tunisia .nearshore-v7-grid,#quality-compliance .responsibility-grid,.industrial-v7-grid,.refs-v7-head,.cta-v7-inner{
    display:grid!important;grid-template-columns:1fr!important;width:calc(100% - 28px)!important;max-width:none!important;margin:0 auto!important;gap:24px!important
  }
  #why-tunisia .nearshore-map,#quality-compliance .resp-visual,.industrial-v7-visual{
    width:100%!important;height:auto!important;min-height:0!important;aspect-ratio:4/3!important;margin:0 auto!important;border-radius:24px!important;overflow:hidden!important
  }
  #why-tunisia .nearshore-map img,#quality-compliance .resp-visual img,.industrial-v7-visual img{
    display:block!important;width:100%!important;height:100%!important;max-width:none!important;object-fit:cover!important;object-position:center center!important;margin:0!important;transform:none!important
  }
  #why-hads .why-grid,.reference-list-v7,.intro-meta.commercial-stats,#quality-compliance .resp-points,.nearshore-v7-points{
    display:grid!important;grid-template-columns:1fr!important;width:100%!important;gap:16px!important
  }
  #why-hads .why-card,.ref-card{width:100%!important;min-width:0!important;max-width:100%!important;margin:0!important;transform:none!important}
  #start-project .cta-v7-action{width:100%!important;max-width:100%!important;margin:0!important}
  #start-project .cta-v7-button{width:100%!important;max-width:100%!important;text-align:center!important;justify-content:center!important}
}

/* V77 — HOME MOBILE polish only: CTA, hero tabs and Tunisia map badge. Desktop untouched. */
@media (max-width:700px){
  /* Hero CTAs: compact, balanced and finger-friendly. */
  #hadsHomeV47 .hads-home-v47-actions{
    width:calc(100% - 46px)!important;
    max-width:620px!important;
    gap:10px!important;
    bottom:3.2%!important;
    align-items:stretch!important;
  }
  #hadsHomeV47 .hads-home-v47-cta{
    min-height:42px!important;
    padding:7px 12px!important;
    border-radius:999px!important;
    font-size:clamp(8px,2.15vw,10px)!important;
    line-height:1.08!important;
    letter-spacing:0!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:6px!important;
    box-shadow:0 7px 16px rgba(82,35,115,.14)!important;
  }

  /* Hero navigation: smaller cards so the next choice is visibly suggested. */
  #hadsHomeV47 .hads-home-v47-nav-inner{
    gap:8px!important;
    padding:0 14px 8px!important;
    scroll-padding-inline:14px!important;
  }
  #hadsHomeV47 .hads-home-v47-nav-inner>a{
    flex:0 0 56vw!important;
    max-width:220px!important;
    min-height:54px!important;
    border-radius:18px!important;
    padding:7px 10px!important;
  }
  #hadsHomeV47 .hads-home-v47-nav-inner>a small{
    flex:0 0 38px!important;
    width:38px!important;
    height:38px!important;
    min-width:38px!important;
    border-radius:13px!important;
    font-size:12px!important;
  }
  #hadsHomeV47 .hads-home-v47-nav-inner>a span,
  #hadsHomeV47 .hads-home-v47-nav-inner>a strong{
    font-size:clamp(11px,3.1vw,14px)!important;
    line-height:1.05!important;
  }

  /* Tunisia map callout: compact glass card; keep the map visible. */
  #why-tunisia .nearshore-map{
    position:relative!important;
    aspect-ratio:16/10!important;
    min-height:0!important;
    overflow:hidden!important;
  }
  #why-tunisia .nearshore-map-badge{
    position:absolute!important;
    left:14px!important;
    right:14px!important;
    bottom:14px!important;
    top:auto!important;
    width:auto!important;
    max-width:none!important;
    min-height:0!important;
    padding:14px 16px!important;
    border-radius:20px!important;
    background:rgba(19,16,28,.86)!important;
    border:1px solid rgba(255,255,255,.22)!important;
    box-shadow:0 10px 28px rgba(18,10,29,.24)!important;
    backdrop-filter:blur(10px)!important;
    -webkit-backdrop-filter:blur(10px)!important;
    transform:none!important;
    display:block!important;
  }
  #why-tunisia .nearshore-map-badge b{
    display:block!important;
    margin:0 0 5px!important;
    font-size:clamp(13px,3.7vw,17px)!important;
    line-height:1.15!important;
    letter-spacing:.02em!important;
    overflow-wrap:normal!important;
  }
  #why-tunisia .nearshore-map-badge span{
    display:block!important;
    margin:0!important;
    font-size:clamp(11px,3.15vw,14px)!important;
    line-height:1.3!important;
  }
}
