/* ============================================================
   JOUIDA BIO FARM — Feuille de style principale
   Palette dérivée du logo et du papier en-tête client :
   brun terre (#5A3524), vert olive profond (#545C1E),
   vert feuille (#7AAC3B), crème naturel (#F5F7EF)
   + or huile d'olive (#C9982F) comme accent produit.
   Typo : Fraunces (titrage) / Public Sans (texte) / IBM Plex Mono (data)
   ============================================================ */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }

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

/* ---------- Design tokens ---------- */
:root {
  /* Couleurs de marque (extraites du logo / papier en-tête) */
  --brown-900: #331B10;
  --brown-700: #5A3524;
  --brown-600: #6E4530;
  --brown-400: #9C7052;
  --green-900: #3A4014;
  --green-800: #4F571C;
  --green-600: #6B8A2E;
  --green-500: #7AAC3B;
  --green-300: #A8C97E;
  --green-100: #E7EEDC;
  --cream: #F6F7EF;
  --cream-dark: #ECE7D8;
  --gold: #C9982F;
  --gold-light: #E7C878;
  --ink: #2A2015;
  --ink-soft: #5B4E3F;
  --white: #FFFFFF;

  /* Typographie */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Public Sans", "Segoe UI", -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;

  /* Échelle d'espacement */
  --sp-1: 0.5rem;
  --sp-2: 0.75rem;
  --sp-3: 1rem;
  --sp-4: 1.5rem;
  --sp-5: 2rem;
  --sp-6: 3rem;
  --sp-7: 4.5rem;
  --sp-8: 6.5rem;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 32px;
  --shadow-card: 0 1px 2px rgba(51, 27, 16, 0.06), 0 12px 32px -16px rgba(51, 27, 16, 0.22);
  --shadow-lift: 0 20px 45px -20px rgba(51, 27, 16, 0.35);
  --container: 1240px;
}

/* ---------- Base ---------- */
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--brown-900); font-weight: 600; line-height: 1.1; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 4.4vw, 4.1rem); font-weight: 500; }
h2 { font-size: clamp(1.9rem, 3vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 1.6vw, 1.55rem); }
p { color: var(--ink-soft); }
strong { color: var(--ink); font-weight: 600; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--sp-4); }
@media (min-width: 640px) { .container { padding-inline: var(--sp-6); } }

