/* =============================================================
   2A3E ASSAINISSEMENT - Custom Styles for WordPress/Gutenberg
   PROPERLY SCOPED - Won't break Elementor pages
   ============================================================= */

/* ============================================
   CSS Variables - 2A3E Theme (Global - safe)
   ============================================ */
:root {
  /* 2A3E Colors */
  --2a3e-primary: #0d1b2a;
  --2a3e-primary-dark: #081422;
  --2a3e-accent: #1f9382;
  --2a3e-accent-light: #c3e0d6;
  --2a3e-accent-dark: #1d7d6d;
  --2a3e-white: #ffffff;
  --2a3e-text-light: rgba(255, 255, 255, 0.85);
  --2a3e-text-muted: rgba(255, 255, 255, 0.6);

  /* Typography - Rubik */
  --2a3e-font: "Rubik", sans-serif;

  /* Spacing */
  --2a3e-navbar-height: 110px;

  /* Transitions */
  --2a3e-transition-fast: 0.2s ease;
  --2a3e-transition-medium: 0.3s ease;
  --2a3e-transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   LAYOUT OVERRIDES - ONLY 2A3E PAGES
   ============================================ */
body.page-2a3e .site-main,
body.page-2a3e .entry-content {
  max-width: none !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  font-family: var(--2a3e-font);
}

@media (min-width: 768px) {
  body.page-2a3e .site-main,
  .site-footer {
    max-width: none !important;
  }
}
@media (min-width: 1024px) {
  body.page-2a3e .site-main,
  .site-footer {
    max-width: none !important;
  }
}
@media (min-width: 1200px) {
  body.page-2a3e .site-main,
  .site-footer {
    max-width: none !important;
  }
}

@media (min-width: 576px) {
  body.page-2a3e .site-main,
  .site-footer {
    max-width: none !important;
  }
}
/* Add this at the end of your CSS, in the responsive section */

@media (max-width: 320px) {
  /* Remove any body/html margins */
  body,
  html {
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }

  body.page-2a3e .site-main,
  body.page-2a3e .entry-content {
    margin: 0 !important;
    padding: 0 !important;
  }

  .navbar-container {
    padding: 0 12px; /* Reduced from 16px for tiny screens */
  }

  body.page-2a3e .image__container {
    padding: 0 12px 80px; /* Reduced side padding */
  }

  body.page-2a3e .image__container figure {
    min-width: 100%; /* Use full width on very small screens */
  }

  body.page-2a3e .picto__container {
    padding: 60px 12px; /* Reduced side padding */
  }

  body.page-2a3e .engagement__container {
    padding: 80px 12px; /* Reduced side padding */
  }

  body.page-2a3e .contact__container {
    padding: 30px 12px; /* Reduced side padding */
  }

  .site-footer {
    padding: 60px 12px 0; /* Reduced side padding */
  }
}

/* Hide default title - ONLY on 2A3E pages */
body.page-2a3e .page-header,
body.page-2a3e .entry-header,
body.page-2a3e h1.entry-title {
  display: none !important;
}

/* ============================================
   NAVBAR - GLOBAL (appears on all pages)
   ============================================ */
.site-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  height: var(--2a3e-navbar-height);
  background-color: transparent;
  transition:
    background-color var(--2a3e-transition-medium),
    box-shadow var(--2a3e-transition-medium);
  margin: 20px 0;
}

.site-navbar *,
.site-navbar *::before,
.site-navbar *::after {
  box-sizing: border-box;
}

.site-navbar.scrolled {
  background-color: rgba(13, 27, 42, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.navbar-container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-left: 30px;
  padding-right: 30px;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  text-decoration: none !important;
  gap: 10px;
  flex-shrink: 0;
}

.site-logo .logo-img {
  height: 64px;
  width: auto;
}

.site-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.site-logo-name {
  font-family: var(--2a3e-font);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--2a3e-white);
  letter-spacing: 2px;
}

