/* Le Potager de Saint-Suliac — site de démonstration La Balise.
   Aucune règle inline dans la page : la CSP du domaine (style-src 'self') les bloquerait. */

@font-face { font-family: "Young Serif"; src: url("/exemples/maraicher/fonts/young-serif.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("/exemples/maraicher/fonts/manrope.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }

:root {
  --bg: #F4F1E6; --bg-2: #E8E4D2; --card: #FFFEF9; --ink: #1F2A1F; --muted: #4F5E4D;
  --line: rgba(31, 42, 31, .13); --line-2: rgba(31, 42, 31, .3);
  --deep: #1F4D33; --deep-ink: #EEF3E8; --deep-muted: #B9CFBB;
  --acc: #B8451F; --acc-2: #9F3A19; --acc-ink: #FFFFFF; --acc-text: #A63D1A;
  --err: #B3261E; --err-light: #FFB4AB;
  --radius: 18px; --shadow: 0 1px 0 rgba(31, 42, 31, .05), 0 24px 44px -30px rgba(31, 42, 31, .5);
  --head: "Young Serif", Georgia, serif; --head-w: 400; --font: "Manrope", system-ui, sans-serif;
}
.dark { --acc: #F2B84B; --acc-2: #E6A93B; --acc-ink: #1F2A1F; --acc-text: #F2B84B; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--font); }
main, .foot { overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--head); font-weight: var(--head-w, 400); line-height: 1.02; letter-spacing: -0.01em; }
h1 em, h2 em { color: var(--acc-text); font-style: italic; }
.dark h1 em, .dark h2 em { color: var(--acc); }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
:focus-visible { outline: 3px solid var(--acc-text); outline-offset: 3px; border-radius: 6px; }
.dark :focus-visible { outline-color: var(--acc); }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 8px; }

