/* =============================================
   MAS REGANTUS — Stylesheet Principal
   De notre terre à votre table
   Montbazin · Hérault
   ============================================= */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500&family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Great+Vibes&display=swap');

/* =============================================
   1. CSS CUSTOM PROPERTIES
   ============================================= */
:root {
  /* — Palette chromatique — */
  --vert-mas: #2E3011;
  --vert-olive: #536020;
  --vert-sauge: #999F78;
  --ivoire: #F1EBE1;
  --beige-sable: #E1D7C8;
  --terre: #835927;
  --ocre-dore: #C8A375;
  --brun-profond: #211F0A;
  --white: #FFFFFF;
  --black: #000000;

  /* — Typographies — */
  --font-titre: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Montserrat', 'Segoe UI', sans-serif;
  --font-signature: 'Great Vibes', cursive;

  /* — Spacing — */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;

  /* — Layout — */
  --container-max: 1340px;
  --container-padding: 1.25rem;
  --header-height: 80px;

  /* — Transitions — */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --transition-fast: 0.2s ease;
  --transition-base: 0.4s var(--ease-out-expo);
  --transition-slow: 0.8s var(--ease-out-expo);
  --transition-reveal: 1s var(--ease-out-expo);

  /* — Shadows — */
  --shadow-sm: 0 2px 8px rgba(33, 31, 10, 0.06);
  --shadow-md: 0 4px 20px rgba(33, 31, 10, 0.08);
  --shadow-lg: 0 8px 40px rgba(33, 31, 10, 0.12);
  --shadow-card: 0 2px 16px rgba(33, 31, 10, 0.07);

  /* — Border radius — */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
}

/* =============================================
   2. CSS RESET & BASE
   ============================================= */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scrollbar-width: thin;
  scrollbar-color: var(--vert-sauge) var(--beige-sable);
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  color: var(--brun-profond);
  background-color: var(--ivoire);
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

::selection {
  background-color: var(--ocre-dore);
  color: var(--white);
}

::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--beige-sable);
}
::-webkit-scrollbar-thumb {
  background: var(--vert-sauge);
  border-radius: var(--radius-full);
}

/* =============================================
   3. TYPOGRAPHY
   ============================================= */
h1, h2, h3, h4, h5 {
  font-family: var(--font-titre);
  font-weight: 600;
  line-height: 1.15;
  color: var(--vert-mas);
}

h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
}

h4 {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

p {
  font-size: clamp(0.9rem, 1.2vw, 1.05rem);
  color: var(--brun-profond);
  line-height: 1.8;
}

.signature {
  font-family: var(--font-signature);
  color: var(--ocre-dore);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--vert-olive);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background-color: var(--ocre-dore);
}

/* =============================================
   4. LAYOUT UTILITIES
   ============================================= */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.section-padding {
  padding: var(--space-2xl) 0;
}

.section-padding-lg {
  padding: var(--space-3xl) 0;
}

.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.grid {
  display: grid;
}

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

/* =============================================
   5. BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.8rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(-100%);
  transition: transform 0.5s var(--ease-out-expo);
}

.btn:hover::after {
  transform: translateX(0);
}

.btn-primary {
  background-color: var(--vert-mas);
  color: var(--ivoire);
  border: 2px solid var(--vert-mas);
}

.btn-primary:hover {
  background-color: var(--brun-profond);
  border-color: var(--brun-profond);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: transparent;
  color: var(--vert-mas);
  border: 2px solid var(--vert-mas);
}

.btn-secondary:hover {
  background-color: var(--vert-mas);
  color: var(--ivoire);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-accent {
  background-color: var(--ocre-dore);
  color: var(--white);
  border: 2px solid var(--ocre-dore);
}

.btn-accent:hover {
  background-color: var(--terre);
  border-color: var(--terre);
  transform: translateY(-2px);
}

.btn-icon {
  width: 20px;
  height: 20px;
  transition: transform var(--transition-fast);
}

.btn:hover .btn-icon {
  transform: translateX(3px);
}

/* =============================================
   6. SCROLL PROGRESS BAR
   ============================================= */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--vert-mas), var(--ocre-dore));
  z-index: 10000;
  transition: width 0.1s linear;
}

