body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: url('img/background.jpg') no-repeat center center fixed;
    background-size: cover;
    scroll-behavior: smooth;
}


.login-container {
    height: 100%;
    width: 100%; /* Largeur de 100% pour s'adapter */
    height: 100vh; /* Assure que le body occupe toute la hauteur */
    display: flex; /* Active le flexbox sur le body */
    justify-content: center; /* Centre horizontalement */
    align-items: center; /* Centre verticalement */
}

.login-form {
    background: rgba(255, 255, 255, 0.2); /* Fond semi-transparent */
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.37);
    padding: 20px;
    text-align: center;
    width: 320px;
    animation: zoomIn 0.8s ease-out;

    /* Compatibilité avec Safari */
    -webkit-backdrop-filter: blur(10px); /* Safari */
    backdrop-filter: blur(10px); /* Standard */
}

.login-form h1 {
    font-size: 28px;
    font-weight: bold;

    /* Compatibilité pour le texte en dégradé */
    background: linear-gradient(to right, darkmagenta, chartreuse);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent; /* Rend le fond visible */
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
    text-align: left;
}

.form-group label {
    font-size: 16px;
    font-weight: bold;
    color: white;
    margin-bottom: 5px;
    display: block;
}

.login-form input {
    display: block;
    width: 97%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    color: #333;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.login-form input:focus {
    border-color: darkmagenta;
    box-shadow: 0 0 5px rgba(128, 0, 128, 0.8);
    outline: none;
    transform: scale(1.02);
}

.login-form button {
    background: linear-gradient(to right, darkmagenta, chartreuse);
    color: white;
    border: none;
    padding: 10px;
    width: 100%;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-top: 10px;
}

.login-form button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(128, 0, 128, 0.5);
}

.login-form button:active {
    transform: scale(0.95);
    box-shadow: 0 2px 10px rgba(128, 0, 128, 0.7);
    transition: all 0.2s ease;
}


@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

header.fade-in {
    animation: fadeDown 0.5s ease forwards;
    opacity: 0;
}

@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #fff;
}





/* Header */
header {
    display: flex;
    justify-content: center; /* Centre horizontalement le contenu */
    align-items: center; /* Centre verticalement les éléments */
    padding: 10px 5%;
    position: fixed; /* Fixe le header en haut de la page */
    top: 0; /* Position verticale en haut */
    left: 0; /* Commence à gauche */
    width: 100%; /* Prend toute la largeur */
    z-index: 1000; /* Au-dessus des autres éléments */
}

/* Style pour le lien actif */
header .menu li a.active {
    background: linear-gradient(to right, chartreuse, darkmagenta);
    color: white;
    box-shadow: 0 0 5px rgba(128, 0, 128, 0.5);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}



.logo {
    display: flex;
    justify-content: center; /* Centre horizontalement */
    align-items: center; /* Centre verticalement */
    overflow: visible; /* S'assure que l'image n'est pas masquée */
}



.logo img {
    width: 500px; /* Largeur du logo */
    height: auto; /* Ajuste automatiquement la hauteur */
    display: block; /* Empêche les marges indésirables */
}



header nav {
    display: flex;
    align-items: center;
}

header .menu {
    display: flex;
    gap: 20px;
    list-style: none;
}

header .menu li {
    position: relative;
}

header .menu li a {
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    font-size: 1rem;
    padding: 10px 15px;
    border-radius: 5px;
    transition: color 0.3s ease, background-color 0.3s ease;
}

header .menu li a:hover {
    background: linear-gradient(to right, darkmagenta, chartreuse);
    color: darkmagenta;
}


/* Home Section */
#home {
    display: flex;
    justify-content: center; /* Centre horizontalement le contenu */
    align-items: center; /* Centre verticalement le contenu */
    height: 100vh; /* Prend toute la hauteur de l'écran */
    text-align: center; /* Centre le texte */
    
    position: relative; /* Nécessaire pour l'overlay */
    overflow: hidden; /* Cache les débordements */
}

/* Overlay */
#home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 1; /* Place l'overlay en dessous du contenu */
}

