html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Arima Madurai';
  background-color: #FFF;
}

/* Header */
#logo{
  text-align: left;
  padding-left: 20px;
  position: relative;
  top:-20px;
  width: fit-content;
  margin-bottom: -20px;
}
#logo img {
  box-shadow: -5px -5px #FFF, 5px -5px #FFF;
  width: 20%;
}

@media screen and (max-width: 500px) {
  #logo{
    text-align: center;
    padding-left: 0;
    position: inherit;
    background-color: #FDFDFD;
    margin-bottom: 0;
  }
  #logo img {
    box-shadow: none;
    width: 60%;
  }
}

@media screen and (max-width: 250px) {
  #logo{
    text-align: center;
    padding-left: 0;
    position: inherit;
    background-color: #FDFDFD;
    margin-bottom: 0;
  }
  #logo img {
    box-shadow: none;
    width: 100%;
  }
}

#top {
  background-color: #888;
  text-align: right;
  padding: 5px 10px;
  color: #FFF; 
}

#top a, #top a:visited {
  color: #FFF;
  text-decoration: none;
  font-weight: bold;
  z-index: 99;
}

#top a:hover{
  text-decoration: underline;
}

#top input {
    border: 1px solid #888;
    border-radius: 5px;
}

#top input::placeholder{
  text-align: right;
}

@media screen and (max-width: 400px) {
  #top{
    font-size: 13px;
  }

  #top input{
    width: 100px;
  }
}

/* SLider */
.mySlides {display: none}
#slider img {vertical-align: middle;}

/* Slideshow container */
.slideshow-container {
  max-width: 100%;
  position: relative;
  margin: auto;
}

/* Next & previous buttons */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -22px;
  color: white;
  background-color: rgba(0,0,0,0.8);
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  z-index: 99;
}

/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.8);
}

/* Caption text */
.text {
  color: rgba(0, 0, 0);
  background-color: rgba(255, 255, 255, 0.5);
  font-size: 30px;
  padding: 8px 12px;
  position: absolute;
  bottom: 8px;
  left:0px;
  right: 0px;
  font-weight: bold;
  /* width: 100%; */
  text-align: center;
}

.text a{
  font-size: 20px;
  color: #555;
  text-decoration: none;
}

.text a:hover{
  text-decoration: underline;
}

/* Number text (1/3 etc) */
.numbertext {
  color: #f2f2f2;
  text-shadow: 1px 1px #000;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}

/* The dots/bullets/indicators */
.dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

#slider .active, .dot:hover {
  background-color: #717171;
}

/* Fading animation */
.fade {
  -webkit-animation-name: fade;
  -webkit-animation-duration: 1.5s;
  animation-name: fade;
  animation-duration: 1.5s;
}

@-webkit-keyframes fade {
  from {opacity: .4} 
  to {opacity: 1}
}

@keyframes fade {
  from {opacity: .4} 
  to {opacity: 1}
}

/* On smaller screens, decrease text size */
@media screen and (max-width: 700px) {
  .text {font-size: 20px}
  .text a {font-size: 15px}
}
@media screen and (max-width: 400px) {
  .prev, .next,.text {font-size: 11px}
  .text a {font-size: 10px}
}

/* main pending */
#pending{
  height: 300px;
}

#pending p{
  width: fit-content;
  margin: auto;
  text-align: center;
  margin-top: 50px;
  color: #1A4770;
  font-size: 20px;
}

/* main */
#main {
  background-color: #FFF;
  margin: auto;
}

#infos {
  display: flex;
  align-items: stretch;
  flex-direction: column;
  font-size: 20px;
  width: 100%;
}

#infos h1{
  text-align: center;
}

#infos > section {
  /* padding: 0 20px; */
  margin: auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: #f3F3F3; 
}

.last article {
  /* margin-bottom: 20px; */
  width: 90%;
  margin: 10px auto;
  background-color: rgba(255, 255, 255, 0.5);
  padding: 5px 0;
  transition : .6s;
}

.last article time{
  font-size: 12px;
  display: block;
  padding-left: 20px;
  font-weight: bold;
  width: 50%;
  float: left;
}

