:where(.sig-footer, .site-footer, .footer) {
  min-height: 0 !important;
  position: relative;
  display: block !important;
  padding: 0 4vw 28px !important;
  border-top: 0 !important;
  background: #31050D !important;
  color: #FFFAF6 !important;
}

:where(.sig-footer, .site-footer, .footer) a {
  color: inherit;
  text-decoration: none;
}

/* Footer compact validé : l'annuaire commence immédiatement, sans préambule. */
:where(.sig-footer-partner, .site-footer-partner, .footer-partner),
:where(.sig-footer-intro, .site-footer-intro, .footer-intro) {
  display: none !important;
}

/* Appel à l'action compact — le formulaire complet reste sur /contact/. */
.sig-contact.is-compact {
  min-height: 0 !important;
  padding: clamp(68px, 6vw, 94px) 4vw !important;
}

.sig-contact.is-compact .sig-contact-head {
  margin-bottom: clamp(38px, 4vw, 58px) !important;
  align-items: start;
}

.sig-contact.is-compact .sig-contact-head h2 {
  max-width: 980px;
  font-size: clamp(52px, 6.8vw, 104px) !important;
  line-height: .84 !important;
}

.sig-contact.is-compact .sig-contact-layout {
  align-items: end;
}

.sig-contact.is-compact .sig-contact-intro {
  max-width: 480px;
}

.sig-contact-cta {
  display: inline-flex;
  justify-self: start;
  align-items: center;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid currentColor;
  color: inherit;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: .14em;
  transition: transform .25s ease, opacity .25s ease;
}

.sig-contact-cta:hover {
  transform: translateY(-3px);
  opacity: .65;
}

.sig-contact-cta:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

@media (max-width: 760px) {
  .sig-contact.is-compact {
    padding: 70px 17px 76px !important;
  }

  .sig-contact.is-compact .sig-contact-head {
    margin-bottom: 34px !important;
    gap: 25px !important;
  }

  .sig-contact.is-compact .sig-contact-head h2 {
    font-size: clamp(46px, 14vw, 58px) !important;
  }

  .sig-contact.is-compact .sig-contact-layout {
    gap: 30px !important;
  }

  .sig-contact-cta {
    width: calc(100% - 54px);
    justify-content: space-between;
  }
}

:where(.sig-footer-partner, .site-footer-partner, .footer-partner) {
  padding: 26px 0 !important;
  border-top: 1px solid rgba(255,250,246,.28) !important;
  border-bottom: 1px solid rgba(255,250,246,.28) !important;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  font-size: 9px !important;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: .14em;
}

:where(.sig-footer-partner, .site-footer-partner, .footer-partner) span { opacity: .62; }
:where(.sig-footer-partner, .site-footer-partner, .footer-partner) a { padding-bottom: 5px; border-bottom: 1px solid; }

:where(.sig-footer-intro, .site-footer-intro, .footer-intro) {
  padding: 7vw 0 6vw !important;
  display: grid !important;
  grid-template-columns: .8fr 1.2fr !important;
  align-items: end !important;
  gap: 7vw !important;
}

body footer :is(.footer-logo, .site-footer-logo) {
  display: block !important;
  width: 155px !important;
  max-width: 155px !important;
  height: auto !important;
  aspect-ratio: 320 / 414;
  object-fit: contain !important;
  filter: brightness(0) invert(1);
}

:where(.sig-footer-intro, .site-footer-intro, .footer-intro) p {
  margin: 0 !important;
  font-size: clamp(46px, 6vw, 91px) !important;
  line-height: .86 !important;
  letter-spacing: -.065em !important;
}

:where(.sig-footer-directory, .site-footer-grid, .footer-directory) {
  padding: 58px 0 44px !important;
  border-top: 0 !important;
  border-bottom: 1px solid rgba(255,250,246,.28) !important;
  display: grid !important;
  grid-template-columns: 1.05fr .8fr 1.65fr 1fr !important;
  gap: 4vw !important;
}

.services-dropdown {
  position: relative;
  align-self: stretch;
  display: flex;
  align-items: center;
}

.services-dropdown-trigger {
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .12em;
  white-space: nowrap;
  cursor: pointer;
}

.services-dropdown-trigger span {
  display: inline-block;
  margin-left: 5px;
  transition: transform .25s ease;
}

.services-dropdown.is-open .services-dropdown-trigger span { transform: rotate(180deg); }

.services-dropdown-panel {
  position: absolute;
  z-index: 60;
  top: calc(100% - 1px);
  left: -24px;
  width: 330px;
  padding: 18px 24px 22px;
  border: 1px solid rgba(49,5,13,.22);
  background: #FFFAF6;
  color: #31050D;
  box-shadow: 0 18px 38px rgba(49,5,13,.09);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-7px);
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
}

.services-dropdown.is-open .services-dropdown-panel,
.services-dropdown:hover .services-dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.site-head .services-dropdown-panel a {
  display: block !important;
  padding: 10px 0;
  border-bottom: 1px solid rgba(49,5,13,.16);
  color: inherit;
  font-size: 11px !important;
  line-height: 1.25;
  letter-spacing: .06em !important;
  text-transform: none !important;
  white-space: normal !important;
}

.site-head .services-dropdown-panel a:last-child { border-bottom: 0; }
.site-head .services-dropdown-panel a:hover { padding-left: 7px; }
.site-head .services-dropdown-panel a[aria-current="page"] { font-weight: 600; }

