@font-face {
    font-family: "Amuse-Bouche";
    src: url("../css/fonts/Amuse-Bouche.otf") format("opentype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "Terminal";
    src: url("../css/fonts/Modeseven-L3n5.ttf") format("opentype");
    font-weight: normal;
    font-style: normal;
}

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

main {
    position: relative;
    /* Pour que les décos absolute se basent sur le main */
    width: 100%;
    overflow: hidden;
    flex: 1;
    /* Empêche les débordements */
    /* min-height: 80vh; à retirer ? */
    padding-bottom: 0px;
    /* height: 69vh; */
}

body {
    color: black;
    background-color: #fff7f0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.hero-section {
    display: flex;
    /* Active le mode Flexbox */
    align-items: center;
    /* Centre verticalement */
    justify-content: space-between;
    /* Largeur max pour ne pas que ce soit trop écarté sur grands écrans */
    margin: 0 auto;
    /* Centre le tout au milieu de la page */
    padding: 50px 20px;
    /* Un peu d'espace autour */
    height: 100%;
    width: 90vw;
}

.content-left {
    z-index: 5;
    /* Pour passer au dessus des décos */
    display: flex;
    flex-direction: column;
    /* gap: 30px; */
    gap: 3vh;
    position: relative;
    bottom: 15vh;
    /* Espace entre le titre, la date et le bouton */
}

header {
    /* Version originale : 2px 18px 34px -3px #00000040 */
    box-shadow: 0.18vh 1.67vh 3.15vh -0.28vh #00000040;
    height: 7vh;
    /* height: 7.5vh; */
    z-index: 1000;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

header nav ul {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1.7vw;
    list-style: none;
    position: relative;
    right: 2vw;
}

header nav ul li a {
    text-decoration: none;
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
    color: #5c3f62;
    font-size: 1.2vw;
    position: relative;
}

header #logo {
    margin-right: 26vw;
    transition: all 0.2s ease;
    width: 3vw;
    height: auto;
    padding: 5px;
}

header #logo:hover {
    transform: scale(1.05);
}

/* Hover de la nav */

.nav-link::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #5c3f62;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.profile {
    position: relative;
    top: 0.15vw;
    padding: 0.2vw;
    width: 2vw;
    overflow: hidden;
    position: relative;
    transition: all 0.2s ease;
}

.profile:hover {
    transform: scale(1.15);
}

.titre {
    display: grid;
    width: max-content;
    margin-left: 10vw;
    margin-top: 15vh;
    /* Version originale : 2px 5px 2px rgba(0, 0, 0, 0.11) */
    text-shadow: 0.18vh 0.46vh 0.18vh rgba(0, 0, 0, 0.11);
}

.festival_titre {
    color: black;
    font-family: "Amuse-Bouche";
    font-size: 5vw;
    /* Utilise 'vw' pour que la taille du texte s'adapte aussi à l'écran */
    width: max-content;
    /* Version originale : */
    /* text-shadow: 3px 4px 0px #c591e2; */
    /* text-shadow: 0.28vh 0.37vh 0vh #c591e2; */
    /* On multiplie quasiment par deux pour retrouver l'impact visuel */
    text-shadow: 0.5vh 0.6vh 0vh #c591e2;
    position: relative;
    right: 10vw;
}

