/* ==========================================================================
   Le carnet – Biocalma · feuille de style principale (mobile-first)
   ========================================================================== */

:root {
  --teal: #13596d;
  --teal-deep: #0c3e4c;
  --teal-50: #e2eded;
  --paper: #f7f2e9;
  --paper-2: #efe6d6;
  --card: #fffcf6;
  --clay: #e3a57e;
  --clay-deep: #b9714b;
  --clay-50: #f8e6d9;
  --sage: #a9b89c;
  --sage-deep: #5f7656;
  --sage-50: #e6ecdf;
  --rose: #e7c6be;
  --rose-deep: #a2675a;
  --rose-50: #f6e7e2;
  --ink: #1f2d30;
  --muted: #56625f;
  --line: #e2d6c2;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --hand: "Caveat", "Segoe Print", "Bradley Hand", cursive;

  --r-xl: 32px;
  --r-lg: 24px;
  --r-md: 16px;
  --r-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(31, 45, 48, .06), 0 4px 14px -6px rgba(31, 45, 48, .14);
  --shadow: 0 1px 2px rgba(31, 45, 48, .06), 0 18px 40px -18px rgba(31, 45, 48, .28);
  --gutter: 16px;
  --maxw: 1200px;
  --header-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (min-width: 640px) { :root { --gutter: 28px; } }
@media (min-width: 1024px) { :root { --gutter: 40px; --header-h: 76px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .38 0 0 0 0 .28 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--teal-deep); }
:focus-visible { outline: 2px solid var(--clay-deep); outline-offset: 3px; border-radius: 4px; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.15; letter-spacing: -.01em; color: var(--teal-deep); margin: 0 0 .5em; }
p { margin: 0 0 1em; }
::selection { background: var(--clay-50); color: var(--teal-deep); }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--teal); color: #fff; padding: 10px 16px; border-radius: 999px; text-decoration: none; }
.skip-link:focus { top: 12px; color: #fff; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { width: 100%; max-width: calc(720px + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-wide { width: 100%; max-width: calc(1100px + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

.kicker {
  display: inline-flex; align-items: center; gap: .55em;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--clay-deep); margin-bottom: .9rem;
}
.kicker::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.hand { font-family: var(--hand); font-weight: 600; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .75em 1.4em;
  border-radius: 999px; border: 1.5px solid var(--teal);
  font-weight: 700; font-size: .98rem; text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), background-color .25s, color .25s, box-shadow .25s;
}
.btn-primary { background: var(--teal); color: var(--paper); box-shadow: 0 10px 24px -12px rgba(19, 89, 109, .7); }
.btn-primary:hover { background: var(--teal-deep); color: var(--paper); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--teal); }
.btn-ghost:hover { background: var(--teal); color: var(--paper); }
.btn-small { min-height: 42px; padding: .5em 1.1em; font-size: .9rem; }
.link-arrow { font-weight: 700; text-decoration: none; display: inline-flex; gap: .4em; align-items: center; }
.link-arrow::after { content: "→"; transition: transform .25s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Tags (rubriques) ---------- */
.tag {
  display: inline-flex; align-items: center; gap: .4em;
  padding: .3em .8em; border-radius: 999px;
  font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  background: var(--teal-50); color: var(--teal);
}
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag-rituels { background: var(--clay-50); color: var(--clay-deep); }
.tag-saveurs { background: var(--sage-50); color: var(--sage-deep); }
.tag-dehors { background: var(--teal-50); color: var(--teal); }
.tag-maison { background: var(--rose-50); color: var(--rose-deep); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 242, 233, .86);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 24px -20px rgba(31, 45, 48, .5); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 16px; }
.brand { display: inline-flex; flex-direction: column; align-items: flex-start; text-decoration: none; line-height: 1; position: relative; }
.brand img { width: 138px; height: auto; }
.brand-sub { font-family: var(--hand); font-size: 1.2rem; font-weight: 600; color: var(--clay-deep); transform: rotate(-3deg); margin: 0 0 -6px 46%; line-height: 1; }
@media (min-width: 1024px) { .brand img { width: 164px; } .brand-sub { font-size: 1.35rem; } }

