body {
    margin: 0;
    font-family: "Raleway", sans-serif;
}

.header {
    height: 77px;
    border-bottom: 1.9px solid black;
    display: flex;
    align-items: center;
}

.fleche img {
    width: clamp(80px, 10vw, 140px);
    margin-left: 28px;
}

.fleche:hover {
    opacity: 0.4;
}

a:hover img {
    opacity: 0.4;
}

h1 {
    text-align: center;
    font-weight: 200;
    font-size: clamp(40px, 5vw, 60px);
    margin-top: 70px;
    text-decoration: underline;
    text-decoration-thickness: 0.5px;
    text-underline-offset: 20px;
}

.texte {
    max-width: 1100px;
    margin: auto;
    padding: 5px 20px 100px;
    text-align: center;
    line-height: 30px;
    font-size: 20px;
}

.slider-container {
    display: flex;
    justify-content: center;
    margin-top: 100px;
}

.slider {
    position: relative;
    width: 200px;
    height: 200px;
    transform-style: preserve-3d;
    animation: rotate 23s linear infinite;
}

@keyframes rotate {
    0% {
        transform: perspective(1000px) rotateY(0deg);
    }

    100% {
        transform: perspective(1000px) rotateY(360deg);
    }
}

.slider span {
    position: absolute;
    width: 100%;
    height: 100%;
    transform: rotateY(calc(var(--i)*36deg)) translateZ(400px);
}

.slider span img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.8s;
}

.slider span:hover img {
    transform: translateY(-20px) scale(1.1);
    cursor: pointer;
}

.slider:hover {
    animation-play-state: paused;
}

.ligne {
    border-bottom: 1.9px solid black;
    width: 600px;
    height: 200px;
    margin: 0 auto 150px;
}

.fullscreen-container {
    position: fixed;
    inset: 0;
    background: rgb(50, 50, 50);
    display: flex;
    justify-content: center;
    align-items: center;
}

.fullscreen-image {
    max-width: 90%;
    max-height: 90%;
}

.close {
    position: absolute;
    top: 0px;
    right: -50px;
    width: 200px;
    height: auto;
    cursor: pointer;
    opacity: 1;
}

.close:hover {
    opacity: 0.5;
}

body {
    margin: 0;
    font-family: "Raleway", sans-serif;
}

.header {
    height: 77px;
    border-bottom: 1.9px solid black;
    display: flex;
    align-items: center;
}

.fleche img {
    width: clamp(80px, 10vw, 140px);
    margin-left: 28px;
}

.fleche:hover {
    opacity: 0.4;
}

a:hover img {
    opacity: 0.4;
}

h1 {
    text-align: center;
    font-weight: 200;
    font-size: clamp(40px, 5vw, 60px);
    margin-top: 70px;
    text-decoration: underline;
    text-decoration-thickness: 0.5px;
    text-underline-offset: 20px;
}

.texte {
    max-width: 1100px;
    margin: auto;
    padding: 5px 20px 100px;
    text-align: center;
    line-height: 30px;
    font-size: 20px;
}

.slider-container {
    display: flex;
    justify-content: center;
    margin-top: 100px;
}

.slider {
    position: relative;
    width: 200px;
    height: 200px;
    transform-style: preserve-3d;
    animation: rotate 23s linear infinite;
}

@keyframes rotate {
    0% {
        transform: perspective(1000px) rotateY(0deg);
    }

    100% {
        transform: perspective(1000px) rotateY(360deg);
    }
}

.slider span {
    position: absolute;
    width: 100%;
    height: 100%;
    transform: rotateY(calc(var(--i)*36deg)) translateZ(400px);
}

.slider span img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.8s;
    user-select: none;
    -webkit-user-drag: none;
}

.slider span:hover img {
    transform: translateY(-20px) scale(1.1);
    cursor: pointer;
}

.slider:hover {
    animation-play-state: paused;
}

.ligne {
    border-bottom: 1.9px solid black;
    width: 600px;
    height: 200px;
    margin: 0 auto 150px;
}

.fullscreen-container {
    position: fixed;
    inset: 0;
    background: rgb(50, 50, 50);
    display: flex;
    justify-content: center;
    align-items: center;
}

.fullscreen-image {
    max-width: 90%;
    max-height: 90%;
    user-select: none;
    -webkit-user-drag: none;
}

.close {
    position: absolute;
    top: 0px;
    right: -50px;
    width: 200px;
    height: auto;
    cursor: pointer;
    opacity: 1;
}

.close:hover {
    opacity: 0.5;
}

@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    .header {
        display: flex;
        align-items: center;
        padding: 0 20px;
    }

    .fleche img {
        margin-left: 0;
    }

    h1 {
        font-size: 32px;
        margin-top: 40px;
        text-underline-offset: 10px;
    }

    .texte {
        width: 90%;
        margin: 20px auto;
        max-height: 250px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 15px;
        border-bottom: 1px solid #aaa;
        margin-bottom: -50px;
        text-align: left;
    }

    .texte p {
        font-size: 16px;
        line-height: 1.6;
        margin: 0;
    }

    .slider {
        position: static;
        width: 100%;
        height: auto;
        transform: none;
        animation: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .slider span {
        position: static;
        transform: none;
        width: 90%;
        height: auto;
    }

    .slider span img {
        width: 100%;
        height: auto;
        transform: none !important;
        box-shadow: 4px 5px 4px rgba(0, 0, 0, 0.4);
        border-radius: 1%;
    }

    .slider span:hover img {
        transform: none;
    }

    .ligne {
        width: 90%;
        height: auto;
        margin: 60px auto;
    }

    .close {
        top: -15px;
        right: -80px;
        width: 250px;
    }
}