  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Average", serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    background-color: #f9f9f9;
}

  

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 4px;
    background-color: #5271ff;
}

/* Navbar styles */
#navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 2rem;
    background-color: #212529;
    color: #fff;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    transition: all 0.3s ease;
}

.nav-links {
    display: flex;
    list-style: none;
    justify-content: center;
}

.nav-links li {
    padding: 0 1.5rem;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #5271ff;
}

.burger {
    display: none;
    cursor: pointer;
    position: absolute;
    right: 2rem;
}

.burger span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px;
    background-color: #fff;
    transition: all 0.3s ease;
}

/*Style de la croix pour fermer le menu burger */
.close-btn {
    display: none;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 2rem;
    font-size: 2rem;
    color: #fff;
    z-index: 101;
}

/* Media Queries pour la responsive navbar */
@media (max-width: 768px) {
    .burger {
        display: block;
    }
    
    #navbar {
        height: 50px;
    }

    .nav-links {
        position: fixed;
        top: -100%;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: #212529;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        transition: top 0.5s ease;
        z-index: 99;
    }
    
    .nav-links.active {
        top: 0;
    }
    
    .nav-links.active ~ .close-btn {
        display: block;
    }
    
    .nav-links.active ~ .burger {
        display: none;
    }

    .nav-links li {
        padding: 1rem 0;
    }
    
    .nav-links a {
        font-size: 1.2rem;
    }
    
    /* Animation du burger menu - cette partie n'est plus nécessaire pour la fermeture mais reste pour l'ouverture */
    .burger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .burger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .burger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .alert{
        width: 80%;
        font-size: 14px;
        height: auto;
        min-height: 40px;
        padding: 5px 10px;
        margin: 0 auto;
    }
}
/* Home section */
.home {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(135deg, #212529 0%, #343a40 100%);
    color: #fff;
    position: relative;
}

.home h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: fadeIn 1.5s ease;
}

.home h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #adb5bd;
    animation: fadeIn 1.8s ease;
}

.home p {
    font-size: 1.2rem;
    max-width: 700px;
    margin-bottom: 2rem;
    animation: fadeIn 2s ease;
}

.home .btn {
    display: inline-block;
    background-color: #5271ff;
    color: #fff;
    padding: 0.8rem 1.8rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    animation: fadeIn 2.5s ease;
}

.home .btn:hover {
    background-color: #3a56d4;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.social-icons {
    display: flex;
    margin-top: 2rem;
}

.social-icons a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin: 0 10px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: #5271ff;
    transform: translateY(-3px);
}

/* About section */
.about {
    background-color: #e7e4e453;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.about-text {
    flex: 1;
    padding-right: 2rem;
    text-align: justify;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: #130e0e;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: #000000;
}

.about-image {
    flex: 1;
    min-width: 300px;
}

.about-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
 

/* Amélioration du conteneur principal */
.container2 {
    display: flex;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Style commun pour les blocs front/back */
.front, .back {
    background: linear-gradient(135deg, #212529 0%, #343a40 100%);
    border-radius: 15px;
    flex: 1;
    padding: 30px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.front:hover, .back:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

/* Style pour les titres des sections */
.front h3, .back h3 {
    color: #fff;
    font-size: 1.6rem;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.front h3:after, .back h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #ff6b6b, #ffa26b);
    transition: width 0.3s ease;
}

.front:hover h3:after, .back:hover h3:after {
    width: 100%;
}

/* Amélioration des compétences - Alignement ordonné */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); /* Crée des colonnes égales */
    gap: 15px;
    justify-content: center;
    width: 100%;
}

.skill-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-5px);
    background: rgba(82, 113, 255, 0.15);
    border-color: #5271ff;
    box-shadow: 0 8px 20px rgba(82, 113, 255, 0.2);
}

.skill-card img {
    width: 30px; /* Largeur fixe pour l'icône */
    height: 30px;
    object-fit: contain; /* Garde les proportions de l'image */
    transition: transform 0.3s ease;
    flex-shrink: 0; /* Empêche l'icône de s'écraser */
}

