/* ==========================================================================
   Ferme des Trois Chênes — styles du site public
   Trois thèmes, choisis depuis l'administration : tradition, moderne, marche.
   ========================================================================== */

:root {
  --wrap: 1140px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --font-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --radius: 16px;
  --radius-sm: 10px;
  --btn-radius: 999px;
  --shadow-sm: 0 12px 34px -24px rgb(43 35 22 / 0.45);
  --shadow-lg: 0 34px 80px -46px rgb(43 35 22 / 0.55);
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
  color-scheme: light;
}

/* --- Thème 1 : Tradition ------------------------------------------------ */
html[data-theme="tradition"] {
  --bg: #f8f2e4;
  --bg-soft: #f1e8d5;
  --surface: #fffaf0;
  --surface-2: #f4ebd8;
  --ink: #2e2a20;
  --muted: #6c6453;
  --line: #e2d6bf;
  --brand: #4b663a;
  --brand-strong: #2f4427;
  --brand-soft: #e2e9d4;
  --on-brand: #fffdf6;
  --accent: #c98a2e;
  --accent-strong: #a4661c;
  --accent-soft: #f3e2c2;
  --footer-bg: #2f4427;
  --footer-fg: #f5efdf;
  --art-sky: #f4e6c6;
  --art-hill: #cbd8ae;
  --art-hill-2: #a8bd84;
  --art-field: #d9b46b;
  --art-field-strong: #8a6a32;
  --art-barn: #b56743;
  --art-roof: #7a3f2b;
  --art-door: #5f3222;
  --art-window: #f6e3b6;
  --art-tree: #5a7744;
  --display-weight: 600;
  --heading-tracking: -0.015em;
  --card-border: 1px solid var(--line);
}

/* --- Thème 2 : Moderne -------------------------------------------------- */
html[data-theme="moderne"] {
  --bg: #f3f8f4;
  --bg-soft: #e8f2ea;
  --surface: #ffffff;
  --surface-2: #eef6f0;
  --ink: #11251c;
  --muted: #566b60;
  --line: #dae7de;
  --brand: #147a4c;
  --brand-strong: #0b5133;
  --brand-soft: #d9f0e2;
  --on-brand: #f4fff9;
  --accent: #82c341;
  --accent-strong: #4e8a24;
  --accent-soft: #e6f4d4;
  --footer-bg: #0b2f20;
  --footer-fg: #effaf3;
  --art-sky: #d9ecdf;
  --art-hill: #b7d8c1;
  --art-hill-2: #8fc0a0;
  --art-field: #cfe3a6;
  --art-field-strong: #6f8f55;
  --art-barn: #2e6f53;
  --art-roof: #174c37;
  --art-door: #0f3829;
  --art-window: #f2f7c9;
  --art-tree: #2f6b4c;
  --display-weight: 800;
  --heading-tracking: -0.035em;
  --card-border: 1px solid #e5efe9;
}

/* --- Thème 3 : Marché --------------------------------------------------- */
html[data-theme="marche"] {
  --bg: #fff5df;
  --bg-soft: #ffedc7;
  --surface: #fffdf7;
  --surface-2: #ffefcf;
  --ink: #2b1a10;
  --muted: #755641;
  --line: #eccf9f;
  --brand: #b53a1d;
  --brand-strong: #7e2914;
  --brand-soft: #f9e0ae;
  --on-brand: #fff9ee;
  --accent: #efb431;
  --accent-strong: #a8740a;
  --accent-soft: #ffe6a8;
  --footer-bg: #2b1a10;
  --footer-fg: #fff3dc;
  --art-sky: #ffe8b3;
  --art-hill: #e8cf8b;
  --art-hill-2: #d2b45e;
  --art-field: #e9a94b;
  --art-field-strong: #9a6a1e;
  --art-barn: #b53a1d;
  --art-roof: #7e2914;
  --art-door: #5e1d0e;
  --art-window: #ffe9b3;
  --art-tree: #7f8f3c;
  --display-weight: 800;
  --heading-tracking: 0.005em;
  --card-border: 2px solid var(--ink);
}