.menu-toggle {
  position: relative; width: 48px; height: 48px; border-radius: 50%;
  border: 1.5px solid var(--line); background: var(--card); cursor: pointer;
  display: inline-grid; place-items: center; z-index: 60;
}
.menu-toggle span[aria-hidden] { position: absolute; left: 14px; right: 14px; height: 2px; border-radius: 2px; background: var(--teal); transition: transform .3s var(--ease), top .3s var(--ease); }
.menu-toggle span[aria-hidden]:nth-child(1) { top: 19px; }
.menu-toggle span[aria-hidden]:nth-child(2) { top: 27px; }
.menu-toggle[aria-expanded="true"] span[aria-hidden]:nth-child(1) { top: 23px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span[aria-hidden]:nth-child(2) { top: 23px; transform: rotate(-45deg); }

.main-nav {
  position: fixed; inset: var(--header-h) 0 auto 0;
  max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 12px var(--gutter) 28px;
  transform: translateY(-8px); opacity: 0; visibility: hidden;
  transition: opacity .25s, transform .3s var(--ease), visibility .25s;
  box-shadow: 0 30px 50px -30px rgba(31, 45, 48, .45);
}
.main-nav.is-open { transform: none; opacity: 1; visibility: visible; }
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav li + li { border-top: 1px dashed var(--line); }
.main-nav a { display: flex; justify-content: space-between; align-items: center; padding: 14px 2px; font-family: var(--serif); font-size: 1.45rem; color: var(--teal-deep); text-decoration: none; }
.main-nav a::after { content: "→"; font-family: var(--sans); font-size: 1rem; color: var(--clay-deep); }
.nav-note { margin: 18px 0 0; font-family: var(--hand); font-size: 1.35rem; color: var(--clay-deep); transform: rotate(-2deg); }

@media (min-width: 1024px) {
  .menu-toggle { display: none; }
  .main-nav { position: static; transform: none; opacity: 1; visibility: visible; background: none; border: 0; box-shadow: none; padding: 0; max-height: none; overflow: visible; }
  .main-nav ul { display: flex; gap: 4px; align-items: center; }
  .main-nav li + li { border: 0; }
  .main-nav a { font-family: var(--sans); font-size: .95rem; font-weight: 600; padding: 10px 14px; border-radius: 999px; color: var(--ink); transition: background-color .2s, color .2s; }
  .main-nav a::after { display: none; }
  .main-nav a:hover, .main-nav a[aria-current="page"] { background: var(--card); color: var(--teal); }
  .main-nav .nav-cta a { background: var(--teal); color: var(--paper); padding-inline: 18px; }
  .main-nav .nav-cta a:hover { background: var(--teal-deep); color: var(--paper); }
  .nav-note { display: none; }
}
body.nav-open { overflow: hidden; }
@media (min-width: 1024px) { body.nav-open { overflow: auto; } }

/* ---------- Hero (page de carnet) ---------- */
.hero { position: relative; padding: 28px 0 56px; overflow: hidden; }
.hero::before { /* lignes de cahier */
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(to bottom, transparent 0 35px, rgba(19, 89, 109, .08) 35px 36px);
  -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent 100%); mask-image: linear-gradient(to bottom, #000 40%, transparent 100%);
  pointer-events: none;
}
.hero::after { /* marge rouge du cahier */
  content: ""; position: absolute; top: 0; bottom: 0; left: calc(var(--gutter) - 8px); width: 2px; background: rgba(227, 165, 126, .55);
  -webkit-mask-image: linear-gradient(to bottom, #000 50%, transparent 100%); mask-image: linear-gradient(to bottom, #000 50%, transparent 100%);
}
.hero-grid { position: relative; z-index: 1; display: grid; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2.35rem, 9vw, 4.2rem); font-weight: 400; line-height: 1.04; letter-spacing: -.025em; margin-bottom: .45em; }
.hero h1 em { font-style: italic; font-weight: 500; color: var(--teal); }
.scribble {
  position: relative; white-space: nowrap;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 24' preserveAspectRatio='none'%3E%3Cpath d='M3 15 C 60 4, 120 22, 180 11 S 270 6, 297 13' fill='none' stroke='%23e3a57e' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat 0 92% / 100% .32em;
  padding-bottom: .06em;
}
.hero-lead { font-size: 1.12rem; color: var(--muted); max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-cta .btn { flex: 1 1 200px; }
@media (min-width: 640px) { .hero-cta .btn { flex: 0 0 auto; } }

.hero-collage { position: relative; height: 360px; max-width: 520px; width: 100%; margin-inline: auto; }
.polaroid {
  position: absolute; margin: 0; background: #fffdf8; padding: 9px 9px 34px;
  border-radius: 6px; box-shadow: var(--shadow);
  transition: transform .5s var(--ease);
}
.polaroid img { border-radius: 3px; aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.polaroid figcaption { position: absolute; left: 0; right: 0; bottom: 6px; text-align: center; font-family: var(--hand); font-size: 1.25rem; color: var(--teal-deep); }
.polaroid::before { /* ruban adhésif */
  content: ""; position: absolute; top: -12px; left: 50%; width: 78px; height: 24px; transform: translateX(-50%) rotate(-4deg);
  background: rgba(227, 165, 126, .55); border-radius: 2px; box-shadow: 0 1px 1px rgba(0, 0, 0, .04);
}
.polaroid.p1 { width: 46%; left: 2%; top: 30px; transform: rotate(-6deg); }
.polaroid.p2 { width: 44%; right: 2%; top: 0; transform: rotate(5deg); z-index: 2; }
.polaroid.p2::before { background: rgba(169, 184, 156, .65); transform: translateX(-50%) rotate(3deg); }
.polaroid.p3 { width: 42%; left: 37%; top: 150px; transform: rotate(-1.5deg); z-index: 3; }
.polaroid.p3::before { background: rgba(231, 198, 190, .8); }
.hero-collage:hover .p1 { transform: rotate(-8deg) translate(-6px, -4px); }
.hero-collage:hover .p2 { transform: rotate(7deg) translate(6px, -4px); }
.hand-note { position: absolute; right: 0; bottom: -6px; font-family: var(--hand); font-size: 1.35rem; line-height: 1.05; color: var(--clay-deep); transform: rotate(-6deg); text-align: right; }
@media (min-width: 640px) { .hero-collage { height: 440px; } .polaroid.p3 { top: 190px; } }
@media (min-width: 1024px) {
  .hero { padding: 56px 0 96px; }
  .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 48px; }
  .hero h1 { font-size: clamp(3rem, 4.7vw, 4.2rem); }
  .hero-collage { height: 520px; }
  .polaroid.p3 { top: 230px; }
  .hand-note { font-size: 1.55rem; bottom: 10px; right: -6px; }
}

/* ---------- Bandeau défilant ---------- */
.ribbon-wrap { overflow: hidden; padding: 22px 0; margin: -22px 0; }
.ribbon { background: var(--teal); color: var(--paper); overflow: hidden; transform: rotate(-1.2deg); margin: 0 -10px; box-shadow: 0 14px 30px -20px rgba(12, 62, 76, .8); }
.ribbon-track { display: flex; width: max-content; animation: ribbon 38s linear infinite; }
.ribbon-track span { padding: 14px 18px; font-family: var(--serif); font-style: italic; font-size: 1.2rem; white-space: nowrap; }
.ribbon-track span.star { color: var(--clay); font-style: normal; }
@keyframes ribbon { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ribbon-track { animation: none; } }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
@media (min-width: 1024px) { .section { padding: 96px 0; } }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(1.9rem, 5.4vw, 3rem); margin: 0; font-weight: 400; }
.section-head h2 em { color: var(--teal); }

/* ---------- Métadonnées ---------- */
.meta { font-size: .85rem; color: var(--muted); display: inline-flex; flex-wrap: wrap; gap: .35em .6em; align-items: center; }
.meta .sep { width: 4px; height: 4px; border-radius: 50%; background: var(--clay); }

/* ---------- Filtres ---------- */
.filters { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; margin: 0 calc(-1 * var(--gutter)) 18px; padding-inline: var(--gutter); scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; min-height: 42px; padding: .45em 1.1em; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--line); background: var(--card); color: var(--ink); font-weight: 600; font-size: .92rem;
  transition: background-color .2s, color .2s, border-color .2s;
}
.chip:hover { border-color: var(--teal); }
.chip[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: var(--paper); }
.chip .count { opacity: .6; font-weight: 500; margin-left: .2em; }

