/* Police Aacher Bold pour le titre */
@font-face {
    font-family: 'AacherBold';
    src: url('fonts/Aacher-Bold.otf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

/* Style de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    /* overflow: hidden; /* Supprimer cette ligne */
    overflow-y: auto; /* Ajouter cette ligne --> défilement vertical au besoin */
}
    
body {
    font-family: 'Unica One', monospace;
    color: #fff;
    background-color: #000;
    margin: 0;
    padding: 0;
    position: relative;
    overflow-x: hidden;
    background-image: url('img/munoisybackgroundragingmu1080p.webp');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black; /* Test --> voir si le pseudo-élément est rendu */
    background-image: url('img/noise.png');
    background-repeat: repeat;
    opacity: 1; /* Opacité maximale pour le test */
    pointer-events: none;
    z-index: -1;
    /*animation: subtle-noise-anim 0.5s linear infinite alternate;*/
}

 @keyframes subtle-noise-anim {
    0% { opacity: 0.04; transform: translate(0, 0); }
    100% { opacity: 0.06; transform: translate(1px, 1px); }
} 


main {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px;
}

.intro h1 {
    font-family: 'AacherBold', sans-serif;
    font-size: 3rem;
    margin-top: 10px;
    margin-bottom: 10px;
    letter-spacing: 2px;
    color: #fff;
}

.intro {
    display: flex;
    flex-direction: column; /* Les éléments s'empilent verticalement */
    justify-content: center; /* Centrage vertical */
    align-items: center;     /* Centrage horizontal */
    text-align: center;      /* Centrer le texte dans chaque élément */
    height: 100%;            /* Garder la hauteur actuelle de .intro sans l'étirer */
}


.motto {
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 40px;
}

.highlighted-text {
    font-family: 'AacherBold', sans-serif;
    font-size: 10rem;
    color: #fff8e7;
    text-shadow: 0 0 6px #d90805, 0 0 10px rgba(217, 8, 5, 0.4);
    margin-top: 10px;
    letter-spacing: 1.5px;

    position: relative;
    display: inline-block;
    z-index: 1;
}



/* .image-section {
    margin-bottom: 50px;
}

.glitch-container {
    width: 800px;
    height: 800px;
    overflow: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    pointer-events: none;  <-- empêche de bloquer les clics en dessous 
}

.glitch-img {
    width: 50%;
    height: auto;
    object-fit: cover;
    animation: subtle-glitch 0.6s infinite;
    filter: brightness(1.2) contrast(1.1);
    pointer-events: none; /* important si image superpose .cta 
}*/

@keyframes subtle-glitch {
    0% { transform: translate(0, 0) scale(1); }
    10% { transform: translate(1px, -1px); }
    20% { transform: translate(-1px, 1px); }
    30% { transform: translate(0.5px, -0.5px); }
    40% { transform: translate(-0.5px, 0.5px); }
    50% { transform: translate(0, 0) scale(1.01); }
    100% { transform: translate(0, 0); }
}

/* Section CTA */
.cta {
    margin-top: 140px; /* Ajuste cette valeur selon tes besoins */
}


.cta .invitation {
    font-size: 1.5rem;
    margin-bottom: 20px;
    justify-content: center; /* Centrage vertical */
    align-items: center;     /* Centrage horizontal */
    text-align: center;  
}

/* Style type Linktree */
.linktree-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
}

.linktree-links a {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
    padding: 14px 30px;
    border: 2px solid #fff;
    border-radius: 10px;
    font-size: 1.1rem;
    width: 260px;
    text-align: center;
    transition: all 0.3s ease;
    font-weight: bold;
    letter-spacing: 1px;

    position: relative;
    z-index: 11;
    pointer-events: auto;
}

.linktree-links a:hover {
    background-color: #fff;
    color: #000;
    border-color: goldenrod;
}

