:root {
    --primary-color: #2d2d2d;;
    --secondary-color: #686868;
    --text-color: white;
}

/* Base Styles */
body {
    margin: 0;
    padding: 0;
    background: linear-gradient(45deg, #2c3e50, #797979, #434343);
    background-size: 200% 200%;
    animation: gradientAnimation 10s ease infinite;
    min-height: 100vh;
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
}

html {
    scroll-behavior: smooth;
}

@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.btn-fancy {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-block;
    margin-top: 1rem;
}

.btn-fancy:hover {
    background: linear-gradient(45deg, #fe0303, #ff7e5f);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(254, 3, 3, 0.3);
    border-color: transparent;
}


/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 999;
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px);
    box-shadow: none !important;
    border-bottom: none !important;
}


.navbar .nav-link {
    color: var(--text-color) !important;
    font-weight: bold;
    font-size: 1.2rem;
    text-transform: uppercase;
    transition: color 0.3s ease;
    padding: 5px 15px;
    position: relative;
}

.nav-link.active {
    color: var(--primary-color) !important;
    border-bottom: 2px solid var(--primary-color);
}

.navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.navbar .nav-link:hover::after {
    width: 100%;
}

.navbar-collapse.show {
    background-color: rgba(0, 0, 0, 0.85);
    padding: 1rem;
    border-radius: 10px;
}


/* Welcome Section */
.welcome-section {
    height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-color);
    text-align: center;
    margin: 0;
    padding: 0;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--primary-color));
    background-size: 200% 200%;
    animation: gradientAnimation 10s ease infinite;
}

.welcome-section h1 {
    font-size: 4rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}

.welcome-section h2 {
    font-size: 2.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-title.text-center.mb-5 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 2.5rem;
    color: white;
    width: 100%;
    text-align: center;
    margin-bottom: 3rem !important;
    position: relative;
    display: block;
    padding-bottom: 15px;
}

.section-title.text-center.mb-5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--secondary-color);
}

/* Sections Layout */
#accueil, #a-propos {
    height: 100vh;
    scroll-snap-align: start;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
}

#competences, #projets, #contact, #veille, #certifications {
    padding: 80px 20px;
    scroll-snap-align: none;
}

/* About Section */
.about-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 50px;
}

.about-section .card {
    width: 100%;
    max-width: 100%;
    height: 100%;
    margin-bottom: 20px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.about-section .card:hover {
    transform: scale(1.05);
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.15);
}

.about-section .card-body {
    padding: 1.5rem;
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--primary-color));
}

.about-section .card-body .card-title {
    font-size: 1.5rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.about-section .card-body .card-text {
    font-size: 1rem;
    color: var(--text-color);
    flex-grow: 1;
    margin-bottom: 1rem;
}

.about-section .card-body ul {
    text-align: left;
    margin-bottom: 1rem;
}

.about-section .card-body ul li {
    font-size: 1rem;
    color: var(--text-color);
}
.btn-cv {
    background-color: #ffffff;
    color: #000000;
    border: 2px solid #000000;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-cv:hover {
    background-color: #000000;
    color: #ffffff;
}


/* Timeline Style */
.timeline-container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    background: #fff; /* Fond blanc */
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    overflow: hidden;
}

.timeline-nav {
    width: 80px;
    background: #2c3e50; /* Bleu foncé */
    padding-top: 30px;
}

.timeline-nav a {
    display: block;
    text-align: center;
    color: #ecf0f1; /* Blanc cassé */
    padding: 20px 0;
    font-size: 1.5rem;
    transition: all 0.3s;
}

.timeline-nav a.active,
.timeline-nav a:hover {
    color: #3498db; /* Bleu clair */
    background: rgba(255,255,255,0.1);
}

.timeline-content {
    flex: 1;
    padding: 30px;
}

.timeline {
    margin: 0;
    padding: 0;
    list-style: none;
}

.timeline-item {
    position: relative;
    padding-bottom: 40px;
    padding-left: 30px;
    border-left: 2px dashed #3498db; /* Bleu clair */
}

.timeline-item:last-child {
    border-left: 2px dashed transparent;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -11px;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #3498db; /* Bleu clair */
    border: 4px solid #fff; /* Bordure blanche */
    box-shadow: 0 0 0 2px #3498db;
}

.timeline-item:hover::before {
    background: #e74c3c; /* Rouge au survol */
}

