/* AP7SERVICES MOBILE ALLÉGÉ - Fichier chargé UNIQUEMENT sur téléphone (max 700px).
   Les styles PC et tablette large restent intacts. */
@media(max-width:700px){
  html{scroll-padding-top:74px}
  main{display:flex;flex-direction:column}
  main>.web-hero{order:1}
  main>.ap7m-jump{order:2}
  main>.ap7of-section{order:3}
  main>.ap7of-estimate{order:4}
  main>.ap7of-maint{order:5}
  main>.web-examples{order:6}
  main>.web-services{order:7;display:none}
  main>.web-steps{order:8;display:none}
  main>.faq{order:9;display:none}
  main>.req-link-section{order:10;display:none}
  main>section:not(.web-hero):not(.ap7of-section):not(.ap7of-estimate):not(.ap7of-maint):not(.web-examples):not(.web-services):not(.web-steps):not(.faq):not(.req-link-section){order:11}
  /* Hero: first screen focuses on prices instead of decoration */
  .web-hero{padding:22px 0 23px!important}
  .web-hero .breadcrumb,.web-hero-art,.web-hero .hero-micro,.web-hero .actions>.btn:not(.ap7m-hero-go){display:none!important}
  .web-hero-grid{display:block!important}
  .web-hero .eyebrow{font-size:10px;padding:6px 9px}
  .web-hero h1{font-size:clamp(29px,8.5vw,40px);line-height:1.11;margin:12px 0!important;letter-spacing:-.04em}
  .web-hero .lead{display:none!important}
  .web-hero .ap7m-shortlead{display:block;color:#d0e2ff;font-size:14px;line-height:1.45;margin:0 0 14px}
  .web-hero .actions{display:block;margin-top:0!important}
  .web-hero .ap7m-hero-go{display:inline-flex!important;width:100%;justify-content:center;font-size:14px;padding:12px 14px}
  .ap7m-jump{display:flex;gap:7px;justify-content:center;background:#f2f6ff;padding:10px 16px;border-bottom:1px solid #dce6fa}
  .ap7m-jump a{flex:1;text-align:center;color:#173a82;font-size:12px;font-weight:800;text-decoration:none;padding:9px 5px;background:white;border:1px solid #d9e3f6;border-radius:10px}
  .ap7of-section,.ap7of-estimate,.ap7of-maint{padding:25px 0!important}
  .ap7of-head{text-align:left;margin:0 0 16px!important}
  .ap7of-head h2{font-size:clamp(23px,6.5vw,30px);margin:8px 0!important;line-height:1.14}
  .ap7of-head>p{display:none}
  .ap7of-head .eyebrow{font-size:10px}
  /* 3 small offers rather than 3 very tall cards */
  .ap7of-grid{display:grid;grid-template-columns:1fr;gap:9px}
  .ap7of-card{display:grid!important;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;column-gap:10px;row-gap:4px;padding:14px 15px;border-radius:15px;box-shadow:0 5px 18px rgba(8,40,110,.06)}
  .ap7of-card .ap7of-badge,.ap7of-card>p:not(.ap7of-price):not(.ap7of-pages):not(.ap7of-badge),.ap7of-card ul{display:none!important}
  .ap7of-card h3{grid-area:1/1;font-size:17px;margin:0;line-height:1.15}
  .ap7of-card .ap7of-price{grid-area:1/2;font-size:25px;line-height:1;margin:0;text-align:right}
  .ap7of-card .ap7of-price small{font-size:11px}
  .ap7of-card .ap7of-pages{grid-area:2/1;color:#49607f;font-size:13px;margin:0}
  .ap7of-card .ap7of-link{grid-area:2/2;margin:0!important;min-width:110px;padding:8px;font-size:11px;border-radius:9px;align-self:center}
  .ap7of-featured{outline-width:1.5px}
  .ap7of-disclaimer{display:none!important}
  .ap7m-conditions{display:block;font-size:12px;line-height:1.5;color:#4e6280;margin:12px 0 0}
  .ap7m-conditions>p{margin:0 0 5px;font-weight:700}
  .ap7m-conditions details summary{color:#2851d1;cursor:pointer;font-size:12px}
  .ap7m-conditions details p{margin:7px 0 0}
  /* Minimal quote form with first and second-year totals always in view */
  .ap7of-estimate{scroll-margin-top:75px}
  .ap7of-form{gap:12px}
  .ap7of-form fieldset{padding:10px;gap:5px;border-radius:14px}
  .ap7of-form legend{font-size:13px}
  .ap7of-option{flex-wrap:nowrap;min-height:40px;padding:8px 9px;border-radius:9px;gap:8px}
  .ap7of-option input{width:16px;height:16px}
  .ap7of-option strong{font-size:12px}
  .ap7of-option small{display:none}
  .ap7of-option b{margin-left:0!important;font-size:12px;white-space:nowrap}
  .ap7of-estimate-layout{gap:13px}
  .ap7of-recap{padding:17px;border-radius:16px}
  .ap7of-recapeyebrow{font-size:10px;margin:0}
  .ap7of-recap h3{font-size:14px;margin:0 0 3px;color:#435873}
  .ap7of-recap .ap7of-rline:not(.ap7of-total):not(.ap7of-future){display:none}
  .ap7of-rline{padding:9px 0;align-items:center}
  .ap7of-total{border-bottom:1px solid #d9e4f3;padding:7px 0 12px}
  .ap7of-total span{font-size:14px}
  .ap7of-total strong{font-size:25px;letter-spacing:-.025em}
  .ap7of-future{border:0;padding:10px 0 0}
  .ap7of-future>span{font-size:13px}
  .ap7of-future strong{font-size:17px;color:#1238ff}
  .ap7of-hint{font-size:10px}
  #ap7of-renewal-note.ap7of-renewal-note,.ap7of-recap>p:not(.ap7of-recapeyebrow):not(.ap7m-estimate-note){display:none}
  .ap7m-breakdown-toggle{display:inline-flex;justify-content:space-between;align-items:center;width:100%;background:transparent;border:0;padding:4px 0;color:#315b9c;font-size:12px;font-weight:700;font-family:inherit;cursor:pointer;text-align:left}
  .ap7of-recap.ap7m-show-breakdown .ap7of-rline:not(.ap7of-total):not(.ap7of-future){display:flex}
  .ap7of-recap.ap7m-show-breakdown #ap7of-renewal-note.ap7of-renewal-note,.ap7of-recap.ap7m-show-breakdown>p:not(.ap7of-recapeyebrow):not(.ap7m-estimate-note){display:block}
  .ap7m-estimate-note{display:block!important;margin:10px 0 0!important;font-size:11px!important;line-height:1.4!important;color:#526582!important}
  .ap7of-cta{margin-top:10px;padding:11px 14px;font-size:14px}
  .ap7of-privacy{display:none}
  /* Maintenance becomes one optional block instead of two tall cards */
  .ap7of-maintgrid,.ap7of-guarantee,.ap7of-tiny{display:none!important}
  .ap7m-maint-summary{display:block;border:1px solid #d5e3fa;background:#f6f9ff;border-radius:15px;padding:14px}
  .ap7m-maint-price{display:grid;grid-template-columns:1fr 1fr;gap:10px}
  .ap7m-maint-price>span{display:grid;gap:3px}
  .ap7m-maint-price>span+span{border-left:1px solid #d3dff1;padding-left:10px}
  .ap7m-maint-price strong{color:#173e88;font-size:13px}
  .ap7m-maint-price small{color:#192f58;font-size:15px;font-weight:850}
  .ap7m-maint-summary>p{color:#4d6587;font-size:11px;line-height:1.45;margin:11px 0}
  .ap7m-maint-summary details{border-top:1px solid #d7e3f7;padding-top:10px;font-size:12px;color:#4e617b}
  .ap7m-maint-summary summary{font-weight:800;color:#2043bb;cursor:pointer}
  .ap7m-maint-summary details>div{margin:12px 0}
  .ap7m-maint-summary details p{margin:4px 0;line-height:1.5}
  /* three project examples accessible with one tap, without bulky screenshots/gallery */
  .web-examples{padding:24px 0!important}
  .web-examples .section-intro{margin:0!important}
  .web-examples .section-intro h2{font-size:23px;line-height:1.15;margin:8px 0 14px}
  .web-examples .section-intro .muted{display:none}
  .web-examples .preview-layout{display:none!important}
  .ap7m-examples{display:block;border:1px solid #3e6da8;background:#142b53;border-radius:12px;padding:12px 14px}
  .ap7m-examples summary{cursor:pointer;font-size:14px;font-weight:800;color:#fff;display:flex;align-items:center;justify-content:space-between;gap:10px}
  .ap7m-examples-list{display:grid;gap:9px;padding-top:12px}
  .ap7m-examples-list a{display:flex;align-items:center;gap:10px;text-decoration:none;color:#eef5ff;background:#0b2348;border-radius:9px;padding:7px}
  .ap7m-examples-list img{width:76px;height:49px;object-fit:cover;border-radius:6px}
  .ap7m-examples-list a span{display:grid;gap:3px;min-width:0}
  .ap7m-examples-list a strong{font-size:12px}
  .ap7m-examples-list a small{font-size:11px;color:#b7d8ff}
  main>section:last-child{display:none!important}
  footer .footergrid>div:nth-child(n+2){display:none}
  footer .footergrid{display:block;padding-top:20px;padding-bottom:6px}
  footer .footergrid>div:first-child p:first-of-type{display:none}
  footer .footergrid .footer-title{font-size:13px}
  footer .footergrid p{font-size:12px;line-height:1.55}
  footer{padding-top:8px!important}
  .ap7m-legal{display:flex;flex-wrap:wrap;gap:12px 18px;margin:0 auto;padding:6px 20px 12px;font-size:11px;max-width:980px}
  .ap7m-legal a{color:#cfdbf8}
  .mobile-cta{padding:6px!important;gap:6px!important;border-radius:13px!important}
  .mobile-cta .btn{font-size:12px!important;padding:10px 8px!important}
  footer{padding-bottom:72px}
}
@media(min-width:701px){.ap7m-shortlead,.ap7m-legal,.ap7m-jump,.ap7m-hero-go,.ap7m-conditions,.ap7m-maint-summary,.ap7m-breakdown-toggle,.ap7m-estimate-note,.ap7m-examples{display:none!important}}


/* Menu mobile autonome : sur certains navigateurs le menu du thème
   ouvre la croix sans afficher les liens. Le panneau n'est plus dépendant
   du positionnement de .navlinks à l'intérieur de l'en-tête. */
@media(max-width:700px){
  .ap7m-menu-overlay[hidden]{display:none!important}
  .ap7m-menu-overlay{
    position:fixed!important;inset:0!important;z-index:2147483000!important;
    display:block!important;background:rgba(5,16,40,.64)!important;
    padding:82px 12px 26px!important;box-sizing:border-box!important;
    -webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);
  }
  .ap7m-menu-panel{
    position:relative!important;display:flex!important;flex-direction:column!important;
    width:100%!important;max-width:520px!important;margin:0 auto!important;
    max-height:calc(100dvh - 105px)!important;overflow-y:auto!important;
    -webkit-overflow-scrolling:touch;
    background:#fff!important;border:1px solid #d7e4f5!important;border-radius:17px!important;
    padding:14px!important;box-sizing:border-box!important;
    box-shadow:0 28px 65px rgba(4,17,46,.4)!important;
  }
  .ap7m-menu-panel-header{display:flex;justify-content:space-between;align-items:center;padding:5px 8px 12px;border-bottom:1px solid #e1e9f6;gap:12px}
  .ap7m-menu-panel-header strong{font-size:16px;color:#09234d;letter-spacing:-.01em}
  .ap7m-menu-close{width:38px;height:38px;border-radius:10px;background:#ebf1ff;border:1px solid #d7e4f5;color:#133fc4;font-size:22px;font-weight:700;cursor:pointer}
  .ap7m-menu-links{display:grid!important;gap:4px!important;padding-top:10px}
  .ap7m-menu-links a{display:block!important;color:#1a376a!important;background:#f7faff!important;border-radius:11px!important;
    padding:13px 14px!important;font-size:15px!important;font-weight:750!important;text-decoration:none!important;line-height:1.3!important}
  .ap7m-menu-links a[aria-current="page"]{background:#e9efff!important;color:#1238ff!important}
  body.ap7m-menu-visible{overflow:hidden!important}
  header:has(.menu-btn[aria-expanded="true"]){z-index:50}
}
