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

html {
  scroll-behavior: smooth;
}

.handlee-regular {
  font-family: "Oswald", sans-serif;
  font-style: normal;
}

.gradient-text {
  font-weight: bold;
  background: linear-gradient(90deg, #6ef5ff, #5eff81);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.gradient-border {
  position: relative;
  border-radius: 16px; /* arrondi des coins */
  overflow: hidden; /* pour bien couper le gradient */
  padding: 4px; /* épaisseur visuelle de la bordure */
}

.gradient-border::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 4px; /* épaisseur de la bordure */
  border-radius: 16px;
  background: linear-gradient(90deg, #6ef5ff, #5eff81);
  -webkit-mask: 
      linear-gradient(#fff 0 0) content-box, 
      linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}

.bold {
    font-weight: 600;
    font-family: "Oswald", sans-serif;
    font-style: normal;
}

.size {
  font-size: 18px;
}

.title-h1 {
  font-size: 40px;
}

body {
  background: #111114;
  background: linear-gradient(90deg, rgba(17, 17, 20, 1) 1%, rgba(13, 18, 31, 1) 100%);
  color: white;
}

main {
  min-height: 100vh;
  text-align: center;
  /* background-image: url("david-emrich-6pUyYQIUu1w-unsplash.jpg");  chemin de ton image */
  
  background-size: cover;      /* couvre tout l'écran */
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;  /* fond fixe */
  padding-bottom: 1em;
}

/* Menu horizontal */

#menu-container {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #303030;
  background: linear-gradient(90deg, rgba(17, 17, 20, 1) 1%, rgba(13, 18, 31, 1) 100%);
  width: 100%;
}

#menu {
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 15px 0;
  border-bottom: solid 2px #3b3b3b;
}

/* Liens du menu */

#menu a {
  text-decoration: none;      /* retire le soulignement */
  font-family: "Handlee", cursive;
  font-size: 20px;
  font-weight: bold;
  transition: color 0.3s ease, transform 0.3s ease;
  color: gray;
}

/* Effet au survol */

#menu a:hover {
  color: #ffffff;            /* couleur or au survol */
  transform: scale(1.1);     /* léger zoom */
}

/* Retire le style violet au clic / focus */

#menu a:focus,
#menu a:active {
  outline: none;
  color: #ffffff;
}


/* Header */

/* Conteneur */

.carousel {
    position: relative;
    width: 100%;
    height: 550px;
    overflow: hidden;
    border-bottom: solid 2px #3b3b3b;
}

.carousel-inner {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-item {
    position: absolute;     /* TRÈS IMPORTANT */
    inset: 0;               /* top:0 left:0 width:100% height:100% */
    width: 100%;
    height: 100%;
    object-fit: cover;

    opacity: 0;             /* Caché par défaut */
    transition: opacity 0.8s ease;
}

.carousel-item.active {
    opacity: 1;             /* Image visible */
}

/* Boutons */

.carousel-btn {
    width: 55px;
    height: 55px;
    background: black;
    color: #4ffff0;
    border-radius: 50%;
    font-size: 30px;
    line-height: 55px;
    text-align: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    opacity: 0.75;
    transition: 0.3s;
}

.carousel-btn:hover {
    opacity: 1;
}

.carousel-btn.left {
    left: 20px;
}

.carousel-btn.right {
    right: 20px;
}

/* Barres en bas */

.carousel-bars {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
}

.carousel-bars div {
    width: 40px;
    height: 6px;
    background: #0f001a;
    border: 2px solid black;
    transition: 0.3s;
    opacity: 0.5;
}

/* Barre active = flash */
.carousel-bars div.active {
    opacity: 1;
    background: #4ffff0;
    box-shadow: 0 0 10px #000000;
}

.title-header {
    padding: 0.4em;
    font-size: 45px;
    text-align: center;
}

/* Service */

#service {
  display: block;
  justify-content: center;
  margin-top: 2em;
  margin-left: auto;
  margin-right: auto;
  max-width: 1000px;
  text-align: center;
  border-radius: 20px;
  padding: 15px;
}

.title-service {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 40px 0;
}

.title-service::before,
.title-service::after {
  content: "";
  width: 80%;       /* ← change la taille du trait ici */
  max-width: 19%;     /* ← évite qu'il devienne trop long sur grand écran */
  height: 3px;
  background-color: gray;
  margin: 0 15px;
}

/* Section Packs */

section#packs {
  display: flex;
  flex-wrap: wrap;        /* permet aux cartes de passer à la ligne */
  gap: 28px;              /* espace entre les cartes */
  justify-content: center; /* centre les cartes sur chaque ligne */
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}

.pack {
  width: 400px;
  background: rgba(255, 255, 255, 0.068);
  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: 150px;
  height: 150px;
  object-fit: contain;
  margin-bottom: 16px;
}

.pack h3 {
  font-size: 28px;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

.pack h2 {
  font-size: 28px;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

.pack p {
  font-size: 18px;
  color: rgb(255, 255, 255);
  max-width: 300px;
  font-weight: bold;
  text-align: left;
  margin-bottom: 7px;
}

/* Présentation */

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

.about-me {
  width: 80%;        /* largeur avec marge auto */
  max-width: 1000px;  /* limite sur grands écrans */
  margin: 60px auto; /* centre + espace haut/bas */
  text-align: center;
}

.about-me-box {
  border-radius: 20px;
  padding: 25px;
}

/* Traits de chaque côté */

.about-me h1 {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 40px 0;
}

.about-me h1::before,
.about-me h1::after {
  content: "";
  flex: 1;
  height: 3px;         /* épaisseur du trait */
  background-color: #727272;
  margin: 0 15px;      /* espace entre le texte et le trait */
}

/* Tarif et Contact */

.tarifetcontact {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 40px 0;
}

.tarifetcontact::before,
.tarifetcontact::after {
  content: "";
  width: 80%;       /* ← change la taille du trait ici */
  max-width: 17%;     /* ← évite qu'il devienne trop long sur grand écran */
  height: 3px;
  background-color: #727272;
  margin: 0 15px;
}


.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 */

.footer {
  margin-top: 3px;
  margin-bottom: 3px;
  padding-top: 5px;
  text-align: center;
}

hr {
  border: none;
  background-color: #3b3b3b;
  height: 2px;
}

/* RESPONSIVE */

/* Menu toggle - caché sur grand écran */

#menu-toggle {
  display: none;
  font-size: 24px;
  cursor: pointer;
  position: absolute;
  right: 10px;
  top: 18px;
  z-index: 1002;
}

/* Media query pour petits écrans */

@media screen and (max-width: 480px) {
  #menu {
    flex-direction: column;
    gap: 10px;
    position: absolute;
    top: 60px;
    left: 10px;
    right: 10px;
    background: #ffebebf3;
    padding: 10px 15px;
    border: 1px solid #000;
    border-radius: 8px;
    display: none;
    z-index: 1001;
  }

  #menu a {
    font-size: 15px;
  }

  #menu-toggle {
    display: block;
  }

  #menu-container.active #menu {
    display: flex;
  }

  .responsive {
    margin-bottom: 0.5em;
  }

  header {
    padding: 0px;
    margin-left: 3%;
    margin-right: 3%;
  }

  #service {
  margin: 5%;
  width: 90%;
  }
}