:root {
  --noir: #000000;
  --dore: #c5a24a;
  --ivoire: #f5f3e7;
  --whatsapp: #25d366;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Lato", sans-serif;
  color: var(--ivoire);
  overflow-x: hidden;
  min-height: 100vh;
}

/* PAGE CONTAINER */
.page-container {
  width: 100%;
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
}

.page-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 100vh;
  height: 100%;
  background-image: url("../images/hero-bg.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: 1;
}

.page-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 100vh;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  z-index: 2;
}

/* HEADER */
.page-header {
  position: relative;
  z-index: 100;
  padding: 20px 60px;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-img {
  height: 70px;
  filter: brightness(0) saturate(100%) invert(73%) sepia(13%) saturate(1456%)
    hue-rotate(358deg) brightness(92%) contrast(86%);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ivoire);
}

.lang-btn {
  color: var(--ivoire);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: 5px 10px;
  transition: color 0.3s;
}

.lang-btn:hover,
.lang-btn.active {
  color: var(--dore);
}

.whatsapp-btn {
  width: 50px;
  height: 50px;
  background: var(--whatsapp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  text-decoration: none;
  transition: all 0.3s;
}

.whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(37, 211, 102, 0.5);
}

/* MAIN CONTENT */
.page-main {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px;
  min-height: calc(100vh - 200px);
  margin-top: -5%;
}

/* HERO SECTION */
.hero-section {
  text-align: center;
  margin-bottom: 30px;
  padding: 20px 0;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-subtitle {
  font-family: "Playfair Display", serif;
  font-size: 16px;
  color: var(--dore);
  letter-spacing: 3px;
  margin-bottom: 15px;
  text-transform: uppercase;
}

.hero-title {
  font-family: "Playfair Display", serif;
  font-size: 48px;
  font-weight: 700;
  color: var(--ivoire);
  letter-spacing: 4px;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-tagline {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 24px;
  color: var(--dore);
  margin-bottom: 15px;
}

.hero-description {
  font-size: 16px;
  color: #ccc;
  margin-bottom: 30px;
}

.hero-buttons {
  display: flex;
  flex-wrap: nowrap; /* empêche le passage à la ligne */
  justify-content: center; /* centre les boutons horizontalement */
  gap: 10px; /* espace entre les boutons */
}

.hero-buttons a,
.hero-buttons button {
  flex: 1 1 auto; /* permet aux boutons de prendre de l'espace mais rester côte à côte */
  min-width: 120px; /* largeur minimale pour garder un bouton lisible */
}

.hero-buttons button i,
.hero-buttons a i {
    margin-right: 8px; /* espace entre icône et texte */
    font-size: 16px;   /* taille icône */
    vertical-align: middle;
}


.btn-primary,
.btn-secondary {
  padding: 14px 35px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-primary {
  background: var(--dore);
  color: var(--noir);
  box-shadow: 0 4px 15px rgba(197, 162, 74, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(197, 162, 74, 0.6);
}

.btn-secondary {
  background: transparent;
  color: var(--dore);
  border: 2px solid var(--dore);
}

.btn-secondary:hover {
  background: rgba(197, 162, 74, 0.1);
  transform: translateY(-2px);
}

/* PRODUCTS SLIDER */
.products-section {
  position: relative;
  max-width: 1400px;
  margin: 0 auto 30px;
  width: 100%;
}

.slider-container {
  position: relative;
  display: flex;
  align-items: center;
  gap: 15px;
}

.products-slider {
  display: flex;
  gap: 20px;
  overflow-x: hidden;
  scroll-behavior: smooth;
  flex: 1;
  position: relative;
}

.product-card {
  min-width: calc(25% - 15px);
  flex: 0 0 calc(25% - 15px);
  height: 350px;
  background-size: cover;
  background-position: center;
  border-radius: 15px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s;
  scroll-snap-align: start;
}

.product-card:hover {
  transform: translateY(-10px);
}

.product-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.3),
    rgba(0, 0, 0, 0.9)
  );
}

.product-content {
  position: relative;
  z-index: 10;
  padding: 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.product-name {
  font-family: "Playfair Display", serif;
  font-size: 18px;
  color: var(--dore);
  margin-bottom: 10px;
  font-weight: 700;
}

.product-details {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.product-details span {
  font-size: 12px;
  color: var(--ivoire);
  background: rgba(197, 162, 74, 0.2);
  padding: 3px 10px;
  border-radius: 12px;
}

.product-price {
  font-size: 22px;
  color: var(--ivoire);
  font-weight: 700;
  margin-bottom: 15px;
}

.btn-order {
  background: var(--dore);
  color: var(--noir);
  border: none;
  padding: 10px 25px;
  border-radius: 25px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 14px;
}

.btn-order:hover {
  box-shadow: 0 0 20px rgba(197, 162, 74, 0.8);
  transform: scale(1.05);
}

.slider-nav {
  width: 45px;
  height: 45px;
  background: rgba(197, 162, 74, 0.9);
  color: var(--noir);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.slider-nav:hover {
  background: var(--dore);
  box-shadow: 0 0 20px rgba(197, 162, 74, 0.6);
}

/* FOOTER */
.page-footer {
  position: relative;
  z-index: 10;
  border-top: 1px solid var(--dore);
  padding: 15px 60px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}

.footer-col {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ivoire);
}

.footer-col i {
  color: var(--dore);
}

/* FLOATING WHATSAPP */
.whatsapp-floating {
  display: none;
}

/* MODAL */
.modal-content {
  background: var(--noir);
  border: 2px solid var(--dore);
  border-radius: 15px;
}

.modal-header {
  border-bottom: 1px solid var(--dore);
}

.modal-title {
  font-family: "Playfair Display", serif;
  color: var(--dore);
  text-transform: uppercase;
}

.btn-close {
  filter: brightness(0) invert(1);
}

.form-label {
  color: var(--ivoire);
  font-weight: 600;
}

.form-control,
.form-select {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--dore);
  color: var(--ivoire);
}

.form-control:focus,
.form-select:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--dore);
  color: var(--ivoire);
  box-shadow: 0 0 15px rgba(197, 162, 74, 0.3);
}