/* Content Styling */
#home .content {
    position: relative;
    z-index: 2; /* Place le contenu au-dessus de l'overlay */
    color: #fff; /* Texte blanc */
    max-width: 800px; /* Largeur maximale du contenu */
    padding: 20px; /* Espacement interne */
}

#home h1 {
    font-size: 3.5rem; /* Taille du texte principale */
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7); /* Ombre légère */
    color: darkmagenta; /* Couleur principale */
    line-height: 1.2;
}

#home h2 {
    font-size: 2rem; /* Taille du sous-titre */
    font-weight: 300;
    margin-bottom: 20px;
    color: #f1f1f1; /* Légèrement plus clair pour un contraste optimal */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5); /* Ombre subtile */
}

#home p {
    font-size: 1.2rem; /* Taille du texte descriptif */
    line-height: 1.6;
    color: #f1f1f1; /* Légèrement plus clair pour un contraste optimal */
    margin-bottom: 30px;
}

/* Button Styling */
#home .btn {
    display: inline-block;
    padding: 12px 24px; /* Espacement interne */
    font-size: 1rem; /* Taille du texte */
    font-weight: bold;
    text-transform: uppercase;
    color: #fff; /* Texte blanc */
    background: linear-gradient(to right, darkmagenta, chartreuse);; /* Dégradé élégant */
    border: none;
    border-radius: 5px; /* Coins arrondis */
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.3s ease, background 0.3s ease;
}

#home .btn:hover {
    background: chartreuse; /* Inverse le dégradé au survol */
    color: darkmagenta;
    transform: scale(1.1); /* Agrandit légèrement */
}


/* About Section */
#about {
    padding: 60px 5%; /* Espacement interne */
    background: #1e1e1e; /* Fond sombre pour contraste */
    text-align: center; /* Centrage du texte */
    color: #fff; /* Couleur du texte */
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5); /* Ombre intérieure subtile */
}

#about h2 {
    font-size: 2.5rem; /* Taille du titre */
    color: darkmagenta; /* Couleur principale */
    margin-bottom: 20px; /* Espacement sous le titre */
    text-transform: uppercase; /* Texte en majuscules */
    letter-spacing: 2px; /* Espacement entre les lettres */
}

#about p {
    font-size: 1.2rem; /* Taille du paragraphe */
    line-height: 1.8; /* Hauteur de ligne pour une meilleure lisibilité */
    color: #ddd; /* Couleur grise douce */
    margin-bottom: 30px; /* Espacement sous le paragraphe */
    max-width: 800px; /* Largeur maximale du texte */
    margin-left: auto; /* Centrer le texte horizontalement */
    margin-right: auto;
}

#about .btn {
    display: inline-block;
    padding: 12px 24px; /* Espacement interne du bouton */
    font-size: 1rem; /* Taille du texte du bouton */
    font-weight: bold;
    text-transform: uppercase; /* Texte en majuscules */
    color: #fff; /* Texte blanc */
    background: linear-gradient(to right, darkmagenta, chartreuse);
    border: none;
    border-radius: 5px; /* Coins arrondis */
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.3s ease, background 0.3s ease; /* Animation fluide */
}

#about .btn:hover {
    background: chartreuse; /* Inverse le dégradé au survol */
    color: darkmagenta;
    transform: scale(1.1); /* Agrandit légèrement le bouton */
}

/* Projects Section */
#projects {
    padding: 60px 5%; /* Espacement interne */
    background: #2e2e2e; /* Fond sombre */
    text-align: center; /* Centrage du texte */
    color: #fff;
}

#projects h2 {
    font-size: 2.5rem; /* Taille du titre */
    color: darkmagenta; /* Couleur principale */
    margin-bottom: 30px; /* Espacement sous le titre */
    text-transform: uppercase;
    letter-spacing: 2px; /* Espacement entre les lettres */
}

/* Project List Styling */
.project-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Grille réactive */
    gap: 20px; /* Espacement entre les projets */
    margin-top: 20px;
}

/* Individual Project Styling */
.project {
    background: rgba(0, 0, 0, 0.8); /* Fond légèrement transparent */
    border-radius: 10px; /* Coins arrondis */
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5); /* Ombre subtile */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project:hover {
    transform: scale(1.05); /* Agrandit légèrement au survol */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4); /* Accentue l'ombre au survol */
}

