/* Reset total pour body et html */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow-x: hidden; /* supprime tout scroll horizontal inutile */
  display: flex;
  flex-direction: column;
  font-family: 'Nunito', Arial, sans-serif;
}

/* Conteneur vidéo */
.background-video-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden; /* masque les parties qui dépassent */
  z-index: -2;
}

/* Iframe Vimeo */
.background-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw; /* ratio 16:9 par défaut */
  min-height: 100vh; /* assure qu’elle dépasse si nécessaire */
  transform: translate(-50%, -50%) scale(1.2); /* zoom pour supprimer les marges */
  pointer-events: none;
  display: block;
}

/* Header et navigation */
.site-header {
  position: relative;
  z-index: 1; /* au-dessus de la vidéo */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  /*background-color: rgba(0,0,0,0.3); semi-transparent pour voir la vidéo derrière */
  background: linear-gradient(to left,rgba(0, 0, 0, 0.3),rgba(0, 0, 0, 0),rgba(0, 0, 0, 0));
  color: white;
}

.logo img {
  height: 100px;
}

main {
  flex: 1;  /* pousse le footer en bas */
}

/*Titres*/
h1 {
  font-size: 3em;
  margin-bottom: 20px;
  font-family: 'Slackey', cursive;
}

h3 {
  font-size: 1em;
  font-family: 'Slackey', cursive;
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
}

.site-nav a {
  text-decoration: none;
  color: white;
  font-family: 'Slackey', cursive;
}

.hero {
  padding: 100px 20px;
  text-align: center;
  color: white;
  text-shadow: 3px -3px 3px black, -3px 3px 12px darkgoldenrod;
}

/* Cartes */
.cartes {
  display: flex;
  background-color: rgba(255,255,255,0);
  transition: transform 0.3s ease;
  gap: 40px;
  flex-wrap: wrap;
  width: 50%;
  margin: 0 auto;
}

.carte,.carte a {
  flex: 1 1 250px;
  background-color: rgba(255,255,255,0);
  text-align: center;
  text-decoration: none;
  color: bisque;
  border-radius: 8px;
  text-shadow: 3px 3px 3px black, -3px -3px 12px darkgoldenrod;
}

.service:hover {
  transform: translateY(-5px);
}

/* Footer */
.site-footer {
  background-color: rgba(0,0,0,0.3);
  color: #ffffff;
  text-align: center;
  padding: 20px;
  position: relative;
  bottom: 0;
  /*margin-top: 40px;*/
}

.titre {
  padding: 0px;
  text-align: center;
  color: white;
  text-shadow: 3px -3px 3px black, -3px 3px 12px darkgoldenrod;
}