/* Variables */
:root {
    --primary-color: #4a6de5;
    --primary-color-dark: #3955b2;
    --secondary-color: #2c3e50;
    --text-color: #333333;
    --text-color-light: #666666;
    --bg-color: #ffffff;
    --bg-light: #f8f9fa;
    --border-color: #e5e5e5;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
}

.bg-light {
    background-color: var(--bg-light);
}

/* Boutons */
.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--primary-color-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.btn-small {
    padding: 8px 15px;
    font-size: 0.9rem;
}

/* Header et Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--bg-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary-color);
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 5px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #4a6de5 0%, #2c3e50 100%);
    background-size: cover;
    background-position: center;
    margin-top: 70px;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../img/pattern.png');
    opacity: 0.1;
    z-index: 1;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    color: white;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}

.hero h2 {
    font-size: 1.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.9);
}

.alternance-info {
    background-color: rgba(255, 255, 255, 0.15);
    padding: 20px;
    border-radius: 10px;
    margin: 20px auto 30px;
    max-width: 90%;
    box-shadow: var(--shadow);
    border-left: 4px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.alternance-info p {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
}

.alternance-info p:first-child {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 15px;
}

/* À propos */
.about-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 20px;
}

.about-image {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary-color);
    padding: 0;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    margin: 0;
    padding: 0;
    border: none;
    display: block;
    box-shadow: none;
}

/* Projets */
.filter-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.project-img {
    position: relative;
    overflow: hidden;
}

.project-img img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.project-card:hover .project-img img {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    transition: all 0.3s ease;
}

.project-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    text-align: center;
    transform: translateY(70px);
    transition: transform 0.3s ease;
}

.project-card:hover .project-info {
    transform: translateY(0);
}

.project-info h3 {
    margin: 0 0 15px 0;
    font-size: 1.3rem;
    color: white;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.project-card:hover .project-info h3 {
    opacity: 1;
    transform: translateY(0);
}

.project-category {
    position: absolute;
    top: 15px;
    left: 15px;
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 600;
    z-index: 2;
    transition: transform 0.3s ease;
}

.project-card:hover .project-category {
    transform: translateY(-5px);
}

.project-category.personal {
    background-color: rgba(52, 152, 219, 0.9);
    color: white;
}

.project-category.professional {
    background-color: rgba(243, 156, 18, 0.9);
    color: white;
}

.project-category.formation {
    background-color: rgba(155, 89, 182, 0.9);
    color: white;
}

.project-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #4a6de5;
    color: white;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(74, 109, 229, 0.3);
    opacity: 0;
    transform: translateY(20px);
}

.project-card:hover .project-btn {
    opacity: 1;
    transform: translateY(0);
}

.project-btn:hover {
    background-color: #3a5bd5;
    box-shadow: 0 6px 15px rgba(74, 109, 229, 0.4);
    transform: translateY(-2px);
}

/* Expériences */
.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background-color: white;
    border: 4px solid var(--primary-color);
    border-radius: 50%;
    top: 15px;
    z-index: 1;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item:nth-child(odd)::after {
    right: -8px;
}

.timeline-item:nth-child(even)::after {
    left: -8px;
}

.timeline-date {
    background-color: var(--primary-color);
    color: white;
    border-radius: 20px;
    padding: 5px 15px;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 10px;
}