.section { padding-block: var(--sp-8); position: relative; }
.section--tight { padding-block: var(--sp-6); }
.section--cream { background: var(--cream); }
.section--white { background: var(--white); }
.section--dark { background: linear-gradient(160deg, var(--brown-900) 0%, var(--brown-700) 46%, var(--green-900) 100%); color: var(--cream); }
.section--dark h2, .section--dark h3 { color: var(--cream); }
.section--dark p { color: #E4DCC9; }
.section--tint { background: var(--green-100); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: var(--sp-2);
}
.eyebrow::before { content: ""; width: 22px; height: 1.5px; background: var(--gold); display: inline-block; }
.section--dark .eyebrow { color: var(--green-300); }
.section--dark .eyebrow::before { background: var(--green-300); }

.section-head { max-width: 720px; margin-bottom: var(--sp-6); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-lead { font-size: 1.1rem; margin-top: var(--sp-3); max-width: 62ch; }
.section-head--center .section-lead { margin-inline: auto; }

.lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 68ch; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.85em 1.7em;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.96rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease, border-color .25s ease;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; transition: transform 0.25s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn--primary { background: var(--green-500); color: var(--brown-900); }
.btn--primary:hover { background: var(--gold); box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.btn--outline { border: 1.5px solid var(--brown-700); color: var(--brown-700); }
.btn--outline:hover { background: var(--brown-700); color: var(--cream); transform: translateY(-2px); }
.btn--on-dark { border: 1.5px solid rgba(246,247,239,0.55); color: var(--cream); }
.btn--on-dark:hover { background: var(--cream); color: var(--brown-900); transform: translateY(-2px); }
.btn--block { width: 100%; justify-content: center; }

/* ============================================================
   EN-TÊTE / NAVIGATION
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(246, 247, 239, 0.88);
  backdrop-filter: blur(10px) saturate(140%);
  border-bottom: 1px solid rgba(90, 53, 36, 0.1);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}
.site-header.is-scrolled { box-shadow: 0 8px 24px -18px rgba(51,27,16,0.4); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: clamp(0.75rem, 2vw, 1.5rem); padding-block: 0.75rem; }
.site-header__brand { display: flex; align-items: center; gap: 0.6rem; flex-shrink: 0; }
.site-header__brand img { height: 46px; width: auto; }
.site-header__brand-text { font-family: var(--font-display); line-height: 1.05; }
.site-header__brand-text strong { display: block; font-size: 1.05rem; color: var(--brown-900); font-weight: 600; }
.site-header__brand-text span { display: block; font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green-600); }

.site-header__nav { display: none; }
.site-header__actions { display: none; }

@media (min-width: 1020px) {
  .site-header__nav { display: flex; align-items: center; gap: clamp(0.9rem, 1.6vw, 1.5rem); flex-wrap: nowrap; }
  .nav-link { position: relative; font-size: 0.9rem; font-weight: 500; color: var(--ink-soft); padding-block: 0.3rem; white-space: nowrap; }
  .nav-link::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px; background: var(--green-500); transition: right 0.25s ease; border-radius: 2px; }
  .nav-link:hover { color: var(--brown-900); }
  .nav-link:hover::after { right: 0; }
  .nav-link.is-active { color: var(--brown-900); font-weight: 600; }
  .nav-link.is-active::after { right: 0; background: var(--gold); }
  .site-header__actions { display: flex; align-items: center; gap: var(--sp-4); }
  .site-header__phone { display: flex; align-items: center; gap: 0.5em; font-family: var(--font-mono); font-size: 0.85rem; color: var(--brown-700); }
  .site-header__phone svg { width: 16px; height: 16px; color: var(--green-600); }

  /* --- Sous-menu déroulant (catégories produits) --- */
  .nav-item--dropdown { position: relative; }
  .nav-item--dropdown > .nav-link { display: inline-flex; align-items: center; gap: 0.3em; }
  .nav-item--dropdown > .nav-link .caret { width: 10px; height: 10px; transition: transform .2s ease; }
  .nav-item--dropdown:hover > .nav-link .caret,
  .nav-item--dropdown:focus-within > .nav-link .caret { transform: rotate(180deg); }
  .nav-dropdown {
    position: absolute; top: 100%; left: 50%; transform: translate(-50%, 8px);
    min-width: 230px; background: var(--white); border-radius: var(--radius-md);
    box-shadow: 0 18px 40px rgba(51,27,16,0.16); padding: 0.5rem;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
    z-index: 60;
  }
  .nav-item--dropdown:hover .nav-dropdown,
  .nav-item--dropdown:focus-within .nav-dropdown {
    opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 2px);
  }
  .nav-dropdown a { display: block; padding: 0.6em 0.9em; border-radius: var(--radius-sm); font-size: 0.9rem; color: var(--brown-700); white-space: nowrap; }
  .nav-dropdown a:hover { background: var(--cream-dark); color: var(--brown-900); }
}

.nav-toggle { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 42px; height: 42px; align-items: center; }
.nav-toggle span { width: 22px; height: 2px; background: var(--brown-900); border-radius: 2px; transition: transform .3s ease, opacity .3s ease; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (min-width: 1020px) { .nav-toggle { display: none; } }

.mobile-nav { position: fixed; inset: 0; top: 0; background: var(--cream); z-index: 99; padding: 6.5rem var(--sp-4) var(--sp-4); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .3s ease, transform .3s ease; overflow-y: auto; }
.mobile-nav.is-open { opacity: 1; pointer-events: auto; transform: translateY(0); }
.mobile-nav a { display: block; font-family: var(--font-display); font-size: 1.7rem; padding-block: 0.6rem; border-bottom: 1px solid rgba(90,53,36,0.12); color: var(--brown-900); }
.mobile-nav a.is-active { color: var(--green-600); }
.mobile-nav .btn { margin-top: var(--sp-5); }
@media (min-width: 1020px) { .mobile-nav { display: none; } }

/* --- Sous-menu catégories (mobile) --- */
.mobile-nav__item--dropdown { border-bottom: 1px solid rgba(90,53,36,0.12); }
.mobile-nav__item--dropdown > .mobile-nav__row { display: flex; align-items: center; justify-content: space-between; }
.mobile-nav__item--dropdown > .mobile-nav__row > a { border-bottom: none; flex: 1; }
.mobile-nav__subtoggle { background: none; border: none; padding: 0.6rem; color: var(--brown-700); }
.mobile-nav__subtoggle svg { width: 20px; height: 20px; transition: transform .25s ease; }
.mobile-nav__subtoggle.is-open svg { transform: rotate(180deg); }
.mobile-nav__sublist { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.mobile-nav__sublist.is-open { max-height: 400px; }
.mobile-nav__sublist a { font-family: var(--font-body); font-size: 1.05rem; padding-block: 0.5rem; padding-inline-start: 1rem; color: var(--brown-700); border-bottom: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(155deg, var(--brown-900) 0%, var(--brown-700) 42%, var(--green-900) 100%);
  color: var(--cream);
  padding-top: var(--sp-8);
  padding-bottom: var(--sp-8);
}
.hero--page { padding-top: var(--sp-7); padding-bottom: var(--sp-7); }
.hero__texture { position: absolute; inset: 0; opacity: 0.5; mix-blend-mode: overlay; pointer-events: none; background-image: radial-gradient(rgba(246,247,239,0.14) 1.4px, transparent 1.4px); background-size: 24px 24px; }
.hero__branch .olive { fill: var(--gold-light); }
.hero__branch { position: absolute; right: -4%; top: 50%; transform: translateY(-50%); width: min(52vw, 640px); opacity: 0.9; pointer-events: none; }
.hero--page .hero__branch { width: min(38vw, 420px); opacity: 0.55; }
.hero__branch path { fill: none; stroke: var(--green-300); stroke-width: 1.4; stroke-linecap: round; }
.hero__branch .leaf { fill: var(--green-800); fill-opacity: 0.35; stroke: none; }
.hero__branch.draw path.stem { stroke-dasharray: 900; stroke-dashoffset: 900; animation: draw 2.6s ease forwards 0.3s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.hero__inner { position: relative; z-index: 2; max-width: 680px; }
.hero__eyebrow { color: var(--gold-light); }
.hero__eyebrow::before { background: var(--gold-light); }
.hero__title { color: var(--white); margin-bottom: var(--sp-3); }
.hero__title em { font-style: italic; color: var(--green-300); }
.hero__lead { font-size: 1.15rem; color: #E9E2CE; max-width: 54ch; margin-bottom: var(--sp-5); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.hero__crumb { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.08em; color: #C9BFA6; margin-top: var(--sp-4); }
.hero__crumb a { color: var(--green-300); }
.hero__crumb a:hover { text-decoration: underline; }

.hero__divider { position: absolute; left: 0; right: 0; bottom: -1px; line-height: 0; z-index: 3; }
.hero__divider svg { width: 100%; height: auto; display: block; }

/* ============================================================
   BANDEAU STATISTIQUES
   ============================================================ */
.stat-band { background: var(--brown-900); color: var(--cream); padding-block: var(--sp-6); position: relative; }
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-5); text-align: center; }
@media (min-width: 760px) { .stat-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-item__number { font-family: var(--font-mono); font-size: clamp(1.9rem, 3.4vw, 2.7rem); color: var(--gold-light); font-weight: 600; letter-spacing: -0.02em; }
.stat-item__label { font-size: 0.82rem; color: #CBC0A6; margin-top: 0.4rem; letter-spacing: 0.02em; }
.stat-grid + .stat-note { margin-top: var(--sp-4); }

/* ============================================================
   CARTES — VALEURS
   ============================================================ */
.value-grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-4); }
@media (min-width: 640px) { .value-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .value-grid { grid-template-columns: repeat(3, 1fr); } }
.value-card { background: var(--white); border-radius: var(--radius-md); padding: var(--sp-5); box-shadow: var(--shadow-card); transition: transform .3s ease, box-shadow .3s ease; }
.value-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }
.value-card__icon { width: 48px; height: 48px; color: var(--green-600); margin-bottom: var(--sp-3); }
.value-card__icon svg { width: 100%; height: 100%; }
.value-card h3 { margin-bottom: 0.5rem; }
.value-card p { font-size: 0.95rem; }

/* ============================================================
   PRODUITS
   ============================================================ */
.product-category { margin-bottom: var(--sp-7); }
.product-category:last-child { margin-bottom: 0; }
.product-category__head { display: flex; align-items: flex-start; gap: var(--sp-4); margin-bottom: var(--sp-4); flex-wrap: wrap; }
.product-category__icon { width: 56px; height: 56px; flex-shrink: 0; color: var(--white); background: var(--green-600); border-radius: var(--radius-sm); padding: 12px; }
.product-category__icon svg { width: 100%; height: 100%; }
.product-category__head h2 { margin-bottom: 0.3rem; }
.product-category__head p { max-width: 62ch; }

.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-3); }
@media (min-width: 640px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1020px) { .product-grid { grid-template-columns: repeat(4, 1fr); } }
.product-card { background: var(--white); border: 1px solid rgba(90,53,36,0.09); border-radius: var(--radius-sm); padding: var(--sp-3); display: flex; flex-direction: column; align-items: flex-start; gap: 0.6rem; transition: border-color .25s ease, transform .25s ease; }
.product-card:hover { border-color: var(--green-500); transform: translateY(-3px); }
.product-card__icon { width: 30px; height: 30px; color: var(--gold); }
.product-card__icon svg { width: 100%; height: 100%; }
.product-card__name { font-size: 0.92rem; font-weight: 600; color: var(--brown-900); line-height: 1.35; }

