/* Site vitrine Champ'Table — palette « Marché du matin », alignée sur
   frontend/src/styles/_tokens.scss. Polices auto-hébergées : aucun appel à
   un service tiers, donc rien à déclarer côté RGPD. */

@font-face {
  font-family: 'Fraunces';
  src: url('fonts/fraunces-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('fonts/fraunces-latin-wght-italic.woff2') format('woff2');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('fonts/inter-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Caveat';
  src: url('fonts/caveat-latin-700-normal.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

:root {
  --vert: #2f5233;
  --vert-light: #547a58;
  --terre: #c1552c;
  --terre-dark: #9c4322;
  --or: #d9a441;
  --page: #f6f1e4;
  --kraft: #efe8d8;
  --kraft-dark: #ddd4bd;
  --white: #ffffff;
  --text: #3d2e22;
  --muted: #5c5c57;
  --slate: #2b3330;
  --font-title: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-chalk: 'Caveat', 'Segoe Script', cursive;
  --radius: 14px;
  --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--font-body);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--terre-dark); text-underline-offset: 3px; }
a:hover { color: var(--terre); }
:focus-visible { outline: 3px solid var(--vert); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--font-title); font-weight: 600; line-height: 1.15; margin: 0 0 0.5em; color: var(--vert); }
h1 { font-size: clamp(2.1rem, 5.5vw, 3.6rem); letter-spacing: -0.01em; }
h1 em { font-style: italic; color: var(--terre); font-weight: 500; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 48rem) { :root { --gutter: 32px; } }

.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

.kicker { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--terre-dark); margin-bottom: 0.75rem; }
.lead { font-size: 1.1875rem; color: var(--text); max-width: 36rem; }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 1.4rem; border-radius: 999px;
  background: var(--terre); color: var(--white); font-weight: 600; text-decoration: none;
  border: 2px solid var(--terre); transition: background 150ms ease, color 150ms ease;
}
.btn:hover { background: var(--terre-dark); border-color: var(--terre-dark); color: var(--white); }
.btn--ghost { background: transparent; color: var(--vert); border-color: var(--vert); }
.btn--ghost:hover { background: var(--vert); border-color: var(--vert); color: var(--kraft); }
.btn--small { min-height: 40px; padding: 0 1rem; font-size: 0.9375rem; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.5rem 0; }
.cta--center { justify-content: center; }

/* En-tête */
.top { position: sticky; top: 0; z-index: 5; background: rgba(246, 241, 228, 0.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--kraft-dark); }
.top__inner { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--vert); font: 600 1.25rem var(--font-title); }
.brand img { width: 44px; height: 44px; }
.nav { display: none; gap: 24px; margin-left: auto; }
.nav a { color: var(--text); text-decoration: none; font-weight: 500; font-size: 0.9375rem; }
.nav a:hover { color: var(--terre-dark); }
.top .btn { margin-left: auto; }
@media (min-width: 56rem) {
  .nav { display: flex; }
  .top .btn { margin-left: 8px; }
}
@media (max-width: 26rem) { .brand span { display: none; } }

/* Accroche */
.hero { padding: 48px 0 56px; }
.hero__grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 56rem) { .hero { padding: 80px 0 88px; } .hero__grid { grid-template-columns: 1.25fr 1fr; gap: 56px; } }
.ticks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-size: 0.9375rem; }
.ticks li::before { content: '✓'; color: var(--vert-light); font-weight: 700; margin-right: 6px; }

/* Ardoise de marché */
.slate {
  position: relative; margin: 0; padding: 28px 28px 24px; border-radius: 10px;
  background: var(--slate); color: #f3efe3; font-family: var(--font-chalk);
  border: 10px solid #8a6a45; box-shadow: 0 18px 40px rgba(61, 46, 34, 0.25);
  transform: rotate(-1.5deg); max-width: 26rem; justify-self: center; width: 100%;
}
.slate__title { font-size: 2rem; color: var(--or); margin-bottom: 12px; }
.slate__list { list-style: none; padding: 0; margin: 0 0 12px; font-size: 1.5rem; }
.slate__list li { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px dashed rgba(243, 239, 227, 0.25); padding: 4px 0; }
.slate__list b { font-weight: 700; color: #f3efe3; opacity: 0.8; }
.slate__list .slate__deal { color: var(--or); opacity: 1; }
.slate__foot { font-size: 1.25rem; margin: 0; opacity: 0.85; }
.slate__note { position: absolute; right: 14px; top: 10px; font: 500 0.6875rem var(--font-body); letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.5; }

/* Sections */
.section { padding: 64px 0; }
@media (min-width: 56rem) { .section { padding: 96px 0; } }
.section--kraft { background: var(--kraft); }
.section--green { background: var(--vert); color: var(--kraft); }
.section--green h2, .section--green h3 { color: var(--kraft); }
.section--green h3 { color: var(--or); }

.steps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 20px; }
@media (min-width: 48rem) { .steps { grid-template-columns: repeat(3, 1fr); gap: 28px; } }
.step { background: var(--white); border: 1px solid var(--kraft-dark); border-radius: var(--radius); padding: 28px 24px; }
.step__n { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--or); color: var(--text); font: 700 1.25rem var(--font-title); margin-bottom: 14px; }
.step p { margin: 0; color: var(--muted); }