/* ==========================================================================
   Base
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--bg);
  background:
    radial-gradient(1100px 520px at 88% -8%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 68%),
    var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  line-height: 1.08;
  letter-spacing: var(--heading-tracking);
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

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

button,
input {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection {
  background: var(--brand-soft);
  color: var(--brand-strong);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  padding: 0.7rem 1rem;
  border-radius: var(--btn-radius);
  background: var(--brand);
  color: var(--on-brand);
  font-weight: 600;
  text-decoration: none;
  transition: top 160ms var(--ease);
}

.skip-link:focus {
  top: 1rem;
}

.noscript {
  margin: 0;
  padding: 0.8rem var(--gutter);
  background: var(--accent-soft);
  color: var(--ink);
  text-align: center;
  font-size: 0.88rem;
}

.wrap {
  width: min(100% - (2 * var(--gutter)), var(--wrap));
  margin-inline: auto;
}

.section {
  padding-block: clamp(3.5rem, 8vw, 6rem);
}

.section-soft {
  background: var(--bg-soft);
  border-block: 1px solid var(--line);
}

.section-head {
  max-width: 47rem;
  margin: 0 auto clamp(2rem, 4vw, 3rem);
  text-align: center;
}

.section-head p:not(.eyebrow) {
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 1.02rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
  color: var(--brand);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.section-head h2 {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
}

/* ==========================================================================
   Boutons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 46px;
  padding: 0.72rem 1.35rem;
  border: 1px solid transparent;
  border-radius: var(--btn-radius);
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 160ms var(--ease),
    background-color 160ms var(--ease),
    border-color 160ms var(--ease),
    color 160ms var(--ease),
    box-shadow 160ms var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--brand);
  color: var(--on-brand);
  box-shadow: 0 10px 24px -14px var(--brand-strong);
}

.btn-primary:hover {
  background: var(--brand-strong);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--surface);
}

.btn-soft {
  background: var(--brand-soft);
  color: var(--brand-strong);
}

.btn-soft:hover {
  background: var(--accent-soft);
}

/* ==========================================================================
   En-tête
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  flex: none;
  color: var(--brand);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 650;
  letter-spacing: var(--heading-tracking);
}

.brand-sub {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2.2vw, 1.6rem);
}

.main-nav a {
  padding-block: 0.35rem;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: color 160ms var(--ease);
}

.main-nav a:hover {
  color: var(--brand);
}

.main-nav .nav-cta {
  padding: 0.48rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--btn-radius);
  color: var(--ink);
  background: var(--surface);
}

.main-nav .nav-cta:hover {
  border-color: var(--brand);
  color: var(--brand);
}

/* ==========================================================================
   Héros
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.6rem, 7vw, 5.4rem) clamp(3.4rem, 7vw, 5rem);
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -18%;
  right: -12%;
  width: 46rem;
  height: 46rem;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 15%, transparent), transparent 68%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.5rem, 5.6vw, 4.55rem);
  line-height: 1.01;
}

.hero h1 em {
  color: var(--brand);
  font-style: italic;
  background-image: linear-gradient(transparent 68%, color-mix(in srgb, var(--accent) 38%, transparent) 68%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.hero .lede {
  max-width: 35rem;
  margin-top: 1.4rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.12rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  margin-top: 2.2rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.hero-facts li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-facts li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.hero-visual {
  position: relative;
  padding: 0 0 1.6rem 0.4rem;
}

.art-frame {
  padding: 0.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 8px);
  box-shadow: var(--shadow-lg);
  transform: rotate(-1.4deg);
}

.farm-art {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.hero-note {
  position: absolute;
  bottom: 0;
  left: -0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.85rem 1.1rem;
  border-radius: calc(var(--radius-sm) + 2px);
  background: var(--ink);
  color: var(--footer-fg);
  box-shadow: var(--shadow-lg);
  transform: rotate(1.2deg);
}

.hero-note-label {
  color: var(--accent);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-note strong {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 650;
}

.hero-note-sub {
  color: color-mix(in srgb, var(--footer-fg) 70%, transparent);
  font-size: 0.7rem;
}

/* ==========================================================================
   Bandeau géolocalisation
   ========================================================================== */

