@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@600&display=swap');


/* Global Styles */
html, body {
    margin: 0 20;
    padding: 0;
   
    background: linear-gradient(to bottom, 
       
        #f5f5f5 0%, 
        #e0e0e0 70%, 
        #c0c0c0 80%, 
        #808080 100% 
    );
    font-family: Arial, sans-serif;
    color: #000;
}

body{
    padding-top: 100px;
}
/* Header Section */
header {
    display: flex;
    justify-content: center; 
    align-items: center; 
    /* Ajustez la hauteur du header pour l'espacement souhaité */
    height: 150px; 
    background-color: transparent; 
    margin: 0;
    padding: 0;
    position: relative;
}

.big-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #FFFFFF 100%, #71F7FF 45%, #3CF3FF 0%);
    transform: translate(-50%, -50%);
}

.big-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center,#FFFFFF 100%, #71F7FF 45%, #3CF3FF 0%);
    transform: translate(-50%, -50%);
    z-index: -1;
}

/* Navigation Bar */
.navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background-color: #e0e0e0; 
    border-radius: 8px; 
    box-shadow: 0px 4px 8px rgba(72, 143, 255, 0.5); /* Ombre portée bleu clair */
    max-width: 80%; /* Limite la largeur du menu */
    margin: 0 auto; /* Centrer horizontalement */
    position: fixed;
    top: 15px;
    left: 0;
    right: 0;
    z-index: 1000;
}

.logo h1 {
    font-size: 36px;
    margin: 0;
    padding-right: 20px;
}

.navbar nav ul {
    list-style: none;
    display: flex;
    gap: 240px; /* Espace entre les éléments du menu */
    margin: 0;
    padding: 0;
}

.navbar nav ul li a {
    font-size: 24px;
    text-decoration: none;
    color: #000;
    transition: color 0.3s ease;
}
.navbar nav ul li a:hover {
    color: #1946E4;
}

/* Burger Menu for Mobile */
.burger {
    display: none;
}

/* Hero Section */
.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: calc(100vh - 150px); /* Garde la section hero centrée verticalement */
    gap: 80px; /* Réduit l'espace entre les divs */
    text-align: center;
    position: relative;
    overflow: visible;
    height: calc(65vh - 65px);
    margin-top: 0;
    padding-top: 0 50px;
     
}

.hero-left h1 {
    font-size: 48px;
    margin: 0;
    color: #000; 
}

.hero-left h2 {
    font-size: 30px;
    color: white; 
    background-color: rgba(72, 143, 255, 1); 
    padding: 10px 20px;
    border-radius: 8px; 
    box-shadow: 0px 4px 8px rgba(72, 143, 255, 1); /* Ombre portée bleu */
    margin-top: 10px; /* Réduit l'espace au-dessus */
    display: inline-block; /* Encadre uniquement le texte */
}

.hero-center {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.hero-center, .hero-right, .hero-left {
    margin: 80px; 
    padding: 80px; 
    gap: 0px; 
}

.hero-right img {
    width: 50px;
    height: 50px;
}

.circleCV {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    background-color: #1946E4;
    text-align: center;
    font-size: 14px;
}
.circleMV {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0;
    background-color: rgba(72, 143, 255, 1);
    text-align: center;
    font-size: 14px;
    margin-top: 20px;
    margin-left: -50px;
}
.circleCV, .circleMV, a{
    color: white;
    text-decoration: none;
    font-size: 14px;
}

.hero-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hero-right img {
    width: 50px;    
    height: 50px;
}
.big-ball{
    /* Ajustez la taille du ball */
    width: 500px;    
    height: 500px;    
    border-radius: 50%;        
     
    background: radial-gradient(circle at left, rgba(255,255,255,0.1) , rgba(60,243,255,0.3), rgba(25,70,228,0.6)); 
    margin: 0 auto;     
    position: absolute;   
    bottom: -50px;
    left: 50%;
     /* Déplace lègérement à droite*/
    transform: translateX(30%);
    /* assurer l'affichage de la ball derrière les éléments principale */
    z-index: 0;   
}
.small-ball{
    width: 100px;    
    height: 100px;   
    border-radius: 50%;        
    background: radial-gradient(circle at left, rgba(255,255,255,0.1) , rgba(60,243,255,0.3), rgba(25,70,228,0.6));       
    position: absolute;
    bottom: 400px;   
    left: 70%;
    /* Ajuste la position horizontal*/
    transform: translateX(-50%); 
    /* place la petite balle au-dessus de la grande balle */
    z-index: 1;   
}
/* Section Profil */
.profil-section {
    padding: 50px 20px;
    background-color: transparent; 
    text-align: center;
}

.profil-section h2 {
    font-size: 32px;
    color: #1946E4; 
    margin-bottom: 30px; 
    font-weight: 600; 
    font-family: 'Roboto', sans-serif;
}

.profil-content {
    display: flex;
    gap: 400px; 
    justify-content: center;
    align-items: center;
    margin: 50px 0; /* Ajoute de l'espace au-dessus et en dessous de la section Profil */
}

.profil-image .circular-image {
    width: 400px; /* Taille de l'image */
    height: 400px; 
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2); /* Ombre subtile */
    position: relative;
}

