/*Océane RAUMAIN*/

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    text-decoration: none;
    list-style: none;
}

/*permet de scroll sur une même page lorsqu'on click sur une ancre. Je connaissais déjà cet élément*/
html {
    scroll-behavior: smooth;
}

/*permet de highlight du texte avec le curseur. Je connaissais déjà cet élément, Update : ne fonctionne que sur Firefox*/
::selection {
    background: rgb(255, 223, 164);
    color: #101015;
}

/*Installer une font*/
@font-face {
    font-family: BlairITC;
    src: url(../FONT/BlairITC/blair-itc-light.otf);
}


body {
    background: linear-gradient(black,#171717); /*Documentation - dégradé de couleur*/
    font-family: 'BlairITC', sans-serif;
}


/*Image de fond page d'accueil*/
.background {
    background-image: url(../IMAGES/dune_hero_section2.png);
    height: 100vh;
    width: 100%;
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
}

.background_formulaire {
    background-image: url(../IMAGES/background_formulaire2.png);
    height: 100vh;
    width: 100%;
    background-size: cover;
}

/*Images bannières pages "Galerie" et "Présentation"*/
.banner img {
    width: 100%;
}

/* -------------------------------- HEADER COMMUN ------------------------------------------------ */
/*classe qui englobe le logo et le menu*/
.navbar-section-content {
    margin: auto;
    display: flex;
    justify-content: space-between;
}

/*classe qui englobe tous les balises a du header*/
.navbar-section-content a {
    color: white;
}

.logo {
    padding: 20px;
    margin-top: 4%;
    cursor: pointer;
    display: flex;
    width: 18em;
    height: auto;
}

/*logo emplacement Formulaire - problème de placement résolu avec le margin-top*/
.logo-formulaire {
    padding-left: 3%;
    padding-top: 4%;
    margin-top: 5%;
    cursor: pointer;
    display: flex;
    height: auto;
    position: center;
}

.navbar-section-content ul {
    display: flex;
} 

.navbar-section-content ul li {
    list-style: none;
    display: inline-block;
    margin: 35px;
    font-size: 18;
    font-weight: 1000;
} 

.nav-link  {
    outline: none;
    font-weight: 1000;
}

/* transition grossissement lorsque l'on hover sur l'élément "s'inscrire" dans le header*/
.nav-link:hover {
    transform: scale(1.1);
    transition: 0.3s ease-in-out;
}

.navbar a:hover {
    color: rgb(255, 223, 164);
}

/* MENU RESPONSIF*/
.menu_burger {
    display: none;
    width: 45px;
    position: absolute;
    top: 25px;
    right: 30px;
    cursor: pointer; /* force la souris à changer de forme pour indiquer un élément clickable*/
}

.navbar-section-content ul.mobile-menu {
    transform: translateX(0); /* vu dans le tutoriel Navbar Responsive, permet de déplacer un élément horizontalement à droite ou à gauche*/
}

/*NAVBAR RESPONSIVE - j'ai regardé un tutoriel YT car la documentation ne suffisait pas (Navbar Responsive @media screen)*/
@media screen and (max-width: 1090px) {
    .menu_burger {
        display: block;
    }

    .navbar-section-content {
        padding: 0;
    }

    .navbar-section-content ul {
        transform: translateX(-100%);
        position: absolute;
        display: flex;
        flex-direction: column;
        background-color: rgba(247, 143, 32, 0.244);
        backdrop-filter: blur(10px); /*tutoriel YT, effet de flou*/
        width: 100%;
        height: 100vh;
        top: 0;
        left: 0;
        justify-content: center;
        align-items: center;
        transition: transform 0.5s ease-in-out; /*transition, vu dans le tutoriel*/
    }

    .navbar-section-content ul li {
        font-size: 1.2em;
    }
}

/*j'ai utilisé la propriété "box-shadow" en regardant un tutoriel sur YT et avec la documentation*/
.shadow {
    padding-top: 30px;
    height: 1%;
    background: #000000;
    box-shadow: 0 1em 3em 70px #000000;
}


/*englobe tous les h2 dans le body de toutes les pages*/
body h2 {
    font-size: 2em;
    margin-top: 50px;
    color: white;
    text-align: center;
}

.text {
    color: white;
    max-width: 800px;
    margin: 7% auto;
    text-align: justify;
    font-size: 1.2em;
}

@media screen and (max-width: 768px) {
    body h2 {
      font-size: 1.5em;
      padding: 0 2em;
    }
  
    .text {
      font-size: 1em;
      margin: 2em 3em;
      text-align: justify;
    }
  }

/* ----------------------------- PAGE D'ACCUEIL ------------- */

.espace {
    padding-bottom: 10%;
    
}


.propos {
    background-color: #1a0208;
}

/* Modifier emplacement du bouton */
.button_container {
    text-align: center;
    padding-bottom: 1%;
}

/* Modifier apparence bouton */
.button {
    font-family: 'BlairITC', sans-serif;
    font-size: 14px;
    letter-spacing: 2px;
    display: inline-block;
    text-align: center;
    font-weight: bold;
    padding: 0.7em 2em;
    border: 3px solid rgb(255, 216, 148);
    border-radius: 2px;
    color: rgb(255, 216, 148);
}

.button:hover {
    color: rgb(0, 0, 0);
    background-color: rgb(255, 216, 148);
    transform: scale(1.1);
    transition: 0.3s ease-in-out;
}

footer .button_container {
    padding-bottom: 0.5em; /* moins de marge dans le footer */
}

/* ---------------------------- PAGE GALERIE ----------------------------- */

.titre_galerie {
    margin-bottom: 2.5rem;
}

.galerie_container {
    max-width: 1200px;
    width: 90%;
    margin: auto;
    padding: 40px;
}

.photo_galerie {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); /* trouvé avec l'aide de ChatGPT - permet de créer une grille uniforme et qui s'adapte*/
    gap: 10px; /*espace entre deux image dans une grid*/
}
/* 1 fr = 1 fraction de l’espace libre, l'espace disponible*/

