/* ============================================
   TERAFRIK — Design tokens
   Palette dérivée du logo (noir + or) enrichie
   d'argile et de vert botanique pour évoquer
   les terres agricoles africaines.
============================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300;9..144,500;9..144,600;9..144,700&family=Jost:wght@400;500;600&family=Caveat:wght@500;600&display=swap');

:root {
  --tf-black: #14120f;
  --tf-black-soft: #201c17;
  --tf-gold: #a7860a;
  --tf-gold-bright: #c9a227;
  --tf-cream: #f7f2e7;
  --tf-cream-deep: #efe6d3;
  --tf-clay: #8b4a2b;
  --tf-green: #3e4a34;

  --tf-font-display: "Fraunces", serif;
  --tf-font-body: "Jost", sans-serif;
  --tf-font-script: "Caveat", cursive;

  --tf-radius: 2px;
  --tf-container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--tf-cream);
  color: var(--tf-black);
  font-family: var(--tf-font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--tf-gold-bright);
  outline-offset: 3px;
}

.container {
  max-width: var(--tf-container);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: var(--tf-font-display);
  font-weight: 600;
  margin: 0;
  color: var(--tf-black);
}

/* ============ Terroir divider (élément signature) ============
   Bande de tirets alternés or / argile / vert — évoque, de
   façon abstraite, les récoltes et terroirs plutôt qu'un motif
   décoratif générique. */
.terroir-divider {
  display: flex;
  height: 6px;
  width: 100%;
}
.terroir-divider span {
  flex: 1;
}
.terroir-divider span:nth-child(3n+1) { background: var(--tf-gold); }
.terroir-divider span:nth-child(3n+2) { background: var(--tf-clay); }
.terroir-divider span:nth-child(3n+3) { background: var(--tf-green); }

/* ============ Header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 242, 231, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(20, 18, 15, 0.08);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.logo-link img {
  height: 56px;
  width: auto;
}

.main-nav {
  display: flex;
  gap: 32px;
}

.main-nav a {
  font-family: var(--tf-font-body);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--tf-black-soft);
  position: relative;
  padding-bottom: 4px;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1.5px;
  background: var(--tf-gold);
  transition: right 0.25s ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  right: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.cart-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--tf-font-body);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border: 1px solid var(--tf-black);
  padding: 9px 16px;
  border-radius: var(--tf-radius);
  transition: background 0.2s ease, color 0.2s ease;
}

.cart-btn:hover {
  background: var(--tf-black);
  color: var(--tf-cream);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--tf-black);
}

/* ============ Hero ============ */
.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 80px;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
}

.hero-eyebrow {
  font-family: var(--tf-font-script);
  font-size: 1.7rem;
  color: var(--tf-clay);
  margin-bottom: 10px;
  display: block;
  position: relative;
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  font-weight: 600;
  font-optical-sizing: auto;
}

.hero h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--tf-gold);
  position: relative;
}

.hero p {
  max-width: 46ch;
  margin-top: 24px;
  color: var(--tf-black-soft);
  font-size: 1.12rem;
  line-height: 1.7;
  font-weight: 400;
}

.hero-actions {
  margin-top: 32px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  font-family: var(--tf-font-body);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: var(--tf-radius);
  display: inline-block;
  border: 1px solid var(--tf-black);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn-primary {
  background: var(--tf-black);
  color: var(--tf-cream);
}
.btn-primary:hover { background: var(--tf-gold); border-color: var(--tf-gold); color: var(--tf-black); transform: translateY(-1px); }

.btn-secondary {
  background: transparent;
  color: var(--tf-black);
}
.btn-secondary:hover { background: var(--tf-black); color: var(--tf-cream); transform: translateY(-1px); }

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-visual svg {
  width: 100%;
  max-width: 360px;
  height: auto;
}

/* ============ Histoire ============ */
.section-histoire {
  background: var(--tf-black);
  color: var(--tf-cream);
  padding: 72px 0;
}

.section-histoire .container {
  max-width: 760px;
  text-align: center;
}

.section-histoire h2 {
  color: var(--tf-cream);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.section-histoire p {
  margin-top: 18px;
  color: rgba(247, 242, 231, 0.82);
  font-size: 1.05rem;
}

/* ============ Produits ============ */
.section-produits {
  padding: 88px 0 100px;
}

.section-heading {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 52px;
}

.section-heading .hero-eyebrow {
  color: var(--tf-clay);
}

.section-heading::before {
  content: "";
  display: block;
  width: 48px;
  height: 2px;
  background: var(--tf-gold);
  margin: 0 auto 18px;
}

.section-heading h2 {
  font-size: clamp(2rem, 3.6vw, 2.6rem);
  letter-spacing: -0.01em;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 28px;
}

.product-card {
  background: #fff;
  border: 1px solid rgba(20, 18, 15, 0.08);
  border-radius: var(--tf-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.product-card:hover {
  box-shadow: 0 14px 30px rgba(20, 18, 15, 0.1);
  transform: translateY(-3px);
}

.product-thumb {
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, var(--tf-cream-deep), var(--tf-cream));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--tf-font-display);
  font-size: 2.4rem;
  color: var(--tf-gold);
  letter-spacing: 0.02em;
}

.product-body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.product-origin {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tf-clay);
  font-weight: 500;
}

.product-name {
  font-family: var(--tf-font-display);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.product-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 6px;
}

.product-price {
  font-family: var(--tf-font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--tf-black);
  letter-spacing: -0.01em;
}

.add-to-cart {
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border: 1px solid var(--tf-black);
  padding: 8px 14px;
  border-radius: var(--tf-radius);
  background: transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  font-family: var(--tf-font-body);
}

.add-to-cart:hover {
  background: var(--tf-black);
  color: var(--tf-cream);
}

/* ============ Footer ============ */
.site-footer {
  background: var(--tf-black-soft);
  color: rgba(247, 242, 231, 0.78);
  padding: 56px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 32px;
}

.footer-grid img {
  height: 44px;
  margin-bottom: 12px;
  filter: brightness(0) invert(1);
}

.footer-grid h4 {
  font-family: var(--tf-font-body);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tf-cream);
  margin: 0 0 14px;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.9rem;
}

.footer-bottom {
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid rgba(247, 242, 231, 0.12);
  text-align: center;
  font-size: 0.8rem;
  color: rgba(247, 242, 231, 0.5);
}

/* ============ Responsive ============ */
@media (max-width: 860px) {
  .hero .container {
    grid-template-columns: 1fr;
  }
  .hero-visual { order: -1; }
  .footer-grid { grid-template-columns: 1fr; }
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
}