/* =============================================
   7. PAGE LOADER
   ============================================= */
.page-loader {
  position: fixed;
  inset: 0;
  background-color: var(--vert-mas);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.page-loader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.page-loader .loader-logo {
  width: 80px;
  height: 80px;
  opacity: 0;
  animation: loaderFadeIn 0.8s ease 0.2s forwards;
}

.page-loader .loader-text {
  font-family: var(--font-signature);
  color: var(--ocre-dore);
  font-size: 1.5rem;
  opacity: 0;
  animation: loaderFadeIn 0.8s ease 0.5s forwards;
}

.page-loader .loader-bar {
  width: 120px;
  height: 2px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  overflow: hidden;
  opacity: 0;
  animation: loaderFadeIn 0.6s ease 0.8s forwards;
}

.page-loader .loader-bar-fill {
  width: 0%;
  height: 100%;
  background: var(--ocre-dore);
  border-radius: var(--radius-full);
  animation: loaderProgress 1.2s ease 1s forwards;
}

/* =============================================
   8. HEADER / NAVIGATION
   ============================================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(241, 235, 225, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all var(--transition-base);
  border-bottom: 1px solid transparent;
}

.header.scrolled {
  border-bottom-color: rgba(225, 215, 200, 0.6);
  box-shadow: var(--shadow-sm);
}

.header.scrolled .header-inner {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.header.hidden {
  transform: translateY(-100%);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  transition: padding var(--transition-base);
}

/* Logo */
.header-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 101;
}

.header-logo img,
.header-logo-img {
  height: 58px;
  width: auto;
  object-fit: contain;
  transition: height var(--transition-base);
}

.header.scrolled .header-logo img,
.header.scrolled .header-logo-img {
  height: 44px;
}

.header-logo-text {
  display: flex;
  flex-direction: column;
}

.header-logo-title {
  font-family: var(--font-titre);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--vert-mas);
  line-height: 1.1;
  letter-spacing: 0.04em;
}

.header-logo-subtitle {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--vert-olive);
  line-height: 1.3;
}

.header-logo-signature {
  font-family: var(--font-signature);
  font-size: 0.95rem;
  color: var(--ocre-dore);
  line-height: 1;
  margin-top: 2px;
}

/* Navigation */
.nav-desktop {
  display: none;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav-link {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--brun-profond);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--ocre-dore);
  transform: translateX(-50%);
  transition: width var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
  color: var(--vert-mas);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 60%;
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-dropdown-arrow {
  width: 10px;
  height: 10px;
  transition: transform var(--transition-fast);
}

.nav-dropdown:hover .nav-dropdown-arrow {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background-color: var(--white);
  border: 1px solid var(--beige-sable);
  border-radius: var(--radius-md);
  padding: 0.5rem;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-lg);
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--brun-profond);
  transition: all var(--transition-fast);
}

.nav-dropdown-item:hover {
  background-color: var(--ivoire);
  color: var(--vert-mas);
}

.nav-dropdown-item img {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 101;
}

.header-action-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all var(--transition-fast);
  color: var(--brun-profond);
  position: relative;
}

.header-action-btn:hover {
  background-color: var(--beige-sable);
  color: var(--vert-mas);
}

.header-action-btn svg {
  width: 22px;
  height: 22px;
}

.cart-count {
  position: absolute;
  top: 2px;
  right: 2px;
  background-color: var(--ocre-dore);
  color: var(--white);
  font-size: 0.6rem;
  font-weight: 700;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  gap: 5px;
  cursor: pointer;
  z-index: 101;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--vert-mas);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu */
.nav-mobile {
  position: fixed;
  inset: 0;
  background-color: rgba(241, 235, 225, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 100;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--space-lg);
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s var(--ease-out-expo);
}