.timeline-content {
    padding: 20px;
    background-color: white;
    position: relative;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.timeline-content h3 {
    margin-top: 0;
    color: var(--primary-color);
}

.timeline-content h4 {
    margin: 5px 0 10px;
    color: var(--text-color-light);
}

/* Compétences */
.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.skills-category {
    flex: 1;
    min-width: 300px;
}

.skills-category h3 {
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.skill-item {
    margin-bottom: 15px;
}

.skill-name {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.skill-bar {
    height: 10px;
    background-color: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 5px;
}

/* Contact */
.contact-container {
    display: flex;
    gap: 50px;
}

.contact-info {
    flex: 1;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 15px;
    width: 30px;
    text-align: center;
}

.social-links {
    margin-top: 30px;
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color-dark);
    transform: translateY(-3px);
}

.contact-form {
    flex: 1;
}

.contact-direct {
    margin-bottom: 15px;
    font-weight: 500;
    font-size: 1.1rem;
}

.contact-form .btn {
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 30px 0;
    text-align: center;
}

/* Responsive Design */
@media screen and (max-width: 992px) {
    .about-content {
        flex-direction: column;
    }
    
    .contact-container {
        flex-direction: column;
    }
}

@media screen and (max-width: 768px) {
    .nav-links {
        position: fixed;
        right: 0;
        top: 0;
        height: 100vh;
        background-color: var(--bg-color);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 80%;
        transform: translateX(100%);
        transition: transform 0.4s ease-in-out;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.2);
        padding: 50px 0;
        z-index: 1001;
    }
    
    .nav-links li {
        margin: 20px 0;
        opacity: 0;
        transform: translateX(50px);
        transition: all 0.4s ease;
    }
    
    .nav-links.show li {
        opacity: 1;
        transform: translateX(0);
        transition-delay: calc(0.05s * var(--i));
    }
    
    .nav-links a {
        font-size: 1.2rem;
        font-weight: 500;
    }
    
    .burger {
        display: block;
        z-index: 1002;
        position: relative;
    }

    /* Animation du burger menu */
    .burger.active .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .burger.active .line2 {
        opacity: 0;
    }
    
    .burger.active .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    /* Overlay quand le menu est ouvert */
    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    .timeline::after {
        left: 30px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 60px;
        padding-right: 20px;
        padding-bottom: 20px;
    }
    
    .timeline-item:nth-child(odd), 
    .timeline-item:nth-child(even) {
        left: 0;
    }
    
    .timeline-item:nth-child(odd)::after,
    .timeline-item:nth-child(even)::after {
        left: 22px;
    }
    
    /* Style complètement différent pour les expériences et formations sur mobile */
    #formations-timeline,
    #experiences-timeline {
        margin-left: 0;
        margin-right: 0;
        padding: 30px 10px;
    }
    
    #formations-timeline::after,
    #experiences-timeline::after {
        left: 20px;
    }
    
    #formations-timeline .timeline-item,
    #experiences-timeline .timeline-item {
        padding-left: 50px;
        padding-right: 0;
        padding-bottom: 30px;
        margin-bottom: 0;
    }
    
    #formations-timeline .timeline-item::after,
    #experiences-timeline .timeline-item::after {
        left: 12px;
    }
    
    #formations-timeline .timeline-date,
    #experiences-timeline .timeline-date {
        display: inline-block;
        margin-bottom: 5px;
        font-size: 0.8rem;
        padding: 3px 10px;
    }
    
    #formations-timeline .timeline-content,
    #experiences-timeline .timeline-content {
        padding: 15px;
        border-radius: 8px;
        box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
        border-left: 3px solid var(--primary-color);
    }
    
    #formations-timeline .timeline-content h3,
    #experiences-timeline .timeline-content h3 {
        font-size: 1.1rem;
        margin-bottom: 5px;
    }
    
    #formations-timeline .timeline-content h4,
    #experiences-timeline .timeline-content h4 {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }
    
    #formations-timeline .timeline-content p,
    #experiences-timeline .timeline-content p {
        font-size: 0.85rem;
        margin-bottom: 5px;
        line-height: 1.4;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }
    
    .project-img {
        height: 180px;
    }

    /* Amélioration pour la section d'accueil */
    .hero-glass {
        padding-top: 20px;
        padding-bottom: 20px;
    }
    
    .glass-card {
        margin: 0 15px;
        padding: 25px 20px;
    }
    
    .alternance-info {
        margin: 15px 0;
        padding: 15px;
    }
    
    .alternance-info p {
        margin-bottom: 8px;
    }
    
    /* Améliorations pour la section À propos */
    .about-content {
        text-align: center;
    }
    
    .about-image {
        width: 200px;
        height: 200px;
        border-radius: 50%;
        overflow: hidden;
        border: 3px solid var(--primary-color);
        padding: 0;
        margin: 0 auto 20px;
    }
    
    .about-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 0;
        border: none;
        margin: 0;
        padding: 0;
    }
    
    .about-text {
        padding: 0 10px;
    }
    
    .about-text p {
        text-align: justify;
    }
    
    /* Ajustements généraux des sections */
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        margin-bottom: 30px;
    }

    /* Amélioration de l'espacement entre les sections */
    section:not(.hero-glass) {
        margin-top: 20px;
    }
    
    /* Amélioration de la lisibilité des textes */
    p {
        line-height: 1.5;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    h4 {
        font-size: 1.1rem;
    }

    /* Correction des problèmes de marges pour les conteneurs */
    .container {
        padding: 0 10px;
    }
    
    /* Espacement vertical pour les éléments */
    .projects-grid {
        margin-top: 20px;
    }
    
    .skills-container {
        margin-top: 20px;
    }
    
    /* Amélioration de l'aspect des compétences */
    .skill-item {
        margin-bottom: 12px;
    }
    
    .skill-name {
        font-size: 0.9rem;
    }
    
    /* Amélioration du formulaire de contact */
    .form-group {
        margin-bottom: 15px;
    }
    
    /* Ajustement des icônes et des liens */
    .contact-item i {
        font-size: 1.2rem;
    }
    
    /* Ajustement du footer */
    footer {
        padding: 20px 0;
        font-size: 0.85rem;
    }

    /* Correction du modal de projet pour mobile */
    .project-modal {
        padding: 0;
        align-items: flex-start;
    }
    
    .project-modal-content {
        width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
        overflow-y: auto;
        margin-top: 0;
    }
    
    .project-modal-body {
        flex-direction: column;
        overflow-y: auto;
        max-height: calc(100vh - 50px);
        padding-bottom: 20px;
    }
    
    .project-modal-image {
        width: 100%;
        height: 200px;
        margin-right: 0;
        margin-bottom: 20px;
        position: relative;
        border-radius: 0;
    }
    
    .project-modal-close {
        top: 10px;
        right: 10px;
        background-color: rgba(0, 0, 0, 0.5);
        color: white;
        z-index: 10;
    }

    /* Amélioration du centrage du texte d'alternance */
    .alternance-info {
        padding: 15px;
        margin: 15px auto;
        text-align: center;
        width: 90%;
        max-width: 450px;
    }
    
    .alternance-info p {
        text-align: center;
        width: 100%;
        padding: 0;
        margin-bottom: 8px;
    }
    
    .glass-card {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 90%;
    }
    
    .glass-card > * {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-container {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 15px;
        justify-content: flex-start;
    }
    
    .filter-btn {
        flex-shrink: 0;
    }

    /* Amélioration pour les très petits écrans */
    .about-content {
        gap: 20px;
    }

    .about-image img {
        max-width: 200px;
        margin: 0 auto;
    }

    .hero-content {
        padding: 0 10px;
    }

    .glass-card {
        padding: 20px 15px;
    }

    .glass-card h1 {
        font-size: 1.8rem;
    }

    .glass-card h2 {
        font-size: 1.2rem;
    }

    /* Amélioration pour le formulaire de contact */
    .contact-container {
        padding: 10px;
    }

    .form-group input,
    .form-group textarea {
        padding: 10px;
    }

    /* Réduction de la taille des textes sur petits écrans */
    body {
        font-size: 14px;
    }

    /* Réduire l'espace entre les items de timeline */
    .timeline-item {
        margin-bottom: 30px;
    }

    /* Améliorer la navigation du menu */
    .nav-links {
        width: 80%;
    }

    /* Améliorer le modal de projet */
    .project-modal-content {
        width: 95%;
        padding: 15px;
    }

    .project-modal-info h3 {
        font-size: 1.3rem;
    }

    /* Ajustements supplémentaires pour les petits écrans */
    #formations-timeline .timeline-item,
    #experiences-timeline .timeline-item {
        margin-bottom: 20px;
    }
    
    #formations-timeline .timeline-content,
    #experiences-timeline .timeline-content {
        padding: 12px;
    }
    
    .timeline-content p {
        font-size: 0.85rem;
    }

    /* Réduire la taille des marges dans la timeline */
    .timeline {
        margin: 20px auto;
    }
    
    /* Améliorer l'affichage des dates */
    .timeline-date {
        font-size: 0.75rem;
        padding: 4px 8px;
    }

    /* Ajustements supplémentaires pour les timelines sur très petits écrans */
    .timeline-item {
        padding-left: 45px;
    }
    
    .timeline::after {
        left: 20px;
    }
    
    .timeline-date {
        font-size: 0.7rem;
        padding: 4px 8px;
        min-width: 70px;
        left: 15px;
    }
    
    #formations-timeline .timeline-item,
    #experiences-timeline .timeline-item {
        padding-left: 40px;
        margin-left: 15px;
    }

    /* Ajustements supplémentaires pour les petits écrans */
    .glass-card {
        padding: 20px 15px;
    }
    
    .alternance-info {
        padding: 12px;
        margin: 10px auto;
        width: 90%;
        max-width: 100%;
    }
    
    .about-text p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .section {
        padding: 40px 0;
    }
    
    /* Améliorer les boutons sur mobile */
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    /* Réduction des marges et des espacements pour très petits écrans */
    .container {
        width: 95%;
        padding: 0 8px;
    }
    
    /* Ajustement des polices */
    h3 {
        font-size: 1.2rem;
    }
    
    h4 {
        font-size: 1rem;
    }
    
    p {
        font-size: 0.85rem;
    }
    
    /* Améliorer l'espacement entre les éléments */
    .section-title {
        margin-bottom: 25px;
    }
    
    /* Optimiser les icônes sociales */
    .social-links a {
        margin: 0 8px;
        font-size: 1.2rem;
    }

    /* Ajustements supplémentaires pour le modal sur très petits écrans */
    .project-modal-image {
        height: 180px;
    }
    
    .project-modal-info {
        padding: 15px 10px;
    }
    
    .project-modal-links a {
        margin: 5px;
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    
    /* Ajustement du texte d'alternance sur très petits écrans */
    .alternance-info {
        padding: 12px;
        margin: 10px auto;
        width: 90%;
        max-width: 100%;
    }
    
    .alternance-info p {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }
}