/* ---------- Grille d'articles ---------- */
.grid { display: grid; gap: 22px; grid-auto-flow: dense; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); gap: 26px; } }
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 30px; } }

.card { position: relative; }
.card[hidden] { display: none; }
.card-link {
  display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit;
  background: var(--card); border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid rgba(226, 214, 194, .7); box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s;
}
.card-link:hover { transform: translateY(-5px) rotate(-.3deg); box-shadow: var(--shadow); color: inherit; }
.card-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.card-link:hover .card-media img { transform: scale(1.05); }
.card-body { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; flex: 1; }
.card-body h3 { font-size: 1.38rem; margin: 0; font-weight: 500; }
.card-body p { margin: 0; color: var(--muted); font-size: .97rem; }
.card-body .meta { margin-top: auto; padding-top: 6px; }
.card-num { position: absolute; top: 12px; right: 14px; z-index: 2; font-family: var(--hand); font-size: 1.3rem; color: var(--teal-deep); background: rgba(255, 252, 246, .92); padding: 0 12px; border-radius: 999px; }

.card-media { position: relative; }

/* Carte « À la une » */
.card--feature { grid-column: 1 / -1; }
.card--feature .card-link { border-radius: var(--r-xl); box-shadow: var(--shadow); }
.card--feature .card-link:hover { transform: translateY(-4px); }
.card--feature .card-media { aspect-ratio: 16 / 11; }
.card--feature .card-body { padding: 24px 22px 28px; gap: 12px; }
.card--feature .card-body h3 { font-size: clamp(1.75rem, 5.2vw, 2.6rem); font-weight: 400; line-height: 1.1; }
.card--feature .card-body p { font-size: 1.03rem; }
.card--feature .meta { margin-top: 4px; }
.feature-badge { position: absolute; z-index: 2; left: 16px; top: 16px; background: var(--paper); color: var(--teal-deep); font-family: var(--hand); font-size: 1.35rem; padding: 2px 16px; border-radius: 999px; transform: rotate(-4deg); box-shadow: var(--shadow-sm); }
@media (min-width: 860px) {
  .card--feature .card-link { flex-direction: row; }
  .card--feature .card-media { flex: 1.15; aspect-ratio: auto; min-height: 430px; }
  .card--feature .card-body { flex: 1; padding: 48px 44px; justify-content: center; }
  .card--feature .card-body .meta { padding-top: 0; margin-top: 4px; }
}
@media (min-width: 640px) and (max-width: 1023px) {
  .grid--home .card:last-child:nth-child(even) { grid-column: 1 / -1; }
}
.empty-filter { text-align: center; color: var(--muted); padding: 40px 0; }

