h1 {
  text-align: center;
  font-size: 4rem;
  
}
h2 {
  font-family: "Lucida_Calligraphy_Font.ttf";
  font-size: 2rem;
}
h4 {
  font-family: "Actor-Regular.ttf";
  color: var(--primary-color);
}
h3 {
  font-family: "Lucida_Calligraphy_Font.ttf";
}
h5 {
  font-family: "Actor-Regular.ttf";
  color: var(--secondary-color);
}
.version-desktop {
  display: none;
}
.tab-link.active {
  background-color: transparent; /* Pas de changement de couleur au clic */
}

.tab-link.tab1,
.tab-content.tab1 {
  background-color: #8a8b8e;
}
.tab-link.tab2,
.tab-content.tab2 {
  background-color: #ad7560;
}
.tab-link.tab3,
.tab-content.tab3 {
  background-color: #bd6d4b;
}

.tab-container {
  width: 100%;
  position: relative;
  margin-top: 50px; /* Espacement pour laisser de la place au menu fixe */
}

.tab-menu {
  display: flex;
  flex-direction: column;
  position: static;
  top: 0;
  left: 0;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  padding-left: 0;
  width: 100%;
}

.version-mobile {
  & > .tab-menu {
    flex-direction: row;
    border-bottom: solid 2px var(--text-color);
    gap: 5px;
    padding: 0 5px;
    clip-path: none;
    height: 60px;

    & > .tab-link {
      font-size: 16px;
      flex: 1 auto;
      border-radius: 10px 10px 0 0;
      text-align: center;

      &.active {
        font-weight: bold;
        text-shadow: 1px 1px 2px black;
        transform: translateY(3px);
        box-shadow: 0 0 0 2px var(--text-color);
      }
    }
  }

  & > .tab-content {
    z-index: 2;
  }
}

.tab-menu > button {
  font-size: 25px;
}

.tab-content {
  display: none;
  position: relative;
  z-index: 1;
  background-color: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}
.tab-content.active {
  display: block;
}

.tab-link {
  z-index: 2;
  color: #fdf0d5;
  border: none;
  text-align: center;
  height: auto;
  padding: 10px 0;
  margin-right: 0;
  border-top-right-radius: 0;
  cursor: pointer;
  transition: background-color 0.3s;
}
.tab-content h3 {
  margin: 0;
  margin: 30px 0;
  width: 100%;
}
.card-cont {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  row-gap: 0px;
  margin-bottom: 2%;
  column-gap: 100px;
  align-content: center;
}
.p-adr {
  width: 100%;
  text-align: center;
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  --card_w: 20em;
  width: var(--card_w);
  height: min(17em, 285px);
  margin: 10px 0;
}
.tab1 {
  justify-content: center;
  flex-wrap: wrap;
  flex-direction: column;
}
.tab2 {
  justify-content: center;
}
.tab2 .card {
  margin: 0 auto 35px;
  
}
.tab3 {
  flex-direction: column;
}

#tab3, #tab2 {
  padding-top: 2em;
}
.tab3 .card {
  margin: 10px auto;
}
.tab-content .card-cont {
  flex-direction: column;
  align-items: center;
  margin: 0 2.5em;
}
.tab-content .card-cont h2 {
  text-align: center;
}
.tab-content .card-cont h3 {
  width: fit-content;
}
/* :::::::::::::inner card :::::::::::: */
.card-title-box {
  position: absolute;
  display: block;
  background-color: var(--text-color);
  color: #ad7560;
  width: 140px;
  z-index: 2;
  border-radius: 10px;
}
.card-contenu-box {
  position: absolute;
  top: 50px;
  width: var(--card_w);
  border: 1px solid #ddd;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  transition: box-shadow 0.3s;
  padding: 50px 0;
  height: fit-content;
  & > p {
    margin-bottom: 16px;
  }
}
.tab2 .card-contenu-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  height: fit-content;
  /* padding: 0; */
}
.tab2 .card-contenu-box .card-title-box {
  position: static;
}
.inscript {
  width: 100%;
}
.card-contenu-box-inscript {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  border-radius: 8px;
  transition: box-shadow 0.3s;
  height: 75%;
}
.card-title-box-dl {
  background-color: var(--text-color);
  color: #ad7560;
  width: 282px;
  z-index: 2;
  border-radius: 10px;
  transform: scale(0.95);
  transition: 0.5s;
  margin: 0 auto;
}
.card-title-box-dl:hover {
  box-shadow: #30303085 10px 10px 15px;
  transform: scale(1.05);
  transition: 0.5s;
}
.card-contenu-box-inscript > .card-title-box-dl:not(:first-child) {
  width: 40%;
  margin: 0 auto;
  background-color: var(--text-color);
  color: #ad7560;
  z-index: 2;
  border-radius: 10px;
}
.card-title-box-dl h4 {
  margin-top: 0.60rem
}
.card-button {
  margin-top: 20px;
  background-color: #fff6f7;
  color: #ad7560;
  border-radius: 10px;
  padding: 7px 18px;
}
/* .tab2 .card-contenu-box .card-button {
  margin: 60px 0 30px 0;
} */
.inscription {
  display: flex;
}
.card-button:hover {
  background-color: var(--secondary-color);
}

.no-data {
  text-align: center;
}
.no-data > h3 {
  margin: unset;
}