.timestamp {
    color: #2c3e50; /* Bleu foncé */
    font-weight: bold;
    margin-bottom: 10px;
    display: inline-block;
    background: #ecf0f1; /* Fond gris très clair */
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.item-title {
    color: #2c3e50; /* Bleu foncé */
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.institution {
    color: #7f8c8d; /* Gris moyen */
    font-style: italic;
    margin: 5px 0 10px;
    display: block;
}

.timeline-item p {
    color: #34495e; /* Gris foncé */
    line-height: 1.5;
}
/* Masquer les timelines par défaut */
.timeline {
    display: none;
}

.timeline.active {
    display: block;
}

.btn-fancy {
    display: inline-block;
    padding: 10px 20px;
    background-color: #1e90ff; /* Bleu vif */
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
}

.btn-fancy:hover {
    background-color: #0d6efd; /* Bleu un peu plus foncé */
}


/* Responsive */
@media (max-width: 768px) {
    .timeline-container {
        flex-direction: column;
    }
    
    .timeline-nav {
        width: 100%;
        display: flex;
        padding: 10px 0;
    }
    
    .timeline-nav a {
        padding: 15px 0;
        flex: 1;
    }
    
    .timeline-item {
        padding-left: 20px;
    }
}

/* Compétences Section - Carrousel Agrandi */
.competences-carousel-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

#competencesCarousel {
    padding: 0 80px;
}

.carousel-inner {
    padding: 40px 0;
}

.competences-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.competence-card {
    background: rgba(255, 255, 255, 0.15);
    padding: 30px;
    border-radius: 12px;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.competence-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.competence-icon img.competence-image {
    width: 100px !important;
    height: 100px !important;
    object-fit: contain !important;
    margin-bottom: 20px;
    transition: transform 0.3s ease !important;
}

.competence-icon img.competence-image:hover {
    transform: scale(1.2) !important;
}

.competence-info h4 {
    font-size: 1.5rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.progress {
    height: 15px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    width: 100%;
    margin-top: 10px;
}

.progress-bar {
    background: var(--primary-color);
    font-size: 0.9rem;
    line-height: 15px;
}

/* Contrôles du carrousel agrandis */
.carousel-control-prev, 
.carousel-control-next {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
    transition: all 0.3s ease;
}

.carousel-control-prev {
    left: 10px;
}

.carousel-control-next {
    right: 10px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 2rem;
    height: 2rem;
}

/* Modale */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding: 20px;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0,0,0,0.8);
    overflow: auto;
}

.modal-content {
    margin: auto;
    background: #fff;
    padding: 0;
    border-radius: 10px;
    max-width: 90%;
    width: 800px;
    height: 90vh;
    position: relative;
    display: flex;
    flex-direction: column;
}

.modal-content iframe {
    flex: 1;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 0 0 10px 10px;
}

.close {
    color: #444;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 20px;
    cursor: pointer;
    z-index: 10;
}

/* Responsive */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        height: 85vh;
    }
}


/* Indicateurs */
.carousel-indicators {
    bottom: -40px;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    opacity: 0.5;
    margin: 0 8px;
}

.carousel-indicators button.active {
    opacity: 1;
    background-color: var(--primary-color);
    transform: scale(1.2);
}

/* Projets Section */
.projets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.projet-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.projet-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.media-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.projet-card img,
.projet-card video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.projet-card video {
    opacity: 0;
    z-index: 1;
}

.projet-card:hover video {
    opacity: 1;
}

.projet-info {
    padding: 20px;
    position: relative;
    z-index: 2;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
}

.projet-info h3 {
    font-size: 1.5rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.projet-info p {
    font-size: 1rem;
    margin-bottom: 15px;
    color: #fff;
}

.projet-info .btn,
.projet-info .btn-fancy {
    background: var(--primary-color);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    color: white;
    text-decoration: none;
    display: inline-block;
}

.projet-info .btn:hover,
.projet-info .btn-fancy:hover {
    background: var(--secondary-color);
}
.toggle-description {
    display: inline-block;
    color: #ff7e5f;
    cursor: pointer;
    font-weight: bold;
    margin-bottom: 10px;
    text-decoration: underline;
}

.toggle-description:hover {
    color: #EAEAEA;
}

.description-content {
    display: none;
    transition: max-height 0.3s ease;
    overflow: hidden;
    margin-bottom: 15px;
    color: #f0f0f0;
}

/* Section Veille Technologique */
#veille {
    background: rgba(0, 0, 0, 0.2);
    padding: 5rem 0;
    border-radius: 15px;
    margin: 3rem auto;
    max-width: 1400px;
}

#veille .section-header {
    margin-bottom: 3rem;
}

#veille .section-title {
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

#veille .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}

.veille-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.veille-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.veille-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

.veille-card h3 {
    color: #feb47b;
    font-size: 1.5rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    border-bottom: 2px solid #ff7e5f;
    padding-bottom: 0.5rem;
}

.veille-card .veille-date {
    color: #ff7e5f;
    font-weight: bold;
    margin-bottom: 1rem;
    display: block;
}

.veille-card .veille-source {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
}

.veille-card .veille-source i {
    color: #feb47b;
    font-size: 0.8rem;
}

.veille-card p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.veille-card .btn-veille {
    background: linear-gradient(45deg, #ff7e5f, #feb47b);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-block;
}

.veille-card .btn-veille:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 126, 95, 0.4);
}

/* Section Certifications */
#certifications {
    background: rgba(255, 255, 255, 0.05);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

#certifications::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(254, 3, 3, 0.1) 0%, transparent 70%);
    z-index: -1;
}

#certifications .section-title {
    color: white;
    font-size: 2.5rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

#certifications .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
}

/* Grille responsive */
.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

/* Carte de certification */
.certification-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

.certification-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