.last article div{
  display: flex;
  justify-content: space-between;
}

@keyframes new {
  0% {color: #FFF;}
  50% {color: red;}
  100% {color: #FFF;}
}

.last article span{
  display: block;
  font-size: 12px;
  padding-right: 20px;
  font-weight: bold;
  float: left;
  width: 50%;
  text-align: right;
  color: #FFF;
  animation: new 3s infinite;
  overflow: hidden;
}

.last article:first-of-type{
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.last article:last-of-type{
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

.last article a{
  clear: both;
  display: block;
  text-align: center;
  padding: 0 20px;
  text-decoration: none;
  font-size: 20px;
  color: #000;
  /* text-shadow: 0 1.5px rgba(0, 0, 0, 0.25); */
  
}

.last article:hover{
  transform: scale(1.05);
}

.annonce{
  border: #1A4770 solid 1px;
}

.annonce:hover{
  background-color: #1a4770;
}

.event{
  border: rgb(110, 155, 25) solid 1px;
}

.event:hover{
  background-color: rgb(110, 155, 25);
}

.recrut{
  border: rgb(112, 64, 158) solid 1px;
}

.recrut:hover{
  background-color: rgb(112, 64, 158);
}

.last article:hover a{
  color: #FFF;
}

#news .all a {
  background-color: #1A4770;
  border-color: #1A4770;
}

#news .all a:hover {
  background-color: #FFF;
  color: #1A4770;
}

#events .all a {
  background-color: rgb(110, 155, 25);
  border-color: rgb(110, 155, 25);
}

#events .all a:hover {
  background-color: #FFF;
  color: rgb(110, 155, 25);
}

/* added on 21/09/21 */
/* infos Nav */
#infosNav{
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: #555;
}

#infosNav li {
  float: left;
  font-size: 16px;
}

#infosNav li a {
  display: block;
  color: white;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  transition: 2s color, 2s background-color;
}

#infosNav li a.active {
  color: #000;
  background-color: #f3F3F3;
  font-weight: bold;
}

#infosNav li a:hover:not(.active) {
  background-color: #000;
}

#recruts .all a {
  background-color: rgb(112, 64, 158);
  border-color: rgb(112, 64, 158);
}

#recruts .all a:hover {
  background-color: #FFF;
  color: rgb(112, 64, 158);
}

@media screen and (max-width: 370px) {
  #infosNav{
    display: none;
  }

  #news, #events, #recruts{
    display: flex;
  }

  #events {
    border-top: 1px #888 solid;
    border-bottom: 1px #888 solid;
  }
}

/* Last Annonce */ 
#lastAnnonce {
  border-top: 2px solid #1A4770;
  border-bottom: 2px solid #1A4770;
  position: relative;
}

#lastAnnonce a {
  text-decoration:underline;
}

#lastAnnonce a:hover {
  text-decoration: none;
}

#lastAnnonce time {
  display: block;
  position: relative;
  margin: auto;
  text-align: center;
  top:10px;
  font-weight: bold;
  font-style: italic;
}

#lastAnnonce h1, .part h1 {
  text-align: center;
  font-size: 30px;
  color:#1A4770;
}

#lastAnnonce > h2 {
  padding-left: 10px;
}

#lastAnnonce h2+ul {
  font-size: 18px;
}

#lastAnnonce article {
  padding: 20px;
  text-align:justify;
  font-size: 18px;
}

#lastAnnonce .recrutime{
  text-align: left;
  top: 0;
}

#lastAnnonce section > div {
  text-align: center;
}

#lastAnnonce > div {
  display: flex;
  justify-content: space-around;
}

#lastAnnonce > div > section {
  width: 80%;
}

#lastAnnonce > div > aside {
  width: 20%;
}

#lastAnnonce aside > div {
  margin: 10px auto;
  width: 90%;
  border-radius: 5px;
  background-color: #1A4770;
  border: solid 2px #1A4770;
  color: #FFF;
  text-align: center;
  transition: all 2s;
}

#lastAnnonce aside > div:hover {
  background-color: #1d6cb6;
  border: solid 2px #1d6cb6;
  cursor: pointer;
}

