@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Oswald:wght@200..700&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

body {
    margin: 0;
    background-color: #111827;
    position: relative;
    font-family: "Oswald", sans-serif;
    min-height: 100vh;
}
body::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; 
    z-index: -1;
    background-image: radial-gradient(circle, #b9b4b4 1px, transparent 1px);
    background-size: 25px 25px;
    opacity: 0.3;
}
a{
    text-decoration: none;
}
.mettreLigne {
    height: calc(100vh - 80px);
    display: flex;
    flex-direction: column; 
    align-items: center;
    justify-content: center; 
}
.titre-complet {
    display: flex;
    flex-direction: row; 
    align-items: center;
    justify-content: center;
    text-align: center;
}
.titre-complet h1 {
    margin-right: 1rem;
    white-space: nowrap;
}
h1 {
    font-size: 2.5rem;
    color: #a7c7e7;
    font-family: "Oswald", sans-serif;
}

/* Styles pour le texte animé */
.typewriter-effect {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    overflow: hidden;
    justify-content: center; /* Centrer le texte sur mobile */
}
.typewriter-effect > .text {
    color: #a7c7e7;
    font-size: 2.5rem;
    white-space: nowrap;
    overflow: hidden;
    font-family: "Oswald", sans-serif;
    animation: typing-horizontal 2s steps(var(--characters)) 0.4s forwards;
}
@keyframes typing-horizontal {
    from { width: 0; }
    to { width: 100%; }
}

#ensavoirplus{
    border-radius: 28px;
    font-family: Georgia;
    color: white;
    font-size: 20px;
    background: #a7c7e7;
    padding: 10px 20px 10px 20px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    position: relative;
    transition: transform 0.3s ease-in-out;
}
#ensavoirplus:hover{
    transform:scale(1.1);
}

.centrer1 {
    display: flex;
    justify-content: center;
    width: 100%;
}

#bio {
    max-width: 800px;
    padding: 30px;
    margin-top: 50px;
    border: solid #a7c7e7;
    border-radius: 10px;
    background-color: transparent;
    box-shadow: 0 0 15px rgba(167, 199, 231, 0.5); 
    display: flex;
    flex-direction: column;
    color: #e0e0e0; 
}
.acoter {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    margin:0;
    flex-wrap: wrap; /* Ajouté pour le responsive */
}
.acoter img {
    height: 200px; 
    width: 200px;
    border-radius: 50%;
    object-fit: cover; 
}
#bio h2 {
    color: #a7c7e7;
    font-size: 2.3rem;
}
#bio p {
    line-height: 1.6;
}
.entete{
    display:flex;
    flex-direction: row;
    justify-content: space-around;
    align-items:center ;
    border : none;
    height: 80px;
}
.entete a{
    color: #a7c7e7;
    font-size: 1.2rem;
    font-family: "Oswald", sans-serif;
}
#enteteBio, #enteteCompetences, #enteteProjets, #enteteVeille ,#enteteAccueil{
    position: relative;
    transition: transform 0.3s ease-in-out;
}
#enteteBio:hover, #enteteCompetences:hover, #enteteProjets:hover, #enteteVeille:hover ,#enteteAccueil:hover{
    transform:scale(1.1);
}
.bouton-cv {
    display: inline-block; 
    padding: 15px 30px; 
    
    
    background-color: #a7c7e7; 
    color: #111827;
    font-family: 'Montserrat', sans-serif; 
    font-size: 1.1em;
    font-weight: bold; 
    text-decoration: none; 
    text-transform: uppercase; 

    border: none; 
    border-radius: 8px; 
    
    cursor: pointer; 
    transition: background-color 0.3s ease, transform 0.2s ease; 
    
    margin-top: 30px; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); 
}

.bouton-cv:hover {
    background-color: #0056b3; 
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3); 
}

.bouton-cv:active {
    background-color: #004085; 
    transform: translateY(0); 
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); 
}


@media (max-width: 768px) {
    .bouton-cv {
        padding: 12px 25px;
        font-size: 1em; 
        margin-top: 20px; 
    }
}
/* Section Compétences - Carrousel */
#competences {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    margin-top: 15%;
}
#competences h2{
    color: #a7c7e7;
    margin-bottom: 5%;
    font-size: 2.3rem;
}
#trier-competences {
    margin-bottom: 20px;
}
.boutontri{
    border-radius: 28px;
    font-family: Georgia;
    color: white;
    font-size: 20px;
    background: #a7c7e7;
    padding: 10px 20px 10px 20px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    position: relative;
    transition: transform 0.3s ease-in-out;
}

/* Conteneur principal du carrousel */
#competences-carrousel-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin-top: 50px;
}

