/* ------------------- 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 principa MAIN ------------------- */
main {
  max-width: 50rem;
  margin: 0 auto 5rem auto;
  padding: 1.25rem;
}

/* ------------------- SECTION ACCUEIL ------------------- */
/* ------------------- Bienvenue sur Chat’titude  ------------------- */
.contact-intro {
  padding: 2rem;
  background-color: #f8f0e8;
  font-family: 'Raleway', sans-serif;
  color: #1a1a1a;
  max-width: 800px;       /* limite largeur */
  margin: 0 auto 3rem;    /* centre horizontal, marge bas */
  text-align: center;     /* centre texte */
}

.box-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem; /* espace vertical réduit entre boîtes */
  padding: 0 1rem;
}

.contact-box.contact-box-bottom {
  text-align: left; /* pour garder le texte aligné à gauche */
  padding: 2rem;    /* déjà présent, ajuste si besoin */
}

.content-flex {
  display: flex;
  align-items: flex-start ;
  gap: 2rem;
}

.text-left {
  flex: 1; /* texte prend toute la place possible */
}

.image-right {
  flex-shrink: 0;
  max-width: 300px;
}

.image-right img {
  width: 100%;
  height: auto;
  border-radius: 1rem;
  object-fit: cover;
  
}

/* Responsive : empilement vertical sur petit écran */
@media (max-width: 700px) {
  .content-flex {
    flex-direction: column;
  }
  .image-right {
    max-width: 100%;
    margin-top: 1rem;
  }
}
.contact-box,
.form-box {
  width: 100%;            /* occupe toute la largeur du parent */
  margin: 2.5rem 0;         /* marge verticale pour espacer */
  position: relative;
  padding: 2rem;
  background-color: #f8f0e8;
  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);
  z-index: 1;
}

/* SUPPRESSION de marge entre les deux boîtes spécifiques */
.contact-box.contact-box-bottom {
  margin-bottom: 0 !important;
  padding-bottom: 1rem; /* padding intérieur bas réduit */
}

.form-box {
  margin-top: 0 !important;
  padding-top: 1rem; /* padding intérieur haut réduit */
}

.contact-box h1 {
  margin-top: 0;          /* enlève la marge au-dessus */
  margin-bottom: 0.5rem;
  color: #096633;
  font-family: 'Roboto Slab', serif;
  font-size: 3.5rem;
}

.contact-box p {
  margin-bottom: 0;
  color: #4A6B50;
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  text-align: left;
}

.contact-box.contact-box-bottom p:first-of-type {
  font-weight: bold;
  font-size: 1.8rem;
  color: #096633;
  font-family: 'Roboto Slab', serif;
  margin-bottom: 1rem;
  text-align: left;
}

/* Liste dans contact-box : pas de style par défaut */
.contact-box ul {
  padding-left: 1.2rem;
  list-style: none;
  margin: 1.5rem 0 0 0;  /* marge au-dessus pour espacer la liste */
  text-align: left;
  margin-bottom: 2.5rem;
}

.reply-text {
  font-family: 'Roboto Slab', serif;  /* ou la police que tu souhaites */
  font-size: 1.5rem;                  /* ajuste selon tes préférences */
  color: #1bc239;
  margin-top: 1.5rem;                 /* espace au-dessus */
  margin-bottom: 1.5rem;              /* espace en-dessous */
  text-align: left;
}

.contact-box ul li {
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;         /* taille plus grande */
  color: #4A6B50;            /* couleur texte */
  margin-bottom: 0.8rem;     /* espace entre les lignes */
  margin-top: 0.8rem;        /* espace au-dessus de chaque item */
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 600;
  margin-bottom: 0.4rem;
  font-family: 'Raleway', sans-serif;
  color: #2B2B2B;
  font-size: 1.1em;
  line-height: 1.6;
  text-align: left;  
  display: block;      
  width: 100%;       
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
}

.contact-form button {
  background-color: #A8D5BA;
  color: #1a1a1a;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-family: 'Poppins', sans-serif;
  align-self: flex-start;
}

.contact-form button:hover {
  background-color: #91caa8;
}
.btn-contact {
  text-decoration: none;
  cursor: pointer;
}

.btn-contact:hover {
  text-decoration: none; /* assure pas de soulignement au hover */
}

/* Pour la première boîte, mettre plus de marge au-dessus */
.contact-box:first-child,
.form-box:first-child {
  margin-top: 7rem; /* espace plus grand au-dessus (près du header) */
}

/* Pour la dernière boîte, mettre plus de marge en bas (près du footer) */
.contact-box:last-child,
.form-box:last-child {
  margin-bottom: 7rem; /* espace plus grand en bas */
}

/* Styles spécifiques pour le bouton submit */
button[type="submit"] {
  display: block;
  margin: 3rem auto 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;
  box-shadow: 0 3px 6px rgba(168, 213, 186, 0.5);
}

button[type="submit"]:hover,
button[type="submit"]:focus {
  background-color: #8bb59b;
  text-decoration: none;
}

.btn-contact {
  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;
    position: absolute;
  bottom: 2rem;   /* distance du bas */
  right: 4.5rem;

}

.btn-contact:hover {
  background-color: #8bb59b;
}

html {
scroll-behavior: smooth;
scroll-padding-top: 100px; /* ajuste à ce qui correspond à la hauteur de ton header */
}


.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background-color: #f8f0e8;
  border: 3px solid #A8D5BA;
  padding: 30px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  font-family: 'Raleway', sans-serif;
  max-width: 90%;
  width: 300px;
}

.modal-content p {
  font-size: 18px;
  margin-bottom: 20px;
}

.modal-buttons button {
  margin: 0 10px;
  padding: 10px 20px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-size: 16px;
  font-family: 'Raleway', sans-serif;
  transition: background-color 0.3s;
}

#confirm-yes {
  background-color: #A8D5BA;
  color: white;
}

#confirm-yes:hover {
  background-color: #91c7aa;
}

#confirm-no {
  background-color: #ec6f45;
  color: white;
}

#confirm-no:hover {
  background-color: #cf5935;
}

.btn-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

#btn-envoyer {
  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;
}

#btn-envoyer:hover {
  background-color: #8bb59b;
}




/* =================== BOUTON retour acceuil =================== */
.btn-cta {
  position: fixed;
  bottom: 150px;
  right: 20px;
  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;
  z-index: 9999; /* le bouton passe au premier plan */
}

/* ------------------- ÉLÉMENTS GRAPHIQUES ------------------- */
.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: 25vw;
}

.chatgif {
  position: absolute;
  bottom: -53vw;
  right: 0vw;
  width: 25vw; /* ← augmente la taille ici */
  opacity: 0.3;
  pointer-events: none;
  user-select: none;
  max-width: 100%;
  height: auto;
}

.patte-anim {
  transition: transform 0.3s ease;
  display: block;
  margin: 1.25rem auto 0.9375rem;
}

.patte-anim:hover {
  transform: scale(1.1);
}



/* -------------------  Bas du site FOOTER ------------------- */
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; /* padding top plus généreux */
  box-shadow: 0 -0.125rem 0.375rem rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* contenu en haut pour gérer padding */
  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%);
}

footer p {
  margin: 0; /* margin resetée */
  padding-top: 0.5rem; /* espace au-dessus du texte */
  font-size: 1em;
  line-height: 1.4;
}

.social-icons a img {
  width: 2.5rem;
  height: 2.5rem;
  transition: transform 0.3s ease;
}

.social-icons a:hover img {
  transform: scale(1.2);
  cursor: pointer;
}





