/* ==========================================
   LES RUCHERS DE L'ORÉE - CSS MODERNE
   ========================================== */

/* =================== */

/*    RESET & BASE     */

/* =================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body,
h1,
h2,
h3,
p,
ul,
li,
figure,
figcaption {
  margin: 0;
  padding: 0;
}

:root {
  /* Palette couleurs naturelles et douces */
  --primary-gold: #b8956a;
  --secondary-gold: #a08660;
  --accent-honey: #f2ebd7;
  --dark-brown: #3e2f1c;
  --medium-brown: #6b5538;
  --light-cream: #f9f6f0;
  --warm-white: #fffef8;
  --shadow-color: rgba(62, 47, 28, 0.12);
  --shadow-hover: rgba(62, 47, 28, 0.18);
  /* Typography */
  --font-primary: "Georgia", "Times New Roman", serif;
  --font-secondary: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 3rem;
  --space-xl: 4rem;
  /* Border radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.3s ease;
  --transition-slow: 0.4s ease;
}

body {
  font-family: var(--font-primary);
  color: var(--dark-brown);
  background: var(--warm-white);
  line-height: 1.6;
  font-size: 1.1rem;
}

/* =================== */

/*    COMPOSANTS       */

/* =================== */

/* Container */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

/* Boutons */

.btn {
  display: inline-block;
  padding: 12px 28px;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-secondary);
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-smooth);
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--primary-gold),
    var(--secondary-gold)
  );
  color: white;
  box-shadow: 0 4px 15px var(--shadow-color);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--shadow-hover);
  filter: brightness(1.1);
}

/* Cards */

.card {
  background: white;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 30px var(--shadow-color);
  transition: all var(--transition-smooth);
  overflow: hidden;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px var(--shadow-hover);
}

/* =================== */

/*      NAVIGATION     */

/* =================== */

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(242, 235, 215, 0.95);
  box-shadow: 0 2px 10px rgba(184, 149, 106, 0.2);
  border-bottom: 1px solid rgba(184, 149, 106, 0.3);
}

.navbar {
  padding: var(--space-sm) 0;
}

.navbar ul {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.navbar a {
  text-decoration: none;
  color: var(--dark-brown);
  font-weight: 600;
  font-size: 1.1rem;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  position: relative;
}

.navbar a:hover,
.navbar a[aria-current="page"] {
  background: rgba(184, 149, 106, 0.15);
  transform: none;
}

.navbar a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--dark-brown);
  transition: all var(--transition-fast);
  transform: translateX(-50%);
}

.navbar a:hover::after,
.navbar a[aria-current="page"]::after {
  width: 80%;
}

/* =================== */

/*    HERO SECTION     */

/* =================== */

.hero {
  position: relative;
  background:
    linear-gradient(
      135deg,
      rgba(249, 246, 240, 0.9) 0%,
      rgba(242, 235, 215, 0.8) 100%
    ),
    url("../images/homepage.jpg");
  background-size: cover;
  background-position: center;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at center,
    transparent 0%,
    rgba(62, 47, 28, 0.05) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: var(--space-lg);
}

.logo {
  width: 100px;
  height: 100px;
  margin-bottom: var(--space-md);
  filter: drop-shadow(0 2px 8px rgba(62, 47, 28, 0.2));
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: var(--space-sm);
  color: var(--dark-brown);
  text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.5);
  font-weight: 400;
}

.hero h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin-bottom: var(--space-md);
  color: var(--medium-brown);
  font-weight: 300;
}

.hero p {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  line-height: 1.8;
  color: var(--medium-brown);
  max-width: 600px;
  margin: 0 auto;
}

/* Bouton scroll animé */

#scroll-to-products {
  margin-top: var(--space-lg);
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid var(--primary-gold);
  color: var(--primary-gold);
  font-size: 1.8rem;
  padding: 12px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(184, 149, 106, 0.3);
  transition: all var(--transition-smooth);
}

#scroll-to-products:hover {
  background: var(--primary-gold);
  color: white;
}

/* =================== */

/*    PRESENTATION     */

/* =================== */

.presentation {
  background: var(--light-cream);
  padding: var(--space-xl) var(--space-sm);
}

.presentation .container {
  text-align: center;
}

.presentation h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: var(--space-lg);
  color: var(--dark-brown);
}

.presentation p {
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: var(--space-md);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.presentation-image {
  width: 100%;
  max-width: 700px;
  border-radius: var(--radius-md);
  margin-top: var(--space-lg);
  box-shadow: 0 8px 25px var(--shadow-color);
}

/* =================== */

/*      PRODUITS       */

/* =================== */

/* Styles spécifiques à la nouvelle page produits */

.products-header {
  background: linear-gradient(
    135deg,
    var(--accent-honey) 0%,
    var(--light-cream) 100%
  );
  padding: 3rem 1rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.products-header::before {
  content: "🍯";
  position: absolute;
  font-size: 15rem;
  opacity: 0.05;
  top: -2rem;
  right: -3rem;
  transform: rotate(-15deg);
}

.products-header h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: var(--dark-brown);
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 2;
}

.products-header .subtitle {
  font-size: 1.3rem;
  color: var(--medium-brown);
  margin-bottom: 1rem;
  font-style: italic;
}

.products-header .intro-text {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--medium-brown);
}

