/* Correctifs portage WP → Laravel (new.prestobtp.com) */

/* Filet de sécurité cartes clients */
.pbtp-dir-card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.pbtp-dir-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* Filet de sécurité avis PrestoSocial template5 (sans CSS → 80k px) */
.prestosocial-reviews.template5 .t5-reviews-col {
  height: 560px;
  max-height: 560px;
  overflow: hidden;
}
.prestosocial-reviews.template5 .t5-av,
.prestosocial-reviews.template5 .t5-av img {
  width: 40px !important;
  height: 40px !important;
  max-width: 40px !important;
  max-height: 40px !important;
  object-fit: cover;
}

/* Trois liens desktop (Informations / Démo / Contact) : même ligne, même padding */
.prestomenu-desktop-nav {
  align-items: center;
}
.prestomenu-desktop-nav .navbar-nav {
  align-items: center;
}
.prestomenu-desktop-nav .navbar-nav > .nav-item > .nav-link {
  display: flex;
  align-items: center;
  line-height: 1;
  padding: 0.6rem 1rem;
}
.prestomenu-desktop-nav .navbar-nav > .nav-item > .nav-link i {
  line-height: 1;
  font-size: 1rem;
}
.prestomenu-desktop-nav .dropdown-menu-dark > li > a,
.prestomenu-desktop-nav .dropdown-menu-dark .dropdown-item {
  color: #fff !important;
}
.prestomenu-desktop-nav .dropdown-menu-dark > li > a span,
.prestomenu-desktop-nav .dropdown-menu-dark .dropdown-item span {
  color: inherit;
  opacity: 1;
  visibility: visible;
}

/* Hero : robot ::after derrière le contenu texte */
.hero-section {
  position: relative;
  z-index: 1;
}
.hero-section .container {
  position: relative;
  z-index: 2;
}

/* Popup preuve sociale (CSS du plugin WP public.css, absent du bundle Laravel) */
.prestosocial-social-popup {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 9999;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
}
.prestosocial-social-popup.show {
  opacity: 1;
  transform: translateY(0);
}
.prestosocial-social-popup .popup-content {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  padding: 15px 20px;
  max-width: 350px;
  position: relative;
}
.prestosocial-social-popup .popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 20px;
  color: #999;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  line-height: 1;
}
.prestosocial-social-popup .popup-close:hover { color: #333; }
.prestosocial-social-popup .popup-body {
  display: flex;
  gap: 15px;
  align-items: center;
}
.prestosocial-social-popup .popup-avatar img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}
.prestosocial-social-popup .popup-text { flex: 1; }
.prestosocial-social-popup .popup-text p {
  margin: 0 0 10px 0;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  line-height: 1.4;
}
.prestosocial-social-popup .popup-link-btn {
  display: inline-block;
  font-size: 12px;
  color: #007bff;
  text-decoration: none;
  font-weight: 600;
  float: right;
}
@media (max-width: 640px) {
  .prestosocial-social-popup {
    left: 10px;
    right: 10px;
    bottom: 10px;
  }
  .prestosocial-social-popup .popup-content { max-width: 100%; }
}

/* Wizard natif : la modale reste lisible au-dessus du thème sombre */
#modalWizardPrestoBTP,
#modalDemoAccess {
  z-index: 1080;
}
#modalWizardPrestoBTP .modal-content,
#modalDemoAccess .modal-content {
  color: #1d2a36;
  background: #fff;
}
#modalWizardPrestoBTP .modal-body,
#modalDemoAccess .modal-body,
#modalWizardPrestoBTP .col-md-5,
#modalDemoAccess .col-md-5,
#modalWizardPrestoBTP .form-label,
#modalDemoAccess .form-label,
#modalWizardPrestoBTP .form-check-label,
#modalDemoAccess .form-check-label {
  color: #1d2a36;
}
#modalWizardPrestoBTP .bg-light,
#modalDemoAccess .bg-light {
  background-color: #f8fbfe !important;
  color: #1d2a36;
}

