/* ========== 🌍 Base ========== */
:root {
  --main-bg: #fdf6f0;
  --accent: #e8cbb1;
  --text-color: #333;
  --font-family-nav: "Julius Sans One", sans-serif;
  --font-family: "Josefin Sans", sans-serif;
  --green: #9aaf8e; /* Vert sauge — ton header */
  --light-green: #beceb5; /* Vert clair — section collection */
  --beige: #f6f5f0; /* Fond doux — couleur de base */
  --text: #333; /* Couleur du texte principal */
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-family);
}

body {
  background-color: var(--main-bg);
  color: var(--text-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  text-align: center;
  margin: 0;
  font-family: var(--font-family);
  padding: 0;
}

.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ========== 🧭 Header ========== */
header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1440px;
  padding: 1rem 0;
  background-color: var(--green);
}

.logo {
  max-width: 150px;
  height: auto;
  background-color: var(--accent);
  border-radius: 50%;
  object-fit: contain;
  margin-left: 20px;
}

.menu-toggle {
  display: none;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-grow: 1;
  margin-right: 20px;
  margin-left: 20px;
}

.menu {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.menu li {
  position: relative;
}

.menu li a {
  color: var(--text);
  text-decoration: none;
  padding: 0.5rem;
  display: block;
  position: relative;
  font-family: var(--font-family-nav);
  font-weight: 600;
}

.menu a:hover {
  color: var(--beige);
}

.menu a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--beige);
}

.menu a:hover::after {
  width: 100%;
}

.submenu {
  list-style: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--light-green);
  padding: 0.5rem 0;
  display: none;
  min-width: 180px;
  border-radius: 4px;
  z-index: 10;
}

.submenu li a {
  color: var(--text);
  padding: 0.5rem 1rem;
}

.has-submenu:hover .submenu {
  display: block;
}

.user-icon {
  display: none;
  margin-left: 2rem;
}

/* ========== HERO ========== */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-direction: column;
  padding: 3rem 1rem;
  gap: 2rem;
  font-family: var(--font-family);
  text-align: center;
}

.hero h1 {
  font-size: 96px;
  font-style: normal;
  margin-top: 2rem;
  font-weight: 400;
  color: var(--beige);
  position: relative;
  z-index: 2;
}