/* Filtres/Catégories */

.products-filters {
  background: white;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
  border-radius: var(--radius-md);
}

.filter-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.7rem 1.5rem;
  border: 2px solid var(--primary-gold);
  background: white;
  color: var(--primary-gold);
  border-radius: 25px;
  cursor: pointer;
  transition: all var(--transition-smooth);
  font-weight: 600;
  font-size: 0.95rem;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--primary-gold);
  color: white;
  transform: translateY(-2px);
}

/* Nouvelle grille produits */

.products-main {
  padding: 2rem 1rem 4rem;
  background: var(--warm-white);
}

.products-grid-new {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Nouvelles cartes produits */

.product-card-new {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(62, 47, 28, 0.1);
  transition: all var(--transition-smooth);
  position: relative;
  border: 1px solid rgba(184, 149, 106, 0.15);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-card-new:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(62, 47, 28, 0.15);
}

.product-image-container {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.product-card-new img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.product-card-new:hover img {
  transform: scale(1.05);
}

.product-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--primary-gold);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-content-new {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 1.5rem;
}

.product-title {
  font-size: 1.4rem;
  color: var(--dark-brown);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.product-type {
  color: var(--primary-gold);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}

.product-description-new {
  color: var(--medium-brown);
  line-height: 1.6;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.product-features {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  flex-grow: 1;
}

.feature-tag {
  background: var(--accent-honey);
  height: fit-content;
  color: var(--dark-brown);
  padding: 0.3rem 0.7rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(184, 149, 106, 0.2);
}

.availability {
  font-size: 0.9rem;
  font-weight: 600;
}

.available {
  color: #4caf50;
}

.limited {
  color: #ff9800;
}

.unavailable {
  color: #f44336;
}

.contact-btn {
  background: var(--primary-gold);
  color: white;
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 20px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  font-size: 0.9rem;
  display: inline-block;
  text-align: center;
}

.contact-btn:hover {
  background: var(--secondary-gold);
  transform: translateY(-1px);
  color: white;
}

.contact-btn.kuupanda {
  background: linear-gradient(135deg, #4caf50, #45a049);
}

.contact-btn.kuupanda:hover {
  background: linear-gradient(135deg, #45a049, #3d8b40);
}

.contact-btn.contact {
  background: linear-gradient(
    135deg,
    var(--primary-gold),
    var(--secondary-gold)
  );
}

/* Section info complémentaire */

.products-info {
  background: var(--accent-honey);
  padding: 3rem 1rem;
  text-align: center;
  margin-top: 2rem;
}

/* Responsive */

@media (max-width: 768px) {
  .products-grid-new {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 1rem;
  }
  .filter-buttons {
    gap: 0.5rem;
  }
  .filter-btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
  .product-footer {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }
  .contact-btn {
    text-align: center;
  }
}

/* =================== */

/*      GALERIE        */

/* =================== */

/* Styles galerie dans le CSS principal */

.gallery {
  padding: 4rem 1rem;
}

.gallery h2 {
  text-align: center;
  color: #3e2f1c;
  margin-bottom: 2rem;
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(62, 47, 28, 0.12);
}

.gallery-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(62, 47, 28, 0.18);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-item::after {
  content: "🔍";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.5rem;
  background: rgba(150, 150, 150, 0.65);
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  box-shadow: 0 4px 15px rgba(62, 47, 28, 0.12);
}

.gallery-item:hover::after {
  opacity: 1;
}

/* Lightbox */

.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
}

.lightbox.active {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

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

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

.lightbox img {
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 0 50px rgba(255, 255, 255, 0.1);
}

.lightbox-close {
  position: absolute;
  top: -60px;
  right: 0;
  font-size: 3rem;
  color: white;
  cursor: pointer;
  background: none;
  border: none;
  padding: 10px;
  transition: all 0.2s ease;
  border-radius: 50%;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #b8956a;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.5rem;
  color: white;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.6);
  border: none;
  padding: 20px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.lightbox-nav:hover {
  background: rgba(184, 149, 106, 0.8);
}

.lightbox-prev {
  left: 30px;
}

.lightbox-next {
  right: 30px;
}

.lightbox-description {
  position: absolute;
  bottom: -80px;
  left: 0;
  right: 0;
  color: white;
  text-align: center;
  font-size: 1.2rem;
  background: rgba(0, 0, 0, 0.8);
  padding: 1rem 2rem;
  border-radius: 8px;
}

/* Mobile responsive */

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
  }
  .lightbox-nav {
    font-size: 2rem;
    padding: 15px;
  }
  .lightbox-prev {
    left: 15px;
  }
  .lightbox-next {
    right: 15px;
  }
  .lightbox-close {
    font-size: 2.5rem;
    top: -50px;
  }
  .lightbox-description {
    font-size: 1rem;
    padding: 10px;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* =================== */

/*      CONTACT        */

/* =================== */

.contact-info {
  background: var(--accent-honey);
  color: var(--dark-brown);
  padding: var(--space-xl) var(--space-sm);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 25px var(--shadow-color);
  margin: var(--space-lg) auto;
  text-align: center;
  border: 1px solid rgba(184, 149, 106, 0.2);
}

.contact-info .container {
  position: relative;
}

.contact-info h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: var(--space-md);
  font-weight: 700;
  color: var(--dark-brown);
}

.contact-info p {
  font-size: 1.2rem;
  margin-bottom: var(--space-lg);
  line-height: 1.6;
}

.contact-info ul {
  list-style: none;
  font-size: 1.1rem;
  display: grid;
  gap: var(--space-md);
  max-width: 600px;
  margin: 0 auto;
}

.contact-info ul li {
  background: rgba(255, 255, 255, 0.4);
  padding: var(--space-md);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(184, 149, 106, 0.2);
  transition: all var(--transition-smooth);
}

.contact-info ul li:hover {
  background: rgba(255, 255, 255, 0.6);
}

.contact-info ul li strong {
  color: var(--dark-brown);
  font-weight: 700;
}

/* =================== */

/*     RESPONSIVE      */

/* =================== */

@media (max-width: 768px) {
  :root {
    --space-sm: 0.75rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
  }
  .navbar ul {
    gap: var(--space-sm);
  }
  .navbar a {
    padding: 8px 12px;
    font-size: 1rem;
  }
  .hero {
    background-attachment: scroll;
    min-height: 80vh;
  }
  .product-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-sm);
  }
  .lightbox-nav {
    font-size: 2rem;
    padding: 15px;
  }
  .lightbox-prev {
    left: 15px;
  }
  .lightbox-next {
    right: 15px;
  }
  .lightbox-close {
    font-size: 2.5rem;
    top: -50px;
  }
  .contact-info ul {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .product-grid {
    grid-template-columns: 1fr;
  }
  .hero-content {
    padding: var(--space-md);
  }
}

/* =================== */

/*    ELEVAGE          */

/* =================== */

.elevage-hero {
  background:
    linear-gradient(
      135deg,
      rgba(249, 246, 240, 0.9) 0%,
      rgba(242, 235, 215, 0.8) 100%
    ),
    url("images/apiculteur-work.jpg");
  background-size: cover;
  background-position: center;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.elevage-hero-content {
  max-width: 800px;
  padding: 3rem 1rem;
}

.elevage-hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
  color: #3e2f1c;
  text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.5);
}

.elevage-hero p {
  font-size: 1.3rem;
  color: #6b5538;
  line-height: 1.6;
}

.elevage-content {
  padding: 4rem 1rem;
  background: #f9f6f0;
}

.section-block {
  background: white;
  border-radius: 12px;
  padding: 3rem 2rem;
  margin-bottom: 3rem;
  box-shadow: 0 6px 20px rgba(62, 47, 28, 0.12);
  border: 1px solid rgba(184, 149, 106, 0.1);
}

.section-title {
  font-size: 2rem;
  color: #3e2f1c;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid #b8956a;
  display: inline-block;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.method-card {
  background: #f2ebd7;
  padding: 2rem;
  border-radius: 8px;
  border-left: 4px solid #b8956a;
  transition: transform 0.3s ease;
}

.method-card:hover {
  transform: translateY(-3px);
}

.method-card h3 {
  color: #3e2f1c;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.method-card p {
  line-height: 1.7;
  color: #6b5538;
}

.values-list {
  list-style: none;
  padding: 0;
  margin-top: 2rem;
}

.values-list li {
  background: #f2ebd7;
  margin-bottom: 1rem;
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid #b8956a;
  position: relative;
}

.values-list li::before {
  content: "🐝";
  position: absolute;
  left: -15px;
  top: 1.5rem;
  background: white;
  padding: 5px;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(62, 47, 28, 0.15);
}

.values-list li strong {
  color: #3e2f1c;
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

/* Responsive */

@media (max-width: 768px) {
  .section-block {
    padding: 2rem 1rem;
    margin-bottom: 2rem;
  }
  .method-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .timeline-item {
    flex-direction: column;
    text-align: center;
  }
  .timeline-season {
    align-self: center;
  }
  .elevage-hero {
    min-height: 50vh;
  }
}

/* =================== */

/*    ANIMATIONS       */

/* =================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Scroll animations */

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-on-scroll {
  animation: slideInUp 0.6s ease-out;
}
