/* Image premier plan */
.hero h1 {
  text-transform: uppercase;
  font-weight: 500;
  margin: 0;
  padding: 0;
}

.hero p{
  margin: 0;
  font-weight: 1000;
}

.anim {
  animation: appear 1.5s ease-in-out;
}

@keyframes appear {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  50% {
    opacity: 0;
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 1960px) {
  .hero h1 {
    font-size: 250px;
  }

  .hero p{
    font-size: 37px;
  }
}

.hero-buttons{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.hero-btn {
  text-decoration: none;
  border-radius: 30px;
  box-shadow: var(--second-color-sombre) 0px 4px 0px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 1000;
  transition: all 0.3s ease;
}

.hero-btn2 {
  text-decoration: none;
  border-radius: 30px;
  box-shadow: var(--second-color-sombre) 0px 4px 0px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 1000;
  transition: all 0.3s ease;
}

.versionligth {
  background-color: var(--second-color);
  color: var(--color-claire);
}

.versionblack {
  background-color: var(--second-color);
  color: var(--color-background);
}

.versionligth2 {
  background-color: var(--color-claire);
  color: var(--second-color);
}

.versionblack2 {
  background-color: var(--color-background);
  color: var(--color-claire);
}

.anim-btn {
  animation: appear2 2s ease-in-out;
}

.anim-btn2 {
  animation: appear2 2.5s ease-in-out;
}

@keyframes appear2 {
  0% {
    opacity: 0;
    transform: translateY(-40px);
  }
  50% {
    opacity: 0;
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}


.hero-btn:hover {
  background-color: var(--color-clair);
  box-shadow: #002d61 0px 0px 0px;
}

.hero-btn2:hover {
  background-color: var(--second-color);
  box-shadow: #002d61 0px 0px 0px;
  color: var(--color-claire);
}

.arrow-down {
  position: absolute;
  bottom: 5%;
  left: 50%;
  scale: 3;
  animation: boucle 2s infinite ease-in-out;
}

@keyframes boucle {
  0%{
    transform: translateY(0);
    opacity: 0;
  }
  50% {
    transform: translateY(5px);
    opacity: 1;
  }
  100%{
    transform: translateY(10px);
    opacity: 0;
  }
}

/* Présentation */

.presentation {
  max-width: 80%;
  height: auto;
}

h1 {
    text-align: center;
}

.assombrir{
  position: relative;
}

.assombrir::after{
  content: "";
  position: absolute;
  height: auto;
  width: auto;
  inset: 0;
  z-index: 1;
  background-color: #00000070;
  transition: all 0.5s;
}

.assombrir:hover::after{
    background-color: #000000c5;
}

.assombrir2{
  position: relative;
}

.assombrir2::before{
  content: "";
  background-image: url(../image/touch.png);
  background-size: cover;
  background-position: center;
  background-color: #002d6170;
  border-radius: 5px;
  padding: 20px;
  position: absolute;
  height: 25px;
  width: 25px;
  inset: 0;
  opacity: 1;
  z-index: 2;
  transition: all 0.4s ease;
}

.assombrir2::after{
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  transition: all 0.4s ease;
  background: linear-gradient(to bottom, #000000aa 44%, var(--second-color-sombre) 100%);
  opacity: 0;
}

.assombrir2 div::after{
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom, #00000000 44%, var(--second-color-sombre) 100%);
  transition: all 0.4s ease;
  opacity: 0;
}

.assombrir2 p{
  overflow: auto;
  padding-right: 5px;
  user-select: none;
}

.assombrir2 p::-webkit-scrollbar {
  background: transparent;
  width: 7px;
}
  
.assombrir2 p::-webkit-scrollbar-thumb{
  border-radius: 50px;
  background-color: var(--second-color-sombre);
}

.assombrir2 h3, .assombrir2 a, .assombrir2 p{
  opacity: 0;
  transition: all 0.4s ease;
}

.assombrir2:hover::after, .assombrir2:hover div::after, .assombrir2:hover h3, .assombrir2:hover a, .assombrir2:hover p{
    opacity: 1;
}

.assombrir2:hover::before{
  opacity: 0;
}

label{
  color: var(--color-claire);
  width: 100%;
  height: auto;
}

/* === Media queries pour mobile et tablette === */
@media (max-width: 768px) {

  .hero-content {
    max-width: 90%;
    padding: 0 15px;
  }

  .hero-btn, .hero-btn2{
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  /* Services container : empilement vertical */
  .sevice1, .sevice2 {
    flex-direction: column !important;
    align-items: center;
    gap: 20px;
    max-width: 360px; /* largeur fixe raisonnable pour tablette/mobile */
    margin: 20px auto;
  }

  /* Images réduites */
  .sevice1 img, .sevice2 img {
    width: 100%;
    max-width: 360px; /* même largeur max que le container */
  }

  /* Conteneur texte largeur égale à l’image, centré */
  .sevice1 div, .sevice2 div {
    width: 100%;
    max-width: 360px;
    padding: 0 10px;
    margin: 0; /* supprimer marges gauche/droite */
    box-sizing: border-box;
    align-items: center;
  }

  /* Titres plus petits */
  .sevice1 h2, .sevice2 h2 {
    font-size: 20px;
  }

  /* Paragraphes plus petits */
  .sevice1 p, .sevice2 p {
    font-size: 16px;
    margin-bottom: 10px;
    
  }

  /* Boutons plus larges */
  .sevice1 button, .sevice2 button {
    width: 100%;
    max-width: 280px;
    padding: 12px;
    font-size: 1rem;
  }
}

@media (max-width: 400px) {
  .arrow-down {
    scale: 2;
  }
  .hero p{
    font-size: 20px;
  }

  .hero-buttons{
    flex-direction: column;
    gap: 10px;
  }

  .hero-btn {
    padding: 7px 20px;
    font-size: 0.7rem;
  }

  .hero-btn2 {
    padding: 7px 20px;
    font-size: 0.7rem;
  }
}