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

}

:root {
    --color1: #e02130;
    --color2: #FFF;
    --color3: #333333;
    --color4: lightgrey;
    --color5: #83a300;
    --color6: #e21b5a;

   

    --font1: 'Roboto', sans-serif;
    --font2: 'Raleway', sans-serif;
    --font3: "Play", sans-serif;

      
}

html {
    font-size: 16px;
    scroll-behavior: smooth;

}

body{
    font-family: var(--font1);
    background-color: #FFF;
}



.accueil{
    height: 100vh;
}


.background{
    height: 100vh;
    width: 100%;
    position: absolute;
    background-image: url(img/bg.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: -1;
    filter: brightness(0.95);
}


.logo img {
    width: 170px;
    height: 170px;

    position: relative;

}


.title-container {
    height: fit-content;
    background-color: var(--color2);
    width: fit-content;
    margin: 0 auto;
}

.title {
    font-family: var(--font3);
    color: var(--color1);
    text-transform: uppercase;
    font-weight: bold;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    line-height: 1.4;
}

.title .line {
    padding: 4px 0;
    font-size: 4rem; /* ajuste ici selon la taille que tu veux */
}


.navbar{
    background-color: var(--color2);
    transition: all 0.5s;
}
.navbar-scrolled{
    background-color: var(--color1);
    box-shadow: 0 1px 5px rgba(0 , 0 , 0.15);
}


.navbar-brand{
    color: var(--color1);
    text-transform: uppercase;
    transition: all 0.5s;
    
}

.navbar-brand img{
    border-radius: 0;
}
.navbar-brand-scrolled{
    color: var(--color2);
}



.navbar-brand:hover{
    color: var(--color3);
    transition: 1s;
}



.nav-link{
    text-transform: uppercase;
    color: var(--color1);
    transition: all 0.5s;  
}

.nav-link-scrolled{
    color: var(--color2);
}

.nav-link:hover{
    color: var(--color3);
    transition: 1s;
}

/*About*/

.about {
    font-family: var(--font2);
}

.about a {
    text-decoration: none;
    color: var(--color3);

}

.presentation-list {
    list-style: none;
    padding-left: 0;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.lipresentation {
    display: grid;
    grid-template-columns: 2rem auto;
    align-items: start;
    gap: 10px;
    max-width: 800px;
    width: 100%;
    text-align: left;
}

.emoji {
    text-align: center;
    font-size: 1.5rem;
    line-height: 1.2;
}

.texte {
    display: block;
}
.about h3 {
    width: 100%;

}

.btn-rejoindre {
    background-color: var(--color1);
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 1.1rem;
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-transform: uppercase;
}

.btn-rejoindre:hover {
    background-color: var(--color5);
    transform: scale(1.05);
    color: var(--color3);
}



.btn-secondary{
    background-color: var(--color3);
    color: var(--color2);
    border-color: var(--color2); 
}

.btn-secondary:focus {
  background-color: var(--color1);
  color: var(--color2);
  border-color: var(--color2); 
   
}

.btn-secondary:hover {
  background-color: var(--color1);
  color: var(--color3);
  border-color: var(--color2); 
   
}




.btn-primary{
    background-color: var(--color1);
    color: var(--color2);
    border-color: var(--color2); 
}

.btn-primary:focus {
  background-color: var(--color1);
  color: var(--color2);
  border-color: var(--color2); 
   
}

.btn-primary:hover {
  background-color: var(--color5);
  color: var(--color2);
  border-color: var(--color2); 
   
}

.btn-success{
    background-color: var(--color5);
    color: var(--color2);
    border-color: var(--color2); 
}





/*modal popup*/
/* Supprimer le blocage scroll */
body.modal-open {
  overflow: auto !important;
  padding-right: 0 !important;
}

/* Supprimer le fond sombre */
.modal-backdrop {
  display: none !important;
}

/* Personnalisation du popup */
.modal.popup-modal {
  background-color: var(--color1);
  pointer-events: none;
}

.modal.popup-modal .modal-dialog {
  pointer-events: auto;
  position: fixed;
  top: 10vh;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1060;
}

.modal-header{
    background-color: var(--color3);
}

.modal-title{
    color: var(--color2);
    font-weight: bold;
    font-size: 2rem;
    
}

.btn:focus,.btn:active {
  box-shadow: none !important;
  outline: none !important;
}

/*Carousel*/
.carousel-control-next-icon {
    background-color: var(--color3);
}
.carousel-control-next-icon{
    background-color: var(--color3);
}

 .custom-slide {
    max-width: 600px;
    height: auto;
    margin: 0 auto;
    max-height: 400px;
    width: auto;
    object-fit: contain;
  }
  .custom-controls {
    text-align: center;
    margin-top: 10px;
  }
  .custom-controls button {
    margin: 0 5px;
    padding: 5px 15px;
    font-size: 18px;
    cursor: pointer;
    z-index: +999;
  }

  

.texte-description {
    text-align: justify;
}

.texte-description p{
    line-height: 1.7rem;
}


.disciplines a{
   text-decoration: none;
   color: var(--color1);
}

.disciplines a:hover{
   color: var(--color5);
   transition: 0.5s;

}

.adhesion {
  position: relative;
  z-index: 1;
}

.dred-list {
  list-style: none;        /* Supprime les puces */
  padding-left: 0;         /* Supprime le retrait gauche */
  margin: 0;
}

.dred-list li {
  display: flex;           /* Pour aligner l'icône et le texte horizontalement */
  align-items: flex-start; /* Aligne bien le haut de l’icône avec le texte */
  margin-bottom: 0.5rem;
}

.dred-list li i {
  color: var(--color1);
  margin-right: 1rem;    /* Espace entre l’icône et le texte */
  flex-shrink: 0;          /* Empêche l'icône de rétrécir */
  width: 1.2rem;           /* Fixe une largeur pour un alignement parfait */
  text-align: center;
}


/*Espace documents*/

.h4{
    font-size: 1rem;
    font-weight: bold;

}




/*formulaire*/

#telephone{
    color: var(--color1);
}

.grand-titre{
    background-color: var(--color2);
    font-family: var(--font3);
    text-transform: uppercase;
}

.container-form{
    background-color: var(--color3);
    border-radius: 30px;

}

.btn-envoyer {
    background-color: var(--color2);
    color: var(--color3);
}

.btn-envoyer:hover {
    background-color: var(--color1);
    color: var(--color2);

}

.container-contact-direct {
    background-color: var(--color2);
    font-family: var(--font1);
}



.alert-danger {
    background-color: var(--color1);
    border-radius: 5px;
    opacity: 0.9;

}

.alert-success {
    background-color:#83a300;
    border-radius: 5px;
    opacity: 0.9;
}
/* Centrer le recaptcha */

.g-recaptcha {
    margin: 0 auto;
    width: 304px;
  }


/*contour case formulaire*/
.form-control:focus {
    border-color: var(--color1);
    box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.075) inset, 0px 0px 8px rgba(212, 13, 13, 0.5);
}

