/* Variables globales */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --text-color: #333;
    --light-bg: #f4f4f4;
}

/* Reset et styles de base plus stricts */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    position: relative;
}

/* Style du fond avec parallaxe */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        rgba(0, 0, 0, 0.7),
        rgba(0, 0, 0, 0.7)
    ), url('../images/pc.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
}

@media (max-width: 768px) {
    body {
        margin: 0;
        padding: 0;
        overflow-x: hidden;
        font-family: sans-serif;
    }

    .hero {
        justify-content: start !important;

        &.accueil-mobile {
            justify-content: end !important;
        }
    }
    
    #burger-menu {
        cursor: pointer;
        height: 27px;
        width: 27px;
        margin: 50px;
        overflow: visible;
        position: relative;
        z-index: 3;
    
        span,
        span:before,
        span:after {
            background: #fff;
            display: block;
            height: 2px;
            opacity: 1;
            position: absolute;
            transition: 0.3s ease-in-out;
        }
    
        span:before,
        span:after {
            content: '';
        }
    
        span:before {
            left: 0px;
            top: -10px;
            width: 27px;
        }
    
        span {
            right: 0px;
            top: 13px;
            width: 27px;
        }
    
        span:after {
            left: 0px;
            top: 10px;
            width: 27px;
        }
    

        &.close {
            span:before {
                top: 0px;
                transform: rotate(90deg);
                width: 27px;
            }
    
            span {
                transform: rotate(-45deg);
                top: 13px;
                width: 27px;
            }
    
            span:after {
                top: 0px;
                left: 0;
                transform: rotate(90deg);
                opacity: 0;
                width: 0;
            }
        }
    }
    
    #navbar-mobile {
        z-index: 1;
        min-width: 100%;
        min-height: 100%;
        position: fixed;
        top: 0;
        height: 0;
        visibility: hidden ;
        opacity: 0;
        text-align: center;
        padding-top: 20px;
        transition: all 0.3s ease-in-out;
    
        &.overlay {
            z-index: 2;
            visibility: visible;
            opacity: 1;
            padding-top: 100px;
            background: rgba(0, 0, 0, 0.5);
        }
    
        ul {
            padding: 0;
        }
    
        li {
            list-style: none;
        }
    
        a {
            color: #fff;
            display: block;
            font-size: 25px;
            margin-bottom: 5px;
            text-decoration: none;
        }
    }
}

/* Navigation */
.navbar {
    position: fixed;
    width: 100%;
    padding: 1rem 2rem;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(8px);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    z-index: 1000;
    transition: background 0.3s ease;
}

/* Style pour la navbar quand on scrolle */
.navbar.scrolled {
    background: rgba(0, 0, 0, 0.8);
}

/* Container pour les liens de navigation */
.nav-links {
    display: flex;
    list-style: none;
    gap: 3rem;
    margin: 0;
    padding: 0;
    text-align: center;
    align-items: center;
}

.nav-links li a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    list-style: none;
}

/* Effet de soulignement au hover */
.nav-links li a::after {
    content: '';
    position: absolute;
    text-decoration: none;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    transition: width 0.3s ease;
    list-style: none;
} */

.nav-links li a:hover::after {
    width: 100%;
    text-decoration: none;
    list-style: none;
}

/* Style pour l'icône de profil dans la navbar */
.profile-icon {
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid white;
    transition: transform 0.3s ease;
}

.profile-icon:hover {
    transform: scale(1.1);
}

.profile-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    transition: transform 0.3s ease;
}

/* Section Héro */
.hero {
    background: transparent;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
    box-shadow: none;
    backdrop-filter: none;
}

.hero h1, .hero p {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    color: white;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 2rem;
}

/* Style du bouton découvrir */
.discover-btn {
    margin-top: 2rem;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    color: white;
    text-decoration: none;
    border: 2px solid var(--secondary-color);
    border-radius: 30px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    background: transparent;
    z-index: 1;
}