/* ============================================================
   CATALOGUE DYNAMIQUE (catégories & produits depuis la base)
   ============================================================ */
.category-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-4); }
@media (min-width: 700px) { .category-cards { grid-template-columns: repeat(4, 1fr); } }
.category-card { display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem; background: var(--white); border: 1px solid rgba(90,53,36,0.1); border-radius: var(--radius-md); padding: var(--sp-4); transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.category-card:hover { transform: translateY(-3px); border-color: var(--green-500); box-shadow: var(--shadow-card); }
.category-card__icon { width: 42px; height: 42px; color: var(--green-600); }
.category-card h3 { font-size: 1.05rem; margin: 0; }
.category-card p { font-size: 0.86rem; color: var(--ink-soft); margin: 0; }

.catalog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-4); }
@media (min-width: 640px) { .catalog-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1020px) { .catalog-grid { grid-template-columns: repeat(4, 1fr); } }
.catalog-card { display: block; background: var(--white); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-card); transition: transform .25s ease, box-shadow .25s ease; }
.catalog-card:hover { transform: translateY(-4px); box-shadow: 0 18px 34px rgba(51,27,16,0.16); }
.catalog-card__photo { aspect-ratio: 1/0.9; background: linear-gradient(150deg, var(--green-100), var(--cream-dark)); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.catalog-card__photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.catalog-card:hover .catalog-card__photo img { transform: scale(1.08); }
.catalog-card__photo svg { width: 40%; height: 40%; color: var(--green-600); opacity: 0.7; transition: transform .4s ease; }
.catalog-card:hover .catalog-card__photo svg { transform: scale(1.06); }
.catalog-card__body { padding: var(--sp-3) var(--sp-4) var(--sp-4); }
.catalog-card__body h3 { font-size: 1rem; margin-bottom: 0.3rem; color: var(--brown-900); transition: color .2s ease; }
.catalog-card:hover .catalog-card__body h3 { color: var(--green-800); }
.catalog-card__body p { font-size: 0.86rem; color: var(--ink-soft); margin: 0; line-height: 1.5; }
.catalog-empty { text-align: center; padding: var(--sp-7) var(--sp-4); color: var(--ink-soft); }

.product-detail { display: grid; grid-template-columns: 1fr; gap: var(--sp-6); }
@media (min-width: 860px) { .product-detail { grid-template-columns: 0.9fr 1.1fr; align-items: start; } }
.product-detail__photo { aspect-ratio: 1/0.95; border-radius: var(--radius-lg); overflow: hidden; background: linear-gradient(150deg, var(--green-100), var(--cream-dark)); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-card); }
.product-detail__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-detail__photo svg { width: 34%; height: 34%; color: var(--green-600); opacity: 0.7; }
.product-detail__body .eyebrow { margin-bottom: 0.8rem; }
.product-detail__short { font-size: 1.08rem; color: var(--brown-700); margin-bottom: 1.4rem; font-family: var(--font-display); }
.product-detail__desc { white-space: pre-line; }