.geo-band {
  padding-bottom: 0.5rem;
}

.geo-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.2rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(120deg, color-mix(in srgb, var(--brand-soft) 55%, var(--surface)), var(--surface) 62%);
  box-shadow: var(--shadow-sm);
}

.geo-band-copy {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.geo-band-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  flex: none;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-strong);
}

.geo-band-icon svg {
  width: 26px;
  height: 26px;
}

.geo-band h2 {
  font-size: 1.22rem;
}

.geo-band p {
  max-width: 46rem;
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.88rem;
}

/* ==========================================================================
   Produits
   ========================================================================== */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1rem;
}

.product {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.5rem;
  border: var(--card-border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition:
    transform 200ms var(--ease),
    box-shadow 200ms var(--ease),
    border-color 200ms var(--ease);
}

.product:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--brand) 45%, var(--line));
  box-shadow: var(--shadow-lg);
}

.product-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 0.55rem;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-strong);
}

.product-icon svg {
  width: 30px;
  height: 30px;
}

.product h3 {
  font-size: 1.2rem;
}

.product p {
  color: var(--muted);
  font-size: 0.9rem;
}

.product-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 0.9rem;
  border-top: 1px dashed var(--line);
}

.price {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  white-space: nowrap;
}

.price small {
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 500;
}