.skill-card:hover img {
    transform: rotate(10deg) scale(1.1);
}

.skill-card p {
    color: #fff;
    margin: 0;
    font-size: 0.95rem;
    font-weight: 500;
    white-space: nowrap; /* Empêche le texte de passer à la ligne */
    overflow: hidden;
    text-overflow: ellipsis; /* Ajoute "..." si le texte est trop long */
}

/* Ajustement pour les petits écrans */
@media (max-width: 480px) {
    .skills-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    }
}

/* Style existant pour la formation (laisser intact) */
.compt {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
    width: calc(42% - 10px);
    margin: 10px 5%;
    float: left;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
/*
.compt:hover {
    transform: translateY(-8px) scale(1.01);
    background: rgba(245, 151, 151, 0.15);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
}
    */

/* Animation pour les images */
.compt img {
    height: 50px;
    margin-bottom: 10px;
    transition: transform 0.5s ease;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.4));
}

.compt:hover img {
    transform: rotate(10deg) scale(1.2);
}

/* Style pour les textes */
.compt p {
    color: rgb(255, 255, 255);
    margin-top: 10px;
    font-size: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Animation générale pour la section */
#skills {
    position: relative;
    overflow: hidden;
    padding: 50px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.2rem;
    position: relative;
    color: #333;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #ff6b6b, #ffa26b);
}

/* Correction du style Git */
.back .compt:last-child img {
    content: url('images/git.png');  
}

/* Ajout d'un arrière-plan subtil */
#skills:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 80%);
    pointer-events: none;
}

/* Pour les écrans plus petits */
@media (max-width: 768px) {
    .container2 {
        flex-direction: column;
    }
    
    .front, .back {
        width: 100%;
        margin-bottom: 30px;
    }
    
    .compt {
        width: 40%;
    }
}
 
#experience {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 40px 20px;
    background-color: #f9f9f9;
}

.exp-box {
    width: 300px;
    height: 200px;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.exp-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.exp {
    width: 100%;
    height: 100%;
    position: relative;
}

.exp img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.exp-box:hover img {
    transform: scale(1.1);
}

.label {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 24px;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
}

.exp-box:hover .label {
    background-color: rgba(0, 0, 0, 0.7);
}

/* Pour les écrans plus petits */
@media (max-width: 768px) {
    #experience {
        flex-direction: column;
        align-items: center;
    }
}





/*Expérience en Graphisme*/

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px;
    margin: 1rem 5% 3rem;
}

.photo {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 350px;
}

.photo:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.photo video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.photo:hover img {
    transform: scale(1.1);
    filter: brightness(0.50);
}
.photo:hover video {
    transform: scale(1.1);
}

.photo-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    color: white;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.photo:hover .photo-info {
    opacity: 1;
    transform: translateY(0);
}

.photo-info h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    font-weight: 600;
}

.photo-info p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 1.5rem;
    margin-top: 2rem;
}

/* Media Queries */
@media (max-width: 768px) {
    .burger {
        display: block;
    }
    
     
    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .section-title {
        font-size: 2rem;
    }
}


.portfolio-intro {
    text-align: center;
    padding: 3rem 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #7f8c8d;
    margin-top: 1.5rem;
}



/*Contact*/
.contact {
    background-color: #f5f5f5;
    padding: 5rem 0;
    font-family: "Average", serif;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-between;
}

.contact-info, .contact-form {
    flex: 1;
    min-width: 300px;
}

.contact-info h3, .contact-form h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #333;
    position: relative;
    padding-bottom: 10px;
}

.contact-info h3::after, .contact-form h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: #5271ff;
}

.contact-info p {
    margin-bottom: 2rem;
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
}