/* Hero Section - Option technique */
.hero-tech {
    height: 100vh;
    display: flex;
    align-items: center;
    background-color: #0f172a; /* Fond bleu foncé */
    background-image: 
        radial-gradient(rgba(74, 109, 229, 0.2) 2px, transparent 2px),
        radial-gradient(rgba(74, 109, 229, 0.15) 2px, transparent 2px);
    background-size: 30px 30px, 90px 90px;
    background-position: 0 0, 45px 45px;
    margin-top: 70px;
    position: relative;
    overflow: hidden;
}

.hero-tech::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        0deg,
        transparent,
        rgba(74, 109, 229, 0.1),
        rgba(74, 109, 229, 0.1)
    );
    transform-origin: bottom right;
    animation: rotate 20s linear infinite;
    z-index: 1;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Hero Section - Option glassmorphism */
.hero-glass {
    height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #4a47e5, #3a2c60);
    margin-top: 70px;
    position: relative;
    overflow: hidden;
}

.hero-glass::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image: url('data:image/svg+xml;utf8,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><circle cx="20" cy="20" r="20" fill="white" opacity="0.05"/><circle cx="80" cy="80" r="30" fill="white" opacity="0.05"/><circle cx="40" cy="70" r="15" fill="white" opacity="0.05"/><circle cx="70" cy="30" r="25" fill="white" opacity="0.05"/></svg>');
    background-size: 300px 300px;
    z-index: 1;
}