/* ============================================================
   PROCESSUS — DE L'OLIVIER À LA BOUTEILLE
   ============================================================ */
.process-flow { display: grid; grid-template-columns: 1fr; gap: 0; position: relative; }
@media (min-width: 900px) { .process-flow { grid-template-columns: repeat(6, 1fr); } }
.process-step { position: relative; padding: var(--sp-4) var(--sp-3); text-align: left; }
@media (min-width: 900px) { .process-step { text-align: center; padding-inline: var(--sp-2); } }
.process-step__num { font-family: var(--font-mono); font-size: 0.75rem; color: var(--gold); letter-spacing: 0.1em; }
.process-step__icon { width: 46px; height: 46px; margin-block: var(--sp-2); color: var(--green-600); }
@media (min-width: 900px) { .process-step__icon { margin-inline: auto; } }
.process-step__icon svg { width: 100%; height: 100%; }
.process-step h3 { font-size: 1.02rem; margin-bottom: 0.35rem; }
.process-step p { font-size: 0.88rem; }
.process-step:not(:last-child)::after {
  content: "";
  position: absolute;
  background: repeating-linear-gradient(90deg, var(--green-300) 0 6px, transparent 6px 12px);
  left: var(--sp-3); top: 1.55rem; height: 2px; width: calc(100% - var(--sp-4));
}
@media (min-width: 900px) {
  .process-step:not(:last-child)::after { left: 60%; width: 80%; top: 2.1rem; }
}

