@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');

body {
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    background-color: #f1f1f1;
}

header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    background-size: cover;
}

nav {
    background-color: #000;
    position: relative; /* Ajout de la propriété position */
    z-index: 2; /* Ajout de la propriété z-index */
}

nav ul {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin: 0 100px;
    padding: 0;
}

nav li {
    list-style: none;
    padding: 10px;
    margin: 0 5px;
}

nav li a {
    text-decoration: none;
    font-size: 1.8em;
    color: whitesmoke;
    position: relative;
}

nav li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0;
    height: 3px;
    background-color: #ccc;
    transition: width 0.5s ease;
}

nav li a:hover::after {
    width: 100%;
}

nav li a.current-page::after,
nav li a.current-page:hover::after {
    width: 100%;
    background-color: #ccc;
}

#icone {
    display: none;
}

@media screen and (max-width: 720px) {
    nav {
        top: 60px;
        display: none;
        position: absolute;
        background-color: #000;
    }

    nav ul {
        display: block;
        margin: 0 10px;
        padding: 0;
    }

    #icone {
        display: block;
    }
}

.custom-icon {
    margin-right: 8px; /* Espacement entre l'icône et le texte */
  }

section {
    width: 100%;
    min-height: 600px;
    margin-top: 5px;
}

.bloc_ouvrant {
    display: inline-block;
    margin: 0;
    z-index: 0; /* Ajout de la propriété z-index */
}

.tuile {
    position: relative;
    margin: 15px 15px;
    text-decoration: none;
    border: 0;
}

.tuile p {
    box-sizing: border-box;
    background-color: #302e2e;
    color: #fff;
    width: 130px;
    height: 130px;
    padding-top: 40px;
    text-align: center;
    font-weight: bold;
    text-shadow: 0px 1px 0px black;
    border-radius: 10px;
    box-shadow: -1px 2px 5px #302e2e, 0 -1px 0 white;
    cursor: pointer;
}

.contenu {
    border: 1px solid black;
    border-radius: 20px;
    width: 95%;
    position: absolute;
    background-color: #f1f1f1;
    z-index: 1; /* Ajout de la propriété z-index */
    display: none;
}

.titre_icone {
    padding: 2px 10px;
    text-align: center;
}

.titre_icone img {
    float: right;
    margin: 2px 0px;
}

.titre_icone p {
    clear: right;
    font-size: larger;
    font-weight: bolder;
}

legend {
    font-size: 30px;
}

fieldset {
    border-radius: 10px;
    background-color: #fff;
    border: 1px solid #302e2e;
    max-width: 100%;
    margin: 2px 10px;
}

.contenu p {
    margin: 2px 10px;
}

fieldset ul li a {
    color: #302e2e;
}

/*fieldset ul li a:hover {
    border: 1px solid transparent;
    border-radius: 15px;
}*/

.lect-video2 {
    margin: 5px 50px;
    max-width: 100%;
}

iframe {
    max-width: 100%;
}

@media screen and (max-width: 500px) {
    .contenu p {
        margin: 0px;
    }
    .lect-video2 {
        margin: 5px 0px;
    }
    .contenu {
        width: 98%;
    }
    fieldset {
        margin: 10px 1%;
    }
}