.small-ball2 {
    width: 100px; 
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle at left, rgba(255,255,255,0.1) , rgba(60,243,255,0.3), rgba(25,70,228,0.6));
    position: absolute;
    /* Positionnement de la balle */
    bottom: -750px; 
    left: 380px; 
    z-index: 2;
}

.profil-text p {
    text-align: left;
    font-size: 20px;
    color: #000; 
    /* Limiter la largeur du texte pour une bonne lisibilité */
    max-width: 400px; 
    line-height: 1.6; 
}
.contact-button {
    margin-top: 40px;
    text-align: center; 
}

.contact-button a {
    background-color: #1946E4; 
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 22px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2); 
    transition: background-color 0.3s;
}
.contact-button a:hover {
    background-color: #1c3f88; 
}

/* Section Troisième Partie */
.third-section {
    display: flex;
    justify-content: space-around; /* Assure que les colonnes sont bien réparties */
    padding: 50px 20px;
    gap: 50px; /* Espacement entre les deux colonnes */
    text-align: center;
}

.third-section .row {
    display: flex;
    justify-content: space-between; /* Assure que les colonnes sont bien réparties */
    gap: 20px; /* Espacement entre les colonnes */
    flex-wrap: wrap; /* Permet d'adapter les colonnes sur les petits écrans */
}

.third-section .col-md-4 {
    flex: 1;
    max-width: 30%; /* Limite la largeur des colonnes */
    min-width: 250px; /* Largeur minimum pour éviter le rétrécissement excessif */
}

.third-section h3 {
    color: #1946E4; /* Couleur bleue pour les titres */
    font-weight: 600;
    font-family: 'Roboto', sans-serif;
    margin-bottom: 20px;
    animation: bounce 2s infinite; /* Animation pour les titres */
}
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.third-section p {
    font-size: 16px;
    line-height: 1.5;
    color: #333; /* Couleur sombre pour le texte */
}

.competences-section {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 50px 20px;
    background-color: #f5f5f5; /* couleur de fond */
    text-align: center;
}

.competences-section {
    font-size: 36px;
    color: #1946E4; /* Couleur du titre */
    margin-bottom: 30px;
    font-weight: 600;
    font-family: 'Roboto', sans-serif;
}

h2 {
    display: flex;
    justify-content: center; /* Centre horizontalement */
    align-items: center; /* Centre verticalement */
    text-align: center; /* Centre le texte */
    font-size: 36px; /* Ajustez la taille de la police */
    color: #1946E4; /* Couleur du texte, vous pouvez la changer */
    margin-bottom: 30px; /* Espace en bas */
    font-weight: 600;
    font-family: 'Roboto', sans-serif;
}


.competences-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Affiche 4 compétences par ligne */
    gap: 20px;
    max-width: 80%; /* Largeur maximale de la grille */
    margin: 0 auto; /* Centre la grille horizontalement */
}

.competence-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
}

.competence-item:hover {
    transform: scale(1.05); /* Zoom au survol */
}

.competence-item i, .competence-item img {
    font-size: 32px; /* Taille de l'icône */
    width: 40px; /* Taille du logo MySQL */
    height: auto;
    color: #1946E4; /* Couleur de l'icône */
    margin-bottom: 10px;
}

