@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

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

body {
  font-family: "Poppins", sans-serif;
  background-color: #f0ede6;
  min-height: 100vh;
  padding: 24px 32px;
}

/*Barre de navigation*/
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px 24px;
}

.logo {
  height: 120px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: #444;
  font-size: 0.97rem;
  font-weight: 400;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #2e6e4f;
}

.btn-contact a {
  border: 1.5px solid #8a8989;
  border-radius: 999px;
  padding: 8px 22px;
  color: #1a1a1a !important;
  font-weight: 500;
  transition:
    border-color 0.2s,
    color 0.2s !important;
}

.btn-contact a:hover {
  border-color: #2e6e4f !important;
  color: #2e6e4f !important;
}

/* Hamburger — caché sur desktop */
.hamburger {
  display: none;
  background: transparent;
  border: none;
  font-size: 1.6rem;
  color: #333;
  cursor: pointer;
  z-index: 1000;
}

/* Bouton fermer — caché sur desktop */
.nav-close {
  display: none;
}

/* Overlay */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.3s;
}

.nav-overlay.active {
  display: block;
  opacity: 1;
}

/* ── MOBILE ── */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 300px;
    height: 100vh;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 32px 40px;
    gap: 28px;
    z-index: 999;
    transition: right 0.35s ease;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.12);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-close {
    display: flex;
    position: absolute;
    top: 24px;
    right: 24px;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: #333;
    cursor: pointer;
  }

  .nav-close:hover {
    color: #2e6e4f;
  }

  .btn-contact a {
    border: 1.5px solid #8a8989;
    border-radius: 999px;
    padding: 8px 22px;
  }
}

/* Section Contact  */
.contact-section {
  display: flex;
  gap: 80px;
  max-width: 1100px;
  margin: 60px auto;
  padding: 0 32px 80px;
  align-items: flex-start;
}

/*  Colonne gauche  */
.contact-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.3;
}

.contact-intro {
  font-size: 0.92rem;
  color: #555;
  line-height: 1.8;
}

.coordonnees {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 8px;
}

.coordonnees-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: 0.05em;
}

.coordonnee-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.coordonnee-item i {
  color: #2e6e4f;
  font-size: 1.1rem;
  margin-top: 3px;
  width: 20px;
  flex-shrink: 0;
}

.coordonnee-item span {
  font-size: 0.88rem;
  color: #555;
}

.coordonnee-item p {
  font-size: 0.92rem;
  color: #1a1a1a;
  font-weight: 500;
  margin-top: 2px;
}

/* Colonne droite (formulaire) */
.contact-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-title {
  font-size: 1.8rem;
  font-weight: 500;
  color: #1a1a1a;
  text-align: center;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  border: 1.5px solid #ddd;
  border-radius: 16px;
  padding: 32px;
  background: #fff;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.88rem;
  font-weight: 500;
  color: #333;
}

.form-group input,
.form-group textarea {
  border: 1.5px solid #ddd;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.9rem;
  font-family: "Poppins", sans-serif;
  color: #333;
  outline: none;
  transition: border-color 0.2s;
  background: #fff;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #2e6e4f;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #bbb;
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.btn-submit {
  background-color: #2a2a2a;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 14px;
  font-size: 1rem;
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  cursor: pointer;
  transition: 0.2s;
  width: 100%;
}

.btn-submit:hover {
  background-color: #2e6e4f;
}

/* Footer */
.footer {
  background-color: #2d2d2d;
  color: #ccc;
  padding: 60px 80px 0;
  font-family: "Poppins", sans-serif;
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid #444;
}

.footer-logo-img {
  height: 120px;
  width: auto;
}

.footer-links {
  display: flex;
  justify-content: space-between;
  gap: 40px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 180px;
}

.footer-col-title {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-col ul li a {
  text-decoration: none;
  color: #aaa;
  font-size: 0.92rem;
  font-weight: 400;
  transition: color 0.2s;
}

.footer-col ul li a:hover {
  color: #ffffff;
}

/* Icônes sociales */
.social-icons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.social-btn {
  width: 52px;
  height: 52px;
  background-color: #3e3e3e;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.2rem;
  text-decoration: none;
  transition: 0.2s;
}

.social-btn:hover {
  background-color: #2e6e4f;
}

/* Bas du footer */
.footer-bottom {
  text-align: center;
  padding: 20px 0;
  font-size: 0.85rem;
  color: #777;
  border-top: 1px solid #444;
  margin-top: 0;
}

/*
   RESPONSIVE — TABLETTE (max 768px)
 */
@media (max-width: 768px) {
  body {
    padding: 16px;
  }

  /* Contact : colonne gauche et droite empilées */
  .contact-section {
    flex-direction: column;
    align-items: center; /* ← ajoute cette ligne */
    gap: 40px;
    margin: 32px auto;
    padding: 0 24px 48px;
  }

  .contact-left,
  .contact-right {
    width: 100%; /* ← ajoute cette ligne */
    max-width: 500px;
  }

  .contact-title {
    font-size: 1.5rem;
  }

  /* Footer */
  .footer {
    padding: 48px 32px 0;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 32px;
  }

  .footer-col {
    min-width: calc(50% - 16px);
  }
}

/* 
   RESPONSIVE — MOBILE (max 480px)
 */
@media (max-width: 480px) {
  body {
    padding: 12px;
  }

  /* Contact */
  .contact-section {
    flex-direction: column;
    align-items: center; /* ← ajoute cette ligne */
    gap: 32px;
    margin: 20px auto;
    padding: 0 16px 40px;
  }

  .contact-left,
  .contact-right {
    width: 100%; /* ← ajoute cette ligne */
  }

  .contact-title {
    font-size: 1.3rem;
  }

  .contact-intro {
    font-size: 0.88rem;
  }

  .coordonnees-title {
    font-size: 0.8rem;
  }

  .coordonnee-item p {
    font-size: 0.88rem;
  }

  /* Formulaire */
  .contact-form {
    padding: 20px 16px;
    border-radius: 12px;
  }

  .form-title {
    font-size: 1.4rem;
  }

  .form-group input,
  .form-group textarea {
    font-size: 0.88rem;
    padding: 9px 12px;
  }

  .btn-submit {
    font-size: 0.95rem;
    padding: 12px;
  }

  /* Footer */
  .footer {
    padding: 40px 20px 0;
  }
  .footer-logo-img {
    height: 80px;
  }
  .footer-links {
    flex-direction: column;
    gap: 24px;
  }
  .footer-col {
    min-width: 100%;
  }
  .footer-bottom {
    font-size: 0.78rem;
  }
}

/* css pour le bouton remonter */
.btn-top{
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background-color: #2e6e4f !important;
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition: 0.2s, transform 0.2s;
  z-index: 999;
}

.btn-top:hover {
  background-color: #235a40;
  transform: translateY(-3px);
}

.btn-top.visible {
  display: flex;
}