.hero .img-background {
  background-image: url("../assets/images/photoIllustrations/bougiesRougesAllumesSurSapin.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 4rem 2rem;
}

.hero .img-background p {
  font-size: 50px;
  color: var(--beige);
  margin-top: 100px;
}

.hero::before {
  background: rgba(0, 0, 0, 0.4);
}

.hero .poetic {
  font-family: "Marck Script", cursive;
  font-size: 70px;
}

.cta-button {
  background-color: #9aaf8e;
  border-radius: 30px;
  border: #9aaf8e;
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
  font-weight: 400;
  font-size: 20px;
  cursor: pointer;
  margin-top: 1rem;
  padding: 12px 24px;
}

.cta-button:hover,
.cta-button-little:hover {
  background-color: #7f9c6e;
}

.cta-button-little {
  background-color: #9aaf8e;
  border-radius: 30px;
  border: #9aaf8e;
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
  width: 268px;
  height: 41px;
  flex-shrink: 0;
  font-weight: 500;
  font-size: 20px;
  cursor: pointer;
}

.poetic {
  margin: 2rem 0;
  font-style: italic;
}

.button-histoire {
  align-items: center;
  margin: 0 auto;
  max-width: 600px;
}

.button-histoire .cta-button-little {
  display: none;
}

.button-histoire .cta-button-little {
  margin: 0 50px;
}

.histoire {
  font-size: 0.95rem;
  margin-top: 1rem;
  text-align: justify;
  line-height: 1.6;
}

/* section marché de noel */

.marche-noel {
  background-color: #beceb5;
  margin: 0 35px;
  padding: 40px 0;
}

.marche-noel h2 {
  font-size: 65px;
  font-weight: 400;
}

.marche-noel h2 + p {
  font-size: 50px;
  padding-bottom: 30px;
}

.marche-noel p {
  font-size: 20px;
}

.button-marche {
  display: flex;
  justify-content: space-around;
}

/*  collections */

.categories {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin: 3rem 0;
}

.categorie-content {
  flex: 1 1 30%;
  max-width: 30%;
  padding: 1rem;
  text-align: center;
  object-fit: cover;
}

.categorie-content img {
  width: 100%;
  height: 350px;
  object-fit: cover;
}

.categorie-content h3 {
  margin-top: 1rem;
  font-size: 1.1rem;
  color: #4b3f2f;
}

.cta-button-little {
  margin-top: 1rem;
  padding: 8px 16px;
  border-radius: 30px;
  border: none;
  background-color: var(--light-green);
  color: #000;
  font-size: 16px;
  cursor: pointer;
  font-weight: 600;
}

.cta-button-little:hover {
  background-color: var(--green);
  color: #fff;
}

/* ========== 🦶 Footer ========== */
footer {
  font-size: 0.9rem;
  color: #000;
  text-align: center;
  background-color: var(--green);
  padding: 2rem;
  width: 100%;
  font-family: var(--font-family);
}

.newsletter {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.inscription-newsletter {
  font-size: 20px;
  color: #333;
}

.form-newsletter {
  margin-top: 15px;
  width: 350px;
  border-radius: 30px;
  padding: 10px 20px;
  border: none;
  background-color: #e3ede6;
  align-items: center;
}

.form-newsletter input {
  width: 200px;
  border-radius: 30px;
  padding: 10px 20px;
  border: none;
  background-color: #e3ede6;
}

.cta-button-newsletter {
  border: none;
  background-color: var(--light-green);
  font-size: 14px;
  font-weight: 400;
  border-radius: 30px;
  padding: 10px 15px;
}

.cta-button-newsletter:hover {
  background-color: var(--green);
  cursor: pointer;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin: 3rem 0;
}

.footer-columns {
  flex: 1 1 250px;
}

.footer-columns ul {
  list-style: none;
  text-align: left;
  padding: 0;
}

.footer-columns a,
.footer-contact a {
  text-decoration: none;
  color: #000;
  font-weight: 300;
  font-size: 14px;
}

.footer-columns li {
  padding-bottom: 10px;
}

.footer-columns a:hover {
  text-decoration: underline;
}

.social-icons img {
  width: 30px;
  height: 30px;
  vertical-align: middle;
}

.footer-contact p {
  margin-bottom: 0.5rem;
  font-size: 30px;
}

.footer-contact a {
  font-size: 16px;
}

/* Zones masquées en attendant la collection de Noël */

.cta-button {
  display: none;
}

.zoneMasquee {
  display: none;
}

/* ========== 📱 Tablette (≤1024px) ========== */
@media (max-width: 1024px) {
  nav {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .nav-container {
    flex-direction: column;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 16px;
  }

  h1 {
    font-size: 1.8rem;
  }

  p {
    font-size: 1rem;
  }

  .categorie-content {
    max-width: 45%;
  }

  .menu {
    flex-wrap: wrap;
  }
}

/* ========== 📱 Mobile (<768px) ========== */
@media (max-width: 767px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 1rem 2rem;
    background-color: var(--green);
  }

  .menu-toggle {
    display: block;
    font-size: 2rem;
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
  }

  .nav-container {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: var(--green);
  }

  .nav-container.open {
    display: flex;
  }

  .logo {
    align-items: center;
  }

  .menu {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 2rem;
  }

  .menu li a {
    color: var(--beige);
    font-size: 1.1rem;
    font-weight: 500;
  }

  .submenu {
    position: static;
    background-color: transparent;
    padding-left: 1rem;
  }

  .submenu li a {
    font-size: 0.95rem;
  }

  .img-background {
    padding: 2rem 1rem;
  }

  h1 {
    font-size: 1.5rem;
  }

  p {
    font-size: 0.95rem;
  }

  section {
    padding: 0 10px;
  }

  .poetic {
    margin: 0;
    font-style: italic;
  }

  .marche-noel {
    padding: 2rem 1rem;
  }
  .marche-noel h2 {
    font-size: 1.6rem;
  }

  .marche-noel p,
  .marche-noel h2 + p {
    font-size: 1.2rem;
  }

  .button-marche {
    flex-direction: column;
    gap: 1rem;
  }

  .categorie-content {
    max-width: 100%;
    flex: 1 1 100%;
  }

  .categories {
    flex-direction: column;
    align-items: center;
  }

  .button-marche {
    flex-direction: column;
  }

  .footer-grid {
    flex-direction: column;
    gap: 1rem;
    margin: 0;
  }

  .footer-contact {
    text-align: left;
  }

  .footer-columns {
    margin-bottom: 1rem;
    flex: 0;
  }

  .newsletter {
    margin-bottom: 1rem;
  }

  .form-newsletter {
    width: 100%;
  }

  .footer-contact {
    margin-bottom: 1rem;
    text-align: left;
  }
}