.mobile-services-dropdown { border-bottom: 1px solid rgba(255,250,246,.25); }
.mobile-services-trigger {
  width: 100%;
  min-height: 66px;
  padding: 15px 0;
  border: 0;
  background: transparent;
  color: inherit;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font: inherit;
  font-size: clamp(28px,9vw,43px);
  line-height: .95;
  letter-spacing: -.04em;
  text-align: left;
}
.mobile-services-trigger span { font-size: 24px; font-weight: 300; }
.mobile-services-panel { padding: 4px 0 18px 15px; }
.mobile-services-panel[hidden] { display: none !important; }
.mobile-services-panel:not([hidden]) {
  display: flex !important;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
}
.mobile-menu nav .mobile-services-panel a {
  display: block !important;
  width: 100%;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid rgba(255,250,246,.12);
  font-size: 15px;
  line-height: 1.25;
  letter-spacing: 0;
}
.mobile-menu nav .mobile-services-panel a:last-child { border-bottom: 0; }

@media (max-width: 980px) {
  .site-head,
  .signature .site-head {
    grid-template-columns: 58px minmax(0,1fr) 38px 58px !important;
    gap: 8px !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  .site-head .action,
  .signature .site-head .action {
    grid-column: 2 !important;
    justify-self: end !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  .site-head .lang,
  .signature .site-head .lang {
    grid-column: 3 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 44px;
    border: 1px solid currentColor;
    font-size: 10px !important;
    font-weight: 600;
    letter-spacing: .08em !important;
  }
  .site-head .menu-toggle,
  .signature .site-head .menu-toggle { grid-column: 4 !important; }
  .mobile-menu-foot a[lang] { display: none !important; }
}

@media (max-width: 760px) {
  .desktop-arrow { display: none !important; }
}

.footer-description h2 {
  margin: 0 0 25px;
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .17em;
  opacity: .55;
}

.footer-description p {
  max-width: 260px;
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  opacity: .78;
}

:where(.sig-footer-group, .footer-group) h3 {
  margin: 0 0 25px !important;
  font-size: 10px !important;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .17em;
  opacity: .55;
}

:where(.sig-footer-group, .footer-group) nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 11px;
}

:where(.sig-footer-group, .footer-group) a {
  font-size: 13px !important;
  line-height: 1.25;
  transition: opacity .2s, transform .2s;
}

:where(.sig-footer-group, .footer-group) a:hover { opacity: .58; transform: translateX(3px); }
:where(.sig-footer-services, .footer-services) { display: grid !important; grid-template-columns: 1fr 1fr; column-gap: 28px; }
:where(.sig-footer-contact, .footer-contact) a:first-child { font-size: 16px !important; }

:where(.sig-footer-bottom, .site-footer-bottom, .footer-bottom) {
  padding-top: 22px !important;
  display: flex !important;
  justify-content: space-between;
  align-items: flex-end;
  gap: 25px;
  font-size: 8px !important;
  line-height: 1.5;
  text-transform: uppercase;
  letter-spacing: .13em;
}

:where(.sig-footer-legal, .site-footer-legal, .footer-legal) { display: flex; gap: 22px; flex-wrap: wrap; }
:where(.sig-footer-bottom, .site-footer-bottom, .footer-bottom) small { opacity: .55; }

@media (max-width: 980px) {
  .services-dropdown { display: none; }
  :where(.sig-footer-directory, .site-footer-grid, .footer-directory) {
    grid-template-columns: 1fr 1.5fr !important;
    gap: 55px 8vw !important;
  }
  :where(.sig-footer-intro, .site-footer-intro, .footer-intro) { grid-template-columns: .6fr 1.4fr !important; }
}

@media (max-width: 760px) {
  :where(.sig-footer, .site-footer, .footer) { padding: 0 17px 24px !important; }
  :where(.sig-footer-partner, .site-footer-partner, .footer-partner) { padding: 23px 0 !important; align-items: flex-start; }
  :where(.sig-footer-partner, .site-footer-partner, .footer-partner) span { max-width: 160px; }
  :where(.sig-footer-intro, .site-footer-intro, .footer-intro) {
    padding: 80px 0 70px !important;
    grid-template-columns: 1fr !important;
    gap: 45px !important;
  }
  body footer :is(.footer-logo, .site-footer-logo) { width: 120px !important; max-width: 120px !important; }
  :where(.sig-footer-intro, .site-footer-intro, .footer-intro) p { font-size: 49px !important; }
  :where(.sig-footer-directory, .site-footer-grid, .footer-directory) {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
    padding: 36px 0 44px !important;
  }
  :where(.sig-footer-group, .footer-group) { border-bottom: 1px solid rgba(255,250,246,.24); }
  .footer-description { padding: 0 0 34px; border-bottom: 1px solid rgba(255,250,246,.24); }
  .footer-description h2 { margin-bottom: 16px; }
  .footer-description p { max-width: 300px; font-size: 14px; }
  :where(.sig-footer-group, .footer-group) h3 { margin: 0 !important; }
  .footer-toggle {
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
  }
  .footer-toggle::after { content: "+"; font-size: 18px; font-weight: 300; }
  .footer-toggle[aria-expanded="true"]::after { content: "−"; }
  :where(.sig-footer-group, .footer-group) nav { padding: 0 0 26px; }
  :where(.sig-footer-services, .footer-services) { grid-template-columns: 1fr; }
  :where(.sig-footer-bottom, .site-footer-bottom, .footer-bottom) { display: block !important; }
  :where(.sig-footer-legal, .site-footer-legal, .footer-legal) { margin-bottom: 22px; gap: 15px 20px; }
}

/* Doit rester en dernier pour neutraliser les anciens modèles de footer. */
:where(.sig-footer-partner, .site-footer-partner, .footer-partner),
:where(.sig-footer-intro, .site-footer-intro, .footer-intro) {
  display: none !important;
}
