/* Styles globaux */
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(to right, #80a0c1, #5b738b);
}



h1, h2, h4, h5, h6 {
    font-family: 'Gloria Hallelujah', cursive !important;
    font-weight: bold;
}
/* Appliquer un curseur personnalisé en forme de cercle */
* {
    cursor: url('assets/le-curseur.png'), auto;
}


header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 10%;
    background: #49596a;
    color: #343434;
    position: sticky;
    top: 0;
    z-index: 1000;
    font-family: 'Gloria Hallelujah', cursive !important;
    font-weight: bold;


}

.logo img {
    max-height: 50px; /* Ajuste la hauteur maximale */
    width: auto;      /* Maintient les proportions */
    display: block;   /* Évite les espaces supplémentaires */
}

header nav ul {
    list-style: none;
    display: flex;
    gap: 15px;
}

header nav ul li a {
    color: #ffffff;
    text-decoration: none;
    padding: 10px 15px;
    transition: background 0.3s;
}

header nav ul li a:hover {
    background: #6c87a3;
    border-radius: 5px;
}



.btn {
    display: inline-block;
    background: #5b738b;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3); /* Ombre dirigée vers le bas */
}

.btn:hover {
    background: #80a0c1;
}

/* Conteneur des boutons */
.btn-container {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}
.voir-plus:hover{
    background: #80a0c1;
}

#hero {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 75vh;  /* Réduit la hauteur à 60% de la hauteur de la fenêtre */
    text-align: center;
    background: linear-gradient(to right, #5b738b, #80a0c1);
    color: #343434;
}
.hero-img {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

/* Image flottante */
.hero-img img {
    max-width: 150px;
    border-radius: 50%; /* Cercle pour une photo de profil */
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2); /* Ombre douce */
    animation: float 4s ease-in-out infinite; /* Animation flottante */
    transition: transform 0.3s ease; /* Transition pour effet hover */
}

.hero-img img:hover {
    transform: scale(1.1); /* Agrandissement léger au survol */
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.3); /* Accentuation de l'ombre */
}

/* Animation de flottement */
@keyframes float {
    0%, 100% {
        transform: translateY(0); /* Position initiale */
    }
    50% {
        transform: translateY(-15px); /* Monte légèrement */
    }
}


#hero p {
    font-size: 1.4rem; /* Augmente la taille des paragraphes */
    line-height: 1.5; /* Espace entre les lignes */
}

#hero .highlight {
    font-weight: bold; /* Gras */
    color: #ffffff; /* Couleur dorée pour l'effet lumineux */
    text-shadow: 0 0 5px rgb(61, 75, 90), 0 0 10px rgb(46, 87, 130), 0 0 15px rgb(52, 52, 52); /* Effet lumineux */
    font-family: 'Gloria Hallelujah', cursive !important;
}

#about .highlight {
    font-weight: bold; /* Gras */
    color: #ffffff; /* Couleur dorée pour l'effet lumineux */
    text-shadow: 0 0 5px rgb(46, 87, 130), 0 0 10px rgb(52, 52, 52), 0 0 15px rgb(61, 75, 90); /* Effet lumineux */
    font-family: 'Gloria Hallelujah', cursive !important;

}


#about, #projects, #contact {
    padding: 50px 10%;
}

#projects .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

footer {
    text-align: center;
    padding: 10px 0;
    background: #49596a;
    color: #ffffff;
}

/* Lien Télécharger CV flottant */
.cv-download {
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: float 4s ease-in-out infinite; /* Appliquer l'animation de flottement */
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2); /* Ombre douce */
    font-family: 'Gloria Hallelujah', cursive !important;

}

.cv-download:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.3); /* Ombre accentuée au survol */
}

/* Styles globaux pour le formulaire de contact */
#contact {
    height: 65vh; /* La section occupe toute la hauteur de la fenêtre */
    padding: 40px 20px; /* Ajoute des espaces internes */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* Centre verticalement le contenu */
    text-align: center; /* Centre le texte */
    background: linear-gradient(to right, #80a0c1, #5b738b);
}
#contact h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 20px;
    color: #343434;
}



/* Global Responsive Styles */
@media (max-width: 1024px) {

    .btn-container {
        gap: 10px;
    }
    #contact {
        height: 76vh; /* La section occupe toute la hauteur de la fenêtre */
        padding: 40px 20px; /* Ajoute des espaces internes */
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center; /* Centre verticalement le contenu */
        text-align: center; /* Centre le texte */
        background-color: #f9f9f9; /* Couleur d'arrière-plan optionnelle */
    }

    #about, #projects, #contact {
        padding: 40px 10%;
    }

    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .competences-grid {
        flex-wrap: wrap;
    }

    .competences-grid span {
        font-size: 1rem;
        padding: 10px 18px;
    }
}