/* Le conteneur des cartes qui défilent */
.competences-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: hidden;
    scroll-behavior: smooth;
    gap: 30px;
    padding: 50px 0;
    width: 100%;
}

/* Styles pour les flèches de navigation */
.nav-button {
    background: transparent;
    border: none;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    color: #ffffff;
    padding: 10px;
    transition: transform 0.2s ease-in-out;
}
.nav-button svg {
    width: 40px;
    height: 40px;
}
.nav-button:hover {
    transform: translateY(-50%) scale(1.2);
}
.prev-button {
    left: 0;
}
.next-button {
    right: 0;
}
/* --- STYLE DE LA FRISE HORIZONTALE --- */

#parcours {
    padding: 50px 0;
    width: 100%;
    overflow-x: hidden; /* Évite les dépassements */
}

#parcours h2 {
    text-align: center;
    color: #a7c7e7;
    font-size: 2.3rem;
    margin-bottom: 60px;
    font-family: "Oswald", sans-serif;
}

/* Le conteneur principal flexible */
.frise-chronologique {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    padding: 20px;
}

/* La ligne horizontale bleue derrière */
.frise-chronologique::before {
    content: '';
    position: absolute;
    top: 55px; /* Ajuste la hauteur de la ligne */
    left: 40px;
    right: 40px;
    height: 4px;
    background-color: #a7c7e7;
    z-index: 0;
    box-shadow: 0 0 10px rgba(167, 199, 231, 0.5);
}

/* Chaque étape (colonne) */
.etape {
    position: relative;
    width: 23%; /* 4 étapes donc environ 25% chacune */
    text-align: center;
    z-index: 1; /* Pour être au-dessus de la ligne */
}

/* La date en haut */
.date {
    font-family: "Oswald", sans-serif;
    color: #a7c7e7;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 15px;
}

/* Le rond central */
.point {
    width: 20px;
    height: 20px;
    background-color: #111827;
    border: 4px solid #a7c7e7;
    border-radius: 50%;
    margin: 0 auto 20px auto; /* Centré horizontalement */
    transition: background-color 0.3s;
}

/* Effet simple au survol du rond */
.etape:hover .point {
    background-color: #a7c7e7;
}

/* La boite de contenu en bas */
.contenu {
    background-color: rgba(17, 24, 39, 0.8);
    border: 1px solid #a7c7e7;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    color: #e0e0e0;
}

.contenu h3 {
    margin: 0 0 10px 0;
    color: white;
    font-size: 1.1rem;
    font-family: "Oswald", sans-serif;
}

.contenu p {
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.4;
    font-family: "Roboto", sans-serif;
}

/* --- VERSION MOBILE (Repasse en vertical pour être lisible) --- */
@media screen and (max-width: 768px) {
    .frise-chronologique {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 30px;
    }

    /* La ligne devient verticale sur mobile */
    .frise-chronologique::before {
        width: 4px;
        height: 100%;
        left: 29px; /* Position de la ligne verticale */
        top: 0;
        right: auto;
    }

    .etape {
        width: 100%;
        margin-bottom: 30px;
        text-align: left;
        display: flex;
        flex-direction: column;
        padding-left: 30px; /* Espace pour le point */
        position: relative;
    }

    /* Repositionnement du point sur mobile */
    .point {
        position: absolute;
        left: -11px;
        top: 45px; /* Aligné avec le contenu */
        margin: 0;
    }

    .date {
        margin-bottom: 5px;
        text-align: left;
    }
}
/* Styles des cartes */
.competence-card {
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
    border: solid #a7c7e7;
    background-color: transparent;
    box-shadow: 0 0 15px rgba(167, 199, 231, 0.5); 
    width: 200px;
    height: 200px;
}
.competence-card:hover {
    transform: translateY(-5px);
}
.card-content {
    position: relative;
    z-index: 2;
    padding: 20px;
    background-color: transparent;
    width: 100%;
}
.card-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: #a7c7e7;
    transition: height 1s ease-in-out;
    z-index: 1;
}
.card-content img {
    height: 60px;
    width: 60px;
    margin-bottom: 10px;
}
.card-content p {
    color: #111827;
    text-shadow:1px 1px white;
}
.card-content h3{
    color: white;
}


/*PROJETTTSS*/


#projets {
    display: flex;
    justify-content: center;
    width:100%;
    
    
}
#projets-h2{
    color:#a7c7e7;
    text-align: center;
    margin-top: 10%;
    margin-bottom: 5%;
    font-size:2.3rem;
}