.project img {
    max-width: 100%; /* Image responsive */
    border-radius: 10px; /* Coins arrondis */
    margin-bottom: 15px; /* Espacement sous l'image */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6); /* Ombre pour l'image */
}

.project h3 {
    font-size: 1.5rem; /* Taille du titre */
    color: darkmagenta; /* Couleur principale */
    margin-bottom: 10px; /* Espacement sous le titre */
}

.project p {
    font-size: 1rem; /* Taille du paragraphe */
    line-height: 1.6; /* Lisibilité */
    color: #ddd; /* Couleur grise douce */
    margin-bottom: 20px; /* Espacement sous le paragraphe */
}

/* Button Styling for Projects */
.project .btn {
    padding: 10px 20px; /* Espacement interne */
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(to right, darkmagenta, chartreuse); /* Dégradé élégant */
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.3s ease;
}

.project .btn:hover {
    background: chartreuse; /* Change la couleur au survol */
    color: darkmagenta; /* Change la couleur du texte au survol */
    transform: scale(1.1); /* Agrandit légèrement */
}

/* Modal Styling */
.modal {
    display: none; /* Masque le modal par défaut */
    position: fixed;
    z-index: 1001;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8); /* Overlay noir transparent */
}

.modal-content {
    background-color: #1e1e1e;
    color: #fff;
    margin: 15% auto;
    padding: 20px;
    border-radius: 10px;
    width: 80%;
    max-width: 600px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.5s ease; /* Animation pour une meilleure apparence */
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-content img {
    max-width: 100%;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.modal-content h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: darkmagenta;
}

.modal-content p {
    font-size: 1rem;
    color: #ddd;
    margin-bottom: 20px;
    line-height: 1.6;
}

.modal-content .btn {
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: bold;
    color: #fff;
    background: linear-gradient(to right, darkmagenta, chartreuse);
    border: none;
    border-radius: 5px;
    text-decoration: none;
    transition: transform 0.3s ease, background 0.3s ease;
    cursor: pointer;
}

.modal-content .btn:hover {
    background: chartreuse;
    color: darkmagenta;
    transform: scale(1.1);
}

/* Close Button */
.modal-content .close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
    transition: transform 0.3s ease, color 0.3s ease;
}

.modal-content .close:hover {
    color: chartreuse;
    transform: scale(1.2);
}

/* Fade-in animation for modal */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}




/* Skills Section */
#skills {
    padding: 60px 5%; /* Espacement interne */
    background: #1a1a1a; /* Fond sombre */
    text-align: center; /* Centrage du texte */
    color: #fff;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5); /* Ombre intérieure subtile */
}

#skills h2 {
    font-size: 2.5rem; /* Taille du titre */
    color: darkmagenta; /* Couleur principale */
    margin-bottom: 30px; /* Espacement sous le titre */
    text-transform: uppercase;
    letter-spacing: 2px; /* Espacement entre les lettres */
}

/* Skills List Styling */
.skills-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* Grille réactive */
    gap: 20px; /* Espacement entre les items */
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

/* Individual Skill Styling */
.skill {
    text-align: center; /* Centrage des icônes et du texte */
    padding: 20px;
    background: rgba(255, 255, 255, 0.1); /* Fond légèrement transparent */
    border-radius: 10px; /* Coins arrondis */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* Ombre subtile */
}

.skill:hover {
    transform: scale(1.1); /* Agrandit légèrement au survol */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4); /* Accentue l'ombre au survol */
}

/* Icons Styling */
.skill i {
    font-size: 3rem; /* Taille des icônes */
    color: darkmagenta; /* Couleur principale */
    margin-bottom: 10px; /* Espacement sous l'icône */
    transition: color 0.3s ease; /* Animation fluide */
}

.skill:hover i {
    color: chartreuse; /* Change la couleur de l'icône au survol */
}

/* Text Styling */
.skill p {
    font-size: 1rem; /* Taille du texte */
    color: #ddd; /* Couleur grise douce */
    margin: 0;
}


