:root {
    --font-size-min: 24px;
    --font-size-max: 150px;
    --font-size-fluid: clamp(var(--font-size-min), calc(2rem + 4.5vw), var(--font-size-max));
}

@font-face {
font-family: 'Alte Haas Grotesk';
font-style: normal;
font-weight: normal;
src: local('Alte Haas Grotesk'), url('AlteHaasGroteskRegular.woff') format('woff');
}

@font-face {
font-family: 'Alte Haas Grotesk Bold';
font-style: normal;
font-weight: normal;
src: local('Alte Haas Grotesk Bold'), url('AlteHaasGroteskBold.woff') format('woff');
}


body {
    margin: 0;
    padding: 0;
    font-family: Alte Haas Grotesk, sans-serif;
    color: #FEFEFE;
    background-color: #130E0A;
    scroll-behavior: smooth;
}


#header {
    font-family: Alte Haas Grotesk Bold, sans-serif;
    position: fixed;
    top: 10%;
    width: 100%;
    text-align: center;
    font-size: var(--font-size-fluid);
    z-index: 2;
    color: #FEFEFE;
    text-shadow:
        0 0 1px #FEFEFE,
        0 0 3px #FEFEFE,
        0 0 6px #FEFEFE;
    opacity: 0.9; /* Opacité de base */
    transition: opacity 0.05s linear; /* Plus rapide = effet électrique */
}


#text {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 100vh;
}

#words-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: unset; /* On supprime gap, on gère l’espace via margin sur les divs */
    width: auto;/* permet au conteneur de s'adapter à la taille du contenu */
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    
}

#words-container div {
    display: inline-block;
    font-size: var(--font-size-fluid);
    color: #FEFEFE;
    text-shadow:
        0 0 1px #FEFEFE,
        0 0 3px #FEFEFE,
        0 0 6px #FEFEFE;
    opacity: 0.9;
    transition: opacity 0.05s linear;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    text-align: center;
    line-height: 1; /* Interlignage très compact */
    margin: 0.1em 0.15em; /* Marge verticale minimale, marge horizontale conservée */
}

::-webkit-scrollbar {
  display: none;
}

html {
  scrollbar-width: none;
}