.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    padding: 30px;
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    text-align: center;
}

/* Règles pour le contenu de la carte glassmorphism */
.glass-card h1 {
    color: white;
    margin-bottom: 15px;
    font-weight: 600;
}

.glass-card h2 {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    margin-bottom: 20px;
}

.glass-card p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
}

/* Filtres des projets */
.filter-btn {
    padding: 8px 18px;
    background-color: white;
    border: 2px solid var(--primary-color);
    border-radius: 30px;
    color: var(--primary-color);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background-color: rgba(74, 109, 229, 0.1);
}

.filter-btn.active {
    background-color: var(--primary-color);
    color: white;
}

/* Styles pour la modal de projet */
.project-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    overflow-y: auto;
    padding: 20px 0;
}

.project-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.project-modal-content {
    background-color: white;
    width: 90%;
    max-width: 900px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    position: relative;
    margin: auto;
}

.project-modal.show .project-modal-content {
    transform: translateY(0);
    opacity: 1;
}

.project-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    transition: color 0.2s;
    width: 36px;
    height: 36px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-modal-close:hover {
    background-color: rgba(0, 0, 0, 0.5);
    transform: rotate(90deg);
    transition: all 0.3s ease;
}

.project-modal-body {
    display: flex;
    flex-direction: column;
}

