* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    /* height: 100%; */
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: white;
    color: black;
    /* font-family: Arial, sans-serif; */
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

#form-container {
    margin: 5%;
}

#my-form {
    margin: 5%;
}

ul, li {
    list-style-type: initial;
    margin: initial;
    padding: initial;
}


li {
    margin-bottom: 3%;
}

.navbar {
    height: 100%;
}

.nav-desktop {
    display: flex;
    flex-direction: row;
    background-color: black;
}


.navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    width: 30%;
    text-decoration: none;
    text-align: center;
}

.navigation:hover {
    color: white;
    background-color: #00adef;
}

.logo {
    width: 100px;
    height: 100px;
    transition: filter ease;
}

.logo:hover {
    transform: rotate(15deg);
    filter: invert(100%); 
    filter: brightness(1.5);
}

.logo-caché {
    display: none;
}

/* Styles pour le bouton hamburger */
.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    display: none; /* Masquer le bouton par défaut */
    flex-direction: column;
    gap: 5px;
    padding: 10px;
  }
  

  .menu-icon {
    background: white;
    width: 30px;
    height: 3px;
    border-radius: 2px;
  }

/************************************************** MODAL ********************************************************/

/* Styles pour le modal */
.modal {
    display: none; /* Masqué par défaut */
    position: fixed; /* Assure que la modal reste fixée par-dessus */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Utilise un z-index élevé pour être au-dessus de tous les éléments */
}


.modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    max-width: 500px;
    max-height: 80vh; /* Limite la hauteur pour forcer le scroll si nécessaire */
    overflow-y: auto; /* Active le scroll vertical si le contenu dépasse */
    text-align: center;
}

.modal-body {
    margin-bottom: 2%;
}

#acceptButton {
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#acceptButton:hover {
    background-color: #45a049;
}


/************************************************** Mission *******************************************************/

/* Styles pour l'en-tête de mission */

.header-mission {
    background-color: #f8f9fa; /* Couleur de fond douce */
    color: #333; /* Couleur du texte */
    text-align: center; /* Centrer le texte */
    padding: 20px; /* Espacement intérieur */
    font-size: 1.5rem; /* Taille de la police */
    font-weight: 300; /* Légèrement moins gras pour un effet élégant */
    font-style: italic; /* Mettre le texte en italique */
    letter-spacing: 0.5px; /* Espacement entre les lettres pour plus de clarté */
    line-height: 1.5; /* Hauteur de ligne pour un meilleur espacement vertical */
    margin: 0; /* Supprimer les marges par défaut */
    font-family: 'Georgia', serif; /* Choix de police élégante */
}


/* Responsive design */
@media (max-width: 768px) {
    .header-mission {
        font-size: 1.2rem; /* Réduire la taille de la police sur les petits écrans */
        padding: 15px; /* Ajuster l'espacement intérieur */
    }
}


/***************************************** CALL TO ACTION **********************************************************/

.cta-button {
    position: fixed; /* La position fixe */
    bottom: 20px;
    right: 20px;
    
    background-color: #ff6f61; /* Couleur du bouton */
    color: white;
    padding: 15px 20px;
    border-radius: 50px;
    font-size: 16px;
    text-align: center;
    z-index: 1000; /* S'assurer que le bouton est au-dessus des autres éléments */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: opacity 0.5s ease, visibility 0.5s ease; /* Pour l'effet de disparition */
  }
  
  .cta-link {
    color: white;
    text-decoration: none;
    font-weight: bold;
  }
  
  .cta-button.hidden {
    opacity: 0;
    visibility: hidden;
  }
  


/************************************************** Partie vidéos présentation crées par le DOM javascript code *******/

#video-container {
    display: flex;
    flex: row;
    justify-content: space-around;
}

.video-section {
    position: relative;
    width: 40%; /* Utilisation de pourcentage pour les dimensions */
    max-width: 560px; /* Largeur maximale */
    margin-bottom: 20px;
    margin-top: 10%;
}

.thumbnail {
    cursor: pointer;
    width: 100%;
    height: auto; /* Conserver le ratio d'aspect */
}
.video-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
}

/************************************** Partie centrale ******************************************************/



.image-detouree {
    width: 100px;
    height: 80px;
}

.introduction {
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    margin: auto;
    width: 95%;
    height: 50%;
    margin-top: 5%;
    margin-bottom: 5%;
}

.intra-intro {
    display: flex;
    flex-direction: row;
    align-items: center;
    background-color: white;
    /* background-color: #DCDCDC; */
    color: black;
    width: 45%;
    height: 100%;
    height: auto;
    border: 1px solid white;
    border-radius: 10px;
    padding: 1%;
}

.pile-billets {
    width: 100px;
    height: 100%;
}

.paragraphe-dessin-intro1 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-left: 5%;
}

.sac-money {
    width: 100px;
    height: 110px;
    object-fit: cover;
}



.paragraphe-dessin-intro3 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-left: 5%;
}

.business-woman {
    width: 100px;
    height: 100px;
}

.billet-500 {
    margin-right: 3%;
    width: 100px;
    height: 50px; 
}

.diagramme-baton {
    margin-right: 3%;
    width: 100px;
    height: 100px;
}

.banque {
    margin-right: 3%;
    width: 100px;
    height: 100px;
}

.math {
    margin-right: 3%;
    width: 100px;
    height: 100px;
}

.transmission{
    margin-right: 3%;
    width: 100px;
    height: 100px;
}
/************************************** Partie footer ******************************************************/


.footer {
    display: flex;
    flex-direction: row;
    background-color: black;
    /* background-color: #333; */
    flex-shrink: 0;
    padding-bottom: 2%;
}

