:root {
    /* Vos couleurs orange/marron EXACTES */
    --orange-primary: #af6306;
    --orange-dark: #8f5208;
    --orange-brown: #7f4b0b;
    --orange-light: #e07b00;
    --orange-hover: #ff8c00;
    
    /* Vos couleurs de base EXACTES */
    --white: #fff;
    --dark: #1d1d1d;
    --gray-bg: #e1e1e1;
    --white-bg: #fff;
    --light-gray: #f4f4f4;
    --hover-gray: #e0e0e0;
    --border-gray: #4a4a4a;
    --shadow-dark: #333333;
    
    /* Polices */
    --font-roboto: 'Roboto', sans-serif;
    --font-bebas: 'bebas neue', cursive;
    
    /* Améliorations modernes sans changer l'apparence */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.7s ease;
    --radius-sm: 5px;
    --radius-md: 10px;
    --spacing-sm: 10px;
    --spacing-md: 20px;
}

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

body {
    font-family: 'Roboto', sans-serif; /* Utilisation d'une police de caractères plus moderne */
    line-height: 1.6;
    background-color: #e1e1e1;
}

header {
    position: fixed; /* Positionnement fixe pour rester en haut de la page */
    background-color: #1d1d1d; /* Couleur de fond plus sombre pour le header */
    padding: 18px 0;
    text-align: center; /* Centrage du contenu */
    color: #fff; /* Texte en blanc pour contraste */
    width: 100%;
    z-index: 3;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content:space-between;
}

nav ul li {
    position: relative;
    flex-grow: 1; /* Étendre les éléments de la liste sur toute la largeur */
}

nav ul li a {
    display: block;
    padding: 10px 20px;
    text-decoration: none;
    color: #fff; /* Couleur du texte en blanc */
    transition: color 0.3s ease; /* Transition fluide lors du survol */
}

nav ul li a:hover, nav ul li:hover {
    color: #af6306; /* Couleur du texte en orange au survol */
}

nav ul li:hover > ul {
    display: block; /* Afficher le sous-menu au survol */
}

nav ul ul {
    display: none;
    position: absolute;
    top: 100%; /* Positionnement à partir du bas du parent */
    left: 30%;
    background-color: #333333; /* Couleur de fond pour le sous-menu */
    min-width: 160px;
    z-index: 4;
    animation: fadeIn 0.7s ease; /* Ajout de l'animation */
    border-radius: 15px;
    padding-top: 10px; /* Ajout d'un padding en haut pour ajuster l'alignement */
}

nav ul ul li {
    display: block;
}

nav ul ul li a {
    padding: 10px 20px;
}

#projects {
    margin-top: 11px;
    cursor: pointer;
}

nav ul ul li a:hover {
    background-color: #4a4a4a; /* Couleur de fond au survol */
    border-radius: 15px;
}

nav ul ul ul {
    top: 0;
    left: 100%;
}

/* Animation pour le menu déroulant */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}


#about-section p {
    font-size: 1em;
    margin-bottom: 20px;
}

.active {
    color: #ff8c00;
}

main {
    padding: 20px;
}

section {
    margin-bottom: 20px;
    opacity: 0;
    transition: opacity 1.5s, transform 1.5s;
    background-color: #fff; /* Fond blanc pour les sections */
    padding: 20px; /* Ajout de padding pour l'espace intérieur */
    border-radius: 10px; /* Coins arrondis pour un aspect plus moderne */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Légère ombre pour ajouter de la profondeur */
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

section div:not(.progress-bar) {
    clear: both;
    margin-top: 4px;
}

section div img:not(.other-project img) {
    width: 150px;
    height: auto;
    margin-right: var(--spacing-sm);
    border-radius: var(--radius-md);
    float: left;
    transition: all var(--transition-slow);
    cursor: pointer;
    max-height: 90%;
    max-width: 100%;
    margin-bottom: var(--spacing-sm);
    border: 2px solid transparent;
}

section div img:not(.other-project img):hover {
    transform: scale(1.05);
    border-color: var(--orange-primary);
    box-shadow: 0 5px 15px rgba(175, 99, 6, 0.3);
}


/* Modernisation du CSS */

/* Boutons dans la section description */
#description .btn {
    display: inline-block;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
    cursor: pointer;
    padding: 10px 20px;
    border-radius: 15px;
    background-color: #8f5208;
    color: #fff;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

#description .btn:hover {
    background-color: #e07b00;
    transform: scale(1.1);
}