.nav-mobile.open {
  opacity: 1;
  visibility: visible;
}

.nav-mobile-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.nav-mobile-link {
  font-family: var(--font-titre);
  font-size: 2rem;
  font-weight: 600;
  color: var(--vert-mas);
  padding: 0.5rem 1rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s var(--ease-out-expo);
}

.nav-mobile.open .nav-mobile-link {
  opacity: 1;
  transform: translateY(0);
}

.nav-mobile.open .nav-mobile-link:nth-child(1) { transition-delay: 0.1s; }
.nav-mobile.open .nav-mobile-link:nth-child(2) { transition-delay: 0.15s; }
.nav-mobile.open .nav-mobile-link:nth-child(3) { transition-delay: 0.2s; }
.nav-mobile.open .nav-mobile-link:nth-child(4) { transition-delay: 0.25s; }
.nav-mobile.open .nav-mobile-link:nth-child(5) { transition-delay: 0.3s; }
.nav-mobile.open .nav-mobile-link:nth-child(6) { transition-delay: 0.35s; }
.nav-mobile.open .nav-mobile-link:nth-child(7) { transition-delay: 0.4s; }

.nav-mobile-link:hover {
  color: var(--ocre-dore);
}

.nav-mobile-signature {
  font-family: var(--font-signature);
  font-size: 1.5rem;
  color: var(--ocre-dore);
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.5s var(--ease-out-expo) 0.5s;
}

.nav-mobile.open .nav-mobile-signature {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   9. HERO SECTION
   ============================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--header-height);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.08);
  transition: transform 8s ease;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(241, 235, 225, 0.92) 0%,
    rgba(241, 235, 225, 0.75) 40%,
    rgba(241, 235, 225, 0.3) 65%,
    rgba(241, 235, 225, 0.05) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  align-items: center;
  padding: var(--space-xl) 0;
}

.hero-text {
  max-width: 580px;
}

.hero-text .section-label {
  margin-bottom: var(--space-sm);
  opacity: 0;
  animation: fadeInUp 0.8s var(--ease-out-expo) 1.8s forwards;
}

.hero-title {
  margin-bottom: var(--space-md);
  opacity: 0;
  animation: fadeInUp 1s var(--ease-out-expo) 2s forwards;
}

.hero-title .line {
  display: block;
  overflow: hidden;
}

.hero-title .line span {
  display: inline-block;
  transform: translateY(100%);
  animation: lineReveal 1s var(--ease-out-expo) forwards;
}

.hero-title .line:nth-child(1) span { animation-delay: 2s; }
.hero-title .line:nth-child(2) span { animation-delay: 2.1s; }
.hero-title .line:nth-child(3) span { animation-delay: 2.2s; }

.hero-description {
  font-size: clamp(0.95rem, 1.3vw, 1.1rem);
  color: var(--brun-profond);
  margin-bottom: var(--space-lg);
  max-width: 440px;
  opacity: 0;
  animation: fadeInUp 0.8s var(--ease-out-expo) 2.4s forwards;
}

.hero-buttons {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeInUp 0.8s var(--ease-out-expo) 2.6s forwards;
}

.hero-badge {
  position: absolute;
  bottom: var(--space-lg);
  right: var(--space-lg);
  width: 110px;
  height: 110px;
  z-index: 3;
  animation: rotateBadge 20s linear infinite;
  opacity: 0;
  animation: fadeIn 1s ease 3s forwards, rotateBadge 20s linear 3s infinite;
}

.hero-badge img {
  width: 100%;
  height: 100%;
}

/* =============================================
   10. PRODUCTIONS SECTION
   ============================================= */
.productions {
  background-color: var(--ivoire);
  position: relative;
}

.productions-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.production-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
  border: 1px solid rgba(225, 215, 200, 0.5);
  display: flex;
  flex-direction: column;
}

.production-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.production-card-image {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.production-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out-expo);
}

.production-card:hover .production-card-image img {
  transform: scale(1.06);
}

