/* Y Care Connect - Etape 4 : finition mobile globale des pages publiques */
:root{--yc-mobile-gutter:16px;--yc-mobile-radius:18px;--yc-mobile-touch:44px;--yc-mobile-vh:1vh}
@media(max-width:980px){
  html{overflow-x:clip;-webkit-text-size-adjust:100%}
  body.ycare-public-mobile-step4{overflow-x:clip!important}
  body.ycare-public-mobile-step4 *,body.ycare-public-mobile-step4 *::before,body.ycare-public-mobile-step4 *::after{box-sizing:border-box}
  body.ycare-public-mobile-step4 img,body.ycare-public-mobile-step4 video,body.ycare-public-mobile-step4 iframe{max-width:100%;height:auto}
  body.ycare-public-mobile-step4 iframe{width:100%}
  body.ycare-public-mobile-step4 input,body.ycare-public-mobile-step4 select,body.ycare-public-mobile-step4 textarea{max-width:100%;font-size:16px!important}
  body.ycare-public-mobile-step4 button,body.ycare-public-mobile-step4 [role="button"],body.ycare-public-mobile-step4 input[type="submit"],body.ycare-public-mobile-step4 .button{min-height:var(--yc-mobile-touch)}

  /* Conteneurs Divi/Elementor sans débordement */
  body.ycare-public-mobile-step4 .et_pb_row,
  body.ycare-public-mobile-step4 .elementor-section .elementor-container,
  body.ycare-public-mobile-step4 .elementor-container,
  body.ycare-public-mobile-step4 main .container{
    width:min(100% - (var(--yc-mobile-gutter) * 2),1200px)!important;
    max-width:calc(100% - (var(--yc-mobile-gutter) * 2))!important;
    margin-left:auto!important;margin-right:auto!important
  }
  body.ycare-public-mobile-step4 .et_pb_column,body.ycare-public-mobile-step4 .elementor-column{min-width:0!important}
  body.ycare-public-mobile-step4 h1{font-size:clamp(30px,8vw,48px)!important;line-height:1.08!important;overflow-wrap:anywhere}
  body.ycare-public-mobile-step4 h2{font-size:clamp(25px,6.5vw,38px)!important;line-height:1.12!important;overflow-wrap:anywhere}
  body.ycare-public-mobile-step4 h3{font-size:clamp(20px,5.2vw,29px)!important;line-height:1.18!important;overflow-wrap:anywhere}
  body.ycare-public-mobile-step4 p,body.ycare-public-mobile-step4 li{overflow-wrap:anywhere}

  /* Cartes d'experts accueil/liste : dimensions régulières, sans modifier les données */
  body.ycare-public-mobile-step4 .yc-mobile-expert-card{
    width:100%!important;max-width:100%!important;min-width:0!important;
    border-radius:var(--yc-mobile-radius)!important;overflow:hidden!important
  }
  body.ycare-public-mobile-step4 .yc-mobile-expert-card img{object-fit:cover}
  body.ycare-public-mobile-step4 .yc-mobile-expert-card a[href*="/psycholoog/"]{max-width:100%}

  /* Formulaires publics, contact et authentification */
  body.ycare-public-mobile-step4 .wpcf7-form,
  body.ycare-public-mobile-step4 .gform_wrapper,
  body.ycare-public-mobile-step4 .wpforms-container,
  body.ycare-public-mobile-step4 .woocommerce form,
  body.ycare-public-mobile-step4 form.ycare-form{width:100%!important;max-width:100%!important}
  body.ycare-public-mobile-step4 .wpcf7-form input:not([type="checkbox"]):not([type="radio"]),
  body.ycare-public-mobile-step4 .wpcf7-form select,
  body.ycare-public-mobile-step4 .wpcf7-form textarea,
  body.ycare-public-mobile-step4 .gform_wrapper input:not([type="checkbox"]):not([type="radio"]),
  body.ycare-public-mobile-step4 .gform_wrapper select,
  body.ycare-public-mobile-step4 .gform_wrapper textarea,
  body.ycare-public-mobile-step4 .wpforms-container input:not([type="checkbox"]):not([type="radio"]),
  body.ycare-public-mobile-step4 .wpforms-container select,
  body.ycare-public-mobile-step4 .wpforms-container textarea{width:100%!important;min-height:48px;border-radius:12px}

  /* WooCommerce panier/paiement/compte */
  body.ycare-public-mobile-step4.woocommerce-cart .woocommerce,
  body.ycare-public-mobile-step4.woocommerce-checkout .woocommerce,
  body.ycare-public-mobile-step4.woocommerce-account .woocommerce{width:min(100% - 24px,760px)!important;margin-left:auto!important;margin-right:auto!important}
  body.ycare-public-mobile-step4 .woocommerce-checkout .col2-set,
  body.ycare-public-mobile-step4 .woocommerce-checkout #order_review,
  body.ycare-public-mobile-step4 .woocommerce-checkout #order_review_heading,
  body.ycare-public-mobile-step4 .woocommerce-account .woocommerce-MyAccount-content,
  body.ycare-public-mobile-step4 .woocommerce-account .woocommerce-MyAccount-navigation{float:none!important;width:100%!important;max-width:100%!important}
  body.ycare-public-mobile-step4 .woocommerce-account .woocommerce-MyAccount-navigation{margin-bottom:18px!important;overflow-x:auto;-webkit-overflow-scrolling:touch}
  body.ycare-public-mobile-step4 .woocommerce-account .woocommerce-MyAccount-navigation ul{display:flex!important;gap:8px!important;min-width:max-content!important;padding:4px!important;margin:0!important}
  body.ycare-public-mobile-step4 .woocommerce-account .woocommerce-MyAccount-navigation li{display:block!important;margin:0!important}
  body.ycare-public-mobile-step4 .woocommerce-account .woocommerce-MyAccount-navigation a{display:flex!important;align-items:center!important;min-height:44px!important;padding:9px 14px!important;white-space:nowrap!important;border-radius:999px!important}
  body.ycare-public-mobile-step4 .woocommerce table.shop_table{display:block!important;overflow-x:auto!important;-webkit-overflow-scrolling:touch!important;max-width:100%!important}
  body.ycare-public-mobile-step4 .woocommerce .form-row-first,
  body.ycare-public-mobile-step4 .woocommerce .form-row-last{float:none!important;width:100%!important}
  body.ycare-public-mobile-step4 .woocommerce #payment{border-radius:var(--yc-mobile-radius)!important;overflow:hidden}
  body.ycare-public-mobile-step4 .woocommerce #place_order,
  body.ycare-public-mobile-step4 .woocommerce .checkout-button{width:100%!important;min-height:52px!important}

  /* FAQ/accordéons */
  body.ycare-public-mobile-step4 .et_pb_accordion_item,
  body.ycare-public-mobile-step4 .et_pb_toggle,
  body.ycare-public-mobile-step4 details{border-radius:14px!important;overflow:hidden}
  body.ycare-public-mobile-step4 .et_pb_toggle_title,
  body.ycare-public-mobile-step4 summary{min-height:48px!important;display:flex!important;align-items:center!important;padding-right:44px!important}

  /* Footer : colonnes lisibles et liens tactiles */
  body.ycare-public-mobile-step4 footer .et_pb_row,
  body.ycare-public-mobile-step4 .et-l--footer .et_pb_row{display:grid!important;grid-template-columns:1fr 1fr!important;gap:22px 18px!important}
  body.ycare-public-mobile-step4 footer .et_pb_column,
  body.ycare-public-mobile-step4 .et-l--footer .et_pb_column{width:100%!important;margin:0!important;min-width:0!important}
  body.ycare-public-mobile-step4 footer a,body.ycare-public-mobile-step4 .et-l--footer a{display:inline-flex;align-items:center;min-height:36px}

  /* Fenêtres, réservation et consentements */
  body.ycare-public-mobile-step4 [role="dialog"],
  body.ycare-public-mobile-step4 .modal,
  body.ycare-public-mobile-step4 .ycare-modal,
  body.ycare-public-mobile-step4 [class*="booking-modal"]{
    max-width:calc(100vw - 20px)!important;max-height:calc((var(--yc-mobile-vh) * 100) - 20px)!important;
    overflow:auto!important;border-radius:18px!important
  }
}
@media(max-width:620px){
  :root{--yc-mobile-gutter:12px;--yc-mobile-radius:16px}
  body.ycare-public-mobile-step4 footer .et_pb_row,
  body.ycare-public-mobile-step4 .et-l--footer .et_pb_row{grid-template-columns:1fr!important;gap:18px!important}
  body.ycare-public-mobile-step4 .et_pb_button,
  body.ycare-public-mobile-step4 .elementor-button,
  body.ycare-public-mobile-step4 .button:not(.remove){width:100%;justify-content:center;text-align:center}
  body.ycare-public-mobile-step4 .et_pb_button_module_wrapper+ .et_pb_button_module_wrapper{margin-top:9px!important}
}
@media(max-width:380px){
  :root{--yc-mobile-gutter:10px}
  body.ycare-public-mobile-step4 h1{font-size:clamp(28px,9vw,38px)!important}
  body.ycare-public-mobile-step4 .woocommerce-cart .coupon input,
  body.ycare-public-mobile-step4 .woocommerce-cart .coupon button{float:none!important;width:100%!important;margin:0 0 8px!important}
}
@media(max-height:520px) and (orientation:landscape) and (max-width:980px){
  body.ycare-public-mobile-step4 [role="dialog"],body.ycare-public-mobile-step4 .modal,body.ycare-public-mobile-step4 .ycare-modal{max-height:calc(100vh - 12px)!important}
}
@media(prefers-reduced-motion:reduce){
  body.ycare-public-mobile-step4 *,body.ycare-public-mobile-step4 *::before,body.ycare-public-mobile-step4 *::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
}
