/* Reset CSS */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    z-index:100
}

/* Body Styles */
body {
    font-family: Arial, sans-serif;
    background-color: #f8f8f8;
    color: #333;
    line-height: 1.6;
    background-image: url('Images/montagne.JPG'); /* Ajouter le chemin vers l'image d'accueil */
    background-size: 130% 260%;
    background-position: center;
    background-repeat: repeat;
    transition: background-position 0.3s ease;
  
    height: 600px; /* Ajuster en fonction de la hauteur de l'image */
    position: relative;

}

body img {
    object-fit: cover;
}

h2, h1, h3 {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-style: normal;
  color: #00A5CC;

}

p {
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.entete {
    font-size: 22px;
    margin: 0;
    text-align: center;
}

.color-mode{
  background-color: rgba(45, 45, 45, 0.85);
  backdrop-filter: blur(10px);
}

@media (max-width: 600px) {
    
  
}
.logo {
    max-height: 30px; /* Taille maximale en hauteur */
    max-width: 100px; /* Taille maximale en largeur */
    /* Autres styles de votre logo */
    margin-right: auto;
}


/* Header Styles */
header {
  padding: 20px;
}

nav ul {
    list-style: none;
}

nav ul li {
    display: inline;
    margin-right: 20px;
}

/* Styles pour les liens de navigation */
nav ul li a {
    color: #fff;
    text-decoration: none;
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-style: normal;
    padding-bottom: 5px;
    transition: font-size 0.3s ease, color 0.4s ease,padding-bottom 0.4s ease; 
    font-size: 16px; 
    
    
}

.back{
  width: 100%;
  height: 100%;
  object-fit: cover;
  
}
html{
  scroll-behavior: smooth;
}

nav ul li a:hover {
    font-size: 18px; 
    color: #00A5CC;
    padding-bottom: 0px;
}
/* Section Styles */
section {
    padding: 50px 0;
    text-align: center;
}

/* Footer Styles */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px;
}

footer a {
    color: #fff;
    text-decoration: none;
}

/* Styles */
#quisommesnous {
    background-color: rgba(45, 45, 45, 0); 

}

#quisommesnous img {
    background-color: rgba(45, 45, 45, 0); 
    backdrop-filter: blur(0px);
    object-fit: cover;
}
#actualités {
    background-color: rgba(45, 45, 45, 0);
    backdrop-filter: blur(4px); /* Flou */
    height: calc(100vh - 180px); /* Hauteur de la section (taille de l'écran moins la hauteur des autres éléments) */
    overflow-y: auto; /* Activation du défilement vertical si nécessaire */

}
#calendrier {
    background-color: rgba(45, 45, 45, 0);
    backdrop-filter: blur(4px); /* Flou */
    height: calc(100vh - 180px); /* Hauteur de la section (taille de l'écran moins la hauteur des autres éléments) */
    overflow-y: auto; /* Activation du défilement vertical si nécessaire */

}
#contact {
    background-color: rgba(45, 45, 45, 0);
    backdrop-filter: blur(4px); /* Flou */
    height: calc(100vh - 180px); /* Hauteur de la section (taille de l'écran moins la hauteur des autres éléments) */
    overflow-y: auto; /* Activation du défilement vertical si nécessaire */

}

#carousel1 {
  /* Ensure that the contents flow horizontally */
  overflow-x: auto;
  white-space: nowrap;
  display: flex;
}#carousel {
  /* Ensure that the contents flow horizontally */
  overflow-x: auto;
  white-space: nowrap;
  display: flex;
}
#carousel2 {
  /* Ensure that the contents flow horizontally */
  overflow-x: auto;
  white-space: nowrap;
  display: flex;
}

#carousel1.vertical {
  flex-direction: column;
}#carousel.vertical {
  flex-direction: column;
}

#carousel2.vertical {
  flex-direction: column;
}

/* 2018 spec - For Safari 11, Chrome 69+ */
#carousel1.snap {
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; /* Needed to work on iOS Safari */
}

#carousel2.snap {
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; /* Needed to work on iOS Safari */
}