.production-card-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(46, 48, 17, 0.4), transparent);
}

.production-card-icon {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  width: 44px;
  height: 44px;
  background-color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  z-index: 2;
}

.production-card-icon img {
  width: 24px;
  height: 24px;
}

.production-card-body {
  padding: var(--space-md);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.production-card-title {
  font-family: var(--font-titre);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--vert-mas);
  margin-bottom: 0.5rem;
}

.production-card-desc {
  font-size: 0.9rem;
  color: var(--brun-profond);
  line-height: 1.6;
  margin-bottom: var(--space-md);
  flex: 1;
  opacity: 0.85;
}

.production-card .btn {
  align-self: flex-start;
  font-size: 0.75rem;
  padding: 0.65rem 1.4rem;
}

/* Variant for Cocottes */
.production-card.card-cocottes {
  background-color: var(--beige-sable);
  border-color: var(--beige-sable);
}

.production-card.card-cocottes .production-card-title {
  color: var(--terre);
}

/* =============================================
   11. SEASONAL AVAILABILITY SECTION
   ============================================= */
.seasonal {
  background-color: var(--white);
  position: relative;
}

.seasonal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--beige-sable), transparent);
}

.seasonal-header {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.seasonal-header-text h2 {
  margin-bottom: 0.5rem;
}

.seasonal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.seasonal-column h4 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: var(--space-sm);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.seasonal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.dot-available {
  background-color: #5a8a3c;
}

.dot-soon {
  background-color: var(--ocre-dore);
}

.dot-off {
  background-color: #c0392b;
}

.seasonal-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.seasonal-item {
  font-size: 0.9rem;
  color: var(--brun-profond);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0;
}

.seasonal-item::before {
  content: '·';
  color: var(--vert-sauge);
  font-weight: 700;
}

.calendar-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--vert-olive);
  font-weight: 600;
  font-size: 0.85rem;
  margin-top: var(--space-sm);
  transition: color var(--transition-fast);
}

.calendar-link:hover {
  color: var(--vert-mas);
}

.calendar-link svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-fast);
}

.calendar-link:hover svg {
  transform: translateX(3px);
}

/* =============================================
   12. VALUES / FEATURES SECTION
   ============================================= */
.values {
  background-color: var(--ivoire);
}

.values-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.value-item {
  text-align: center;
  padding: var(--space-md);
  transition: transform var(--transition-base);
}

.value-item:hover {
  transform: translateY(-4px);
}

.value-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--beige-sable);
  border-radius: 50%;
  transition: background-color var(--transition-fast);
}

.value-item:hover .value-icon {
  background-color: var(--vert-mas);
}

.value-icon svg,
.value-icon img {
  width: 28px;
  height: 28px;
  color: var(--vert-mas);
  transition: color var(--transition-fast), filter var(--transition-fast);
}

.value-item:hover .value-icon svg,
.value-item:hover .value-icon img {
  color: var(--ivoire);
  filter: brightness(10);
}

.value-title {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--vert-mas);
  margin-bottom: 0.4rem;
}

.value-desc {
  font-size: 0.82rem;
  color: var(--brun-profond);
  line-height: 1.6;
  opacity: 0.8;
}

/* =============================================
   12b. CERTIFICATIONS STRIP
   ============================================= */
.certifications-strip {
  display: flex;
  justify-content: center;
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--beige-sable);
}

.certification-badge {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.75rem 1.5rem;
  background-color: var(--white);
  border: 1px solid var(--beige-sable);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.certification-badge:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.certification-img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.certification-badge span {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--vert-mas);
}

/* Footer brand logos */
.footer-brand-logos {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-sm);
}

.footer-hve-badge {
  height: 50px;
  width: auto;
  object-fit: contain;
  filter: invert(1);
  opacity: 0.9;
  transition: opacity var(--transition-fast);
}

.footer-hve-badge:hover {
  opacity: 1;
}

/* =============================================
   13. PRECOMMANDE SECTION
   ============================================= */
