/*  Bleu marine profond (#01257D), 
    bleu électrique (#00FFFF) 
    Bleu clair #2272FF 
    Fumée blanche (#F0F0F0), 
    Rouge vif (#E7473C)
    Vert Cardin (#0C1A1A), 
    Sarcelle duveteuse (#6ACFC7)
*/
*{
    padding: 0;
    margin: 0;
    font-family: 'Segoe UI';
    box-sizing: border-box;
}
nav li{
    list-style-type: none;
    text-decoration: none;
}

body{
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    height: 100vh;
    overflow-x: hidden;
}

/* Menu de navigation */
nav{
    background-color: #01257D;
    display: flex;
    height: 90px;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    font-size: calc(0.7rem + 1.2vw);
}
h3{
    color: white;
}
.lg{
    text-decoration: none;
    color: white;
    transition: all .3s;
}
.lg:hover{
    color:#003;
}
span{
    color:#00FFFF;
    font-size: calc(0.9rem + 1.2vw);
}
nav ul{
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 60%;
}
.anav{
    text-decoration: none;
    transition: all 0.3s;
    color: #00FFFF;
}
.anav:hover{
    color: white;
}

#icons{
    cursor: pointer;
    display: none;
    /* font-size: calc(.8rem + 1.2vw); */
    font-size: 25px;
    color:#00FFFF;
    font-weight: bold;
}
.anav,
.anav:visited{
    text-decoration: none;
}
a:hover{
    color: white;
}

.comptes{
    display: flex;
    flex-direction: row;
    width:100px;
    align-items: center;
    justify-content: space-evenly;
}
.comptes a {
    text-decoration: none;
    cursor: pointer;
}
.comptes a:hover{
    transform: scale(.95);
}
.comptes a img{
    height: 30px;
}
.comptes img{
    height: 30px;
    cursor: pointer;
}


/* Fin Menu de navigation */



/* Style pour la splash screen */
.splash {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color:#0175C2; /* Doit correspondre au background_color du manifest */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999; /* Au-dessus de tout */
  transition: opacity 0.5s ease-out;
}

.splash-content {
  text-align: center;
}

.splash-logo {
  width: 120px;
  height: auto;
  margin-bottom: 2rem;
  animation: fadeIn 0.8s ease-in;
}

/* Animation optionnelle pour un spinner */
.splash-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
  margin: 0 auto;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Classe qui cache la splash screen */
.splash.hidden {
  opacity: 0;
  pointer-events: none;
}

#myBtn {
    display: none;
    position: fixed;
    height: 100px;
    bottom: -30px;
    right: 30px;
    z-index: 99;
  }
  
  #myBtn img {
    width: 50px; /* Ajustez la taille de l'image selon vos besoins */
    height: 50px; /* Ajustez la taille de l'image selon vos besoins */
    border-radius: 50%; /* Assurez-vous que l'image est de forme ronde */
    border: none;
    transition: all 0.3s;
  }
  
  #myBtn:hover img {
    opacity: 0.8; /* Opacité réduite au survol */
    transform: scale(.95);
    
  }

  #myBtn.show {
    display: inline-block;
}
  

/* Presentation */
#presentation{
    width: 100%;
    position: absolute;
    top: 150px;
    transition: .8s; 
    display: flex; 
    align-items: start;
    justify-content: center;
    flex-direction: column;
    padding: 20px;
}
#presentation h1{
    color:#00FFFF;
    font-size: calc(1rem + 2.5vw);
}
#presentation p{
    color: white;
    font-size: calc(.8rem + 1.3vw);
}
#presentation.descend{
    top: 250px;
}

.video {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    position: relative;
    top: 400px;
}

iframe {
    border-radius: 8px;
    width: 1000px; /* Par défaut pour les écrans larges */
    height: 550px;
}

/* Écran moyen (tablettes et ordinateurs portables : max 1024px) */


