/* ============================ */
/* FP - En-tête */
/* ============================ */

.et-db #page-container #et-boc .et-l .ms_equipement-reference div.et_pb_text_inner {
  color: #999;
}

/* ============================ */
/* FP - Section Packs */
/* ============================ */

.et-db #page-container #et-boc .et-l div.alimFilsGainesWhite.atelierWhite.atelierBlack{
  background-color: #222;
}

/* ============================= */
/* section mode-fonctionnement   */
/* ============================= */
.et-db #page-container #et-boc .et-l .et_pb_section .et_pb_section:has(.et_pb_row.mode-fonctionnement){
  padding-top: 0;
}

.et-db #page-container #et-boc .et-l .et_pb_section .et_pb_row.mode-fonctionnement .et_pb_module:has(ul){
  position: relative;
  margin: 0;
  padding: 36px 5rem;
  background-color: #fff;
  display: flex;
  align-items: center;
  height: 100%;
  justify-content: space-between;
  flex-direction: row-reverse;
}

.et-db #page-container #et-boc .et-l .et_pb_section .et_pb_row.mode-fonctionnement .et_pb_module:has(ul) ul,
.et-db #page-container #et-boc .et-l .et_pb_section .et_pb_row.mode-fonctionnement .et_pb_module:has(ul) ul li{
  padding-bottom: 0 !important;
}

.et-db #page-container #et-boc .et-l .et_pb_section .et_pb_row.mode-fonctionnement .et_pb_module:has(ul) ul li::marker{
  list-style: none;
  font-size: 0;
}

.et-db #page-container #et-boc .et-l .et_pb_section .et_pb_row.mode-fonctionnement .et_pb_module:has(ul):before{
    content: " " !important;
    background-image: url(/wp-content/uploads/escargot-gris.png);
    font-size: 9em;
    z-index: 4;
    height: 100%;
    width: 11rem;
    height: 11rem;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    margin-left: 20px;
}

.et-db #page-container #et-boc .et-l .et_pb_section .et_pb_row.mode-fonctionnement .et_pb_module:not(:has(ul, h2)){
  margin-top: 2.75%;
  max-width: 90%;
}

.et-db #page-container #et-boc .et-l .et_pb_section .et_pb_row.mode-fonctionnement .et_pb_module:has(ul) li{
  padding-left: 0;
}

.et-db #page-container #et-boc .et-l .et_pb_section .et_pb_row.mode-fonctionnement .et_pb_module:has(ul) li:before{
  display: none;
}

.et-db #page-container #et-boc .et-l .et_pb_section .et_pb_row.mode-fonctionnement .et_pb_module:has(ul) span.number{
  font-size: 1.3em;
  font-weight: bold;
  line-height: 35px;
  color: #e40e20;
  margin-right: 0.5rem;
}
@media(max-width: 768px){
  .et-db #page-container #et-boc .et-l .et_pb_section .et_pb_row.mode-fonctionnement .et_pb_module:has(ul){
    padding: 36px 2rem;
  }
  .et-db #page-container #et-boc .et-l .et_pb_section .et_pb_row.mode-fonctionnement .et_pb_module:has(ul):before{
    display: none;
  }
}

.single-equipements .et-db #page-container #et-boc .et-l h2 {
    font-size: 2.4rem;
    line-height: 1.3;
    position: relative;
    letter-spacing: 0.0175em;
    margin-bottom: 0.5em;
    font-weight: 900;
	color:#222;
  text-transform: none;
}

.et-db #et-boc .et-l .et_pb_section.ms_equipement-fonction li {
    margin-bottom: 5px;
}

.et-l:not(.et-l--header) ul li {
    font-size: 1.05rem;
    position: relative;
    padding-left: 1.4em;
    list-style: none;
    line-height: 1.6;
    padding-bottom: 12px;
}

.et-l:not(.et-l--header) ul li::before {
    content: "\4e";
    font-family: "ETmodules";
    position: absolute;
    color: #e40e20;
    top: 0;
    left: 0;
    font-weight: 700;
}

