@font-face {
  font-family: 'Goffik-O';
  src: url('Fonts/Goffik-O.ttf') format('truetype');
}

@keyframes fadeIn {
  to { opacity: 1 }
}

@keyframes slideHorizontal {
  0% {
    transform: translateX(1000px);
  }
  100% {
    transform: translateX(0);
  }
}

@keyframes rotate-left-normal {
  0% { 
    transform: rotate(0); transform-origin: left;
  }
  100% { 
    transform: rotate(360deg); transform-origin: left;
  }
}

body {
  margin: 0;
  font-family: sans-serif;
  font-size: 1.2em;
  overflow-x: hidden;
}

body a {
  text-decoration: none;
  color: white;
}

h1 {
  margin: 0;
  font-size: 3em;
  text-align: center;
  padding-top: 30px;
}

h2 {
  font-size: 1.5em;
  margin-bottom: 10px;
}

h3 {
  font-size: 1.3em;
  margin-top: 0;
  padding-top: 8px;
  padding-bottom: 8px;
}

.box-compteur {
    display: flex;
    align-items: flex-end;                /* aligne en bas les div contenues dans box-compteur */
    width: fit-content;
    margin: 0 auto;                       /* centre horizontalement */
    margin-top: 50px;
    font-family: Arial, sans-serif;
    font-size: 20px;
    border-top: inset 3px;
    border-bottom: outset 3px;
}

.num {
    font-size: 50px;
    margin-right: 10px;
}

.carre {
  font-size: 1.8em;
}




/* TOUTES LES PAGES */

@media screen and (max-width: 600px) {
  h1 {
    font-size: 1.6em;
  }
  h2 {
    font-size: 1.2em;
  }
  .carre {
  font-size: 1.5em;
  }
  h1 img {
    height: 26px;
  }
}




/* ACCUEIL */

.page-accueil {
  margin: 0;
  padding: 0;
  height: 100vh;
  text-align: left;
  color: #ffffff;
  background-image: url('images/Accueil.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  animation: fadeIn 1s ease-in forwards;
}

.titre-accueil {
  margin: 0;
  font-family:Goffik-O, sans-serif;
  font-size: 6.5em;
  padding-left: 100px;
  padding-top: 55px;
}

.texte-accueil {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  padding-left: 100px;
  font-size: 1.3em;
}

.conteneur-accueil {
  position:absolute;
  top: 0;
  right: 7%;
  display: flex;
  height: 100vh;
  flex-direction: column;
  justify-content: space-between;
  padding: 5% 0;
  box-sizing: border-box;               /* Inclut le padding dans la hauteur */      
}

.panneau-affichage {
  width: 330px;
  height: 220px;
  color: black;
  text-align:center;
  background-color: #ffffff;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  font-size: 0.9em;
  font-family: Arial, Helvetica, sans-serif;
  opacity: 0;
  animation: fadeIn 2s ease-in forwards;
}

.panneau-affichage h2 {
  color:rgb(255, 255, 255);
  font-size: 1.4em;
  margin-top: 0px;
  padding: 5px;
}

.liste-documents ul{
  padding: 20px;
  margin: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}

.liste-documents a {
  text-decoration: none;
  color: black;
}

.vertical-scroll {
  height: 160px;
  overflow: hidden;
  position: relative;
}

.vertical-scroll div {
  position: absolute;
  margin-top: 30px;
  animation: scroll-vertical 22s linear infinite;
}

.vertical-scroll div:hover { 
  animation-play-state: paused;
}

@keyframes scroll-vertical {
  0%   { transform: translateY(160px); }
  100% { transform: translateY(-100%); }
}

@media screen and (max-width: 600px) {
  .page-accueil {
    background-image: url('images/T-Accueil.png');
    background-position-y: 110px;
  }
  .titre-accueil {
    font-size: 2em;
    text-align: center;
    padding-left: 0;
    background-color: #2069a3;
  } 
  .texte-accueil {
    font-size: 1.1em;
    text-align: center;
    width: 60%;
    margin: auto;
    padding-left: 0;
    padding-top: 260px;
    color: black;
  }
  .conteneur-accueil {
    position: relative;
    height: 800px;
    align-items: center;
    right: 0;
  }
}




/* ADHESION */

.page-adhesion {
  margin: 0;
  padding: 0;
  background-image: url('images/Adhesion.png');
  color: white;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 100vh;
  opacity: 0;
  animation: fadeIn 1s ease-in forwards;
}

.conteneur-adhesion {
  display: flex;
  justify-content: center;
  margin-top: 40px;
  gap: 3%;
}

.bloc-adhesion {
  text-align: justify;
  border: 1px solid white;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  padding: 40px;
  width: 40%;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
  background-size: cover;
  background-position: center;
}

.bloc-adhesion li {
  padding: 8px;
}

@media screen and (max-width: 600px) {
  .page-adhesion {
    background-attachment: fixed;
    height: 100%;
    font-size: 0.9em;
    background-position: top;
  }
  .conteneur-adhesion {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding-bottom: 20px;
  }
  .bloc-adhesion {
    width: 80%;
    padding: 30px;
  }
}




/* LOCATION */

.page-location {
  margin: 0;
  padding: 0;
  height: 100vh;
  opacity: 0;
  animation: fadeIn 1s ease-in forwards;
}

.partie-haute {
  background-image: url('images/location.png');
  height: 50%;
  background-size: cover;
}

.intro-location {
  padding-top: 50px;
  width: 400px;
  margin: 0 auto;
  text-align: justify;
}

.conteneur-location {
  display: flex;
  gap: 10%;
  justify-content: center;
}

.bloc-location {
  width: 35%;
  padding: 25px;
}

@media screen and (max-width: 600px) {
  .page-location {
    font-size: 0.9em;
  }
  .partie-haute {
    background-image: none;
    background-color: #dae0ee;
    height: 60%;
  }
  .intro-location {
    padding-top: 30px;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 50px;
    width: 85%;
  }
  .cercle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background-image: url('images/location.png');
    background-size: cover;
    background-position-x: -10px;
    float: left;               /* permet au texte de s’écouler autour */
    shape-outside: circle();   /* définit la forme de contournement */
    clip-path: circle();       /* découpe visuellement l’élément */
    margin: 10px;
  }
  .page-location .box-compteur {
    margin-top: 15px;
  }
  .conteneur-location {
    gap: 1%;
  }
  .bloc-location {
    width: 50%;
    padding: 10px;
  }
}




