/*
SOMMAIRE:
1- Général
2- Header/Navbar
3- Animation
4- Acceuil
5- A propos
6- Parcours
7- Compétences
8- Veille
9- Projets
10- Contact
11- footer
12- Scrollbar
13- Responsive
*/

/*1- Général*/

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

body {
    display: flex;
    flex-direction: column;
}

header {
    background-image: url(../img/wave_rotated_rotated.svg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    position: relative; 
    z-index: 1000; 
    min-height: 250px; 
    padding: 20px 0 200px 0; 
}

.font_Poppins_bold{
    font-weight: bold;
    font-family: Poppins;
}

.font_Poppins{
    font-family: Poppins;
}
        
/* 2- Header/Navbar */   
.navbar2 {
    background-color: #2c3e50; 
    padding: 1rem 2rem;
    max-width: 1800px;
    border-radius: 25px;
    height: 140px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px auto;
    position: relative;
    flex-wrap: wrap;
    gap: 1rem;
}

.navbar2 h1 {
    font: bold 1.5rem Poppins, sans-serif;
    color: white;
    margin: 0;
    order: 1;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 1rem;
    margin: 0;
    padding: 0;
    transition: 0.3s ease;
    order: 3;
    flex: 1 1 100%;
    justify-content: flex-end;
}

.navbar2 a {
    text-decoration: none;
    color: white;
    font: 500 1rem Poppins, sans-serif;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    display: inline-block;
}

.navbar2 a:hover {
    background-color: #ff6f3c;
    transform: translateY(-2px);
}

.navbar2 a:active {
    transform: translateY(0);
}

/* Hamburger menu */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    order: 2;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background: white;
    margin: 5px 0;
    transition: 0.3s;
}


/* Animation de fermeture du menu */
.nav-menu {
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.nav-menu.active {
    transform: translateX(0);
    opacity: 1;
}

@media (max-width: 768px) {
    .nav-menu {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Style des liens du menu */
.nav-link {
    transition: all 0.3s ease;
}

.nav-link:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/*  3- Animation */ 

.slide-in-blurred-left {
    -webkit-animation: slide-in-blurred-left 2s cubic-bezier(0.230, 1.000, 0.320, 1.000) both;
    animation: slide-in-blurred-left 2s cubic-bezier(0.230, 1.000, 0.320, 1.000) both;
        
}

.box-animation-1{
    animation: animation-1 5s ease-out infinite;
}

@keyframes animation-1 {
    50% {
        transform: translate(0, 20px);
    }
}

@-webkit-keyframes slide-in-blurred-left {
    0% {
        -webkit-transform: translateX(-1000px) scaleX(2.5) scaleY(0.2);
                transform: translateX(-1000px) scaleX(2.5) scaleY(0.2);
        -webkit-transform-origin: 100% 50%;
                transform-origin: 100% 50%;
        -webkit-filter: blur(40px);
                filter: blur(40px);
        opacity: 0;
    }
    100% {
        -webkit-transform: translateX(0) scaleY(1) scaleX(1);
                transform: translateX(0) scaleY(1) scaleX(1);
        -webkit-transform-origin: 50% 50%;
                transform-origin: 50% 50%;
        -webkit-filter: blur(0);
                filter: blur(0);
        opacity: 1;
    }
    }
    @keyframes slide-in-blurred-left {
    0% {
        -webkit-transform: translateX(-1000px) scaleX(2.5) scaleY(0.2);
                transform: translateX(-1000px) scaleX(2.5) scaleY(0.2);
        -webkit-transform-origin: 100% 50%;
                transform-origin: 100% 50%;
        -webkit-filter: blur(40px);
                filter: blur(40px);
        opacity: 0;
    }
    100% {
        -webkit-transform: translateX(0) scaleY(1) scaleX(1);
                transform: translateX(0) scaleY(1) scaleX(1);
        -webkit-transform-origin: 50% 50%;
                transform-origin: 50% 50%;
        -webkit-filter: blur(0);
                filter: blur(0);
        opacity: 1;
    }

    
}

/* 4- Acceuil */

.Home-main {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 400px; /* Prend toute la hauteur de la vue */
    text-align: center;
    margin: 40px 0;
}

.Home-main-txt {
    margin-right: 250px; /* Espace entre le texte et l'image */
}

.home-p-text {
    text-align: center;
}

.home-img {
    width: 200px;
    height: auto;
}

.CV-btn {
    margin-top: 10px;
    padding: 10px 20px;
    font-size: 16px;
    color: white;
    background-color: #ffa726;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.CV-btn:hover {
    background-color: #e67e22;
}

/* 5- A Propos */

.apropos-section {
    background-color: #ffffff;
    padding: 80px 20px;
    margin: 40px 0;
}

.apropos-container {
    max-width: 1200px;
    margin: 0 auto;
}

.apropos-section h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 50px;
}

.apropos-content {
    display: flex;
    align-items: center;
    gap: 40px;
    background-color: #f8f9fa;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.apropos-img {
    flex: 0 0 40%;
    max-width: 400px;
}

.apropos-img img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.apropos-text {
    flex: 1;
    font-family: 'Poppins', sans-serif;
}

.apropos-text h2 {
    font-size: 1.8rem;
    color: #ff6f3c;
    margin-bottom: 25px;
}

.apropos-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 20px;
}


@media (max-width: 992px) {
    .apropos-content {
        flex-direction: column;
        text-align: center;
    }

    .apropos-img {
        max-width: 300px;
        margin: 0 auto;
    }

    .apropos-text {
        text-align: left;
    }

    .apropos-section h1 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .apropos-content {
        padding: 25px;
    }

    .apropos-text h2 {
        font-size: 1.5rem;
    }
}

/* 6- Parcours */

.parcours-section {
    background-color: #f8f9fa;
    padding: 60px 20px;
    margin: 40px 0;
}
    
.parcours-section h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 50px;
}

