:root {
  --card-bg: #fffcfcea;
  --text: #000000;
  --muted: #555555;
  --accent: #d4b483;
  --radius: 18px;
  --shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.great-vibes-regular {
  font-family: "Great Vibes", cursive;
  font-style: normal;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: radial-gradient(circle, rgba(255, 232, 191, 1) 0%, rgb(255, 245, 233) 0%, rgba(255, 232, 191, 1) 100%);
  color: var(--text);
  line-height: 1.5;
  font-family: "Roboto", sans-serif;
  font-style: normal;
  font-weight: 400;
  margin: auto;
}

/* Header */

header {
  position: relative;
  text-align: center;
  padding: 25px;
  background: var(--bg);
}

header .header-image {
  width: 80%;
  max-height: 400px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 20px;
  border: solid 2px #e0a641;
}

header h1 {
  color: var(--text);
  font-size: 80px;
}

/* Main */


main > div {
  max-width: 900px;
  margin: 40px auto;
  text-align: center;
  padding: 0 20px;
}

main > div h1 {
  font-size: 60px;
  color: #e0a641;
}

main > div p {
  font-size: 30px;
}

/* Section Packs */

section#packs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 28px;
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}

.pack {
  border: solid 2px #e0a641;
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.6s ease;
}

.pack.visible {
  opacity: 1;
  transform: translateY(0);
}

.pack:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.pack-image {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 16px;
}

.pack h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #e0a641;
  letter-spacing: 0.5px;
}

.pack p {
  font-size: 15px;
  color: black;
  max-width: 260px;
  font-weight: bold;
}

/* Carrousel */

/* Conteneur principal */

.slider {
    position: relative;
    max-width: 950px;
    height: 550px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 15px;
    border: solid 2px #e0a641;
}

/* Images */

.slides {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    pointer-events: none;  /* Ne capte pas le clic */ 
}

.slide.active {
    opacity: 1;
    pointer-events: auto;  /* Seulement la slide visible peut être cliquée */
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    border-radius: 15px;
    cursor: pointer;
}

/* Flèches */

.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    border: none;
    color: #e0a641;
    font-size: 28px;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.arrow:hover {
    background: rgba(0,0,0,0.8);
}

.arrow.left {
    left: 15px;
}

.arrow.right {
    right: 15px;
}

/* Barres en bas */

.indicators {
    position: absolute;
    bottom: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.bar {
    width: 40px;
    height: 4px;
    background: rgba(255,255,255,0.4);
    transition: 0.3s;
}

.bar.active {
    background: #e0a641;
}


.title-carrousel {
  text-align: center;
  margin-bottom: 20px;
}

.color-title-carousel {
  color: #e0a641;
  font-size: 60px;
}

.color-p-carousel {
  font-size: 30px;
}

/* About me */

.about-me {
  text-align: center; /* centre tout le texte */
  max-width: 1000px;   /* optionnel, limite la largeur */
  margin: 40px auto;  /* centre la section horizontalement */
  padding: 0 20px;
}

.about-me .img-about-me {
  width: 75px;
  height: 75px;
  border-radius: 50%; /* rend l'image ronde */
  object-fit: cover;  /* recadre l'image correctement */
  display: block;
  margin: 0 auto 20px; /* centre l'image et ajoute un espace en bas */
  border: solid 2px black;
}

.about-me h3 {
  margin-bottom: 15px;
  font-size: 38px;
}

.about-me p {
  margin-bottom: 10px;
  line-height: 1.5;
  font-size: 30px;
}

/* How Is Work */

.how-it-works {
  text-align: center;
  max-width: 900px;
  margin: 30px auto;
  padding: 0 20px;
}

.how-it-works h3 {
  font-family: "Great Vibes", cursive;
  font-size: 50px;
  margin-bottom: 20px;
  color: #000000;
}

.how-it-works p {
  font-size: 30px;
  line-height: 1.6;
  margin-bottom: 15px;
  color: #000;
}

.p-formulaire {
  border-radius: 20px;
  border: 2px solid black;
  max-width: 550px;
  margin: auto;
}

.how-it-works strong {
  color: #e0a641; /* accent pour les mots importants */
}

hr {
  color: #000;
  border: solid 1px;
}

/* Contact */

section#packs-bis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 28px;
  max-width: 350px;
  margin: 30px auto;
  padding: 0 20px;
  text-align: center;
}

.pack-logo {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.pack-logo div {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 300px;
  justify-content: flex-start; /* force logo à gauche */
  text-align: left;
}

.logo-image {
  width: 24px;  /* logo petit */
  height: 24px;
  object-fit: contain;
}

footer {
  text-align: center;
  padding: 10px;
  color: black;
  font-weight: bold;
  font-family: "Great Vibes", cursive;
  font-size: 20px;
}

footer strong {
  color: #e0a641;
}

/* Responsive */

@media (max-width: 1024px) {
  .carrousel { height: 200px; }
  .carrousel-item { width: 200px; height: 200px; }
}
@media (max-width: 768px) {
  section#packs { grid-template-columns: repeat(2, 1fr); }
  .carrousel { height: 180px; }
  .carrousel-item { width: 180px; height: 180px; margin-right: 16px; }
}
@media (max-width: 480px) {
  .pack { padding: 20px 14px; }
  .pack-image { width: 64px; height: 64px; }
  .carrousel { height: 150px; }
  .carrousel-item { width: 150px; height: 150px; margin-right: 12px; }
  .overlay { font-size: 16px; }

  header h1 {
    font-size: 50px;
  }

  header .header-image {
    width: 100%;
    max-height: 400px;
  }

  main > div {
    margin: 0;
  }

  main > div h1 {
    font-size: 40px;
  }

  .slider {
    width: 350px;
  }

  section#packs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
    max-width: 1200px;
  }

  footer {
    padding: 0;
    margin-top: 4px;
  }
}