#carousel1.snap > div {
  scroll-snap-align: center;
}

#carousel2.snap > div {
  scroll-snap-align: center;
}

#carousel1.snap.vertical {
  flex-direction: column;
  scroll-snap-type: y mandatory;
}

#carousel2.snap.vertical {
  flex-direction: column;
  scroll-snap-type: y mandatory;
}


/* 2015 spec - For Firefox, Edge, IE */
#carousel1.snap {
  scroll-snap-type: mandatory;
  -ms-scroll-snap-type: mandatory;
  scroll-snap-points-x: repeat(100%);
  -ms-scroll-snap-points-x: repeat(100%);
}

#carousel1.snap.vertical {
  scroll-snap-points-x: initial;
  -ms-scroll-snap-points-x: initial;
  scroll-snap-points-y: repeat(100%);
  -ms-scroll-snap-points-y: repeat(100%);
}



#carousel1 {
  position: relative;
  width: 100%;
  height: 100%;
}

#carousel2 {
  position: relative;
  width: 100%;
  height: 100%;
}

#carousel1 > div {
  min-width: 100%;
  min-height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  font-size: 20px;
}

#carousel2 > div {
  min-width: 100%;
  min-height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  font-size: 20px;
}

#event {
    font-size: 20px;
    color: black;
    visibility: hidden;
    z-index: 4007 !important;
}




    .month {
        color: rgba(240, 240, 245, 1);
        text-align: center;
        font-size: 48px;
    }

    .weekdays {
        display: flex;
        justify-content: space-between;
    }

    .weekday {
        color: rgba(240, 240, 245, 1);
        width: calc(100% / 7);
        text-align: center;
        font-size: 36px;
    }

    .days {
        /*display: flex;
        flex-wrap: wrap;*/
    }



    .calendar-controls {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 10px;
        background-color: rgba(45, 45, 45, 0.85);
        backdrop-filter: blur(10px);
        margin-bottom: 20px;
    }

    .calendar-controls .buttoncalendar {
        padding: 10px;
        border: none;
        background-color: #fff;
        border-radius: 5px;
        font-size: 18px;
        cursor: pointer;
    }

    .calendar-controls .month {
        flex-grow: 1;
        text-align: center;
        font-size: 24px;
        color: #fff;
    }

    .entete {
        display: inline;
        padding-left: 10px;
        font-size: 22px;
        margin: 5px;
        text-align: left;
    }

    .enteteb {
      position: sticky;
      padding-left: 20px;
      justify-content: center;
    }

    .day {
        width: calc((100% - (1.125% * 14)) / 7);
        height: 90px;
        padding-top: 18px;
        text-align: center;
        font-size: 36px;
        cursor: pointer;
        background-color: rgba(245, 245, 245, 0.85);
        border-radius: 10px;
        backdrop-filter: blur(10px);
        margin: 1.125%;
    }

    .divb {
      display: block;
      text-align: center;
      float: right;
      margin-left: 10%;
      margin-top: 10%;
      margin-right: 10%;
    }

    .buttoncalendar {
      padding: 5px;
      border-radius: 5px;
      font-size: 20px;
      background-color: rgba(245, 245, 245, 0.85);
    }

    .show-events {
      visibility: visible !important;
      position: absolute !important;
    }

    .eventform {
      position: absolute ;
      background-color: #fff;
      border: 2px solid #000;
      border-radius: 10px;
      width: 200px;
      padding: 20px;
      margin: 20px;
      z-index: 10000000000;
    }

    .eventform:before {
      content: '';
      position: absolute;
      border-style: solid;
      border-width: 0 15px 15px;
      border-color: transparent transparent #000;
      top: -15px;
      left: 30%;
    }

    #autherId {
      color: red;
    }

    .imgmerch {
      border: solid 3px black;
    }

    .month {
      display: inline-block;
      margin-left: 0%;
    }


    .calendar-controls .buttoncalendar {
    transition: background-color 0.3s ease,padding-bottom 0.3s ease;
    }


    .calendar-controls:hover .buttoncalendar:hover{
    background-color:#00A5CC;
    box-shadow: 12px;
    padding-bottom: 2px;  

    }



    .day {
      transition: font-size 0.3s ease, background-color 0.3s ease, transform 0.05s ease;
      z-index:1;
    }

    .day:hover {
      font-size: 45px;
      background-color:#00A5CC;
      transform: scale(1.1)
    }


    .menu-toggle {
      display: none;
      font-size: 30px;
      cursor: pointer;
      color: #333;
      position: absolute;
      top: 20px;
      right: 20px;
      z-index: 10001;
    }

    @media (max-width: 600px) {
        .calendar-controls .buttoncalendar {
            font-size: 14px;
            padding-top: 24px;
        }
      
        .day {
            padding-top: 12px;
            font-size: 28px;
            
        }

        .day:hover {
            font-size: 35px;
            background-color:#00A5CC;
        }

        .calendar-controls .month {
            font-size: 18px;
        }

        .weekday {
            font-size: 18px;
        }

        .entete {
            font-size: 0px;
            visibility: hidden;
          
        }
        .entete:after {
            font-size: 24px;
            content: 'CAFR';
            visibility: visible;
            display: block;
            position: relative;
            padding-left: 10px;
        }

        }

        .menu-toggle {
            display: block;
        }
        
        /* Styles pour le carrousel */