.site-logo-name span {
  color: var(--2a3e-accent);
}

.site-logo-tagline {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--2a3e-text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* Navigation */
.main-nav {
  display: flex;
  align-items: center;
}

.nav-list,
.main-nav > ul {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 6px 10px;
  gap: 2px;
  background-color: rgba(30, 40, 55, 0.85);
  border-radius: 8px;
}

.nav-item,
.nav-list > li,
.main-nav > ul > li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link,
.nav-list > li > a,
.main-nav > ul > li > a {
  display: block;
  padding: 10px 16px;
  font-family: var(--2a3e-font);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--2a3e-white) !important;
  text-decoration: none !important;
  border-radius: 4px;
  transition:
    background-color var(--2a3e-transition-fast),
    color var(--2a3e-transition-fast);
}

.nav-link:hover,
.nav-list > li > a:hover,
.main-nav > ul > li > a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--2a3e-accent-light) !important;
}

.nav-link.active,
.nav-list > li.current-menu-item > a,
.nav-list > li.current_page_item > a,
.main-nav > ul > li.current-menu-item > a {
  background-color: rgba(45, 125, 210, 0.3);
  color: var(--2a3e-white) !important;
}

.nav-cta,
.nav-list > li.menu-item-cta > a,
.nav-list > li:last-child > a {
  color: var(--2a3e-accent-light) !important;
}

.nav-cta:hover,
.nav-list > li.menu-item-cta > a:hover,
.nav-list > li:last-child > a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--2a3e-accent-light) !important;
}

/* Social in navbar */
.navbar-social {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 20px;
  padding-left: 20px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--2a3e-white) !important;
  text-decoration: none !important;
  border-radius: 50%;
  transition: background-color var(--2a3e-transition-fast);
}

.social-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.social-link svg {
  width: 36px;
  height: 36px;
}

.social-divider {
  width: 1px;
  height: 18px;
  background-color: rgba(255, 255, 255, 0.3);
}

/* Mobile menu toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 30px;
  height: 30px;
  background: none !important;
  border: none !important;
  cursor: pointer;
  padding: 0 !important;
  min-width: auto !important;
  border-radius: 0 !important;
}

.mobile-menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--2a3e-white);
  transition:
    transform var(--2a3e-transition-fast),
    opacity var(--2a3e-transition-fast);
  border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Body scroll lock */
body.menu-open {
  overflow: hidden;
}

/* ============================================
   HERO SECTION - .titre__header - SCOPED
   ============================================ */
body.page-2a3e .titre__header {
  position: relative;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 60px 24px;
  background-size: cover;
  background-position: center top;
  overflow: hidden;
  background-repeat: no-repeat;
}

body.page-2a3e .titre__header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  background-color: rgba(0, 0, 0, 0.3);
}

body.page-2a3e .titre__header > * {
  position: relative;
  z-index: 1;
  text-transform: uppercase;
  margin-left: 5% !important;
}

body.page-2a3e .titre__header h1 {
  font-weight: 700;
  color: var(--2a3e-white);
  font-size: 3.5rem;
}

body.page-2a3e .titre__header h1 .light {
  font-weight: 500;
}

body.page-2a3e .titre__header h1 .lighter {
  font-weight: 300;
}

body.page-2a3e .titre__header h1 strong {
  font-size: 2rem;
}

body.page-2a3e .titre__header h2 {
  font-family: var(--2a3e-font);
  font-size: 1.5rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.65);
}

/* ============================================
   SECTION TITLE - SCOPED
   ============================================ */
/* body.page-2a3e .wp-block-heading.has-text-align-center {
  font-family: var(--2a3e-font);
  text-align: center;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 5%;
} */

/* ============================================
   IMAGE CONTAINER - SCOPED
   ============================================ */
body.page-2a3e .image__container {
  display: flex;
  gap: 24px;
  justify-content: center;
  align-items: flex-start;
  padding: 0 24px 60px;
  flex-wrap: wrap;
}

