/**
 * EFY Motors — navy #0e2c42 + bordeaux #460e14
 */
:root {
  --efy-burgundy: #460e14;
  --efy-burgundy-hover: #3a0b10;
  --efy-navy: #0e2c42;
  --efy-navy-light: #1a4a6e;
  --efy-accent: #8b2e3d;
  --efy-cookie-red: #e30613;
}

/* ——— Topbar navy (bleu du site visible) ——— */
body.efy-motors-theme .header-top {
  background-color: var(--efy-navy) !important;
  border-bottom: 3px solid var(--efy-burgundy);
}

body.efy-motors-theme .header-top .contact li,
body.efy-motors-theme .header-top .contact li a,
body.efy-motors-theme .header-top .topbar-right {
  color: rgba(255, 255, 255, 0.92) !important;
}

body.efy-motors-theme .header-top .contact li a:hover {
  color: #fff !important;
}

body.efy-motors-theme .about-widget li i,
body.efy-motors-theme .header-top .contact li i,
body.efy-motors-theme .header-top .contact li a i {
  color: #fff !important;
}

/* Logo */
body.efy-motors-theme .custom-logo-link img,
body.efy-motors-theme .site-branding .custom-logo {
  max-height: 67px;
  width: auto;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

/* Menu actif */
body.efy-motors-theme .primary-menu > .current-menu-item > a,
body.efy-motors-theme .primary-menu > .current_page_item > a,
body.efy-motors-theme .primary-menu > .current-menu-ancestor > a {
  color: var(--efy-navy) !important;
  border-bottom: 3px solid var(--efy-burgundy) !important;
  background: transparent !important;
}

body.efy-motors-theme .primary-menu > li:hover > a,
body.efy-motors-theme .primary-menu > li.focus > a {
  color: var(--efy-navy) !important;
  border-bottom-color: var(--efy-burgundy) !important;
}

body.efy-motors-theme .main-navigation a:hover {
  color: var(--efy-navy) !important;
}

/* Titres sections */
body.efy-motors-theme .all-car__title,
body.efy-motors-theme .section--search .search-form__title p,
body.efy-motors-theme .widget-area .widget .widget-title {
  color: var(--efy-navy) !important;
}

/* Boutons — navy principal */
body.efy-motors-theme .button,
body.efy-motors-theme input[type="submit"],
body.efy-motors-theme .auto-listings-search .al-button,
body.efy-motors-theme .see-all-cars,
body.efy-motors-theme .all-car__button,
body.efy-motors-theme .section--cta .section-cta__right a {
  background-color: var(--efy-navy) !important;
  border-color: var(--efy-navy) !important;
  color: #fff !important;
}

body.efy-motors-theme .button:hover,
body.efy-motors-theme input[type="submit"]:hover,
body.efy-motors-theme .auto-listings-search .al-button:hover,
body.efy-motors-theme .all-car__button:hover,
body.efy-motors-theme .section--cta .section-cta__right a:hover {
  background-color: var(--efy-burgundy) !important;
  border-color: var(--efy-burgundy) !important;
}

body.efy-motors-theme .section--cta {
  background-image: linear-gradient(135deg, var(--efy-navy) 0%, var(--efy-navy-light) 45%, var(--efy-burgundy) 100%) !important;
  background-color: var(--efy-navy) !important;
}

body.efy-motors-theme .section--cta .cta-title,
body.efy-motors-theme .section--cta .cta-description {
  color: #fff !important;
}

body.efy-motors-theme .more-link,
body.efy-motors-theme .wp-block-button__link {
  background-color: var(--efy-navy) !important;
  border-color: var(--efy-navy) !important;
  color: #fff !important;
}

body.efy-motors-theme .more-link:hover {
  background-color: #fff !important;
  color: var(--efy-navy) !important;
}

body.efy-motors-theme .section--search .search-title {
  background-color: var(--efy-navy) !important;
  color: #fff !important;
}

body.efy-motors-theme .scroll-to-top {
  background-color: var(--efy-navy) !important;
  border-color: var(--efy-navy) !important;
}

body.efy-motors-theme .scroll-to-top:hover {
  color: var(--efy-navy) !important;
  background: #fff !important;
}

body.efy-motors-theme .auto-listings .price,
body.efy-motors-theme .auto-listings-item .price {
  color: var(--efy-burgundy) !important;
}

body.efy-motors-theme .widget-area .widget .widget-title:before {
  border-left-color: var(--efy-navy) !important;
}

body.efy-motors-theme .all--car ul li a:hover,
body.efy-motors-theme .efy-fallback-makes li a:hover {
  color: var(--efy-navy) !important;
}

body.efy-motors-theme .site-footer {
  background-color: var(--efy-navy) !important;
}

body.efy-motors-theme .site-footer .footer-copyright,
body.efy-motors-theme .site-footer .footer-copyright a {
  color: rgba(255, 255, 255, 0.9);
}

body.efy-motors-theme .site-footer .footer-copyright a:hover {
  color: #fff;
}

/* Bouton flottant cookies — couleurs logo EFY (navy + bordeaux) */
.efy-legal-fab {
  position: fixed;
  bottom: 12px;
  left: 12px;
  z-index: 10001;
  width: 42px;
  height: 42px;
  border: 2px solid var(--efy-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  background: linear-gradient(145deg, var(--efy-navy) 0%, var(--efy-burgundy) 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(14, 44, 66, 0.5);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.efy-legal-fab:hover {
  transform: scale(1.06);
  box-shadow: 0 6px 20px rgba(70, 14, 20, 0.45);
  background: linear-gradient(145deg, var(--efy-burgundy) 0%, var(--efy-navy) 100%);
}

.efy-legal-fab svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.efy-legal-fab.is-open {
  background: var(--efy-burgundy);
  border-color: var(--efy-navy);
}

.efy-legal-fab.is-accepted {
  background: var(--efy-navy);
  border-color: var(--efy-accent);
}

body.efy-legal-modal-open .efy-legal-fab.is-open {
  bottom: 12px;
  left: 12px;
  z-index: 10002;
}

/* Modal cookies — style Bioforce */
.efy-legal-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  pointer-events: none;
}

.efy-legal-modal.is-open {
  pointer-events: auto;
}

.efy-legal-modal__panel {
  position: fixed;
  bottom: 64px;
  left: 12px;
  max-width: 400px;
  width: calc(100% - 24px);
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.16);
  padding: 1.1rem 1.25rem 0.9rem;
  transform: translateY(110%);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.efy-legal-modal.is-open .efy-legal-modal__panel {
  transform: translateY(0);
  opacity: 1;
}

.efy-legal-modal__logo {
  position: absolute;
  top: 1rem;
  right: 1rem;
  max-height: 36px;
  width: auto;
}

.efy-legal-modal__close {
  display: none;
}

.efy-legal-modal__kicker {
  margin: 0 0 0.2rem;
  padding-right: 4rem;
  font-size: 0.95rem;
  color: #333;
}

.efy-legal-modal__title {
  margin: 0 0 0.65rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--efy-navy);
}

.efy-legal-modal__text {
  margin: 0 0 0.65rem;
  font-size: 0.86rem;
  line-height: 1.55;
  color: #444;
}

.efy-legal-modal__link a {
  color: var(--efy-navy);
  font-weight: 600;
  font-size: 0.84rem;
  text-decoration: underline;
}

.efy-legal-modal__info {
  margin: 0.85rem 0;
  padding: 0.7rem 0.85rem;
  border: 1px solid #e4e4e4;
  border-radius: 6px;
  font-size: 0.8rem;
  color: #555;
  background: #fafafa;
}

.efy-legal-modal__info ul {
  margin: 0.45rem 0 0;
  padding-left: 0;
  list-style: none;
}

.efy-legal-modal__info li::before {
  content: "- ";
  color: #888;
}

.efy-legal-modal__actions {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  padding-top: 0.35rem;
  border-top: 1px solid #f0f0f0;
}

.efy-legal-modal__btn {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 0.82rem;
  padding: 0.4rem 0.25rem;
  text-decoration: none;
  color: #666;
}

.efy-legal-modal__btn--ghost:hover {
  color: #333;
}

.efy-legal-modal__btn--primary {
  color: var(--efy-burgundy);
  font-weight: 700;
}

/* Hero slider */
body.efy-motors-theme .featured-posts img {
  width: 100%;
  object-fit: cover;
  min-height: 420px;
}

body.efy-motors-theme .featured-posts .featured-content .entry-title {
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

body.efy-motors-theme .featured-posts .slick-dots li button:before {
  color: var(--efy-navy);
}

body.efy-motors-theme .featured-posts .slick-dots li.slick-active button:before {
  color: #fff;
}

/* Zone recherche */
body.efy-motors-theme .section--search {
  border: 10px solid #f0f4f8 !important;
  background: #fff;
  box-shadow: 0 4px 24px rgba(14, 44, 66, 0.1);
}

body.efy-motors-theme .section--search .search-form__title p {
  color: var(--efy-navy);
  font-weight: 700;
}

/* Page JE RECHERCHE — padding formulaire */
body.efy-motors-theme.page-recherche .site-content .container > .content {
  padding: 36px 28px 56px;
  box-sizing: border-box;
}

body.efy-motors-theme.page-recherche .entry-content .auto-listings-search {
  padding: 28px 32px 32px;
  background: #fff;
  border: 1px solid #e4eaf0;
  box-shadow: 0 4px 22px rgba(14, 44, 66, 0.08);
  box-sizing: border-box;
}

body.efy-motors-theme.page-recherche .entry-content .auto-listings-search .row {
  margin-bottom: 14px;
}

body.efy-motors-theme.page-recherche .entry-content .auto-listings-search .SumoSelect > .CaptionCont,
body.efy-motors-theme.page-recherche .entry-content .auto-listings-search .area {
  padding: 11px 14px;
}

body.efy-motors-theme.page-recherche .entry-content .auto-listings-search .al-button {
  margin-top: 8px;
  padding: 13px 24px;
}

body.efy-motors-theme.page-recherche .has-sidebar .sidebar {
  padding-top: 36px;
}

body.efy-motors-theme.page-recherche .has-sidebar .sidebar .widget {
  padding: 20px 22px 24px;
  box-sizing: border-box;
}

/* Dropdown langue — une seule barre, texte blanc */
body.efy-motors-theme .header-top .topbar-right {
  display: flex;
  align-items: stretch;
}

body.efy-motors-theme .topbar-right > div:nth-child(2) {
  border-left: none !important;
}

body.efy-motors-theme .topbar-right .social-media:empty {
  display: none !important;
}

body.efy-motors-theme .efy-topbar-languages,
body.efy-motors-theme .topbar-right .topbar-languages.efy-topbar-languages {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  min-width: 96px;
  padding: 0 1rem;
  border-left: 1px solid rgba(255, 255, 255, 0.28) !important;
  margin-left: 0;
}

.efy-lang-switcher {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  min-height: 100%;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff !important;
  padding: 0 0.5rem;
  margin: 0;
  border: none !important;
}

.efy-lang-switcher .icofont-globe {
  color: #fff !important;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.efy-lang-select {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  background: transparent;
  color: #fff !important;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.35rem 1.15rem 0.35rem 0.15rem;
  cursor: pointer;
  line-height: 1.2;
  text-align: center;
  text-align-last: center;
  min-width: 2.75rem;
}

.efy-lang-select option {
  color: #222;
  background: #fff;
}

.efy-lang-arrow {
  position: absolute;
  right: 0.15rem;
  top: 50%;
  transform: translateY(-50%);
  color: #fff !important;
  font-size: 0.5rem;
  pointer-events: none;
  opacity: 0.95;
}

/* Icônes blog (catégorie, date) — couleurs EFY */
body.efy-motors-theme .entry-header .entry-header__category,
body.efy-motors-theme .entry-header .entry-header__category a {
  color: var(--efy-navy) !important;
}

body.efy-motors-theme .entry-header .entry-header__category:before,
body.efy-motors-theme .entry-meta .posted-on .icofont,
body.efy-motors-theme .entry-meta .posted-on a {
  color: var(--efy-navy) !important;
}

body.efy-motors-theme .widget_categories ul li a:before,
body.efy-motors-theme .widget-area .widget ul li a:before {
  color: var(--efy-burgundy) !important;
}

/* Formulaire recherche sidebar / 404 — style démo (type=text requis par le thème parent) */
body.efy-motors-theme .search-form {
  position: relative;
}

body.efy-motors-theme .search-form input[type="text"],
body.efy-motors-theme .search-form input[type="search"] {
  width: 100%;
  padding: 12px 50px 12px 22px;
  border-radius: 100px;
  font-size: 0.8125rem;
  color: #000;
  font-style: italic;
  border: 1px solid #e4e4e4;
  background: #fff;
}

body.efy-motors-theme .search-form .search-submit {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--efy-navy);
  padding: 0;
  cursor: pointer;
}

body.efy-motors-theme .search-form .search-submit i {
  font-size: 1.1rem;
}

body.efy-motors-theme .widget_search .search-form {
  margin-top: 0.5rem;
}

.efy-home-listings__empty {
  padding: 1.5rem;
  background: #f8f8f8;
  border-radius: 6px;
  color: #555;
  margin-top: 1rem;
}

/* Layout véhicules accueil — respecte le float du thème parent */
body.home .site-content .container > .content::after {
  content: '';
  display: table;
  clear: both;
}

body.home .efy-home-listings__empty {
  clear: both;
}

/* Catalogue véhicules — couleurs EFY (layout = template CarListings / Auto Listings) */
body.auto-listings .container > .content {
  padding-top: 28px;
  padding-bottom: 48px;
}

body.efy-motors-theme .auto-listings .price,
body.efy-motors-theme .auto-listings-items li .price {
  color: var(--efy-burgundy) !important;
}

body.efy-motors-theme .auto-listings-items li .address {
  color: var(--efy-burgundy) !important;
}

body.efy-motors-theme .auto-listings-pagination ul li span.current {
  background: var(--efy-burgundy) !important;
  border-color: var(--efy-burgundy) !important;
  color: #fff !important;
}

body.efy-motors-theme .auto-listings-view-switcher > div.active {
  background: var(--efy-navy) !important;
  border-color: var(--efy-navy) !important;
  color: #fff !important;
}

/* Cartes catalogue — prix lisible + bouton sous le prix (sans chevauchement) */
body.auto-listings .auto-listings-items.grid-view > li,
body.auto-listings .auto-listings-items:not(.grid-view) > li {
  overflow: visible;
  margin-bottom: 40px;
}

body.efy-motors-theme .auto-listings-items li .summary {
  position: relative;
  padding: 12px 15px 16px !important;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

body.efy-motors-theme .auto-listings-items li .title {
  margin: 0 0 4px;
  padding: 0;
}

body.efy-motors-theme .auto-listings-items li .address {
  margin: 0 0 6px;
  font-size: 0.85rem;
}

body.efy-motors-theme .auto-listings-items li .price,
body.efy-motors-theme .auto-listings-items li .price .price-amount {
  font-size: 0.95rem !important;
  line-height: 1.3;
  font-weight: 700;
  margin: 0 0 10px !important;
}

body.efy-motors-theme .has-sidebar .auto-listings-items.grid-view li.col-3 .price,
body.efy-motors-theme .has-sidebar .auto-listings-items.grid-view li.col-3 .price .price-amount {
  font-size: 0.9rem !important;
}

body.efy-motors-theme .auto-listings-items .bottom-wrap {
  position: static !important;
  right: auto !important;
  bottom: auto !important;
  float: none !important;
  display: block;
  margin: 0 !important;
  padding: 0;
  text-align: right;
}

body.efy-motors-theme .has-sidebar .auto-listings-items.grid-view .bottom-wrap a.al-button,
body.efy-motors-theme .auto-listings-items .bottom-wrap a.al-button {
  display: inline-block;
  width: auto;
  padding: 8px 14px !important;
  font-size: 0.72rem;
  line-height: 1.3;
  margin: 0 !important;
}

/* Fiche véhicule — formulaire contact lisible */
body.efy-motors-theme .auto-listings-single .contact-form {
  background: #f4f6f8;
  border: 1px solid #e0e4e8;
  border-left: 4px solid var(--efy-burgundy);
  padding: 18px 20px;
}

body.efy-motors-theme .auto-listings-single .contact-form h4 {
  color: var(--efy-navy);
  margin: 0 0 14px;
  font-size: 1rem;
}

body.efy-motors-theme .auto-listings-single .contact-form input:not(.button-primary),
body.efy-motors-theme .auto-listings-single .contact-form textarea {
  border: 1px solid #b8c0c8 !important;
  background: #fff !important;
  color: #333 !important;
  padding: 10px 12px !important;
  border-radius: 3px;
}

body.efy-motors-theme .auto-listings-single .contact-form input.button-primary,
body.efy-motors-theme .auto-listings-single .contact-form .al-button {
  background-color: var(--efy-burgundy) !important;
  border-color: var(--efy-burgundy) !important;
  width: 100%;
  margin-top: 6px;
  padding: 12px 16px !important;
  text-transform: uppercase;
  font-weight: 700;
}

body.efy-motors-theme .auto-listings-single .contact-form input.button-primary:hover {
  background-color: var(--efy-navy) !important;
  border-color: var(--efy-navy) !important;
  color: #fff !important;
}

/* En-tête résultats de recherche (lisible, sans bannière sombre) */
body.search .efy-search-header {
  background: #fff;
  padding: 0 0 1.25rem;
  margin: 0 0 1.5rem;
  border-bottom: 1px solid #e8e8e8;
  text-align: left;
}

body.search .efy-search-title {
  color: var(--efy-navy);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
}

/* Sidebar recherche — espacements */
body.efy-motors-theme .sidebar .auto-listings-search .field.model .SumoSelect.disabled > .CaptionCont {
  opacity: 0.55;
  cursor: not-allowed;
}

body.efy-motors-theme .sidebar .auto-listings-search {
  padding: 1.35rem 1.35rem 1.5rem;
}

body.efy-motors-theme .sidebar .widget {
  margin-bottom: 1.75rem;
}

body.efy-motors-theme .sidebar .auto-listings-search .row,
body.efy-motors-theme .sidebar .auto-listings-search .field {
  margin-bottom: 12px;
}

body.efy-motors-theme .sidebar .auto-listings-search .SumoSelect > .CaptionCont {
  padding: 10px 12px;
  min-height: 42px;
}

body.efy-motors-theme .sidebar .auto-listings-search .area {
  padding: 10px 12px;
  min-height: 42px;
}

body.efy-motors-theme .sidebar .auto-listings-search .al-button {
  margin-top: 0.75rem;
  padding: 12px 18px;
}

body.home .sidebar {
  margin-top: 72px;
  padding-left: 12px;
}

body.home .has-sidebar {
  padding-right: 16px;
}

/* Menu — visible desktop + liens d'origine */
@media (min-width: 992px) {
  body.efy-motors-theme .main-navigation .menu,
  body.efy-motors-theme .main-navigation #primary-menu,
  body.efy-motors-theme .main-navigation .primary-menu {
    display: flex !important;
    flex-wrap: nowrap;
    align-items: center;
    visibility: visible !important;
    opacity: 1 !important;
  }

  body.efy-motors-theme .menu-toggle {
    display: none !important;
  }

  body.efy-motors-theme .site-header > .container {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
  }

  body.efy-motors-theme .main-navigation {
    flex: 1 1 auto;
    display: flex !important;
    justify-content: flex-end;
    margin-left: 1rem;
  }

  body.efy-motors-theme .primary-menu {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  body.efy-motors-theme .primary-menu > li > a {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 12px 10px 8px;
    white-space: nowrap;
    color: #3d414e !important;
    text-transform: uppercase;
  }
}

body.efy-motors-theme .primary-menu > li:hover > a,
body.efy-motors-theme .primary-menu > .current-menu-item > a {
  color: var(--efy-burgundy) !important;
  border-bottom-color: var(--efy-burgundy) !important;
}

/* Boutons catalogue — couleurs EFY */
body.efy-motors-theme .auto-listings .al-button,
body.efy-motors-theme .auto-listings-items .bottom-wrap a.al-button,
body.efy-motors-theme .home .has-sidebar .auto-listings-items .bottom-wrap a,
body.efy-motors-theme .auto-listings-items .bottom-wrap a {
  background-color: var(--efy-burgundy) !important;
  border-color: var(--efy-burgundy) !important;
  color: #fff !important;
}

body.efy-motors-theme .auto-listings .al-button:hover,
body.efy-motors-theme .auto-listings-items .bottom-wrap a.al-button:hover,
body.efy-motors-theme .home .has-sidebar .auto-listings-items .bottom-wrap a:hover {
  background-color: var(--efy-navy) !important;
  border-color: var(--efy-navy) !important;
  color: #fff !important;
}

body.efy-motors-theme .auto-listings-view-switcher .active,
body.efy-motors-theme .auto-listings-ordering select:focus {
  border-color: var(--efy-navy) !important;
}

/* Sidebar recherche — style démo */
body.efy-motors-theme .sidebar .auto-listings-search {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-left: 4px solid var(--efy-burgundy);
  padding: 1rem 1rem 1.25rem;
  border-radius: 2px;
}

body.efy-motors-theme .sidebar .widget-title {
  font-size: 1rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 1rem;
}

body.efy-motors-theme .sidebar .auto-listings-search .al-button {
  width: 100%;
  margin-top: 0.5rem;
  padding: 10px 16px;
  background-color: var(--efy-navy) !important;
  border-color: var(--efy-navy) !important;
}

body.efy-motors-theme .sidebar .auto-listings-search .al-button:hover {
  background-color: var(--efy-burgundy) !important;
  border-color: var(--efy-burgundy) !important;
}

/* Formulaire recherche sidebar — aligné template CarListings */
body.efy-motors-theme .sidebar form.auto-listings-search,
body.auto-listings .sidebar form.auto-listings-search,
body.home .sidebar form.auto-listings-search {
  display: flex;
  flex-flow: column wrap;
  width: 100%;
  margin: 0;
  padding: 0;
  text-align: left;
  box-sizing: border-box;
}

body.efy-motors-theme .sidebar form.auto-listings-search .prefix,
body.efy-motors-theme .sidebar form.auto-listings-search a.refine,
body.auto-listings .sidebar form.auto-listings-search .prefix,
body.auto-listings .sidebar form.auto-listings-search a.refine,
body.home .sidebar form.auto-listings-search .prefix,
body.home .sidebar form.auto-listings-search a.refine {
  display: none !important;
}

body.efy-motors-theme .sidebar form.auto-listings-search .area-wrap,
body.auto-listings .sidebar form.auto-listings-search .area-wrap,
body.home .sidebar form.auto-listings-search .area-wrap {
  order: 1;
  width: 100%;
  text-align: left;
}

body.efy-motors-theme .sidebar form.auto-listings-search .extras-wrap,
body.auto-listings .sidebar form.auto-listings-search .extras-wrap,
body.home .sidebar form.auto-listings-search .extras-wrap {
  display: block !important;
  width: 100%;
  margin-bottom: 0;
}

body.efy-motors-theme .sidebar form.auto-listings-search .SumoSelect,
body.auto-listings .sidebar form.auto-listings-search .SumoSelect,
body.home .sidebar form.auto-listings-search .SumoSelect {
  width: 100%;
  margin-left: 0;
}

body.efy-motors-theme .sidebar form.auto-listings-search .price-wrap,
body.auto-listings .sidebar form.auto-listings-search .price-wrap,
body.home .sidebar form.auto-listings-search .price-wrap {
  display: flex;
  flex-flow: row wrap;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 0;
}

body.efy-motors-theme .sidebar form.auto-listings-search .price-wrap .min-price,
body.efy-motors-theme .sidebar form.auto-listings-search .price-wrap .max-price,
body.auto-listings .sidebar form.auto-listings-search .price-wrap .min-price,
body.auto-listings .sidebar form.auto-listings-search .price-wrap .max-price,
body.home .sidebar form.auto-listings-search .price-wrap .min-price,
body.home .sidebar form.auto-listings-search .price-wrap .max-price {
  width: 48%;
}

body.efy-motors-theme .sidebar form.auto-listings-search .extras-wrap .SumoSelect,
body.auto-listings .sidebar form.auto-listings-search .extras-wrap .SumoSelect,
body.home .sidebar form.auto-listings-search .extras-wrap .SumoSelect {
  margin-bottom: 18px;
}

body.efy-motors-theme .sidebar form.auto-listings-search .area-wrap .within,
body.auto-listings .sidebar form.auto-listings-search .area-wrap .within,
body.home .sidebar form.auto-listings-search .area-wrap .within {
  width: 100%;
  margin-bottom: 18px;
}

body.efy-motors-theme .sidebar form.auto-listings-search .area-wrap .within select,
body.auto-listings .sidebar form.auto-listings-search .area-wrap .within select,
body.home .sidebar form.auto-listings-search .area-wrap .within select {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #e4e4e4;
  border-radius: 4px;
  min-height: 42px;
  padding: 8px 12px;
  background: #fff;
  color: #000;
  font-size: 0.8125rem;
  font-weight: 400;
}

body.efy-motors-theme .sidebar form.auto-listings-search .area-wrap .area,
body.auto-listings .sidebar form.auto-listings-search .area-wrap .area,
body.home .sidebar form.auto-listings-search .area-wrap .area {
  width: 100%;
  margin-bottom: 18px;
  border: 1px solid #e4e4e4;
  border-radius: 4px;
  padding: 8px 12px;
  min-height: 42px;
  box-sizing: border-box;
  font-size: 0.8125rem;
}

body.efy-motors-theme .sidebar form.auto-listings-search .area-wrap .al-button,
body.auto-listings .sidebar form.auto-listings-search .area-wrap .al-button,
body.home .sidebar form.auto-listings-search .area-wrap .al-button {
  width: 100%;
  margin-top: 0;
  padding: 13px 30px;
  border-radius: 5px;
  background-color: var(--efy-burgundy) !important;
  border-color: var(--efy-burgundy) !important;
}

body.efy-motors-theme .sidebar form.auto-listings-search .SumoSelect > .CaptionCont,
body.auto-listings .sidebar form.auto-listings-search .SumoSelect > .CaptionCont,
body.home .sidebar form.auto-listings-search .SumoSelect > .CaptionCont {
  border: 1px solid #e4e4e4 !important;
  border-radius: 4px;
  min-height: 42px;
  padding: 8px 12px !important;
  background: #fff;
  box-sizing: border-box;
}

/* Masquer widget compact cassé si encore présent */
body.efy-motors-theme .sidebar .auto-listings-items.compact,
body.efy-motors-theme .sidebar .auto-listings-items.grid-view.compact {
  display: none !important;
}

@media (max-width: 1100px) {
  body.efy-motors-theme .primary-menu > li > a {
    font-size: 0.72rem;
    padding: 10px 6px 6px;
  }
}

.efy-search-header {
  margin-bottom: 1.5rem;
}

.efy-search-title {
  color: var(--efy-navy);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}

@media (max-width: 991px) {
  body.auto-listings #container.container,
  body.auto-listings #content.content,
  body.auto-listings .full-width.upper,
  body.auto-listings .full-width.lower,
  body.auto-listings .listing-no-sidebar,
  body.home .has-sidebar,
  body.home .sidebar,
  body.auto-listings .has-sidebar {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    margin-top: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box;
  }

  body.home .sidebar,
  body.auto-listings .sidebar {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    clear: both;
    margin-bottom: 1.5rem;
    margin-top: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box;
  }

  body.auto-listings .site-content.container {
    width: auto !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box;
  }

  body.auto-listings .site-content.container > .container,
  body.auto-listings .site-content.container > .container > .content {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box;
  }

  body.home .site-content .container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    box-sizing: border-box;
  }

  body.efy-motors-theme .section--search {
    margin-left: 16px !important;
    margin-right: 16px !important;
    border-width: 6px !important;
  }

  body.efy-motors-theme.page-recherche .site-content .container > .content {
    padding: 20px 16px 40px !important;
  }

  body.efy-motors-theme.page-recherche .entry-content .auto-listings-search {
    padding: 20px 18px 24px !important;
  }

  body.efy-motors-theme.page-recherche .has-sidebar .sidebar {
    padding-top: 8px;
  }

  body.efy-motors-theme .all--car {
    padding-left: 16px;
    padding-right: 16px;
    box-sizing: border-box;
  }

  body.auto-listings .auto-listings-ordering {
    float: none;
    width: calc(100% - 32px);
    margin: 0 16px 16px;
  }

  body.auto-listings .auto-listings-ordering .select-wrap,
  body.auto-listings .auto-listings-ordering .orderby,
  body.auto-listings .auto-listings-ordering .SumoSelect {
    width: 100% !important;
  }

  body.auto-listings .auto-listings-view-switcher {
    float: left;
    margin: 0 16px 16px;
  }

  body.auto-listings .auto-listings-pagination {
    float: left;
    clear: both;
    width: calc(100% - 32px);
    margin: 0 16px 20px;
  }

  body.auto-listings .auto-listings-pagination ul {
    margin-top: 0;
  }

  body.auto-listings .auto-listings-items,
  body.auto-listings .auto-listings-items.grid-view {
    width: calc(100% - 32px);
    margin-left: 16px;
    margin-right: 16px;
  }

  body.auto-listings .auto-listings-items > li,
  body.auto-listings .auto-listings-items.grid-view > li,
  body.auto-listings .auto-listings-items li.col-3 {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
  }

  body.auto-listings .auto-listings-items .image img {
    width: 100%;
  }

  body.auto-listings .sidebar .widget_text,
  body.home .sidebar .widget_text {
    width: calc(100% - 24px);
    max-width: calc(100% - 24px);
    margin-left: 12px;
    margin-right: 12px;
    padding: 0 !important;
    box-sizing: border-box;
  }

  body.auto-listings .sidebar .widget-title,
  body.home .sidebar .widget-title {
    font-size: 1rem;
    font-weight: 700;
    color: #222;
    margin: 0 0 10px;
    padding-left: 12px;
    border-left: 4px solid var(--efy-burgundy);
    line-height: 1.3;
  }

  body.auto-listings .sidebar .auto-listings-search,
  body.home .sidebar .auto-listings-search {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 12px 14px 16px !important;
    background: #fff;
    border: 1px solid #e8e8e8 !important;
    border-radius: 2px;
    text-align: left;
    box-sizing: border-box;
  }

  body.auto-listings .sidebar form.auto-listings-search,
  body.home .sidebar form.auto-listings-search {
    display: flex;
    flex-flow: column wrap;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box;
  }

  body.auto-listings .sidebar form.auto-listings-search .price-wrap .min-price,
  body.home .sidebar form.auto-listings-search .price-wrap .min-price {
    width: 100%;
    margin-bottom: 15px;
  }

  body.auto-listings .sidebar form.auto-listings-search .price-wrap .max-price,
  body.home .sidebar form.auto-listings-search .price-wrap .max-price {
    width: 100%;
  }

  body.auto-listings .sidebar form.auto-listings-search .field,
  body.home .sidebar form.auto-listings-search .field {
    width: 100% !important;
    float: none !important;
    box-sizing: border-box;
  }
}

/* Page À propos — vision + signature */
.efy-vision-block {
  margin: 2rem 0;
}

.efy-vision-block h2 {
  color: var(--efy-navy);
  font-size: 2rem;
  margin-bottom: 1rem;
}

.efy-vision-block p {
  line-height: 1.75;
  color: #444;
  margin-bottom: 1rem;
}

.efy-vision-signature {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #eee;
}

.efy-signature-img {
  display: block;
  max-width: 220px;
  height: auto;
  margin: 0 0 0.75rem;
}

.efy-signature-name strong {
  color: var(--efy-navy);
  font-size: 1rem;
}

.efy-signature-name span {
  color: #888;
  font-size: 0.9rem;
}

/* Page Services — images avec texte */
.efy-services-intro {
  max-width: 820px;
  margin-bottom: 2rem;
  line-height: 1.75;
  color: #444;
}

.efy-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}

.efy-service-card {
  position: relative;
  min-height: 260px;
  border-radius: 8px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.efy-service-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  background: linear-gradient(180deg, rgba(14, 44, 66, 0.15) 0%, rgba(14, 44, 66, 0.88) 100%);
  color: #fff;
}

.efy-service-card__overlay h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  color: #fff;
}

.efy-service-card__overlay p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  opacity: 0.95;
}

