@charset "utf-8";
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  padding: 0;
  font-family: Verdana, Arial, sans-serif;
  background-color: #ffffff;
  color: #333;
  display: flex;
  justify-content: center;
  background-image: url('infographies/FondWebFonce.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}
.page-wrapper {
  max-width: 1200px;
  width: 100%;
  padding: 20px;
  text-align: center;
}
header {
  margin-bottom: 20px;
}
header img {
  width: 100%;
  max-width: 775px;
  height: auto;
}
h1 {
  font-size: 2rem;
  color: #53FF9C;
  margin-top: 20px;
}
.ca-section {
  position: relative;
  margin-top: 20px;
}
.img-wrapper {
  position: relative;
  width: 100%;
  max-width: 600px;
  height: auto;
  aspect-ratio: 3/2; /* par exemple 600x400 = 3/2 */
  margin: auto;
  overflow: hidden;
}
.img-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.7);
  transition: all 0.6s ease;
  opacity: 1;
  z-index: 1;
}
.exit-left {
  transform: translateX(-100%);
  opacity: 0;
  z-index: 2;
}
.exit-right {
  transform: translateX(100%);
  opacity: 0;
  z-index: 2;
}
.next-img {
  z-index: 3;
}
.enter-left {
  transform: translateX(100%);
  opacity: 0;
  z-index: 3;
  animation: slide-in-left 0.6s forwards;
}
.enter-left.active {
  transform: translateX(0);
  opacity: 1;
}
.enter-right {
  transform: translateX(-100%);
  opacity: 0;
  z-index: 3;
  animation: slide-in-right 0.6s forwards;
}
.enter-right.active {
  transform: translateX(0);
  opacity: 1;
}
@keyframes slide-in-left {
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
@keyframes slide-in-right {
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
.ca-links {
  margin-top: 30px;
  font-size: 1.4rem;
}
.ca-links a {
  color: #19BF19;
  text-decoration: none;
  margin: 0 6px;
}
.ca-links a:hover {
  color: #FFF;
}
@media (max-width: 700px) {
  h1 {
    font-size: 3rem;
  }
}
