/* RatPro – compléments statiques (cookies, formulaires, footer, mobile) */

html { scroll-behavior: smooth; }

html,
body { overflow-x: hidden; }

img,
svg { max-width: 100%; }

.entry-content img {
  max-width: 100% !important;
  height: auto !important;
}
.entry-content figure { max-width: 100% !important; }
.entry-content iframe { max-width: 100%; }
.entry-content [style*="width"] { max-width: 100% !important; }

.kt-row-column-wrap,
.kt-row-column-wrap > *,
.wp-block-kadence-column,
.wp-block-kadence-column > .kt-inside-inner-col,
.kt-inside-inner-col {
  min-width: 0 !important;
}
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content p,
.entry-content li {
  overflow-wrap: break-word;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100001;
  background: #fff;
  color: #e32f1f;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid #e32f1f;
  outline-offset: 3px;
}

.entry-content img { height: auto; }
.entry-content p { text-align: justify; }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  z-index: 100000;
  left: 18px;
  right: 18px;
  bottom: 18px;
  margin: 0 auto;
  max-width: 760px;
  background: #ffffff;
  color: #283236;
  border: 1px solid #e6e8ea;
  border-radius: 16px;
  box-shadow: 0 24px 70px rgba(15, 20, 22, .30);
  font-family: Roboto, Arial, sans-serif;
  transform: none;
  opacity: 1;
}
.cookie-banner.is-visible { opacity: 1; transform: none; }
.cookie-banner[hidden] { display: none !important; }
.cookie-banner-inner { padding: 22px 24px; }
.cookie-banner h2 {
  margin: 0 0 8px;
  font-family: Heebo, Arial, sans-serif;
  font-size: 19px;
  line-height: 1.2;
  color: #283236;
}
.cookie-banner p {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.55;
  color: #494949;
}
.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.cookie-btn {
  border: 0;
  border-radius: 8px;
  padding: 11px 20px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.cookie-btn-accept { background: #e32f1f; color: #fff; }
.cookie-btn-accept:hover { background: #c92719; }
.cookie-btn-reject { background: #fff; color: #283236; border: 1px solid #c9cfd2; }
.cookie-btn-reject:hover { border-color: #283236; }
.cookie-more {
  margin-left: auto;
  font-size: 13px;
  color: #494949;
  text-decoration: underline;
}
.cookie-more:hover { color: #e32f1f; }
.cookie-manage-btn {
  background: #e32f1f;
  color: #fff;
  border: 0;
  border-radius: 6px;
  padding: 12px 20px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.cookie-manage-btn:hover { background: #c92719; }

/* ---------- Formulaires HubSpot ---------- */
.hs-form-slot { min-height: 120px; }
.form-placeholder {
  background: #f7f8f9;
  border: 1px dashed #cbd2d5;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  font-family: Roboto, Arial, sans-serif;
}
.form-placeholder p { margin: 0 0 10px; font-size: 14px; line-height: 1.55; text-align: center; }
.form-placeholder-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}
.form-placeholder .button {
  display: inline-block;
  border-radius: 6px;
  padding: 11px 18px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.2;
  cursor: pointer;
}
.form-placeholder .form-load-btn {
  background: #e32f1f;
  color: #fff;
  border: 0;
}
.form-placeholder .form-load-btn:hover { background: #c92719; }
.form-placeholder .form-call-btn {
  background: #fff;
  color: #283236;
  border: 1px solid #cbd2d5;
}
.hs-form-slot .hs-form { font-family: Roboto, Arial, sans-serif; }
.hs-form-slot .hs-button {
  background: #e32f1f !important;
  border: 0 !important;
  border-radius: 6px !important;
  padding: 12px 26px !important;
  font-weight: 600 !important;
  cursor: pointer;
}
.hs-form-slot .hs-button:hover { background: #c92719 !important; }

/* ---------- Footer (référence visuelle) ---------- */
#colophon.ratpro-footer {
  background: #283236;
  color: #fff;
  font-family: Roboto, Arial, sans-serif;
}
.ratpro-footer-top { background: #283236; }
.ratpro-footer-bottom {
  background: #283236;
  border-top: 1px solid #3e4549;
}
.ratpro-footer-container {
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 0;
  padding-right: 0;
  box-sizing: border-box;
}
.ratpro-footer-top .ratpro-footer-container {
  display: grid;
  grid-template-columns: 420px minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  min-height: 215px;
}
.ratpro-footer-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.ratpro-footer-logo img {
  display: block;
  width: 400px;
  height: auto;
  max-width: 100%;
}
.ratpro-footer-nav {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  gap: 45px;
}
.ratpro-footer-nav a {
  color: #fff;
  font-size: 15px;
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: .01em;
  text-decoration: none;
  text-transform: uppercase;
}
.ratpro-footer-nav a:hover { color: #f2b3aa; }
.ratpro-footer-social {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}
.ratpro-footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #e32f1f;
  color: #fff;
  text-decoration: none;
  transition: background .18s ease;
}
.ratpro-footer-social a:hover { background: #c92719; }
.ratpro-footer-icon {
  width: 18px;
  height: 18px;
  display: block;
}
.ratpro-footer-bottom .ratpro-footer-container {
  display: flex;
  align-items: center;
  min-height: 78px;
  padding-top: 18px;
  padding-bottom: 18px;
}
.ratpro-footer-bottom p {
  margin: 0;
  color: #fff;
  font-size: 16px;
  line-height: 1.4;
}
@media (max-width: 1100px) {
  .ratpro-footer-container {
    padding-left: 24px;
    padding-right: 24px;
  }
  .ratpro-footer-top .ratpro-footer-container {
    grid-template-columns: 260px minmax(0, 1fr) auto;
    gap: 16px;
  }
  .ratpro-footer-logo img { width: 250px; }
  .ratpro-footer-nav { gap: 24px; }
}
@media (max-width: 900px) {
  .ratpro-footer-top .ratpro-footer-container {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 18px;
    padding-top: 30px;
    padding-bottom: 30px;
    min-height: 0;
    text-align: center;
  }
  .ratpro-footer-nav { gap: 22px; }
  .ratpro-footer-social { justify-content: center; }
  .ratpro-footer-bottom .ratpro-footer-container {
    justify-content: center;
    text-align: center;
    min-height: 66px;
  }
}
@media (max-width: 600px) {
  .ratpro-footer-logo img { width: 220px; }
  .ratpro-footer-nav { flex-direction: column; gap: 12px; }
  .ratpro-footer-nav a { font-size: 12px; }
  .ratpro-footer-bottom p { font-size: 14px; }
}

/* ---------- Drawer mobile ---------- */
.drawer-open { overflow: hidden; }
.popup-drawer {
  position: fixed;
  inset: 0;
  z-index: 100002;
  visibility: hidden;
  opacity: 0;
  transition: opacity .22s ease, visibility .22s ease;
}
.popup-drawer.is-open { visibility: visible; opacity: 1; }
.popup-drawer .drawer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .55);
}
.popup-drawer .drawer-inner {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  width: min(88vw, 360px);
  background: #fff;
  box-shadow: -12px 0 40px rgba(0, 0, 0, .24);
  transform: translateX(100%);
  transition: transform .25s ease;
  overflow-y: auto;
}
.popup-drawer.is-open .drawer-inner { transform: translateX(0); }
.popup-drawer .drawer-header {
  display: flex;
  justify-content: flex-end;
  padding: 14px 16px;
  border-bottom: 1px solid #eef0f1;
}
.popup-drawer .menu-toggle-close {
  position: relative;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #f2f3f5;
  cursor: pointer;
}
.popup-drawer .toggle-close-bar {
  position: absolute;
  top: 19px;
  left: 11px;
  width: 18px;
  height: 2px;
  background: #283236;
}
.popup-drawer .toggle-close-bar:first-child { transform: rotate(45deg); }
.popup-drawer .toggle-close-bar:last-child { transform: rotate(-45deg); }
.popup-drawer .mobile-menu-container .menu {
  list-style: none;
  margin: 0;
  padding: 0;
}
.popup-drawer .mobile-menu-container .menu li a {
  display: block;
  padding: 15px 22px;
  border-bottom: 1px solid #eef0f1;
  color: #283236;
  font-family: Heebo, Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.popup-drawer .mobile-menu-container .menu li a:hover { color: #e32f1f; }

/* ---------- Petits écrans ---------- */
@media (max-width: 600px) {
  .cookie-banner { left: 10px; right: 10px; bottom: 10px; }
  .cookie-banner-inner { padding: 18px; }
  .cookie-more { margin-left: 0; width: 100%; }
  .entry-content p { text-align: left; }
}

/* ---------- Page 404 et conteneurs pleine largeur ---------- */
.error404 .content-container.site-container {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}
@media (max-width: 600px) {
  .error404 .content-container.site-container { padding-left: 16px; padding-right: 16px; }
}