/* Titre de la certification */
.certification-card h3 {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

/* Infos meta (organisme + date) */
.card-meta {
    color: rgba(255, 255, 255, 0.8);
    margin: 1rem 0;
}

.card-meta p {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

.card-meta i {
    color: #ff7e5f;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.certification-card:hover .card-meta i {
    color: var(--primary-color);
    transform: scale(1.1);
}

/* Bouton Voir le certificat */
.certification-card .btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-block;
    margin-top: 1rem;
}

.certification-card .btn:hover {
    background: linear-gradient(45deg, #fe0303, #ff7e5f);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(254, 3, 3, 0.3);
    border-color: transparent;
}
/* Modale */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 20px;
}

/* Contenu de la modale */
.modal-content {
    margin: auto;
    max-width: 900px;
    width: 90%;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    height: 80vh;
    display: flex;
    flex-direction: column;
}

/* Iframe pour afficher le PDF */
.modal-content iframe {
    flex: 1;
    width: 100%;
    border: none;
}

/* Bouton fermer */
.close {
    position: absolute;
    top: 10px;
    right: 15px;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
}

.close:hover,
.close:focus {
    color: #ccc;
}

/* Responsive */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        height: 75vh;
    }
}

@media (max-width: 480px) {
    .modal-content {
        width: 100%;
        height: 70vh;
    }
    .close {
        font-size: 30px;
        top: 8px;
        right: 10px;
    }
}



/* Section Contact */
#contact {
    padding: 5rem 0;
}

#contact h2 {
    font-size: 2.5rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
}

#contact h3 {
    font-size: 1.5rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.contact-info {
    list-style: none;
    padding: 0;
}

.contact-info li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.contact-info i {
    font-size: 1.2rem;
    width: 1.5rem;
    color: var(--text-color);
}

.contact-info a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--primary-color);
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--primary-color));
    color: var(--text-color);
    margin-top: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

footer p {
    margin: 5px 0;
    font-size: 1rem;
}

.social-icons {
    margin-top: 10px;
}

.social-icons a {
    margin: 0 10px;
    transition: transform 0.3s ease;
}

.social-icons a:hover {
    transform: scale(1.2);
}

.social-icons i {
    font-size: 1.5rem;
    color: white;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .competences-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .competences-carousel-container {
        padding: 20px;
    }
    
    #competencesCarousel {
        padding: 0 60px;
    }
    
    .competence-card {
        padding: 25px;
    }
}

@media (max-width: 768px) {
    .welcome-section h1 {
        font-size: 2.5rem;
        letter-spacing: 1.5px;
    }

    .welcome-section h2 {
        font-size: 1.8rem;
    }

    .navbar .nav-link {
        font-size: 1rem;
    }

    .about-section, .projets-grid, .veille-container, .certifications-grid {
        grid-template-columns: 1fr;
    }

    .projet-card img {
        height: 150px;
    }

    .section-title, #contact h2 {
        font-size: 2rem;
    }

    .card-title,
    .projet-info h3,
    .veille-card h3,
    .certification-card h3,
    #contact h3 {
        font-size: 1.3rem;
    }

    #competences, #projets, #contact, #veille, #certifications {
        padding: 60px 15px;
    }

    .certification-logo-container {
        height: 80px;
    }

    .section-title.text-center.mb-5 {
        font-size: 2rem;
        letter-spacing: 1.5px;
        margin-bottom: 2rem !important;
        padding-bottom: 10px;
    }
    
    .section-title.text-center.mb-5::after {
        width: 60px;
    }
    
    /* Carrousel en mobile */
    .competences-grid {
        grid-template-columns: 1fr;
    }
    
    #competencesCarousel {
        padding: 0 40px;
    }
    
    .competence-icon img.competence-image {
        width: 80px !important;
        height: 80px !important;
    }
    
    .carousel-control-prev, 
    .carousel-control-next {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 576px) {
    #competencesCarousel {
        padding: 0 20px;
    }
    
    .carousel-control-prev, 
    .carousel-control-next {
        width: 40px;
        height: 40px;
    }
    
    .competence-card {
        padding: 20px;
    }
    
    .competence-info h4 {
        font-size: 1.3rem;
    }
}
/* Ajout de marges spécifiques aux sections */
.about-section,
.parcours-section {
    margin-bottom: 4rem; /* ou padding-bottom */
}

/* En responsive, réduire les marges si besoin */
@media (max-width: 768px) {
    .about-section,
    .parcours-section {
        margin-bottom: 2rem;
    }
}

/* Fix overlap entre "À propos" et "Mon parcours" sur mobile */
@media (max-width: 768px) {
    .about-section {
        margin-bottom: 40px; /* espace sous À propos */
    }

    .timeline-experience {
        margin-top: 40px; /* espace au-dessus du parcours */
    }

    .timeline-item {
        padding-bottom: 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        margin-bottom: 20px;
    }
    
    .timeline-item:last-child {
        border-bottom: none;
        margin-bottom: 0;
    }
}
#parcours {
    margin-top: 8rem; /* Plus d’espace au-dessus */
}

@media (max-width: 768px) {
    #parcours {
        margin-top: 10rem; /* Encore plus d’espace sur mobile */
    }
}
.about-section {
    padding-bottom: 3rem;
}