@media (max-width: 768px) {
    #about, #projects, #contact {
        padding: 30px 5%;
    }

    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }

    .about-container {
        flex-direction: column;
        align-items: center;
    }


    .timeline {
        gap: 15px;
    }

    .timeline-item .year {
        font-size: 1rem;
    }

    #contact {
        padding: 30px 20px;
        max-width: 90%;
    }

    #contact h2 {
        font-size: 1.8rem;
    }

    form input, form textarea {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .btn {
        padding: 8px 15px;
    }


    #projects .projects-grid {
        grid-template-columns: 1fr;
    }

    #contact {
        padding: 20px 15px;
        max-width: 90%;
    }

    form input, form textarea {
        font-size: 0.8rem;
    }

    form button {
        font-size: 0.9rem;
    }

    #contact h2 {
        font-size: 1.6rem;
    }

    .competences-grid span {
        font-size: 1rem;
        padding: 8px 16px;
    }



    .contact-icons {
        gap: 15px;
    }

    .contact-icon {
        font-size: 1.8rem;
    }

    .modal-content {
        max-width: 80%;
    }

    .modal h3 {
        font-size: 1.1rem;
    }

    .modal p {
        font-size: 0.85rem;
    }
}

/* Add for small devices */
@media (max-width: 360px) {

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .btn-container {
        flex-direction: column;
        gap: 10px;
    }
}


.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.project {
    background: rgb(255, 255, 255); /* Fond noir avec une transparence de 60% */
    border: 5px solid rgb(73, 89, 106); /* Bordure avec une transparence de 80% */
    border-radius: 10px; /* Coins arrondis */
    padding: 20px;
    color: #343434; /* Texte blanc */
    text-align: center;
    transition: transform 0.3s ease;
    backdrop-filter: blur(10px); /* Applique un flou de 10px au fond */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.9); /* Ombre subtile avec une légère transparence */
}



.project:hover {
    transform: scale(1.05);
}

.project-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.project h3 {
    font-size: 1.5rem;
    margin: 10px 0;
    font-family: "Knewave", serif;
}

.modal h3 {
    font-size: 1.1rem;
    font-family: "Knewave", serif;
}

.project p {
    font-size: 1rem;
    color: #343434;
}

.project .btn {
    margin-top: 10px;
    text-decoration: none;
    background-color: #5b738b;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
}

/* Bulles qui apparaissent au mouvement de la souris */
.bubble {
    position: absolute;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: rgb(91, 115, 139); /* Couleur de base */
    opacity: 1;
    pointer-events: none;
    animation: bubble-animation 1s forwards;
}

/* Animation de la bulle */
@keyframes bubble-animation {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
    100% {
        transform: scale(0);
        opacity: 0;
    }
}



/* Compétences */
.competences-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

/* Augmenter la taille des compétences */
.competences-grid span {
    background-color: #eef4ff;
    border: 4px solid #3d4b5a;
    border-radius: 20px;
    padding: 12px 24px;  /* Augmenter le padding pour plus d'espace autour du texte */
    font-size: 1.3rem;    /* Augmenter la taille des compétences */
    color: #5b738b;
    text-align: center;
    font-family: 'Gloria Hallelujah', cursive !important;
    font-weight: bold;
}

/* Effet hover */
.competences-grid span:hover {
    transform: scale(1.08);      /* Agrandit légèrement l'élément */

}
/* Formations & Expériences */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px; /* Positionne la barre au bon endroit */
    top: 0;
    width: 2px;
    height: 100%;
    background-color: #343434; /* Couleur de la barre */
    z-index: 0; /* Assure que la barre est derrière les cercles et le texte */
}

.timeline-item {
    position: relative;
    padding-left: 40px; /* Espace pour le texte */
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 2px; /* Positionne le cercle sur la ligne */
    top: 10px;
    width: 20px;
    height: 20px;
    background-color: #5b738b; /* Couleur des cercles */
    border-radius: 50%;
    border: 4px solid #3d4b5a; /* Bordure blanche autour du cercle */
    z-index: 1; /* Assure que le cercle est au-dessus de la ligne */
}



/* Augmenter la taille des dates */
.timeline-item .year {
    color: #3d4b5a;
    margin-bottom: 5px;
    font-size: 1.2rem; /* Augmenter la taille des dates */
    font-family: "Knewave", serif;

}

.timeline-item p {
    margin: 0;
    color: #343434;
}

/* Conteneur pour l'image et le texte */
.about-container {
    display: flex;
    align-items: flex-start; /* Aligne le contenu au début (en haut) */
    justify-content: flex-start;
    gap: 20px;
}

/* Style de l'image */
.about-img img {
    width: 450px; /* Augmente la largeur */
    height: 450px; /* Augmente la hauteur */
    border-radius: 50%; /* Arrondir complètement l'image */
    object-fit: cover;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    animation: float 4s ease-in-out infinite;
    transition: transform 0.3s ease;
    margin-left: -50px; /* Décale l'image vers la gauche */
    margin-top: 30px; /* Décale l'image vers le haut */
}
.about-img img:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.3);
}