.discover-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--secondary-color);
    transition: width 0.3s ease;
    z-index: -1;
}

.discover-btn:hover::before {
    width: 100%;
}

.discover-btn .arrow {
    display: inline-block;
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.discover-btn:hover .arrow {
    transform: translateX(5px);
}

/* Animation du bouton à l'arrivée */
.discover-btn {
    animation: fadeInUp 1s ease 0.6s backwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sections communes */
.section {
    background: rgba(255, 255, 255, 0.95);
    margin: 4rem auto;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
}

/* Style commun pour tous les titres de section */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    color: var(--primary-color);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--secondary-color);
}

/* Boutons stylisés */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--secondary-color);
    color: white;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-projet {
    background: #2980b9;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

/* Ajustement de l'espacement entre les sections */
#parcours {
    margin-top: 2rem;
}

#projets {
    margin-top: 6rem;
    margin-bottom: 6rem;
}

#contact {
    margin-bottom: 6rem;
}

/* Media Queries pour le responsive */
@media (max-width: 768px) {
    .section {
        margin: 2rem auto;
        padding: 2rem;
    }

    .content-wrapper {
        padding: 1rem;
    }

    .hero {
        height: 100vh;
    }

    .navbar {
        padding: 0.8rem;
        gap: 0.8rem;
    }

    .profile-icon {
        width: 40px;
        height: 40px;
    }

    .nav-links {
        gap: 1.5rem;
    }

    .nav-links li a {
        font-size: 1rem;
        padding: 0.5rem;
        text-decoration: none;
    }

    .discover-btn {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
} 

/* Conteneur principal pour le contenu */
.content-wrapper {
    position: relative;
    margin: 0 auto;
    padding: 0 2rem;
    max-width: 1200px;
    min-height: calc(100vh - 80px);
    z-index: 1;
    background: transparent;
    box-shadow: none;
}

/* Timeline améliorée */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 3px;
    background: linear-gradient(
        to bottom,
        transparent,
        var(--secondary-color),
        transparent
    );
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.timeline-item {
    padding: 1rem 2rem;
    position: relative;
    width: 50%;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateX(-50px);
    animation: slideIn 0.5s ease forwards;
}

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.timeline-item:nth-child(even) {
    left: 50%;
    transform: translateX(50px);
}

.timeline-dot {
    width: 25px;
    height: 25px;
    background: var(--secondary-color);
    border-radius: 50%;
    position: absolute;
    right: -12.5px;
    top: 20px;
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.2);
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-dot {
    transform: scale(1.2);
    box-shadow: 0 0 0 6px rgba(52, 152, 219, 0.3);
}

.timeline-item:nth-child(even) .timeline-dot {
    right: auto;
    left: -12.5px;
}

.timeline-content {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    margin-right: -20px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
}

.timeline-content h3 {
    color: var(--secondary-color);
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
}

.timeline-content h4 {
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.timeline-content ul {
    margin-top: 1rem;
    padding-left: 1.5rem;
}

.timeline-content ul li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.timeline-content ul li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
}

.timeline-content ul li {
    text-decoration: none;
    list-style-type: none;
}

/* Formulaire de contact amélioré */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 20px;
}

