.container {
  /* conteneur contact jiaby */
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding: 2% 0.5%;
  width: 100vw;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-color: var(--secondary-color) transparent;
  scrollbar-width: 1px;
}

h2 {
  color: var(--tertiary-color);
}

.contacts {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  width: 100%;
  /* height: 15vh; */
  /* background-color: var(--secondary-color); */
}

.contacts .card-container {
  display: flex;
  justify-content: center;
  gap: 3rem;
  width: 100%;
  height: 65%;
}

.contacts .card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
  width: 28%;
  padding: 1% 2%;
  border-radius: 10px;
  text-align: center;
  cursor: default;
  color: white;
  background: linear-gradient(
    30deg,
    var(--tertiary-color) 88%,
    var(--secondary-color) 12%
  );
}

.contacts .card div:first-child {
  padding: 8px;
  border-radius: 50%;
  background-color: var(--secondary-color);
  color: var(--tertiary-color);
}

.contacts .card h4 {
  margin: auto 0;
  font-size: 10pt;
}

.main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3rem;
  width: 100%;
}

.socials {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 1% 0;
  width: 100%;
  /* font-size: 1vw; */
}

.locals {
  width: 50%;
}

.socials .link {
  /* Listes des conteneurs de lien  */
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(20%, 1fr));
  grid-auto-rows: 1fr;
  flex-wrap: wrap;
  gap: 3rem;
  width: 100%;
  padding: 0 2.5%;
}

.socials > div:first-child {
  /* Text : media sociaux */
  color: var(--tertiary-color);
}

.socials .link > div {
  /* carte conteneurs d'un lien */
  display: flex;
  gap: 1rem;
  padding: calc(1% + 8px) 2%;
  border-radius: 10px;
  background: linear-gradient(13deg, var(--tertiary-color) 52%, royalblue 48%);
  cursor: pointer;
}

.socials .link > div:hover {
  box-shadow: 0px 0px 20px var(--tertiary-color);
}

.socials .link > div > :first-child {
  /* icône */
  font-size: 1.5rem;
  color: var(--secondary-color);
}

.socials .link div div:has(a) {
  /* conteneurs lien et descr */
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  /* gap: 1rem; */
}

.socials .link :any-link {
  /* Les liens textuels */
  font-size: medium;
  font-weight: bold;
  color: var(--primary-color);
}

.socials .link span {
  /* textes désciptifs  */
  font-size: small;
  /* margin-left: 5%; */
  color: gray;
}

/* localisation de la radio  */
.locals {
  /* conteneur de conteneur des sièges */
  display: flex;
  align-items: start;
  gap: 2rem;
  margin: 0 0.5%;
  width: 100%;
}

.locals .siege {
  /* conteneur des sièges social de la radio */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 1%;
  width: 35%;
  border-radius: 5px;
  background: white;
  box-shadow: 0px 0px 1px black;
}

.siege img {
  /* image de la radio */
  align-self: center;
  width: 100%;
  height: 75%;
  border-radius: 5px 5px 0 0;
}

.siege-descr {
  /* conteneur description du siège */
  width: 100%;
  padding: 1% 0;
  line-height: 2rem;
}

.siege-descr h2 {
  background-color: #f8f9faaf;
  color: var(--tertiary-color);
}

.siege-descr h5 {
  /* font-size: 1.2vw; */
  /* letter-spacing: 0.5px;
    word-spacing: 3px; */
  color: black;
  text-shadow: 0 0 2px var(--primary-color);
}

.siege-descr h5 span {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 20px;
  height: 20px;
  border-radius: 3px;
  background-color: var(--tertiary-color);
  color: var(--secondary-color);
}

.locals .station {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin: 1%;
  padding: 2%;
  width: 65%;
  background: var(--tertiary-color);
}

.station .title h2 {
  /* Titre introductif station : nos station */
  color: var(--primary-color);
  text-decoration: underline;
  text-decoration-color: var(--secondary-color);
}

.station .title h5 {
  outline-style: double;
  text-indent: 1rem;
  margin: 1%;
  line-height: 1.5rem;
}

.station .station-item {
  /* conteneur d'une station  */
  display: flex;
  gap: 1rem;
  width: 95%;
  box-shadow: 0 0 1px var(--primary-color);
  background: linear-gradient(
    180deg,
    var(--primary-color) 50%,
    var(--secondary-color) 50%
  );
  clip-path: polygon(0% 0%, 35% 0%, 95% 0%, 90% 50%, 95% 100%, 0% 100%, 0% 50%);
}

.station .station-item img {
  margin: 0.5%;
  max-width: 75px;
  border-radius: 5px;
}

.station .station-item h3 {
  /* anaranle station */
  margin: auto 0;
  color: var(--tertiary-color);
}

.station .station-item h3 span {
  font-weight: bolder;
  background-color: #ffffff9a;
}

.station .station-item h5 {
  /* Toerna misy anle station */
  margin-bottom: 2%;
  font-size: smaller;
  color: var(--tertiary-color);
}

.station-descr {
  /* conteneur des lieux des stations */
  display: flex;
  flex-direction: column;
}

@media screen and (max-width: 768px) {
  .contacts .card-container {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .contacts .card {
    width: 80%;
  }

  .socials {
    align-items: center;
  }
  .socials .link {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 85%;
  }
  .socials .link span {
    font-size: medium;
  }
  .locals {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  .locals .siege {
    width: 95%;
  }
  .siege-descr h2 {
    font-size: medium;
  }
  .siege-descr h5 {
    font-size: small;
  }
  .station {
    position: relative;
    width: 95% !important;
  }
  .station .title h2 {
    /* soratra nos station tsy aseho */
    display: none;
  }
  .station .title h5 {
    display: none;
  }
  .station .station-descr {
    justify-content: space-evenly;
  }
  .station .station-item {
    gap: 0;
    width: 100%;
  }
  .station .station-item h3 {
    margin: 0;
    font-size: x-small;
  }
  .station .station-item h5 {
    font-size: x-small;
    margin: 0;
  }
}