.column {
    display: block;
}

.photos img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover; /*permet de dimensionner une image pour maintenir son ratio tout en remplissant toute la flebox*/
}

.photos img:hover {
    transform: scale(1.1);
    transition: 0.3s ease-in-out;
    border: 6px solid rgb(255, 223, 164);
}

/* GRID RESPONSIVE*/
@media(max-width: 768px) {
    .photo_galerie {
        flex-direction: column;
    }
}

.videos {
    display: flex;
    margin: 20px;
}

.videos iframe {
    margin: 40px;
}


/* ------------------------------ PAGE PRÉSENTATION ------------------------ */

.presentation_container {
    padding-bottom: 10%;
}

.titre_presentation {
    margin-bottom: 2.5rem;
}

/* PAUL*/
.titre_paul {
    font-size: 1.5em;
    margin-bottom: 2.7rem;
}

.paragraphe1_container {
    margin-left: 10%;
    width: 70%;
}

.paragraphe1_container img {
    max-width: 300px;
    float: left;
    shape-outside: url(../IMAGES/presentation_paul.png);
    margin-right: 20px;
    shape-margin: 20px;
}

.text_box {
    color: white;
}

.paragraphe_paul {
    font-size: 1.2em;
    text-align: justify;
    margin-right: 5%;
    margin-bottom: 15%;
}

/* CHANI*/
.paragraphe2_container {
    margin-left: 18%;
    width: 70%;
}

.paragraphe2_container img {
    max-width: 300px;
    float: right;
    shape-outside: url(../IMAGES/presentation_chani.png);
    margin-left: 20px;
    shape-margin: 20px;
}

.titre_chani {
    font-size: 1.5em;
    margin-bottom: 2.7rem;
    margin-left: 60%;
}

.paragraphe_chani {
    font-size: 1.2em;
    text-align: justify;
    margin-left: 7%;
    margin-bottom: 18%;
}

/* carrousel*/
.carrousel h3 {
    font-size: 1.5em;
    margin-bottom: 2.7rem;
    text-align: center;
    color: white;
}


/* Grid Musiques */

.grid-disques {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  @media screen and (min-width: 768px) { /* Box responsives */
    .grid-disques {
      grid-template-columns: repeat(3, 1fr);
    }
  }
  
  .card-disc {
    background-color: #111;
    border: 3px solid #ffe08a;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    color: #ffe08a;
    transition: transform 0.3s ease;
    cursor: pointer;
  }
  
  .card-disc:hover {
    transform: scale(1.05);
  }
  
  .disque-img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 10px;
    border: 3px solid #DECBA1;
  }
  

/* ------------------------------ PAGE FORMULAIRE --------------------------- */
.form_container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    max-width: 100%;
    padding: 10px;
    overflow: hidden; /* permet de ne pas sortir de la page*/
    box-sizing: border-box;
}

.titre_formulaire h3{
    color: black;
    padding-top: 45px;
    padding-bottom: 10px;
}

form {
    display: flex;
    flex-direction: column;
    max-height: 100vh;
    background-color: #fff;
    opacity: 0.8;
    border: 3px solid rgba(0,0,0,0.8);
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.4);
    top: 10px;
    padding-bottom: 70px;
    align-items: center;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}


.input-box {
    color: #000000;
    opacity: 1;
    font-family: BlairITC;
    margin: 25px 0;
    padding: 0;
}

.input-box input {
    background-color: #f5f5f5;
    border: none;
    outline: none;
    border: 3px solid #DECBA1;
    border-radius: 40px;
    font-size: 16px;
}