/* Liste principale */
#description ul {
    list-style: none;
    margin-left: 10px;
    border-radius: 10px;
}

/* Éléments de la liste principale */
#description ul li {
    margin-bottom: 15px;
    padding: 15px;
    background-color: var(--white);
    border-radius: var(--radius-sm);
    transition: all var(--transition-normal);
    border-left: 3px solid transparent;
}

#description ul li:hover {
    background-color: #f9f9f9;
    box-shadow: 0 4px 8px rgba(175, 99, 6, 0.15);
    border-left-color: var(--orange-primary);
    transform: translateX(5px);
}

/* Sous-listes */
#description ul li ul {
    list-style: none;
    padding-left: 25px;
    margin-top: 5px;
    background-color: #e9e9e9;
    border-radius: 8px;
    padding: 15px;
}

/* Éléments des sous-listes */
#description ul li ul li {
    margin-bottom: 10px;
}

#description ul li ul li:last-child {
    margin-bottom: 0;
}

h2 {
    font-family: var(--font-bebas);
    letter-spacing: 2px;
    font-size: 2.2em;
    color: var(--dark);
    margin-bottom: var(--spacing-md);
    text-align: center;
    position: relative;
    text-transform: uppercase;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--orange-primary), var(--orange-light));
    border-radius: 2px;
}

h3 {
    font-size: 1.5em;
}

h4 {
    margin-top: 10px;
    margin-left: 20px;
    font-size: 1.2em;
}

#projects-section p {
    font-size: 1em;
    margin-bottom: 20px;
}

/* Style des compétences */
#skills-section ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-md);
    list-style: none;
}

#skills-section li {
    display: flex; /* Utiliser flexbox pour aligner les éléments */
    justify-content: flex-start; /* Aligner les éléments à gauche */
    align-items: center; /* Aligner verticalement les éléments */
    background: linear-gradient(135deg, var(--light-gray), var(--white-bg));
    border-radius: var(--radius-sm); /* Bord arrondi */
    padding: 15px; /* Remplissage */
    margin-bottom: var(--spacing-sm); /* Marge en bas pour l'espace entre les compétences */
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08); /* Ombre */
    transition: all var(--transition-normal); /* Transition pour le changement de couleur de fond */
    flex-wrap: nowrap; /* Empêcher le retour à la ligne */
    gap: 15px; /* Espace constant entre les éléments */
    border: 1px solid rgba(175, 99, 6, 0.1);
    position: relative;
    overflow: hidden;
}

#skills-section li::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(175, 99, 6, 0.05), transparent);
    transition: left var(--transition-slow);
}

#skills-section li:hover::before {
    left: 100%;
}

/* Style de survol des compétences */
#skills-section li:hover {
    background: linear-gradient(135deg, var(--hover-gray), var(--light-gray));
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(175, 99, 6, 0.15);
    border-color: var(--orange-primary);
}

/* Style des pourcentages */
#skills-section li span {
    min-width: 120px; /* Largeur minimale pour le nom de la compétence */
    max-width: 120px; /* Largeur maximale pour éviter les décalages */
    text-align: left; /* Aligner le texte à gauche */
    flex-shrink: 0; /* Empêcher le rétrécissement */
    font-weight: 600;
    color: var(--dark);
}