/* Contact Section */
#contact {
    padding: 60px 5%; /* Espacement interne */
    background: #141414; /* Fond sombre */
    text-align: center; /* Centrage du texte */
    color: #fff;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5); /* Ombre intérieure subtile */
}

#contact h2 {
    font-size: 2.5rem; /* Taille du titre */
    color: darkmagenta; /* Couleur principale */
    margin-bottom: 20px; /* Espacement sous le titre */
    text-transform: uppercase;
    letter-spacing: 2px; /* Espacement entre les lettres */
}

#contact p {
    font-size: 1.2rem; /* Taille du texte */
    color: #ddd; /* Couleur grise douce */
    margin-bottom: 30px; /* Espacement sous le paragraphe */
}

/* Form Styling */
#contact form {
    max-width: 600px; /* Largeur maximale du formulaire */
    margin: 0 auto; /* Centre horizontalement */
    text-align: left; /* Aligne les champs à gauche */
}

#contact form input,
#contact form textarea {
    width: 100%; /* Prend toute la largeur disponible */
    padding: 10px; /* Espacement interne */
    margin-bottom: 15px; /* Espacement sous chaque champ */
    border: 1px solid #555; /* Bordure subtile */
    border-radius: 5px; /* Coins arrondis */
    background: rgba(255, 255, 255, 0.1); /* Fond transparent */
    color: #fff; /* Texte blanc */
    font-size: 1rem; /* Taille du texte */
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#contact form input:focus,
#contact form textarea:focus {
    border-color: darkmagenta; /* Change la couleur de la bordure au focus */
    box-shadow: 0 0 8px rgba(128, 0, 128, 0.8); /* Ajoute une ombre au focus */
    outline: none; /* Supprime le contour par défaut */
}

/* Textarea Styling */
#contact form textarea {
    min-height: 120px; /* Hauteur minimale du textarea */
    resize: vertical; /* Permet à l'utilisateur de redimensionner verticalement */
}

/* Button Styling */
#contact form button {
    width: 100%; /* Prend toute la largeur */
    padding: 12px 20px; /* Espacement interne */
    font-size: 1rem; /* Taille du texte */
    font-weight: bold;
    text-transform: uppercase; /* Texte en majuscules */
    color: #fff; /* Texte blanc */
    background: linear-gradient(to right, darkmagenta, chartreuse); /* Dégradé élégant */
    border: none;
    border-radius: 5px; /* Coins arrondis */
    cursor: pointer;
    transition: transform 0.3s ease, background 0.3s ease; /* Animation fluide */
}

#contact form button:hover {
    background: chartreuse; /* Change la couleur au survol */
    color: darkmagenta; /* Texte darkmagenta au survol */
    transform: scale(1.05); /* Agrandit légèrement */
}


/* Footer */
footer {
    padding: 20px 5%; /* Espacement interne */
    background: #0d0d0d; /* Fond sombre élégant */
    color: #fff; /* Texte blanc */
    text-align: center; /* Centrage du texte */
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5); /* Ombre intérieure subtile */
}

footer p {
    font-size: 1rem; /* Taille du texte */
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    margin-bottom: 15px; /* Espacement sous le texte */
    color: #ddd; /* Couleur grise douce */
}

/* Social Icons Styling */
footer .social-icons {
    display: flex;
    justify-content: center; /* Centre les icônes horizontalement */
    gap: 15px; /* Espacement entre les icônes */
}

footer .social-icons a {
    color: darkmagenta; /* Couleur principale des icônes */
    font-size: 1.5rem; /* Taille des icônes */
    transition: transform 0.3s ease, color 0.3s ease; /* Animation fluide */
}

footer .social-icons a:hover {
    color: chartreuse; /* Change la couleur au survol */
    transform: scale(1.2); /* Agrandit légèrement au survol */
}