/* Vidéo */
.video { display: grid; gap: 32px; align-items: center; }
@media (min-width: 56rem) { .video { grid-template-columns: 1fr 1.6fr; gap: 56px; } }
.video__frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--vert); box-shadow: 0 14px 34px rgba(47, 82, 51, 0.25); }
.video__frame video { width: 100%; height: 100%; display: block; background: #000; }
.video__placeholder { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; text-align: center; color: var(--kraft); padding: 24px; }
.video__placeholder img { width: 96px; height: 96px; background: var(--kraft); border-radius: 50%; padding: 6px; }
.video__placeholder p { margin: 0; }

/* Producteurs */
.figures { display: grid; gap: 16px; margin: 32px 0 40px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 56rem) { .figures { grid-template-columns: repeat(4, 1fr); } }
.figure { background: var(--white); border-radius: var(--radius); padding: 22px 20px; border-top: 5px solid var(--terre); }
.figure b { display: block; font: 600 clamp(1.6rem, 4vw, 2.2rem) var(--font-title); color: var(--vert); margin-bottom: 6px; }
.figure span { font-size: 0.9375rem; color: var(--muted); line-height: 1.45; }
.cols { display: grid; gap: 0 40px; }
@media (min-width: 48rem) { .cols { grid-template-columns: 1fr 1fr; } }
.list { list-style: none; padding: 0; margin: 0; }
.list li { padding: 14px 0 14px 30px; position: relative; border-bottom: 1px solid var(--kraft-dark); }
.list li::before { content: ''; position: absolute; left: 4px; top: 22px; width: 12px; height: 12px; border-radius: 50%; background: var(--vert-light); }
.list strong { color: var(--vert); }

/* Pourquoi */
.why__grid { display: grid; gap: 32px; margin-top: 24px; }
@media (min-width: 48rem) { .why__grid { grid-template-columns: repeat(3, 1fr); } }
.why p { margin: 0; color: #e8e1cf; }

/* FAQ */
.faq { max-width: 50rem; }
.faq details { background: var(--white); border: 1px solid var(--kraft-dark); border-radius: var(--radius); margin-bottom: 12px; }
.faq summary { cursor: pointer; padding: 18px 22px; font-weight: 600; color: var(--vert); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font: 600 1.4rem/1 var(--font-title); color: var(--terre); }
.faq details[open] summary::after { content: '−'; }
.faq details p { padding: 0 22px 18px; margin: 0; color: var(--muted); }

.closing { text-align: center; }

/* Pied de page */
.foot { background: var(--text); color: #e9e2d2; padding: 48px 0 40px; font-size: 0.9375rem; }
.foot a { color: #f3d9a0; }
.foot__grid { display: grid; gap: 32px; }
@media (min-width: 48rem) { .foot__grid { grid-template-columns: 1fr auto; align-items: center; } }
.foot .foot__links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot__links li { margin: 0; }
.foot__h { font: 600 1rem var(--font-body); color: var(--white); margin-bottom: 12px; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin-bottom: 6px; }
.foot p { margin-bottom: 0.6em; }
.brand--foot { color: var(--white); margin-bottom: 10px; }
.brand--foot img { width: 36px; height: 36px; background: var(--kraft); border-radius: 50%; }

/* Page mentions légales */
.legal { max-width: 46rem; padding: 48px var(--gutter) 64px; margin: 0 auto; }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.legal h2 { font-size: 1.25rem; margin-top: 1.8em; }
.legal p { color: var(--text); }

/* Page 404 */
.notfound { min-height: 70vh; display: grid; place-content: center; text-align: center; padding: 48px var(--gutter); }
.notfound img { margin: 0 auto 20px; width: 120px; }

/* En-tête sans menu (pages annexes) : bouton calé à droite */
.top .brand + .btn { margin-left: auto; }
