/* ============================================================
   Layhosting — Stabilité mobile & responsive (gabarit WP)
   Chargée EN DERNIER dans <head> de index.html et pages/*.html.
   Palette : prune #411874 / violet #9200d4 / rose #ff2c54 / or #f5c542
   ============================================================ */

/* --- Garde-fous globaux : aucun débordement horizontal ------ */
html, body {
  overflow-x: hidden;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; }
/* Bannière ExpoBeton : recadrage plein cadre (écrase le height:auto global) */
.ebn-img { height: 100%; }
@media (max-width: 520px) { .ebn-img { height: 190px; } }

/* --- Header mobile/tablette : fixe, opaque, lisible --------- */
@media (max-width: 991px) {
  .wraper_header.style-six.floating-header,
  .wraper_header.style-six.static-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: linear-gradient(120deg, rgba(26,8,64,.97) 0%, rgba(65,24,116,.97) 55%, rgba(88,28,150,.97) 100%);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 6px 24px rgba(10,4,40,.35);
  }
  .wraper_header.style-six .wraper_header_main > .container {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
  }
  .wraper_header.style-six .wraper_header_main .header_main .brand-logo { margin-top: 0; }
  .wraper_header.style-six .wraper_header_main .header_main .brand-logo img { max-width: 118px; }
  .wraper_header.style-six .wraper_header_main .header-responsive-nav { margin-top: 12px; }
  .wraper_header.style-six .wraper_header_main .header-responsive-nav > .header-responsive-nav-line { background-color: #ffffff; }
  .wraper_header.style-six .header_main_action { margin-top: 4px; }
  .wraper_header.style-six .header_main_action .header-cart-bar-icon { color: #ffffff; }
  .wraper_header.style-six .header_main_action .cart-count {
    background-color: #ff2c54;
    color: #ffffff;
  }
  /* Panneau menu mobile : jamais plus large que l'écran */
  .sidr, .mobile-menu-main { max-width: 85vw; }
}

/* --- Hero d'accueil : visible sur mobile + typo adaptée ----- */
@media (max-width: 991px) {
  section.vc_custom_1711647422107 {
    display: block !important;
    padding: 88px 0 46px !important;
  }
  .home-one-banner h2.vc_custom_heading {
    font-size: 30px !important;
    line-height: 1.28 !important;
  }
  .home-one-banner p.vc_custom_heading {
    font-size: 15px !important;
    line-height: 1.65 !important;
  }
  .home-one-banner .radiantthemes-custom-button { margin: 6px 0 4px; }
  /* Espaceur desktop de 50px entre hero et bannière partenaire */
  .lay-gap-desktop { display: none; }
}
@media (max-width: 479px) {
  section.vc_custom_1711647422107 { padding-top: 80px !important; }
  .home-one-banner h2.vc_custom_heading { font-size: 26px !important; }
}

/* --- Barre de recherche de domaine : tactile et lisible ----- */
.whmpress_domain_search_ajax { margin-top: 24px; }
.whmpress_domain_search_ajax form { max-width: 100%; }
.whmpress_domain_search_ajax form input#search_box {
  font-size: 15px;
  padding: 0 16px;
  color: #212127;
}
.whmpress_domain_search_ajax form button.search_btn {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .3px;
}
@media (min-width: 480px) and (max-width: 991px) {
  .whmpress_domain_search_ajax form input#search_box { width: 68%; }
  .whmpress_domain_search_ajax form button.search_btn { width: 32%; }
}
@media (max-width: 479px) {
  .whmpress_domain_search_ajax form input#search_box {
    height: 50px;
    border: 0 !important;
    border-radius: 10px !important;
    margin-bottom: 10px;
    box-shadow: 0 4px 16px rgba(10,4,40,.25);
  }
  .whmpress_domain_search_ajax form button.search_btn {
    height: 50px;
    border-radius: 10px !important;
    box-shadow: 0 4px 16px rgba(142,68,173,.4);
  }
}

/* --- Bannières intérieures (pages/*.html) : hauteur mobile -- */
@media (max-width: 767px) {
  .wraper_inner_banner { padding: 0 !important; }
  .wraper_inner_banner .wraper_inner_banner_main { padding: 92px 0 30px !important; }
  /* Le padding desktop (165/135 px) est posé sur le container par redux */
  .wraper_inner_banner .wraper_inner_banner_main > .container {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }
  .wraper_inner_banner .wraper_inner_banner_breadcrumb > .container {
    padding-top: 0 !important;
    padding-bottom: 24px !important;
  }
  .wraper_inner_banner .inner_banner_main .title {
    font-size: 26px !important;
    line-height: 1.3 !important;
  }
}