.efy-services-detail {
  margin-top: 2.5rem;
  line-height: 1.8;
  color: #444;
}

.efy-services-detail h3 {
  color: var(--efy-navy);
  margin-top: 2rem;
}

/* Header mobile */
@media (max-width: 991px) {
  body.efy-motors-theme #page {
    overflow-x: hidden;
    width: 100%;
  }

  body.efy-motors-theme .container {
    max-width: 100%;
    box-sizing: border-box;
  }

  body.efy-motors-theme .header-top .container {
    flex-wrap: wrap;
    padding: 8px 16px !important;
  }

  body.efy-motors-theme .topbar-contact {
    width: 100%;
    font-size: 0.75rem;
  }

  body.efy-motors-theme .topbar-contact .contact li {
    display: inline-block;
    margin-right: 12px;
  }

  body.efy-motors-theme .main-navigation .menu,
  body.efy-motors-theme .main-navigation #primary-menu,
  body.efy-motors-theme .main-navigation .primary-menu {
    display: none !important;
  }

  body.efy-motors-theme .site-header > .container {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 10px 16px !important;
    width: 100%;
  }

  body.efy-motors-theme .site-branding {
    flex: 0 1 auto;
    text-align: left;
    margin: 0;
  }

  body.efy-motors-theme .site-branding .site-description {
    display: none !important;
  }

  body.efy-motors-theme .main-navigation {
    flex: 0 0 auto;
    width: auto;
    margin: 0;
    position: relative;
  }

  body.efy-motors-theme .main-navigation.toggled .primary-menu,
  body.efy-motors-theme .main-navigation.toggled .menu {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: auto;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    min-width: 240px;
    max-width: calc(100vw - 32px);
    padding: 0.5rem 0;
  }

  body.efy-motors-theme .main-navigation.toggled .primary-menu > li {
    float: none;
    width: 100%;
  }

  body.efy-motors-theme .main-navigation.toggled .primary-menu > li > a {
    padding: 12px 16px;
    font-size: 0.85rem;
  }

  body.efy-motors-theme .menu-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 44px !important;
    height: 44px !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 0 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    color: transparent !important;
  }

  body.efy-motors-theme .menu-toggle span.bar {
    left: 50% !important;
    margin-left: -7px;
  }

  body.efy-motors-theme .menu-toggle span.bar,
  body.efy-motors-theme .menu-toggle span.bar::before,
  body.efy-motors-theme .menu-toggle span.bar::after {
    background-color: var(--efy-navy) !important;
    width: 22px !important;
    height: 2px !important;
  }

  .efy-legal-modal__panel {
    max-width: calc(100% - 24px);
    left: 12px;
    bottom: 64px;
  }

  /* Hero accueil */
  body.efy-motors-theme .featured-posts img {
    min-height: 260px;
    max-height: 50vh;
  }

  body.efy-motors-theme .featured-content .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  body.efy-motors-theme .featured-posts .featured-content .entry-title {
    font-size: 1.35rem !important;
    line-height: 1.35;
  }

  body.efy-motors-theme .featured-content ul {
    padding-left: 1.1rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 574px) {
  body.efy-motors-theme .site-header > .container {
    flex-direction: row !important;
    align-items: center !important;
  }
}