.form-select:focus{
    border-color: var(--color2);
    box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.075) inset, 0px 0px 8px rgba(212, 13, 13, 0.5);
}


select option:hover {
    background: var(--color1);
  }


  /*fond de remplissage auto*/
input:-webkit-autofill:focus { 
    -webkit-box-shadow: 0 0 0 1000px var(--color2) inset !important;
    -webkit-text-fill-color: black;
  }

  input:-webkit-autofill{ 
    -webkit-box-shadow: 0 0 0 1000px var(--color4) inset !important;
    -webkit-text-fill-color: black;
  }

  input:-webkit-autofill:hover { 
    -webkit-box-shadow: 0 0 0 1000px var(--color4) inset !important;
    -webkit-text-fill-color: black;
  }


#cookie-banner {
  position: fixed;
  bottom: 0;
  width: 100%;
  background-color: #333;
  color: #eee;
  padding: 8px 12px;
  font-size: 12px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-family: Arial, sans-serif;
  z-index: 9999;
}

#cookie-banner span {
  flex: 1 1 auto;
}

#cookie-banner button {
  background-color: var(--color5);
  border: none;
  color: white;
  padding: 4px 10px;
  font-size: 12px;
  cursor: pointer;
  border-radius: 3px;
  flex: 0 0 auto;
  transition: background-color 0.3s ease;
}

#cookie-banner button#refuse-cookies {
  background-color: var(--color1);
}

#cookie-banner button:hover {
  filter: brightness(85%);
}




/*politique cookies*/
.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}


.section-cookies {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  margin-top: 6rem;
}

.section-cookies a {
  color: var(--color1);
  text-decoration: none;
}

.section-cookies a:hover {
  text-decoration: underline;
}

/*footer*/

.container-footer{
    background-color: var(--color3);
    color: var(--color4);
    height: 20px;
    
}

a{
    text-decoration: none;
    color: var(--color4);
    
}


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

      .background {
       background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: scroll;
    min-height: 100vh; /* ou 100% si section a un parent avec une hauteur définie */
      }
        
    
    .title .line {
        padding: 4px 0;
        font-size: 2rem; /* ajuste ici selon la taille que tu veux */
    }

    .logo img {
    width: 90px;
    height: 90px;

    position: relative;

}
      .texte-description{
        padding: 5px 5px;
        max-width: 90%; 
      }
      .text-justify{
        padding: 5px 5px;
      }
  
    .custom-slide {
        max-width: 90%;      /* Réduit la largeur max */
        max-height: 250px;   /* Réduit la hauteur */
    }

    .text-footer{
      font-size: 10px;
    }


    .g-recaptcha{
    transform: scale(0.75); /* Ajuste l'échelle : 0.75 réduit à 75% */ /* Maintient l'origine à 0,0 pour éviter le décalage */
    width: 304px; /* Largeur initiale du reCAPTCHA */
    }
}