.tag {
  padding: 0.24rem 0.55rem;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ==========================================================================
   La ferme
   ========================================================================== */

.farm-grid {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.story-card {
  position: sticky;
  top: 104px;
  overflow: hidden;
  padding: clamp(1.8rem, 4vw, 2.7rem);
  border-radius: var(--radius);
  background:
    radial-gradient(120% 100% at 100% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 55%),
    linear-gradient(150deg, var(--brand), var(--brand-strong));
  color: var(--on-brand);
  box-shadow: var(--shadow-lg);
}

.story-kicker {
  color: color-mix(in srgb, var(--on-brand) 72%, transparent);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.story-card blockquote {
  margin: 1.1rem 0 1.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.32rem, 2.4vw, 1.72rem);
  font-weight: 500;
  line-height: 1.34;
}

.story-signature {
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.5;
}

.story-signature span {
  color: color-mix(in srgb, var(--on-brand) 70%, transparent);
  font-size: 0.76rem;
  font-weight: 400;
}

.story-seal {
  position: absolute;
  right: 1.4rem;
  bottom: 1.4rem;
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  border: 1px dashed color-mix(in srgb, var(--on-brand) 45%, transparent);
  border-radius: 50%;
  color: color-mix(in srgb, var(--on-brand) 78%, transparent);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(-9deg);
}

.farm-copy h2 {
  margin-bottom: 1.1rem;
  font-size: clamp(1.9rem, 4vw, 2.75rem);
}

.farm-copy p {
  color: var(--muted);
}

.farm-copy .farm-lede {
  margin-bottom: 0.8rem;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 500;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem 1.4rem;
  margin: 1.9rem 0;
  padding: 0;
}

.stats div {
  padding-left: 1rem;
  border-left: 2px solid var(--accent);
}

.stats dt {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stats dd {
  margin: 0.1rem 0 0;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 650;
  line-height: 1.1;
}

.checks {
  display: grid;
  gap: 0.55rem;
}

.checks li {
  padding-left: 1.9rem;
  color: var(--muted);
  font-size: 0.92rem;
  position: relative;
}

.checks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.2rem;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: 0.68rem;
  font-weight: 800;
}

/* ==========================================================================
   Visites
   ========================================================================== */

.visit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1rem;
}

.visit {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1.6rem;
  border: var(--card-border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.visit-tag {
  align-self: flex-start;
  padding: 0.24rem 0.6rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--ink);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.visit h3 {
  font-size: 1.42rem;
}

.visit-when {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.8rem;
  padding-block: 0.65rem;
  border-block: 1px solid var(--line);
  font-size: 0.84rem;
}

.visit-when time {
  font-weight: 650;
}

.visit-when span {
  color: var(--muted);
  white-space: nowrap;
}

.visit > p:not(.visit-tag):not(.visit-when) {
  color: var(--muted);
  font-size: 0.9rem;
}

.visit-list {
  display: grid;
  gap: 0.3rem;
  margin-top: auto;
  padding-top: 0.3rem;
}

.visit-list li {
  color: var(--muted);
  font-size: 0.83rem;
  padding-left: 1rem;
  position: relative;
}

.visit-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* ==========================================================================
   Témoignages
   ========================================================================== */

.section-quotes {
  background: var(--bg-soft);
  border-block: 1px solid var(--line);
}

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

.quote {
  position: relative;
  margin: 0;
  padding: 1.7rem 1.5rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.quote::before {
  content: "“";
  position: absolute;
  top: 0.35rem;
  right: 1rem;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 4.2rem;
  line-height: 1;
  opacity: 0.35;
}

.quote blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.06rem;
  line-height: 1.5;
}

.quote figcaption {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.35rem;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

.quote figcaption strong {
  color: var(--ink);
  font-size: 0.86rem;
}

.avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.contact-copy h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.9rem, 4vw, 2.75rem);
}

.contact-copy p {
  color: var(--muted);
}

.contact-note {
  margin-top: 1rem;
  padding-left: 0.95rem;
  border-left: 3px solid var(--accent);
  font-size: 0.9rem;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.8rem;
}

.contact-card {
  padding: clamp(1.6rem, 3vw, 2.2rem);
  border: var(--card-border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.contact-card h3 {
  margin-bottom: 0.7rem;
  font-size: 1.3rem;
}

.contact-card address {
  color: var(--muted);
  font-style: normal;
  font-size: 0.92rem;
}

.contact-details {
  margin: 1.3rem 0 0;
}

.contact-details div {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1rem;
  padding-block: 0.8rem;
  border-top: 1px solid var(--line);
}

.contact-details dt {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-details dd {
  margin: 0;
  font-size: 0.9rem;
}

.contact-details a {
  text-decoration-color: color-mix(in srgb, var(--brand) 45%, transparent);
}

.contact-details a:hover {
  color: var(--brand);
}

.contact-small {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.76rem;
}

/* ==========================================================================
   Pied de page
   ========================================================================== */

.site-footer {
  padding-block: 3rem 2rem;
  background: var(--footer-bg);
  color: var(--footer-fg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}

.footer-name {
  margin-bottom: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 650;
}

.footer-brand p {
  max-width: 26rem;
  color: color-mix(in srgb, var(--footer-fg) 76%, transparent);
  font-size: 0.88rem;
}

.footer-note {
  margin-top: 0.7rem;
  font-size: 0.72rem !important;
  opacity: 0.62;
}

.footer-nav {
  display: grid;
  align-content: start;
  gap: 0.4rem;
}

.footer-nav a,
.footer-legal a {
  color: color-mix(in srgb, var(--footer-fg) 80%, transparent);
  font-size: 0.86rem;
  text-decoration: none;
}

.footer-nav a:hover,
.footer-legal a:hover {
  color: var(--footer-fg);
  text-decoration: underline;
}

.footer-legal {
  display: grid;
  align-content: start;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: color-mix(in srgb, var(--footer-fg) 65%, transparent);
}

.footer-legal a {
  text-decoration: underline;
}

.footer-small {
  max-width: 18rem;
  font-size: 0.7rem;
  opacity: 0.6;
}

/* ==========================================================================
   Fenêtre de géolocalisation
   ========================================================================== */

.geo-dialog {
  width: min(540px, calc(100vw - 2rem));
  max-width: 540px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
}

.geo-dialog::backdrop {
  background: rgb(20 18 12 / 0.55);
  backdrop-filter: blur(4px);
}

.geo-dialog[open] {
  animation: dialog-in 240ms var(--ease);
}

@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.geo-dialog-card {
  position: relative;
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
  padding: clamp(1.5rem, 4vw, 2.3rem);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  background: var(--surface);
  box-shadow: 0 44px 90px -34px rgb(0 0 0 / 0.5);
}

.dialog-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.dialog-close:hover {
  background: var(--bg-soft);
  color: var(--ink);
}

.geo-dialog-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-strong);
}

.geo-dialog-icon svg {
  width: 30px;
  height: 30px;
}

.geo-dialog h2 {
  padding-right: 1.5rem;
  font-size: clamp(1.5rem, 3.5vw, 1.85rem);
}

.geo-dialog p {
  margin-top: 0.8rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.geo-reasons {
  display: grid;
  gap: 0.45rem;
  margin-top: 1.1rem;
}

.geo-reasons li {
  position: relative;
  padding-left: 1.25rem;
  color: var(--muted);
  font-size: 0.84rem;
}

.geo-reasons li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.geo-fineprint {
  margin-top: 1.1rem !important;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  font-size: 0.74rem !important;
}

.geo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.3rem;
}

.geo-status {
  min-height: 1.4rem;
  margin-top: 0.7rem !important;
  font-size: 0.82rem !important;
}

.geo-status[data-kind="success"] {
  color: var(--brand);
  font-weight: 600;
}

.geo-status[data-kind="error"] {
  color: #a23524;
}

/* ==========================================================================
   Toast
   ========================================================================== */

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.4rem;
  z-index: 100;
  width: max-content;
  max-width: min(92vw, 30rem);
  padding: 0.8rem 1.2rem;
  border-radius: var(--btn-radius);
  background: var(--ink);
  color: var(--footer-fg);
  font-size: 0.86rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  transform: translate(-50%, 0);
  animation: toast-in 220ms var(--ease);
}

.toast[hidden] {
  display: none;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translate(-50%, 12px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* ==========================================================================
   Apparition au défilement
   ========================================================================== */

.reveal-enabled .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 560ms var(--ease),
    transform 560ms var(--ease);
}

.reveal-enabled .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-enabled .product-grid .reveal:nth-child(2),
.reveal-enabled .visit-grid .reveal:nth-child(2),
.reveal-enabled .quote-grid .reveal:nth-child(2) {
  transition-delay: 70ms;
}

.reveal-enabled .product-grid .reveal:nth-child(3),
.reveal-enabled .visit-grid .reveal:nth-child(3),
.reveal-enabled .quote-grid .reveal:nth-child(3) {
  transition-delay: 140ms;
}

.reveal-enabled .product-grid .reveal:nth-child(4),
.reveal-enabled .quote-grid .reveal:nth-child(4) {
  transition-delay: 210ms;
}

.reveal-enabled .product-grid .reveal:nth-child(5) {
  transition-delay: 280ms;
}

.reveal-enabled .product-grid .reveal:nth-child(6) {
  transition-delay: 350ms;
}

/* ==========================================================================
   Variations de thème
   ========================================================================== */

/* Moderne : plus aéré, éditorial, cartes franches. */
html[data-theme="moderne"] .section-head {
  max-width: 52rem;
}

html[data-theme="moderne"] .section-head .eyebrow {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: var(--brand-soft);
}

html[data-theme="moderne"] .hero h1 em {
  font-style: normal;
  background-image: none;
}

html[data-theme="moderne"] .art-frame {
  transform: rotate(0deg);
  border-radius: 28px;
  border-color: transparent;
  box-shadow: 0 30px 60px -40px rgb(11 81 51 / 0.6);
}

html[data-theme="moderne"] .hero-note {
  border-radius: 14px;
  transform: rotate(0deg);
}

html[data-theme="moderne"] .geo-band-inner {
  border: 0;
  background: linear-gradient(115deg, var(--brand), var(--brand-strong));
  color: var(--on-brand);
}

html[data-theme="moderne"] .geo-band h2 {
  color: var(--on-brand);
}

html[data-theme="moderne"] .geo-band p {
  color: color-mix(in srgb, var(--on-brand) 78%, transparent);
}

html[data-theme="moderne"] .geo-band-icon {
  background: color-mix(in srgb, var(--on-brand) 16%, transparent);
  color: var(--on-brand);
}

html[data-theme="moderne"] .geo-band .btn-soft {
  background: var(--on-brand);
  color: var(--brand-strong);
}

html[data-theme="moderne"] .product,
html[data-theme="moderne"] .visit,
html[data-theme="moderne"] .quote {
  box-shadow: 0 18px 40px -32px rgb(11 81 51 / 0.5);
}

@media (min-width: 900px) {
  html[data-theme="moderne"] .section-head {
    margin-inline: 0;
    text-align: left;
  }

  html[data-theme="moderne"] .section-head::after {
    content: "";
    display: block;
    width: 64px;
    height: 4px;
    margin-top: 1.1rem;
    border-radius: 2px;
    background: var(--accent);
  }
}

/* Marché : affiche, aplats, bordures franches. */
html[data-theme="marche"] h2 {
  text-transform: uppercase;
}

html[data-theme="marche"] .eyebrow {
  padding: 0.3rem 0.65rem;
  border: 1.5px solid var(--ink);
  background: var(--accent);
  color: var(--ink);
  letter-spacing: 0.1em;
}

html[data-theme="marche"] .eyebrow-dot {
  display: none;
}

html[data-theme="marche"] .hero h1 {
  font-weight: 900;
}

html[data-theme="marche"] .hero h1 em {
  color: var(--brand);
  font-style: normal;
  background-image: none;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 0.09em;
  text-underline-offset: 0.08em;
}

html[data-theme="marche"] .art-frame {
  border: 2px solid var(--ink);
  border-radius: 4px;
  transform: rotate(-1.6deg);
  box-shadow: 9px 9px 0 var(--ink);
}

html[data-theme="marche"] .farm-art {
  border-radius: 2px;
}

html[data-theme="marche"] .hero-note {
  border: 2px solid var(--ink);
  border-radius: 2px;
  background: var(--accent);
  color: var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
}

html[data-theme="marche"] .hero-note-label {
  color: var(--brand-strong);
}

html[data-theme="marche"] .hero-note-sub {
  color: color-mix(in srgb, var(--ink) 72%, transparent);
}

html[data-theme="marche"] .btn {
  border-radius: 4px;
  font-weight: 750;
}

html[data-theme="marche"] .btn-primary {
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}

html[data-theme="marche"] .btn-primary:hover {
  transform: translate(-1px, -1px);
  box-shadow: 6px 6px 0 var(--ink);
}

html[data-theme="marche"] .btn-ghost {
  border: 2px solid var(--ink);
  background: var(--surface);
}

html[data-theme="marche"] .geo-band-inner {
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: var(--accent-soft);
  box-shadow: 5px 5px 0 var(--ink);
}

html[data-theme="marche"] .geo-band-icon {
  border-radius: 4px;
  background: var(--accent);
  border: 1.5px solid var(--ink);
  color: var(--ink);
}

html[data-theme="marche"] .geo-band .btn-soft {
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: var(--surface);
}

html[data-theme="marche"] .product,
html[data-theme="marche"] .visit,
html[data-theme="marche"] .quote,
html[data-theme="marche"] .contact-card {
  border: 2px solid var(--ink);
  border-radius: 4px;
  box-shadow: 5px 5px 0 var(--ink);
}

html[data-theme="marche"] .product:hover {
  transform: translate(-2px, -2px);
  border-color: var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
}

html[data-theme="marche"] .product-icon {
  border-radius: 4px;
  background: var(--accent-soft);
  border: 1.5px solid var(--ink);
  color: var(--ink);
}

html[data-theme="marche"] .tag,
html[data-theme="marche"] .visit-tag {
  border-radius: 2px;
  border: 1.5px solid var(--ink);
  background: var(--accent);
  color: var(--ink);
}

html[data-theme="marche"] .visit {
  border-radius: 4px;
}

html[data-theme="marche"] .story-card {
  border: 2px solid var(--ink);
  border-radius: 4px;
  box-shadow: 7px 7px 0 var(--ink);
}

html[data-theme="marche"] .story-seal {
  border-color: color-mix(in srgb, var(--on-brand) 55%, transparent);
}

html[data-theme="marche"] .stats div {
  border-left: 4px solid var(--accent);
}

html[data-theme="marche"] .avatar {
  border-radius: 4px;
  border: 1.5px solid var(--ink);
  background: var(--accent-soft);
  color: var(--ink);
}

html[data-theme="marche"] .geo-dialog-card {
  border: 2px solid var(--ink);
  border-radius: 6px;
  box-shadow: 8px 8px 0 rgb(43 26 16 / 0.85);
}

html[data-theme="marche"] .toast {
  border-radius: 4px;
  border: 2px solid var(--accent);
}

/* ==========================================================================
   Page 404
   ========================================================================== */

.error-page {
  max-width: 44rem;
  margin-inline: auto;
  padding-block: clamp(1.5rem, 5vw, 3rem);
  text-align: center;
}

.error-code {
  margin-bottom: 0.5rem;
  color: var(--brand-soft);
  font-family: var(--font-display);
  font-size: clamp(6rem, 20vw, 10rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.8;
}

.error-page h1 {
  font-size: clamp(2rem, 5vw, 3rem);
}

.error-lede {
  max-width: 32rem;
  margin: 1rem auto 0;
  color: var(--muted);
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.site-footer .wrap > .footer-small {
  margin-top: 0.35rem;
}

/* ==========================================================================
   Accessibilité & responsive
   ========================================================================== */

@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;
  }

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

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

  .hero-copy {
    max-width: 42rem;
  }

  .hero-visual {
    max-width: 560px;
    width: 100%;
    margin-inline: auto;
    padding-left: 0;
  }

  .hero-note {
    left: 0.6rem;
  }

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

  .story-card {
    position: static;
  }

  .contact-card {
    max-width: 34rem;
  }
}

@media (max-width: 820px) {
  .geo-band-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .geo-band-copy {
    align-items: flex-start;
  }

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

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
    padding-block: 0.7rem;
  }

  .main-nav {
    width: 100%;
    flex-wrap: wrap;
    gap: 0.4rem 1.1rem;
    padding-bottom: 0.1rem;
  }

  .main-nav a {
    font-size: 0.84rem;
  }

  .main-nav .nav-cta {
    padding: 0.35rem 0.7rem;
  }

  .hero-note {
    position: static;
    margin: -0.4rem 0.8rem 0;
    transform: none;
  }

  .hero-visual {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  html[data-theme="marche"] .hero-note {
    margin-top: 0.2rem;
  }

  .story-seal {
    width: 88px;
    height: 88px;
    font-size: 0.56rem;
  }
}

@media (max-width: 560px) {
  /* Le bandeau de géolocalisation et la fenêtre de consentement restent
     accessibles juste en dessous : on allège la navigation. */
  .main-nav .nav-cta {
    display: none;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 10vw, 3rem);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .geo-band-inner {
    padding: 1rem;
  }

  .geo-band-icon {
    width: 42px;
    height: 42px;
  }

  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem;
  }

  .stats dd {
    font-size: 1.45rem;
  }

  .contact-details div {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }

  .quote::before {
    font-size: 3.4rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }

  .geo-actions {
    flex-direction: column;
  }

  .geo-actions .btn {
    width: 100%;
  }

  .story-seal {
    display: none;
  }
}

@media (max-width: 390px) {
  .brand-name {
    font-size: 0.92rem;
  }

  .brand-sub {
    font-size: 0.56rem;
  }

  .product-foot {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.4rem;
  }
}