/* ============================================================
   RAISONS / POURQUOI NOUS CHOISIR
   ============================================================ */
.reason-grid { display: grid; grid-template-columns: 1fr; gap: 1px; background: rgba(90,53,36,0.12); border: 1px solid rgba(90,53,36,0.12); border-radius: var(--radius-md); overflow: hidden; }
@media (min-width: 720px) { .reason-grid { grid-template-columns: repeat(2, 1fr); } }
.reason-card { background: var(--white); padding: var(--sp-5); display: flex; gap: var(--sp-3); }
.reason-card__icon { width: 38px; height: 38px; flex-shrink: 0; color: var(--gold); }
.reason-card__icon svg { width: 100%; height: 100%; }
.reason-card h3 { margin-bottom: 0.35rem; font-size: 1.08rem; }
.reason-card p { font-size: 0.93rem; }

/* ============================================================
   BLOCS TEXTE / IMAGE
   ============================================================ */
.split { display: grid; grid-template-columns: 1fr; gap: var(--sp-6); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }
.split--reverse .split__art { order: -1; }
@media (min-width: 900px) { .split--reverse .split__art { order: 2; } }
.split__body p + p { margin-top: var(--sp-3); }
.split__body h2 { margin-bottom: var(--sp-3); }

.art-frame { position: relative; border-radius: var(--radius-lg); background: linear-gradient(150deg, var(--green-100), var(--cream-dark)); aspect-ratio: 4 / 3.1; overflow: hidden; display: flex; align-items: center; justify-content: center; padding: var(--sp-5); }
.art-frame svg { width: 78%; height: 78%; }
.art-frame--photo { padding: 0; }
.art-frame--photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-4); margin-top: var(--sp-6); }
.photo-grid figure { margin: 0; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/3.3; box-shadow: var(--shadow-card); }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.photo-grid figure:hover img { transform: scale(1.04); }
@media (max-width: 900px) { .photo-grid { grid-template-columns: 1fr 1fr; } .photo-grid figure:first-child { grid-column: 1 / -1; } }
.art-frame::before { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(90,53,36,0.09); }
.art-frame__badge { position: absolute; bottom: var(--sp-4); left: var(--sp-4); background: var(--white); border-radius: 999px; padding: 0.5em 1em; display: flex; align-items: center; gap: 0.5em; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: .04em; color: var(--brown-700); box-shadow: var(--shadow-card); }
.art-frame__badge svg { width: 14px; height: 14px; color: var(--green-600); }