/* Style des barres de progression */
.progress-bar {
    background: linear-gradient(135deg, var(--orange-primary), var(--orange-light));
    color: var(--white); /* Couleur du texte */
    text-align: center; /* Alignement du texte au centre */
    border-radius: var(--radius-sm); /* Bord arrondi */
    padding: 8px 12px; /* Remplissage */
    min-width: 60px; /* Largeur minimale pour la barre */
    flex-grow: 1; /* Grandir pour occuper l'espace restant */
    flex-shrink: 0; /* Empêcher le rétrécissement */
    font-weight: 600;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(175, 99, 6, 0.3);
    /* La largeur max sera contrôlée par les styles inline du HTML */
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.used-skills {
    margin-top: 30px !important;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center;
}

.used-skills span {
    display: inline-block;
    padding: 6px 12px;
    background: linear-gradient(135deg, var(--light-gray), var(--hover-gray));
    border-radius: var(--radius-sm);
    transition: all var(--transition-normal);
    border: 1px solid rgba(175, 99, 6, 0.2);
    font-size: 0.9em;
    cursor: default;
}

.used-skills span:hover {
    background: linear-gradient(135deg, var(--orange-primary), var(--orange-light));
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(175, 99, 6, 0.3);
}

.used-skills span a {
    text-decoration: none;
    color: var(--orange-brown);
    transition: color var(--transition-normal);
}

.used-skills span:hover a {
    color: var(--white);
}

hr {
    border: 0;
    height: 1px;
    background: #333;
    background-image: linear-gradient(to right, #ccc, #333, #ccc);
    margin-bottom: 20px;
    margin-top: 20px;
}

#welcome-section {
    margin-top: 20px;
    height: 100vh;
    background-image: url('./images/fonds/personnage.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding: 100px;
    text-align: center;
    opacity: 1;
}

#welcome-section h1 {
    font-family: 'bebas neue', cursive;
    /*espacement des lettres*/
    letter-spacing: 2px;
    /*text-transform: uppercase;*/
    font-size: 3em;
    margin-bottom: 20px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    padding: 0px 10px;
}

#welcome-section p {
    font-family: 'roboto', sans-serif;
    font-size: 1.5em;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    padding: 10px;
}

#contact-section {
    margin-bottom: 5%;
}

#contact-section a {
    text-decoration: none;
    color: #7f4b0b;
}

#contact-section a:hover {
    color: #ff8c00;
}

footer {
    width: 100%;
    background-color: #1d1d1d; /* Couleur de fond plus sombre pour le footer */
    text-align: center;
    padding: 20px 0;
    color: #fff; /* Texte en blanc pour contraste */
}

@media (max-width: 768px) {
    header {
        padding: 10px 0;
    }

    nav ul {
        flex-direction: column;
    }

    nav ul li {
        flex-grow: 0;
    }

    nav ul li a {
        padding: 10px 0;
    }

    nav ul ul {
        min-width: 100%;
        left: 0;
    }
    
    main {
        padding: 10px;
    }

    section {
        margin-bottom: 10px;
        padding: 10px;
    }

    section div img:not(.other-project img) {
        width: 100px;
    }

    #skills-section li {
        flex-direction: column; /* Garder l'alignement horizontal même en mobile */
        align-items: flex-start;
        justify-content: flex-start; /* Maintenir l'alignement à gauche */
        flex-wrap: nowrap; /* Empêcher le retour à la ligne */
        gap: 10px; /* Espace réduit en mobile */
    }

    #skills-section li span {
        min-width: 80px; /* Réduire la largeur minimale en mobile */
        max-width: 100%; /* Largeur maximale pour la cohérence */
        width: 100%;
        flex-shrink: 0; /* Empêcher le rétrécissement du texte */
        text-align: center; /* Forcer l'alignement à gauche */
    }

    .progress-bar {
        margin-top: 0; /* Supprimer la marge du haut */
        margin-left: 0; /* Aligner à gauche */
        flex-grow: 1; /* Permettre à la barre de grandir */
        width: 100%;
        flex-shrink: 0; /* Empêcher le rétrécissement */
    }

    #welcome-section {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background-size: contain;
        background-attachment: fixed;
        gap: 20px;
        padding: 50px;
    }

    #welcome-section h1 {
        font-size: 2em;
    }

    #welcome-section p {
        font-size: 1em;
    }

    
    .dropdown-content {
        width: 90%;
    }

    footer {
        padding: 10px 0;
    }

    #description .btn {
        margin-left: 10px;
    }
}

.navbar-toggler {
    display: none;
    position: relative;
    width: 30px;
    height: 35px;
    background-color: #1d1d1d;
    border: none;
    padding: auto;
    border-radius: 5px;
    margin-left: 10px;
}

.navbar-toggler div {
    width: 100%;
    height: 4px;
    background-color: #af6306;
    margin: 4px 0;
    transition: 0.4s;
    border-radius: 5px;
}

#lang a img {
    vertical-align: bottom;
}

.change .bar1 {
    transform: rotate(-45deg) translate(-5px, 6px);
    border-radius: 3px;
}

.change .bar2 {
    opacity: 0;
}

.change .bar3 {
    transform: rotate(45deg) translate(-5px, -6px);
    border-radius: 3px;
}

@media (max-width: 768px) {
    .navbar-toggler {
        display: block;
    }

    #main-nav {
        display: none;
    }
}