.imgProjet{
    height:300px;
    width:100%;
    border-radius: 10px 10px 0 0;
    box-shadow: 0 0 15px rgba(167, 199, 231, 0.5); 
    
}
.basDiv{
    background-color: #111827;
    width: 100%;
    height:200px;
    text-align: center;
    box-shadow: 0 -10px 10px -7px white;
}
.basDiv h3 {
    margin-top: 0%;
    margin-bottom: 0%;
    font-size: 1.5rem;
    color: #a7c7e7;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 1); 
    cursor:default;
}
.basDiv p {
    font-size: 1.1rem;
    cursor:default;
    padding-top: 0%;
    padding-right: 3%;
    padding-left: 3%;
}
.basDiv p a {
    color: #a7c7e7;
    cursor:pointer;
}
.projets{
    width: 450px;
    height: auto; 
    margin-top: 10%;
    border: solid #a7c7e7;
    border-radius: 14px;
    background-color: transparent;
    box-shadow: 0 0 15px rgba(167, 199, 231, 0.5); 
    display: flex;
    flex-direction: column;
    color: #e0e0e0 ;
    position: relative;
    transition: transform 0.3s ease;
}
.projets-colonne{
    display: flex;
    flex-direction: column;
    
}

.projets-ligne{
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    flex-wrap: wrap; /* Ajouté pour le responsive */
}
.projets {
    transition: transform 0.3s ease; /* animation douce */
    margin: 30px;
}

.projets:hover {
    transform: scale(1.03); 
    z-index: 2;
}

.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}


.scroll-animate.apparait {
    opacity: 1;
    transform: translateY(0);
}



/* Styles globaux pour le conteneur principal */
.contactGlobale {
    color: #a7c7e7;
    margin-top: 10%;
    margin-bottom: 5%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 10%;
}

.contactGlobale h2 {
    font-size: 3rem;
}

/* Conteneur des champs (pour les aligner verticalement) */
.champ-formulaire {
    display: flex;
    flex-direction: column;
    padding-bottom: 10px;
}

/* Conteneur pour "Email" et "Tel" (pour les aligner horizontalement) */
.group-champs {
    display: flex;
    flex-direction: row;
    padding-left: 10px; 
    gap: 10px; 
}


.input-texte {
    height: 30px;
    border-radius: 8px;
    padding: 5px; 
    border: 1px solid #a7c7e7;
    background-color: transparent; 
    color: #a7c7e7;
}


.input-texte.textarea {
    height: 100px; 
    resize: vertical; /* Permet de redimensionner le textarea en hauteur */
}


.bouton-envoyer {
    height: 40px;
    padding: 10px 20px;
    background-color: #a7c7e7;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 20px; /* Pour un peu d'espace avec le champ du dessus */
}
.btn-container {
    display: flex;
    justify-content: center; /* centre le bouton horizontalement */
 }

#linkedin{
    width:100px;
    height:100px;
    margin-left: 40%;
}

/* 📱 Styles pour les écrans de moins de 1024px */
@media (max-width: 1024px) {
    .acoter {
        flex-direction: column;
        text-align: center;
    }
    .acoter img {
        margin-bottom: 20px;
    }
    
    .projets-ligne {
        flex-direction: column;
        align-items: center;
    }
    
    .projets {
        width: 90%;
        margin: 20px 0;
    }
    
    .contactGlobale {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }
    
    .contactGlobale h2 {
        text-align: center;
    }
    
    .group-champs {
        flex-direction: column;
        width: 100%;
        padding-left: 0;
        gap: 0;
    }
    
    .group-champs > div {
        width: 100%;
        margin-bottom: 10px;
    }
    
    #linkedin {
        margin-left: 0;
    }
     .titre-complet {
        flex-wrap: wrap; 
    }

    .acoter {
        flex-direction: column;
        text-align: center;
    }
}


/* 📱 Très petits écrans (moins de 480px) */
@media (max-width: 480px) {
    h1, 
    .titre-complet h1,
    .typewriter-effect > .text {
        font-size: 1.6rem; /* Réduction des gros titres */
    }

    #bio h2,
    #competences h2,
    #projets-h2,
    .contactGlobale h2 {
        font-size: 1.5rem; /* Sous-titres plus petits */
    }

    .projets {
        width: 100%; /* Prend toute la largeur */
        margin: 10px 0;
    }

    .imgProjet {
        height: 150px; /* Encore plus compacte */
    }

    .basDiv h3 {
        font-size: 1rem;
    }

    .basDiv p {
        font-size: 0.9rem;
        padding: 5px;
    }

    .entete {
        flex-direction: column; /* Menu en colonne */
        height: auto;
        gap: 5px;
    }

    .entete a {
        font-size: 1rem; /* Liens plus petits */
    }

    .contactGlobale {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    #linkedin {
        width: 70px;
        height: 70px;
        margin-left: 0;
    }
}
