@font-face {
    font-family: 'Aston Script Copie';
    src: url('fonts/aston-script-copie.ttf') format('truetype');
  }
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    min-height: 100vh;
    background-color: black;
    color: rgba(255, 255, 255, 0.8);
    font-family: 'Aston Script Copie', cursive;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }
  body.about {
    background-image: url(image3.png);
  }
  
  body.about p {
    font-family: Arial, sans-serif;
    font-size: 1.2rem;
    padding: 1rem;
    border-radius: 10px;
    line-height: 1.6;
    text-shadow: 
    -1px -1px 0 #000,  
     1px -1px 0 #000,
    -1px  1px 0 #000,
     1px  1px 0 #000;
  }
  /* Spécifique à index.html : fond + texte plus petit et en Arial */
  body.index {
    background-image: url('image1.png');
  }
  
  body.index p {
    font-family: Arial, sans-serif;
    font-size: 1.2rem;
    padding: 1rem;
    border-radius: 10px;
    line-height: 1.6;
    text-shadow: 
    -1px -1px 0 #000,  
     1px -1px 0 #000,
    -1px  1px 0 #000,
     1px  1px 0 #000;
  }
  
 
  nav {
    display: flex;
    justify-content: center; /* centre les liens horizontalement */
    align-items: center;     /* aligne les éléments à la même hauteur */
    gap: 2rem;               /* espace entre les liens */
    padding: 1rem;
    height: 80px;            /* fixe une hauteur uniforme */
  }
  
  nav a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    margin: 0 1rem;
    padding: 0.5rem 1rem;
    border: 3px solid white; /* GROS contour blanc */
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 1.4rem;
  }
  
  nav a:hover {
    color: white;
    text-shadow: 0 0 10px white;
    background-color: rgba(255, 255, 255, 0.1);
  }
p span,
h1 span,
h2 span,
h3 span {
  display: inline-block;
  transition: text-shadow 0.3s ease, color 0.3s ease;
  color: rgba(255, 255, 255, 0.9);
}

p span:hover,
h1 span:hover,
h2 span:hover,
h3 span:hover {
  color: white;
  text-shadow: 0 0 8px white;
  cursor: default;
}
  
  main {
    text-align: center;
    max-width: 800px;
  }
 
  body.images-page,
.images-page main {
  margin: 0;
  padding: 0;
  height: 100vh;
  background-color: black;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.slideshow {
  position: relative;
  width: 100%;
  height: 100vh;
  max-height: 800px;
}
.slideshow-container {

  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgb(255, 255, 255);
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 1rem;
  text-align: center;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  z-index: 1;
}

form.formulaire {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

form.formulaire textarea {
  width: 80%;
  height: 150px;
  padding: 1rem;
  font-family: Arial, sans-serif;
  font-size: 1rem;
  border: 2px solid white;
  background-color: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 1);

  resize: none;
}

form.formulaire button {
  padding: 0.5rem 1.5rem;
  border: 2px solid white;
  background-color: transparent;
  color: white;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.3s ease;
}

form.formulaire button:hover {
  box-shadow: 0 0 10px white;
}
/* -------- RESPONSIVE DESIGN : Smartphones / Tablettes -------- */
@media (max-width: 768px) {
  body {
    padding: 1rem;
    justify-content: flex-start;
  }

  nav {
    flex-direction: column;
    gap: 1rem;
    height: auto;
  }

  nav a {
    font-size: 1.1rem;
    padding: 0.4rem 0.8rem;
    width: 100%;
    text-align: center;
  }

  main {
    width: 100%;
    max-width: 100%;
    padding: 1rem;
  }

  body.index p,
  body.about p {
    font-size: 1rem;
    padding: 0.5rem;
  }

  .slide {
    object-fit: contain;
  }

  form.formulaire textarea {
    width: 95%;
  }
}
img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 2rem auto;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}