body.page-2a3e .image__container figure {
  flex: 1;
  max-width: 350px;
  min-width: 280px;
  margin: 0;
  border-radius: 20px;
  overflow: visible;
  position: relative;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transition:
    transform var(--2a3e-transition-medium),
    box-shadow var(--2a3e-transition-medium);
}

body.page-2a3e .image__container figure:hover {
  flex: 1.5;
  transform: scale(1.05);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  z-index: 10;
}

body.page-2a3e .image__container figure img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  border-radius: 20px;
  transition: none;
}

body.page-2a3e .image__container figure:hover img {
  transform: scale(1.05);
}

body.page-2a3e .image__container figcaption {
  position: absolute;
  bottom: -50px;
  left: 180px;
  transform: translateX(-50%);
  width: 100%;
  font-size: 0.85rem;
  text-align: center;
  font-family: var(--2a3e-font);
  color: var(--2a3e-primary-dark);
  opacity: 0;
  transition: opcacity var(--2a3e-transition-medium);
  pointer-events: none;
}

body.page-2a3e .image__container figure:hover figcaption {
  opacity: 1;
}

/* ============================================
   IMAGE DESCRIPTION - SCOPED
   ============================================ */
body.page-2a3e .image__description {
  text-align: center;
  padding: 20px 10%;
  font-family: var(--2a3e-font);
  font-size: 1rem;
  line-height: 1.7;
  border: 2px solid var(--2a3e-text-muted);
  background-color: var(--2a3e-text-light);
  border-radius: 20px;
  width: 80%;
  margin: 0 auto;
  box-shadow: inset 0 6px 12px rgba(8, 20, 34, 0.3);
}

body.page-2a3e .image__description strong {
  color: var(--2a3e-accent);
}

/* ============================================
   PICTO CONTAINER - SCOPED
   ============================================ */
body.page-2a3e .picto__container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  padding: 60px 24px;
  max-width: 1280px;
  margin: 0 auto;
}

body.page-2a3e .picto__container > div {
  text-align: center;
  padding: 20px;
  padding-top: 80px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

/* Icon circles for picto */
body.page-2a3e .picto__container > div::before {
  content: "";
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 80px;
  background-color: var(--2a3e-white);
  border-radius: 50%;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 40px 40px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

body.page-2a3e .ANC__container::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 24 24' fill='none' stroke='%231f9382' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3Cpolyline points='9 22 9 12 15 12 15 22'/%3E%3C/svg%3E");
}

body.page-2a3e .AC__container::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 24 24' fill='none' stroke='%231f9382' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='2' width='16' height='20' rx='2'/%3E%3Cpath d='M9 22v-4h6v4M8 6h.01M8 10h.01M8 14h.01M16 6h.01M16 10h.01M16 14h.01'/%3E%3C/svg%3E");
}

body.page-2a3e .installations__container::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 24 24' fill='none' stroke='%231f9382' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 16.2A4.5 4.5 0 0 0 17.5 8h-1.8A7 7 0 1 0 4 14.9'/%3E%3Cpath d='M12 18v4M8 20v4M16 18v4'/%3E%3C/svg%3E");
}

body.page-2a3e .ouvrages__container::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 24 24' fill='none' stroke='%231f9382' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z'/%3E%3C/svg%3E");
}

body.page-2a3e .picto__container h4 {
  font-family: var(--2a3e-font);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--2a3e-primary-dark);
  margin: 0 0 20px;
  text-align: center;
  width: 100%;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Wrapper for paragraphs to align them */
body.page-2a3e .picto__container > div > div {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-left: 20%;
}

body.page-2a3e .picto__container p {
  font-family: var(--2a3e-font);
  font-size: 0.9rem;
  color: var(--2a3e-primary-dark);
  margin: 0 0 10px;
  line-height: 1.5;
  position: relative;
  padding-left: 50px;
  text-align: left;
  width: 100%;
  margin-bottom: 0;
}