.form-select option {
  background: var(--noir);
}

.btn-submit {
  width: 100%;
  background: var(--dore);
  color: var(--noir);
  border: none;
  padding: 12px;
  border-radius: 30px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-submit:hover {
  box-shadow: 0 0 25px rgba(197, 162, 74, 0.6);
}

.success-msg {
  text-align: center;
  padding: 30px;
}

.success-msg i {
  font-size: 50px;
  color: var(--whatsapp);
  margin-bottom: 15px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .page-header {
    padding: 15px 20px;
  }

  .logo-img {
    height: 50px;
  }

  .whatsapp-btn {
    display: none;
  }

  .whatsapp-floating {
    display: flex;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: var(--whatsapp);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-tagline {
    font-size: 18px;
  }

  .hero-description {
    font-size: 14px;
  }

  .hero-buttons a,
  .hero-buttons button {
    flex: 1 1 auto;
    min-width: 120px; /* largeur minimale */
    max-width: 200px; /* largeur maximale pour mobile */
  }

  .slider-nav {
    display: none;
  }

  .products-slider {
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--dore) transparent;
  }

  .product-card {
    min-width: 280px;
    flex: 0 0 280px;
  }

  .page-footer {
    padding: 15px 20px;
  }

  .footer-content {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .footer-col {
    justify-content: center;
    flex-wrap: wrap;
  }

  .page-background,
  .page-overlay {
    background-attachment: scroll;
  }

  .products-slider {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .slider-container {
    gap: 0;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .product-card {
    min-width: calc(33.333% - 14px);
    flex: 0 0 calc(33.333% - 14px);
  }
}

@media (max-width: 480px) {
  .hero-buttons {
    overflow-x: auto;
    gap: 8px;
  }
}
