@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&display=swap');

@font-face {
    font-family: 'Umbra';
    src: url('./fonts/umbra.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

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

body {
    font-family: 'Roboto', sans-serif;
    background-color: #420061;
    color: #d7de46;
    overflow-x: hidden;
}

section {
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Section 1: Hero */
#hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#hero-image {
    position: absolute;
    bottom: -100%;
    left: 50%;
    transform: translateX(-50%);
    max-height: 90vh;
    max-width: 90%;
    animation: slideUp 2s forwards;
}

#hero-title {
    font-family: 'Umbra', sans-serif;
    font-size: 5rem;
    line-height: 1;
    text-align: center;
    opacity: 0;
    animation: fadeIn 1.5s forwards;
    animation-delay: 2s;
    position: relative;
    z-index: 2;
    color: #ffd350;
    text-shadow: 
        -1px -1px 0 #000,  
        1px -1px 0 #000,
        -1px 1px 0 #000,
        1px 1px 0 #000,
        3px 3px 5px rgba(0, 0, 0, 0.5);
   white-space: normal; /* Permet le retour à la ligne */
}

#hero-title .break {
    white-space: nowrap; /* "ROCK YOU" ne doit pas se casser */
}

@media (max-width: 600px) {  /* Ajuste la valeur selon besoin */
    #hero-title .break {
        display: block;    /* S'affiche sur une nouvelle ligne */
    }
}


#hero-subtitle {
    margin-top: 30px;
    font-family: 'Umbra', sans-serif;
    font-size: 3rem;
    line-height: 1;
    text-align: center;
    opacity: 0;
    animation: fadeIn 1.5s forwards;
    animation-delay: 2.5s;
    position: relative;
    z-index: 2;
    color: #ffd350;
    text-shadow: 
        -1px -1px 0 #000,  
        1px -1px 0 #000,
        -1px 1px 0 #000,
        1px 1px 0 #000,
        2px 2px 4px rgba(0, 0, 0, 0.5);
}

@keyframes slideUp {
    to {
        bottom: 0;
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Section 2: Video */
#video {
    /*min-height: 100vh;*/
    padding: 80px 0;
}

.video-container {
    width: 95%;
    max-width: 1200px;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.video-container iframe,
.video-container #youtube-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-fallback {
    margin-top: 20px;
    text-align: center;
    font-size: 1rem;
    display: none; /* Caché par défaut, affiché via JavaScript si la vidéo ne se charge pas */
}

.video-fallback a {
    color: #d7de46;
    text-decoration: underline;
    font-weight: bold;
    transition: all 0.3s ease;
}

.video-fallback a:hover {
    color: #ffffff;
}

/* Section 3: Mailing List */
#mailing {
   /* min-height: 50vh;*/
}

.form-container {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

h2 {
    font-family: 'Umbra', sans-serif;
    font-size: 3em;
    line-height: 1;
    margin-bottom: 30px;
    text-align: center;
    color: #ffd350;
    text-shadow: 
        -1px -1px 0 #000,  
        1px -1px 0 #000,
        -1px 1px 0 #000,
        1px 1px 0 #000,
        2px 2px 4px rgba(0, 0, 0, 0.5);
}

.form-group {
    margin-bottom: 20px;
}

input[type="email"] {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.9);
    color: #420061;
    font-size: 1rem;
}

button {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 5px;
    background-color: #ffd350;
    color: #420061;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover {
    background-color: #d7de46;;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.message {
    margin-top: 20px;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
}

.success {
    background-color: rgba(76, 175, 80, 0.3);
    color: #d7de46;
}

.error {
    background-color: rgba(244, 67, 54, 0.3);
    color: #d7de46;
}

/* Section 4: Social Media */
#social {
    /*min-height: 100vh;*/
    padding-bottom: 80px;
}

.social-container {
    width: 90%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.social-feeds {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.feed {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    height: 500px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
}

.social-icon {
    font-size: 3rem;
    color: #d7de46;
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: scale(1.2);
    color: #ffffff;
}

/* Responsive */
@media (max-width: 768px) {
    #hero-title {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .form-container {
        padding: 20px;
    }
    
    .social-icon {
        font-size: 2.5rem;
    }
}

/* Animations supplémentaires */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Effet de parallaxe */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}