.competence-item p {
    font-size: 18px; /* Taille du texte */
    color: #333; /* Couleur du texte */
    margin: 0;
}
.competences, .experiences, .formation, .interets {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.container-fluid footer-section{
    background-color: var(--secondary-bg-color);
    padding: 25px;
    color: var(--primary-font-color);
    display: block;
    unicode-bidi: isolate;
}

/* Section des Projets */
.projects-section {
    padding: 50px 20px;
    text-align: center;
}

.projects-section h2 {
    font-size: 36px;
    color: #1946E4; /* Couleur du titre de la section */
    margin-bottom: 30px;
    font-weight: 600;
    font-family: 'Roboto', sans-serif;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 projets par ligne */
    gap: 20px;
    justify-content: center; /* Centre les projets dans la section */
    padding: 0 40px; /* Ajuste la marge pour aligner avec la barre de navigation */
    max-width: 80%; /* Limite la largeur pour qu'elle ne dépasse pas */
    margin: 0 auto; /* Centre la grille horizontalement */

}

.project-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.project-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Assure que l'image ne se déforme pas et est centrée */
    border-radius: 50%; /* Assurez-vous que l'image garde sa forme circulaire */
    transition: transform 0.3s ease-in-out;
}


.project-item:hover img {
    transform: scale(1.1); /* Zoom au survol */
}

.project-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(25, 70, 228, 0.7); /* Couleur bleue transparente */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0; /* Caché par défaut */
    transition: opacity 0.3s ease-in-out; /* Transition pour l'apparition */
    border-radius: 1px; /* Assurez que l'overlay garde la forme de l'image */
}

.project-item:hover .overlay {
    opacity: 1; /* Affiche l'overlay au survol */
}

.overlay h3 {
    color: #fff;
    font-size: 24px;
    text-align: center;
    margin: 0;
    padding: 0;
    transform: translateY(20px);
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0; /* Caché initialement */
}

.project-item:hover .overlay h3 {
    transform: translateY(0);
    opacity: 1; /* Affiche le texte au survol */
}

.contact-section {
    padding: 50px;
    text-align: center;
}

.contact-section form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
}

.contact-section input, .contact-section textarea {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.contact-section button {
    padding: 10px 20px;
    background-color: #1946E4;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.contact-section button:hover {
    background-color: #1c3f88;
}

.projects-grid img {
    width: 270px; /* Taille des images */
    height: 270px;
    border-radius: 50%; /* Forme circulaire */
    border: 3px solid #1946E4; /* Bordure bleue similaire à la couleur du texte du profil */
    box-shadow: 0px 4px 15px rgba(25, 70, 228, 0.6); /* Effet nuageux autour des images */
    object-fit: cover;
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Animation de la transformation et de l'ombre */
}

.projects-grid img:hover {
    transform: scale(1.05); /* Agrandit légèrement l'image au survol */
    box-shadow: 0px 8px 25px rgba(25, 70, 228, 0.8); /* Accentue l'effet nuage au survol */
}

.projects-grid a::after {
    content: attr(alt); /* Utilise l'attribut alt comme contenu (le titre du projet) */
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(25, 70, 228, 0.8); /* Fond bleu */
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    box-shadow: 0px 4px 15px rgba(25, 70, 228, 0.6); /* Effet nuageux bleu autour du texte */
}

.projects-grid a:hover::after {
    opacity: 1; /* Affiche le titre du projet au survol */
}

.contact-section {
    padding: 50px;
    text-align: center;
}

.contact-section form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
}