/* ---------- Idée du jour + saison ---------- */
.duo { display: grid; gap: 22px; }
@media (min-width: 900px) { .duo { grid-template-columns: .85fr 1.15fr; gap: 30px; align-items: stretch; } }

.idea-card {
  position: relative; border-radius: var(--r-xl); padding: 34px 26px 30px; overflow: hidden;
  background: var(--clay-50);
  background-image: repeating-linear-gradient(to bottom, transparent 0 33px, rgba(185, 113, 75, .16) 33px 34px);
  background-position: 0 18px;
  display: flex; flex-direction: column; gap: 18px; min-height: 300px;
}
.idea-card .idea-foot { margin-top: auto; }
.idea-card::before { content: ""; position: absolute; left: 22px; top: -8px; width: 92px; height: 26px; background: rgba(169, 184, 156, .7); transform: rotate(-5deg); }
.idea-label { font-family: var(--hand); font-size: 1.7rem; color: var(--clay-deep); margin: 8px 0 0; transform: rotate(-2deg); }
.idea-text { font-family: var(--serif); font-size: clamp(1.45rem, 4.6vw, 2rem); line-height: 1.25; color: var(--teal-deep); margin: 0; min-height: 3.75em; transition: opacity .25s; }
.idea-text.is-fading { opacity: 0; }
.idea-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.idea-count { font-size: .85rem; color: var(--muted); }

