* {
    font-family: "Oswald", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    margin: 0;
    padding: 0;
    list-style: none;
    text-decoration: none;
    box-sizing: border-box;
}

body {
    background-color: rgba(254, 249, 246);
}

.pres-top {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    color: rgba(73, 76, 173);
    margin: 1% 1% 0 2%;
}

.pres-top a {
    color: rgba(73, 76, 173);
}

.pres-top-title {
    display: flex;
    flex-direction: column;
}

.menu {
    position: relative;
    cursor: pointer;
    z-index: 1000;
}

.menu > h2 {
    font-size: 2rem;
    padding: 0.4em 0.8em;
    border-radius: 0.4em;
    transition: background 0.3s ease;
}

.menu:hover > h2 {
    background: rgba(73, 76, 173, 0.1);
}

.menu-list::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 0;
    width: 100%;
    height: 10px;
}

.menu-list {
    position: absolute;
    top: 100%;
    margin-top: 10px;
    right: 0;
    min-width: 220px;

    background: rgba(73, 76, 173);
    border-radius: 0.8em;
    padding: 0.5em 0;
    z-index: 1001;

    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    transition-delay: 0.1s;
    box-shadow: 0 1rem 2rem rgba(0,0,0,0.3);
}

.menu:hover .menu-list {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition-delay: 0s;
}

.menu-list a {
    display: block;
    padding: 0.8em 1.2em;
    font-size: 1.4rem;
    color: rgba(254, 249, 246);
    transition: background 0.25s ease, padding-left 0.25s ease;
}

.menu-list a:hover {
    background: rgba(255, 255, 255, 0.15);
    padding-left: 1.6em;
}


.pres-bottom {
    position: flex;
    text-align: center;
    align-items: flex-end;
    font-size: 6em;
    margin-top: 2%;
    color: rgba(73, 76, 173);
}

.pres-mid {
    display: flex;
    justify-content: center;
    align-items: center;
}

.pres-mid img {
    margin-right: 1%;
}

.pres-mid p {
    font-size: 1.5em;
    color: rgba(73, 76, 173);
}

.formation-top {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 6em;
    color: rgba(73, 76, 173);
    margin: 0% 0% 3%;
}

.separateur {
    border: 0;
    height: 0.1em;
    background: rgba(73, 76, 173);
    width: 80%;
    border-radius: 0.1em;
}

.formation-mid {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 90%;
    max-width: 900px;
    margin: auto;
}

.formation-mid h2 {
    background-color: rgba(73, 76, 173);
    color: white;
    width: 100%;
    display: block;
    text-align: center;
    padding: 1% 0% 1%; 
}

.formation-mid h3 {
    background-color: rgb(113, 116, 209);
    color: white;
    width: 100%;
    display: block;
    text-align: center;
    padding: 1% 0% 1%; 
}

.formation-mid p {
    padding: 5%;
    font-size: 1.5em;
}

.arrow p {
    font-size: 5em;
    color: rgb(113, 116, 209);
}

.formation-mid div{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 0.2em solid rgba(73, 76, 173);
}

.formation-mid .arrow {
    border: none;
}

.footer {
    margin: 5%;
}

/* ── CAROUSEL ── */
.carousel-section {
    margin: 0 auto 6%;
    max-width: 900px;
    padding: 0 1em;
}

.carousel-track-wrapper {
    display: flex;
    align-items: center;
    gap: 1em;
}

.carousel-track {
    flex: 1;
    overflow: hidden;
    border-radius: 0.8em;
    border: 0.2em solid rgba(73, 76, 173);
    position: relative;
    min-height: 300px;
}

.carousel-slide {
    display: none;
    flex-direction: column;
    animation: slideFadeIn 0.4s ease;
}

.carousel-slide.active {
    display: flex;
}

@keyframes slideFadeIn {
    from { opacity: 0; transform: translateX(30px); }
    to   { opacity: 1; transform: translateX(0); }
}