.precommande {
  background-color: var(--vert-mas);
  color: var(--ivoire);
  position: relative;
  overflow: hidden;
}

.precommande::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 163, 117, 0.08), transparent 70%);
  pointer-events: none;
}

.precommande h2 {
  color: var(--ivoire);
}

.precommande p {
  color: rgba(241, 235, 225, 0.8);
}

.precommande-header {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.precommande-icon {
  width: 48px;
  height: 48px;
  color: var(--ocre-dore);
}

/* Steps */
.steps-title {
  text-align: center;
  font-family: var(--font-titre);
  font-size: 1.4rem;
  color: var(--ivoire);
  margin-bottom: var(--space-lg);
  position: relative;
}

.steps-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 2px;
  background-color: var(--ocre-dore);
  margin: var(--space-sm) auto 0;
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.step-item {
  text-align: center;
  position: relative;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--ocre-dore);
  color: var(--white);
  font-family: var(--font-titre);
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-sm);
}

.step-label {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ivoire);
  margin-bottom: 0.35rem;
}

.step-desc {
  font-size: 0.85rem;
  color: rgba(241, 235, 225, 0.7);
  line-height: 1.5;
}

/* Delivery info */
.delivery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.delivery-card {
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  text-align: center;
  transition: all var(--transition-base);
}

.delivery-card:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(200, 163, 117, 0.3);
  transform: translateY(-3px);
}

.delivery-card-icon {
  width: 36px;
  height: 36px;
  margin: 0 auto var(--space-xs);
  color: var(--ocre-dore);
}

.delivery-card-title {
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.3rem;
  color: var(--ocre-dore);
}

.delivery-card-desc {
  font-size: 0.82rem;
  color: rgba(241, 235, 225, 0.65);
}

/* =============================================
   14. EGG SUBSCRIPTION SECTION
   ============================================= */
.eggs {
  background-color: var(--beige-sable);
  position: relative;
  overflow: hidden;
}

.eggs-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.eggs-logo {
  width: 140px;
  height: auto;
  margin-bottom: var(--space-md);
}

.eggs-title {
  color: var(--terre);
  margin-bottom: 0.5rem;
}

.eggs-subtitle {
  font-family: var(--font-signature);
  font-size: 1.3rem;
  color: var(--ocre-dore);
  margin-bottom: var(--space-md);
}

.eggs-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
  margin: var(--space-md) 0;
}

.eggs-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-sm);
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-md);
}

.eggs-feature-icon {
  font-size: 1.5rem;
  margin-bottom: 0.3rem;
}

.eggs-feature-text {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--brun-profond);
  line-height: 1.4;
}

.eggs-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}

.eggs-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 300px;
}

/* =============================================
   15. ABOUT / EXPLOITATION SECTION
   ============================================= */
.about {
  background-color: var(--ivoire);
  position: relative;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}

.about-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.about-image::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  box-shadow: inset 0 0 60px rgba(33, 31, 10, 0.1);
  pointer-events: none;
}

.about-text .signature {
  display: block;
  margin-top: var(--space-md);
}

/* =============================================
   16. GALLERY / BANDEAU
   ============================================= */
.gallery-band {
  padding: var(--space-lg) 0;
  overflow: hidden;
  background-color: var(--white);
  position: relative;
  width: 100%;
}

.gallery-track {
  display: flex;
  gap: var(--space-sm);
  animation: scrollGallery 25s linear infinite;
  width: max-content;
  will-change: transform;
}

.gallery-track:hover {
  animation-play-state: paused;
}

.gallery-item {
  width: 280px;
  height: 200px;
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out-expo);
}

.gallery-item:hover img {
  transform: scale(1.08);
}

/* =============================================
   17. CONTACT SECTION
   ============================================= */
.contact {
  background-color: var(--ivoire);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.contact-info-icon {
  width: 40px;
  height: 40px;
  background-color: var(--beige-sable);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--vert-mas);
}