/* ===== Grille Mecaspin ===== */
.realisations-wrapper {
  width: 100%;
}
.realisations-wrapper:not([data-layout="left"]) .realisations-container {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.realisations-container {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* Responsive */
@media (max-width: 1024px) {
  .realisations-container {
    gap: 24px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}
@media (max-width: 640px) {
  .realisations-container {
    grid-template-columns: 1fr;
  }
}

/* Les cartes occupent toute la hauteur disponible */

/*.realisations-container .archive-item {
  height: 100%;
}*/


/* Masquage au filtrage */
.realisations-container .archive-item.is-hidden {
  display: none;
}

.archive-item-link--disabled {
  cursor: default;
  pointer-events: none; /* empêche tout clic */
}

/* Tu peux aussi atténuer le hover si besoin */
.archive-item-link--disabled .button-overlay {
  opacity: 0.6;
}


/******** FILTRES EQUIPEMENTS ********/
/* ===== Onglets (boutons) ===== */
.realisations-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem .75rem;
  margin: 1.1rem 0 2.5rem;
}
@media (max-width: 600px) {
  .realisations-tabs {
    justify-content: center;
    margin-top: .2rem;
  }
}
.realisations-tabs:not([data-layout="left"]) .real-tab {
  appearance: none;
  border: 1px solid #d8dce6;
  background: #f6f8fb;
  color: #222 !important;
  padding: .25rem 1rem;
  border-radius: 50px;
  font-size: .92rem !important;
  letter-spacing: .02em;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
  min-width: max-content;
}
@media (max-width: 600px) {
.realisations-tabs:not([data-layout="left"]) .real-tab{
    flex: 1;
  }
}
.realisations-tabs:not([data-layout="left"]) .real-tab.is-active,
.realisations-tabs:not([data-layout="left"]) .real-tab:focus-visible,
.realisations-tabs:not([data-layout="left"]) .real-tab:hover {
  outline: none;
  background: #e40e20;
  color: #fff!important;
  border-color: #e40e20;
}

/* ===== Grille ===== */
.realisations-wrapper {
  width: 100%;
}
.realisations-container {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
}

/* Classes utilitaires injectées par le shortcode
   (grid-3 / grid-4 / grid-5) */
.realisations-container.grid-3 { grid-template-columns: repeat(3, 1fr); }
.realisations-container.grid-4 { grid-template-columns: repeat(4, 1fr); }
.realisations-container.grid-5 { grid-template-columns: repeat(5, 1fr); }

/* Masquage des cartes – version MECASPIN
   (les cartes sont des <article class="archive-item">) */
.realisations-container .archive-item.is-hidden {
  display: none;
}


/* ===== Format avec les "filtres a gauche" (cases a cocher) ===== */
.realisations-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 2rem;
  margin: 2rem 0;
  align-items: start;
}
.realisations-layout .realisations-filters.is-sticky {
  position: sticky;
  top: 100px;
  align-self: start;
}
.realisations-layout .products-filters {
  height: fit-content;
  border-radius: 12px;
  padding: 0 1.5rem 1.5rem 1.5rem;
  background: #fff;
}
.realisations-layout .filter-header h3 {
  margin: 0 0 1.5rem 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1a1a;
}
.realisations-layout .filter-title {
  font-size: 1.55em;
  line-height: 27px;
  font-weight: 700;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  border-bottom: 1px solid #e5e5e5;
  padding-bottom: 0.8rem;
  margin-bottom: 1.2rem;
}
.realisations-layout .filter-title::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 22px;
  margin-right: 1rem;
  background: center / contain no-repeat
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 300'><path fill='%23222' d='M278.4 264.2h-21.6v-16.3c-.1-3.5-3.2-6.3-6.7-6.3h-.3c-3.6.1-6.5 3.3-6.3 6.9v21.2c-.1.4-.1.8-.1 1.1 0 .4 0 .8.1 1.1v21.2c0 3.7 3 6.7 6.7 6.7 3.6 0 6.6-3 6.6-6.7v-15.7h21.6c3.7 0 6.7-3 6.7-6.7s-3-6.5-6.7-6.5zm-51.2 0H21.6c-3.7 0-6.7 3-6.7 6.7s3 6.7 6.7 6.7h205.6c3.7 0 6.7-3 6.7-6.7s-3-6.7-6.7-6.7zm51.2-80.6H180v-16.3c-.1-3.5-3.2-6.3-6.7-6.3h-.3c-3.6.1-6.5 3.3-6.3 6.9v44.7c0 3.7 3 6.7 6.7 6.7 1.8 0 3.6-.7 4.8-2 1.2-1.3 1.9-2.9 1.8-4.7V197h98.4c3.7 0 6.7-3 6.7-6.7s-3-6.7-6.7-6.7zM21.6 197H150c3.7 0 6.7-3 6.7-6.7s-3-6.7-6.7-6.7H21.6c-3.7 0-6.7 3-6.7 6.7s3 6.7 6.7 6.7zm256.8-94H62.1c-3.7 0-6.7 3-6.7 6.7s3 6.7 6.7 6.7h216.3c3.7 0 6.7-3 6.7-6.7s-3-6.7-6.7-6.7zM21.6 116.4h12v15.7c0 3.7 3 6.7 6.7 6.7s6.7-3 6.7-6.7V87.3c0-3.7-3-6.7-6.7-6.7s-6.7 3-6.7 6.7V103h-12c-3.7 0-6.7 3-6.7 6.7s3 6.7 6.7 6.7zm0-80.6h98.5c3.7 0 6.7-3 6.7-6.7s-3-6.7-6.7-6.7H21.6c-3.7 0-6.7 3-6.7 6.7s3 6.7 6.7 6.7zm120.9 22.4c1.8 0 3.5-.7 4.7-2 1.3-1.3 2-3 2-4.7V35.8h129.2c3.7 0 6.7-3 6.7-6.7s-3-6.7-6.7-6.7H149.2V6.7c0-3.7-3-6.7-6.7-6.7s-6.7 3-6.7 6.7v44.8c0 3.7 3 6.7 6.7 6.7z'/></svg>");
}
.realisations-layout .filter-categories {
  display: flex;
  flex-direction: column;
  gap: .8rem;
}
@media (max-width: 980px) {
  .realisations-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .realisations-layout .realisations-filters.is-sticky {
    position: static;
    top: auto;
  }
}/* Quand on est en layout à 2 colonnes, on force une grille plus dense */
.realisations-layout .realisations-container {
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 1199px) {
  .realisations-layout .realisations-container {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 980px) {
  .realisations-layout .realisations-container {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 520px) {
  .realisations-layout .realisations-container {
    grid-template-columns: 1fr;
  }
}

/* ===== Titre des groupes (visible desktop, caché mobile) ===== */
.filter-heading {
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
  margin: 0 0 8px 0;
}
.filter-heading:last-child {
  margin: 25px 0 8px 0;
}
@media (max-width: 980px) {
  .filter-heading {
    display: none; /* en mobile, on ne garde que les boutons */
  }
}

/* ===== Panneau de filtres (desktop + mobile repliable) ===== */
.realisations-filters {
  position: relative;
  z-index: 3;
}

/* Bloc repliable (1 par taxonomie en mode multi) */
.filter-collapsible {
  position: relative;
  margin: 0 0 14px;
}

/* Bouton d’en-tête (affiché seulement en mobile) */
.filter-toggle {
  display: none;
  width: 100%;
  background: #fff;
  border: 1px solid #ccdbe1;
  padding: .6rem .9rem;
  font-weight: 600;
  letter-spacing: .02em;
  cursor: pointer;
  align-items: center;
  gap: .6rem;
  color: #e40e20;
}
.filter-toggle .ico {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px 18px;
  display: inline-block;
}
/* Icône sliders (fermé) */
.filter-collapsible .filter-toggle .ico::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 22px;
  background: center / contain no-repeat
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 300'><path fill='%23222' d='M278.4 264.2h-21.6v-16.3c-.1-3.5-3.2-6.3-6.7-6.3h-.3c-3.6.1-6.5 3.3-6.3 6.9v21.2c-.1.4-.1.8-.1 1.1 0 .4 0 .8.1 1.1v21.2c0 3.7 3 6.7 6.7 6.7 3.6 0 6.6-3 6.6-6.7v-15.7h21.6c3.7 0 6.7-3 6.7-6.7s-3-6.5-6.7-6.5zm-51.2 0H21.6c-3.7 0-6.7 3-6.7 6.7s3 6.7 6.7 6.7h205.6c3.7 0 6.7-3 6.7-6.7s-3-6.7-6.7-6.7zm51.2-80.6H180v-16.3c-.1-3.5-3.2-6.3-6.7-6.3h-.3c-3.6.1-6.5 3.3-6.3 6.9v44.7c0 3.7 3 6.7 6.7 6.7 1.8 0 3.6-.7 4.8-2 1.2-1.3 1.9-2.9 1.8-4.7V197h98.4c3.7 0 6.7-3 6.7-6.7s-3-6.7-6.7-6.7zM21.6 197H150c3.7 0 6.7-3 6.7-6.7s-3-6.7-6.7-6.7H21.6c-3.7 0-6.7 3-6.7 6.7s3 6.7 6.7 6.7zm256.8-94H62.1c-3.7 0-6.7 3-6.7 6.7s3 6.7 6.7 6.7h216.3c3.7 0 6.7-3 6.7-6.7s-3-6.7-6.7-6.7zM21.6 116.4h12v15.7c0 3.7 3 6.7 6.7 6.7s6.7-3 6.7-6.7V87.3c0-3.7-3-6.7-6.7-6.7s-6.7 3-6.7 6.7V103h-12c-3.7 0-6.7 3-6.7 6.7s3 6.7 6.7 6.7zm0-80.6h98.5c3.7 0 6.7-3 6.7-6.7s-3-6.7-6.7-6.7H21.6c-3.7 0-6.7 3-6.7 6.7s3 6.7 6.7 6.7zm120.9 22.4c1.8 0 3.5-.7 4.7-2 1.3-1.3 2-3 2-4.7V35.8h129.2c3.7 0 6.7-3 6.7-6.7s-3-6.7-6.7-6.7H149.2V6.7c0-3.7-3-6.7-6.7-6.7s-6.7 3-6.7 6.7v44.8c0 3.7 3 6.7 6.7 6.7z'/></svg>");
}
/* Icône croix (ouvert) */
.filter-collapsible.is-open .filter-toggle .ico::before {
  content: "\4d";
}

h3.filter-title {
    text-transform: unset !important;
}

/* Corps (desktop = visible, mobile = overlay) */
.filter-body {
  background: #f6f8fb;
  border: 1px solid #ccdbe1;
  border-radius: 12px;
  padding: 12px 14px;
}
.realisations-layout .realisations-tabs {
  flex-direction: column;
  align-items: stretch;
  gap: .8rem;
  margin: 0;
}
.realisations-layout .realisations-tabs .real-tab {
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .4rem 0;
  border: none;
  background: transparent;
  color: #1a1a1a;
  font-size: 1rem;
  border-radius: 0;
  cursor: pointer;
  justify-content: flex-start;
}
.realisations-layout .realisations-tabs .real-tab::before {
  display: none;
}
.realisations-layout .realisations-tabs .real-tab::after {
  content: '';
  width: 1.2rem;
  height: 1.2rem;
  border: 2px solid #d6d6d6;
  border-radius: 50%;
  flex-shrink: 0;
  transition: all .2s ease;
  right: 30px;
  position: absolute;
}
.realisations-layout .realisations-tabs .real-tab:hover {
  color: #111;
}
.realisations-layout .realisations-tabs .real-tab.is-active::after {
  border-color: #111;
  box-shadow: inset 0 0 0 4px #111;
}
.realisations-layout .realisations-tabs .real-tab.is-active {
  font-weight: 700;
  color: #111;
}

/* Groupes par slug */
.realisations-groups {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}
.realisations-wrapper:not([data-layout="left"]) .realisations-groups {
  gap: 2.5rem;
}
.real-group {
  display: block;
}
.real-group.is-hidden {
  display: none;
}
.real-group-title {
  font-size: 1.8rem;
  font-weight: 800;
  margin: 0 0 1.4rem;
  color: #1a1a1a;
  line-height: 1.3;
}
.realisations-wrapper:not([data-layout="left"]) .real-group-title {
  margin-bottom: 1rem;
}
.realisations-wrapper:not([data-layout="left"]) .real-group .realisations-container {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

@media (max-width: 768px) {
.realisations-wrapper:not([data-layout="left"]) .real-group .realisations-container {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
}

@media (max-width: 550px) {
.realisations-wrapper:not([data-layout="left"]) .real-group .realisations-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
}

@media (max-width: 425px) {
.realisations-wrapper:not([data-layout="left"]) .real-group .realisations-container {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}
}

/* Cartes style "card" pour le layout top / sans filtre gauche */
/* .realisations-wrapper:not([data-layout="left"]) .realisations-container .archive-item {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  height: 100%;
}
.realisations-wrapper:not([data-layout="left"]) .archive-item-link {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.realisations-wrapper:not([data-layout="left"]) .archive-item-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
}
.realisations-wrapper:not([data-layout="left"]) .archive-item-content {
  padding: 16px;
} */
.c-back-bleu-light .filter-body {
  background: #fff;
}

.filter-body .chk {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: .35rem 0;
}
.filter-body input[type="checkbox"] {
  accent-color: #e40e20;
}

/* Mobile : boutons visibles, corps en overlay au-dessus des cartes */
@media (max-width: 980px) {
  .filter-toggle {
    display: flex;
  }
  .filter-body {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: none;
    background: #fff;
    box-shadow: 0 12px 30px rgba(9, 30, 66, .12);
    max-height: min(60vh, 420px);
    overflow: auto;
    z-index: 5;
  }
  .filter-collapsible.is-open .filter-body {
    display: block;
  }
}

/* Desktop : pas de bouton, corps affiché en colonne gauche */
@media (min-width: 981px) {
  .filter-toggle {
    display: none;
  }
  .filter-body {
    position: static;
    display: block;
    box-shadow: none;
  }
}

#page-container .archive-equipements .section_headerPack{
  min-height: 450px;
}

#page-container .archive-equipements .section_headerPack .et_pb_row .headerPack h1{
  margin-bottom: 25px;
}

@media (min-width: 425px) {
    #page-container .archive-equipements .section_headerPack .et_pb_row .headerPack h1 span {
        font-size: unset;
    }
}


.is-hidden { display: none !important; }