/* --- Titres de sections : échelle mobile -------------------- */
@media (max-width: 767px) {
  h2.vc_custom_heading[style*="font-size: 40px"],
  h2.vc_custom_heading[style*="font-size: 42px"] {
    font-size: 26px !important;
    line-height: 1.3 !important;
  }
  h2.vc_custom_heading[style*="font-size: 32px"] {
    font-size: 23px !important;
    line-height: 1.3 !important;
  }
  p.vc_custom_heading[style*="font-size: 18px"] { font-size: 15px !important; }
}

/* --- Newsletter (email-submit) : empilé sur mobile ---------- */
@media (max-width: 767px) {
  .email-submit input[type="email"] {
    height: 54px;
    font-size: 16px;
    padding: 0 16px !important;
  }
  .email-submit button {
    position: static;
    width: 100% !important;
    padding: 14px !important;
    font-size: 16px;
    border-radius: 0 0 4px 4px !important;
  }
}

/* --- Grille de packs domaine : 1 colonne sur petit écran ---- */
@media (max-width: 560px) {
  .ds-pkg-grid { grid-template-columns: 1fr !important; }
}

/* --- Scrollbar de page : rail thématisé (pas de bande blanche) - */
html {
  scrollbar-width: thin;
  scrollbar-color: #8b5cf6 #241040;
}
html::-webkit-scrollbar { width: 10px; }
html::-webkit-scrollbar-track { background: #241040; }
html::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #8b5cf6, #6366f1);
  border-radius: 8px;
}
html::-webkit-scrollbar-thumb:hover { background: #6d28d9; }

/* --- Cartes visuels : voile dégradé pour le texte incrusté ---- */
.appon-home-box-shadow .vc_column-inner { position: relative; overflow: hidden; }
.appon-home-box-shadow .vc_column-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(24,8,54,0) 40%, rgba(24,8,54,.34) 72%, rgba(24,8,54,.55) 100%);
}

/* --- Chat : jamais au-dessus du menu, du panier ou des modales -
   (lh-bot.css est chargé APRès cette feuille : !important requis) */
@media (max-width: 991px) {
  .lhbot-launcher, .lhbot-teaser { z-index: 99990 !important; }
  .lhbot-panel { z-index: 99991 !important; }
}
@media (max-width: 767px) {
  /* La bulle d'accroche masquait la recherche de domaine au chargement */
  .lhbot-teaser { display: none !important; }
  .lhbot-launcher { right: 14px !important; bottom: 14px !important; padding: 12px 16px !important; font-size: 13px !important; }
  /* Dégagement pour le bouton flottant au-dessus du pied de page */
  .wraper_footer { padding-bottom: 84px !important; }
}
@media (max-width: 480px) {
  /* lh-bot.css passe le panneau en plein cadre (100vw) : on évite
     le débordement lié à la gouttière de scrollbar (100vw > largeur utile) */
  .lhbot-panel { width: 100% !important; max-width: 100% !important; }
  /* Bouton flottant réduit à l'icône : emprise minimale sur le contenu */
  .lhbot-launcher .lhbot-launcher-text { display: none; }
  .lhbot-launcher { padding: 14px !important; }
}

/* --- Scrollbars aux couleurs du site (modales & panier) ----- */
.ds-modal-body, .cart-sidebar-body {
  scrollbar-width: thin;
  scrollbar-color: #8b5cf6 #eef2ff;
}
.ds-modal-body::-webkit-scrollbar, .cart-sidebar-body::-webkit-scrollbar { width: 8px; }
.ds-modal-body::-webkit-scrollbar-track, .cart-sidebar-body::-webkit-scrollbar-track { background: #eef2ff; }
.ds-modal-body::-webkit-scrollbar-thumb, .cart-sidebar-body::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #8b5cf6, #6366f1);
  border-radius: 8px;
}
.ds-modal-body::-webkit-scrollbar-thumb:hover, .cart-sidebar-body::-webkit-scrollbar-thumb:hover { background: #6d28d9; }