body.page-2a3e .picto__container p::before {
  content: "|";
  position: absolute;
  left: 0;
  color: var(--2a3e-primary-dark);
  font-weight: 700;
  font-size: 1rem;
  padding-left: 40px;
}

/* ============================================
   ENGAGEMENT SECTION - SCOPED
   ============================================ */
body.page-2a3e .engagement__container {
  padding: 80px 24px;
  background: url(/wp-content/themes/elementor-child-theme/assets/images/beau-gros-plan-de-la-texture-incroyable-de-l-eau-dans-l-ocean.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

body.page-2a3e .engagement__container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 0;
}

body.page-2a3e .engagement__container > * {
  position: relative;
  z-index: 1;
}

body.page-2a3e .engagement__container > h2 {
  text-align: center;
  margin-bottom: 150px;
  font-family: var(--2a3e-font);
  font-size: 2rem;
  font-weight: 300;
  color: var(--2a3e-white);
  text-transform: uppercase;
  letter-spacing: 3px;
}

body.page-2a3e .engagement__container > h2 strong {
  font-weight: 700;
}

/* Grid container for the 3 cards */
body.page-2a3e .engagement__container > .wp-block-group {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

/* Individual engagement cards */
body.page-2a3e .interventions__container,
body.page-2a3e .qualité__container,
body.page-2a3e .entretien__container {
  position: relative;
  background: transparent;
  border: 4px solid rgba(255, 255, 255, 0.8);
  border-radius: 16px;
  padding: 40px 30px;
  text-align: center;
}

/* Card icons */
body.page-2a3e .interventions__container::after,
body.page-2a3e .qualité__container::after,
body.page-2a3e .entretien__container::after {
  content: "";
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 90px;
  z-index: 2;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 64px 64px;
}

body.page-2a3e .interventions__container::after {
  background-size: 80px 80px;
}

/* Clock icon for interventions */
body.page-2a3e .interventions__container::after {
  background-image: url(/wp-content/themes/elementor-child-theme/assets/images/camion_blanc.svg);
}

/* Shield icon for qualité */
body.page-2a3e .qualité__container::after {
  background-image: url(/wp-content/themes/elementor-child-theme/assets/images/group.svg);
}
/* Settings icon for entretien */
body.page-2a3e .entretien__container::after {
  background-image: url(/wp-content/themes/elementor-child-theme/assets/images/roue_check.svg);
}

/* Card headings */
body.page-2a3e .interventions__container h3,
body.page-2a3e .qualité__container h3,
body.page-2a3e .entretien__container h3 {
  font-family: var(--2a3e-font);
  color: var(--2a3e-white);
  margin: 0;
  padding: 0;
  font-size: 1.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Card paragraphs */
body.page-2a3e .interventions__container p,
body.page-2a3e .qualité__container p,
body.page-2a3e .entretien__container p {
  font-family: var(--2a3e-font);
  font-size: 1rem;
  line-height: 1.7;
  margin: 0;
  padding: 0;
  color: var(--2a3e-white);
}

/* ============================================
   CTA BANNER - SCOPED
   ============================================ */
body.page-2a3e .contact__container {
  padding: 30px 24px;
  background-color: #1f9382;
  background-image: url(/wp-content/themes/elementor-child-theme/assets/images/pattern_waves.png);
  background-size: cover;
  background-repeat: no-repeat;
  margin-top: 0;
}

body.page-2a3e .contact__container p {
  font-family: var(--2a3e-font);
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--2a3e-white);
  margin: 0;
  text-decoration: underline;
}

body.page-2a3e .contact__container p strong {
  color: var(--2a3e-white);
  text-transform: uppercase;
  font-size: 3rem;
}

body.page-2a3e .contact__container .wp-block-buttons {
  margin: 0;
}

body.page-2a3e .contact__container .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px 14px 24px;
  background-color: var(--2a3e-white) !important;
  color: var(--2a3e-accent) !important;
  font-family: var(--2a3e-font);
  font-size: 1.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-decoration: none !important;
  border-radius: 50px;
  border: 3px solid var(--2a3e-white);
  transition: all var(--2a3e-transition-fast);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

body.page-2a3e .contact__container .wp-block-button__link::before {
  content: "";
  width: 32px;
  height: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24' fill='none' stroke='%231f9382' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

body.page-2a3e .contact__container .wp-block-button__link:hover {
  background-color: transparent !important;
  color: var(--2a3e-white) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* Change icon color on hover */
body.page-2a3e .contact__container .wp-block-button__link:hover::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E");
}

/* ============================================
   FOOTER - GLOBAL (appears on all pages)
   ============================================ */
.site-footer {
  background-color: var(--2a3e-primary);
  color: var(--2a3e-white);
  padding: 60px 24px 0;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none !important;
}

.footer-logo .footer-logo-img {
  height: 50px;
  width: auto;
}

.footer-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.footer-logo-name {
  font-family: var(--2a3e-font);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--2a3e-white);
  letter-spacing: 2px;
}

.footer-logo-name span {
  color: var(--2a3e-accent);
}

.footer-logo-tagline {
  font-size: 0.55rem;
  font-weight: 500;
  color: var(--2a3e-text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.footer-tagline {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--2a3e-text-muted);
  margin: 0;
  max-width: 280px;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.footer-social .social-link {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.footer-social .social-link:hover {
  background-color: var(--2a3e-accent);
}

/* Footer columns */
.footer-nav-column h4,
.footer-contact-column h4,
.footer-map-column h4 {
  font-family: var(--2a3e-font);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;

  margin: 0 0 24px;
}

.footer-nav-list,
.footer-nav-column ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav-list li,
.footer-nav-column ul li {
  margin-bottom: 12px;
}

.footer-nav-list a,
.footer-nav-column ul a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--2a3e-text-light) !important;
  text-decoration: none !important;
  transition: color var(--2a3e-transition-fast);
}

.footer-nav-list a::before,
.footer-nav-column ul a::before {
  content: "→";
  color: var(--2a3e-accent);
  font-size: 0.8rem;
}

.footer-nav-list a:hover,
.footer-nav-column ul a:hover {
  color: var(--2a3e-accent) !important;
}

.footer-contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-contact-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
}

.footer-contact-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--2a3e-accent);
  stroke-width: 2;
}

