/* colors and var */
:root {
  --primaryColor: #e7ead0;
  --secondaryColor: #5a2c14;
  --jardinColor: #5a4f14;
  --fournilColor: #5a141f;
}

/* Reset & base */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background: var(--primaryColor);
}
img {
  max-width: 100px;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}

h3 {
  margin-bottom: 20px;
}

/* Layout */
header {
  background: #fff;
  padding: 0.3rem 2rem;
  position: fixed;
  width: 100%;
  top: 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  z-index: 10;
}
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
nav ul {
  display: flex;
  gap: 1.5rem;
}

main {
  margin-top: 100px;
  /* background: url(./assets/20250430\ -\ Logo\ format\ carré\ -\ marron\ transparent.png)
    center/cover no-repeat; */
}

/* main::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url(./assets/20250430\ -\ Logo\ format\ carré\ -\ marron\ transparent.png)
    center/cover no-repeat;
  filter: opacity(0.9) brightness(0.2);
} */
section {
  padding: 4rem 2rem;
}
.banner {
  position: relative;
  text-align: center;
  color: #fff;
}
.banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('./assets/WhatsApp\ Image\ 2025-05-20\ à\ 14.26.00_e66cded3.jpg')
    center/cover no-repeat;
  filter: opacity(0.9) brightness(0.2);
}
.banner-content {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
  animation: fadeInUp 1s ease-out;
}
.banner h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.btn {
  display: inline-block;
  background: var(--secondaryColor);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 5px;
  transition: background 0.3s;
}
.btn:hover {
  background: #a58665;
}

.grid {
  display: grid;
  gap: 2rem;
}
.two-col {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.card {
  display: flex;
  flex-direction: column;
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  animation: fadeIn 1s ease-out;
  color: var(--primaryColor);
}

.moreinfos {
  align-self: flex-end;
  margin-top: 10px;
}

#jardin {
  background-color: var(--jardinColor);
}
#fournil {
  background-color: var(--fournilColor);
}

#tel {
  background-color: var(--secondaryColor);
  padding: 10px;
  border-radius: 30px;
  margin: 20px;
  color: var(--primaryColor);
  font-weight: 600;
}

form {
  /* display: grid; */
  display: none;
  gap: 1rem;
  max-width: 500px;
  margin: 0 auto;
}
input,
textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 5px;
}
.map {
  width: 100%;
  height: 300px;
  background: #eee;
  border-radius: 8px;
}

footer {
  background: #fff;
  text-align: center;
  padding: 2rem;
  font-size: 0.9rem;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* googleMap */
.map {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 1rem;
}

.map iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

/* Menu burger */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  position: relative;
}

nav .logo img {
  height: 60px;
}

nav .menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #4b2e1e; /* couleur marron ou selon ton thème */
}

nav .nav-links {
  display: flex;
  gap: 1rem;
  list-style: none;
}

nav .nav-links li a {
  text-decoration: none;
  color: inherit;
}

/* Responsive */
@media (max-width: 768px) {
  nav .menu-toggle {
    display: block;
  }

  nav .nav-links {
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    display: none;
    padding: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
  }

  nav .nav-links.open {
    display: flex;
  }
}

/*+r ----- test button -------- */

button {
  /* width: 402px; */
  height: 35px;
  background: linear-gradient(
    to left top,
    var(--secondaryColor) 33%,
    var(--fournilColor) 66%
  );
  border-style: none;
  border-radius: 5px;
  color: #fff;
  /* font-size: 23px; */
  letter-spacing: 3px;
  /* font-family: 'Lato'; */
  /* font-weight: 600; */
  outline: none;
  cursor: pointer;
  position: relative;
  padding: 7px;
  overflow: hidden;
  transition: all 0.5s;
  box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.2);
}
button span {
  position: absolute;
  display: block;
}
button span:nth-child(1) {
  height: 3px;
  width: 200px;
  top: 0px;
  left: -200px;
  background: linear-gradient(to right, rgba(0, 0, 0, 0), #f6e58d);
  border-top-right-radius: 1px;
  border-bottom-right-radius: 1px;
  animation: span1 2s linear infinite;
  animation-delay: 1s;
}

@keyframes span1 {
  0% {
    left: -200px;
  }
  100% {
    left: 200px;
  }
}
button span:nth-child(2) {
  height: 70px;
  width: 3px;
  top: -70px;
  right: 0px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0), #f6e58d);
  border-bottom-left-radius: 1px;
  border-bottom-right-radius: 1px;
  animation: span2 2s linear infinite;
  animation-delay: 2s;
}
@keyframes span2 {
  0% {
    top: -70px;
  }
  100% {
    top: 70px;
  }
}
button span:nth-child(3) {
  height: 3px;
  width: 200px;
  right: -200px;
  bottom: 0px;
  background: linear-gradient(to left, rgba(0, 0, 0, 0), #f6e58d);
  border-top-left-radius: 1px;
  border-bottom-left-radius: 1px;
  animation: span3 2s linear infinite;
  animation-delay: 3s;
}
@keyframes span3 {
  0% {
    right: -200px;
  }
  100% {
    right: 200px;
  }
}

button span:nth-child(4) {
  height: 70px;
  width: 3px;
  bottom: -70px;
  left: 0px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0), #f6e58d);
  border-top-right-radius: 1px;
  border-top-left-radius: 1px;
  animation: span4 2s linear infinite;
  animation-delay: 4s;
}
@keyframes span4 {
  0% {
    bottom: -70px;
  }
  100% {
    bottom: 70px;
  }
}

button:hover {
  transition: all 0.5s;
  transform: rotate(-3deg) scale(1.1);
  box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.4);
}
button:hover span {
  animation-play-state: paused;
}