#main{
    width: 100%;
    display: flex; 
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 20px;
    position: relative;
    top: 500px;
    row-gap: 50px;
}
#formations
{
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    height: 700px;
    width: 100%;
    flex-wrap: wrap;
    padding: 10px;
    background-color:white;
    border-radius: 10px;
}
#h2
{
    width: 90%;
    position: relative;
    text-align: center;
    font-size: calc(0.7rem + 1.9vw);
    color: #00FFFF;
}
#formations .itemsfor{
    width: 200px;
    height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.555);
    padding: 15px;
    row-gap: 10px;
    border-radius: 10px;
    box-shadow: rgba(0, 0, 0, 0.389) 0px 15px 25px, rgba(0, 0, 0, 0.34) 0px 5px 10px;
    transition: all .3s;
    text-decoration: none;
}

#formations .itemsfor:hover{
    box-shadow: 0 0 0 0;
    cursor: pointer;
}
#formations .itemsfor p{
    font-size: calc(.6rem + 1vw);
    color: black;
}
#formations .itemsfor img{
    width: 130px;
    height: 130px;
    border-radius: 10px;
    object-fit: contain;
}

#formes{
    width: 100%;
    height: 500px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-evenly;
    row-gap: 20px;
    position: relative;
    top: 600px;
    padding: 20px;
}

#formesh2{ 
    width: 100%;
    position: relative;
    top: 520px;
    text-align: center;
    font-size: calc(0.5rem + 1.9vw);
    color: #00FFFF;
    text-align: center;
}

#formes-items{
    width: 260px;
    height: 260px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    padding: 10px;
    overflow: hidden;
}
#formes-items:nth-child(1){
    background-color: #01257D;
}
#formes-items:nth-child(2){
    background-color: #2272FF;
}
#formes-items:nth-child(3){
    background-color:#0C1A1A ;
}
#formes-items:nth-child(4){
    background-color: #E7473C;
}

 #formes-items:hover{
    box-shadow: 5px 5px 5px #002;
    transform : scale(1.04);
    transform: rotate(2deg);
}

#formes-items p
{
    width: 80%;
    color: white;
    font-size: 12px;
    letter-spacing: 2px;
    word-spacing: 3px;
}
#formes-items h1{
    color: white;
    width: 80%;
    font-size: calc(0.5rem + 1vw);
} 


/* FOOTER */
footer{
    width: 100%;
    /* height: 150px; */
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    background-color: #01257D;
    background-color: #0C1A1A;
    position: relative;
    bottom: -800px;
    padding: 20px;
    row-gap: 50px;
}
footer a img{
    height: 40px;
    transition: all .8s;
}
footer a img:hover{
    transform: rotateY(180deg);
    
    position: relative;
    top: -5px; 
}
footer p{
    font-size: calc(.8rem + .5vw);
    font-weight: bold;
    color: white;
    text-align: center;
}

footer .cont{
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
}
footer .cont.n2{
    flex-direction: column;
        align-items:flex-start;
}
footer .cont.n2{
    flex-direction: column;
    align-items:flex-start;
    justify-content: center;
    align-items: center;
    row-gap: 20px;
}
footer .cont.n1{
    flex-direction: column;
    align-items:flex-start;
    
}
footer .cont.n3{
    flex-direction: column;
    align-items:flex-start;
    flex-wrap: wrap;
    align-items: center;
    
}
footer .cont.n3 div img{
    height: 100px;
}
footer .cont.n3 div{
    display: flex;
    padding: 0;

}
footer .cont.n3 div p{
    width: 100%;
}
footer .cont.n1 div img{
    height: 35px;
}
footer .cont.n1 div{
    display: flex;
    align-items: center;
    justify-content: center;
    column-gap: 10px;
    padding: 10px;
}
/* footer .cont.n1 div:nth-child(2){
    border-left: 3px solid white;
    border-right: 3px solid white;
    padding-right: 50px;
    padding-left: 50px;

} */
footer .cont.n1 div a{
    text-decoration: none;
    font-size: 20px;
    color: #00FFFF;
    transition: all .3s;
}
footer .cont.n1 div a:hover{
    color: #f1F1F1;
}
footer .link{
    display: flex;
    column-gap: 10px;
    background-color: rgba(245, 245, 245, 0.836);
    padding: 15px;
    border-radius: 7px;
}

                    /* Class Ajoutee par le JS */
