/* CSS is how you can add style to your website, such as colors, fonts, and positioning of your
   HTML content. To learn how to do something, just try searching Google for questions like
   "how to change link color." */
   
@font-face {
  font-family: "ChettaVissto";
  src: url("fonts/ChettaVissto.otf") format("opentype");
}
/* Animation de va-et-vient gauche-droite */
@keyframes flotter {
    0%   { transform: translateX(0px); }
    50%  { transform: translateX(15px); }
    100% { transform: translateX(0px); }
}

/* Appliquer à toutes tes images décoratives */
.decor-img {
    position: absolute;
    object-fit: contain;
    pointer-events: none;
    opacity: 0.95;
    animation: flotter 4s ease-in-out infinite;
}


body {
  background-color: #86ADC2;
  font-family: 'ChettaVissto', sans-serif;
  color: #333;
  margin: 0;
  padding: 0;
}

.container {
  width: 80%;
  margin: auto;
  padding: 30px;
  background: white;
  border: 8px solid #ccc;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

header {
  text-align: center;
  margin-bottom: 40px;
}

header img {
  max-width: 550px;
}

h1, h2 {
  font-family: 'ChettaVissto', serif;
  color: #5e4a4a;
  text-align: center;
}

.intro, .message, .memories {
  margin: 40px 0;
  padding: 20px;
  background: #e6e1dc;
  border: 2px dashed #bba;
}

ul {
  list-style-type: square;
  padding-left: 20px;
}

footer {
  text-align: center;
  padding: 20px;
  margin-top: 40px;
  font-style: italic;
  background-color: #d8d4cf;
  border-top: 2px solid #999;
}

/* Slider */
.gallery {
  text-align: center;
  position: relative;
  margin: 40px 0;
}

.slider {
  position: relative;
  max-width: 500px;
  margin: auto;
  overflow: hidden;
  border: 4px solid #aaa;
  background: #fff;
}

.slide {
  display: none;
  width: 100%;
}

.slide.active {
  display: block;
}

button.prev, button.next {
  position: absolute;
  top: 50%;
  background-color: rgba(0,0,0,0.4);
  color: white;
  font-size: 24px;
  border: none;
  padding: 10px;
  cursor: pointer;
  transform: translateY(-50%);
}

button.prev {
  left: 0;
}

button.next {
  right: 0;
}

.decor {
    width: 100vw;
    height: 100vh;
}

/* Style de base pour toutes les images décoratives */
.decor-img {
    position: absolute;
    object-fit: contain;
    pointer-events: none; /* empêche l'image de bloquer les clics */
    opacity: 0.9;
}

/* Position et taille personnalisées par image */
.img1 {
    top: 7px;
    left: 180px;
    width: 85px;
    transform: rotate(-0deg);
}

.img2 {
    bottom: 32px;
    right: 1230px;
    width: 354px;
    transform: rotate(0deg);
}

.img3 {
    top: 534px;
    left: 41%;
    width: 350px;
}

.img4 {
    bottom: 13%;
    left: 71%;
    width: 230px;
    transform: rotate(-0deg);
}
.img5 {
    bottom: 76%;
    left: 75%;
    width: 210px;
    transform: rotate(-2deg);
}