.contact-details {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.contact-item i {
    width: 40px;
    height: 40px;
    background-color: #5271ff;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.contact-item:hover i {
    transform: scale(1.1);
    background-color: #3a56d4;
}

.contact-item span {
    color: #444;
    font-size: 1.1rem;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 45px;
    height: 45px;
    background-color: #5271ff;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    transform: translateY(-5px);
    background-color: #3a56d4;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
    font-family: "Average", serif;
}


 .form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    color: #333;
    background-color: white;
    font-family: "Average", serif;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #5271ff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(82, 113, 255, 0.2);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.submit-btn {
    font-family: "Average", serif;
    display: inline-block;
    background-color: #5271ff;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-btn:hover {
    background-color: #3a56d4;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 992px) {
    .contact-container {
        flex-direction: column;
    }
    
    .contact-info, .contact-form {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
        margin-bottom: 1.5rem;
    }
    
    .contact-item i {
        margin-right: 0;
    }
    
    .social-links {
        justify-content: center;
    }
}


#footer{
    background-color: #3a56d4;
    color: white;
    padding: 2%;
    background-color: #212529;
}



/*Mise a jour du CSS LA TIMELINE*/

/* Timeline global */
.timeline {
    position: relative;
    margin: 2rem 0;
    padding-left: 50px;
    border-left: 3px solid #5271ff;
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    display: flex;
    align-items: flex-start;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

/* Icône à gauche */
.timeline-icon {
    position: absolute;
    left: -28px;
    top: 0;
    background-color: #5271ff;
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.3rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.timeline-icon:hover {
    transform: scale(1.2);
    background-color: #3a56d4;
}

/* Contenu du timeline */
.timeline-content {
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #212529 0%, #343a40 100%);
    color: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    width: 100%;
}

.timeline-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.timeline-content p {
    font-size: 1rem;
    line-height: 2;
}

.timeline-content a {
    color: #ffd966;
    text-decoration: none;
    font-weight: 500;
}

.timeline-content a:hover {
    text-decoration: underline;
}

/* Animation au scroll */
.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .timeline {
        padding-left: 30px;
    }

    .timeline-icon {
        left: -25px;
    }

    .timeline-content {
        font-size: 0.95rem;
    }
}



/*Le bouton pour télécharger mon rapport de stage*/

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #5271ff;
    color: white;
    border: none;
    border-radius: 15px;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-family: "Average", serif;
}

.download-btn:hover {
    background-color: #3a56d4;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}


/*Le télechargement du CV*/

.cv-download-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #5271ff;
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
}

.cv-download-btn:hover {
    background-color: #3a56d4;
    transform: scale(1.05);
}

 
@media (max-width: 768px) {
    .cv-download-btn {
        bottom: 15px;
        right: 15px;
        padding: 10px 16px;
        font-size: 14px;
    }
}

 @media (max-width: 480px) {
    .cv-download-btn {
        bottom: 10px;
        right: 10px;
        padding: 8px 12px;
        font-size: 13px;
    }
}


.frm {
     background-color: transparent;
     display: flex;
     margin: 7% auto;               
     padding: 3%;                                 
     border: solid 2px #3a56d4;                                                                                   
     border-radius: 8px;                                                                                          
     box-shadow: 2px 2px 9px;                                                                                    
     width: 35%;                                                                                                 
 }         

.frm label{
    display: flex;
    color: black;
}

.frm input{
    height: 50px;
    width: 109%;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    font-size: 1rem;
    transition: all 0.3s ease;
    color: #333;
    background-color: white;
    font-family: "Average", serif;
    padding: 12px 15px;
}

.smbt{
    font-family: "Average", serif;
    display: inline-block;
    background-color: #5271ff;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4%;
}


.alert {
  background-color: red;
  width: fit-content;
  padding: 10px 15px;
  height: auto;
  min-height: 30px;
  border-radius: 7px;
  animation: blink 1s infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 0 auto;
  font-size: 16px;
}

@keyframes blink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}


code {
            font-family: monospace;
            background-color: #100f0f;
            padding: 1%;
            border-radius: 3px;
            color: #d6336c;
        }

.hidden-field{
    display: none;
}