.contact-info-icon svg {
  width: 20px;
  height: 20px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.form-group {
  position: relative;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
  background-color: var(--white);
  border: 1px solid var(--beige-sable);
  border-radius: var(--radius-sm);
  color: var(--brun-profond);
  transition: all var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--vert-mas);
  box-shadow: 0 0 0 3px rgba(46, 48, 17, 0.08);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--vert-olive);
  margin-bottom: 0.3rem;
  display: block;
}

/* =============================================
   18. FOOTER
   ============================================= */
.footer {
  background-color: var(--vert-mas);
  color: var(--ivoire);
  padding: var(--space-xl) 0 var(--space-md);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  height: 50px;
  border-radius: var(--radius-md);
}

.footer-brand p {
  color: rgba(241, 235, 225, 0.6);
  font-size: 0.85rem;
  line-height: 1.6;
}

.footer-brand .signature {
  display: block;
  margin-top: var(--space-xs);
}

.footer-column h4 {
  color: var(--ivoire);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-sm);
  position: relative;
}

.footer-column h4::after {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--ocre-dore);
  margin-top: 0.5rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-link {
  font-size: 0.85rem;
  color: rgba(241, 235, 225, 0.65);
  transition: all var(--transition-fast);
  padding: 0.2rem 0;
}

.footer-link:hover {
  color: var(--ocre-dore);
  transform: translateX(4px);
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: rgba(241, 235, 225, 0.65);
  margin-bottom: 0.5rem;
}

.footer-contact-item svg {
  width: 16px;
  height: 16px;
  color: var(--ocre-dore);
  flex-shrink: 0;
}

.footer-social {
  display: flex;
  gap: 0.6rem;
  margin-top: var(--space-sm);
}

.footer-social-link {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(241, 235, 225, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ivoire);
  transition: all var(--transition-fast);
}

.footer-social-link:hover {
  background-color: var(--ocre-dore);
  border-color: var(--ocre-dore);
  transform: translateY(-3px);
}

.footer-social-link svg {
  width: 18px;
  height: 18px;
}

.footer-bottom {
  border-top: 1px solid rgba(241, 235, 225, 0.1);
  padding-top: var(--space-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.78rem;
  color: rgba(241, 235, 225, 0.4);
}

.footer-bottom a {
  color: rgba(241, 235, 225, 0.5);
  transition: color var(--transition-fast);
}

.footer-bottom a:hover {
  color: var(--ocre-dore);
}

/* =============================================
   19. BACK TO TOP
   ============================================= */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  background-color: var(--vert-mas);
  color: var(--ivoire);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  border: none;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background-color: var(--ocre-dore);
  transform: translateY(-3px);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

/* =============================================
   20. REVEAL ANIMATIONS
   ============================================= */
.reveal {
  opacity: 0;
  transition: opacity var(--transition-reveal), transform var(--transition-reveal);
}

.reveal[data-reveal="fade-up"] {
  transform: translateY(40px);
}

.reveal[data-reveal="fade-left"] {
  transform: translateX(-40px);
}

.reveal[data-reveal="fade-right"] {
  transform: translateX(40px);
}

.reveal[data-reveal="scale"] {
  transform: scale(0.92);
}

.reveal[data-reveal="fade"] {
  transform: none;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}

/* Stagger delays */
.reveal[data-delay="100"] { transition-delay: 0.1s; }
.reveal[data-delay="200"] { transition-delay: 0.2s; }
.reveal[data-delay="300"] { transition-delay: 0.3s; }
.reveal[data-delay="400"] { transition-delay: 0.4s; }
.reveal[data-delay="500"] { transition-delay: 0.5s; }
.reveal[data-delay="600"] { transition-delay: 0.6s; }

/* =============================================
   21. KEYFRAME ANIMATIONS
   ============================================= */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes lineReveal {
  to {
    transform: translateY(0);
  }
}

@keyframes rotateBadge {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes scrollGallery {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - (var(--space-sm) / 2))); }
}

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

