html, body {
    min-height: 100%;
    height: 100%;
    overflow-x: hidden;
}

body {
    background-color: #171717;
    font-family: "Red Hat Display", sans-serif;

}

img, video { max-width: 100%; height: auto; }

h2{
    font-size: clamp(28px, 6vw, 60px);
    z-index: 1;
}
h3{
    font-size: clamp(20px, 4.5vw, 50px);
    z-index: 1;
}
p, ul, ol, dl, dt, dd {
    font-size: clamp(15px, 6vw, 25px);
}
.button{
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px;
}


button {
    border: none ;
    border-radius: 50px;
    padding: 10px 30px;
    width: 200px;
    height: 100px;
    cursor: pointer;
    font-size: 30px;
    font-family: "Momo Trust Display", sans-serif;
    font-weight: 400;
    z-index: 2;
}
.orange {
    background: linear-gradient(90deg, #f1a60a, #f46f03);
    color: white;
    transition: background 0.5s ease, color 0.5s ease;
}
.orange:hover {
    color: black;
    background: white;
}

.gray {
    background: linear-gradient(90deg, #545454, #2e2e2e);
    color: white;
    transition: background 0.5s ease, color 0.5s ease;
}
.gray:hover {
    background: white;
    color: black;
}

.centered-text {
    text-align: center;
}
.centered-text h2:first-of-type {
    color: #ffffff;
}
.centered-text h3:last-of-type {
    color: #909090;
}

 header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px 20px;
    }

    #icon {
        width: 500px;
        height: auto;
        margin-right: 15px;
    }
    #github-logo {
        width: 50px;
        height: auto;
        margin-right: 30px;
    }

 footer {
     display: flex;
     justify-content: flex-end;
     align-items: end;
     z-index: 1;
    }

    #serveur {
        display: block;
        position: relative;
        left: 0;
        bottom: 0; /* colle en bas si souhaité; ajustez selon besoin */
        margin: 50px;
        width: 1200px;
        height: auto;
        transform: translateX(635px); /* partie coupée par le bord gauche */
        transition: transform 0.65s ease;
        z-index: 10; /* reste au-dessus du footer */
    }


    #serveur:hover {
        transform: translateX(210px);
    }



/* ===== Animated SVG background ===== */
body {
    position: relative; /* needed for pseudo-element stacking */
}
.cadre {
    display: flex;
    justify-content: center;
    z-index: 10;
    gap: 5vmax;
    margin: 50px;
    h2{
        text-align: center;
    }
    h3{
        text-align: center;
    }

}
.cadre-un {
    color: white;
    padding: 40px;
    border-radius: 15px;
    text-align: justify-all;
    backdrop-filter: blur(20px);
    background-color: rgba(0, 0, 0, 0.42);

}
.cadre-deux {
    color: white;
    padding: 40px;
    border-radius: 15px;
    text-align: justify;
    backdrop-filter: blur(20px);
    background-color: rgba(0, 0, 0, 0.50);
}
.cadre-trois{
    li{
        margin-bottom: 20px;
    }
    color: white;
    padding: 40px;
    border-radius: 15px;
    text-align: justify;
    backdrop-filter: blur(20px);
    background-color: rgba(0, 0, 0, 0.50);
}
body::after {
    content: "";
    position: fixed;
    bottom: -40vw;
    left: 0;
    top: auto;
    transform: translateX(-50%);
    width: 120vmin;
    height: 120vmin;
    background: url("../pictures/blob.svg") no-repeat center bottom;
    background-size: contain;
    opacity: 1;
    pointer-events: none;
    filter: blur(10px);
    animation: blobSwingReverse 7s ease-in-out infinite alternate;
    z-index: -1;
    will-change: transform;
}

@keyframes blobSwing {
    0%   { transform: rotate(-12deg) translateX(-3vw); }
    100% { transform: rotate(12deg)  translateX(3vw); }
}

@keyframes blobSwingReverse {
    0%   { transform: rotate(10deg)  translateX(4vw); }
    100% { transform: rotate(-10deg) translateX(-4vw); }
}

@media (prefers-reduced-motion: reduce) {
    body::after {
        animation: none;
    }
}
@media (max-width: 1100px) {
    .cadre{
        flex-direction: column;
    }
    body::after {
        filter: blur(10px);
    }
    .orange {
        background: linear-gradient(90deg, #f17e0a, #f44303);
        color: white;
        transition: background 0.5s ease, color 0.5s ease;
}

@media (max-width: 768px) {
    #serveur {
        display: none;
    }
    #github-logo {
        display: none;
    }
    .button {
        align-items: center;
        flex-direction: column;
        gap: 12px;
    }

    button {
        width: 100vb;
        max-width: 260px;
        height: auto;
        padding: 12px 18px;
        font-size: 20px;

    }

}}