/* Style du texte */
.about-text {
    max-width: 700px;
}


/* Pour les petits écrans (moins de 768px) */
@media screen and (max-width: 768px) {
    .about-img img {
        width: 200px; /* Réduit la largeur */
        height: 200px; /* Réduit la hauteur */
        margin-left: 100px; /* Décale l'image vers la gauche */
        margin-top: 30px; /* Décale l'image vers le haut */
    }
}

/* Pour les très petits écrans (moins de 480px) */
@media screen and (max-width: 480px) {
    .about-img img {
        width: 150px; /* Réduit davantage la largeur */
        height: 150px; /* Réduit davantage la hauteur */
        margin-left: 100px; /* Décale l'image vers la gauche */
        margin-top: 30px; /* Décale l'image vers le haut */
    }
}

.contact-icons {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 20px; /* Espacement entre les icônes */
}

.contact-icon {
    font-size: 2rem; /* Taille des icônes */
    color: #3d4b5a; /* Couleur par défaut des icônes */
    transition: color 0.3s ease;
}

.contact-icon:hover {
    color: #2e5782; /* Changer la couleur au survol */
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Fond semi-transparent */
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Empêche tout débordement global */
    z-index: 1000;
}

.modal-content {
    position: relative; /* Pour positionner la croix */
    background-color: #fff; /* Fond blanc de la modal */
    border-radius: 8px;
    max-width: 30%; /* Réduit encore la largeur */
    max-height: 60%; /* Réduit encore la hauteur */
    overflow-y: auto; /* Active le défilement vertical interne si nécessaire */
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.modal-image {
    max-width: 100%; /* Limite l'image à la largeur de la modal */
    height: auto;
    margin-bottom: 20px;
}

.close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5rem; /* Taille réduite de la croix */
    cursor: pointer;
    color: #343434;
    font-weight: bold;
    background: #49596a; /* Ajout d'un fond léger */
    border: none;
    border-radius: 50%; /* Rond */
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}

.close:hover {
    background: #80a0c1; /* Couleur légèrement plus foncée au survol */
}

.modal h3 {
    font-size: 1.2rem; /* Réduction du titre */
}

.modal p {
    font-size: 0.9rem; /* Réduction du texte descriptif */
}

.modal a {
    font-size: 0.9rem;
    text-decoration: none;
    color: #5b738b;
}

.cv-download-container {
    text-align: center;
    margin-top: 30px;
}

#modal-link {
    color: #5b738b;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
}

#modal-link:hover {
    text-decoration: underline;
}


/* Styles Responsives */

/* Petit écran (téléphone) */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: center;
        padding: 10px; /* Réduit le padding pour un header plus compact */
    }

    header .logo {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }

    header nav {
        width: 100%; /* S'étend sur toute la largeur */
    }

    header nav ul {
        flex-direction: column;
        align-items: center;
        gap: 10px; /* Ajoute de l'espacement entre les éléments */
    }

    header nav ul li {
        font-size: 1rem; /* Réduit la taille du texte */
        margin-bottom: 8px; /* Réduit l'espacement vertical */
    }

    #hero {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    #hero .hero-img img {
        width: 150px; /* Réduit la taille de l'image du héros */
        margin-bottom: 20px;
    }

    #hero .btn-container {
        flex-direction: column;
        gap: 10px;
    }

    footer p {
        font-size: 0.9rem;
    }

    .modal-content {

        max-width: 80%; /* Augmente la largeur */
        max-height: 90%; /* Augmente la hauteur */

    }
}

/* Écran très petit (portrait smartphone) */
@media (max-width: 480px) {
    header {
        padding: 8px; /* Réduit encore le padding */
    }

    header .logo {
        font-size: 1.2rem; /* Réduit la taille du logo */
    }

    header nav ul li {
        font-size: 0.9rem; /* Réduit davantage la taille du texte */
    }

    header nav ul {
        gap: 8px; /* Réduit l'espacement entre les éléments */
    }

    #hero h2 {
        font-size: 1.5rem; /* Taille réduite du titre */
    }

    #hero p {
        font-size: 1rem; /* Taille réduite du paragraphe */
    }
}

#bubble-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Empêche d'interagir avec les bulles */
    overflow: hidden;
}

.bubble {
    position: absolute;
    bottom: -50px; /* Commence hors de l'écran */
    width: 20px;
    height: 20px;
    border-radius: 50%;
    animation: rise 5s linear infinite, fadeOut 5s linear forwards;
    pointer-events: none;
}

@keyframes rise {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-120vh); /* Va au-dessus de l'écran */
    }
}

@keyframes fadeOut {
    0%, 80% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