.season-card { display: grid; background: var(--teal-deep); color: var(--paper); border-radius: var(--r-xl); overflow: hidden; }
.season-card h2 { color: var(--paper); font-size: clamp(1.7rem, 5vw, 2.3rem); font-weight: 400; }
.season-card .kicker { color: var(--clay); }
.season-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 9; }
.season-body { padding: 28px 24px 30px; }
@media (min-width: 640px) { .season-card { grid-template-columns: .9fr 1.1fr; } .season-media img { aspect-ratio: auto; } }

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.checklist label { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; padding: 8px 0; }
.checklist input { appearance: none; -webkit-appearance: none; flex: 0 0 22px; width: 22px; height: 22px; margin: 2px 0 0; border: 1.5px solid currentColor; border-radius: 6px; display: grid; place-items: center; cursor: pointer; opacity: .85; transition: background-color .2s; }
.checklist input::after { content: ""; width: 10px; height: 6px; border: solid var(--teal-deep); border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg) translate(1px, -1px) scale(0); transition: transform .2s var(--ease); }
.checklist input:checked { background: var(--clay); border-color: var(--clay); opacity: 1; }
.checklist input:checked::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.checklist input:checked + span { text-decoration: line-through; text-decoration-color: var(--clay); opacity: .75; }

/* ---------- À propos (teaser) ---------- */
.about-teaser { display: grid; gap: 28px; align-items: center; }
.about-photo { position: relative; max-width: 460px; }
.about-photo img { border-radius: 200px 200px var(--r-lg) var(--r-lg); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; box-shadow: var(--shadow); }
.about-photo .stamp { position: absolute; right: -6px; bottom: 24px; width: 112px; height: 112px; border-radius: 50%; background: var(--paper); display: grid; place-items: center; text-align: center; font-family: var(--hand); font-size: 1.25rem; line-height: 1; color: var(--teal); box-shadow: var(--shadow-sm); transform: rotate(10deg); border: 1.5px dashed var(--teal); }
.about-teaser h2 { font-size: clamp(1.9rem, 5.4vw, 3rem); font-weight: 400; }
.signature { font-family: var(--hand); font-size: 1.6rem; color: var(--clay-deep); margin-top: 1rem; }
@media (min-width: 900px) { .about-teaser { grid-template-columns: .8fr 1.2fr; gap: 64px; } }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--teal-deep); color: rgba(247, 242, 233, .86); margin-top: 40px; padding: 56px 0 28px; position: relative; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: -22px; height: 24px; background: radial-gradient(circle at 12px -2px, transparent 12px, var(--teal-deep) 12.5px) repeat-x; background-size: 24px 24px; }
.site-footer a, .site-footer .linklike { color: var(--paper); text-decoration: none; }
.site-footer a:hover, .site-footer .linklike:hover { color: var(--clay); text-decoration: underline; }
.footer-grid { display: grid; gap: 34px; }
.footer-brand img { width: 170px; }
.footer-brand .hand { font-size: 1.5rem; color: var(--clay); margin: 2px 0 12px 80px; transform: rotate(-3deg); display: inline-block; }
.site-footer h3 { font-family: var(--sans); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--clay); margin-bottom: 14px; font-weight: 700; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer address { font-style: normal; }
.linklike { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; text-align: left; }
.footer-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(247, 242, 233, .16); display: grid; gap: 10px; font-size: .85rem; color: rgba(247, 242, 233, .66); }
.footer-bottom p { margin: 0; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } .footer-grid > :last-child { grid-column: 1 / -1; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1.1fr 1fr; } .footer-grid > :last-child { grid-column: auto; } .footer-bottom { grid-template-columns: 1fr auto; align-items: end; } }