.contact-info {
    padding: 2rem;
    background: linear-gradient(145deg, var(--secondary-color), #2980b9);
    border-radius: 15px;
    color: white;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.contact-details p {
    margin: 1.5rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.social-link {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid white;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateY(-5px);
    background: white;
    color: var(--secondary-color);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1.2rem;
    border: 2px solid #e1e1e1;
    border-radius: 10px;
    background: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.1);
}

.form-group textarea {
    min-height: 180px;
    resize: vertical;
}

.form-group label {
    position: absolute;
    left: 1rem;
    top: 1.2rem;
    padding: 0 0.5rem;
    color: #666;
    transition: all 0.3s ease;
    pointer-events: none;
    background: white;
}

.form-group input:focus ~ label,
.form-group textarea:focus ~ label,
.form-group input:valid ~ label,
.form-group textarea:valid ~ label {
    top: -0.7rem;
    left: 0.8rem;
    font-size: 0.85rem;
    color: var(--secondary-color);
    font-weight: 600;
}

.contact-form .btn {
    align-self: flex-start;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Responsive */
@media (max-width: 768px) {
    .timeline::before {
        left: 30px;
    }

    .timeline-item,
    .timeline-item:nth-child(even) {
        width: 100%;
        padding-left: 60px;
        padding-right: 20px;
        left: 0;
    }

    .timeline-dot,
    .timeline-item:nth-child(even) .timeline-dot {
        left: 20px;
        right: auto;
    }

    .contact-container {
        grid-template-columns: 1fr;
        padding: 0.5rem;
    }

    .contact-info {
        padding: 16px 10px 16px 10px;
    }
} 

/* Section À propos */
.about-section {
    background: rgba(255, 255, 255, 0.95);
    margin: 4rem auto;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    backdrop-filter: blur(5px);
    max-width: 1200px;
}

.about-container {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 4rem;
    align-items: center;
    margin-top: 2rem;
}

.about-content {
    padding-right: 2rem;
    text-align: left;
}

.about-intro {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

.about-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #2c3e50;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease 0.2s forwards;
}

.skills-container {
    margin-top: 3rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease 0.4s forwards;
}

.skills-container h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.5rem;
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.skill-item:hover {
    transform: translateY(-5px);
    background: white;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.2);
}

.about-image {
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease 0.6s forwards;
    max-width: 400px;
    width: 100%;
    margin: 0 auto;
}

.image-wrapper {
    position: relative;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    aspect-ratio: 1/1;
    border: 4px solid var(--secondary-color);
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    display: block;
    transition: transform 0.3s ease;
}

.image-wrapper:hover img {
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 968px) {
    .about-section {
        margin: 2rem auto;
        padding: 2rem;
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-content {
        padding-right: 0;
    }

    .about-image {
        max-width: 350px;
    }

    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
}

@media (max-width: 768px) {
    .about-section {
        padding: 1.5rem;
        margin: 1rem auto;
    }

    .about-intro {
        font-size: 1.3rem;
    }

    .about-description {
        font-size: 1rem;
    }

    .skill-item {
        padding: 1rem;
    }

    .about-image {
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .about-image {
        max-width: 250px;
    }
}

/* Style du bouton de téléchargement CV */
.cv-download {
    margin-top: 3rem;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease 0.6s forwards;
}

.cv-btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    background: var(--secondary-color);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.2);
}

.cv-btn i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.cv-btn:hover {
    background: #2980b9;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.3);
}

.cv-btn:hover i {
    transform: translateY(2px);
}

/* Animation spécifique pour le bouton */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.cv-btn:hover i {
    animation: bounce 0.8s ease infinite;
}

/* Responsive */
@media (max-width: 768px) {
    .cv-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    #projets{
        padding-left: 0%;
        padding-right: 0%;
    }
}


.carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 25px 20px 15px;
    overflow: hidden;
}

.carousel {
    display: flex;
    transition: transform 0.5s ease;
    gap: 20px;
}

.project-card {
    flex: 0 0 calc(33.333% - 20px);
    min-width: 300px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-image:hover .project-overlay {
    opacity: 1;
}

.project-info {
    padding: 20px;
}

.project-info h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.project-tags span {
    background: var(--secondary-color);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease;
}

.carousel-btn:hover {
    background: rgba(0,0,0,0.8);
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

@media (max-width: 1024px) {
    .project-card {
        flex: 0 0 calc(50% - 20px);
    }
}

@media (max-width: 768px) {
    .project-card {
        flex: 0 0 calc(100% - 20px);
    }
    .navbar{
        display: none !important;
    }
}

@media (min-width: 768px) {
    .navbar-mobile {
        display: none !important;
    }
    .burger-menu{
        display: none !important;
    }
}

