@import url('https://fonts.googleapis.com/css2?family=Courier+Prime:wght@700&display=swap');

:root {
    --primary-text-color: white;
    --font-courier-prime: 'Courier Prime', monospace;
    --font-sans-serif: sans-serif; /* Or a specific sans-serif font */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: var(--font-courier-prime);
    overflow: hidden;
    position: relative; /* Important for absolute positioning of .credit */
}
/* Conteneur principal qui se positionne derrière tout le reste */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Pour le placer en arrière-plan */
}

/* Styles communs aux deux divs de fond */
.background {
    position: absolute; /* Permet de les superposer */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;;
    background-position: center center;
    background-repeat: no-repeat;
        filter: saturate(2) blur(3px);

    
    /* C'est ici que la magie opère ! */

}

/* Au départ, le deuxième fond est invisible */
#bg2 {
    opacity: 0;
}

.content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centre verticalement le contenu */
    align-items: center;    /* Centre horizontalement le contenu */
    text-align: center;
    color: var(--primary-text-color);
    padding: 20px;
    z-index: 1; /* Assure que le contenu est au-dessus du fond */
}

.curved-title {
    width: 90%;
    max-width: 1000px;
    height: auto;
    overflow: visible;
    /* Ajustement pour centrer le SVG s'il y a un décalage */
    display: block; /* S'assure que le SVG est un élément de bloc */
    margin: 0 auto; /* Centre le SVG horizontalement dans son conteneur */
}

.title-text {
    fill: transparent;
    stroke: var(--primary-text-color);
    font-size: 10em;
    letter-spacing: -40px;
    stroke-width: 3px;
    font-style: italic;
    
}


.credit {
    position: fixed; /* Reste en bas même si la page défile (non pertinent ici car overflow: hidden) */
    bottom: 10px;    /* 10px du bas */
    left: 0;
    width: 100%;
    text-align: center;
    color: white; /* Couleur plus discrète */
    font-size: 0.8em;
    padding: 5px 0;
    z-index: 10; /* Assure qu'il est au-dessus de tout le reste */
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .title-text {
       font-size: 10em;
    letter-spacing: -50px;
    }

    .credit {
        font-size: 1em;
        bottom: 5px;
    }
}

@media (max-width: 480px) {
    .title-text {
      font-size: 15em;
    letter-spacing: -50px;
    stroke-width: 3px;
    }

    .curved-title {
        width: 95%;
    }

    .credit {
        font-size: 1em;
        bottom: 3px;
    }
}

/* Accessibility: Screen reader only content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}