/* ---------- Article ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 70; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--clay), var(--teal)); }

.post-head { padding-top: 26px; padding-bottom: 26px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .85rem; color: var(--muted); margin-bottom: 20px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--teal); text-decoration: underline; }
.post-head h1 { font-size: clamp(2.1rem, 7.4vw, 3.6rem); font-weight: 400; letter-spacing: -.02em; margin: 16px 0 18px; }
.post-lead { font-size: 1.18rem; color: var(--muted); font-family: var(--serif); font-style: italic; line-height: 1.5; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: .9rem; color: var(--muted); margin-top: 18px; }
.post-meta .avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--teal); color: var(--paper); display: grid; place-items: center; font-family: var(--serif); font-size: 1.05rem; }
.post-meta strong { color: var(--ink); font-weight: 600; }

.post-cover { margin: 0 auto 8px; position: relative; }
.post-cover img { width: 100%; border-radius: var(--r-lg); aspect-ratio: 16 / 10; object-fit: cover; box-shadow: var(--shadow); }
.post-cover figcaption { font-size: .8rem; color: var(--muted); margin-top: 10px; text-align: right; }
.post-cover::before { content: ""; position: absolute; z-index: 2; top: -10px; left: calc(var(--gutter) + 24px); width: 96px; height: 26px; background: rgba(227, 165, 126, .6); transform: rotate(-4deg); }
@media (min-width: 1024px) { .post-cover img { aspect-ratio: 16 / 8.5; border-radius: var(--r-xl); } }

.post-body { padding-top: 26px; font-size: 1.09rem; }
.post-body > p:first-child::first-letter {
  font-family: var(--serif); float: left; font-size: 4.1em; line-height: .8; padding: .08em .12em 0 0; color: var(--teal); font-weight: 500;
}
.post-body h2 { font-size: clamp(1.55rem, 4.6vw, 2rem); margin: 2.1em 0 .6em; font-weight: 500; display: flex; gap: .5em; align-items: baseline; }
.post-body h2 .num { font-family: var(--hand); color: var(--clay-deep); font-size: .9em; font-weight: 600; flex: 0 0 auto; }
.post-body h3 { font-size: 1.3rem; margin: 1.6em 0 .5em; }
.post-body ul, .post-body ol { padding-left: 0; margin: 0 0 1.3em; list-style: none; }
.post-body ul:not(.checklist) li { position: relative; padding-left: 1.6em; margin-bottom: .55em; }
.post-body ul:not(.checklist) li::before { content: ""; position: absolute; left: .2em; top: .62em; width: 9px; height: 9px; border-radius: 50% 0 50% 0; background: var(--sage); transform: rotate(-20deg); }
.post-body ol { counter-reset: step; }
.post-body ol li { counter-increment: step; position: relative; padding-left: 2.6em; margin-bottom: .8em; }
.post-body ol li::before { content: counter(step); position: absolute; left: 0; top: .05em; width: 1.8em; height: 1.8em; border-radius: 50%; background: var(--teal-50); color: var(--teal); font-weight: 700; font-size: .9em; display: grid; place-items: center; }
.post-body strong { color: var(--teal-deep); font-weight: 700; }
.post-body a { font-weight: 600; }

.pull { margin: 2.2em 0; padding: 6px 0 6px 22px; border-left: 3px solid var(--clay); }
.pull p { font-family: var(--serif); font-style: italic; font-size: clamp(1.4rem, 4.4vw, 1.75rem); line-height: 1.3; color: var(--teal); margin: 0; }
@media (min-width: 900px) { .pull { margin-inline: -48px; padding-left: 30px; } }

.note-carnet {
  position: relative; margin: 2.2em 0; padding: 30px 22px 20px; border-radius: var(--r-md);
  background: #fffdf7;
  background-image: repeating-linear-gradient(to bottom, transparent 0 31px, rgba(19, 89, 109, .11) 31px 32px);
  background-position: 0 22px;
  box-shadow: var(--shadow-sm); transform: rotate(-.6deg);
}
.note-carnet::before { content: ""; position: absolute; top: -11px; right: 28px; width: 84px; height: 24px; background: rgba(169, 184, 156, .7); transform: rotate(4deg); }
.note-carnet .note-label { position: absolute; top: -2px; left: 20px; font-family: var(--hand); font-size: 1.35rem; color: var(--clay-deep); transform: rotate(-2deg); }
.note-carnet p { font-family: var(--hand); font-size: 1.48rem; line-height: 32px; color: var(--teal-deep); margin: 0 0 4px; }

.essayer { margin: 2.4em 0 1em; padding: 26px 22px; border-radius: var(--r-lg); background: var(--teal-deep); color: var(--paper); }
.essayer h3 { color: var(--paper); margin: 0 0 10px; font-size: 1.35rem; }
.essayer .hand { color: var(--clay); font-size: 1.25rem; display: block; margin-bottom: 2px; }

.recipe { margin: 1.6em 0; padding: 22px; border-radius: var(--r-lg); background: var(--sage-50); border: 1px dashed var(--sage); }
.recipe h3 { margin-top: 0; }
.recipe .recipe-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.recipe .recipe-meta span { background: var(--card); border-radius: 999px; padding: .2em .8em; font-size: .85rem; font-weight: 600; color: var(--sage-deep); }

.info-table { width: 100%; border-collapse: collapse; margin: 1.2em 0 1.6em; font-size: .97rem; }
.info-table th, .info-table td { text-align: left; vertical-align: top; padding: 12px 10px; border-bottom: 1px solid var(--line); }
.info-table th { font-family: var(--sans); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.table-scroll { overflow-x: auto; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); }

.post-foot { padding-top: 26px; padding-bottom: 20px; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 18px 0; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); }
.share-label { font-family: var(--hand); font-size: 1.4rem; color: var(--clay-deep); margin-right: 6px; }
.share a, .share button { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: .4em 1em; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .9rem; cursor: pointer; transition: border-color .2s, color .2s; }
.share a:hover, .share button:hover { border-color: var(--teal); color: var(--teal); }
.share svg { width: 18px; height: 18px; }
.post-disclaimer { margin-top: 22px; font-size: .88rem; color: var(--muted); background: var(--paper-2); border-radius: var(--r-md); padding: 14px 16px; }
.related { padding-top: 48px; }
.related h2 { font-size: clamp(1.7rem, 5vw, 2.4rem); font-weight: 400; margin-bottom: 24px; }

/* ---------- Pages simples & légales ---------- */
.page-head { padding-top: 36px; padding-bottom: 12px; }
.page-head h1 { font-size: clamp(2.1rem, 7vw, 3.4rem); font-weight: 400; margin-bottom: 12px; }
.page-head .updated { color: var(--muted); font-size: .92rem; }
.prose { padding-bottom: 40px; }
.prose h2 { font-size: clamp(1.4rem, 4.2vw, 1.75rem); margin: 2em 0 .6em; font-weight: 500; }
.prose h3 { font-size: 1.2rem; margin: 1.5em 0 .5em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--clay-deep); }
.toc { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px 20px; margin: 18px 0 8px; }
.toc p { font-weight: 700; margin-bottom: 8px; font-size: .95rem; }
.toc ol { margin: 0; padding-left: 1.3em; display: grid; gap: 4px; font-size: .95rem; }
.legal-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px 20px; margin: 1em 0 1.4em; }
.legal-card p:last-child { margin: 0; }