.carousel1 {
    width: 80%;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}
.carousel {
    width: 80%;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

        .carousel2 {
            width: 80%;
            margin: 0 auto;
            overflow: hidden;
            position: relative;
        }

.carousel-inner1 {
    display: flex;
    transition: transform 0.5s ease;
}.carousel-inner {
    display: flex;
    transition: transform 0.5s ease;
}

        .carousel-inner2 {
            display: flex;
            transition: transform 0.5s ease;
        }

.carousel-item1 {
    flex: 0 0 100%; /* Éléments de largeur égale */
    padding: 20px;
    box-sizing: border-box;
    text-align: center;
}.carousel-item {
    flex: 0 0 100%; /* Éléments de largeur égale */
    padding: 20px;
    box-sizing: border-box;
    text-align: center;
}

        .carousel-item2 {
            flex: 0 0 100%; /* Éléments de largeur égale */
            padding: 20px;
            box-sizing: border-box;
            text-align: center;
        }

.carousel-item1 img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}
.carousel-item img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

        .carousel-item2 img {
            max-width: 100%;
            height: auto;
            border-radius: 10px;
        }

        /* Styles pour les boutons de navigation du carrousel */
.carousel-controls1 {
    text-align: center;
    margin-top: 20px;
}
.carousel-controls {
    text-align: center;
    margin-top: 20px;
}

        .carousel-controls2 {
            text-align: center;
            margin-top: 20px;
        }

.carousel-control1 {
    display: inline-block;
    margin: 0 20px;
    padding: 10px 20px;
    background-color: #333;
    color: #fff;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.05s ease, background-color 0.3s ease;
}.carousel-control {
    display: inline-block;
    margin: 0 20px;
    padding: 10px 20px;
    background-color: #333;
    color: #fff;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.05s ease, background-color 0.3s ease;
}

        .carousel-control2 {
            display: inline-block;
            margin: 0 20px;
            padding: 10px 20px;
            background-color: #333;
            color: #fff;
            font-size: 16px;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            transition: transform 0.05s ease, background-color 0.3s ease;
        }

.carousel-control1:hover {
    background-color: #00A5CC;
    transform: scale(1.1);
}.carousel-control:hover {
    background-color: #00A5CC;
    transform: scale(1.1);
}

        .carousel-control2:hover {
            background-color: #00A5CC;
            transform: scale(1.1);
        }

        /* Style pour le footer */
        footer {
            background-color: #333;
            color: #fff;
            text-align: center;
            padding: 20px 0;
            position: fixed;
            bottom: 0;
            width: 100%;
        }

        img{
          transition: transform 0.2s ease;
          
        }
        img:hover{
          transform: scale(1.025);
        }
    }