* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #fff;
    color: #000;
    line-height: 1.2;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 2rem 0;
    background: #fff;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-decoration: none;
    color: #000;
}

.nav-menu {
    display: flex;
    gap: 3rem;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 1px;
    text-decoration: none;
    color: #000;
    transition: opacity 0.3s ease;
}

.nav-link:hover {
    opacity: 0.5;
}

.nav-link.active {
    opacity: 0.5;
}

/* Main Content */
.main-content {
    padding: 8rem 0 4rem;
}

.page-header {
    text-align: left;
    margin-bottom: 4rem;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 200;
    letter-spacing: -1px;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1rem;
    font-weight: 300;
    opacity: 0.8;
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 0;
    bottom: 0;
    width: 1px;
    background: #000;
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 4rem;
}

.timeline-marker {
    position: absolute;
    left: 0.5rem;
    top: 0.3rem;
    width: 1rem;
    height: 1rem;
    background: #000;
    border-radius: 50%;
}

.timeline-content {
    border: 1px solid #000;
    padding: 2rem;
    transition: all 0.3s ease;
}

.timeline-content:hover {
    background: #000;
    color: #fff;
}

.timeline-date {
    font-size: 0.8rem;
    font-weight: 300;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    margin-top: -0.5rem;
    opacity: 0.7;
}

.timeline-content:hover .timeline-date {
    opacity: 0.9;
}

.timeline-content h3 {
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.timeline-content p {
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.4;
    opacity: 0.8;
}

.timeline-content:hover p {
    opacity: 0.9;
}

.hesias-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 1rem;
    border: 1px solid #000;
    padding: 0.5rem;
    background: #fff;
}

.timeline-content:hover .hesias-logo {
    border-color: #fff;
    background: #fff;
}

/* BTS logo styling - wider */
.timeline-item-bts .hesias-logo {
    width: 80px;
    height: 50px;
}

/* Pôle Universitaire logo styling - uniform */
.timeline-item-pole .hesias-logo {
    width: 60px;
    height: 60px;
}

/* Special styling for Pôle Universitaire item */
.timeline-item-pole .timeline-content {
    border-width: 2px;
    background: linear-gradient(135deg, rgba(255, 192, 203, 0.08), rgba(255, 105, 180, 0.08));
}

.timeline-item-pole .timeline-content:hover {
    background: #000;
    color: #fff;
}

/* Special styling for Stage item */
.timeline-item-stage .timeline-content {
    border-width: 2px;
    background: linear-gradient(135deg, rgba(255, 192, 203, 0.08), rgba(255, 105, 180, 0.08));
}

.timeline-item-stage .timeline-content:hover {
    background: #000;
    color: #fff;
}

.stage-title-wrapper {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.timeline-item-stage .hesias-logo {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    margin: 0;
}

.stage-title-wrapper h3 {
    margin: 0;
    flex: 1;
}

/* Special styling for Hesias item */
.timeline-item-hesias .timeline-content {
    border-width: 2px;
    background: linear-gradient(135deg, rgba(255, 165, 0, 0.05), rgba(255, 69, 0, 0.05));
}

.timeline-item-hesias .timeline-content:hover {
    background: #000;
    color: #fff;
}

/* Special styling for BTS item */
.timeline-item-bts .timeline-content {
    border-width: 2px;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.05), rgba(138, 43, 226, 0.05));
}

.timeline-item-bts .timeline-content:hover {
    background: #000;
    color: #fff;
}

/* Special styling for Vichy Communauté item */
.timeline-item-vichy .timeline-content {
    border-width: 2px;
    background: linear-gradient(135deg, rgba(0, 255, 127, 0.05), rgba(0, 123, 255, 0.05));
}

.timeline-item-vichy .timeline-content:hover {
    background: #000;
    color: #fff;
}

.timeline-item-vichy .hesias-logo {
    width: 60px;
    height: 60px;
}

/* General logo styling */
.hesias-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin: 0;
    border: 1px solid #000;
    padding: 0.5rem;
    background: #fff;
    flex-shrink: 0;
    display: block;
}

.timeline-content:hover .hesias-logo {
    border-color: #fff;
    background: #fff;
}

/* Title wrapper for all items with logos */
.timeline-item-hesias .timeline-content,
.timeline-item-pole .timeline-content,
.timeline-item-bts .timeline-content,
.timeline-item-stage .timeline-content,
.timeline-item-vichy .timeline-content {
    display: flex;
    flex-direction: column;
    min-height: 150px;
}

.timeline-item-hesias .timeline-content > div:first-child,
.timeline-item-pole .timeline-content > div:first-child,
.timeline-item-bts .timeline-content > div:first-child,
.stage-title-wrapper {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 0.5rem;
    min-height: 60px;
}

.timeline-item-hesias .timeline-content h3,
.timeline-item-pole .timeline-content h3,
.timeline-item-bts .timeline-content h3,
.stage-title-wrapper h3 {
    margin: 0;
    flex: 1;
    font-size: 1.2rem;
    font-weight: 300;
    line-height: 1.3;
}

/* Responsive */
@media (max-width: 768px) {
    .nav {
        padding: 1.5rem 0;
    }

    .nav-menu {
        gap: 2rem;
    }

    .main-content {
        padding: 6rem 0 3rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .timeline-item {
        padding-left: 3rem;
    }

    .timeline::before {
        left: 0.5rem;
    }

    .timeline-marker {
        left: 0;
    }

    .timeline-content {
        padding: 1.5rem;
    }

    .hesias-logo {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .nav {
        padding: 1rem 0;
    }

    .nav-menu {
        gap: 1.5rem;
    }

    .nav-link {
        font-size: 0.8rem;
    }

    .main-content {
        padding: 4rem 0 2rem;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }

    .timeline-item {
        padding-left: 2.5rem;
    }

    .timeline-content {
        padding: 1rem;
    }

    .hesias-logo {
        width: 40px;
        height: 40px;
    }
}