/* ECOLE */

.page-ecole {
  margin: 0;
  padding: 0;
  background-image: url('images/ecole.png');
  color: white;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 100vh;
  opacity: 0;
  animation: fadeIn 1s ease-in forwards;
}

.intro-ecole {
  margin-top: 130px;
  margin-bottom: 150px;
  text-align: center;
  font-size: 2em;
}

.conteneur-ecole {
  display: flex;
  justify-content: space-around;
}

.bloc-ecole {
  text-align: justify;
  border: 1px solid white;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  padding: 10px 25px;
  width: 25%;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.2));
}

@media screen and (max-width: 600px) {
  .page-ecole {
    background-attachment: fixed;
    height: 100%;
  }
  .intro-ecole {
    margin-top: 100px;
    margin-bottom: 100px;
    text-align: center;
    font-size: 1.5em;
  }
  .conteneur-ecole {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 5%;
    gap: 20px;
    padding-bottom: 20px;
  }
  .bloc-ecole {
    width: 90%;
    font-size: 0.9em;
  }
}




/* SORTIES */

.page-sorties {
  margin: 0;
  padding: 0;
  background-image: url('images/sorties.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 100vh;
  opacity: 0;
  animation: fadeIn 1s ease-in forwards;
}

.conteneur-sorties {
  display: flex;
  justify-content: space-around;
  padding-top: 30px;
}

.bloc-sorties-gauche {
  color: white;
  width: 35%;
  padding: 40px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  text-align: justify;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
  background-size: cover;
  background-position: center;
}

.bloc-sorties-droite {
  color: white;
  width: 50%;
  padding: 40px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
  background-size: cover;
  background-position: center;
}

@media screen and (max-width: 600px) {
  .page-sorties {
    background-attachment: fixed;
    height: 100%;
  }
  .conteneur-sorties {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding-bottom: 20px;
  }
  .bloc-sorties-gauche {
    font-size: 0.9em;
    width: 90%;
    padding: 10px;
  }
  .bloc-sorties-droite{
    font-size: 0.65em;
    width: 90%;
    padding: 20px 10px;
  }
}




/* TARIFS */

.page-tarifs {
  margin: 0;
  padding: 0;
  background-image: url('images/tarifs.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 100vh;
  opacity: 0;
  animation: fadeIn 1s ease-in forwards;
}

.conteneur-tarifs {
  display: flex;
  justify-content: space-around;
  padding-top: 30px;
}

.bloc-tarifs-gauche {
  color: white;
  flex-direction: column;
  width: 35%;
  padding: 40px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  text-align: justify;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
  background-size: cover;
  background-position: center;
}

.bloc-tarifs-droite {
  color: white;
  width: 50%;
  padding: 40px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  text-align: justify;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
  background-size: cover;
  background-position: center;
}

.italic-gauche {
  margin-top: 5px;
  padding: 8px;
  font-size: 0.9em;
  font-style: italic;
}

.italic-droite {
  margin-top: 40px;
  font-size: 0.9em;
  font-style: italic;
}

.tarif-sortie {
  width: 18%;
  height: 210px;
  margin: 0;
  font-size: 2.5em;
  color: black;
  text-align: center;
  background-color: white;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.tarif-sortie h3 {
  font-size: 0.7em;
}

@media screen and (max-width: 600px) {
  .page-tarifs {
    background-image: url('images/T-tarifs.png');
    background-attachment: fixed;
    height: 100%;
  }
  .conteneur-tarifs {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.9em;
    gap: 20px;
    padding-bottom: 20px;
  }
  .bloc-tarifs-gauche,
  .bloc-tarifs-droite{
    width: 90%;
    padding: 10px;
  }
  .italic-gauche,
  .italic-droite {
    font-size: 0.87em;
  }
  .tarif-sortie h3 {
    font-size: 0.65em;
  }
  .tarif-sortie {
    height: 130px;
    font-size: 1.7em;
  }
  .bloc-tarifs-droite ul {
    padding-left: 20px;
  }
}




/* EVENEMENTS */

.page-evenements {
  margin: 0;
  padding: 0;
  background-image: url('images/evenements.png');
  color: white;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 100vh;
  opacity: 0;
  animation: fadeIn 1s ease-in forwards;
}

.conteneur-evenements {
  display: flex;
  justify-content: space-around;
  padding-top: 60px;
}

.bloc-evenements {
  text-align: center;
  width: 300px;
  height: 450px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 8px 16px rgba(0,0,0);
  position: relative;
}

.bloc-evenements h3 {
  padding-top: 370px;
  margin-bottom: 0;
  color: black;
}

.commentaire {
  text-align: justify;
  margin-top: 25px;
}

/*
.bloc-evenements::before,
.bloc-evenements::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  background: linear-gradient(45deg, #ff0000, #00f0f0, #00ff00, #0000ff, #ff0000, #00f0f0, #00ff00, #0000ff, #f00f0f);
  background-size: 500%;
  width: 100%;
  height: 100%;
  z-index: -1;
  transform: scale(1.01);
  animation: animate 20s infinite;
}

.bloc-evenements::after {
  filter: blur(5px);
}

@keyframes animate {
  0% { background-position: 0 0; }
  50% { background-position: 300% 0; }
  100% { background-position: 0 0; }
}
*/

@media screen and (max-width: 600px) {
  .page-evenements {
    height: 100%;
    font-size: 0.9em;
    background-image: url('images/T-evenements.png');
    background-position: top;
    background-size: 100% 1900px;  /* largeur 100%, hauteur fixe */
    background-repeat: repeat-y;
    }
  .conteneur-evenements {
    flex-direction: column;
    align-items: center;
    gap: 300px;
    padding-bottom: 150px;
    }
}




/* CONTACT */

.page-contact {
  margin: 0;
  padding: 0;
  background-image: url('images/contact.png');
  color:white;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 100vh;
  opacity: 0;
  animation: fadeIn 1s ease-in forwards;
}

.contact {
  position:absolute;
  width: 380px;
  top: 200px;
  left: 300px;
  font-size: 1.2em;
  text-align: center;
}

iframe {
  position: absolute;
  top: 300px;
  right: 150px;
  width: 500px;
  height: 500px;
}

@media screen and (max-width: 600px) {
  .page-contact {
    background-image: none;
    height: 960px;
    background-color: rgba(70,70,70);
  }
  .contact {
    position: relative;
    left: 0;
    top: 30px;
    margin: auto;
    font-size: 1em;
    width: 260px;
  }
  iframe {
    position: relative;
    top: 70px;
    right: 0;
    width: 90%;
    margin-left: 5%;
    padding-bottom: 20px;
  }
}




/* TABLEAUX */

.table-container {
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead {
  background-color:coral;
  color: white;
  font-weight: normal;      /* supprime le gras */
}

th, td {
  padding: 3px;
  text-align: center;
}

tbody tr {
  border-bottom: 1px solid #ddd;
  transition: background-color 0.3s ease;
}

tbody tr:hover {
  background-color: lightsalmon;
}