.parcours-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.parcours-column {
    background-color: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.parcours-column h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    color: #ff6f3c;
    margin-bottom: 30px;
    text-align: center;
}

.parcours-item {
    background-color: #f4f4f4;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    transition: transform 0.3s ease;
}

.parcours-item:hover {
    transform: translateY(-5px);
}

.parcours-item h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 10px;
}

.etablissement {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 8px;
}

.details {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    color: #333;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .parcours-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .parcours-section h1 {
        font-size: 2rem;
    }
}

.parcours-item a {
    color: #ff6f3c;
    text-decoration: none;
}

.parcours-item a:hover {
    text-decoration: underline;
}

/* 8- Veille */

.veille-section {
    background-color: #f8f9fa;
    padding: 60px 20px;
    margin: 40px 0;
    }

.veille-section h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 40px;
}

.veille-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    color: #ff6f3c;
    margin-bottom: 30px;
    text-align: center;
}

.veille-articles {
    max-width: 800px;
    margin: 0 auto;
}

.veille-item {
    background-color: white;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.veille-item:hover {
    transform: translateY(-5px);
}

.article-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 600;
}

.article-link {
    font-family: 'Poppins', sans-serif;
    color: #3498db;
    text-decoration: none;
    display: inline-block;
    font-weight: 500;
    transition: color 0.3s ease;
}

.article-link:hover {
    color: #2980b9;
    text-decoration: none;
}

.article-link::after {
    content: "→";
    margin-left: 8px;
    transition: margin-left 0.3s ease;
}

.article-link:hover::after {
    margin-left: 12px;
}

/* 7- Compétences */

.competences-section {
    background-color: #ffffff;
    padding: 40px 20px;
    text-align: center;
    margin-top: 40px;
}

.competences-section h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 20px;
}

.competences-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.competences-buttons a {
    text-decoration: none;
}

.competence-btn {
    margin-top: 10px;
    padding: 10px 20px;
    font-size: 16px;
    color: white;
    background-color: #ffa726;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
} 

.competences-buttons .competence-btn:hover {
    background-color: #1a252f;
    transform: translateY(-2px);
}

.competences-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
    max-width: 1000px;
    margin: 0 auto;
    justify-items: center;
}

.competence-item {
    background-color: #f4f4f4;
    padding: 20px;
    border-radius: 10px;
    text-align: left;
    width: 100%;
    max-width: 300px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.competence-item:hover {
    transform: scale(1.05); /* Agrandit légèrement la case */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Ajoute une ombre */
}

.competence-item h3 {
    font-family: Poppins, sans-serif;
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 10px;
}

.competence-item p {
    font-family: Poppins, sans-serif;
    font-size: 16px;
    color: #333;
}

/* 8- Projets */

.projets-section {
    background-color: #ffffff;
    padding: 80px 20px;
}

.projets-section h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 50px;
}

.projet-bloc {
    max-width: 1200px;
    margin: 0 auto 60px;
}

.projet-bloc h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    color: #ff6f3c;
    margin-bottom: 15px;
}

.projet-bloc h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 40px;
    line-height: 1.4;
}

.projet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.projet-item {
    background-color: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.projet-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.projet-item h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 15px;
    min-height: 60px;
}