#lastAnnonce aside > div.active {
  background-color: #FFF;
  border: solid 2px #1A4770;
  color:#1A4770;
  cursor: auto;
  font-weight: bold;
}

#lastAnnonce section > h2 {
  font-size: 18px;
  text-align: center;
}

#articleSide fieldset{
  display: none;
  text-align: center;
  background-color: #1A4770;
  border: none;
}

@media screen and (max-width: 700px) {
  #articleSide fieldset{
    display: block;
  }

  #lastAnnonce aside{
    display: none;
  }

  #lastAnnonce > div > section {
    width: 100%;
  }
}

/* Autres Annonces */
.autreAnnonce {
  width: 50%;
  float: left;
  text-align: center;
  display: flex;
  flex-direction:column;
  align-content:space-around;
  padding-top: 20px;
  padding-bottom: 20px;
  /* min-height: 142px; */
}

.autreAnnonce:nth-child(1), .autreAnnonce:nth-child(4){
  background-color: beige;
}

.autreAnnonce:nth-child(2), .autreAnnonce:nth-child(3){
  background-color: gainsboro;
}

.autreAnnonce time {
  display: block;
}

.autreAnnonce a {
  border: 3px solid #000;
  color: #000;
  padding: 0.5em 1.5em;
  text-decoration: none;
  text-transform: uppercase;
  display: block;
  width: 90px;
  margin:auto;
  transition: 2s background-color;
}

.autreAnnonce a:hover {
  background-color: #FFF;
  font-weight: bold;
}

/* toutes les Annonces */
#toutesAnnonces, #plusAnnonces, .all {
  padding: 20px;
  clear : left;
}

#toutesAnnonces a, #plusAnnonces a, .all a {
  border: 3px solid #000;
  color: #FFF;
  background-color: #000;
  padding: 0.5em 1.5em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  display: block;
  max-width: 250px;
  margin:auto;
  font-size: 18px;
  transition: 2s background-color, 2s color;
}
#plusAnnonces a {
  width: 350px;
}

#toutesAnnonces a:hover, #plusAnnonces a:hover, .all a:hover {
  background-color: #FFF;
  font-weight: bold;
  color:#000
}

/* Fil d'ariane */
#ariane {
  font-size: 15px;
  margin: 20px 20px;
}

#ariane a, #ariane a:visited {
  color: #1A4770;
  font-weight: bold;
  text-decoration: none;
  transition: 2s color;
}

#ariane a:hover {
  color:red;
  text-decoration: underline;
}

/* navigation des annonces */
#annoncesNav {
  margin-top: 20px;
  margin-bottom: 50px;
  display: flex;
  justify-content:space-between;
}

#annoncesNav a {
  color: #1A4770;
  padding: 0.5em 1.5em;
  text-decoration: none;
  text-transform: uppercase;
  display: block;
  width: 200px;
  margin:auto;
  text-align: center;
  border-radius: 10px;
  font-weight: bold;
  transition: 2s background-color;
  cursor: pointer;
}

#annoncesNav a:hover {
  background-color: #1A4770;
  color:#FFF;
}

/* Show PDF */
#showPDF{
  text-align: right;
  display: none;
}

#pdfShower{
  height: auto;
  max-height: 0;
  width: 100%;
  transition: max-height 3s;
}

/* Footer */
footer {
  background-color: rgb(46, 45, 45);
  color: #FFF;
}

#social{
  display: flex;
  justify-content: space-between;
  background-color: darkturquoise;
  align-items: stretch;
}

#social p{
  width: 50%;
  text-align: center;
  text-transform: uppercase;
  font-size: 30px;
  font-weight: bold;
}

#contact{
  text-align: center;
  width: 30%;
  float: left;
  border-right: 1px dashed #DDD;
}

#contact b{
  text-transform: uppercase;
}

#contact p:first-child{
  padding-bottom: 20px;
}

#copy {
  clear: both;
  background-color:  #000;
  display: flex;
}

#copy p:not(:last-child){
  width: 15%;
}

#copy p:last-child{
  width: 70%;
}

