@font-face {
    font-family: 'poppins';
    src: url('fonts/poppins-semibold.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'pavanam';
    src: url('fonts/pavanam-regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

/*-----Pour le menu-----*/
#accueil{ /*L'onglet Accueil n'est visible qu'au format mobile*/
  display: none;
}

header{
    position:fixed;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.90);
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

ul{
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    list-style-type: none;
    padding: 0;
    font-size: 1.2em;
}

ul li, #logo{
    margin: 10px 25px;
    
}

#histoire:hover{
    color:#CE3433;
}

#valeurs:hover{
    color:#62398E;
}

#membres:hover{
    color:#3399CC;
}

.active{ /*L'onglet actif apparait avec une police différente*/
  font-family: 'poppins';
}

header img{
    height: 50px;
}


header .menu-icon {
  display: none;
  cursor: pointer;
  padding: 28px 28px;
}

header .menu-icon .navicon {
  background: #333;
  display: block;
  height: 3px;
  position: relative;
  transition: background .2s ease-out;
  width: 30px;
}

header .menu-icon .navicon:before,
header .menu-icon .navicon:after {
  background: #333;
  content: '';
  display: block;
  height: 100%;
  position: absolute;
  transition: all .2s ease-out;
  width: 100%;
}

header .menu-icon .navicon:before {
  top: 10px;
}

header .menu-icon .navicon:after {
  top: -10px;
}

/* menu btn */

header .menu-btn {
  display: none;
}

header .menu-btn:checked ~ .menu-icon .navicon {
  background: transparent;
}

header .menu-btn:checked ~ .menu-icon .navicon:before {
  transform: rotate(-45deg);
}

header .menu-btn:checked ~ .menu-icon .navicon:after {
  transform: rotate(45deg);
}

header .menu-btn:checked ~ .menu-icon:not(.steps) .navicon:before,
header .menu-btn:checked ~ .menu-icon:not(.steps) .navicon:after {
  top: 0;
}

/*Footer*/
footer{
    margin: 25px;
}

footer img{
    height: 50px;
    margin: 10px;
}

footer p{
  font-size: 0.8em;
}

/*Pour la mise en page*/
*{
  font-family: 'pavanam';
  font-size: 1em;
}

body{
  padding: 0px;
  margin: 0px;
}

#scene{
    padding: 25px;
}

#windowHeight{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
}

h1{
    font-size: 5em;
    font-family: 'poppins';
    margin-bottom: 0px;
    line-height: 0.5em;
}

h2{
    font-size: 2em;
    font-family: 'poppins';
    margin-bottom: 0px;
}

h1 span{
    font-size: 0.5em;
    font-family: 'pavanam';
}

h2 span{
    font-size: 0.75em;
    font-family: 'pavanam';
}

a{
  text-decoration: none;
  color: black;
}

p{
  font-size: 1.2em;
}

.red{
    color: #CE3433;
}

.purple{
    color: #62398E;
}

.blue{
    color: #3399CC;
}

button:hover{
  cursor: pointer;
}

.btn{
  height: 40px;
  width: 100px;
  border: 2px solid transparent;
  border-radius: 50px;
  padding: 0px;
}

.btn:hover{
  border-radius: 50px;
  padding: 0px;
}

.flex{
  display:flex;
}

.column{
  flex-direction: column;
}

.raw{
  flex-direction: raw;
}

.xcenter{
  justify-content: center;
}

.ycenter{
  align-items: center;
}

.tcenter{
text-align: center;
}

