main h2:first-of-type{
    margin-top: 0;
}

main{
    padding-top: 20px;
    overflow: hidden;
    
}


canvas{
    min-height: 4000px;
}

#grille_danse{
    display: grid;
    margin: auto;
    flex-wrap:wrap;
}

#pratique{
    grid-row: 1;
    grid-column: 1;
    margin-left: auto;
    margin-right: auto;
    width: 90%;
}

#enseignement{
    grid-row: 1;
    grid-column: 2;
    width: 90%;
}

#OM{
    display: grid;
    padding: min(3em, 4%);
    border: 1px solid ;
    width: 100%;
    margin: auto;
    font-size: 1.3rem;
    margin-bottom: 30px;
    background-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 .25em rgba(0, 0, 0, .25);
    border-radius: 2em;
    border-style: inherit;
    backdrop-filter: blur(40px);
    height: 60px;
    overflow: hidden;
}

#OM:hover{
    height: max-content;
}

#OM .titre{
    grid-column: 1/3;
    grid-row: 1;
    margin-top: 0;
    margin-bottom: 0;
}


#OM .poste{
    grid-column: 1;
    grid-row: 2;
    text-align: center;
    justify-content: center;
    align-content: center ;
    width: 100%;
}

#OM .date{
    grid-column: 1;
    grid-row:3;
    text-align: center;
    justify-content: center;
    align-content: center ;
    width: 100%;
}

#OM .entreprise{
    grid-column: 1;
    grid-row: 4;
    text-align: center;
    justify-content: center;
    align-content: center ;
    width: 100%;
}

#OM .missions{
    grid-column: 2;
    grid-row: 2/5;
    padding-left: 10px;
    justify-items: center;
    justify-content: center;
    align-content: center ;
    width: 100%;
}

#remplacement{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(9em, 1fr));
    justify-items: center;
    gap: 50px 30px;
    margin-bottom: 50px;

}
main h2, main h3{
    text-align: center;
    margin-top: 40px;
}
main h3{
    font-size: 1.2rem;
}


.grille{
    display: grid;
    padding: min(2em, 5%);
    border: 1px solid ;
    width: 100%;
    grid-template-columns: repeat(auto-fit, 50%) ;
    height: 200px;
    background-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 .25em rgba(0, 0, 0, .25);
    border-radius: 2em;
    border-style: inherit;
    backdrop-filter: blur(40px);
}

.grille .entreprise {
    grid-column: 1;
    grid-row: 1;
    text-align: center;
    justify-content: center;
    align-content: center;
    width: 100%;
}

.grille .missions{
    grid-column: 2;
    grid-row: 1/3;
    margin-left: 20px;
    justify-items: center;
    justify-content: center;
    align-content: center ;
    width: 100%;
}

#clip, #stage,#industrie{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(22em, 1fr));
    justify-items: center;
   
}

#industrie{
    margin-bottom: 20px;
}

.grille2{
    display: grid;
    padding: min(2em, 5%);
    padding-top: 20px;
    border: 1px solid ;
    width: 90%;
    grid-template-columns: repeat(auto-fit, 50%) ;
    height: 60px;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 .25em rgba(0, 0, 0, .25);
    border-style: inherit;
    align-items: center;
    font-size: 1.3rem;
}

.grille2:hover{
   height: max-content;
}

#bdc{
    border-top-left-radius: 2em;
    border-top-right-radius: 2em;
}

#keway{
    border-bottom-left-radius:2em ;
    border-bottom-right-radius:2em ;
}

.grille2 .titre{
    grid-row: 1;
    grid-column: 1/3;
    margin-top: 0;
    margin-bottom: 0;
}

.grille2 .event {
    grid-column: 1;
    grid-row: 2;
    text-align: center;
    justify-content: center;
    align-content: center;
    width: 100%;
}

.grille2 .annee{
    grid-column: 1;
    grid-row: 3;
    text-align: center;
    justify-content: center;
    align-content: center ;
    width: 100%;
}

.grille2 .role{
    grid-column: 2;
    grid-row: 2;
    text-align: center;
    justify-content: center;
    align-content: center ;
    width: 100%;
}

.grille2 .dir{
    grid-column: 2;
    grid-row: 3;
    text-align: center;
    justify-content: center;
    align-content: center ;
    width: 100%;
}

body {
    background: linear-gradient(120deg, #b1abf4, 20%, #ebcbe7, 80%, #fea680);
  margin:0;
  background-size: 100% 200%;
}



@keyframes slide {
  0% {
    transform:translateX(-25%);
  }
  100% {
    transform:translateX(25%);
  }
}






.container .card .icon {

    position: absolute;

    top: 0;

    left: 0;

    width: 100%;

    height: 100%;

    background-color: #ebcbe7;
    box-shadow: 0 0 .25em rgba(0, 0, 0, .25);
    
    border-radius:2rem ;
    display: flex;
    align-items: center;
    justify-content: center;

}

.container .card .slide {

    width: 175px;

    height: 175px;

    transition: 0.5s;

}

.container .card .slide.slide1 {

    position: relative;

    display: flex;

    justify-content: center;

    align-items: center;

    z-index: 1;

    transition: .7s;

    transform: translateY(100px);

}

.container .card:hover .slide.slide1{

    transform: translateY(0px);

}

.container .card .slide.slide2 {

    position: relative;

    display: flex;

    justify-content: center;

    align-items: center;

    padding: 20px;

    box-sizing: border-box;

    transition: .8s;

    transform: translateY(-100px);

    

}

.container .card:hover .slide.slide2{

    transform: translateY(0);

}

.container .card .slide.slide2::after{

    content: "";

    position: absolute;

    width: 30px;

    height: 4px;

    bottom: 15px;

    left: 50%;

    left: 50%;

    transform: translateX(-50%);

   

}

.container .card .slide.slide2 .content2 p {

    margin: 0;

    padding: 0;

    text-align: center;

}

.container .card .slide.slide2 .content2 h3 {

    margin: 0 0 10px 0;

    padding: 0;

    font-size: 24px;

    text-align: center;

    color: #414141;

}

.container{
    font-size: 1.2rem;
}

.card{
    height: 200px;
}

#anim_formation{
    display: flex;
    justify-content: center;
    padding: 20px;
    position: relative;
    flex-wrap: wrap;
}

.etapes{
    width: 150px;
    transition: all 1.5s;
    filter: blur(2.5px);
}

.etapes:hover{
    transform: scale(110%);
    filter: blur(0);
}


.etapes img{
    width: 100%;
}

.etapes p{
    text-align: center;
}

.cursor {
  position: fixed;
  transform: translateX(-50%) translateY(-50%);
  pointer-events: none;
  left: -100px;
  top: 50%;
  background-color: transparent;
  z-index: 10000;
  border: 2px solid #ebcbe7;
  transition: all 300ms ease-out;
}