/* ============================================================
   CARTES CONTACT
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-4); }
@media (min-width: 720px) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }
.contact-card { background: var(--white); border-radius: var(--radius-md); padding: var(--sp-5); box-shadow: var(--shadow-card); }
.contact-card__icon { width: 36px; height: 36px; color: var(--green-600); margin-bottom: var(--sp-3); }
.contact-card__icon svg { width: 100%; height: 100%; }
.contact-card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.contact-card address, .contact-card p { font-style: normal; font-size: 0.96rem; }
.contact-card a { color: var(--green-600); font-weight: 600; }
.contact-card a:hover { text-decoration: underline; }

.map-frame { border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-card); border: 1px solid rgba(90,53,36,0.1); }
.map-frame iframe { width: 100%; height: 340px; border: 0; display: block; filter: grayscale(0.15) sepia(0.08); }

/* ---------- Formulaire ---------- */
.form-grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-3); }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.form-field { display: flex; flex-direction: column; gap: 0.4rem; }
.form-field--full { grid-column: 1 / -1; }
.form-field label { font-size: 0.82rem; font-weight: 600; color: var(--brown-700); }
.form-field input, .form-field select, .form-field textarea {
  padding: 0.85em 1em; border-radius: var(--radius-sm); border: 1.5px solid rgba(90,53,36,0.18);
  background: var(--white); font-size: 0.96rem; transition: border-color .2s ease, box-shadow .2s ease;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--green-500); box-shadow: 0 0 0 4px rgba(122,172,59,0.15); outline: none; }