.tp-btn {
    display: inline-flex;
    align-items: center;
    font-family: 'Poppins', sans-serif;
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tp-btn:hover {
    color: #2980b9;
    transform: translateX(5px);
}

.tp-btn::after {
    content: '→';
    margin-left: 8px;
    transition: margin 0.3s ease;
}

.tp-btn:hover::after {
    margin-left: 12px;
}

@media (max-width: 768px) {
    .projets-section h1 {
        font-size: 2rem;
    }

    .projet-bloc h2 {
        font-size: 1.6rem;
    }
}

/* 10- Contact */

.contact-section {
    background-color: #f4f4f4;
    padding: 40px 20px;
    text-align: center;
    margin-top: 40px;
}

.contact-section h2 {
    font-family: Poppins, sans-serif;
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 20px;
    text-decoration: underline #ff6f3c;
    text-decoration-thickness: 2px;
}

.contact-section p {
    font-family: Poppins, sans-serif;
    font-size: 16px;
    color: #333;
    margin: 10px 0;
}

.contact-section a {
    color: #ff6f3c;
    text-decoration: none;
}

.contact-section a:hover {
    text-decoration: underline;
}

/* 11- footer */

.footer {
    position: relative;
    bottom: 0;
    width: 100%;
    padding: 40px 0px 0px 0px;
    background-color: #2c3e50;
    color: white;
    text-align: center;
    font-family: Poppins;
}

.footer .social {
    text-align: center;
    padding-bottom: 25px;
    color: #1c2833;
}

.footer .social {
    text-align: center;
    padding-bottom: 25px;
}

.footer .social a {
    color: white;
    margin: 0 10px;
    font-size: 30px;
    text-decoration: none;
    background-color: #1c2833;
    padding: 5px 10px;
    border-radius: 25px;
}

.footer .social a.github {
    padding: 5px 5px 5px 10px;
}

.footer .social a.linkedin {
    padding: 5px 5px 5px 10px;
}

.footer .social a:hover {
    color: #ffa726;
    background-color: white;
    transition: background-color 0.3s ease;
}

.footer .list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.footer .list li {
    display: inline;
    margin: 0 15px;
}

.footer .list a {
    color: white;
    text-decoration: none;
    font-size: 18px;
}

.footer .list a:hover{
    color: #ffa726;
}

.footer .copyright {
    font-family: Poppins;
    margin-top: 30px;
    text-align: center;
    font-size: 16px;
    color: white;
    background-color: #1c2833;
    padding: 10px 0px;
}

/* 12- scrollbar */

::-webkit-scrollbar {
    width: 15px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 111, 60, 0.8);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ff6f3c;
}

/* 13- Responsive */

/* Grands écrans - Au-dessus de 1800px */
@media (min-width: 1800px) {
    .navbar2 {
        width: 100%; 
        margin: 20px auto;
    }
}

/* Tablettes - Entre 768px et 1800px */
@media (max-width: 1800px) and (min-width: 768px) {
    .navbar2 {
        width: 90%; 
        margin: 10px auto;
    }

    .navbar2 h1 {
        font-size: x-large;
    }

    .navbar2 ul {
        justify-content: space-between; 
    }

    .navbar2 a {
        padding: 15px;
    }

    header {
        height: 250px; 
    }

    .Home-main-txt {
        margin-right: 150px;
    }
    
}

@media (max-width: 950px) and (min-width: 768px) {
    .navbar2 {
        flex-direction: column; 
        width: 90%; 
        height: auto;
        padding: 10px;
        margin: 10px auto;
    }

    .navbar2 h1 {
        font-size: large;
        margin: 10px 0;
    }

    .navbar2 ul {
        flex-direction: column;
        align-items: center;
        margin: 0;
        padding: 0;
    }

    .navbar2 a {
        padding: 10px;
        font-size: medium;
    }

    header {
        height: 250px; 
    }

    .home-img img {
        width: 100%;
    }

}

/* Mobiles - En dessous de 768px */
@media (max-width: 768px) {
    .navbar2 {
        flex-direction: column;
        width: 90%;
        height: auto;
        padding: 10px;
        margin: 10px auto;
    }

    .navbar2 h1 {
        font-size: large;
        margin: 10px 0;
    }

    .navbar2 ul {
        flex-direction: column;
        align-items: center;
        margin: 0;
        padding: 0;
    }

    .navbar2 a {
        padding: 10px;
        font-size: medium;
    }

    header {
        height: 250px;
    }

    .home-img img {
        width: 100%;
    }

    .home-img {
        display: none !important;
    }

    .slide-in-blurred-left {
        animation: none !important;
        opacity: 1 !important;
    }

    .Home-main-txt{
        margin: 0;
    }
}

/* Responsive  du menu */

@media (min-width: 1800px) {
    .navbar2 {
        width: 85%; 
        padding: 1rem 4rem;
    }
    
    .nav-menu {
        gap: 2.5rem;
    }
}

@media (max-width: 992px) {
    .navbar2 {
        width: 95%;
        padding: 1rem;
    }
    
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #1a252f;
        border-radius: 15px;
        padding: 1rem;
        margin-top: 1rem;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .hamburger {
        display: block;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .navbar2 a {
        width: 100%;
        text-align: center;
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .navbar2 h1 {
        font-size: 1.2rem;
    }
    
    .navbar2 a {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    header {
        height: auto !important;
        overflow: visible !important; 
        padding-bottom: 100px; 
    }

    .navbar2 {
        position: relative !important;
        margin-top: 20px;
        z-index: 1001;
    }

    .Home-main {
        margin-top: -50px;
        position: relative;
        z-index: 999;
    }
}

@media (max-width: 768px) {
    .slide-in-blurred-left {
        animation: none !important;
        transform: none !important;
    }
}