.contact-section input, .contact-section textarea {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.contact-section button {
    padding: 10px 20px;
    background-color: #1946E4;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.contact-section button:hover {
    background-color: #1c3f88;
}

footer {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #808080;
    padding: 20px;
    text-align: center;
    color: black; /* Couleur du texte */
    font-size: 16px;
}

footer a {
    color: white; /* Couleur des liens */
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover {
    color: #f0f0f0; /* Couleur des liens au survol */
}

footer i {
    color: black; /* Couleur des icônes */
    transition: color 0.3s;
}

footer i:hover {
    color: #1946E4; /* Couleur des icônes au survol */
}



/* Règles pour les tablettes (largeur d'écran maximum de 768px) */
@media (max-width: 768px) {

    /* Réduire la taille du logo */
    .logo h1 {
        font-size: 28px;
    }
    .navbar nav ul {
        display: none;
    }
    .burger {
        display: block;
        font-size: 24px;
        cursor: pointer;
    }
    /* Cacher le menu burger sur desktop */
    .burger-menu {
        display: none;   
    }

    .navbar.active nav ul {
        display: flex;
        flex-direction: column;
        background-color: #e0e0e0;
        width: 100%;
        position: absolute;
        top: 60px;
        left: 0;
        z-index: 1000;
    }
    /* Centrer et réduire la taille de la section hero */
    .hero {
        flex-direction: column;
        gap: 20px; /* Moins d'espace entre les sections */
    }

    .hero-left h1 {
        font-size: 36px;
    }

    .hero-left h2 {
        font-size: 24px;
    }

    .hero-center, .hero-right, .hero-left {
        margin: 40px; 
        padding: 40px; 
    }

    .circleCV, .circleMV {
        width: 80px;
        height: 80px;
    }

    /* Redimensionner les images dans la section profil */
    .profil-image .circular-image {
        width: 300px;
        height: 300px;
    }

    .profil-content {
        flex-direction: column;
        gap: 20px;
    }

    .profil-text p {
        font-size: 18px;
        max-width: 100%;
    }

    /* Réduction du texte dans la section contact */
    .contact-section h2 {
        font-size: 30px;
    }

    /* Mise en forme des compétences et des projets pour une disposition en grille plus adaptée */
    .competences-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 colonnes au lieu de 4 */
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 projets par ligne */
    }

    /* Ajustement des étiquettes de coordonnées */
    .etiquette {
        width: 100px;
        height: 100px;
        font-size: 14px;
    }

}

/* Règles pour les téléphones mobiles (largeur d'écran maximum de 576px) */
@media (max-width: 576px) {

      /* Ajuster les marges du logo */
      .navbar nav ul {
        gap: 40px;
    }

    /* Réduire la taille des textes dans la section hero */
    .hero-left h1 {
        font-size: 24px;
    }

    .hero-left h2 {
        font-size: 20px;
        padding: 5px 10px;
    }

    .circleCV, .circleMV {
        width: 60px;
        height: 60px;
    }

    .hero-center, .hero-right, .hero-left {
        margin: 20px; 
        padding: 20px; 
    }

   /* Redimensionner les balles pour mobile */
   .big-ball {
    width: 250px;
    height: 250px;
    bottom: -20px;
    display: block; /* Réaffiche la big-ball */
}

.small-ball {
    width: 50px;
    height: 50px;
    bottom: 450px; /* Ajuste la position au-dessus de big-ball */
    right: 420px; /* Place à droite */
}

/* Redimensionner les images dans la section profil */
.profil-image .circular-image {
    width: 200px;
    height: 200px;
}

.profil-content {
    flex-direction: column;
    gap: 20px;
    text-align: center;
}

.profil-text p {
    font-size: 16px;
    max-width: 90%;
}

/* Contact Section ajustement */
.contact-section h2 {
    font-size: 24px;
}

.contact-section form {
    max-width: 90%;
}

/* Compétences Section sur téléphone mobile */
.competences-grid {
    grid-template-columns: 1fr; /* 1 colonne pour les compétences sur mobile */
}

.competence-item {
    padding: 10px;
}

/* Projets Section */
.projects-grid {
    grid-template-columns: 1fr; /* 1 projet par ligne sur mobile */
    gap: 15px;
    padding: 0 20px;
}

.projects-grid img {
    width: 150px; /* Réduire la taille des images */
    height: 150px;
}
/* Footer ajustement */
footer {
    flex-direction: column;
    text-align: center;
    font-size: 14px;
    padding: 10px;
}

footer a {
    font-size: 14px;
}

/* Balles de profil ajustées pour les petits écrans */
.small-ball2 {
    bottom: -360px;
    left: 280px;
    width: 50px;
    height: 50px;
}

/* Etiquettes coordonnées (ajustées pour mobile) */
.etiquette {
    width: 80px;
    height: 80px;
    font-size: 12px;
}
}

/* Media Queries spécifiques aux très petits écrans (moins de 400px) */
@media (max-width: 400px) {
    .navbar nav ul {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .navbar nav ul li {
        margin-bottom: 10px;
    }

    .hero-left h1 {
        font-size: 20px;
    }

    .hero-left h2 {
        font-size: 18px;
        padding: 5px 8px;
    }

    /* Réduction des balles */
    .big-ball {
        width: 150px;
        height: 150px;
    }

    .small-ball {
        width: 40px;
        height: 40px;
        bottom: 250px;
        right: 400px;
    }

    /* Ajustement des textes de la section contact */
    .contact-section h2 {
        font-size: 20px;
    }

    .contact-section form {
        width: 100%;
    }

    /* Réduire la taille des compétences */
    .competence-item i, .competence-item img {
        font-size: 24px;
    }

    .projects-grid img {
        width: 120px;
        height: 120px;
    }

    footer p {
        font-size: 12px;
    }
}

/* Styles pour le menu burger sur mobile */
@media (max-width: 767px) {
    .burger-menu {
        display: block;
    }

    #nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: #e0e0e0;
        padding: 20px 0;
    }

    #nav-menu.show {
        display: flex;
    }

    #nav-menu li {
        margin: 10px 0;
        text-align: center;
    }
}