.form-field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 0.8rem; color: var(--ink-soft); margin-top: var(--sp-3); }
.form-status { font-size: 0.88rem; color: var(--green-600); font-weight: 600; margin-top: var(--sp-3); }
.form-status--error { color: #B4483A; }
.grecaptcha-badge { z-index: 40; }
.stat-item { display: flex; flex-direction: column; align-items: center; }

/* ============================================================
   DIVISEURS DÉCORATIFS (motif "arc" du papier en-tête)
   ============================================================ */
.branch-divider { display: flex; align-items: center; justify-content: center; gap: var(--sp-3); padding-block: var(--sp-2); color: var(--green-500); }
.branch-divider svg { width: 120px; height: 20px; }
.branch-divider::before, .branch-divider::after { content: ""; height: 1px; width: 100%; max-width: 140px; background: rgba(90,53,36,0.18); }

/* ============================================================
   CARTE RÉGIONS (page Exploitations)
   ============================================================ */
.region-panel { display: grid; grid-template-columns: 1fr; gap: var(--sp-6); align-items: center; }
@media (min-width: 900px) { .region-panel { grid-template-columns: 0.9fr 1.1fr; } }
.region-map { background: linear-gradient(150deg, var(--green-900), var(--brown-900)); border-radius: var(--radius-lg); padding: var(--sp-5); }
.region-map svg { width: 100%; height: auto; }
.region-map text { font-family: var(--font-mono); font-size: 12px; fill: var(--cream); letter-spacing: 0.04em; }
.region-list { display: flex; flex-direction: column; gap: var(--sp-3); }
.region-item { display: flex; gap: var(--sp-3); align-items: flex-start; padding: var(--sp-3); border-radius: var(--radius-sm); transition: background .2s ease; }
.region-item:hover { background: var(--white); box-shadow: var(--shadow-card); }
.region-item__dot { width: 12px; height: 12px; border-radius: 50%; margin-top: 0.4em; flex-shrink: 0; }
.region-item h3 { font-size: 1rem; margin-bottom: 0.2rem; }
.region-item p { font-size: 0.9rem; }

/* ============================================================
   PIED DE PAGE
   ============================================================ */
.site-footer { background: var(--brown-900); color: #D8CFB8; padding-top: var(--sp-7); position: relative; overflow: hidden; }
.footer__top { display: grid; grid-template-columns: 1fr; gap: var(--sp-6); padding-bottom: var(--sp-6); border-bottom: 1px solid rgba(246,247,239,0.12); }
@media (min-width: 860px) { .footer__top { grid-template-columns: 1.3fr 0.8fr 1fr; } }
.footer__brand { display: flex; align-items: center; gap: 0.8rem; margin-bottom: var(--sp-3); }
.footer__brand img { height: 50px; filter: brightness(0) invert(1); opacity: 0.92; }
.footer__brand strong { font-family: var(--font-display); font-size: 1.15rem; color: var(--white); }
.footer__tagline { max-width: 34ch; font-size: 0.92rem; color: #B8AE96; }
.footer h4 { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green-300); margin-bottom: var(--sp-3); }
.footer__nav a { display: block; padding-block: 0.4rem; font-size: 0.95rem; color: #D8CFB8; transition: color .2s ease, padding-left .2s ease; }
.footer__nav a:hover { color: var(--white); padding-left: 4px; }
.footer__contact li { font-size: 0.92rem; padding-block: 0.4rem; display: flex; gap: 0.6rem; align-items: flex-start; }
.footer__contact svg { width: 16px; height: 16px; color: var(--green-300); flex-shrink: 0; margin-top: 0.2em; }
.footer__contact a:hover { text-decoration: underline; }
.footer__bottom { display: flex; flex-direction: column; gap: 0.6rem; align-items: center; text-align: center; padding-block: var(--sp-4); font-size: 0.8rem; color: #93876C; }
@media (min-width: 640px) { .footer__bottom { flex-direction: row; justify-content: space-between; text-align: left; } }
.footer__bottom a { color: #B8AE96; }
.footer__bottom a:hover { color: var(--white); }
.footer__bottom .fa-heart { color: #C9614F; margin: 0 0.15em; }

/* ============================================================
   ANIMATIONS AU DÉFILEMENT
   ============================================================ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > * { animation: fadeUp 0.6s ease forwards; }
.reveal-stagger > *:nth-child(1) { animation-delay: 0.05s; }
.reveal-stagger > *:nth-child(2) { animation-delay: 0.12s; }
.reveal-stagger > *:nth-child(3) { animation-delay: 0.19s; }
.reveal-stagger > *:nth-child(4) { animation-delay: 0.26s; }
.reveal-stagger > *:nth-child(5) { animation-delay: 0.33s; }
.reveal-stagger > *:nth-child(6) { animation-delay: 0.4s; }
.reveal-stagger > * { opacity: 0; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

/* ============================================================
   CTA FINAL
   ============================================================ */
.cta-band { border-radius: var(--radius-lg); background: linear-gradient(135deg, var(--green-800), var(--brown-900)); color: var(--white); padding: var(--sp-6) var(--sp-5); text-align: center; position: relative; overflow: hidden; }
.cta-band h2 { color: var(--white); }
.cta-band p { color: #E4DCC9; max-width: 56ch; margin-inline: auto; margin-top: var(--sp-2); }
.cta-band__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-3); margin-top: var(--sp-5); }

/* ============================================================
   UTILITAIRES
   ============================================================ */
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.two-col-text { columns: 1; gap: var(--sp-6); }
@media (min-width: 900px) { .two-col-text.md-two { columns: 2; } }
.two-col-text p { break-inside: avoid; margin-bottom: var(--sp-3); }
.badge-list { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: var(--sp-4); }
.badge-list span { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.04em; background: var(--white); border: 1px solid rgba(90,53,36,0.15); color: var(--brown-700); padding: 0.5em 0.9em; border-radius: 999px; }
.section--dark .badge-list span { background: rgba(246,247,239,0.08); border-color: rgba(246,247,239,0.2); color: var(--cream); }

.chip-list { display: flex; flex-wrap: wrap; gap: 0.65rem; }
.chip-list span { display: inline-flex; align-items: center; gap: 0.5em; background: var(--white); border: 1px solid rgba(90,53,36,0.14); color: var(--brown-700); padding: 0.6em 1.15em; border-radius: 999px; font-size: 0.9rem; font-weight: 500; }
.chip-list span svg { width: 15px; height: 15px; color: var(--green-600); flex-shrink: 0; }
.section--dark .chip-list span { background: rgba(246,247,239,0.07); border-color: rgba(246,247,239,0.18); color: var(--cream); }
.section--dark .chip-list span svg { color: var(--green-300); }

/* ============================================================
   BARRE UTILITAIRE (coordonnées + sélecteur de langue)
   ============================================================ */
.topbar { background: var(--brown-900); color: #C9BFA6; font-size: 0.78rem; position: relative; z-index: 101; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); padding-block: 0.5rem; }
.topbar__contact { display: none; align-items: center; gap: 1.3rem; }
@media (min-width: 760px) { .topbar__contact { display: flex; } }
.topbar__contact a { display: inline-flex; align-items: center; gap: 0.4em; color: #C9BFA6; transition: color .2s ease; }
.topbar__contact a:hover { color: var(--white); }
.topbar__contact svg { width: 13px; height: 13px; color: var(--green-300); flex-shrink: 0; }
.lang-switch { display: flex; align-items: center; gap: 0.3rem; margin-inline-start: auto; }
.lang-switch a { padding: 0.28em 0.6em; border-radius: 999px; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.03em; color: #B8AE96; border: 1px solid transparent; }
.lang-switch a.is-active { background: rgba(246,247,239,0.14); color: var(--white); font-weight: 600; border-color: rgba(246,247,239,0.2); }
.lang-switch a:hover { color: var(--white); }
.mobile-nav__lang { display: flex; gap: 0.5rem; margin-top: var(--sp-4); padding-top: var(--sp-4); border-top: 1px solid rgba(90,53,36,0.12); }
.mobile-nav__lang a { font-family: var(--font-mono); font-size: 0.8rem; padding: 0.4em 0.9em; border-radius: 999px; border: 1px solid rgba(90,53,36,0.2); color: var(--brown-700); }
.mobile-nav__lang a.is-active { background: var(--brown-900); color: var(--white); border-color: var(--brown-900); }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--brown-900); padding: 0.8em 1.2em; z-index: 999; border-radius: 0 0 8px 0; font-weight: 600; }

/* ============================================================
   BOUTON RETOUR EN HAUT
   ============================================================ */
.back-to-top {
  position: fixed;
  right: var(--sp-4);
  bottom: var(--sp-4);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--brown-900);
  color: var(--cream);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(51,27,16,0.28);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease, background-color .2s ease;
  z-index: 90;
}
.back-to-top svg { width: 20px; height: 20px; }
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--green-600); }
@media (min-width: 640px) { .back-to-top { right: var(--sp-6); bottom: var(--sp-6); width: 50px; height: 50px; } }
.skip-link:focus { left: 0; }

/* ============================================================
   RTL — Version arabe
   ============================================================ */
html[dir="rtl"] {
  --font-display: "El Messiri", "Segoe UI", Tahoma, sans-serif;
  --font-body: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --font-mono: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
}
html[dir="rtl"] body { line-height: 1.85; }
html[dir="rtl"] .eyebrow, html[dir="rtl"] .stat-item__label, html[dir="rtl"] .badge-list span,
html[dir="rtl"] .process-step__num, html[dir="rtl"] .footer h4, html[dir="rtl"] .art-frame__badge,
html[dir="rtl"] .lang-switch a, html[dir="rtl"] .hero__crumb { letter-spacing: 0; text-transform: none; }
html[dir="rtl"] .hero__branch { right: auto; left: -4%; }
html[dir="rtl"] .art-frame__badge { left: auto; right: var(--sp-4); }
html[dir="rtl"] .btn svg { transform: scaleX(-1); }
html[dir="rtl"] .btn:hover svg { transform: scaleX(-1) translateX(3px); }
html[dir="rtl"] .hero__crumb a svg, html[dir="rtl"] .nav-link::after { right: 0; left: auto; }
html[dir="rtl"] .process-step:not(:last-child)::after { left: auto; right: var(--sp-3); }
@media (min-width: 900px) { html[dir="rtl"] .process-step:not(:last-child)::after { right: 60%; left: auto; } }
html[dir="rtl"] .region-item__dot { margin-top: 0.4em; }
html[dir="rtl"] .lang-switch { margin-inline-start: 0; margin-inline-end: auto; }


/* Remplissages SVG (les attributs fill= des dégradés/diviseurs pointent ici) */
.fill-cream { fill: var(--cream); }
.fill-white { fill: var(--white); }
.fill-brown-900 { fill: var(--brown-900); }
.fill-green-100 { fill: var(--green-100); }
