/* Réinitialisation de certains styles par défaut */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    background-color: #212121;
    color: white;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}


header {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Centrer verticalement */
    padding: 20px 40px;
    background-color: #191919;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    align-items: center; /* Centrer verticalement */
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.social-icons {
    display: flex;
    align-items: center;
}

.icon {
    width: 40px; /* Augmenter la taille des icônes */
    height: 40px; /* Augmenter la taille des icônes */
    fill: white;
    margin-left: 15px;
    transition: fill 0.3s ease;
}

.icon:hover {
    fill: #0077b5; /* Changez la couleur en fonction de vos besoins */
}

.intro {
    text-align: center;
    margin: 50px 0;
}

.intro h1 {
    font-size: 3em;
    margin: 0;
}

.intro p {
    font-size: 1.5em;
}

.content p {
    margin: 10px;
    text-align: center;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans','bit5x3', Arial, sans-serif;
    padding: 10px;
    border-radius: 5px;
    font-size: 2em;
    /* add texte outline */
    -webkit-text-stroke: 1px black;
}
.content h2 {
    text-align: center;
    font-family:'PublicPixel','Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans','bit5x3', Arial, sans-serif;
    margin: 20px;
    font-size: 3em;

}
.content button {
    background-color: #007bff; /* Couleur de fond bleue */
    color: white; /* Texte blanc */
    border: none; /* Pas de bordure */
    border-radius: 5px; /* Coins arrondis */
    padding: 10px 20px; /* Espacement intérieur */
    margin: 5px; /* Espacement entre les boutons */
    cursor: pointer; /* Change le curseur en main pour indiquer que c'est cliquable */
    transition: background-color 0.3s ease; /* Animation de fond au survol */    
}
.content img {
    /* Center image */
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 50%;
}
.buttons-container {
    display: flex;
    justify-content: center;
}

.portfolio {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}

.portfolio-item {
    width: calc(33.333% - 40px); /* 3 items par ligne avec une marge */
    text-align: center;
    background-color: #2c2c2c;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin: 10px;
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.portfolio-item:hover {
    transform: translateY(-10px);
}

.portfolio-item img {
    width: 70%;
    max-height: 250px; /* Limite la hauteur de l'image */
    height: auto;
    object-fit: contain; /* Garde les proportions et contient l'image dans l'espace */
    display: block;
    margin: 0 auto; /* Centre l'image horizontalement */
}

.portfolio-item h3 {
    margin-top: 10px;
}

footer {
    text-align: center;
    padding: 20px;
    width: 100%;
    /* Place the footer at the bottom of the pgae */
}

@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }

    .intro h1 {
        font-size: 2.5em;
    }

    .intro p {
        font-size: 1.2em;
    }

    .portfolio-item {
        width: calc(50% - 40px); /* 2 items par ligne */
        padding: 0 10px;
    }
    .content p {
        -webkit-text-stroke: 0; /* Désactive l'outline */
    }
    .content h2 {

        -webkit-text-stroke: 0; /* Désactive l'outline */
    }
}

@media (max-width: 480px) {
    .intro h1 {
        font-size: 2em;
    }

    .intro p {
        font-size: 1em;
    }

    header {
        flex-direction: column;
        align-items: center;
    }

    .social-icons {
        margin-top: 10px;
    }

    .portfolio-item {
        width: calc(100% - 40px); /* 1 item par ligne */
        padding: 0 10px;
    }
    

}
iframe { 
    display: block; 
    margin: 0 auto; 
  }
    .cv-container { 
        text-align: center; 
        margin-top: 50px; 
    }
    .buttons-container { 
        margin-top: 20px;

    }
    .buttons-container button {
  background-color: #007bff; /* Couleur de fond bleue */
  color: white; /* Texte blanc */
  border: none; /* Pas de bordure */
  border-radius: 5px; /* Coins arrondis */
  padding: 15px 32px; /* Espacement intérieur */
  margin: 5px; /* Espacement entre les boutons */
  cursor: pointer; /* Change le curseur en main pour indiquer que c'est cliquable */
  transition: background-color 0.3s ease; /* Animation de fond au survol */
  font-size: 25px;

}

.buttons-container button:hover {
  background-color: #0056b3; /* Couleur de fond plus foncée au survol */
}

a {
    color: inherit;
    text-decoration: none;
}

.Gallery{
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    flex-wrap: wrap;
}
.Gallery img {
    width: 900px; /* Définissez la largeur souhaitée */
    height: 500px; /* Définissez la hauteur souhaitée */
    object-fit: cover; /* Garde l'aspect ratio et couvre l'espace défini */
}

.CertificationsContainer {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    flex-wrap: wrap;
}

/* Par défaut, ratio 16:9 */
.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

    .video-container iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: 0;
    }

/* Pour les écrans plus petits, utiliser un ratio 4:3 */
@media screen and (max-width: 768px) {
    .video-container {
        padding-bottom: 75%;
    }
}