/* À propos */
.values { display: grid; gap: 16px; margin: 1.5em 0 2em; padding: 0; list-style: none; }
.values li { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px 18px 16px; }
.values li strong { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.2rem; color: var(--teal-deep); margin-bottom: 4px; }
@media (min-width: 720px) { .values { grid-template-columns: repeat(2, 1fr); } }

/* Contact */
.contact-grid { display: grid; gap: 26px; padding-bottom: 40px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.3fr .9fr; gap: 40px; align-items: start; } }
.form { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px 20px; box-shadow: var(--shadow-sm); display: grid; gap: 16px; }
@media (min-width: 640px) { .form { padding: 32px; } .form .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; } }
.form .row-2 { display: grid; gap: 16px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; font: inherit; font-size: 1rem; color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(19, 89, 109, .12); }
.field .hint { font-size: .82rem; color: var(--muted); margin-top: 4px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; color: var(--muted); }
.consent input { width: 20px; height: 20px; flex: 0 0 20px; margin-top: 3px; accent-color: var(--teal); }
.form-status { font-size: .92rem; border-radius: 12px; padding: 12px 14px; display: none; }
.form-status.is-visible { display: block; }
.form-status.is-ok { background: var(--sage-50); color: var(--sage-deep); }
.form-status.is-error { background: var(--rose-50); color: var(--rose-deep); }
.contact-cards { display: grid; gap: 14px; }
.contact-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px 20px; display: flex; gap: 14px; }
.contact-card .ico { flex: 0 0 44px; height: 44px; border-radius: 50%; background: var(--teal-50); color: var(--teal); display: grid; place-items: center; }
.contact-card .ico svg { width: 20px; height: 20px; }
.contact-card h2 { font-family: var(--sans); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--clay-deep); margin: 2px 0 4px; font-weight: 700; }
.contact-card p { margin: 0; }
.contact-card address { font-style: normal; }

