/* ------------------- BASE GÉNÉRALE ------------------- */

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  background-color: #f8f0e8;
}

/* ------------------- En-tête du site (HEADER) ------------------- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  max-width: 100vw;
  background-color: #A8D5BA;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: auto;
  box-sizing: border-box;
  z-index: 1000;


  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);  -webkit-mask-image: linear-gradient(to bottom, black calc(100% - 20px), transparent 100%);
  mask-image: linear-gradient(to bottom, black calc(100% - 20px), transparent 100%);
}


header img {
  width: clamp(100px, 25vw, 200px);
  height: auto;
  object-fit: contain;
  cursor: pointer;
  margin-bottom: 0.5rem;
  position: static;
  transition: width 0.3s ease;
}

/* Image à droite */
header img.header-right-img {
  width: clamp(80px, 15vw, 150px);
  height: auto;
  cursor: default;
  opacity: 0.8;
  flex-shrink: 0;
  flex-grow: 0;
  margin-left: 1rem; /* un petit espace entre menu et image */
}

@media (max-width: 600px) {
  header img {
    height: clamp(1.2rem, 4vw, 2rem);
  }
}


/* ------------------- MENU ------------------- */
nav {
  display: flex;
  justify-content: center;
  gap: 1.875rem;
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
}

nav a {
  color: #5A6B57;
  text-decoration: none;
  transition: color 0.3s ease, border-bottom 0.3s ease;
  padding-bottom: 0.1875rem;
  border-bottom: 0.125rem solid transparent;
}

nav a:hover {
  color: #224b35;
  border-bottom: 0.125rem solid #2F5D44;
  cursor: pointer;
}
nav a.active {
  color: #42747c;
  border-bottom: 0.125rem solid  #42747c;
}  
/* ------------------- CONTENU PRINCIPAL (MAIN) ------------------- */
/* -- Conteneur principal du contenu -- */
main {
  max-width: 50rem;
  margin: 0 auto 5rem auto;
  padding: 1.25rem;
}

/* ------------------- SECTION ACCUEIL ------------------- */
/* -- Bloc principal de bienvenue -- */
.accueil {
  position: relative;
  padding: 2rem;
  margin-top: 7rem;
  background-color: #f8f0e8;
  z-index: 1;
  border: 3px solid #A8D5BA;
  border-radius: 1rem;
  text-align: center;
  box-shadow:
  6px 6px 12px rgba(46, 85, 54, 0.4),
   -6px -6px 12px rgba(173, 214, 174, 0.8),
    inset 3px 3px 6px rgba(173, 214, 174, 0.6),
    inset -3px -3px 6px rgba(46, 85, 54, 0.15);
}

/* -- Titre principal accueil -- */
.accueil h2 {
  font-family: 'Roboto Slab', serif;
  font-size: 3.5rem;
  color: #096633;
  margin-bottom: 0.625rem;
}

/* -- Paragraphe d’introduction accueil -- */
.accueil p {
  font-family: 'Poppins', sans-serif;
  font-size: 1.3rem;
  color: #4A6B50;
}