/* Améliorations Responsive pour Mobile */
@media (max-width: 768px) {
    /* Corrige les débordements horizontaux */
body, html {
    overflow-x: hidden; /* Supprime le scroll horizontal */
}



/* Éléments potentiellement larges */
img, iframe, video {
    max-width: 100%; /* Limite les médias à la largeur de leur conteneur */
    height: auto; /* Ajuste la hauteur automatiquement */
}






    body {
        font-size: 1rem; /* Légèrement plus grand pour un meilleur confort de lecture */
        line-height: 1.6; /* Augmente l'espacement entre les lignes pour une lisibilité accrue */
        margin: 0;
        padding: 0;
        overflow-x: hidden; /* Évite les défilements horizontaux indésirables */
        scroll-behavior: smooth; /* Transitions douces lors des scrolls */
        color: #f1f1f1; /* Texte légèrement gris pour réduire le contraste */
        text-align: center; /* Centre le contenu principal sur de petits écrans */
        word-wrap: break-word; /* Évite que le texte déborde des conteneurs */
        min-height: 100vh; /* Assure que le contenu occupe au moins toute la hauteur visible */
        flex-direction: column; /* Structure les enfants verticalement */
        align-items: center; /* Centre horizontalement les enfants */
    }

    /* Header */
    header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px; /* Ajout d'un peu plus d'espace pour une meilleure lisibilité */
    }


    /* Logo */
    .logo img {
        width: 120px; /* Taille du logo adaptée pour les petits écrans */
        height: auto;
    }

    .menu-toggle {
        display: block;
        font-size: 2rem;
        color: #fff;
        cursor: pointer;
        margin: 50px;
    }
    /* Navigation */
    header nav {
        display: none; /* Masqué par défaut */
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        padding: 15px 20px;
        background-color: #1e1e1e;
        border-radius: 0 0 8px 8px; /* Coins arrondis pour une finition élégante */
        opacity: 0;
        transform: translateY(-10px);
        transition: all 0.3s ease; /* Animation douce à l'ouverture */
    }

    header nav.active {
        display: flex;
        opacity: 1;
        transform: translateY(0); /* Faire apparaître doucement */
    }

    header .menu {
        flex-direction: column;
        gap: 10px;
    }

    header .menu li a {
        color: #fff;
        font-size: 1rem;
        text-align: center;
        padding: 10px 15px;
        border-radius: 5px;
        transition: background 0.3s ease, color 0.3s ease;
    }

    header .menu li a:hover {
        background: linear-gradient(to right, darkmagenta, chartreuse);
        color: white;
    }

    /* Centrer la div .content */
    #home {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        width: 100%;
        height: calc(100vh - 180px); /* Hauteur totale moins l'espace occupé par le logo */
        padding: 20px;
    }

    #home .content {
        padding: 15px;
        max-width: 90%;
        margin: 20px auto;
        color: #fff; /* Texte en blanc pour contraste */
    }

    #home h1 {
        font-size: 2rem;
        margin-bottom: 10px;
        color: darkmagenta;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7); /* Ajout d'ombre */
    }

    #home h2 {
        font-size: 1.2rem;
        margin-bottom: 10px;
        color: white;
    }

    #home p {
        font-size: 1rem;
        margin-bottom: 15px;
        color: #ddd;
    }

    #home .btn {
        font-size: 0.9rem;
        padding: 10px 20px;
        background: linear-gradient(to right, darkmagenta, chartreuse);
        color: white;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        transition: transform 0.3s ease, background 0.3s ease;
    }

    #home .btn:hover {
        transform: scale(1.05);
        background: chartreuse;
        color: darkmagenta;
    }

  /* Cache le bouton View My CV uniquement sur mobile */
  .cv-container {
    display: none;
  }

    /* Modale */
    .modal-content {
        width: 95%;
        margin: 5% auto;
        background: rgba(0, 0, 0, 0.9);
        border-radius: 10px;
        color: white;
        padding: 15px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
    }

    .cv-iframe {
        width: 100%;
        height: 250px; /* Hauteur réduite pour petits écrans */
        border: none;
        border-radius: 5px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    }

    /* About Section */
    #about {
        padding: 40px 5%;
    }

    #about h2 {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }

    #about p {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    /* Projects Section */
    #projects {
        padding: 40px 5%;
    }

    .project-list {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .project img {
        width: 100%;
        height: auto;
        border-radius: 5px;
    }

    .project h3 {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }

    .project p {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }

    .project .btn {
        font-size: 0.9rem;
        padding: 10px 15px;
    }

    /* Skills Section */
    #skills {
        padding: 40px 5%;
    }

    .skills-list {
        flex-direction: column;
        gap: 15px;
    }

    .skill {
        padding: 12px;
        border: 1px solid #ccc;
        border-radius: 8px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    /* Contact Section */
    #contact {
        padding: 40px 5%;
    }

    #contact form {
        width: 100%;
        max-width: 380px;
        margin: 0 auto;
    }

    #contact form input,
    #contact form textarea {
        padding: 10px;
        border-radius: 5px;
        font-size: 0.9rem;
    }


    #contact form button {
        font-size: 0.9rem;
        padding: 12px 20px;
    }

    /* Footer */
    footer {
        text-align: center; /* Centre le contenu */
        background-color: #0d0d0d;
    }

    footer p {
        font-size: 0.8rem; /* Réduit la taille du texte */
        margin: 8px 0; /* Ajuste les marges */
    }

    footer .social-icons {
        gap: 10px; /* Réduit l'espacement entre les icônes */
        
    }

    footer .social-icons a {
        font-size: 1.3rem; /* Réduit la taille des icônes */
    }
}



  