.mmi {
    font-family: "Archivo Black", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.description_titre {
    width: max-content;
    z-index: 1;
    position: relative;
    margin-left: 90px;
    top: 41px;
}

.description {
    position: relative;
    right: 9%;
}

.description h1 {
    color: #232323;
    font-family: "Instrument Sans";
    font-size: 4vw;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    /* text-shadow: -5px 4px 0px #ffd573; */
    /* Version équilibrée : ni trop fin, ni trop massif */
    text-shadow: -0.65vh 0.55vh 0vh #ffd573;
    position: relative;
    left: 25vw;
    width: 100vw;
}

.description p {
    width: fit-content;
    font-family: "Istok Web", sans-serif;
    font-weight: 400;
    font-style: normal;
    color: black;
    font-size: 2vw;
    margin-left: 9vw;
}

.decoration {
    width: max-content;
    left: 0;
    position: relative;
}

.camera {
    position: absolute;
    z-index: 1;
    left: 100px;
    top: 84%;
}

.deco1 {
    position: absolute;
    /* bottom: -30vh; */
    bottom: 0vh;
    left: 0;
    width: 30vw;
}

.deco2 {
    position: absolute;
    right: 0;
    top: 0;
    z-index: 1;
    width: 25vw;
    pointer-events: none;
}

.hello {
    position: absolute;
    left: 400px;
    top: 66px;
}

.content-right {
    position: absolute;
    right: 0;
    bottom: 0;
}

.gommery {
    position: relative;
    z-index: 5;
    width: 28vw;
    height: auto;
    bottom: -6vh;
}

.cup {
    position: absolute;
    z-index: 5;
    bottom: -6vh;
    right: 18vw;
    width: 15vw;
}

.rap {
    color: whitesmoke;
}

header nav ul li:first-child {
    margin-right: auto;
    margin-left: 40px;
}

#live {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    width: 450px;
    margin-top: 5vh;
    left: 19%;
    position: relative;
}

.btn-wrapper {
  position: relative;
  width: fit-content;
}

#live p {
    font-family: "Istok Web", sans-serif;
    font-weight: bold;
    font-style: normal;
    color: black;
    font-size: 40px;
    text-align: end;
}

#live a {
    display: inline-block;
    width: fit-content;
    text-decoration: none;
    border-radius: 20px;
}

#live a.btn-live {
  /* Propriétés de positionnement */
  display: flex;
  justify-content: center; /* Centre le bloc de texte horizontalement */
  align-items: center; /* Centre le bloc de texte verticalement */

  /* --- AJOUTS IMPORTANTS POUR CORRIGER LE TEXTE --- */
  text-align: center; /* OBLIGATOIRE : Centre les lignes de texte entre elles */
  line-height: 1.2; /* Resserre l'espace entre les deux lignes comme un vrai bouton */
  text-decoration: none; /* Enlève le soulignement du lien */
  /* ------------------------------------------------ */

  /* Propriétés visuelles */
  color: #000;
  font-family: "Instrument Sans";
  font-size: 1.8vw;
  padding: 0 1vw; /* Légèrement réduit pour laisser plus de place au texte */
  font-style: normal;
  font-weight: 500;
  border-radius: 2vh;
  background: linear-gradient(
    180deg,
    rgba(255, 184, 86, 0.92) 0%,
    #fdf3a2 100%
  );
  box-shadow: 0 0.55vh 0.55vh 0 rgba(0, 0, 0, 0.25);
  width: 25vw;
  height: 12vh;
  border: 0px solid;
  cursor: pointer;
  transition: transform 0.3s ease;
  z-index: 200;
}

/* Animation du bouton quand on survole le parent #live */
#live:hover a.btn-live {
  transform: scale(1.075);
}

/* Animation de la flèche quand on survole le parent #live */
#live:hover #fleche {
  /* On garde la rotation initiale de -23deg et on ajoute le scale */
  transform: rotate(-23deg) scale(1.15);
}

/* Optionnel : ajout d'une transition sur la flèche pour que ce soit fluide */
#fleche {
  transition: transform 0.3s ease;
}

footer {
    height: 150px;
    /* position: fixed; */
    background-color: #fff7f0;
    width: 100%;
    z-index: 200;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* Version originale : 0px 8px 40px 0px rgba(0, 0, 0, 0.25) */
    box-shadow: 0 0.75vh 3.7vh 0 rgba(0, 0, 0, 0.25);
    /* bottom: 0; */
}

.socials {
    display: flex;
    gap: 2vw;
    justify-content: center;
    align-items: center;
    margin-top: 0.2vw;
    padding-top: 0.5vh;
}

.social svg {
    width: 2.3vw;
    aspect-ratio: 1 / 1;
    height: auto;
    padding: 0.45vw;
    fill: #fff7f0;
    background-color: #353b40;
    border-radius: 50%;
    display: inline-block;
    transition: all 0.2s ease;
    overflow: visible;
}

