/* Menu mobile V&A 1.0 : uniquement si <body class="vamob">, uniquement sur mobile/tablette */
@media (max-width:1024px){
/* panneau : toute la largeur, glisse depuis la gauche */
body.vamob .mobile-menu-floating{width:100vw!important;max-width:100vw!important;left:-105vw!important;right:auto!important;height:100vh;height:100dvh;padding:0 22px calc(28px + env(safe-area-inset-bottom))!important;background:#fff;box-sizing:border-box;overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;transition:left .38s cubic-bezier(.3,.7,.2,1)!important;display:flex;flex-direction:column;gap:0}
body.vamob.mobile-menu-active .mobile-menu-floating{left:0!important}
body.vamob.mobile-menu-active{overflow:hidden}
/* haut : logo + fermer */
body.vamob .mobile-menu-floating .header-titles{padding:16px 0 4px;order:0}
body.vamob .mobile-menu-floating .header-titles img{max-height:40px;width:auto}
body.vamob .mobile-menu-floating a.mobile-menu-toggle{position:absolute!important;top:16px;right:14px;left:auto!important;width:48px;height:48px;border-radius:50%;background:#f1f7f2;display:grid;place-items:center;z-index:3}
body.vamob .mobile-menu-floating a.mobile-menu-toggle i.close-icon{display:block;width:22px;height:22px;position:relative}
/* entrées */
body.vamob .mobile-menu-wrapper{order:1;margin:10px 0 0!important}
body.vamob ul.mobile-menu{margin:0;padding:0;list-style:none}
body.vamob ul.mobile-menu>li{border-bottom:1px solid #e6efe8}
body.vamob ul.mobile-menu>li:last-child{border-bottom:0}
body.vamob .mobile-menu-wrapper ul.mobile-menu li>a{display:flex;align-items:center;gap:12px;padding:7px 4px!important;font-size:18px!important;font-weight:600!important;line-height:1.2!important;color:#1a2e44!important;letter-spacing:-.01em;min-height:40px;-webkit-tap-highlight-color:transparent}
body.vamob .mobile-menu-wrapper ul.mobile-menu li.current-menu-item>a,body.vamob .mobile-menu-wrapper ul.mobile-menu li>a:active{color:#226332!important}
body.vamob .mobile-menu-wrapper ul.mobile-menu li.current-menu-item>a::after{content:"";width:8px;height:8px;border-radius:50%;background:#61ce70;margin-left:auto}
/* Habitat partagé : mis en avant */
body.vamob ul.mobile-menu>li.vamob-hab{border:0;margin:6px 0}
body.vamob .mobile-menu-wrapper ul.mobile-menu li.vamob-hab>a{background:linear-gradient(135deg,#eaf7ec,#fff4ea);border:1.5px solid #bfe6c6;border-radius:18px;padding:14px 16px!important;min-height:0;gap:14px}
body.vamob .vamob-ico{flex:none;width:44px;height:44px;border-radius:50%;background:#61ce70 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a2e44' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11l9-8 9 8'/%3E%3Cpath d='M5 10v10h14V10'/%3E%3Cpath d='M12 17s-3-1.8-3-3.8a1.7 1.7 0 013-.6 1.7 1.7 0 013 .6c0 2-3 3.8-3 3.8z'/%3E%3C/svg%3E") center/24px no-repeat}
body.vamob .vamob-t{display:flex;flex-direction:column;font-size:19px;line-height:1.2}
body.vamob .vamob-t small{font-size:13.5px;font-weight:500;color:#526172;margin-top:3px}
body.vamob .vamob-hab em{margin-left:auto;font-style:normal;font-size:12px;font-weight:700;background:#f4a261;color:#1a2e44;border-radius:999px;padding:4px 10px}
/* sous-menus éventuels */
body.vamob ul.mobile-menu li.menu-item-has-children>ul.sub-menu li>a{font-size:17px!important;font-weight:500!important;padding:12px 4px 12px 18px!important;min-height:0}
/* accès rapides : mandataire + zone */
body.vamob ul.mobile-menu>li.vamob-more{display:grid;grid-template-columns:1fr 1fr;gap:10px;border:0;margin:8px 0 0}
body.vamob .mobile-menu-wrapper ul.mobile-menu li.vamob-more>a{flex-direction:column;align-items:flex-start;gap:8px;background:#f1f7f2;border:1.5px solid #dcebdf;border-radius:16px;padding:12px 12px!important;min-height:0;font-size:15px!important}
body.vamob .vamob-mi{width:34px;height:34px;border-radius:50%;background:#fff center/19px no-repeat;border:1.5px solid #bfe6c6;flex:none}
body.vamob .vamob-i-man{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a2e44' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H7a2 2 0 00-2 2v14a2 2 0 002 2h10a2 2 0 002-2V8z'/%3E%3Cpath d='M14 3v5h5M9 14l2 2 4-4'/%3E%3C/svg%3E")}
body.vamob .vamob-i-zone{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a2e44' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s7-6.2 7-11.5A7 7 0 005 9.5C5 14.8 12 21 12 21z'/%3E%3Ccircle cx='12' cy='9.5' r='2.5'/%3E%3C/svg%3E")}
body.vamob .vamob-more .vamob-t{font-size:15px;font-weight:700;line-height:1.2}body.vamob .vamob-more .vamob-t small{font-size:12px}
/* appels à l'action : remplacent le téléphone et le Contact d'origine (masqués, jamais supprimés) */
body.vamob .mobile-menu-floating .vamob-orig,body.vamob .mobile-menu-floating li.vamob-orig{display:none!important}
body.vamob .vamob-cta{order:3;display:grid;gap:10px;margin-top:auto;padding-top:14px}
body.vamob .vamob-cta a{display:flex;align-items:center;gap:14px;border-radius:20px;padding:13px 16px;min-height:56px;text-decoration:none;-webkit-tap-highlight-color:transparent;transition:transform .15s}
body.vamob .vamob-cta a:active{transform:scale(.98)}
body.vamob .vamob-ci{flex:none;width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:#fff}
body.vamob .vamob-cta svg{width:22px;height:22px;fill:none;stroke:#1a2e44;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
body.vamob .vamob-ct{display:flex;flex-direction:column;font:700 19px/1.2 "Readex Pro",system-ui,sans-serif;color:#1a2e44}
body.vamob .vamob-ct small{font:600 12.5px/1.3 system-ui,sans-serif;opacity:.8;margin-bottom:2px}
body.vamob .vamob-call{background:#61ce70;box-shadow:0 10px 22px rgba(97,206,112,.3)}
body.vamob .vamob-go{background:#f9b58c;box-shadow:0 10px 22px rgba(249,181,140,.4)}
body.vamob .vamob-ar{margin-left:auto;width:38px;height:38px;border-radius:50%;background:#1a2e44;display:grid;place-items:center}
body.vamob .vamob-ar svg{stroke:#fff;width:18px;height:18px}
/* une seule animation : les entrées apparaissent à l'ouverture */
body.vamob.mobile-menu-active ul.mobile-menu>li{animation:vamob-in .45s both cubic-bezier(.3,.7,.2,1)}
body.vamob.mobile-menu-active ul.mobile-menu>li:nth-child(1){animation-delay:.08s}body.vamob.mobile-menu-active ul.mobile-menu>li:nth-child(2){animation-delay:.12s}body.vamob.mobile-menu-active ul.mobile-menu>li:nth-child(3){animation-delay:.16s}body.vamob.mobile-menu-active ul.mobile-menu>li:nth-child(4){animation-delay:.2s}body.vamob.mobile-menu-active ul.mobile-menu>li:nth-child(5){animation-delay:.24s}body.vamob.mobile-menu-active ul.mobile-menu>li:nth-child(n+6){animation-delay:.28s}
@keyframes vamob-in{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){body.vamob .mobile-menu-floating{transition:none!important}body.vamob.mobile-menu-active ul.mobile-menu>li{animation:none}}
body.vamob .mobile-menu-floating a:focus-visible{outline:3px solid #226332;outline-offset:3px;border-radius:10px}
}

/* Habitat partagé déjà présent dans le menu (avec sous-menu) : mis en avant sans toucher à son fonctionnement */
body.vamob ul.mobile-menu>li.vamob-habx{margin:8px 0;border:1.5px solid #bfe6c6!important;border-radius:18px;background:linear-gradient(135deg,#eaf7ec,#fff4ea);padding:2px 12px}
body.vamob ul.mobile-menu>li.vamob-habx>a{color:#1a2e44!important}
body.vamob ul.mobile-menu>li.vamob-habx>a::before{content:"Nouveau";order:2;margin-left:8px;font-size:11px;font-weight:700;background:#f4a261;color:#1a2e44;border-radius:999px;padding:3px 9px;line-height:1.3}

/* Barre d'appel au scroll (mobile uniquement) */
.vamob-bar{display:none}
@media (max-width:1024px){
body.vamob .vamob-bar{display:flex;gap:8px;position:fixed;left:12px;right:84px;bottom:calc(12px + env(safe-area-inset-bottom));z-index:9990;transform:translateY(140%);opacity:0;pointer-events:none;transition:transform .35s cubic-bezier(.2,.8,.2,1),opacity .25s}
body.vamob.vamob-bar-on .vamob-bar{transform:none;opacity:1;pointer-events:auto}
body.vamob.mobile-menu-active .vamob-bar{display:none}
body.vamob .vamob-bar a{display:flex;align-items:center;justify-content:center;text-decoration:none;border-radius:999px;box-shadow:0 8px 22px rgba(26,46,68,.22);-webkit-tap-highlight-color:transparent}
body.vamob .vamob-bar svg{width:22px;height:22px;flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
body.vamob .vamob-b1{flex:1;gap:10px;background:#61ce70;color:#1a2e44;padding:10px 16px;min-height:52px}
body.vamob .vamob-b1 span{display:flex;flex-direction:column;font-size:12px;line-height:1.1;font-weight:600}
body.vamob .vamob-b1 b{font-size:17px;font-weight:800;letter-spacing:.01em}
body.vamob .vamob-b2{width:52px;min-height:52px;background:#f9b58c;color:#1a2e44}
body.vamob.vamob-bar-on{padding-bottom:76px}
}
@media (prefers-reduced-motion:reduce){body.vamob .vamob-bar{transition:none}}

/* 1.2.0 : bande collée en bas, pleine largeur ; la bulle de chat reste libre à droite */
@media (max-width:1024px){
body.vamob .vamob-bar{left:0;right:0;bottom:0;gap:10px;background:#fff;border-top:1px solid #dcebdf;box-shadow:0 -6px 20px rgba(26,46,68,.10);padding:10px 84px calc(10px + env(safe-area-inset-bottom)) 12px;border-radius:0}
body.vamob .vamob-bar a{box-shadow:none;border-radius:14px}
body.vamob .vamob-b1{min-height:48px;padding:8px 14px}
body.vamob .vamob-b2{width:48px;min-height:48px}
body.vamob-cta-bottom.vamob-bar-on{padding-bottom:72px}
}

/* 1.2.0 : bande bleu marine pleine largeur ; badge reCAPTCHA et bulle de chat remontent au-dessus */
@media (max-width:1024px){
body.vamob .vamob-bar{background:#1a2e44;border-top:0;box-shadow:0 -6px 20px rgba(26,46,68,.25);padding:10px 12px calc(10px + env(safe-area-inset-bottom)) 12px}
body.vamob-cta-bottom.vamob-bar-on .vamob-lift{transform:translateY(-76px)!important;transition:transform .35s}
body.vamob-cta-bottom.vamob-bar-on .grecaptcha-badge{bottom:84px!important}
}

/* 1.2.0 : variantes choisies dans Réglages > Menu mobile V&A */
@media (max-width:1024px){
body.vamob-cta-top .vamob-bar{top:0;bottom:auto;transform:translateY(-140%);padding:8px 12px;box-shadow:0 6px 20px rgba(26,46,68,.25)}
body.vamob-cta-top.vamob-bar-on .vamob-bar{transform:none}
body.vamob-cta-top .vamob-b1{min-height:44px}body.vamob-cta-top .vamob-b2{width:44px;min-height:44px}
body.vamob-cta-bubble .vamob-bar{left:14px;right:auto;bottom:calc(16px + env(safe-area-inset-bottom));background:transparent;padding:0;box-shadow:none}
body.vamob-cta-bubble .vamob-bar a.vamob-b1{width:58px;min-height:58px;padding:0;border-radius:50%;flex:none;box-shadow:0 8px 22px rgba(26,46,68,.3)}
body.vamob-cta-bubble .vamob-bar a.vamob-b2,body.vamob-cta-bubble .vamob-bar .vamob-b1 span{display:none}
body.vamob-cta-bubble .vamob-b1 svg{width:26px;height:26px}
}

/* 1.4.0 : ajustements d'affichage sur téléphone — bandeau d'annonce du haut et titres */
@media (max-width:767px){
/* Bandeau d'annonce : phrase complete sur UNE seule ligne (taille ajustee automatiquement), lien en dessous. */
body.vamob .vahp-bar{flex-direction:column;flex-wrap:nowrap;justify-content:center;align-items:center;gap:2px;padding:7px 36px 7px 10px;line-height:1.3}
body.vamob .vahp-bar>span{display:block;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:14px;text-align:center}
body.vamob .vahp-bar>a{flex:none;font-size:13px;white-space:nowrap}
body.vamob .blog-inner .post-title,body.vamob .blog-inner .post-title-head{font-size:clamp(19px,5.6vw,24px)!important;line-height:1.28!important}
body.vamob :is(h1,h2,h3,h4,.elementor-heading-title,.entry-title,.post-title,.post-title-head){max-width:100%;overflow-wrap:break-word;word-break:normal;-webkit-hyphens:auto;hyphens:auto;text-wrap:balance}
}