/* 404 */
.notfound { text-align: center; padding: 70px var(--gutter) 40px; overflow: hidden; }
.notfound .big { font-family: var(--hand); font-size: clamp(5rem, 22vw, 9rem); color: var(--clay); line-height: 1; margin: 0; transform: rotate(-4deg); }

/* ---------- Bandeau cookies (RGPD) ---------- */
.cookie-bar {
  position: fixed; z-index: 90; left: 10px; right: 10px; bottom: max(10px, env(safe-area-inset-bottom));
  max-width: 760px; margin-inline: auto;
  background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 20px;
  box-shadow: 0 20px 50px -18px rgba(12, 62, 76, .45);
  padding: 12px 12px 10px; display: grid; gap: 10px;
  transform: translateY(140%); transition: transform .5s var(--ease);
}
.cookie-bar.is-visible { transform: none; }
.cookie-bar p { margin: 0; font-size: .82rem; line-height: 1.45; color: var(--muted); }
.cookie-bar p strong { display: none; }
.cookie-actions { display: grid; grid-template-columns: auto 1fr 1fr; gap: 6px; align-items: center; }
.cookie-actions .btn { min-height: 42px; font-size: .86rem; padding: .45em .8em; }
.cookie-actions .cookie-custom { background: none; border: 0; text-decoration: underline; color: var(--teal); font-weight: 600; font-size: .82rem; cursor: pointer; min-height: 42px; padding: 0 4px; }
.cookie-dialog .cookie-actions { grid-template-columns: 1fr 1fr; }
@media (min-width: 720px) {
  .cookie-bar { grid-template-columns: 1fr auto; align-items: center; padding: 16px 18px; gap: 18px; }
  .cookie-bar p { font-size: .88rem; }
  .cookie-bar p strong { color: var(--teal-deep); font-family: var(--serif); font-weight: 500; font-size: 1.02rem; display: block; margin-bottom: 2px; }
  .cookie-actions { grid-template-columns: auto auto auto; gap: 8px; }
}

.cookie-modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: flex-end; justify-content: center; background: rgba(12, 62, 76, .45); padding: 10px; }
.cookie-modal.is-open { display: flex; }
.cookie-dialog { background: var(--paper); border-radius: 22px; width: 100%; max-width: 560px; max-height: 92dvh; overflow-y: auto; padding: 24px 20px 20px; box-shadow: var(--shadow); }
@media (min-width: 640px) { .cookie-modal { align-items: center; } .cookie-dialog { padding: 30px 28px 24px; } }
.cookie-dialog h2 { font-size: 1.6rem; font-weight: 400; }
.cookie-dialog > p { color: var(--muted); font-size: .94rem; }
.cookie-option { display: flex; gap: 14px; justify-content: space-between; align-items: flex-start; padding: 14px 0; border-top: 1px solid var(--line); }
.cookie-option h3 { font-family: var(--sans); font-size: 1rem; font-weight: 700; margin: 0 0 2px; color: var(--ink); }
.cookie-option p { margin: 0; font-size: .87rem; color: var(--muted); }
.switch { position: relative; flex: 0 0 52px; width: 52px; height: 30px; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: #cfc6b6; transition: background-color .2s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .25s var(--ease); }
.switch input:checked + span { background: var(--teal); }
.switch input:checked + span::after { transform: translateX(22px); }
.switch input:disabled + span { background: var(--sage); opacity: .8; }
.switch input:focus-visible + span { outline: 2px solid var(--clay-deep); outline-offset: 2px; }
.cookie-dialog .cookie-actions { margin-top: 16px; }

/* ---------- Apparition au défilement ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
.no-js .reveal { opacity: 1; transform: none; }