/* Maintenir l'affichage de la section Hero comme sur desktop */
@media (max-width: 767px) {
    .hero {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    .hero-left, .hero-right, .hero-center {
        margin: 20px 0;
        padding: 0;
        width: 100%;
    }

    .hero-left h1 {
        font-size: 32px;
    }

    .hero-left h2 {
        font-size: 24px;
        padding: 10px 15px;
    }

    .circleCV, .circleMV {
        margin: 10px;
        width: 80px;
        height: 80px;
    }

    .big-ball {
        display: block; /* Réafficher la big-ball pour le mobile */
    }

     .hero-right {
        justify-content: flex-end;
        flex-direction: column;
        gap: 20px;
        width: 100%;
    }
}

/* Media Queries spécifiques aux très petits écrans (moins de 400px) */
@media (max-width: 400px) {
.navbar nav ul {
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.navbar nav ul li {
    margin-bottom: 10px;
}

.hero-left h1 {
    font-size: 20px;
}

.hero-left h2 {
    font-size: 18px;
    padding: 5px 8px;
}

/* Réduction des balles */
.hero-right {
    display: flex;
    justify-content: flex-end; /* Aligner à droite */
    flex-direction: column;
    gap: 20px; /* Espace entre les icônes */
    width: 100%; /* S'assure que les icônes restent dans la largeur de la section */
}

.big-ball {
    width: 150px;
    height: 150px;
    bottom: 190px;
    left: 125px;
}

.small-ball {
    width: 40px;
    height: 40px;
    bottom: 320px;
}
.small-ball2 {
    width: 40px;
    height: 40px;
    bottom: -340px;
    left: 85px;
}

/* Ajustement des textes de la section contact */
.contact-section h2 {
    font-size: 20px;
}

.contact-section form {
    width: 100%;
    margin: 0 auto;
    padding: 10px;
}
.contact-section input, .contact-section textarea {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    margin-bottom: 10px; /* Ajout d'espacement entre les champs */
    box-sizing: border-box;
}
.contact-section button {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    background-color: #1946E4;
    color: #fff;
    border: none;
    margin-top: 10px; /* Ajout d'un espacement en haut du bouton */
    cursor: pointer;
}

/* Coordonnées ajustées pour petits écrans */
.etiquette-coordonnees {
    padding: 20px 10px; /* Réduction du padding */
}

.coordonnees-grid .etiquette {
    height: 50px; /* Ajustez cette valeur selon vos besoins */
    padding: 10px; /* Ajustez le padding si nécessaire */
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px; /* Taille du texte ajustée pour correspondre à la hauteur */
}

.etiquette {
    width: 100%; /* Faire en sorte que chaque étiquette prenne toute la largeur */
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.etiquette i {
    font-size: 20px;
    color: #1946E4;
}

.etiquette p {
    margin: 5px 0;
    font-size: 14px;
    color: #000;
}

/* Footer ajusté */
footer {
    text-align: center;
    font-size: 10px;
    padding: 10px;
}

/* Ajustement global pour que tout soit centré correctement */
.contact-section {
padding: 20px;
}


/* Réduire la taille des compétences */
.competence-item i, .competence-item img {
    font-size: 24px;
}

.projects-grid img {
    width: 120px;
    height: 120px;
}

footer p {
    font-size: 10px;
}
}

/* Cacher le menu burger sur desktop */
@media (min-width: 768px) {
    .burger-menu {
        display: none;
    }
}

/* Styles pour le menu burger sur mobile */
@media (max-width: 767px) {
    .burger-menu {
        display: block;
    }

    #nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: #e0e0e0;
        padding: 20px 0;
    }

    #nav-menu.show {
        display: flex;
    }

    #nav-menu li {
        margin: 10px 0;
        text-align: center;
    }
}