/* #facebook {
  padding: 6px;
}

#instagram {
  padding: 5px;
}

#twitter {
  padding: 7px;
}

#youtube {
  padding: 7px;
}

#tiktok {
  padding: 11px;
}

#linkedin {
  padding: 6px;
} */

.social svg:hover {
    transform: scale(1.1);
}

#links {
    display: flex;
    justify-content: center;
    gap: 2vw;
    padding: 8px;
}

#links a {
    text-decoration: none;
    font-family: "Istok Web", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 1vw;
    color: #353b40;
}

#links a:hover {
    text-decoration: underline;
}

footer p {
    text-align: center;
    font-family: "Istok Web", sans-serif;
    font-weight: 400;
    font-size: 1vw;
    font-style: normal;
    color: #353b40;
}


/* --- RESPONSIVE MOBILE (max-width: 768px) --- */

@media screen and (max-width: 768px) {

    /* 1. Ajustement du Header et de la Navigation */
    header {
        height: auto;
        padding: 10px 0;
    }

    header nav ul {
        flex-wrap: wrap;
        /* Permet aux liens de passer à la ligne si besoin */
        justify-content: center;
        gap: 15px;
        right: 0;
        padding: 10px;
    }

    header nav ul li:first-child {
        width: 100%;
        /* Le logo prend toute la largeur pour centrer le reste */
        display: flex;
        justify-content: center;
        margin-left: 0;
        margin-bottom: 10px;
    }


    header #logo {
        width: 15vw;
        /* On l'agrandit (environ 50-60px sur mobile) */
        min-width: 50px;
        /* Sécurité pour ne pas qu'il soit trop petit */
        margin-right: 0;
        /* On annule la marge de 29vw du desktop pour bien le centrer */
    }


    header nav ul li a {
        font-size: 14px;
        /* On abandonne le vw trop petit sur mobile */
    }

    .profile {
        width: 40px;
    }

    /* 2. Mise en page du Main */
    .hero-section {
        flex-direction: column;
        /* On empile les éléments */
        height: auto;
        padding-top: 20px;
        width: 95vw;
    }


    .content-left {
        bottom: 0;
        /* On reset le positionnement relatif */
        align-items: center;
        text-align: center;
        gap: 20px;
    }

    /* 3. Ajustement des Titres */
    .titre {
        margin-left: 0;
        margin-top: 20px;
        justify-content: center;
    }

    .festival_titre {
        font-size: 12vw;
        /* Plus gros pour mobile */
        right: 0;
    }

    .description {
        right: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .description p {
        font-size: 18px;
        margin-left: 0;
    }

    .description h1 {
        font-size: 10vw;
        left: 0;
        text-align: center;
        width: auto;
    }

    /* 4. Bouton Live */
    #live {
        width: 90%;
        left: 0;
        margin-top: 30px;
        align-items: center;
    }

    #live a.btn-live {
        width: 80vw;
        font-size: 16px;
        height: 70px;
    }

    /* 5. Gestion des visuels (Images) */
    .content-right {
        position: relative;
        /* Sort de l'absolute pour s'afficher sous le texte */
        margin-top: 40px;
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .gommery {
        width: 60vw;
        left: 20vw;
    }

    .cup {
        width: 35vw;
        right: 20vw;
    }

    /* On cache ou réduit les décos encombrantes */
    .deco1,
    .deco2 {
        width: 40vw;
        opacity: 0.5;
        /* Plus discret */
    }

    /* 6. Footer */
    footer {
        height: auto;
        padding: 20px 10px;
    }

    .socials {
        gap: 15px;
    }

    .social svg {
        width: 35px;
        padding: 8px;
    }

    #links {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    #links a,
    footer p {
        font-size: 14px;
    }
}

#fleche {
  width: 5vw;
  position: absolute;
  z-index: 2000;
  bottom: -4vh;
  transform: rotate(-23deg);
  right: -2vw; /* Maintenant relatif au bouton, pas à l'écran */
}

@media screen and (max-width: 768px) {
  #fleche {
    width: 40px; /* Taille fixe sur mobile pour plus de visibilité */
    right: 0;
    bottom: -20px;
  }
}