/* ============================================================
   VARIABLES & RESET
   ============================================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --green-dark:  #1a3325;
  --green-mid:   #2d5940;
  --green-light: #4a8a5e;
  --cream:       #f7f2ea;
  --cream-dark:  #ede6d7;
  --terra:       #c45e35;
  --terra-light: #e8835a;
  --brown:       #2a1f14;
  --text:        #3a3028;
  --text-muted:  #7a6e63;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'DM Sans', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--text);
  overflow-x: hidden;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 5%;
  background: rgba(247,242,234,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(45,89,64,0.12);
  transition: box-shadow 0.3s;
}
nav.scrolled { box-shadow: 0 2px 20px rgba(26,51,37,0.1); }

.nav-logo {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--green-dark);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.nav-logo span { color: var(--terra); }

.nav-links { display: flex; gap: 2.4rem; list-style: none; }
.nav-links a {
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--green-dark); }

.nav-cta {
  background: var(--green-dark);
  color: var(--cream) !important;
  padding: 0.5rem 1.2rem;
  border-radius: 2rem;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--green-mid) !important; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-top: 80px;
  overflow: hidden;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 5% 6rem 8%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(196,94,53,0.1);
  color: var(--terra);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 0.9rem;
  border-radius: 2rem;
  margin-bottom: 2rem;
  width: fit-content;
}
.hero-badge::before { content: '●'; font-size: 0.6em; }

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  font-weight: 600;
  line-height: 1.1;
  color: var(--green-dark);
  margin-bottom: 1.5rem;
}
.hero h1 em { font-style: italic; color: var(--terra); }

.hero p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 440px;
  margin-bottom: 2.5rem;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--green-dark);
  color: var(--cream);
  padding: 0.85rem 1.8rem;
  border-radius: 0.4rem;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: var(--green-mid); transform: translateY(-1px); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1.5px solid var(--cream-dark);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.btn-secondary:hover { color: var(--green-dark); border-color: var(--green-mid); }

.hero-visual {
  position: relative;
  background: var(--green-dark);
  overflow: hidden;
}
.hero-visual img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.7;
  mix-blend-mode: luminosity;
}
.hero-visual-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(26,51,37,0.4), rgba(196,94,53,0.15));
}

.hero-stat-card {
  position: absolute;
  bottom: 2.5rem; left: 2rem;
  background: var(--cream);
  border-radius: 0.8rem;
  padding: 1.1rem 1.5rem;
  box-shadow: 0 8px 30px rgba(26,51,37,0.2);
}
.hero-stat-card p    { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 0.25rem; }
.hero-stat-card strong { font-family: var(--serif); font-size: 1.4rem; color: var(--green-dark); }

/* ============================================================
   STRIP
   ============================================================ */
.strip {
  background: var(--green-dark);
  color: rgba(247,242,234,0.7);
  padding: 1rem 5%;
  display: flex;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.strip span { display: flex; align-items: center; gap: 0.5rem; }
.strip strong { color: var(--cream); font-weight: 500; }

/* ============================================================
   SECTIONS — GÉNÉRIQUE
   ============================================================ */
section { padding: 6rem 8%; }

.section-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 0.8rem;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--green-dark);
  margin-bottom: 1.2rem;
}
.section-title em { font-style: italic; }

.section-desc {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 560px;
}

/* ============================================================
   POURQUOI NOUS
   ============================================================ */
.why { background: var(--cream); }
.why-header { text-align: center; margin-bottom: 4rem; }
.why-header .section-desc { margin: 0 auto; }

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2px;
  background: var(--cream-dark);
  border: 1px solid var(--cream-dark);
  border-radius: 1rem;
  overflow: hidden;
}

.why-item {
  background: var(--cream);
  padding: 2.5rem 2rem;
  transition: background 0.2s;
}
.why-item:hover { background: #f0ebe0; }

.why-icon {
  width: 44px; height: 44px;
  background: rgba(26,51,37,0.08);
  border-radius: 0.6rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 1.2rem;
}

.why-item h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--green-dark);
  margin-bottom: 0.6rem;
}
.why-item p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-muted);
}

/* ============================================================
   PRODUITS
   ============================================================ */
.products { background: #f2ece0; }

.products-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 3.5rem;
  gap: 2rem;
  flex-wrap: wrap;
}

.animal-tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid var(--cream-dark);
  margin-bottom: 3rem;
}

.animal-tabs-wrapper {
  position: relative;
}
.animal-tabs-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 60px;
  height: 100%;
  background: linear-gradient(to right, transparent, #f2ece0);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}
.animal-tabs-wrapper.show-hint::after {
  opacity: 1;
}

.tab-btn {
  background: none; border: none; cursor: pointer;
  padding: 0.75rem 1.5rem;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.2s, border-color 0.2s;
}
.tab-btn.active { color: var(--green-dark); border-bottom-color: var(--green-dark); }
.tab-btn:hover  { color: var(--green-dark); }

.tab-panel { display: none; }
.tab-panel.active {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background: var(--cream);
  border-radius: 1rem;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(26,51,37,0.12);
}

.product-img {
  width: 100%; height: 220px;
  object-fit: cover;
  display: block;
}

.product-body { padding: 1.5rem; }

.product-tag {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--terra);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.product-body h3 {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--green-dark);
  margin-bottom: 0.5rem;
  line-height: 1.25;
}

.product-body p {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}