.reveal{
    opacity: 0;
    transform: translateY(30px);
}

.reveal-visible{
    opacity: 1;
    transform: translateY(0);
    transition: 1s cubic-bezier(.5, 0, 0, 1);
}


                    /* RESPONSIVE DISIGN */

@media (max-width:1030px){ 
    footer .cont.n1 div a{
        font-size: 17px;
    }
    footer .cont.n1 div img{
        height: 35px;
    }
       
}              

@media (max-width:950px){
   footer{
    flex-direction: column;
    align-items: center;
    /* row-gap: 10px;
    height: 180px; */
   }

   footer .cont.n1{
        flex-direction: column;
        align-items:center;

    }
    footer .cont.n1 div img{
        height: 35px;
    }

   footer a img{
    height: 30px;
    }  
    footer div {
        padding: 10px;
    }
    #formes-items{
        width: 260px;
        height: 260px;
    }
    #formations .itemsfor{
        width: 180px;
        height: 180px;
    }
    #formations .itemsfor img{
        width: 120px;
        height: 120px;
    }
}

@media (max-width:800px){
    #icons{
        display: block;
    }
    #icons::before{
         content: " \2630";  
    }
    .active #icons::before{
        content: "\2715";
    }
    nav ul{
        position: absolute;
        left: -100%;
        flex-direction: column;
        top: 11%;
        background-color:#01257D;
        width: 100%;
        height: 280px;
        text-align: center;
        transition: .8s;
        text-transform: uppercase;
        padding-bottom: 10px;
        padding-top: 10px;
        z-index: 2;
    }
    nav li{
        padding: 10px 0;
        margin: 0;
    }
    nav .anav{
        font-size: calc(.8rem + 1vw);
    }

    nav.active ul{
        left: 0;
    }

    #formations .itemsfor{
        width: 150px;
        height: 150px;
    }
    #formations .itemsfor img{
        width: 100px;
        height: 100px;
    }
}
@media (max-width: 600px){
    #formes-items{
        width: 200px;
        height: 200px;
    }
    #formes{
        height: 350px;
    }

}
@media (max-width: 550px){
    
    #formations .itemsfor{
        width: 120px;
        height: 120px;
    }
    #formations .itemsfor img{
        width: 80px;
        height: 80px;
    }
    #formations .itemsfor p{
       font-size: 11px;
    }
}

@media (max-width: 480px){
    #formes-items{
        width: 85%;
        height: 140px;
        padding: 5px;
    }
    #formes-items p, h1{
        width: 90%;
    }
    footer{
        bottom: -1000px;
    }
    #formations .itemsfor{
        width: 100px;
        height: 100px;
    }
    #formations .itemsfor img{
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 330px){
    #formations{
        height: 420px;
        gap: 10px;
    }
    #formations .itemsfor{
        width: 70px;
        height: 90px;
    }
    #formations .itemsfor img{
        width: 50px;
        height: 60px;
    }
    #formes-items{
        width: 95%;
        height: 140px;
        padding: 5px;
    }
    #formes-items p, h1{
        width: 90%;
    }
    
}

@media (max-width: 1024px) {
    iframe {
        width: 800px;
        height: 450px;
    }
}

/* Écran petit (smartphones larges : max 768px) */
@media (max-width: 768px) {
    iframe {
        width: 600px;
        height: 350px;
    }

    .video {
        top: 350px; 
    }
}

/* Écran très petit (smartphones compacts : max 480px) */
@media (max-width: 650px) {
    iframe {
        width: 90%; /* Ajustement en pourcentage pour mieux s'adapter */
       height: 350px;
    }


}


@media (max-width: 490px) {
    iframe {
    width: 90%; /* Ajustement en pourcentage pour mieux s'adapter */
       height: 300px;
    }
    .video {
        top: 400px; 
    }


}
/* Écran très large (au-delà de 1440px) */
@media (min-width: 1440px) {
    iframe {
        width: 1200px;
        height: 650px;
    }
}

