:root {
    --bg-color: #f8f9fa;
    --text-color: #1a1a1a;
    --accent-gradient: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 100%);
    --card-bg: rgba(255, 255, 255, 0.7);
    --accent-color: #a1c4fd;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    left: 0%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-sizing: border-box;
    transition: background 0.3s ease;
}

.logo {
    width: 8rem;
    margin-left: 10%;
}

.nav-links {
    display: flex;
    list-style: none;
    padding: 2rem 10%;
}

.nav-links li {
    margin-left: 2rem;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    margin-right: 10%;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: #888 ;
    margin: 4px 0;
    transition: 0.3s;
}

/* Animation croix */
.menu-toggle.is-active .bar:nth-child(2) {
    opacity: 0; 
}

.menu-toggle.is-active .bar:nth-child(1) {
    transform: translateY(11px) rotate(45deg); 
}

.menu-toggle.is-active .bar:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg); 
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

/* Liens */
a:not(.navbar a):not(.logo) {
    color: #74b9ff; 
    text-decoration: none;
    font-weight: 600;
    position: relative;
    display: inline-block; 
    transition: color 0.3s ease;
}


a:not(.navbar a):not(.logo)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0px;
    left: 0;
    background-color: #a1c4fd; 
    transition: width 0.3s ease;
}

a:not(.navbar a):not(.logo):hover {
    color: #a1c4fd;
}

a:not(.navbar a):not(.logo):hover::after {
    width: 100%;
}

/* Header */
.header {
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 30px 10% 0 10%;
    position: relative;
    overflow: hidden;
}

.header h1 {
    font-size: 8rem;
    line-height: 0.9;
    letter-spacing: 0px;
    text-transform: uppercase;
}

.header h1 span {
    letter-spacing: 0px;
    color: transparent;
    -webkit-text-stroke: 1px var(--text-color);
}

.header-image {
    position: absolute;
    right: 10%;
    top: 63%;
    width: 400px;
    z-index: 1; 
    filter: drop-shadow(15px 25px 40px rgba(0, 0, 0, 0.15));
    animation: floating 6s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% { transform: translateY(-50%) rotate(-5deg); }
    50% { transform: translateY(-53%) rotate(-3deg); }
}

.gradient-shape {
    position: absolute;
    right: -10%;
    width: 50%;
    height: 80%;
    background: var(--accent-gradient);
    filter: blur(80px);
    z-index: -1;
    border-radius: 50%;
}

/* Général */
.section {
    padding: 100px 10%;
    min-height: 80vh;
    scroll-margin-top: 50px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    border-left: 5px solid var(--accent-color);
    padding-left: 20px;
}

/* Parcours */
#parcours {
    position: relative;
    overflow: hidden;
    background-color: var(--card-bg);
}

#parcours::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('ressources/gratte_ciel.svg') no-repeat center/cover fixed;
    opacity: 0.4;
    filter: blur(4px) grayscale(30%);
    z-index: 0;
}

#parcours .section-title, 
#parcours .timeline-container {
    position: relative;
    z-index: 1;
}

.timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 50px auto;
}

.timeline-line {
    position: absolute;
    width: 4px;
    background-color: var(--accent-color);
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    width: 50%;
    margin-bottom: 40px;
}

.timeline-item.left { left: 0; padding-right: 50px; text-align: left; }
.timeline-item.right { left: 50%; padding-left: 50px; }

.timeline-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    display: flex;
    gap: 20px;
}

.timeline-card:hover { transform: scale(1.02); }

.timeline-card .date {
    flex: 0 0 100px;
    color: var(--accent-color);
    font-weight: bold;
    font-size: 0.9rem;
    text-align: left;
}

.timeline-dot {
    position: absolute;
    width: 16px;
    height: 16px;
    background-color: var(--accent-color);
    border: 4px solid white;
    border-radius: 50%;
    top: 20px;
    z-index: 2;
    
}