/* Maintenir l'affichage de la section Hero comme sur desktop */
@media (max-width: 767px) {
    .burger-menu {
        display: block;
        cursor: pointer;
    }

    #nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: #e0e0e0;
        padding: 20px 0;
    }

    #nav-menu.show {
        display: flex;
    }

    #nav-menu li {
        margin: 10px 0;
        text-align: center;
    }
    .hero {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    .hero-left, .hero-right, .hero-center {
        margin: 20px 0;
        padding: 0;
        width: 100%;
    }

    .hero-left h1 {
        font-size: 32px;
    }

    .hero-left h2 {
        font-size: 24px;
        padding: 10px 15px;
    }

    .circleCV, .circleMV {
        margin: 10px;
        width: 80px;
        height: 80px;
    }

    .big-ball {
        display: block; /* Masquer les grandes balles sur mobile pour éviter la surcharge */
    }
}

/* iPhone 12 Pro, iPhone 14 Pro, Pixel 7, Galaxy S8+, Galaxy S20 Ultra */
@media (min-width: 375px) and (max-width: 430px) {
    .navbar {
        padding: 15px 10px;
    }

    .navbar nav ul {
        display: none;
    }

    .burger-menu {
        display: block;
        font-size: 24px;
    }

    .hero-left h1 {
        font-size: 28px;
    }

    .hero-left h2 {
        font-size: 22px;
        padding: 10px 15px;
    }

    .hero-center, .hero-right, .hero-left {
        margin: 30px 10px;
        padding: 20px;
    }

    .circleCV, .circleMV {
        width: 70px;
        height: 70px;
    }

    .big-ball {
        width: 220px;
        height: 220px;
        bottom: 20;
    }

    .small-ball {
        width: 40px;
        height: 40px;
        bottom: 380px;
        right: 350px;
    }

    .small-ball2 {
        bottom: -320px;
        right: 380px;
    }

    .profil-image .circular-image {
        width: 180px;
        height: 180px;
    }

    .profil-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .projects-grid img {
        width: 130px;
        height: 130px;
    }

    footer {
        font-size: 14px;
    }
}

/* iPad Mini, iPad Air, iPad Pro, Nest Hub Max */
@media (min-width: 768px) and (max-width: 1024px) {
    .navbar {
        padding: 20px 15px;
    }

    .navbar nav ul {
        display: none;
    }

    .burger-menu {
        display: block;
        font-size: 28px;
    }

    .hero-left h1 {
        font-size: 40px;
    }

    .hero-left h2 {
        font-size: 26px;
        padding: 10px 20px;
    }

    .hero-center, .hero-right, .hero-left {
        margin: 40px 20px;
        padding: 30px;
    }

    .circleCV, .circleMV {
        width: 90px;
        height: 90px;
    }

    .big-ball {
        width: 280px;
        height: 280px;
        bottom: 30px;
    }

    .small-ball {
        width: 60px;
        height: 60px;
        bottom: 400px;
        right: 360px;
    }

    .profil-image .circular-image {
        width: 220px;
        height: 220px;
    }

    .profil-content {
        flex-direction: column;
        gap: 20px;
    }

    .projects-grid img {
        width: 180px;
        height: 180px;
    }

    footer {
        font-size: 16px;
    }
}