/* --- VARIABLES --- */
:root {
  --gold: #D4AF37;        /* Or classique */
  --dark-gold: #B8860B;   /* Or sombre pour les effets */
  --black-bg: #0a0a0a;    /* Noir pur pour le fond */
  --card-bg: #141414;     /* Noir légèrement plus clair pour les cartes */
  --text-white: #ffffff;
  --text-grey: #a0a0a0;
}

/* --- BASE --- */
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background-color: var(--black-bg);
  color: var(--text-white);
  line-height: 1.6;
}

/* --- HEADER --- */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.95);
  padding: 10px 40px;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--gold);
}

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
  font-family: 'Playfair Display', serif;
  font-size: 1.6em;
  color: var(--gold);
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
}

.logo-img {
  height: 50px;
  width: auto;
  object-fit: contain;
}

.logo span {
  color: white;
  font-style: italic;
  font-size: 0.8em;
}

nav a {
  margin: 0 15px;
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.9em;
  transition: color 0.3s;
}

nav a:hover {
  color: var(--gold);
}

nav .btn, nav .btn-nav {
  background: var(--gold);
  color: #000;
  padding: 8px 20px;
  border-radius: 2px;
  font-weight: bold;
  text-decoration: none;
}

/* --- CARROUSEL / HERO --- */
.carousel-container {
  position: relative;
  height: 85vh;
  overflow: hidden;
  background: #000;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.slide.active {
  opacity: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}

.carousel-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 80%;
  z-index: 10;
}

.carousel-overlay h1 {
  font-family: 'Playfair Display', serif;
  font-size: 4em;
  color: var(--gold);
  margin-bottom: 10px;
  text-transform: uppercase;
}

/* --- SECTIONS PRODUITS --- */
.products {
  padding: 80px 40px;
  background-color: var(--black-bg);
  text-align: center;
}

.products h2 {
  font-family: 'Playfair Display', serif;
  color: var(--gold);
  font-size: 2.5em;
  margin-bottom: 50px;
  position: relative;
}

.products h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 15px auto;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.product-card {
  background: var(--card-bg);
  padding: 20px;
  border: 1px solid #222;
  transition: all 0.4s ease;
}

.product-card:hover {
  transform: translateY(-10px);
  border-color: var(--gold);
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.1);
}

.product-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-bottom: 2px solid var(--gold);
  margin-bottom: 15px;
}

.product-card h3 {
  font-family: 'Playfair Display', serif;
  color: var(--gold);
  margin: 15px 0 10px;
}

.product-card p {
  color: var(--text-grey);
  font-size: 0.9em;
  min-height: 50px;
}

/* --- BOUTONS WHATSAPP --- */
.whatsapp, .whatsapp-btn {
  display: block;
  background: transparent;
  color: var(--gold);
  padding: 12px;
  border: 1px solid var(--gold);
  text-decoration: none;
  margin-top: 20px;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 0.8em;
  transition: 0.3s;
  text-align: center;
}

.whatsapp:hover, .whatsapp-btn:hover {
  background: var(--gold);
  color: #000;
}

/* --- UNITÉS PRÉFABRIQUÉES --- */
.units {
  background: #111;
  padding: 80px 40px;
  text-align: center;
}

.unit-gallery {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin: 40px 0;
}

.unit-item {
  flex: 1;
  min-width: 250px;
  max-width: 350px;
}

.unit-item img {
  width: 100%;
  height: auto;
  border: 1px solid transparent;
  transition: 0.3s;
}

.unit-item img:hover {
  border-color: var(--gold);
}

.img-caption {
  font-size: 0.85em;
  color: var(--gold);
  margin-top: 10px;
}

/* --- PAGE À PROPOS & ENTREPÔT --- */
.page-content {
  padding: 100px 40px;
  min-height: 80vh;
}

.page-content h1 {
  font-family: 'Playfair Display', serif;
  color: var(--gold);
  font-size: 3em;
  text-align: center;
  margin-bottom: 40px;
}

.info-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.entrepot-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 50px;
}

.entrepot-item {
  flex: 1;
  min-width: 300px;
  max-width: 450px;
}

.entrepot-item img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  border: 1px solid var(--gold);
  transition: transform 0.3s ease;
}

.entrepot-item img:hover {
  transform: scale(1.02);
}

/* --- FORMULAIRE DE CONTACT --- */
.contact-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
}

.contact-form {
  display: flex;
  flex-direction: column; /* Force les champs les uns sous les autres */
  gap: 20px;
  max-width: 600px;
  margin: 0 auto;
}

.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 12px;
  box-sizing: border-box; /* Empêche les champs de dépasser */
}

.contact-form input:focus, .contact-form textarea:focus {
  border-color: var(--gold);
  outline: none;
}

.btn-gold {
  background: var(--gold);
  color: #000;
  padding: 15px;
  border: none;
  font-weight: bold;
  text-transform: uppercase;
  cursor: pointer;
  transition: 0.3s;
}

.btn-gold:hover {
  background: var(--dark-gold);
}

.direct-wa {
  margin-top: 40px;
  text-align: center;
  border-top: 1px solid #222;
  padding-top: 20px;
}

/* --- SECTION SLOGAN --- */
.footer-slogan {
  background: #0f0f0f;
  padding: 60px 20px;
  border-top: 1px solid var(--gold);
  text-align: center;
}

.slogan-content p {
  max-width: 850px;
  margin: 0 auto;
  color: var(--text-grey);
  font-size: 0.95em;
  line-height: 1.8;
  font-style: italic;
}

/* --- FOOTER PRINCIPAL --- */
.main-footer {
  background: #000;
  padding: 80px 10% 20px 10%;
  border-top: 1px solid #1a1a1a;
}

.footer-grid {
  display: flex;
  justify-content: space-between; /* Espace égal entre les colonnes */
  flex-wrap: wrap; /* Aligne en colonne sur mobile */
  gap: 40px;
  margin-bottom: 50px;
}

.footer-column {
  flex: 1;
  min-width: 250px; /* Taille minimum pour éviter l'écrasement */
}

.footer-column h3 {
  color: var(--gold);
  font-family: 'Playfair Display', serif;
  font-size: 1.2em;
  text-transform: uppercase;
  margin-bottom: 25px;
  letter-spacing: 1px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a, .contact-info p {
  color: var(--text-grey);
  text-decoration: none;
  font-size: 0.9em;
  transition: 0.3s;
}

.footer-links a:hover {
  color: var(--gold);
  padding-left: 5px; /* Petit effet de mouvement au survol */
}

.contact-info a {
  color: var(--gold);
  text-decoration: none;
}

/* --- RESEAUX & COPYRIGHT --- */
.social-icons {
  margin-top: 20px;
  display: flex;
  gap: 15px;
}

.social-icons a {
  color: var(--gold);
  border: 1px solid var(--gold);
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8em;
  font-weight: bold;
  text-decoration: none;
  transition: 0.3s;
}

.social-icons a:hover {
  background: var(--gold);
  color: #000;
}

.footer-copyright {
  text-align: center;
  border-top: 1px solid #1a1a1a;
  padding-top: 30px;
  color: #444;
  font-size: 0.8em;
}

/* --- MOBILE --- */
@media (max-width: 768px) {
  .footer-grid {
    text-align: center;
    justify-content: center;
  }
  .social-icons {
    justify-content: center;
  }
}