:root {
  --vert-sunu: #44200e;
  --brun-sunu: #44200e;
  --fond-clair: #ceb48f;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Roboto', sans-serif;
}
body {
  background-color: var(--fond-clair);
  color: #333;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
header {
  background-color: var(--fond-clair);
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--vert-sunu);
  position: relative;
}
header .logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
header .logo img {
  height: 40px;
}
header h1 {
  color: var(--brun-sunu);
  font-size: 1.8rem;
}

/* NAVIGATION EN HAUT À DROITE */
nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
  position: absolute;
  top: 0;
  right: 0;
  width: auto;
  background: transparent;
  padding: 20px 30px 0 0;
  z-index: 10;
}
nav a {
  display: flex;
  align-items: center;
  padding: 0 12px;
  text-decoration: none;
  color: var(--vert-sunu);
  font-weight: bold;
  transition: color 0.3s;
  position: relative;
}
nav a ion-icon {
  font-size: 28px;
  vertical-align: middle;
  color: var(--vert-sunu);
  transition: color 0.3s, transform 0.3s;
}
nav a:hover ion-icon,
nav a:focus ion-icon {
  transform: scale(1.18) rotate(-8deg);
}


/* HERO */
.hero {
  background: linear-gradient(to right, #e8f5e9, #f1f8e9);
  padding: 60px 20px;
  text-align: center;
}
.hero h2 {
  color: var(--vert-sunu);
  font-size: 2.5rem;
}
.hero p {
  font-size: 1.2rem;
  color: var(--brun-sunu);
}

/* PRODUITS */
.produits {
  max-width: 1200px;
  margin: 40px auto;
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.produit {
  border: 1px solid #ceb48f;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  background: #c47e1c;
  transition: transform 0.3s;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s, transform 0.8s;
}
.produit.visible {
  opacity: 1;
  transform: translateY(0);
}
.produit:hover {
  transform: translateY(-5px);
}
.produit img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 10px;
}
.produit h3 {
  color: var(--vert-sunu);
  margin-bottom: 10px;
}
.produit p {
  color: #ddd;
}

/* COMMANDE */
.commande {
  text-align: center;
  margin: 40px 0;
}
.commande a {
  background: var(--vert-sunu);
  color: white;
  text-decoration: none;
  padding: 12px 24px;
  font-weight: bold;
  border-radius: 5px;
  transition: background 0.3s;
}
.commande a:hover {
  background: var(--brun-sunu);
}

/* WHATSAPP */
.whatsapp {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #44200e;
  color: white;
  padding: 12px;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  font-size: 24px;
  text-align: center;
  z-index: 1000;
  text-decoration: none;
}

/* FOOTER */
.footer {
  background-color: var(--vert-sunu);
  color: white;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
}
footer .icons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 10px;
}
footer .icons a {
  text-decoration: none;
  color: #ceb48f;
  font-size: 24px;
  transition: transform 0.3s ease, color 0.3s ease;
}
footer .icons a:hover {
  color: white;
  transform: scale(1.2);
}

/* FORMULAIRE */
.content {
  max-width: 600px;
  margin: 40px auto;
  padding: 20px;
  background: #ceb48f;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}
.form h2 {
  color: #44200e;
  margin-bottom: 20px;
  text-align: center;
}
.form input,
.form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
}
.form textarea {
  resize: vertical;
  height: 120px;
}
.form .btnn {
  background-color: #44200e;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s;
}
.form .btnn:hover {
  background-color: #44200e;
}
.form .link {
  text-align: center;
  margin-top: 10px;
}
.form .link a {
  color: #44200e;
  text-decoration: none;
  font-weight: 500;
}
.form .link a:hover {
  text-decoration: underline;
}

/* WAVES */
.wave {
  background: rgb(255 255 255 / 25%);
  border-radius: 1000% 1000% 0 0;
  position: fixed;
  width: 200%;
  height: 12em;
  animation: wave 10s -3s linear infinite;
  transform: translate3d(0, 0, 0);
  opacity: 0.8;
  bottom: 0;
  left: 0;
  z-index: -1;
}
.wave:nth-of-type(2) {
  bottom: -1.25em;
  animation: wave 18s linear reverse infinite;
  opacity: 0.8;
}
.wave:nth-of-type(3) {
  bottom: -2.5em;
  animation: wave 20s -1s reverse infinite;
  opacity: 0.9;
}
@keyframes wave {
  2% {
    transform: translateX(1);
  }
  25% {
    transform: translateX(-25%);
  }
  50% {
    transform: translateX(-50%);
  }
  75% {
    transform: translateX(-25%);
  }
  100% {
    transform: translateX(1);
  }
}

/* RESPONSIVE */
@media (max-width: 600px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px;
  }
  nav {
    flex-direction: row !important;
    justify-content: flex-end;
    gap: 10px;
    padding: 10px 10px 0 0;
    position: absolute;
    top: 0;
    right: 0;
    width: auto;
    background: transparent;
    z-index: 10;
  }
  .produits {
    grid-template-columns: 1fr;
    padding: 10px;
  }
  .commande {
    margin: 20px 0;
  }
  .footer {
    padding: 10px;
    font-size: 0.95rem;
  }
}
.whatsapp {
  animation: bounce 2s infinite alternate;
}
@keyframes bounce {
  to { transform: translateY(-8px) scale(1.08);}
}
/* Loader animé */
#loader {
  position: fixed;
  z-index: 3000;
  inset: 0;
  background: rgba(206,180,143,0.92); /* couleur --fond-clair avec opacité */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s;
}
.spinner {
  width: 48px;
  height: 48px;
  border: 5px solid #816151;      /* vert doux */
  border-top: 5px solid #44200e;  /* brun sunu */
  border-radius: 50%;
  animation: spin 1s linear infinite;
  background: transparent;
}
@keyframes spin {
  to { transform: rotate(360deg);}
}
nav.scrolled {
  background: rgba(206,180,143,0.97); /* couleur --fond-clair, opaque */
  box-shadow: 0 2px 12px #0002;
  border-radius: 0 0 0 18px;
  transition: background 0.3s, box-shadow 0.3s;
}
.produit img {
  width: 200px;
  height: auto;
  border-radius: 12px;
}