/* RESET de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.5;
    background-color: #f9f9f9;
    color: #222;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 70px;
    font-size: clamp(14px, 2vw, 18px);
    height: 100%;
    overflow: hidden;
}

/* SECTIONS */
section {
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease;
    padding: 20px 30px;
    width: min(100%, 1100px);
    background: white;
    border-radius: 8px;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.1);
    text-align: center;
    overflow-y: auto;
    border-left: 5px solid #0078d7;
}

section.active {
    display: block;
    opacity: 1;
}

/* TITRES */
h1, h2, h3, h4 {
    margin-bottom: 12px;
    color: #222;
}

h1 {
    font-size: 2.4rem;
}

h2 {
    font-size: 1.8rem;
    border-bottom: 3px solid #0078d7;
    padding-bottom: 6px;
    margin-bottom: 24px;
}

h3 {
    font-size: 1.4rem;
}

p {
    margin-bottom: 16px;
    color: #444;
}

/* TIMELINE */
.timeline-container {
    position: relative;
    padding-left: 40px;
    text-align: left;
}

.timeline {
    position: absolute;
    left: 18px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #0078d7;
    border-radius: 2px;
}

.checkpoint {
    position: relative;
    margin-bottom: 30px;
}

.checkpoint::before {
    content: '';
    position: absolute;
    left: -26px;
    top: 8px;
    width: 14px;
    height: 14px;
    background: white;
    border: 4px solid #0078d7;
    border-radius: 50%;
}

.content h1 {
    font-size: 1.4rem;
    margin-bottom: 6px;
}

/* CARTES */
.card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.card {
    background: #f1f1f1;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    padding: 1.2em;
    flex: 1 1 clamp(220px, 25%, 280px);
    max-width: 100%;
    text-align: center;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* STAGE */
.stage-card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 20px;
    text-align: center;
    margin-bottom: 30px;
}

.stage-card h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #222;
}

.stage-date {
    font-size: 0.95rem;
    color: #666;
}

.stage-card ul {
    list-style-type: disc;
    padding-left: 20px;
    margin-bottom: 12px;
    text-align: left;
}

.stage-card .btn {
    margin-top: 12px;
}

/* BOUTONS */
.btn {
    background-color: #0078d7;
    border: none;
    color: white;
    padding: 10px 18px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
    margin-top: 12px;
}

.btn:hover {
    background-color: #005fa3;
}

/* MENU BAS DE PAGE */
.menu {
    font-size: 30px;
    position: fixed;
    bottom: 0;
    width: 100%;
    background: white;
    border-top: 1px solid #ddd;
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 10px 0;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.menu-img {
    width: 40px;
    height: 40px;
    cursor: pointer;
    filter: grayscale(60%);
    transition: filter 0.3s ease, transform 0.3s ease;
}

.menu-img:hover {
    filter: none;
    transform: scale(1.1);
}

.menu-img.active {
    filter: none;
    transform: scale(1.2);
}

/* SECTION PROFIL */
.profile-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}

.profile-photo img {
    width: clamp(100px, 25vw, 180px);
    height: clamp(100px, 25vw, 180px);
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.profile-text {
    max-width: 600px;
    width: 100%;
}

/* --- TABLETTE --- */
@media (max-width: 1024px) {
    .card {
        flex: 1 1 clamp(200px, 45%, 100%);
    }

    section {
        padding: 20px 15px;
    }

    .profile-text {
        max-width: 90%;
    }
}

/* --- MOBILE --- */
@media (max-width: 600px) {
    html, body {
        height: auto;
        overflow: auto;
    }

    body {
        flex-direction: column;
        align-items: stretch;
        padding-bottom: 100px;
    }

    section {
        padding: 16px;
        width: 100%;
        border-radius: 0;
        box-shadow: none;
        overflow-y: visible;
    }

    .timeline-container {
        padding-left: 30px;
    }

    .timeline {
        left: 14px;
    }

    .checkpoint::before {
        left: -20px;
    }

    .card-container {
        flex-direction: column;
        gap: 12px;
    }

    .card, .stage-card {
        width: 100%;
        padding: 16px;
    }

    .profile-container {
        padding: 10px;
        gap: 12px;
    }

    .menu {
        height: 80px;
        font-size: 26px;
        padding: 10px;
        gap: 12px;
    }

    .menu-img {
        width: 42px;
        height: 42px;
    }
}