/* Bandeau démo */
.demo-bar { position: relative; z-index: 60; display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 4px 16px; padding: 8px 16px; background: #14181b; color: #c9d1d6; font: 400 13px/1.4 system-ui, -apple-system, "Segoe UI", sans-serif; text-align: center; }
.demo-bar strong { color: #fff; font-weight: 700; }
.demo-bar a { color: #ffd479; font-weight: 700; text-decoration: none; }
.demo-bar a:hover { text-decoration: underline; }
.demo-sim { color: #ffd479; font-weight: 700; }

/* En-tête */
.top { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.top.is-scrolled { border-color: var(--line); box-shadow: 0 10px 24px -22px rgba(0,0,0,.5); }
.top-inner { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-name { font: var(--head-w, 400) 25px/1 var(--head); letter-spacing: -0.01em; }
.nav { display: flex; gap: 22px; font-size: 15px; font-weight: 600; }
.nav a { text-decoration: none; padding: 6px 2px; border-bottom: 2px solid transparent; }
.nav a:hover { border-color: var(--acc); }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 999px; border: 2px solid transparent; font: 700 16px/1.2 var(--font); text-decoration: none; cursor: pointer; transition: transform .15s, background-color .15s, border-color .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-main { background: var(--acc); color: var(--acc-ink); }
.btn-main:hover { background: var(--acc-2); }
.btn-line { border-color: currentColor; background: transparent; color: inherit; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.top-cta { min-height: 42px; padding: 8px 18px; font-size: 15px; }

/* Typo de section */
.kicker { font: 700 13px/1.2 var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--acc-text); margin-bottom: 14px; }
.dark .kicker { color: var(--acc); }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head h2 { font-size: clamp(34px, 5vw, 58px); }
.section-lead { margin-top: 16px; font-size: 18px; color: var(--muted); }
.dark { background: var(--deep); color: var(--deep-ink); }
.dark .section-lead { color: var(--deep-muted); }
.alt { background: var(--bg-2); }
.fine { font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.dark .fine { color: var(--deep-muted); }

/* Hero */
.hero { padding: clamp(40px, 6vw, 84px) 0 clamp(48px, 7vw, 88px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(42px, 6.6vw, 82px); }
.hero-lead { margin-top: 20px; font-size: 19px; max-width: 540px; color: var(--muted); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-facts { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14.5px; color: var(--muted); }
.hero-facts strong { color: var(--ink); }

/* Cartes, champs, pastilles */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--card); color: var(--ink); font: 600 15px/1.2 var(--font); cursor: pointer; transition: background-color .15s, border-color .15s; }
.chip:hover { border-color: var(--acc-text); }
.chip.is-on, .chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chip:disabled { opacity: .45; cursor: not-allowed; text-decoration: line-through; }
.field { display: grid; gap: 6px; margin-top: 12px; font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--line-2); border-radius: 12px; background: #fff; color: #1a1a1a; font: 400 16px/1.4 var(--font); }
.field textarea { min-height: 84px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--acc-text); outline-offset: 1px; }
.form-error { min-height: 1.3em; margin-top: 8px; color: var(--err); font-size: 14px; font-weight: 600; }
.dark .form-error { color: var(--err-light); }
/* Cartes claires posées sur un fond sombre : on reprend les couleurs du fond clair */
.dark .basket .fine, .dark .card .fine, .dark .item .fine { color: var(--muted); }
.dark .basket .form-error, .dark .card .form-error { color: var(--err); }
.dark .basket .basket-label { color: var(--muted); }
.dark .basket .btn-line, .dark .card .btn-line, .dark .item .btn-line { color: var(--ink); }
.dark .basket :focus-visible, .dark .card :focus-visible { outline-color: var(--ink); }
.stepper { display: inline-flex; align-items: center; gap: 4px; border: 1.5px solid var(--line-2); border-radius: 999px; padding: 3px; background: var(--card); color: var(--ink); }
.stepper button { width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: inherit; font: 700 20px/1 var(--font); cursor: pointer; }
.stepper button:hover { background: var(--bg-2); }
.stepper output { min-width: 34px; text-align: center; font-weight: 700; }
.step-label { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font: 700 15px/1.2 var(--font); }
.step-label span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--bg); font-size: 13px; }
.dark .step-label span { background: var(--acc); color: var(--acc-ink); }
.step { margin-bottom: 26px; }

/* Panier */
.book-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(20px, 3vw, 40px); align-items: start; }
.basket { position: sticky; top: 92px; padding: 24px; border-radius: var(--radius); background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.basket-label { font: 700 12px/1.2 var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--acc-text); }
.basket-lines { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; font-size: 15px; }
.basket-lines li { display: flex; justify-content: space-between; gap: 12px; }
.basket-lines li.sub { color: var(--muted); font-size: 14px; }
.basket-total { display: flex; justify-content: space-between; align-items: baseline; margin: 16px 0 4px; padding-top: 14px; border-top: 1.5px solid var(--line-2); font: 700 15px/1.2 var(--font); }
.basket-total strong { font: var(--head-w, 400) 34px/1 var(--head); }
.basket form { margin-top: 12px; }
.done { text-align: center; padding: 8px 0 0; }
.done h3 { font-size: 30px; margin: 12px 0 8px; }
.done-mark { width: 64px; height: 64px; margin: 0 auto; border-radius: 50%; background: var(--acc); color: var(--acc-ink); display: grid; place-items: center; }
.done-mark svg { width: 32px; height: 32px; }

/* FAQ */
.faq { margin: 0; display: grid; gap: 0; }
.faq > div { padding: 18px 0; border-top: 1px solid var(--line-2); }
.faq dt { font-weight: 700; }
.faq dd { margin: 6px 0 0; color: var(--muted); }

/* Pied de page */
.foot { padding: 52px 0 96px; background: var(--ink); color: #d7dcd8; }
.foot-grid { display: grid; grid-template-columns: 1.2fr 1fr 1.2fr; gap: 32px; font-size: 15px; }
.foot .brand-name { color: #fff; font-size: 28px; }
.foot a { color: #fff; }
.foot-small { margin-top: 6px; font-size: 13px; opacity: .75; }
.foot-credit a { text-decoration: none; font-weight: 700; color: #ffd479; }
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--line); display: none; }

@media (max-width: 960px) {
  .hero-grid, .book-grid { grid-template-columns: 1fr; }
  .basket { position: static; }
  .nav { display: none; }
  .foot-grid { grid-template-columns: 1fr; }
  .sticky-cta { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}

h1, h2, h3 { line-height: 1.08; letter-spacing: -0.01em; }
h1 em, h2 em { font-style: normal; }
.hero h1 { font-size: clamp(38px, 5.6vw, 68px); }
.section-head h2 { font-size: clamp(32px, 4.6vw, 52px); }
.hero-photo { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--bg-2); }
.week { margin: -34px 22px 0; position: relative; padding: 18px 20px; }
.week-title { font: 700 14px/1.3 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--acc-text); }
.week-sub { display: block; letter-spacing: 0; text-transform: none; font-weight: 400; color: var(--muted); font-size: 13.5px; }
.week-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px 18px; margin: 12px 0; }
.week-grid dt { font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.week-grid dd { margin: 2px 0 0; font: 400 19px/1.2 var(--head); }
.panier-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(20px, 4vw, 56px); align-items: start; }
.chips + .chips { margin-top: 10px; }
.contents { list-style: none; margin: 18px 0 8px; padding: 0; display: grid; gap: 0; }
.contents li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line-2); font-size: 17px; }
.contents li:last-child { border-bottom: 1px solid var(--line-2); }
.contents .q { color: var(--muted); white-space: nowrap; }
.panier-photo { margin: 0; }
.panier-photo img, .serre-photo { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--bg-2); }
.dark .chip { background: transparent; color: var(--deep-ink); border-color: rgba(238, 243, 232, .35); }
.dark .chip:hover { border-color: var(--acc); }
.dark .chip[aria-pressed="true"] { background: var(--acc); border-color: var(--acc); color: var(--acc-ink); }
.dark .step-note { margin: 0 0 10px; color: var(--deep-muted); }
.sizes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.size { text-align: left; padding: 14px 16px; border-radius: 14px; border: 1.5px solid rgba(238, 243, 232, .3); background: transparent; color: var(--deep-ink); font: 400 15px/1.35 var(--font); cursor: pointer; }
.size strong { display: block; font: 400 22px/1.1 var(--head); }
.size em { display: block; margin-top: 6px; font: 700 18px/1 var(--font); font-style: normal; color: var(--acc); }
.size[aria-pressed="true"] { background: var(--acc); border-color: var(--acc); color: var(--acc-ink); }
.size[aria-pressed="true"] em { color: var(--acc-ink); }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.timeline li label { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 12px; border-radius: 12px; border: 1.5px solid rgba(238, 243, 232, .22); cursor: pointer; font-size: 14.5px; }
.timeline li label:hover { border-color: var(--acc); }
.timeline input { width: 20px; height: 20px; accent-color: var(--acc); flex: none; }
.timeline li.is-paused label { background: rgba(238, 243, 232, .08); text-decoration: line-through; color: var(--deep-muted); }
.timeline li.is-closed label { opacity: .6; cursor: not-allowed; }
.timeline small { display: block; color: var(--deep-muted); font-size: 12.5px; text-decoration: none; }
.basket-lines button { margin-left: 6px; }
.points { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.point { padding: 22px; display: grid; gap: 6px; align-content: start; }
.point h3 { font-size: 24px; }
.point .when { font-weight: 700; color: var(--acc-text); }
.point .next { font-size: 14.5px; color: var(--muted); }
/* Pas d'overflow ici : il casserait le position: sticky de l'en-tête des mois */
.cal-wrap { position: relative; margin-bottom: 24px; }
.cal table { border-collapse: separate; border-spacing: 3px; width: 100%; font-size: 14px; }
/* En-tête des mois : reste visible sous le header du site pendant le défilement du tableau */
.cal th { position: sticky; top: 68px; z-index: 5; background: var(--bg-2); font-weight: 700; font-size: 12.5px; color: var(--muted); padding: 6px 0; }
.cal th.cur { background: linear-gradient(rgba(184, 69, 31, .10), rgba(184, 69, 31, .10)), var(--bg-2); }
.cal td.cur-col { background: rgba(184, 69, 31, .10); }
@media (max-width: 719px) {
  .cal table { font-size: 12.5px; border-spacing: 2px; }
  .cal td.name { padding-right: 6px; }
}
.cal th.cur { color: var(--acc-text); border-radius: 6px 6px 0 0; }
.cal td.name { text-align: left; padding: 6px 10px 6px 0; font-weight: 600; }
@media (min-width: 720px) { .cal td.name { white-space: nowrap; } }
.cal td.m { height: 26px; border-radius: 6px; background: transparent; }
.cal td.on { background: #6FA464; }
.cal tr.now td.name { color: var(--acc-text); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: stretch; }
.pad { padding: 26px; }
.pad h3 { font-size: 26px; margin-bottom: 10px; }
@media (max-width: 960px) { .panier-grid, .two { grid-template-columns: 1fr; } .week { margin-inline: 0; margin-top: 14px; } .sizes { grid-template-columns: 1fr; } }