/*-----Pour le logo-----*/
.st0{fill:#F4991D;}
.st1{fill:#3399CC;}
.st2{fill:#FFCC07;}
.st3{fill:#62398E;}
.st4{fill:#CE3433;}
.st5{fill:#369937;}
.st6{fill:#010202;}

/*Pour l'animation du logo*/
#groslogo{
    margin: 5% 5% 5% 5%;
    width: 80%;
}

#parenthead{
    animation-duration: 3s;
    animation-name: move;
    animation-iteration-count: infinite;
    animation-direction: alternate;
}

@keyframes move{
    from {
        transform: translateX(5px);
    }
    
    to {
        transform: translateX(-3px);
    }
}

#childhead{
    animation-duration: 3s;
    animation-name: movechild;
    animation-iteration-count: infinite;
    animation-direction: alternate;
}

@keyframes movechild{
    from {
        transform: translateX(3px) translateY(0px);
    }
    
    to {
        transform: translateX(-2px) translateY(-2px);
    }
}

/*-----Page d'accueil-----*/

#cards{
  display: flex;
  flex-direction: row;
  flex-wrap:wrap;
  justify-content: space-around;
}

.card{
  display:flex;
  flex-direction: column;
  width: 25em;
  margin: 25px;
  text-align: justify;;
}

.card button{
  width: 150px;
  height: 40px;
  border-radius: 50px;
}

.red-btn{
    color: #CE3433;
    background-color: white;
    border: 2px solid #CE3433;
}

.red-btn:hover{
    color: white;
    background-color:#CE3433;
}

.purple-btn{
    color: #62398E;
    background-color: white;
    border: 2px solid #62398E;
}

.purple-btn:hover{
    color: white;
    background-color:#62398E;
}

.blue-btn{
    color: #3399CC;
    background-color: white;
    border: 2px solid #3399CC;
}

.blue-btn:hover{
    color: white;
    background-color: #3399CC;
}

#partenaires img{
  height: 100px;

}

#partenaires a{
    margin: 25px;
}

/*Histoire*/
.dates-date{
  width: 20%;
  color:#CE3433;
  font-weight: bold;
  text-align: right;
  margin-right: 25px;
}

.dates-text{
  text-align:justify;
  width:80%;
  margin-left: 25px;
}

.dates-btn, .membres-btn{
  height:25px;
  margin-left: 25px;
}

/*Valeurs*/
.valeur-titre{
  margin-left: 25px;
}

.valeur-text{
  text-align: justify;
  margin: 10px 25px 50px 25px;
}

/*Membres*/
.membre-img{
  aspect-ratio: 1/1;
  width: 150px;
  object-fit:cover;
  border-radius: 500px;
}

#membres-droits img{
  height: 200px;
}

#membres-droits a{
  margin: 25px;
}

/*Partie connexion*/
form .button{
  height: 40px;
  width: 100px;
  color: white;
  background-color: #369937;
  border: 2px solid transparent;
  border-radius: 50px;
  padding: 0px;
}

form .button:hover{
  color: #369937;
  background-color: white;
  border: 2px solid #369937;
  border-radius: 50px;
  padding: 0px;
}

form input{
  width: 200px;
  height: 30px;
  margin: 10px;
  border-radius: 3px;
  padding: 10px;
  border: none;
  background: #eee;
}

textarea{
  width: 200px;
  height: 100px;
  margin: 10px;
  border-radius: 3px;
  padding: 10px;
  border: none;
  background: #eee;
}

form input:focus{
  background-color: #ddd;
  outline: solid #369937;
}

#h1admin{
  font-size: 2em;
  line-height: 1em;
}

/*POP UP*/
.form-popup {
  display: none;
  position: fixed;
  left: 45%;
  top: 10%;
  transform: translate(-45%, 5%);
  border: 2px solid #666;
  z-index: 9;
}

/* Styles pour le conteneur de la forme */
.form-container {
  width: 75%;
  padding: 10px;
  background-color: #fff;
}

#flechepopup{
  width: 30px;
  margin-right: 20px;
}

#overlay {
  position: fixed; /* Sit on top of the page content */
  display: none; /* Hidden by default */
  width: 100%; /* Full width (cover the whole page) */
  height: 100%; /* Full height (cover the whole page) */
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0,0,0,0.5); /* Black background with opacity */
  z-index: 2; /* Specify a stack order in case you're using a different order for other elements */
  cursor: pointer; /* Add a pointer on hover */
}

.grand{
  width: 350px;
}

#evt{
  height: 60px;
}

@media (max-width: 830px) {
  #scene{
      padding: 10px;
  }
  
  p{
      font-size: 1em;
  }
  
  h1{
      font-size: 3em;
  }
  #accueil{
    display: block;
  }

  header ul {
  display: none;
  width: 100%;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-around;
  position:absolute;
  right: 0px;
  top: 0px;
  background-color: white;
  margin: 0;
  padding-top: 75px;
  padding-right: 25px;
  }

  @keyframes slidein{
      from {
          transform: translateX(772px);
      }
      
      to {
          transform: translateX(0px);
      }
  }

  ul li{
      text-transform: uppercase;
      font-size: 1.2em;
  }

  header .menu-icon {
    display: inline-block;
  }

  .navicon, .menu-btn, .menu-icon{
      z-index:1;
  }
  
  .menu-btn:checked ~ ul{
      animation: 1s;
      animation-name: slidein;
      display: flex;
  }

  .menu-btn:not(:checked) ~ ul{
      animation: 1s;
      animation-name: slideout;
  }

  footer p{
      margin: 5px;
  }

  .dates{
      flex-direction: column;
      align-items: flex-start !important;
  }

  .dates-date{
    width: 100%;
    text-align: left;
    margin-right: 0px;
  }
  
  .dates-text{
    width: 100%;
    margin: 0px 0px 10px 0px;
  }

  .grand{
    width:85%;
  }

  #partenaires img{
    height: 50px;  
  }

  #membres-droits img{
    height: 100px;
  }
}