#plan{
  padding: 20px;
  padding-top: 60px;
  display: flex;
  justify-content: space-around;
}

#plan article{
  margin: 20px 10px;
}

#plan article b{
  text-transform: uppercase;
}

#plan li{
  margin-left: -20px;
}

#plan a:hover{
  text-decoration: underline;
}

footer a:visited, footer a {
  color: #FFF;
  text-decoration: none;
}

footer p a:hover {
  text-decoration: underline;
}

@media screen and (max-width: 1000px) {
  #contact{
    width: 100%;
    border-right: none;
    border-bottom: 1px dashed #DDD;
  }

  #plan{
    clear: both;
  }
}

@media screen and (max-width: 550px) {
  #copy{
    display: block;
  }

  #copy p:not(:last-child){
    width: 50%;
    float: left;
  }
  
  #copy p:last-child{
    clear: both;
    width: 100%;
    border-top: 1px dashed #EEE;
    padding-top: 20px;
  } 

  #social{
    flex-direction: column;
  }

  #social p {
    width: 100%;
  }

  #social p:last-child{
    margin-top: -20px;
  }

  #plan{
    clear: both;
    flex-direction: column;
  }

  #plan article{
    margin: 20px 10px;
  }
}

/* Table Annonces */
#annonces {
  width: 100%;
  font-size: 18px;
  border-collapse: collapse;
}

#annonces th:nth-child(2){
  width: 20%;
}

#annonces td:nth-child(2n){
  text-align: center;
}

#annonces td:nth-child(2n+1){
  padding: 10px;
}

#annonces .new::after{
  content: " [nouveau]";
  color:red;
  font-size: 12px;
}

#annonces tr:nth-child(odd){
  background-color: beige;
}

#annonces tr:nth-child(even){
  background-color: gainsboro;
}

#annonces tr:first-child {
  background-color: #1A4770;
  color: #FFF;
}

#annonces a{
  color: #1A4770;
  text-decoration: none;
}

#annonces a:hover{
  text-decoration: underline;
}

/* static page */
.part, .tab {
  padding: 20px ;
}

.part > article, .tab > article {
  text-align: justify;
  padding: 40px 20px ;
}

.part:nth-child(even){
  background-color: beige;
}

.part:nth-child(odd){
  background-color: gainsboro;
}

.part a, .tab a {
  text-decoration: none;
  color: #000;
}

.part div, .tab div  {
  text-align: right;
  clear: both;
}

.part > div > a:hover::before, .tab > div > a:hover::before {
  content: "aller vers le haut ";
}

/* static page menu */
#pageNav ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: #1A4770;
}

#pageNav li {
  float: left;
}

#pageNav li a {
  display: block;
  color: white;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  transition: 2s color, 2s background-color;
}

#pageNav li a.active {
  color: #1A4770;
  background-color: gainsboro;
  font-weight: bold;
}

#pageNav li a:hover:not(.active) {
  background-color: #1d6cb6;
}

/* static page (onglet) */
#main > h1{
  text-align: center;
}

.tab h2 {
  text-align: center;
}

.tab{
  background-color: gainsboro;
}

/* in progress */
#progress {
  height: 500px;
  text-align: center;
  padding: 50px 0;
  width: 100%;
}

#progress h1 {
  font-size: 30px;
}

/* Message */
#message {
  height: 300px;
  text-align: center;
  padding: 50px 0;
  width: 100%;
}

#message output{
  font-size: 20px;
  font-weight: bold;
}

