@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:wght@500;700&display=swap');

:root {
  --primary-color: #643519; /* Marron foncé */
  --secondary-color: #8E5230; /* Marron moyen */
  --accent-color: #FF7A00; /* Orange vif */
  --secondary-accent: #C5743D; /* Cuivre / Orange terreux */
  --accent-yellow: #FFC91B; /* Jaune lumineux */
  --accent-red: #A51C19; /* Rouge carmin / Bordeaux */
  --accent-green: #559E2A; /* Vert vibrant */
  --bg-beige: #FDE4AD; /* Beige / Crème */
  --bg-color: #faf9f6; /* Soft Off-White */
  --text-dark: #2b2b2b;
  --text-light: #ffffff;
  --transition-speed: 0.3s;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: var(--primary-color);
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-speed) ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Container */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 0; /* No padding to keep header as small as possible */
  transition: all var(--transition-speed) ease;
  background-color: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

header.scrolled {
  padding: 0;
}

header.scrolled .logo,
header.scrolled .nav-links a {
  color: var(--primary-color);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  height: 60px;
}

.logo-img {
  height: 120px; /* Good compromise: large but controlled */
  width: auto;
  max-width: 250px;
  object-fit: contain;
  transition: all var(--transition-speed) ease;
  display: block;
  margin-bottom: -30px; /* Subtle overlap, not aggressive */
  margin-top: -15px; /* Vertically center the overflow */
  position: relative;
  z-index: 1001;
}

header.scrolled .logo-img {
  height: 90px;
  margin-bottom: -15px;
  margin-top: -10px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--accent-color);
  transition: width var(--transition-speed) ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  border: 2px solid transparent;
}

.btn-primary {
  background-color: var(--accent-color);
  color: var(--text-light);
}

.btn-primary:hover {
  background-color: var(--secondary-accent);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(197, 116, 61, 0.3);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--text-light);
  color: var(--text-light);
}

.btn-outline:hover {
  background-color: var(--text-light);
  color: var(--primary-color);
  transform: translateY(-2px);
}

/* Sections */
section {
  padding: 6rem 0;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--accent-color);
  margin: 1rem auto 0;
}

/* Hero Section */
.hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-light);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('assets/images/hero.png') no-repeat center center/cover;
  z-index: -2;
  transform: scale(1.05); /* Slight scale for potential animation */
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(100, 53, 25, 0.8), rgba(142, 82, 48, 0.6));
  z-index: -1;
}

.hero-content {
  max-width: 800px;
  padding: 0 20px;
  animation: fadeInDown 1s ease-out;
}