/* CV Button */
.cv-container {
    position: fixed; /* Position fixe pour rester visible sur toute la page */
    top: 50%; /* Centre verticalement par rapport à la page */
    right: 10px; /* Place le bouton à droite avec un léger espacement */
    transform: translateY(-50%); /* Centre le bouton verticalement */
    z-index: 1000; /* S'assure que le bouton reste au-dessus des autres éléments */
}

.cv-container .btn {
    background: linear-gradient(to right, darkmagenta, chartreuse);
    color: white;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    margin-right: 10px;
    display: inline-block;
}


  /* CV Iframe Styling */
.cv-iframe {
    width: 100%;
    height: 500px;
    border: none;
  }
  
  
  #cvButton {
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: bold;
    color: #fff;
    background: linear-gradient(to right, darkmagenta, chartreuse);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s ease, background 0.3s ease;
  }
  
  #cvButton:hover {
    background: chartreuse;
    color: darkmagenta;
    transform: scale(1.05);
  }


  .error {
    color: darkmagenta;
    background-color: chartreuse;
    border: 1px solid darkmagenta;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25%, 75% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
}

.input-group {
    position: relative;
    margin-bottom: 15px;
  }
  
  .input-group i {
    position: absolute;
    top: 50%;
    margin-top: -0.75em;
    left: -1.5em;
    transform: translateY(-50%);
    color: darkmagenta;
    font-size: 1rem;
    line-height: 1; /* Assure que l'icône est alignée parfaitement */
  }
  
  .input-group input,
  .input-group textarea {
    width: 100%;
    padding: 10px 10px 10px 35px; /* Espace pour l'icône */
    border: 1px solid #555;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    margin: 0; /* Supprime toute marge */
    box-sizing: border-box; /* Garde les dimensions correctes */
  }
  
  .input-group input:focus,
  .input-group textarea:focus {
    border-color: darkmagenta;
    outline: none;
    box-shadow: 0 0 8px rgba(128, 0, 128, 0.8);
  }
  
  .input-group textarea {
    min-height: 120px;
    resize: vertical;
  }
  
  .translation-dropdown {
    display: flex;
    justify-content: flex-start;
  }
  
  #language-list {
    list-style: none;
    padding: 0;
    color: #f1f1f1;
    margin: 0;
    display: flex;
    gap: 10px;
    position: absolute; /* Permet de positionner la liste par rapport au conteneur */
    top: 20px; /* Ajuste la position verticale */
    left: 20px; /* Ajuste la position à gauche */
  }
  
  #language-list li {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 10px;
    border: 1px solid darkmagenta;
    border-radius: 5px;
    transition: background-color 0.3s ease;
  }


  .language-item {
    display: flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(to right, darkmagenta, chartreuse);
    padding: 8px 12px;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 5px;
    transition: all 0.3s ease;
  }
  
  .language-item:focus,
  .language-item.focus {
    outline: none;
    border-color: darkmagenta; /* Bordure en focus */
    background: chartreuse; /* Mettre en évidence */
    color: darkmagenta;
  }
  
  .flag-icon {
    width: 20px;
    height: 15px;
  }
  
  
