@font-face {
    font-family: 'Play-Regular';
    src: url(../Play/Play-Regular.ttf) format('truetype');
}

:root {
    --text-color: #e6f1ff;
    /* Blanc cassé */
    --font-family: 'Play-Regular';
}

html {
    background: linear-gradient(135deg, #02001a 0%, #0a0a3a 50%, #000000 100%) fixed;
    min-height: 100vh;
}

body {
    margin: 0;
    padding: 3px;
    min-height: 100vh;
    background: transparent;
    flex-direction: column;
    display: flex;
    font-size: 16px;
    font-family: var(--font-family), math;
    color: var(--text-color);
    line-height: 1.6;
    isolation: isolate;
}


html::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: -1;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Ccircle cx='40' cy='80' r='1.2' fill='%23fff'/%3E%3Ccircle cx='150' cy='30' r='1.5' fill='%23fff'/%3E%3Ccircle cx='250' cy='120' r='1' fill='%23fff'/%3E%3Ccircle cx='90' cy='200' r='1.8' fill='%23fff'/%3E%3Ccircle cx='220' cy='260' r='1.2' fill='%23fff'/%3E%3Ccircle cx='50' cy='280' r='1' fill='%23fff'/%3E%3C/svg%3E");
    background-size: 300px 300px;
    animation: twinkle1 4s infinite ease-in-out;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: -1;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Ccircle cx='100' cy='100' r='1.5' fill='%23fff'/%3E%3Ccircle cx='250' cy='50' r='1' fill='%23fff'/%3E%3Ccircle cx='350' cy='200' r='2' fill='%23fff'/%3E%3Ccircle cx='150' cy='300' r='1.2' fill='%23fff'/%3E%3Ccircle cx='50' cy='350' r='1' fill='%23fff'/%3E%3Ccircle cx='300' cy='360' r='1.5' fill='%23fff'/%3E%3C/svg%3E");
    background-size: 400px 400px;
    animation: twinkle2 3s infinite ease-in-out;
}

body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: -1;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='500' height='500'%3E%3Ccircle cx='200' cy='150' r='1.2' fill='%23fff'/%3E%3Ccircle cx='50' cy='50' r='1' fill='%23fff'/%3E%3Ccircle cx='400' cy='80' r='1.5' fill='%23fff'/%3E%3Ccircle cx='300' cy='250' r='1' fill='%23fff'/%3E%3Ccircle cx='100' cy='400' r='1.2' fill='%23fff'/%3E%3Ccircle cx='450' cy='450' r='1.5' fill='%23fff'/%3E%3C/svg%3E");
    background-size: 500px 500px;
    animation: twinkle3 5s infinite ease-in-out;
}

@keyframes twinkle1 {
    0% {
        opacity: 0.2;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.2;
    }
}

@keyframes twinkle2 {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.1;
    }

    100% {
        opacity: 1;
    }
}

@keyframes twinkle3 {
    0% {
        opacity: 0.1;
    }

    33% {
        opacity: 0.8;
    }

    66% {
        opacity: 0.1;
    }

    100% {
        opacity: 0.5;
    }
}

/* --- Contenu Principal --- */
main {
    max-width: 1000px;
    padding: 20px;
    width: 30%;
    margin: 0 auto 250px;
    flex: 1;
    box-sizing: border-box;
}

main h1 {
    text-align: center;
}

.text-center {
    text-align: center;
}

.text-italic {
    font-style: italic;
    font-size: 0.9em;
    opacity: 0.8;
}

.indent {
    text-indent: 2em;
}

/* --- L'effet d'exploration --- */
.scroll-section {
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 1.3em;
    padding: 20px;
}

.scroll-section h1 {
    font-size: 3.5em;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
    margin: 0;
}

.scroll-section h2 {
    font-size: 2.2em;
    margin-bottom: 20px;
}

.scroll-section p {
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
    line-height: 1.8;
    text-align: justify;
    width: 100%;
}

/* --- Footer --- */
footer {
    padding: 20px;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.3);
}

/* --- Responsive Mobiles --- */
@media (max-width: 768px) {
    main {
        width: 95%;
    }
}