/* Menu */
#nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items : stretch;
    width: 100%;
    background-color: #1A476E;
    z-index: 99;
    transition: 2s min-height;
  }
  
  #nav li {
    font-size: 18px;
    background-color: #1A476E;
    transition: 2s background-color, 2s border-radius;
  }
  
  #nav li:last-child {
    border-right: none;
  }
  
  #nav li a {
    display: block;
    color: #FFF;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    text-transform: capitalize;
    transition: 2s color;
  }
  
  #nav li a:hover:not(.active) {
    color:#1A4770;
  }

  #nav li:hover {
    background-color: #AAA;
    border-radius: 10px;
  }

  #nav li:last-child{
    display: none;
  }

  /* End Menu */

  /* gallery */
  #gallery, #gallery2 {
    display:flex;
    flex-direction:row;
    justify-content:space-evenly;
    align-items:center;
    padding: 10px 0;
  }

  #gallery {
    background-color:#2867a1;
  }

  #gallery > h1 {
    transform: rotate(270deg);
    font-size: 50px;
    color: #FFF;
  }

  @media screen and (max-width: 325px) {
    #gallery > h1 {
      font-size: 30px;
    }
  }

  @media screen and (max-width: 1150px) {
    #nav li {
      font-size: 16px;
    }
    
    /* gallery */
    #gallery {
      flex-direction:column;
    }
  
    #gallery > h1 {
      transform: rotate(360deg);
    }
  }

  @media screen and (max-width: 875px) {
    #nav li {
      font-size: 22px;
    }

    /* Menu */
    #nav li {
      display: none;
    }

    #nav li:last-child{
      display: block;
      position: absolute;
      right: 0;
      top: 0;
      
    }

    #nav ul {
      position: relative;
      flex-direction: column;
      min-height: 64px;
      overflow: visible;
    }
  }

  @media screen and (max-width: 600px) {

    /* main */
    #main {
      width: 100%;
    }

    /* Slider */
    #slider a {
      margin-top: 0px;
    }
    
    /* toutes les Annonces */
    #toutesAnnonces, #plusAnnonces {
      padding: 20px 0;
    }
    
    #plusAnnonces a {
      width: 100%;
      padding: 0.5em 0;
    }

    /* Autres Annonces */
    .autreAnnonce {
      width: 100%;
    }
    
    .autreAnnonce:nth-child(odd){
      background-color: beige;
    }
    
    .autreAnnonce:nth-child(even){
      background-color: gainsboro;
    }
  }
  
  @media screen and (max-width: 800px) {
    #plan {
      flex-wrap: wrap;
    }
  }
  
/* FC */
#fc {
  width: 100%;
  background-color: rgba(0, 0, 0, 0.89);
  color:#FFF;
  font-weight: bold;
  padding: 20px 0;
}
#fc h1, #fc figure{
  text-align: center;
}

#fc img{
  border-radius: 20px;
}
#fc figure{
  margin: 20px 10px;
}
#fc > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}
#fc .all a {
  background-color: #FFF;
  border-color: #FFF;
  color:rgba(0, 0, 0, 0.89);
}

#fc .all a:hover {
  background-color: rgba(0, 0, 0, 0.89);
  color: #FFF;
}

/* Attachments */
#attachments {
  width: 80%;
  margin: auto;
  border-collapse: collapse;
}

#attachments td:nth-child(2) {
  width: 90%;
  padding-left: 10px;
}
#attachments td:nth-child(3), #attachments td:nth-child(4) {
  width: 5%;
  text-align: center;
}

#attachments tr:nth-child(even) {background: rgb(250, 250, 250)}

#attachments tr:nth-child(odd) {background: #EEE}

/* FSAC en Chiffres */
#chiffres{
  text-align: center;
background-color: rgb(179, 224 , 255);
  padding: 20px 0;
}

#chiffres h1{
  font-size: 30px;
  /* color: #FFF; */
}

#chiffres div{
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}

#chiffres article{
  width: 200px;
  background-color: rgba(255, 255, 255, 0.6);
  border-radius: 10px;
  margin: 20px;
  font-weight: bold;
  flex:0 0 25%;
}

@media screen and (max-width: 775px) {
  #chiffres article {
    flex:0 0 auto;
  }
}

#chiffres span{
  font-size: 25px;
  color: darkorange;
  border-bottom: rgb(179, 224 , 255) solid 2px;
  display: block;
  padding-top: 5px;
}

/* Message Box Cookies */
#cookiesMSGBOX {
  text-align: center;
  width: 80%;
  position: fixed;
  top:150px;
  z-index: 100;
}

#cookiesMSGBOX input[type=button]{
  border: none;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  display: inline-block;
  border-radius: 5px;
  height: 30px;
  margin-bottom: 5px;
}