.product-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--green-dark);
  letter-spacing: 0.02em;
}
.product-arrow::after { content: '→'; transition: transform 0.2s; }
.product-card:hover .product-arrow::after { transform: translateX(4px); }

/* ============================================================
   BANNIÈRE LIVRAISON
   ============================================================ */
.delivery {
  background: var(--terra);
  color: white;
  padding: 3.5rem 8%;
  text-align: center;
}
.delivery h2 {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.delivery p   { font-size: 1rem; opacity: 0.85; margin-bottom: 2rem; }
.delivery a {
  background: white;
  color: var(--terra);
  padding: 0.8rem 1.8rem;
  border-radius: 0.4rem;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: opacity 0.2s;
}
.delivery a:hover { opacity: 0.9; }

/* ============================================================
   BOUTIQUE
   ============================================================ */
.store {
  background: var(--green-dark);
  color: var(--cream);
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 0;
  align-items: stretch;
}

.store-content {
  padding: 6rem 8%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.store .section-label { color: rgba(247,242,234,0.5); }
.store .section-title { color: var(--cream); }
.store .section-desc  { color: rgba(247,242,234,0.65); }

.store-info { margin-top: 2.5rem; display: grid; gap: 1.5rem; }
.store-info-item { display: flex; gap: 1rem; align-items: flex-start; }

.store-info-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  background: rgba(247,242,234,0.1);
  border-radius: 0.5rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}

.store-info-item h4 {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(247,242,234,0.5);
  margin-bottom: 0.25rem;
}
.store-info-item p { font-size: 0.95rem; color: var(--cream); line-height: 1.6; }

.store-map {
  background: var(--green-mid);
  position: relative;
  overflow: hidden;
  min-height: 400px;
}
.store-map iframe {
  width: 100%; height: 100%; border: 0;
  filter: saturate(0.4) brightness(0.9);
}

.store-phone-cta {
  margin-top: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  background: var(--terra);
  color: white;
  padding: 0.9rem 1.6rem;
  border-radius: 0.4rem;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  width: fit-content;
  transition: background 0.2s, transform 0.15s;
}
.store-phone-cta:hover { background: var(--terra-light); transform: translateY(-1px); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { background: var(--cream); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 6rem;
  align-items: start;
}

.contact-note {
  margin-top: 2.5rem;
  padding: 1.5rem;
  background: rgba(26,51,37,0.06);
  border-radius: 0.8rem;
  border-left: 3px solid var(--green-light);
}
.contact-note p  { font-size: 0.9rem; color: var(--text-muted); line-height: 1.65; }
.contact-note strong { color: var(--green-dark); font-weight: 500; }
.contact-note a  { color: var(--terra); font-weight: 500; text-decoration: none; }

.form-group { margin-bottom: 1.2rem; }

.form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: white;
  border: 1px solid rgba(42,31,20,0.12);
  border-radius: 0.4rem;
  padding: 0.8rem 1rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--text);
  transition: border-color 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--green-mid); }

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

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.form-submit {
  background: var(--green-dark);
  color: var(--cream);
  border: none;
  padding: 0.9rem 2rem;
  border-radius: 0.4rem;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  width: 100%;
  margin-top: 0.5rem;
}
.form-submit:hover    { background: var(--green-mid); transform: translateY(-1px); }
.form-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.form-feedback { margin-top: 0.8rem; font-size: 0.875rem; color: var(--green-mid); }
.hidden { display: none; }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--brown);
  color: rgba(247,242,234,0.55);
  padding: 3rem 8%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--cream);
}
.footer-logo span { color: var(--terra-light); }

footer p   { font-size: 0.8rem; }
footer a   { color: rgba(247,242,234,0.55); text-decoration: none; }
footer a:hover { color: var(--cream); }

/* ============================================================
   ANIMATIONS AU SCROLL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible        { opacity: 1; transform: none; }
.reveal-delay-1        { transition-delay: 0.1s; }
.reveal-delay-2        { transition-delay: 0.2s; }
.reveal-delay-3        { transition-delay: 0.3s; }
.reveal-delay-4        { transition-delay: 0.4s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .hero            { grid-template-columns: 1fr; min-height: auto; }
  .hero-visual     { min-height: 320px; }
  .hero-content    { padding: 5rem 6% 3rem; }
  .store           { grid-template-columns: 1fr; }
  .store-map       { min-height: 280px; }
  .contact-grid    { grid-template-columns: 1fr; gap: 3rem; }
  nav              { padding: 1rem 5%; }
  .nav-links       { gap: 1.4rem; }
  section          { padding: 4rem 6%; }
}

@media (max-width: 600px) {
  .nav-links       { display: none; }
  .hero h1         { font-size: 2.4rem; }
  .form-row        { grid-template-columns: 1fr; }
  .strip           { gap: 1.5rem; }
  footer           { flex-direction: column; text-align: center; }
}

@media (max-width: 600px) {

  /* Onglets catégories page d'accueil */
  .animal-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0.25rem;
  }
  .animal-tabs::-webkit-scrollbar { display: none; }

  .tab-btn {
    flex-shrink: 0;
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
    white-space: nowrap;
  }

  /* Grille produits page d'accueil */
  .tab-panel.active {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .product-img { height: 160px; }

  .product-body { padding: 1rem; }
  .product-body h3 { font-size: 1rem; }
  .product-body p { display: none; }

  .tab-panel p {
    text-align: center;
    padding: 2rem 1.5rem;
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .tab-panel.active p {
    grid-column: 1 / -1;
    text-align: center;
  }
}