.left .timeline-dot { right: 5px; }
.right .timeline-dot { left: 5px; }

/* Projets */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);;
    gap: 2.5rem;
}

.project-card {
    background: #ffffff; 
    border-radius: 20px;
    overflow: hidden; 
    
   
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); 
    
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}


.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.project-image-container {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-img {
    transform: scale(1.05);
}

.project-info {
    padding: 1.5rem; 
    flex-grow: 1;
}

.project-info .category {
    font-size: 0.7rem;
    color: var(--accent-color);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    display: block;
}

.project-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.project-info p {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
}


.project-card {
    display: none; 
}

.project-card.visible {
    display: flex; 
}

.more-projects-container {
    text-align: center;
    margin-top: 3rem;
}

.btn-more {
    padding: 12px 30px;
    background: none;
    border: 1.5px solid #555;
    text-decoration: #555;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    transition: transform 0.2s;
}

.btn-more:hover {
    transform: scale(1.05);
}

/* Compétences */
.skills-container {
    display: flex;
    gap: 4rem;
}

.skill-group h3 {
    margin-bottom: 1.5rem;
    color: #888;
}

.skill-group ul { list-style: none; }

.skill-group li {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

/* Responsivité */
@media (min-width: 1201px) {
    .header h1 { font-size: 5rem; }
    .projects-grid { 
        grid-template-columns: repeat(3, 1fr); 
    }
    .project-card:nth-child(-n+3) { 
        display: flex; 
    }
}

@media (max-width: 1200px) and (min-width: 769px) {
    .header h1 { font-size: 4rem; }
    .header-image { width: 250px; right: 5%; }
    .projects-grid { 
        grid-template-columns: repeat(2, 1fr); 
    }
    .project-card:nth-child(-n+2) { 
        display: flex; 
    }
}

@media (max-width: 768px) {
    .header h1 { font-size: clamp(3rem, 12vw, 4rem); line-height: 1.1; }
    .header h1 span { color:#1a1a1a; -webkit-text-stroke: 0px var(--text-color);}
    .header p { font-size: 1rem; }
    .header-image { display: none; }
    .timeline-line { 
        left: 20px; 
    }
    
    .timeline-item { 
        width: 100%; 
        left: 0 !important; 
        padding-left: 70px !important;
        padding-right: 10px !important;
        text-align: left !important; 
    }
    
    .timeline-dot { 
        left: 12px !important; 
    }
    
    .timeline-card {
        flex-direction: column;
        gap: 10px;
    }
    
    .timeline-card .date {
        flex: none;
        font-size: 0.85rem;
    }

    .timeline-card .content {
        padding-left: 20px;
    }

    .skills-container { flex-direction: column; gap: 2rem; }
    .section {
        padding: 90px 5%;
    }
    .section-title {
        font-size: clamp(2rem, 12vw, 4rem); line-height: 1.1;
    }
    .projects-grid { 
        grid-template-columns: 1fr; 
    }
    .project-card:nth-child(1) { 
        display: flex; 
    }
    .menu-toggle { 
        display: flex; 
        z-index: 1001; 
    }
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        flex-direction: column;
        background: rgba(248, 249, 250, 0.98);
        backdrop-filter: blur(10px);
        width: 70%;
        height: 100vh;
        text-align: center;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        padding: 120px 0 2rem 0;
        z-index: 999;
        justify-content: flex-start;
    }
    .nav-links.active { 
        right: 0; 
    }
    .nav-links li { 
        margin: 2rem 0; 
    }
    .nav-links a {
        font-size: 1.2rem;
    }
}

footer {
    padding: 2rem 10%;
    border-top: 1px solid #eee;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-links {
    display: flex;
    gap: 15px; 
}

.social-links img {
    width: 25px;
    height: 25px;
    display: block;
    transition: opacity 0.3s;
}

.social-links img:hover {
    opacity: 0.7;
}


.social-links a::after {
    display: none !important;
}