@keyframes loaderProgress {
  from { width: 0%; }
  to { width: 100%; }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* =============================================
   22. PARALLAX
   ============================================= */
.parallax-container {
  overflow: hidden;
  position: relative;
}

.parallax-bg {
  will-change: transform;
}

/* =============================================
   23. DECORATIVE ELEMENTS
   ============================================= */
.section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--beige-sable), var(--ocre-dore), var(--beige-sable), transparent);
}

.ornament {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: center;
  margin: var(--space-md) 0;
}

.ornament-line {
  width: 40px;
  height: 1px;
  background-color: var(--ocre-dore);
}

.ornament-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--ocre-dore);
}

/* =============================================
   24. RESPONSIVE — TABLET (768px+)
   ============================================= */
@media (min-width: 768px) {
  :root {
    --container-padding: 2rem;
  }

  .productions-grid {
    grid-template-columns: 1fr 1fr;
  }

  .seasonal-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .values-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .delivery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .eggs-content {
    grid-template-columns: 1fr 1fr;
  }

  .about-content {
    grid-template-columns: 1fr 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }

  .seasonal-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }

  .gallery-item {
    width: 340px;
    height: 240px;
  }
}

/* =============================================
   25. RESPONSIVE — DESKTOP (1024px+)
   ============================================= */
@media (min-width: 1024px) {
  :root {
    --container-padding: 2.5rem;
    --header-height: 90px;
  }

  .hamburger {
    display: none;
  }

  .nav-desktop {
    display: block;
  }

  .hero-content {
    grid-template-columns: 1fr 1fr;
    padding: var(--space-3xl) 0;
  }

  .hero-bg::after {
    background: linear-gradient(
      90deg,
      rgba(241, 235, 225, 0.95) 0%,
      rgba(241, 235, 225, 0.8) 35%,
      rgba(241, 235, 225, 0.4) 55%,
      rgba(241, 235, 225, 0.1) 75%,
      transparent 100%
    );
  }

  .productions-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .seasonal-grid {
    grid-template-columns: 2fr repeat(3, 1fr);
  }

  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
    position: relative;
  }

  .step-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 20px;
    right: -15%;
    width: 30%;
    height: 1px;
    background: linear-gradient(90deg, var(--ocre-dore), transparent);
  }

  .delivery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-3xl);
  }

  .gallery-item {
    width: 380px;
    height: 260px;
  }
}

/* =============================================
   26. RESPONSIVE — LARGE DESKTOP (1440px+)
   ============================================= */
@media (min-width: 1440px) {
  :root {
    --container-max: 1440px;
    --container-padding: 4rem;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }

  .gallery-track {
    animation: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* =============================================
   28. PRINT
   ============================================= */
@media print {
  .header, .footer, .back-to-top, .scroll-progress, .page-loader {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  .hero {
    min-height: auto;
    padding: 2rem 0;
  }
}

/* =============================================
   29. MODALS
   ============================================= */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(46, 48, 17, 0.8); /* Dark green overlay based on primary colors */
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  max-width: 650px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  box-shadow: var(--shadow-xl);
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255, 255, 255, 0.8);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background-color 0.2s;
  color: var(--brun-profond);
  box-shadow: var(--shadow-sm);
}

.modal-close:hover {
  background: var(--ivoire);
}

.modal-header-image {
  width: 100%;
  height: 250px;
}

.modal-header-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-body {
  padding: 2rem;
  color: var(--brun-profond);
}

.modal-body h3 {
  color: var(--vert-mas);
  font-family: var(--font-heading);
}

.modal-body h4 {
  color: var(--vert-mas-clair);
  font-family: var(--font-heading);
  font-size: 1.15rem;
}

.modal-body p {
  margin-bottom: 0.85rem;
  line-height: 1.6;
}

.modal-body ul {
  margin-bottom: 0.85rem;
}

@media (max-width: 768px) {
  .modal-body {
    padding: 1.5rem;
  }
  .modal-header-image {
    height: 180px;
  }
}