.slide-label {
    background-color: rgba(73, 76, 173);
    color: white;
    text-align: center;
    padding: 0.6em 1em;
    font-size: 1.8rem;
    letter-spacing: 0.05em;
}

.slide-content {
    padding: 5% 8%;
    display: flex;
    flex-direction: column;
    gap: 0.6em;
}

.slide-content h2 {
    font-size: 2rem;
    color: rgba(73, 76, 173);
}

.slide-content h3 {
    font-size: 1.3rem;
    color: rgb(113, 116, 209);
}

.slide-content p {
    font-size: 1.3rem;
    color: #333;
    line-height: 1.5;
}

.slide-links {
    display: flex;
    gap: 1.2em;
    margin-top: 0.5em;
}

.slide-links a {
    font-size: 1.3rem;
    color: rgba(73, 76, 173);
    display: flex;
    align-items: center;
    gap: 0.4em;
    transition: color 0.2s ease;
}

.slide-links a:hover {
    color: darkorchid;
}

/* Boutons fléchés */
.carousel-btn {
    background: rgba(73, 76, 173);
    color: white;
    border: none;
    border-radius: 50%;
    width: 2.8em;
    height: 2.8em;
    font-size: 1.4rem;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s ease, transform 0.2s ease;
}

.carousel-btn:hover {
    background: rgb(113, 116, 209);
    transform: scale(1.1);
}

/* Points de navigation */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.6em;
    margin-top: 1.2em;
}

.carousel-dot {
    width: 0.75em;
    height: 0.75em;
    border-radius: 50%;
    background: rgb(113, 116, 209, 0.4);
    border: none;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease;
}

.carousel-dot.active {
    background: rgba(73, 76, 173);
    transform: scale(1.25);
}


.wip-container {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: rgba(73, 76, 173);
    padding: 2em;
}

.wip-container i {
    font-size: 4rem;
    margin-bottom: 0.5em;
    color: rgb(113, 116, 209);
}

.wip-container h1 {
    font-size: 4rem;
    margin-bottom: 0.5em;
}

.wip-container p {
    font-size: 1.5rem;
    max-width: 700px;
    opacity: 0.8;
    margin-bottom: 2em;
}

.wip-btn {
    padding: 0.8em 2em;
    border-radius: 0.5em;
    background: linear-gradient(180deg, rgba(73, 76, 173), rgb(113, 116, 209));
    color: white;
    font-size: 1.2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wip-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.3);
}

@media (max-width: 700px) {
    .pres-top {
        align-items: center;
        text-align: center;
        gap: 10px;
    }

    .pres-bottom {
        font-size: 2.0em;
    }

    .pres-mid {
        flex-direction: column;
        padding: 20px;
        text-align: center;
    }

    .pres-mid img {
        width: 50%;
        height: auto;
        margin: 0 0 10px 0;
    }

    .pres-mid p {
        font-size: 1.2em;
    }

    .menu-list {
        min-width: 110px;
        margin-top: 10px;

        transform: none;
        transition: none;
    }

    .menu:hover .menu-list {
        transform: none;
    }

    .menu-list a:hover {
        background: rgba(255, 255, 255, 0.15);
        padding-left: 1.2em;
    }

    .formation-top {
        font-size: 2.5em;
        text-align: center;
    }

    .arrow p {
        font-size: 3em;
    }

    .projects-container {
        flex-direction: column;
        align-items: center;
    }

    .project-card {
        width: 90%;
        height: 200px;
    }

    .project-card p {
        font-size: 1.6rem;
    }

    .content-block {
        width: 90%;
        margin-top: 10px;
    }

    .wip-container h1 {
        font-size: 2.2rem;
    }

    .wip-container p {
        font-size: 1.2rem;
    }

    .carousel-btn {
        width: 2.2em;
        height: 2.2em;
        font-size: 1.1rem;
    }

    .slide-content h2 { font-size: 1.5rem; }
    .slide-label { font-size: 1.4rem; }
}