.hero h1 {
  font-size: 4.5rem;
  margin-bottom: 1rem;
  color: var(--text-light);
  text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.hero h2 {
  font-size: 2rem;
  font-weight: 300;
  font-family: 'Inter', sans-serif;
  margin-bottom: 2rem;
  color: #e0e0e0;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 3rem;
  color: #cccccc;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

/* About Section */
.about {
  background-color: #ffffff;
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.2rem;
  color: #555;
}

.about-content p {
  margin-bottom: 1.5rem;
}

/* Products Section (Home) */
.products {
  background-color: var(--bg-color);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.product-card {
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  position: relative;
  display: block;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.product-img-wrapper {
  height: 250px;
  overflow: hidden;
  position: relative;
}

.product-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.product-card:hover .product-img-wrapper img {
  transform: scale(1.1);
}

.product-info {
  padding: 1.5rem;
  text-align: center;
  border-top: 3px solid var(--accent-color);
}

.product-info h3 {
  font-size: 1.4rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

/* Commitments Section */
.commitments {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.commitments .section-title {
  color: var(--text-light);
}

.commitment-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 600px;
  margin: 0 auto;
}

.commitment-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.2rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 1rem 1.5rem;
  border-radius: 4px;
  border-left: 4px solid var(--accent-color);
  transition: transform 0.3s ease;
}

.commitment-item:hover {
  transform: translateX(10px);
  background: rgba(255, 255, 255, 0.1);
}

.commitment-item i {
  color: var(--accent-color);
  font-size: 1.5rem;
}

/* Contact / Action Section */
.cta {
  background-color: var(--secondary-color);
  color: var(--text-light);
  text-align: center;
}

.cta .section-title {
  color: var(--accent-color);
}

.cta-content {
  max-width: 700px;
  margin: 0 auto;
}

.cta-desc {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.contact-options {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.contact-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 8px;
  flex: 1;
  backdrop-filter: blur(5px);
  transition: background 0.3s ease;
}

.contact-card:hover {
  background: rgba(255, 255, 255, 0.2);
}

.contact-card h4 {
  color: var(--accent-color);
  font-family: 'Inter', sans-serif;
  margin-bottom: 1rem;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

input, textarea {
  width: 100%;
  padding: 1rem;
  border: none;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.9);
  font-family: 'Inter', sans-serif;
}

input:focus, textarea:focus {
  outline: 2px solid var(--accent-color);
}

.form-btn {
  background: var(--accent-color);
  color: #fff;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

.form-btn:hover {
  background: var(--secondary-accent);
}

/* Footer */
footer {
  background-color: #0a170f;
  color: #888;
  text-align: center;
  padding: 3rem 1rem;
  font-size: 0.95rem;
  border-top: 4px solid var(--primary-color);
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-info h4 {
  color: var(--accent-color);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  letter-spacing: 1px;
}

.footer-info p {
  color: #aaaaaa;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
}

.footer-info p:nth-child(2) {
  border-bottom: 1px dotted #555;
  display: inline-block;
  padding-bottom: 5px;
  margin: 0 auto;
}

.footer-info p:nth-child(3) {
  border-bottom: 1px dotted #555;
  display: inline-block;
  padding-bottom: 5px;
  margin: 0 auto 1.5rem auto;
}

/* --- Pages Produits Specific --- */

.page-header {
  height: 40vh;
  min-height: 300px;
  background: linear-gradient(rgba(100, 53, 25, 0.8), rgba(142, 82, 48, 0.8)), url('assets/images/hero.png') no-repeat center 20%/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 150px; /* offset for fixed header */
}

.page-header h1 {
  color: var(--accent-color);
  font-size: 3.5rem;
  animation: fadeIn 1s ease;
}

.product-detail-section {
  padding: 0;
}

.product-row {
  display: flex;
  align-items: stretch;
  min-height: 60vh;
}

.product-row:nth-child(even) {
  flex-direction: row-reverse;
}

.product-image-gallery {
  flex: 1;
  display: grid;
  gap: 15px;
  padding: 2rem;
  align-content: center;
}

/* 1 Image */
.product-image-gallery.grid-1 {
  grid-template-columns: 1fr;
}
.product-image-gallery.grid-1 img {
  width: 100%;
  height: 100%;
  min-height: 400px;
  max-height: 500px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* 2 Images */
.product-image-gallery.grid-2 {
  grid-template-columns: 1fr 1fr;
}
.product-image-gallery.grid-2 img {
  width: 100%;
  height: 100%;
  min-height: 350px;
  max-height: 450px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}
.product-image-gallery.grid-2 img:hover {
  transform: translateY(-5px);
}

/* 3 Images - Collage style */
.product-image-gallery.grid-3 {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 200px 200px;
}
.product-image-gallery.grid-3 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}
.product-image-gallery.grid-3 img:hover {
  transform: scale(1.02);
  z-index: 2;
}
.product-image-gallery.grid-3 img:nth-child(1) {
  grid-column: 1 / -1;
  grid-row: 1 / 2;
}
.product-image-gallery.grid-3 img:nth-child(2) {
  grid-column: 1 / 2;
  grid-row: 2 / 3;
}
.product-image-gallery.grid-3 img:nth-child(3) {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
}

.product-text-container {
  flex: 1;
  padding: 6rem 10%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: #ffffff;
}

.product-row:nth-child(even) .product-text-container {
  background-color: var(--bg-color);
}

.product-text-container h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.product-text-container p {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: #444;
}

.product-text-container ul {
  list-style: none;
  margin: 1.5rem 0;
}

.product-text-container li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: #555;
  font-weight: 500;
}

.product-text-container li::before {
  content: '•';
  color: var(--accent-color);
  font-size: 1.5rem;
  position: absolute;
  left: 0;
  top: -4px;
}

.product-footer-cta {
  background-color: var(--primary-color);
  color: var(--text-light);
  text-align: center;
  padding: 4rem 20px;
}

.product-footer-cta h3 {
  color: var(--accent-color);
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 1.5rem;
  max-width: 800px;
  margin: 0 auto 2rem;
  line-height: 1.5;
}

/* Animations */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .product-row, .product-row:nth-child(even) {
    flex-direction: column;
  }
  .product-image-gallery {
    padding: 1rem;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .product-image-gallery.grid-2,
  .product-image-gallery.grid-3 {
    grid-template-columns: 1fr;
  }
  .product-image-gallery.grid-3 img:nth-child(n),
  .product-image-gallery.grid-2 img,
  .product-image-gallery.grid-1 img {
    grid-column: 1 / -1;
    grid-row: auto;
    height: 300px;
    min-height: auto;
  }
  .product-text-container {
    padding: 4rem 20px;
  }
  .hero h1 { font-size: 3rem; }
  .contact-options { flex-direction: column; }
}

@media (max-width: 600px) {
  .nav-links { display: none; } /* Mobile menu could be added via JS */
  .product-grid {
    grid-template-columns: 1fr;
  }
  .hero h1 { font-size: 2.5rem; }
  .hero h2 { font-size: 1.5rem; }
  .hero-buttons { flex-direction: column; }
}
