/* Global styles */

:root {
  --firstColor: #823612;
  --secondaryColor: #fff2ce;
  --thirdColor: #b7894e;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica,
    Arial, sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  background: #fdfdfd;
  color: #333;
}

a {
  display: block;
  width: 100%;
  color: var(--thirdColor);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h3 {
  color: var(--secondaryColor);
  font-weight: 100;
}

/* Header */
header {
  background: linear-gradient(rgb(0 0 0 / 75%), #ffffff),
    url(./assets/fournil/champ1.webp) center / cover;

  /* background: #fff; */
  padding: 1rem 2rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav {
  width: 100%;
}

.logo {
  text-align: center;
  margin-bottom: 5px;
}

/* .logo img {
  padding: 6px;
  border: 5px solid;
  border-radius: 10%;
  height: 100px;

  border-image: linear-gradient(
      141deg,
      var(--firstColor) 0%,
      var(--secondaryColor) 100%
    )
    1;
} */
.logo-wrapper {
  position: relative;
  display: inline-block;
  border-radius: 10%;
  padding: 10px; /* espace entre image et bordure */
}

.logo-wrapper::before {
  content: '';
  position: absolute;
  inset: 0; /* top/right/bottom/left = 0 */
  border-radius: inherit;
  padding: 2px; /* épaisseur de la bordure */
  background: var(--firstColor);
  background: linear-gradient(123deg, var(--firstColor) 75%, #fff2ce00 90%);
  /* Version standard pour compatibilité */
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;

  /* Version WebKit pour Safari / Chrome */
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude; /* masque pour créer l’effet "bordure" */
  pointer-events: none; /* ne gêne pas le clic sur l'image */
}

.logo-wrapper img {
  display: block;
  border-radius: 10%;
  height: 100px;
}

.nav-links {
  z-index: 2;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
}

.nav-links li {
  margin-left: 20px;
}

.nav-links a {
  font-weight: bold;
  font-size: 1rem;
}

.menu-toggle {
  display: none; /* Hidden on desktop */
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 4rem 2rem;
  background-color: #f4f2ef;
}

.hero-content h1 {
  font-family: Merienda Regular;
  font-size: 2.5rem;
  color: var(--firstColor);
  margin-bottom: 0.5rem;
  filter: drop-shadow(-1.5px 0.5px 1px #000000);
}

.hero-content h2 {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--secondaryColor);
  font-style: italic;
  font-weight: 400;
}

/* Presentation Section */
#presentation {
  text-align: center;
  padding: 3rem 2rem;
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
}

/* Activités Section */
#activites {
  display: flex;
  background: #fff;
}

.activite-card {
  flex: 1;
  text-align: center;
  padding: 4rem 2rem;
  background-size: cover;
  background-position: center;
  color: white;
  position: relative;
  transition: transform 0.3s ease;
}

.activite-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.activite-card .card-content {
  position: relative;
  z-index: 2;
}

.activite-card h3 {
  font-family: Merienda Regular;
  color: var(--secondaryColor);
  font-size: 2rem;
  margin-bottom: 1rem;
}

.activite-card.jardin {
  background-image: url('./assets/jardin/jardin.webp');
}

.activite-card.fournil {
  background-image: url('./assets/fournil/pousse.webp');
}

.activite-card:hover {
  transform: scale(1.05);
}

.btn {
  display: inline-block;
  background: var(--thirdColor);
  color: #fff;
  padding: 10px 20px;
  border-radius: 5px;
  margin-top: 1rem;
  font-weight: bold;
  text-transform: uppercase;
  transition: background 0.3s ease;
}

.btn:hover {
  background: #6b5538;
  text-decoration: none;
}

/* Contact Section */
#contact {
  padding: 4rem 2rem;
  background: #f4f2ef;
}

#contact h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
}

.contact-container {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  gap: 2rem;
}

.contact-info,
.map {
  flex: 1;
}

.contact-info p {
  font-size: 1.1rem;
}

.map iframe {
  width: 100%;
  height: 300px;
  border: 0;
}

/* Footer */
footer {
  text-align: center;
  padding: 1.5rem;
  background: #333;
  color: #fff;
}

/* Inner Page Styles (Fournil & Jardin) */
.hero-page {
  position: relative;
  color: #fff;
  text-align: center;
  padding: 5rem 2rem;
  background-size: cover;
  background-position: center;
}

.hero-img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-page::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
}

.hero-page .hero-content {
  position: relative;
  z-index: 1;
}

.hero-page h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.hero-page p {
  color: var(--secondaryColor);
  font-size: 1.2rem;
  font-style: italic;
}

.page-content {
  padding: 4rem 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.page-content h2 {
  color: var(--thirdColor);
  border-bottom: 2px solid #f4f2ef;
  padding-bottom: 0.5rem;
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
}

.cta-container {
  text-align: center;
  margin: 3rem 0;
}

.gallery {
  margin-top: 3rem;
}

.gallery h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.gallery-grid img {
  width: 100%;
  height: auto;
  border-radius: 5px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
  .logo {
    display: flex;
    justify-content: space-between;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    text-align: center;
    position: absolute;
    top: 70px;
    left: 0;
    background: #fff;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links li {
    margin: 1rem 0;
  }
  .menu-toggle {
    display: block;
  }
  #activites,
  .contact-container {
    flex-direction: column;
  }
}