.input-box input, .input-box select {
    padding: 7px;
    box-sizing: border-box;
    font-size: 1rem;
}

/* Changer la couleur d'un bouton radio et bordure select - explication trouvée sur un forum */
.input-box input[type="radio"] {
    accent-color: rgb(255, 216, 148);
}

select {
    background-color: #f5f5f5;
    border: 3px solid #DECBA1;
    border-radius: 40px;
    outline: none;
    cursor: pointer;
}

.button_container_form {
    text-align: center;
}

.button_formulaire {
    font-family: 'BlairITC', sans-serif;
    font-size: 14px;
    letter-spacing: 2px; /* met un espace entre chaque lettre d'un mot/ groupe de mots*/
    display: inline-block;
    text-align: center;
    font-weight: bold;
    padding: 0.7em 2em;
    background-color: #DECBA1;
    border: 3px solid rgb(0,0,0);
    border-radius: 3px;;
    color: rgb(0, 0, 0);
}

/* transition*/
.button_formulaire:hover {
    transform: scale(1.1);
    transition: 0.3s ease-in-out;
}
  


/* --------------------------- FOOTER COMMUN ---------------------- */

/* alignement de chaque éléments centrés et de différentes tailles et couleurs*/
.footer-section {
    text-align: center;
    margin-bottom: 20px;
}

footer {
    height: 5px;
    width: 100%;
    padding-top: 25px;
}

.logo_footer {
    padding-top: 70px;
}

.social-link img {
    width: 40px;
    height: auto;
    margin: 10px;
    padding-top: 5px;
}

footer .copyright-text {
    color: rgb(255, 255, 255);
    margin: 10px;
    font-size: 0.7em;
    font-weight: 1000;
}

footer p {
    color: rgb(255, 216, 148);
    margin: 10px;
    font-size: 0.6em;
    font-weight: 1000;
    padding-bottom: 15px;
    text-align: center;
}

html.no-scroll, .no-scroll { /* menu burger fixe */
    overflow: hidden;
    height: 100vh;
}


/* ------- JAVASCRIPT PERIODE 2------*/
/* ------- Scroll to Top ------*/

.scroll-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: transparent;
    color: rgb(255, 216, 148);
    border: 4px solid rgb(255, 216, 148);
    border-radius: 50%;
    font-size: 1.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0; /* permet de cacher le bouton jusqu'à une certaine hauteur*/
    transition: 
      opacity 0.4s ease,
      border-color 0.3s ease,
      background-color 0.3s ease,
      color 0.3s ease;
    z-index: 1000;
}
  
.scroll-button:hover {
    background-color: rgba(255, 224, 138, 0.1);
    border-color: #DECBA1;
    color: #DECBA1;
}
  
.scroll-button.visible {
    opacity: 1;
    pointer-events: auto;
}


/* ------- Caroussel (Tutoriel YT) ------*/

.carrousel-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 20px auto;
  max-width: 700px;
  position: relative;
}

.carrousel-images {
  width: 100%;
  text-align: center;
}

.arrousel-images.fade {
    opacity: 0;
  }

.carrousel-images img {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  border-radius: 10px;
  transition: opacity 2s ease-in-out;
  opacity: 1;
}

.carrousel-btn {
    background-color: transparent;
    border: 3px solid #DECBA1;
    color: #DECBA1;
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s, transform 0.2s;
}
  
.carrousel-btn:hover {
    background-color: rgba(255, 224, 138, 0.15);
    transform: scale(1.05);
}
  
.carrousel-btn.gauche {
    margin-right: 10px;
}
  
.carrousel-btn.droite {
    margin-left: 10px;
}
  
.carrousel-nom-lieu {
    text-align: center;
    margin-top: 15px;
    color: #DECBA1;
    font-size: 1.2rem;
    opacity: 0;
    transition: opacity 0.4s ease;
    font-weight: 500;
    min-height: 1.2em; /*permet aux éléments du dessous de ne pas remonter */
}

.carrousel-nom-lieu.visible {
    opacity: 1;
}



/* ------- Fenetre Pop-Up ------*/

.popup-musique {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: #DECBA1;
    border: 5px solid #b2a078;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 0 15px rgba(0,0,0,0.3);
    display: none; /* caché par défaut */
    z-index: 1000;
    width: 250px;
    text-align: center;
}
  
.popup-musique img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 5px solid #b2a078;
    animation: spinDiscOR 3s linear infinite;
    margin-bottom: 10px;
}

.popup-musique audio {  /* permet de forcer la barre time par défaut de l'audio à rentrer dans la fenêtre pop-up */
    width: 100%;
    max-width: 100%;
    display: block;
    margin: 10px auto 0 auto;
}

@keyframes spinDiscOR { /* le disque tourne à 360° */
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