@media (min-width: 1025px) {
  h1 {
    margin-bottom: 35vh;
  }
  main {
    overflow: hidden;
  }
  .version-mobile {
    display: none;
  }
  .version-desktop {
    position: relative;
    display: block;
    min-height: 500px;
    transition: 0.5s cubic-bezier(0, 0, 0, 1.25);
  }
  /* :::::::::::::apparence "classeur" :::::::::::::::::: */
  .onglets {
    position: absolute;
    display: flex;
    width: 100vw;
    /* min-height: 1000px; */
    transition: 1s ease-out; /* au lieu de 3s normalement */
  }
  .danse {
    z-index: 1;
    top: 0%;
  }
  .espagnol {
    z-index: 2;
    top: 15px;
  }
  .stages {
    z-index: 3;
    top: 30px;
  }

  .intercalaire {
    position: absolute;
    width: 100vw;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    clip-path: polygon(0 0, 100% 6%, 100% 100%, 0% 100%);
    min-height: 502px;
  }
  .danse .intercalaire {
    height: calc(var(--hauteur-danse) + 200px);
  }
  .espagnol .intercalaire {
    height: calc(var(--hauteur-esp) + 200px);
  }
  .stages .intercalaire {
    height: calc(var(--hauteur-stages) + 200px);
  }
  .danse .intercalaire::before {
    z-index: 5;
    content: "";
    position: absolute;
    background: #8a8b8e;
    width: 100%;
    min-height: 500px;
    height: calc(var(--hauteur-danse) + 200px - 2px);
    clip-path: polygon(0 0, 100% 6%, 100% 100%, 0% 100%);
  }

  .espagnol .intercalaire::before {
    z-index: 5;
    content: "";
    position: absolute;
    background: #ad7560;
    width: 100%;
    min-height: 500px;
    height: calc(var(--hauteur-esp) + 200px - 2px);
    clip-path: polygon(0 0, 100% 6%, 100% 100%, 0% 100%);
  }
  .stages .intercalaire::before {
    z-index: 5;
    content: "";
    position: absolute;
    background: #bd6d4b;
    width: 100%;
    min-height: 500px;
    height: calc(var(--hauteur-stages) + 200px - 2px);
    clip-path: polygon(0 0, 100% 6%, 100% 100%, 0% 100%);
  }
  .onglets::before {
    position: absolute;
    content: "";
    width: 300px;
    height: 200px;
    border-radius: 0 18px 0 0;
  }
  .onglets::after {
    position: absolute;
    content: "";
    width: 302px;
    height: 202px;
    border-radius: 0 18px 0 0;
    background-color: white;
  }

  .danse .intercalaire {
    z-index: 3;
  }
  .danse::before {
    z-index: 4;
    top: -60px;
    left: 10%;
    background-color: #8a8b8e;
  }
  .danse::after {
    top: -61px;
    left: 9.99%;
  }

  .espagnol .intercalaire {
    z-index: 3;
  }
  .espagnol::before {
    z-index: 4;
    top: -50px;
    left: 35%;
    background-color: #ad7560;
  }
  .espagnol::after {
    top: -51px;
    left: 34.9%;
  }
  .stages .intercalaire {
    z-index: 3;
  }
  .stages::before {
    z-index: 4;
    top: -40px;
    left: 60%;
    background-color: #bd6d4b;
  }
  .stages::after {
    top: -41px;
    left: 59.99%;
  }
  /* ::::::::::::::::::::::::::::::::::::::::::::::::::::::: */
  .onglets .contenu {
    z-index: 4;
    position: relative;
    width: 100%;
    /* height: fit-content; */
  }
  .danse .contenu {
    height: var(--hauteur-danse);
  }
  .espagnol .contenu {
    height: var(--hauteur-esp);
  }
  .stages .contenu {
    height: var(--hauteur-stages);
  }
  .stages .contenu > h3 {
    text-align: center;
    margin-top: 2em;
  }
  .danse .contenu button {
    background-color: #8a8b8e;
    position: absolute;
    top: -60px;
    left: 13%;
    font-size: 30px;
  }
  .espagnol .contenu button {
    position: absolute;
    top: -50px;
    left: 37%;
    font-size: 30px;
  }
  .stages .contenu button {
    background-color: #bd6d4b;
    position: absolute;
    top: -40px;
    left: 66.7%;
    font-size: 30px;
  }
  .danse .contenu .contenu-danse {
    margin: 100px 0 80px 0;
    display: none;
    flex-wrap: wrap;
    height: fit-content;
    justify-content: center;
  }
  .espagnol .contenu .contenu-esp {
    margin: 100px 0 80px 0;
    display: none;
    flex-wrap: wrap;
    height: fit-content;
  }
  .stages .contenu .contenu-stages {
    display: flex;
    justify-content: center;
    flex-direction: row;
    margin: auto;
    column-gap: 236px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 10vh;
    row-gap: 10vh;
  }
  .stages .contenu .div-no-data {
    flex-direction: column;
  }
  .div-no-data {
    flex-direction: column;
  }
  .no-data {
    margin-top: 2em;
    margin-bottom: 2em;
  }
  .card-cont:nth-child(n + 2) {
    width: 50%;
  }
  .titreEsp {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 75%;
  }

  .card-title-box-dl {
    /* left: 10%; */
  }
}
@media screen and (min-width: 1367px) {
  .titreEsp {
    width: 80%;
  }
  .danse::after {
    left: 9.95%;
  }
  .espagnol::after {
    left: 34.95%;
  }
  .stages::after {
    left: 59.90%;
  }
  .danse .contenu button {
    left: 12%;
  }
  .espagnol .contenu button {
    left: 36.5%;
  }
  .stages .contenu button {
    left: 64.7%;
  }

  /*  */
}