.footer-contact-text {
  font-size: 0.9rem;
  color: var(--2a3e-text-light);
  line-height: 1.5;
}

.footer-contact-text a {
  color: var(--2a3e-text-light) !important;
  text-decoration: none !important;
  transition: color var(--2a3e-transition-fast);
}

.footer-contact-text a:hover {
  color: var(--2a3e-accent) !important;
}

.footer-hours {
  display: flex;
  gap: 24px;
  font-size: 0.85rem;
  color: var(--2a3e-text-light);
  margin-top: 8px;
}

.footer-hours-item strong {
  display: block;
  color: var(--2a3e-white);
  margin-bottom: 4px;
}

.footer-map {
  width: 100%;
  overflow: hidden;
}

.footer-map img {
  width: 250px;
  height: auto;
  display: block;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  font-size: 0.8rem;
  color: var(--2a3e-text-muted) !important;
  text-decoration: none !important;
  transition: color var(--2a3e-transition-fast);
}

.footer-legal a:hover {
  color: var(--2a3e-accent) !important;
}

.footer-copyright {
  font-size: 0.8rem;
  color: var(--2a3e-text-muted);
  margin: 0;
}

/* ============================================
   RESPONSIVE - SCOPED WHERE NEEDED
   ============================================ */
@media (max-width: 1024px) {
  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 40px 30px;
  }

  body.page-2a3e .picto__container {
    grid-template-columns: repeat(2, 1fr);
  }

  body.page-2a3e .engagement__container > .wp-block-group {
    gap: 100px;
  }

  body.page-2a3e .titre__header h1 {
    font-size: 2.5rem;
  }

  body.page-2a3e .titre__header h1 strong {
    font-size: 2rem;
  }

  body.page-2a3e .titre__header h2 {
    font-size: 1.4rem;
  }

  .navbar-social {
    margin-left: 0px;
    padding-left: 0px;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .footer-main {
    padding-left: 50px;
  }
}

