.mto-irve-entete {
  background: linear-gradient(120deg, #087f5b, #0ca678);
  color: #fff;
}

.mto-irve-entete p {
  max-width: 55rem;
  margin: 0.4rem 0 0;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
}

.mto-irve-resume {
  display: grid;
  margin-block: 1.5rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.mto-irve-resume article {
  display: grid;
  min-width: 0;
  padding: 1rem;
  border: 1px solid #cce8df;
  border-radius: 0.75rem;
  background: #f2fbf8;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 0.75rem;
  align-items: center;
}

.mto-irve-resume wa-icon {
  grid-row: 1 / 3;
  color: #087f5b;
  font-size: 1.6rem;
}

.mto-irve-resume strong {
  color: #064e3b;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1;
}

.mto-irve-resume span {
  margin-top: 0.25rem;
  color: #52645f;
  font-size: 0.82rem;
  line-height: 1.2;
}

.mto-irve-filtres {
  display: grid;
  padding: 1rem;
  border: 1px solid #d8dedc;
  border-radius: 0.75rem;
  background: #f8faf9;
  grid-template-columns: minmax(12rem, 1.6fr) repeat(4, minmax(8rem, 1fr));
  gap: 0.75rem;
  align-items: end;
}

.mto-irve-filtres label {
  display: grid;
  min-width: 0;
  gap: 0.3rem;
}

.mto-irve-filtres label > span {
  color: #3f4e4a;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.mto-irve-filtres input,
.mto-irve-filtres select {
  width: 100%;
  min-height: 2.6rem;
  box-sizing: border-box;
  padding: 0.5rem 0.65rem;
  border: 1px solid #aebbb7;
  border-radius: 0.45rem;
  background: #fff;
  color: #17211e;
  font: inherit;
}

.mto-irve-filtres input:focus,
.mto-irve-filtres select:focus {
  border-color: #087f5b;
  outline: 3px solid rgb(12 166 120 / 20%);
}

.mto-irve-actions-filtres {
  display: flex;
  grid-column: 1 / -1;
  gap: 1rem;
  align-items: center;
  justify-content: flex-end;
}

.mto-irve-actions-filtres button,
.mto-irve-bouton-carte,
.mto-irve-pagination a {
  display: inline-flex;
  min-height: 2.4rem;
  box-sizing: border-box;
  padding: 0.5rem 0.85rem;
  border: 0;
  border-radius: 0.45rem;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: #087f5b;
  color: #fff;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.mto-irve-actions-filtres button:hover,
.mto-irve-bouton-carte:hover,
.mto-irve-pagination a:hover {
  background: #066c4d;
}

.mto-irve-actions-filtres a {
  color: #4d5d58;
}

.mto-irve-resultats-entete {
  display: flex;
  margin-block: 1.8rem 0.8rem;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.mto-irve-resultats-entete h2 {
  margin: 0;
}

.mto-irve-resultats-entete > span {
  color: #687772;
  font-size: 0.85rem;
}

.mto-irve-grille {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.mto-irve-carte {
  display: flex;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #d5ddda;
  border-radius: 0.8rem;
  background: #fff;
  box-shadow: 0 0.2rem 0.75rem rgb(24 51 43 / 8%);
  flex-direction: column;
}

.mto-irve-carte > header {
  display: grid;
  padding: 1rem 1rem 0.8rem;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.8rem;
  align-items: start;
}

.mto-irve-carte h3 {
  margin: 0.3rem 0 0.1rem;
  color: #173b31;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.mto-irve-distance {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: #087f5b;
  font-size: 0.78rem;
  font-weight: 800;
}

.mto-irve-operateur {
  color: #66756f;
  font-size: 0.82rem;
}

.mto-irve-puissance {
  display: grid;
  min-width: 6.5rem;
  padding: 0.55rem 0.65rem;
  border-radius: 0.55rem;
  background: #e7f8f2;
  color: #065f46;
  grid-template-columns: auto 1fr;
  column-gap: 0.35rem;
  align-items: center;
  text-align: right;
}

.mto-irve-puissance wa-icon {
  grid-row: 1 / 3;
  color: #f59f00;
  font-size: 1.2rem;
}

.mto-irve-puissance strong {
  font-size: 1.05rem;
  white-space: nowrap;
}

.mto-irve-puissance small {
  color: #527068;
  font-size: 0.65rem;
  white-space: nowrap;
}

.mto-irve-adresse {
  display: flex;
  min-height: 2.6rem;
  margin: 0;
  padding: 0 1rem 0.8rem;
  align-items: start;
  gap: 0.45rem;
  color: #52615c;
  font-size: 0.85rem;
  line-height: 1.35;
}

.mto-irve-adresse wa-icon {
  margin-top: 0.15rem;
  flex: 0 0 auto;
  color: #d9480f;
}

.mto-irve-informations-clefs {
  display: flex;
  padding: 0.7rem 1rem;
  border-block: 1px solid #edf0ef;
  background: #fafcfb;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
}

.mto-irve-etat {
  display: inline-flex;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  align-items: center;
  gap: 0.3rem;
  font-weight: 700;
}

.mto-irve-etat--libre {
  background: #dff6e8;
  color: #137333;
}

.mto-irve-etat--indisponible {
  background: #fff0db;
  color: #a35400;
}

.mto-irve-etat--inconnu {
  background: #ecefed;
  color: #5f6b67;
}

.mto-irve-connecteurs {
  display: flex;
  min-height: 2rem;
  padding: 0.8rem 1rem 0.3rem;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.mto-irve-connecteurs span {
  display: inline-flex;
  padding: 0.25rem 0.5rem;
  border: 1px solid #cbded7;
  border-radius: 999px;
  align-items: center;
  gap: 0.25rem;
  color: #255c4c;
  font-size: 0.72rem;
}

.mto-irve-details {
  display: grid;
  margin: 0;
  padding: 0.7rem 1rem 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.mto-irve-details div {
  min-width: 0;
}

.mto-irve-details dt {
  margin-bottom: 0.15rem;
  color: #71807b;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
}

.mto-irve-details dd {
  margin: 0;
  color: #293a35;
  font-size: 0.78rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.mto-irve-carte > footer {
  display: flex;
  margin-top: auto;
  padding: 0.75rem 1rem;
  border-top: 1px solid #edf0ef;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.mto-irve-carte > footer small {
  color: #74817d;
  font-size: 0.65rem;
}

.mto-irve-bouton-carte {
  min-height: 2rem;
  padding: 0.35rem 0.65rem;
  flex: 0 0 auto;
  font-size: 0.72rem;
}

.mto-irve-pagination {
  display: flex;
  margin-block: 1.5rem;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.mto-irve-pagination a {
  min-height: 2.2rem;
  font-size: 0.8rem;
}

.mto-irve-pagination span {
  color: #5d6b67;
  font-size: 0.85rem;
}

.mto-irve-source {
  margin-block: 1.5rem;
}

@media (max-width: 1100px) {
  .mto-irve-resume {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mto-irve-filtres {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mto-irve-recherche {
    grid-column: 1 / -1;
  }

  .mto-irve-grille {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .mto-irve-resume {
    gap: 0.5rem;
  }

  .mto-irve-resume article {
    padding: 0.75rem;
  }

  .mto-irve-filtres {
    grid-template-columns: 1fr;
  }

  .mto-irve-recherche {
    grid-column: auto;
  }

  .mto-irve-actions-filtres {
    justify-content: space-between;
  }

  .mto-irve-resultats-entete {
    align-items: start;
    flex-direction: column;
  }

  .mto-irve-carte > header {
    grid-template-columns: minmax(0, 1fr);
  }

  .mto-irve-puissance {
    width: fit-content;
    text-align: left;
  }

  .mto-irve-details {
    grid-template-columns: 1fr;
  }

  .mto-irve-carte > footer {
    align-items: stretch;
    flex-direction: column;
  }

  .mto-irve-pagination {
    flex-wrap: wrap;
  }
}