.project-modal-image {
    width: 100%;
    height: auto;
    max-height: 500px;
    overflow: hidden;
    position: relative;
}

.project-modal-image img {
    width: 100%;
    display: block;
}

.project-modal-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(to top, rgba(255, 255, 255, 1), transparent);
    pointer-events: none;
}

.project-modal-info {
    padding: 30px;
    position: relative;
}

.project-modal-info #modalProjectCategory {
    position: absolute;
    top: -20px;
    left: 30px;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.project-modal-info #modalProjectCategory.personal {
    background-color: rgba(52, 152, 219, 1);
    color: white;
}

.project-modal-info #modalProjectCategory.professional {
    background-color: rgba(243, 156, 18, 1);
    color: white;
}

.project-modal-info #modalProjectCategory.formation {
    background-color: rgba(155, 89, 182, 1);
    color: white;
}

.project-modal-info h3 {
    margin-top: 15px;
    margin-bottom: 25px;
    font-size: 2rem;
    color: #333;
    font-weight: 600;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
}

.project-modal-info p {
    margin-bottom: 25px;
    line-height: 1.8;
    color: #555;
    font-size: 1.05rem;
    white-space: pre-line; /* Préserve les retours à la ligne */
}

.project-modal-links {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.project-modal-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background-color: #4a6de5;
    color: white;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(74, 109, 229, 0.3);
}

.project-modal-links a:hover {
    background-color: #3a5bd5;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(74, 109, 229, 0.4);
}

.project-modal-links a i {
    font-size: 1.1rem;
}

@media (min-width: 768px) {
    .project-modal-image {
        max-height: 600px;
    }
}

/* Notification de message */
.notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: rgba(74, 109, 229, 0.8);
    backdrop-filter: blur(10px);
    color: white;
    padding: 25px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    z-index: 1100;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    max-width: 90%;
    width: 380px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.notification.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.notification-message {
    margin-bottom: 20px;
    font-size: 1.2rem;
    line-height: 1.5;
    font-weight: 500;
}

.notification-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.5px;
}

.notification-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.notification::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: -1;
    border-radius: 15px;
}

/* Fin notification de message */

/* Améliorations spécifiques pour les sections formations et expériences */
#formations-timeline,
#experiences-timeline {
    position: relative;
    margin: 30px auto;
}

.timeline-content p {
    margin-bottom: 5px;
}

@media screen and (max-width: 768px) {
    /* ... existing code ... */

    /* Règles spécifiques pour l'affichage des formations et expériences */
    #formations-timeline .timeline-item,
    #experiences-timeline .timeline-item {
        background-color: #fff;
        border-radius: 8px;
        box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
        margin-bottom: 25px;
        position: relative;
    }

    #formations-timeline .timeline-content,
    #experiences-timeline .timeline-content {
        padding: 15px;
        border-left: 3px solid var(--primary-color);
    }

    /* Amélioration de l'espace entre les paragraphes dans les formations */
    .timeline-content p {
        margin-bottom: 3px;
        line-height: 1.4;
    }
    
    /* Améliorer la lisibilité des liens dans les formations et expériences */
    .timeline-content a {
        color: var(--primary-color);
        font-weight: 500;
    }
    
    /* Meilleur affichage des listes dans les formations */
    .timeline-content ul {
        padding-left: 15px;
        margin-top: 5px;
    }
    
    .timeline-content li {
        margin-bottom: 3px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    /* ... existing code ... */

    /* Ajustements supplémentaires pour les petits écrans */
    #formations-timeline .timeline-item,
    #experiences-timeline .timeline-item {
        margin-bottom: 20px;
    }
    
    #formations-timeline .timeline-content,
    #experiences-timeline .timeline-content {
        padding: 12px;
    }
    
    .timeline-content p {
        font-size: 0.85rem;
    }

    /* Réduire la taille des marges dans la timeline */
    .timeline {
        margin: 20px auto;
    }
    
    /* Améliorer l'affichage des dates */
    .timeline-date {
        font-size: 0.75rem;
        padding: 4px 8px;
    }
} 