
/* === ANECDOTES / HORIZONTAL TIMELINE === */
.anecdotes {
    background: var(--bg-secondary);
}

.timeline {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 3rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2rem 0 1rem;
    scrollbar-color: var(--border) var(--bg-secondary);
    -ms-overflow-style: none;
}


.timeline::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 4px;
}

.timeline::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

.timeline::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Ligne horizontale */
.anecdote-line {
    content: '';
    position: absolute;
    top: 0;
    left: -10%;
    right: 0;
    height: 2px;
    width: 120%;
    background: linear-gradient(to right, transparent, var(--border) 5%, var(--border) 95%, transparent);
}

/* Conteneur des cartes */
.anecdotes-cards {
    position: relative;
    width: 100%;
    margin: 0 auto;
    padding-top: 20px;
    display: flex;
    gap: 2rem;
    padding: 0 2rem;
    padding-bottom: 20px;
}

.anecdote-card-wrapper {
    flex: 0 0 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.anecdote-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-top: 32px;
    padding: 1.5rem;
    transition: all var(--transition);
    width: 100%;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
}

.anecdote-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
    transform: translateY(-4px);
}

.anecdote-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    margin-bottom: 0.5rem;
}

.anecdote-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--accent);
}

.anecdote-content {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    flex-grow: 1;
}

/* Point sur la timeline */
.anecdote-dot {
    position: absolute;
    top: 0rem;
    left: 50%;
    width: 16px;
    height: 16px;
    background: var(--accent);
    border: 3px solid var(--bg-card);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    box-shadow: 0 0 0 2px var(--accent);
}

/* Cartes "milestone" */
.anecdote-card-wrapper.milestone>.anecdote-card:hover {
    border-color: var(--accent-secondary);
}

.anecdote-card-wrapper.milestone>.anecdote-card>.anecdote-title {
    color: var(--accent-secondary);
}

.anecdote-card-wrapper.milestone>.anecdote-dot {
    background: var(--accent-secondary);
    box-shadow: 0 0 0 2px var(--accent-secondary);
}

/* === QUIZ === */
.quiz-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.quiz-question {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 2rem;
    line-height: 1.4;
}

.quiz-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.progress-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border);
    transition: all var(--transition);
}

.progress-dot.active {
    background: var(--accent);
    transform: scale(1.3);
}

.progress-dot.completed {
    background: #22c55e;
}

.quiz-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.quiz-option {
    padding: 1rem 1.5rem;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: all var(--transition);
    text-align: center;
}

.quiz-option:hover {
    border-color: var(--accent);
    background: var(--accent-glow);
    transform: translateY(-2px);
}

.quiz-option.selected {
    border-color: var(--accent);
    background: var(--accent);
    color: white;
}

.quiz-option.correct {
    border-color: #22c55e;
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.quiz-option.wrong {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.quiz-option:disabled {
    cursor: default;
    opacity: 0.7;
}

.quiz-next {
    padding: 0.75rem 2rem;
    background: var(--accent);
    color: white;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 600;
    transition: all var(--transition);
    display: none;
}

.quiz-next.visible {
    display: inline-flex;
}

.quiz-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px var(--accent-glow);
}

.result-card {
    text-align: center;
    padding: 3rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.result-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.result-card h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.result-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* === FOOTER === */
.footer {
    padding: 3rem 2rem;
    border-top: 1px solid var(--border);
    background: var(--bg-secondary);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.footer-logo {
    font-size: 1.5rem;
}

.footer-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.footer-copy {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(20px, -20px); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}

@keyframes scrollBounce {
    0%, 100% { top: 6px; opacity: 1; }
    50% { top: 18px; opacity: 0.3; }
}

/* === SCROLL REVEAL === */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === LIGHTBOX === */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.lightbox.open {
    display: flex;
    opacity: 1;
}

.lightbox-overlay {
    position: relative;
    max-width: 90%;
    max-height: 85vh;
    padding: 1rem;
}

.lightbox-overlay img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: 0 0 0 1px rgba(255,255,255,0.1);
    cursor: default;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    font-weight: 300;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.lightbox-close:hover {
    background: rgba(255,255,255,0.2);
}


.lightbox-caption {
    margin-top: 1rem;
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
    text-align: center;
    pointer-events: none;
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .specs-grid {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }
}

@media (max-width: 600px) {
    .hero {
        padding: 5rem 1.5rem 3rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-stats {
        gap: 2rem;
    }

    .section {
        padding: 4rem 1.5rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .quiz-options {
        grid-template-columns: 1fr;
    }

    .timeline {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .timeline-item {
        flex: 0 0 260px;
    }

    .nav-inner {
        padding: 1rem 1.25rem;
    }
}

/* === PROJECT FILTERS === */
.project-filters {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.project-filters .filter-btn {
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: 100px;
    border: 1px solid transparent;
    transition: all var(--transition);
}

.project-filters .filter-btn:hover {
    color: var(--text-primary);
    background: var(--bg-secondary);
}

.project-filters .filter-btn.active {
    color: var(--accent);
    background: var(--accent-glow);
    border-color: var(--accent);
}

/* === PROJECTS === */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.project-card.featured {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
}

.project-card.featured::before {
    background: linear-gradient(90deg, #5B8C3E, #8FB94A, #E891A6);
    transform: scaleX(1);
}

.project-card.featured .project-icon {
    background: linear-gradient(135deg, rgba(91, 140, 62, 0.15), rgba(143, 185, 74, 0.15));
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), #7c3aed);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
}

.project-card:hover::before {
    transform: scaleX(1);
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.project-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-glow);
    border-radius: var(--radius-md);
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    flex-shrink: 0;
}

.project-icon-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.project-category {
    display: inline-block;
    margin: 0 0 auto auto;
    padding: 0.25rem 0.75rem;
    background: var(--accent-glow);
    color: var(--accent);
    font-size: 0.8rem;
    font-family: var(--font-mono);
    border-radius: 100px;
    text-transform: uppercase;
    line-height: 1.4;
    white-space: nowrap;
}

.project-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.project-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    flex-grow: 1;
    margin-bottom: 1.25rem;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent);
    transition: all var(--transition);
}

.project-link:hover {
    gap: 0.7rem;
}

.project-link svg {
    transition: transform var(--transition);
}

.project-link:hover svg {
    transform: translateX(3px);
}

@media (max-width: 400px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        gap: 1.5rem;
    }

    .stat-value {
        font-size: 1.5rem;
    }
}