/* Footer */
footer {
    margin-top: 80px;
    padding: 20px;
    background-color: transparent;
    text-align: center;
    border-top: 1px solid #333;
}

.footer-links a {
    margin: 0 10px;
    color: #fff;
    font-size: 0.9rem;
    text-decoration: none;
}

.footer-insta {
    margin-top: 10px;
}

.glitch {
  font-family: 'AacherBold', sans-serif;
  font-size: clamp(2.5rem, 8vw, 10rem);
  color: white;
  position: relative;
  margin-top: 20px;
  letter-spacing: 1.5px;
  text-align: center;
  z-index: 1;
  overflow: hidden;
  max-width: 95vw;
  animation: glitch-anim 3s infinite linear alternate-reverse, shift 4s ease-in-out infinite alternate; /* let 'blur' pour l'instant */
}

.glitch::before {
  content: attr(data-text);
  position: absolute;
  left: 0;
  width: 100%;
  top: 0;
  color: transparent;
  background: transparent;
  overflow: hidden;
  clip: rect(0, auto, 0, 0);
  text-shadow: none; /* Supp. text-shadow */
  z-index: -14;
  opacity: 0.8;
  transform: translateX(2px);
  animation: glitch-anim 3s infinite linear alternate-reverse, shift 4s ease-in-out infinite alternate;
}

.glitch::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  width: 100%;
  top: 0;
  color: transparent;
  background: transparent;
  overflow: hidden;
  clip: rect(0, auto, 0, 0);
  text-shadow: none; /* Supp. text-shadow */
  z-index: -14;
  opacity: 0.7;
  transform: translateX(-2px);
  animation: glitch-anim 3s infinite linear alternate-reverse, shift 4s ease-in-out infinite alternate;
}

@keyframes blur {
    0%, 40%, 50%, 60%, 90%, 95%, 100% {
        text-shadow:
            0px -5px 10px rgba(255,255,255,1),
            0px 0px 5px rgba(255,255,255,0),
            0px 0px 10px rgba(255,255,255,0),
            2px 1px 15px rgba(255, 100, 100, 0),
            0px 0px 20px rgba(255,255,255,0);
    }
    45%, 75% {
        text-shadow:
            0px -5px 10px rgb(236, 6, 6),
            0px 0px 5px rgb(255, 255, 255),
            0px 0px 10px rgba(255,255,255,1),
            2px 1px 15px rgb(0, 0, 0),
            0px 0px 20px rgba(255,255,255,1);
    }
    97.5% {
        text-shadow:
            0px -5px 10px rgba(255,255,255,0),
            0px 0px 5px rgba(255,255,255,0),
            0px 0px 10px rgba(255,255,255,0),
            2px 1px 4px rgb(221, 200, 13),
            0px 0px 20px rgba(255,255,255,0);
    }
}

@keyframes glitch-anim {
    0% {
        clip: rect(42px, 9999px, 44px, 0);
    }
    5% {
        clip: rect(12px, 9999px, 18px, 0);
    }
    10% {
        clip: rect(85px, 9999px, 90px, 0);
    }
    15% {
        clip: rect(24px, 9999px, 30px, 0);
    }
    20% {
        clip: rect(50px, 9999px, 60px, 0);
    }
    100% {
        clip: rect(10px, 9999px, 15px, 0);
    }
}

@keyframes shift {
    0%, 40%, 44%, 58%, 61%, 65%, 69%, 73%, 100% {
        transform: skewX(0deg);
    }
    41% {
        transform: skewX(10deg);
    }
    42% {
        transform: skewX(-10deg);
    }
    59% {
        transform: skewX(40deg) skewY(10deg);
    }
    60% {
        transform: skewX(-40deg) skewY(-10deg);
    }
    63% {
        transform: skewX(10deg) skewY(-5deg);
    }
    70% {
        transform: skewX(-50deg) skewY(-20deg);
    }
    71% {
        transform: skewX(10deg) skewY(-10deg);
    }
}

