@font-face {
  .charmonman-bold {
    font-family: "Charmonman", cursive;
    font-weight: 700;
    font-style: normal;
  }
}

@font-face{
  .rubik-regular {
    font-family: "Rubik", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
  }
}

:root{
  /*variables*/
  --main-color:#d2b28b;
  --secondary-color: #9dba81;
  --text-color: #5d6d4f;
  --third-color : #efe6d8;
 
  /*police*/
  font-family: 'Rubik';
  font-size : 15px;
  color: var(--text-color);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

h1 {  
  font-family: 'Charmonman';
  font-size: 40px;
  text-shadow: 2px 2px 1px #bfb6ab60;
}

h2 {
  font-size: 2rem;
  margin: 10px;
}

h3 {
  font-family: 'Charmonman';
  font-size: 1.7rem;
  margin: 15px;
}

summary{
  font-family: 'Charmonman';
}

h4 {
  font-size: 1.5rem;
  margin : 5px
}

h5 {
  font-size: 1.4rem;
  color: var(--secondary-color);
}

h6 {
  font-size: 1.3rem;
}

header i{
  font-size:1.7rem;
  margin : 1vh;
  color: var(--main-color);
}


.flex-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content:space-evenly
}

.flex-column {
  display: flex;
  flex-direction: column;
  /* align-items: left; */
  justify-content: baseline;
}

.flex-nowrap {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content:left;
  gap:15px;
}

.align-right{
  justify-content: flex-end;
}

.align-left{
  justify-content: flex-start;
}

.box-shadow {
  box-shadow: 0px 2px 4px gray;
}

.border-radius {
  border-radius: 12px;
}

.padding {
  padding : 15px;
}

.margin {
  margin : 1px;
}

.decalage {
  margin-right: 20vh;
}

.icon {
  height: 70px;
}

/*en-tête*/

header {
  gap: 3vh;
  position: sticky;
  top: 0;
  overflow: hidden;
  background-color: white;
  width : 100%;
  z-index: 1;
}


.liens-normaux a{
  text-decoration: none;
  color: var(--text-color);
  margin : 1vh;
}


img[title="logo"] {
    width: 15vw;
    height: auto;
}

.banniere {
  background: url('../images/banniere.png');
  background-attachment:local; 
  background-repeat: no-repeat;
  /* background-size:100%; */
  background-position: bottom 0px right 0px;
  height :350px;
  color:var(--text-color)
}

.banniere i{
  font-size:2.8rem;
  color: var(--main-color);
}

.content-right{
  justify-content: right;
}

.banniere p {
  margin-top: 10px;
}

.fond-bleu{
  background: #bed4dd;
  margin-top: 2vh;
  width: 100%;
  align-items: baseline;
}
.col {
  flex :1;
  margin: 2vh;
  text-align: left;
}

.flex-2 {
  flex :2;
}

.overflow {
  overflow:hidden;
}

.white-border {
  border-left: solid 0.6vh #ffffff ;
}

.white-text p, .white-text li {
  color: #ffffff;
}

.center {
  max-width: 900px;      /* largeur maximale souhaitée */
  width: 100%;           /* prend toute la largeur dispo */
  margin: 0 auto;        /* centre horizontalement */
  padding: 0 5vh;       /* petit padding pour aérer sur petits écrans */
  text-align: center;    /* centre le texte dans le bloc */
}


.col:has(img){
  text-align: center;
}

.col img {
  flex : 1;
  width: 60vw;
  max-width: 900px;
  height: auto;
}

img[id="mairie"]{
  width: 60px;
  height : 60px
}

.bold {
  font-weight: bold;
}

.photos img {
  height : 20vh;
  width : 20vh;
  border: 1vh solid white;
  border-radius : 100%;
}

    /* Overlay plein écran caché par défaut */
    .modal {
      display: none;
      position: fixed;
      z-index: 9999;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      overflow: auto;
      background-color: var(--secondary-color);
      opacity: 0.92;
    }

    /* Image agrandie centrée */
    .modal-content {
      display: block;
      margin: 5% auto;
      max-width: 90%;
      max-height: 80%;
    }

    /* Bouton de fermeture */
    .close {
      position: absolute;
      top: 20px;
      right: 35px;
      color: white;
      font-size: 40px;
      font-weight: bold;
      cursor: pointer;
    }

.box-shadow-blue{
  box-shadow: 6px 6px 6px var(--main-color);
}

details {
  border-radius: 8px;
  margin: 8px 0;
  padding: 10px;
  background-color: var(--secondary-color);
  transition: all 0.5s ease;
}

details[open] {
  background-color: var(--third-color);
}

summary {
  font-weight: bold;
  cursor: pointer;
  outline: none;
  font-size: 1.8rem;
}

.grid{
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  grid-gap: 1rem;
}

.tile img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.un{
  grid-column:1/6;
  grid-row: 1;
  align-self:flex-end;
}

.deux{
  grid-column:6/9;
  grid-row: 1/3;
}

.trois{
  grid-column:9/11;
  grid-row: 1;
}

.quatre{
  grid-column:1/6;
  grid-row: 2/3;
}

.cinq{
  grid-column:9/11;
  grid-row: 2/3;
}

.six{
  grid-column:1/5;
  grid-row: 3/5;
}

.sept{
  grid-column:5/9;
  grid-row: 3/5;
}

.huit{
  grid-column:9/11;
  grid-row: 3/4;
}

.neuf{
  grid-column:9/11;
  grid-row: 4/5;
}

.dix{
  grid-column:1/3;
  grid-row: 5/6;
}

.onze{
  grid-column:3/7;
  grid-row: 5/8;
}

.douze{
  grid-column:7/10;
  grid-row: 5/8;
}

.treize{
  grid-column:10/11;
  grid-row: 5/6;
}
/* 
.tile:nth-child(2),
.tile:nth-child(3){
    grid-column: span 1;
}

.tile:nth-child(4){
  grid-column: span 3;
}

.tile:nth-child(5){
    grid-column: span 2;
} */

iframe{
  height:10vh;
}







@media all and (max-width: 700px) {
  header {
    position: inherit;
  }

  img[title="stage"], img[title="planning"]{
    width:80vw;
  }

  .overflow {
    overflow: visible;
  }

  .grid{
    display: block;
  }
  .tile{
      margin-bottom: 1rem;
  }

  .banniere{
    display: none;
  }
}
