/* ------------------------------
   Import & Reset
------------------------------ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

* {
    font-family: 'Inter', Arial, sans-serif;
    margin: 0;
    padding: 0;
}
html, body {
    font-family: 'Inter', sans-serif;
    background-color: #f8f8f8;
    color: #333;
    line-height: 1.6;
    min-height: 100%;
    overflow-y: scroll;
    scrollbar-width: none;        /* Firefox */
    -ms-overflow-style: none;     /* IE/Edge */
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none;                /* Chrome, Safari */
}

/* ------------------------------
   Layout
------------------------------ */
.wrapper {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

.container {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

/* ------------------------------
   Logo
------------------------------ */
.logoNormale {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
}

.logoNormale img {
    width: 180px;
    height: auto;
    border-radius: 5px;
}

/* ------------------------------
   Présentation
------------------------------ */
.presentation {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin: 30px 0;
}

.presentation p {
    font-size: 1.2em;
    color: #444;
    margin-top: 15px;
    line-height: 1.6;
}

/* ------------------------------
   Carousel
------------------------------ */
.carousel {
    position: relative;
    width: 100%;
    margin: 30px auto;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    background-color: transparent;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    padding: 0 5%;
    gap: 20px;
    box-sizing: content-box;
    background-color: transparent;
    height: 500px;
    align-items: center;
}

.carousel-track img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
    background-color: transparent;
    transition: transform 0.3s ease;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 1.5rem;
    border-radius: 50%;
    z-index: 2;
}

.carousel-btn.prev {
    left: 10px;
}

.carousel-btn.next {
    right: 10px;
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.7);
}

/* ------------------------------
   Route verticale
------------------------------ */
.road {
    width: 30px;
    height: 140vh;
    background-color: #444;
    overflow: hidden;
    z-index: 10;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    position: relative;
}

.lane-marking {
    position: absolute;
    left: 15px;
    width: 2px;
    height: 200%;
    opacity: 50%;
    background: repeating-linear-gradient(
            to bottom,
            white 0,
            white 40px,
            transparent 40px,
            transparent 80px
    );
    animation: move-markings-vertical 1s linear infinite;
}

@keyframes move-markings-vertical {
    from { transform: translateY(0); }
    to { transform: translateY(-80px); }
}

/* ------------------------------
   Voiture (scroll)
------------------------------ */
.moving-car {
    position: absolute;
    top: 0;
    left: 0;
    width: 25px;
    opacity: 100%;
    transform: translateY(0);
    transition: transform 0.1s linear;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* ------------------------------
   Responsive
------------------------------ */
@media screen and (max-width: 768px) {
    .road {
        display: none;
    }
    .titleAutoEcole{
        font-size: 23px;
    }

    .carousel-track img {
        height: 300px;
        object-fit: cover;
        border-radius: 10px;
        flex-shrink: 0;
        transition: transform 0.3s ease;
    }

    .logoNormale img {
        width: 140px;
    }

    .presentation p {
        font-size: 1em;
    }
}
