/* HEADER */

.header {
  padding-top: 100px;
}

/* LAYOUT */

#anniversaire img{
  width: 70%;
  margin-top: -35%;
  margin-bottom: 30px;
  border: 8px solid var(--gris-bleu-clair-A);
}
#anniversaire .block-type-image{
  margin-bottom: 0;
}

/* AGENDA */

.agenda{
  padding-top: 0;
}
.agenda h2,
.agenda .filtres{
  display: inline-block;
}
.agenda .filtres{
  margin-left: 50px;
  position: relative;
  bottom: 5px;
}
.agenda input[value="read_more"]{
  position: absolute;
  left: -99999px;
  visibility: hidden;
}
.agenda .bouton_more{
  display: flex;
  margin: -100px -15px 40px -15px;
  padding-top: 120px;
  position: relative;
  z-index: 3;
}
.agenda .bouton_more:before,
.agenda .bouton_more:after{
  display: inline-block;
  border-bottom: 4px solid transparent;
  content: attr(hr);
  border-image-slice: 18 10;
  border-image-repeat: stretch;
  margin: 10px 20px;
  flex: auto;
}
.agenda .bouton_more:before{
  border-image-source: url("../../../assets/graphics/borders/border-3.webp");
  width: auto;
}
.agenda .bouton_more:after{
  border-image-source: url("../../../assets/graphics/borders/border-1.webp");
  width: auto;
}
.agenda label{
  font-family: 'Karla Bold'!important;
  cursor: pointer;
}
.agenda label:after{
  transform: rotateZ(90deg);
}
.agenda label.contour-btn:hover:after{
  transform: rotateZ(90deg);
  margin-left: 5px;
  margin-top: 5px;
}
.agenda ul{
  max-height: 300px;
  overflow: hidden;
  transition: max-height 1s ease;
}
.agenda ul.no_read_more,
.agenda input:checked ~ ul{
  height: fit-content;
  max-height: 10000px;
}
.agenda input:checked ~ .bouton_more{
  display: none;
}
.agenda li figure .date p,
.agenda li figure .lieu{
  background-color: var(--beige);
}
.agenda li figure:hover img{
  opacity: .6;
}

/* ACTUS */
.actus li{
  max-width: calc(100% / 2);
  min-width: calc(100% / 2);
  align-self: center;
}
.actus li a{
  padding-right: 10px;
  margin: 20px 40px 20px 40px;
}
.actus li a:hover{
  padding-right: 8px;
  padding-left: 28px;
}
.actus li a .chapeau{
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* RESSOURCES */

.ressources {
  padding-bottom: 40px;
}
.ressources .ressources-filtres {
  padding-bottom: 4%;
}
.grid-ressources li:nth-of-type(12n-2),
.grid-ressources li:nth-of-type(12n-4),
.grid-ressources li:nth-of-type(12n-9),
.grid-ressources li:nth-of-type(12n-11){
 grid-row: span 2;
}

@media screen and (max-width: 64em) and (min-width: 48em) {
  .header {
    overflow: hidden;
    padding-top: 140px !important;
    padding-bottom: 50px;
  }
  .header img {
    margin-left: -5%;
    width: 125%;
    text-align: center;
  }
  .agenda .filtres {
    display: none;
  }
  .agenda .grid-carrousel li{
     min-width: 100%;
  }
  .agenda ul{
    max-height: 600px;
  }
  .actus li{
    max-width: calc(100%);
    min-width: calc(100%);
  }
  .actus li a{
    margin: 10px 20px 10px 20px;
  }
  #anniversaire img{
    width: 70%;
    margin-top: -20%;
    margin-bottom: 30px;
    border: 8px solid var(--gris-bleu-clair-A);
  }
  #anniversaire .block-type-image{
    margin-bottom: 0;
  }
  .grid-ressources li{
    grid-row: span 1 !important;
  }
  .grid-ressources li:nth-of-type(9n-3),
  .grid-ressources li:nth-of-type(9n-6),
  .grid-ressources li:nth-of-type(9n-8){
    grid-row: span 2!important;
  }
}

@media screen and (max-width: 48em) {
  .header img {
    position: relative;
    top: -30px;
    margin: 0 auto -120px auto;
    width: 80%;
    text-align: center;
  }
  .header {
    margin-bottom: 80px;
  }
  .filtres .filtre_tags {
    display: none;
  }
  .agenda .grid-carrousel li{
     min-width: 100%;
  }
  .agenda .filtres {
    display: none;
  }
  .agenda ul{
    max-height: 600px;
  }
  .actus li{
    max-width: calc(100%);
    min-width: calc(100%);
  }
  .actus li a{
    margin: 20px;
    border-left: 0;
    padding: 0;
  }
  .actus li a .chapeau{
    display: block;
    white-space: nowrap!important;
    text-overflow: ellipsis;
    overflow: hidden;
  }
  #anniversaire img{
    width: 100%;
    margin-top: 0;
  }
  #anniversaire .block-type-image,
  #anniversaire .block-type-heading,
  #anniversaire .block-type-grid{
    margin-bottom: 0 !important;
  }
  .grid-ressources li{
    grid-row: span 1 !important;
  }
  .grid-ressources li:nth-of-type(6n-1),
  .grid-ressources li:nth-of-type(6n-5){
    grid-row: span 2!important;
  }
}
