/* Scroll container et sections */
.scroll-container {
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Custom scrollbar */
.scroll-container::-webkit-scrollbar {
    width: 8px;
}

.scroll-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

.scroll-container::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.scroll-container::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Sections */
.section {
    min-height: 100vh;
    min-height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    padding-top: 70px;
    padding-bottom: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
    background-attachment: fixed;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    overflow-y: auto;
    isolation: isolate;
    overflow: visible;
}

/* Sections claires */
#accueil,
#certifications,
#contact {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
}

/* Sections foncées */
#parcours,
#projets {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
    position: relative;
}

/* Effets pour sections claires */
#accueil::before,
#certifications::before,
#contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(37, 99, 235, 0.1) 0%, transparent 50%);
    z-index: -1;
}

/* Effets pour sections foncées */
#parcours::before,
#projets::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 30% 20%, rgba(59, 130, 246, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(147, 197, 253, 0.1) 0%, transparent 50%);
    z-index: -1;
}

/* Titres des sections foncées */
#parcours .section-title,
#projets .section-title {
    color: white;
}

/* Cartes dans les sections foncées */
#parcours .timeline-content,
#projets .certification-card,
#projets .project-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Contact redevient normal (section claire) */
#contact .section-title {
    color: var(--text-primary);
}

#contact .contact-info h3,
#contact .contact-info > p {
    color: var(--text-primary);
}

#contact .contact-method strong {
    color: var(--text-primary);
}

#contact .contact-method p {
    color: var(--text-secondary);
}

#contact .form {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
}

/* Smooth animations for cards */
.timeline-item,
.certification-card,
.project-card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.35, 0.17, 0.25, 0.96);
}

/* Locomotive Scroll reveal animations */
[data-scroll] {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s cubic-bezier(0.35, 0.17, 0.25, 0.96);
}

[data-scroll].is-inview {
    opacity: 1;
    transform: translateY(0);
}