/* ------------------- BOUTON CTA ------------------- */
/* -- Bouton Découvrir les prestations -- */
.btn-cta {
  display: block;
  margin: 0 auto;
  padding: 0.75rem 1.875rem;
  font-size: 1.2em;
  background-color: #A8D5BA;
  color: #2F5D44;
  border: none;
  border-radius: 1.5625rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

/* -- Effet au survol du bouton -- */
.btn-cta:hover {
  background-color: #8bb59b;
}



/* ------------------- SECTION GALERIE ------------------- */
/* -- Conteneur principal galerie -- */
.galerie {
  position: relative;
  max-width: 75rem;
  margin: 3.75rem auto;
  padding: 2rem;
  border-radius: 0.9375rem;
  text-align: center;
  overflow-x: hidden; /* Ajouté ici */
}

/* -- Titre galerie -- */
.galerie h2 {
  font-family: 'Roboto Slab', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #2F5D44;
  margin-bottom: 1.875rem;
}

/* -- Grille d’images scroll horizontal -- */
.grille-galerie {
  display: flex;
  overflow-x: hidden; /* cache la scrollbar */
  gap: 1rem;
  padding: 0.75rem 0.75rem 1rem;
  width: 60rem; /* largeur visible limitée */
  animation: defilement-lent 280s linear infinite; /* défilement lent */
}

/* -- Style barre de scroll -- */
.grille-galerie::-webkit-scrollbar {
  height: 0.5rem;
}

/* -- Thumb barre de scroll -- */
.grille-galerie::-webkit-scrollbar-thumb {
  background-color: #ec6f45;
  border-radius: 0.25rem;
}

/* -- Images de la galerie -- */
.grille-galerie img {
  width: 15rem;       /* images plus grandes */
  height: 11.5rem;    /* hauteur ajustée */
  flex-shrink: 0;
  border-radius: 0.75rem;
  object-fit: cover;
  box-shadow: 0 0.25rem 0.375rem rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* -- Effet hover sur images galerie -- */
.grille-galerie img:hover {
  transform: scale(1.1);
  cursor: pointer;
  box-shadow: 0 0.5rem 0.75rem rgba(0,0,0,0.2);
}

/* -- Adaptation images galerie mobile -- */
@media (max-width: 600px) {
  .grille-galerie img {
    width: 12rem;     /* un peu plus grand que 8.75rem */
    height: 9rem;     /* hauteur ajustée proportionnellement */
  }
}

/* -- Grille d’images scroll horizontal avec animation automatique -- */
.grille-galerie {
  display: flex;
  overflow-x: hidden; /* cache la scrollbar */
  gap: 1rem;
  padding: 0.75rem 0.75rem 1rem;
  width: max-content; /* adapte la largeur au contenu (images dupliquées) */
  animation: defilement-lent 280s linear infinite; /* défilement lent */
}

/* Animation de défilement infini */
@keyframes defilement-lent {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}




/* ------------------- ÉLÉMENTS GRAPHIQUES ------------------- */
/* -- Images décoratives monstera et chat -- */
.monstera, .chat ,.chatgif {
  position: absolute;
  opacity: 0.3;
  pointer-events: none;
  user-select: none;
  max-width: 100%;
  height: auto;
}

.monstera {
  bottom: 0;
  left: 5vw;
  width: 25vw;
}

.chat {
  top: 0;
  right: 5vw;
  width: 20vw;
}
.chatgif {
  position: absolute;
  bottom: -10vw;
  right: 0vw;
  width: 25vw; /* ← augmente la taille ici */
  opacity: 0.3;
  pointer-events: none;
  user-select: none;
  max-width: 100%;
  height: auto;
}


/* -- Animation des pattes -- */
.patte-anim {
  transition: transform 0.3s ease;
  display: block;
  margin: 1.25rem auto 0.9375rem;
}

/* -- Hover animation pattes -- */
.patte-anim:hover {
  transform: scale(1.1);
}

/* ------------------- FOOTER ------------------- */
/* -- Conteneur footer fixé en bas -- */
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  max-width: 100vw;
  background-color: #A8D5BA;
  color: #407c5be0;
  text-align: center;
  padding: 1.5rem 0.625rem 1rem 0.625rem;
  box-shadow: 0 -0.125rem 0.375rem rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  height: auto;
  box-sizing: border-box;
  z-index: 1000;
  -webkit-mask-image: linear-gradient(to top, black calc(100% - 20px), transparent 100%);
  mask-image: linear-gradient(to top, black calc(100% - 20px), transparent 100%);
}

/* -- Texte dans footer -- */
footer p {
  margin: 0;
  padding-top: 0.5rem;
  font-size: 1em;
  line-height: 1.4;
}

/* -- Icônes réseaux sociaux -- */
.social-icons a img {
  width: 2.5rem;
  height: 2.5rem;
  transition: transform 0.3s ease;
}

/* -- Hover icônes réseaux sociaux -- */
.social-icons a:hover img {
  transform: scale(1.2);
  cursor: pointer;
}