@media (max-width: 900px) {
  .main-nav {
    display: none;
    transform: translateX(-100%);
    position: fixed;
    top: 0;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .navbar-social {
    display: none;
  }

  /* Mobile Navigation Overlay */
  .main-nav.mobile-active {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    max-width: 85vw;
    height: 100vh;
    height: 100dvh;
    background-color: var(--2a3e-primary-dark);
    padding: 80px 24px 30px;
    overflow-y: auto;
    z-index: 10000;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.5);
    transform: translateX(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  /* Overlay backdrop */
  .main-nav.mobile-active::before {
    content: "";
    position: fixed;
    top: 0;
    left: 280px;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: -1;
  }

  .main-nav.mobile-active .nav-list,
  .main-nav.mobile-active > ul {
    flex-direction: column;
    width: 100%;
    gap: 8px;
    background: none;
    padding: 0;
    border-radius: 0;
  }

  .main-nav.mobile-active .nav-link,
  .main-nav.mobile-active .nav-cta,
  .main-nav.mobile-active > ul > li > a {
    width: 100%;
    padding: 16px 20px;
    font-size: 1rem;
    text-align: left;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--2a3e-white) !important;
  }

  .main-nav.mobile-active .nav-link:hover,
  .main-nav.mobile-active .nav-cta:hover,
  .main-nav.mobile-active > ul > li > a:hover {
    background-color: rgba(255, 255, 255, 0.1);
  }

  /* Mobile social icons in menu */
  .main-nav.mobile-active .navbar-social {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-left: 0;
    margin-left: 0;
  }
}

@media (max-width: 768px) {
  :root {
    --2a3e-navbar-height: 60px;
  }

  body.page-2a3e .titre__header {
    min-height: 400px;
    padding: 40px 24px;
  }

  body.page-2a3e .titre__header h1 {
    font-size: 2rem;
  }

  body.page-2a3e .titre__header h1 strong {
    font-size: 1.5rem;
  }

  body.page-2a3e .titre__header h2 {
    font-size: 0.9rem;
  }

  body.page-2a3e .image__container {
    flex-direction: column;
    align-items: center;
  }

  body.page-2a3e .image__container figure {
    max-width: 100%;
    min-width: auto;
  }

  body.page-2a3e .picto__container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  body.page-2a3e .engagement__container > .wp-block-group {
    grid-template-columns: 1fr !important;
    max-width: 400px;
  }

  body.page-2a3e .engagement__container > h2 {
    font-size: 1.5rem;
  }

  .footer-main {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand {
    align-items: center;
  }

  .footer-tagline {
    text-align: center;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-nav-list a::before,
  .footer-nav-column ul a::before {
    display: none;
  }

  .footer-contact-item {
    justify-content: center;
  }

  .footer-map {
    margin: 0 auto;
    justify-content: center;
    display: flex;
  }

  .footer-hours {
    justify-content: center;
    flex-wrap: wrap;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  body.page-2a3e .contact__container {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  body.page-2a3e .contact__container p {
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  .navbar-container {
    padding: 0 16px;
  }

  .site-logo-name {
    font-size: 1.25rem;
  }

  .site-logo-tagline {
    display: none;
  }

  .navbar-social {
    display: none;
  }

  body.page-2a3e .titre__header h2 {
    font-size: 1.4rem;
  }

  body.page-2a3e .interventions__container,
  body.page-2a3e .qualité__container,
  body.page-2a3e .entretien__container {
    padding: 30px 24px;
  }
}