/* Blog natif */
.pbtp-blog-layout { padding-bottom: 3rem; }
.pbtp-blog-article {
  margin: 0 0 1.6rem;
  padding: 1.15rem 1.2rem 1.25rem;
  border-radius: 16px;
  border: 1px solid rgba(57, 182, 232, 0.22);
  background: linear-gradient(145deg, rgba(8, 10, 18, 0.92) 0%, rgba(22, 26, 38, 0.88) 100%);
}
.pbtp-blog-article .entry-title {
  margin: 0 0 0.45rem;
  font-size: clamp(1.15rem, 1rem + 0.55vw, 1.55rem);
  line-height: 1.3;
}
.pbtp-blog-article .entry-title a { color: #fff; text-decoration: none; }
.pbtp-blog-article .entry-title a:hover { color: #39b6e8; }
.pbtp-blog-article .entry-meta {
  margin: 0 0 0.85rem;
  color: rgba(233, 238, 245, 0.62);
  font-size: 0.86rem;
}
.pbtp-blog-article .entry-thumb {
  display: block;
  margin: 0 0 1rem;
  overflow: hidden;
  border-radius: 12px;
}
.pbtp-blog-article .entry-thumb img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 360px;
  object-fit: cover;
}
.pbtp-blog-article .entry-content,
.pbtp-blog-article .entry-excerpt {
  color: rgba(233, 238, 245, 0.88);
  line-height: 1.65;
}
.pbtp-blog-article .entry-content p,
.pbtp-blog-article .entry-excerpt p { margin: 0 0 1rem; }
.pbtp-blog-article .entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}
.pbtp-blog-article .entry-content h2,
.pbtp-blog-article .entry-content h3 {
  color: #fff;
  margin: 1.4rem 0 0.7rem;
}
.pbtp-blog-pager {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin: 1.5rem 0 0;
}
.pbtp-blog-pager a,
.pbtp-blog-pager span {
  padding: 0.45rem 0.9rem;
  border-radius: 10px;
  border: 1px solid rgba(57, 182, 232, 0.3);
  color: #9fe4fb;
  text-decoration: none;
}
.pbtp-blog-pager a:hover { background: rgba(57, 182, 232, 0.16); color: #fff; }
.pbtp-blog-pager .is-disabled { opacity: 0.4; pointer-events: none; }

/* --- Fix lisibilité sous-menu "articles" (texte blanc sur fond blanc) ---
   Le panneau de 2e niveau (.dropdown-submenu-menu) héritait du thème sombre
   (.dropdown-menu-dark .dropdown-item { color:#fff }) tout en s'affichant sur
   fond clair → texte invisible. On force ici un panneau clair + texte foncé. */
.prestomenu-desktop-nav .dropdown-submenu-menu {
  background-color: #ffffff !important;
  --bs-dropdown-bg: #ffffff;
  --bs-dropdown-color: #1b2838;
  --bs-dropdown-link-color: #1b2838;
  border: 1px solid #e2e6eb !important;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.18) !important;
}
.prestomenu-desktop-nav .dropdown-submenu-menu > li > a,
.prestomenu-desktop-nav .dropdown-submenu-menu .dropdown-item,
.prestomenu-desktop-nav .dropdown-submenu-menu .dropdown-toggle-submenu {
  color: #1b2838 !important;
}
.prestomenu-desktop-nav .dropdown-submenu-menu > li > a span,
.prestomenu-desktop-nav .dropdown-submenu-menu .dropdown-item span {
  color: inherit !important;
}
.prestomenu-desktop-nav .dropdown-submenu-menu > li > a:hover,
.prestomenu-desktop-nav .dropdown-submenu-menu .dropdown-item:hover,
.prestomenu-desktop-nav .dropdown-submenu-menu .dropdown-item:focus {
  background-color: #e2e6eb !important;
  color: #0d1b2a !important;
}