.conteneur-footer {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.presentation-ours {
    display: flex;
    flex-direction: column;
    width: 25%;
}

.lien-linkedin {
    display: flex;
    flex-direction: row;
    justify-content: center;
    max-width: 100%;
    max-height: 50%;
}

.lien-linkedin:hover {
    transform: rotate(15deg);
    filter: invert(100%); 
    filter: brightness(1.5);
}

.photo-megrours {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Contient l'image proportionnellement */
    transition: filter ease;
}

.prenom {
    display: flex;
    flex-direction: row;
    justify-content: center;
    margin-top: 5%;
    color: white;
}

.coordonnees {
    display: flex;
    flex-direction: row;
    justify-content: center;
    margin-bottom: 5%;
    color: white;
}

.liste-diplomes-ours {
    color: white;
    list-style-type: disc; /* Assure que les puces sont des disques */
    padding-left: 20px; /* Ajoute de l'espace pour les puces */
    margin: 0; /* Réinitialise les marges pour éviter les conflits */
}

.contact {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
}

#contact1 {
    margin-bottom: 1%;
    font-weight: bold;
}

#contact2 {
    color: white;
}

#contact2:hover {
    color:#00adef;
}

#contact2:active {
    color: cyan;
}

#contact2:visited {
    color: purple;
}

.presentation-ourse {
    display: flex;
    flex-direction: column;
    width: 25%;
}

.photo-magrours {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Contient l'image proportionnellement */
}

.liste-diplomes-ourse {
    color: white;
    list-style-type: disc; /* Assure que les puces sont des disques */
    padding-left: 20px; /* Ajoute de l'espace pour les puces */
    margin: 0; /* Réinitialise les marges pour éviter les conflits */
}


/********************************************* Media queries **************************************************/

@media only screen and (max-width: 600px) {

    .section-header {
        font-size: 1.2rem; /* Taille réduite pour les écrans moyens */
    }


    header {
        margin-bottom: 10%;
    }

    .nav-desktop {
        display: none; /* Masquer le menu par défaut sur les petits écrans */
        flex-direction: column; /* Disposer les éléments du menu en colonne */
        width: 100%; /* Occuper toute la largeur de l'écran */
        position: absolute; /* Positionner absolument par rapport au conteneur parent */
        top: 100%; /* Positionner juste en dessous du bouton hamburger */
        left: 0; /* Aligner à gauche de l'écran */
        background-color: #333; /* Couleur de fond du menu */
        z-index: 1000; /* Assurer que le menu apparaît au-dessus des autres éléments */
    }
    
      .nav-desktop.show {
        display: flex; /* Afficher le menu lorsque la classe 'show' est ajoutée */
        background-color: black;
        position: absolute;
        width: 30%;
        position: absolute; /* Position absolue */
        top: 100%;          /* Distance depuis le haut */
        left: 0; 
      }

      .nav-desktop a {
        display: flex;
        flex-direction: row;
        justify-content: center;
        width: 100%;
        margin-bottom: 9%;
      }

      .menu-toggle {
        display: flex; /* Afficher le bouton hamburger sur les petits écrans */
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background-color: black;
        width: 30%;
      }

      .menu-icon {
        margin-bottom: 10%;
        width: 80%;
      }

      .navbar {
        position: relative;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        background-color: #333;
      }

      .logo-caché {
        display: block;
        width: 100px;
        height: 100px;
        transition: filter ease;
    }

    .navigation-logo {
        width: 90%;
    }
    
    .logo-caché:hover {
        transform: rotate(15deg);
        filter: invert(100%); 
        filter: brightness(1.5);
    }


    /******************************************** Partie objets vidéos *********************************************/



      /* .balise-videos {
        display: none;
        width: 80%;
        height: 100%;
        box-sizing: border-box;
        margin-bottom: 4%;
    } */


    #video-container {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    
    .video-section {
        display: flex;
        position: relative;
        width: 70%; 
        margin-bottom: 20px;
        margin-top: 2%;
    }

    .thumbnail {
        cursor: pointer;
        width: 100%;
        height: 180px; 
        min-height: 180px;
    }

    .video-frame {
        position: static;
        width: 100%;
        height: 180px;
        min-height: 180px;
        display: none;
    }
    

    
      /******************************************** Texte et desssins ***********************************************/

    .introduction {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 100%;
        height: 50%;
    }

    .intra-intro {
        display: flex;
        flex-direction: column;
        align-items: center;
        background-color: white;
        color: black;
        width: 100%;
        height: 100%;
        border: 1px solid white;
        border-radius: 10px;
        padding: 1%;
        margin-bottom: 5%;
        text-align: center;
    }

    .intra-intro img {
        margin-bottom: 4%;
    }

    .intra-intro p {
        width: 80%;
    }
    
    .intra-intro .sac-money {
        width: 100px;
        height: 100%;
        object-fit: cover;
      }

    /******************************************* Footer ********************************************************/

    .footer {
        height: 100%;
    }

    .conteneur-footer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: justify;
    }

    .presentation-ours {
        width: 100%;
        margin-bottom: 4%;
    }

    .contact {
        margin-bottom: 4%;
        width: 100%;
    }

    .presentation-ourse {
        width: 100%;
    }

    ul {
        width: 100%;
    }

    .liste-diplomes-ours {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        color: white;
        list-style-type: disc;
        padding-left: 20px;
        margin: 0;
      }

      .liste-diplomes-ourse {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        color: white;
        list-style-type: disc;
        padding-left: 20px;
        margin: 0;
      }


  }