/* ===== Import des polices ===== */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Quicksand:wght@500;700&display=swap');

/* ===== Variables de ta charte graphique ===== */
:root {
  /* ===== VERT ===== */
  --vert-1: #6AAF50; /* vert principal */
  --vert-2: #4B9448; /* plus foncé */
  --vert-3: #3E7A22; /* très foncé */
  --vert-4: #B5EAA3; /* vert clair */

  /* ===== BRUN ===== */
  --brun-1: #A58E6D; /* brun principal */
  --brun-2: #8C7456; /* plus foncé */
  --brun-3: #D3BFA8; /* plus clair */
  --brun-4: #C7A56C; /* intermédiaire chaud */

  /* ===== BLANC CASSÉ ===== */
  --blanc-casse-1: #F5EEDC; /* blanc cassé principal */
  --blanc-casse-2: #E5DCC2;
  --blanc-casse-3: #F2AF6F; /* plus chaud, plus saturé */
  --blanc-casse-4: #FDFBF2; /* très clair */

  /* ===== GRIS DOUX ===== */
  --gris-doux-1: #D9D9D9; /* gris doux principal */
  --gris-doux-2: #BFBFBF;
  --gris-doux-3: #F0F0F0;
  --gris-doux-4: #E6E6E6;

  /* Autres */
  --texte: #333;
  --fond: #fff;
}


/* ===== Reset simple ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Lato', sans-serif;
  background-color: var(--blanc-casse-1);
  color: var(--texte);
  line-height: 1.6;
  padding: 20px;
}

/* ===== HEADER NAVIGATION ===== */
header {
  background-color: var(--brun-3);
  padding: 15px 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  position: relative;
  z-index: 1000;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.left-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  width: 120px;
  height: auto;
}

.menu-icon {
  font-size: 28px;
  cursor: pointer;
  color: var(--texte);
  padding: 10px;
}

#menu-toggle {
  display: none;
}

.menu {
  position: absolute;
  top: 60px;
  left: 20px;
  background-color: var(--blanc-casse-1);
  border: 1px solid #ccc;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  display: none;
  width: 260px;
  padding: 15px 20px;
  z-index: 999;
}

#menu-toggle:checked ~ .menu {
  display: block;
}

.menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.menu ul li a {
  text-decoration: none;
  color: var(--texte);
  font-weight: 500;
}

/* ===== CTA Bouton à droite ===== */
.cta {
  background-color: var(--vert-1);
  color: white;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  font-family: 'Quicksand', sans-serif;
  white-space: nowrap;
}

/* ===== SECTION PRÉSENTATION ===== */
.presentation {
  max-width: 800px;
  margin: 40px auto;
  text-align: center;
}

.presentation p {
  margin-bottom: 20px;
  font-size: 1.1em;
}

.presentation img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* ===== SECTION NEWSLETTER ===== */
.newsletter {
  background-color: var(--gris-doux-4);
  padding: 40px 20px;
  text-align: center;
  border-radius: 12px;
  max-width: 600px;
  margin: 40px auto;
}

.newsletter h2 {
  font-family: 'Quicksand', sans-serif;
  font-size: 1.5em;
  margin-bottom: 20px;
}

.newsletter form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.newsletter input[type="email"] {
  padding: 12px;
  font-size: 1em;
  border: none;
  border-radius: 8px;
}

.newsletter button {
  background-color: var(--brun-1);
  color: white;
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-size: 1em;
  cursor: pointer;
  transition: background-color 0.3s;
}

.newsletter button:hover {
  background-color: #8a7655;
}

/* ===== FOOTER ===== */
footer {
  text-align: center;
  padding: 30px 10px;
  font-size: 0.9em;
  color: #666;
}

footer .social-icons img {
  width: 24px;
  margin: 0 8px;
  vertical-align: middle;
}

/* ===== RESPONSIVE ===== */
@media (min-width: 600px) {
  .newsletter form {
    flex-direction: row;
    justify-content: center;
  }

  .newsletter input[type="email"] {
    flex: 2;
    margin-right: 10px;
  }

  .newsletter button {
    flex: 1;
  }
}

@media (max-width: 768px) {
  .logo {
    width: 90px;
  }

  .cta {
    font-size: 0.9em;
    padding: 8px 12px;
  }

  .menu {
    left: 0;
    right: auto;
    width: 100%;
  }
}

/* ===== Animations (optionnelles) ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.presentation,
.newsletter {
  animation: fadeIn 1s ease-in-out both;
}

/* ===== SECTION TAGLINE / SLOGAN ===== */
.tagline {
  text-align: center;
  padding: 40px 20px 20px;
  background-color: var(--blanc-casse-1);
  color: var(--texte);
  animation: fadeIn 1s ease-out both;
}

.tagline h2 {
  font-family: 'Quicksand', sans-serif;
  font-size: 1.8em;
  font-weight: 700;
  line-height: 1.4;
  max-width: 800px;
  margin: 0 auto;
  text-transform: uppercase;
  color: var(--texte); /* ou color: #333333; si tu préfères */

}

/* Animation d'apparition du message */
@keyframes fadeInMessage {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#message-confirmation {
  opacity: 1;
  transition: opacity 0.3s ease-in-out;
}

/* Animation de disparition du message */
@keyframes fadeOutMessage {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(10px);
  }
}

/* Animation pulse */
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.07);
  }
  100% {
    transform: scale(1);
  }
}

/* Effet au survol */
.cta:hover {
  animation: pulse 0.6s ease-in-out;
}

/* Encadré visuel pour la tagline */
.tagline {
  background-color: var(--gris-doux-4);
  padding: 20px;
  margin: 40px auto;
  border-radius: 12px;
  text-align: center;
  max-width: 800px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);

  /* Animation */
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease-out forwards;
}

/* Texte de la tagline */
.tagline h2 {
  font-size: 1.6em;
  font-family: 'Quicksand', sans-serif;
  color: var(--texte);
}

/* Animation d'apparition + glissement */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