.dropdown {
    position: relative;
    display: inline-block;
    /*display: none;*/
  }
  
  .dropdown-content {
    display: none;
    width: 90%;
    position: absolute;
    background-color: #1d1d1d;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    border-radius: 10px;
    z-index: 1;
    transition: color 0.3s ease; /* Transition fluide lors du survol */
  }
  
  .dropdown-content a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
  }
  
  .dropdown-content a:hover {
    background-color: #4a4a4a;
    border-radius: 10px;
  }
  
  .dropdown:hover .dropdown-content {
    display: block;
  }
  
  .dropbtn {
    background-color: #1d1d1d;
    color: white;
    padding: 16px;
    font-size: 16px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    margin-right: 10px;
  }

  .dropbtn:hover a, .dropbtn.hover a {
        color: #af6306;
  }

  .dropdown-content a:hover {
    background-color: #4a4a4a;
    border-radius: 10px;
    border: 1px solid #af6306;
}
  .dropbtn a {
    color: white;
    text-decoration: none;
    margin-bottom: 10px;
  }

  .smallText{
    font-size: 0.8em;
    font-style: italic;
  }

  .download-button {
    display: inline-block; /* Pour permettre le padding et autres styles */
    background-color: #1d1d1d; /* Couleur de fond */
    color: white; /* Couleur du texte */
    padding: 10px 20px; /* Espacement interne */
    border: none; /* Pas de bordure */
    border-radius: 5px; /* Coins arrondis */
    cursor: pointer; /* Curseur en forme de main */
    text-decoration: none; /* Pas de soulignement */
    transition: background-color 0.3s ease, color 0.3s ease; /* Transition pour le changement de couleur de fond et de texte */
    text-align: center; /* Centrage du texte */
}

.download-button:hover {
    background-color: #4a4a4a; /* Changement de couleur de fond au survol */
    color: #af6306; /* Changement de couleur du texte au survol */
}

.lock-btn {
    cursor: not-allowed; /* Curseur en forme de cercle barré */
}

/* Style pour le fond du popup */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Fond semi-transparent */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999; /* Au-dessus de tout le reste */
    transition: visibility 0s, opacity 0.3s ease;
}

/* Style pour le contenu du popup */
.popup-content {
    background-color: #fff; /* Fond blanc */
    padding: 20px;
    border-radius: 10px; /* Coins arrondis */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.25); /* Ombre */
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
}

.popup-content-img {
    width: 90%;
    max-width: 1500px;
    height: auto;
    border-radius: 10px;
    margin-bottom: 20px;
    max-height: 90%; /* Limiter la hauteur maximale à 90% de la fenêtre */
    max-width: 100%; /* Limiter la largeur maximale à 100% de la fenêtre */
    overflow-y: auto;
}

.popup-content-img img, .popup-content-img video {
    width: 100%;
    height: auto;
    border-radius: 10px;    
}

.popup-content-img .close {
    color: #f4f4f4;
}

/* Afficher le popup */
.popup.show {
    visibility: visible;
    opacity: 1;
}
.related-projects {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
    justify-content: center;
    align-items: center;
}

.other-project {
    position: relative;
    width: 200px;
    height: 150px;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    cursor: pointer;
    margin-top: 10px;
}

.other-project:hover {
    transform: scale(1.05);
}

.other-project h4 {
    position: absolute;
    bottom: 10px;
    left: 10px;
    margin: 0;
    padding: 5px 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border-radius: 5px;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

.other-project:hover h4 {
    background-color: rgba(0, 0, 0, 0.9);
}

.other-project img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
}

.popup-projects-details {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Fond semi-transparent */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999; /* Au-dessus de tout le reste */
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s, opacity 0.5s ease;
    overflow-y: auto; /* Permettre le défilement vertical */
    padding: 20px; /* Ajouter du padding pour éviter que le contenu touche les bords */
}

/*style de la scrollbar*/
::-webkit-scrollbar {
    display: none;
}

.popup-projects-details.show {
    visibility: visible;
    opacity: 1;
}

.popup-content {
    background-color: #fff; /* Fond blanc */
    padding: 20px;
    border-radius: 10px; /* Coins arrondis */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.25); /* Ombre */
    max-width: 70%;
    width: 90%;
    text-align: center;
    position: relative;
    max-height: 90vh; /* Limiter la hauteur maximale à 90% de la hauteur de la fenêtre */
    overflow-y: auto; /* Permettre le défilement vertical si le contenu dépasse */
}

.popup-content img {
    max-width: 80%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}


.popup-content h3 {
    margin-bottom: 10px;
}

.popup-content p {
    margin-bottom: 20px;
}

.popup-content .close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1em;
    background-color: #f4f4f4;
    padding: 5px 10px;
    border-radius: 5px;
    z-index: 1;
}

.popup-content .close:hover {
    background-color: #e0e0e0;
}

.popup-content #description {
    margin-bottom: 20px;
}

.desc {
    max-height: 0;
    overflow: hidden;
    transition: max-height 1.5s ease-out;
}

.desc.show {
    max-height: 2000px;
}

.popup-content .used-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.popup-content .used-skills span {
    background-color: #f4f4f4;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.popup-content .used-skills span:hover {
    background-color: #e0e0e0;
}



.close {
    cursor: pointer;
}

.img-container {
    width: 100%;
    height: 60%;
    max-height: 300px;
    margin-top: 30px;
}

/* Style pour le conteneur du slider */
.slider {
    position: relative;
    max-width: 100%;
    height: 300px;
    margin: auto;
    overflow: hidden;
    border-radius: 10px; /* Coins arrondis */
    /*box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Légère ombre pour ajouter de la profondeur */
}

/* Style pour chaque slide */
.slide {
    display: none;
    width: 100%;
    height: auto;
}

/* Style pour les images dans les slides */
.slide img, .slide video {
    width: auto;
    height: auto;
    max-height: 300px; /* Hauteur maximale pour les images */
    border-radius: 10px; /* Coins arrondis */
    transition: transform 0.3s ease;
}

/* Effet de zoom au survol */
.slide img:hover {
    transform: scale(1.05);
}

/* Style pour les boutons de navigation */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 0;
    width: 50px;
    height: 100%;
    padding: 0;
    color: white;
    font-weight: bold;
    font-size: 24px;
    user-select: none;
    transition: background-color 0.3s ease, transform 0.3s ease; /* Transition pour le changement de couleur et l'effet de zoom */
    background-color: rgba(0, 0, 0, 0.5); /* Fond semi-transparent */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 998;
    border: none;
}

/* Positionnement des boutons de navigation */
.prev {
    left: 0;
    /*bords sur la gauche*/
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

.next {
    right: 0;
    /*bords sur la droite*/
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

/* Style pour les images dans les boutons de navigation */
.prev img, .next img {
    width: 30px;
    height: 30px;
    display: block;
    margin: auto;
}

/* Style pour les boutons de navigation au survol */
.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
    transform: scale(1.1); /* Effet de zoom au survol */
}


/* Style pour les indicateurs de slide */
.dot:not(li a) {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 2px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.active:not(li a, li), .dot:hover {
    background-color: #717171;
}

/* Animation pour les slides */
.fade {
    -webkit-animation-name: fade;
    -webkit-animation-duration: 1.5s;
    animation-name: fade;
    animation-duration: 1.5s;
}

@-webkit-keyframes fade {
    from {opacity: .4}
    to {opacity: 1}
}

@keyframes fade {
    from {opacity: .4}
    to {opacity: 1}
}
@media (max-width: 768px) {

    .related-projects {
        gap: 10px;
        justify-content: center; /* Centrer les éléments horizontalement */
        align-items: center; /* Centrer les éléments verticalement */
    }

    .popup-content {
        padding: 10px;
        max-width: 100%;
        height: auto; /* Ajuster la hauteur automatiquement */
        width: 100%;
    }

    .img-container {
        width: 100%;
        height: auto; /* Ajuster la hauteur automatiquement */
        max-height: 300px;
    }

    .slider {
        height: auto; /* Ajuster la hauteur automatiquement */
        max-height: 300px;
    }

    .slide img, .slide video {
        width: 100%;
        height: auto; /* Ajuster la hauteur automatiquement */
    }

    .prev, .next {
        width: 30px;
        margin-top: -15px;
        font-size: 20px;
    }

    .prev img, .next img {
        width: 20px;
        height: 20px;
    }

    .dot {
        height: 10px;
        width: 10px;
        margin: 0 1px;
    }
}

.contact-icon {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-right: 8px;
}

.scroll-down {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2em;
    color: white;
    animation: bounce 2s infinite;
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.scroll-down img {
    height: 50px;
    /*mettre les couleurs en blanc*/
    filter: invert(100%);
    display: block;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

.header-skills p {
    margin-bottom: 10px;
}