/* ============================================================
   portedecuisine.be — design system aligné sur portedecuisine.fr
   Polices 100% système (aucun chargement de police), échelle
   fluide, palette chaude. Même famille éditoriale, contenu propre.
   ============================================================ */

:root {
  /* --- Orange de marque (identique .fr) --- */
  --orange-50:#FDF3EA; --orange-100:#FBE2CE; --orange-200:#F8C49E;
  --orange-300:#FB9F5F; --orange-400:#FB8639; --orange-500:#F26A1B;
  --orange-600:#D9540C; --orange-700:#B24209;

  /* --- Encre chaude --- */
  --ink-900:#1C1815; --ink-800:#2A2420; --ink-700:#3D352E;
  --ink-500:#6B5F55; --ink-400:#8C8174; --ink-300:#A89C8F;

  /* --- Papiers chauds --- */
  --paper:#FBF7F1; --paper-2:#F4ECE1; --paper-3:#EFE5D6;
  --card:#FFFFFF; --line:#E8DECF; --line-soft:#F0E8DB;

  /* --- États --- */
  --success-500:#2F8F5B; --danger-500:#C8482E; --danger-50:#FBE9E4;

  /* --- Alias sémantiques --- */
  --text-strong:var(--ink-900); --text-body:var(--ink-700);
  --text-muted:var(--ink-500); --text-faint:var(--ink-300);
  --text-on-accent:#FFFFFF; --text-link:var(--orange-600);
  --surface-page:var(--paper); --surface-alt:var(--paper-2);
  --surface-card:var(--card); --surface-inverse:var(--ink-900);
  --border-subtle:var(--line); --border-strong:var(--ink-900);
  --accent:var(--orange-500); --accent-hover:var(--orange-600); --accent-press:var(--orange-700);
  --accent-tint:var(--orange-50); --accent-mark:#FB8639;

  /* --- Polices 100% système --- */
  --font-display:system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;
  --font-sans:system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;
  --font-serif:ui-serif,Georgia,'Times New Roman',Times,serif;

  --fw-regular:400; --fw-medium:500; --fw-semibold:600; --fw-bold:700; --fw-extra:800;

  /* --- Échelle fluide --- */
  --fs-display:clamp(2.4rem,1.5rem + 4vw,4.6rem);
  --fs-h1:clamp(2rem,1.5rem + 2.2vw,3.1rem);
  --fs-h2:clamp(1.6rem,1.25rem + 1.5vw,2.3rem);
  --fs-h3:clamp(1.3rem,1.1rem + 0.9vw,1.7rem);
  --fs-lead:1.2rem; --fs-body:1.05rem; --fs-sm:0.93rem; --fs-eyebrow:0.78rem;

  --lh-tight:1.08; --lh-snug:1.2; --lh-normal:1.55; --lh-relaxed:1.7;
  --ls-tight:-0.02em; --ls-eyebrow:0.14em;

  --radius-sm:10px; --radius-md:14px; --radius-card:18px; --radius-pill:999px; --radius-xl:30px;
  --shadow-xs:0 1px 2px rgba(28,24,21,0.06);
  --shadow-sm:0 2px 6px -1px rgba(28,24,21,0.08);
  --shadow-md:0 8px 24px -8px rgba(28,24,21,0.14);
  --shadow-accent:0 10px 24px -10px rgba(217,84,12,0.4);

  --max: 1180px;
  --ease-out:cubic-bezier(0.22,0.61,0.36,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  color: var(--text-body);
  background: var(--surface-page);
  line-height: var(--lh-normal);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
::selection { background: var(--orange-200); color: var(--ink-900); }

.shell { width: min(calc(100% - 2rem), var(--max)); margin: 0 auto; }

/* ---------- Header ---------- */
.strip {
  background: var(--ink-900); color: rgba(255,255,255,0.85);
  font-family: var(--font-sans); font-size: 12px; font-weight: var(--fw-semibold);
  letter-spacing: 0.03em; text-align: center; padding: 7px 16px; text-wrap: balance;
}
.strip span { color: var(--orange-300); }

.topbar {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(18px);
  background: rgba(251,247,241,0.88);
  border-bottom: 1px solid var(--border-subtle);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.7rem 0; }

.brand { display: flex; align-items: center; gap: 0.7rem; font-size: 0.95rem; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 8px; flex: 0 0 auto;
  background: var(--accent-mark); box-shadow: inset 0 0 0 2px rgba(255,255,255,0.18);
  position: relative; overflow: visible;
}
.brand-mark img { display: none; }
.brand-mark::after {
  content: ""; position: absolute; top: 50%; left: 21px; transform: translateY(-50%);
  width: 2px; height: 13px; border-radius: 99px; background: #fff;
}
.brand strong { display: block; font-family: var(--font-display); font-weight: var(--fw-extra); font-size: 1.05rem; letter-spacing: var(--ls-tight); color: var(--text-strong); }
.brand span {
  display: block; margin-top: 3px; font-family: var(--font-sans); font-size: 8px;
  font-weight: var(--fw-bold); letter-spacing: var(--ls-eyebrow); text-transform: uppercase; color: var(--text-muted);
}

.nav-toggle { display: none; border: 1px solid var(--border-subtle); background: var(--card); border-radius: var(--radius-pill); padding: 0.5rem 0.85rem; font: inherit; font-family: var(--font-sans); }
.nav-links { display: flex; align-items: center; gap: 0.3rem; flex-wrap: wrap; }
.nav-links a { font-family: var(--font-sans); font-size: var(--fs-sm); font-weight: var(--fw-medium); padding: 0.5rem 0.7rem; border-radius: var(--radius-pill); color: var(--text-body); }
.nav-links a:hover { background: var(--accent-tint); color: var(--accent-press); text-decoration: none; }

.market-switch { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.3rem; border-radius: var(--radius-pill); background: var(--surface-alt); border: 1px solid var(--border-subtle); }
.market-switch a { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.4rem 0.7rem; border-radius: var(--radius-pill); font-family: var(--font-sans); font-size: var(--fs-sm); font-weight: var(--fw-medium); }
.market-switch a.active { background: var(--ink-900); color: #fff; }

.flag { width: 16px; height: 12px; border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08); }
.flag-be { background: linear-gradient(90deg, #111 0 33.3%, #f4c542 33.3% 66.6%, #bd3735 66.6% 100%); }
.flag-fr { background: linear-gradient(90deg, #1b4db6 0 33.3%, #fff 33.3% 66.6%, #c53637 66.6% 100%); }

/* ---------- Hero ---------- */
.hero { padding: 3rem 0 2rem; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2rem; align-items: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.4rem 0.75rem;
  border-radius: var(--radius-pill); background: var(--accent-tint); color: var(--accent-press);
  font-family: var(--font-sans); font-size: var(--fs-eyebrow); font-weight: var(--fw-bold);
  letter-spacing: var(--ls-eyebrow); text-transform: uppercase;
}

h1, h2, h3 { font-family: var(--font-display); line-height: var(--lh-tight); margin: 0; font-weight: var(--fw-extra); letter-spacing: var(--ls-tight); color: var(--text-strong); }
h1 { font-size: var(--fs-display); margin-top: 0.9rem; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: var(--fw-bold); }

.lead { font-family: var(--font-serif); font-size: var(--fs-lead); line-height: var(--lh-relaxed); max-width: 62ch; color: var(--text-body); }
.muted { color: var(--text-muted); }

.hero-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 1.6rem; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.85rem 1.3rem; border-radius: var(--radius-pill); border: 1px solid transparent;
  font-family: var(--font-sans); font-weight: var(--fw-bold); font-size: var(--fs-sm);
  transition: transform 0.14s var(--ease-out);
}
.button:active { transform: scale(0.97); }
.button-primary { background: var(--accent); color: var(--text-on-accent); box-shadow: var(--shadow-accent); }
.button-primary:hover { background: var(--accent-hover); text-decoration: none; }
.button-secondary { background: transparent; border-color: var(--border-strong); color: var(--text-strong); }
.button-secondary:hover { background: var(--ink-900); color: #fff; text-decoration: none; }

/* ---------- Cartes génériques ---------- */
.hero-card, .panel, .story-card, .faq-item, .quote, .notice {
  background: var(--surface-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card); box-shadow: var(--shadow-xs);
}
.hero-card { overflow: hidden; }
.hero-card img { aspect-ratio: 5/4; object-fit: cover; }
.hero-card-body { padding: 1.1rem 1.2rem 1.3rem; }

.section { padding: 2.2rem 0; }
.section-head { display: flex; justify-content: space-between; gap: 1rem; align-items: end; margin-bottom: 1.3rem; }

.grid-3, .grid-2, .stats, .article-grid, .cta-grid { display: grid; gap: 1.1rem; }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-2, .article-grid, .cta-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
.stats { grid-template-columns: repeat(4, minmax(0,1fr)); }

.panel, .story-card, .faq-item, .quote, .notice { padding: 1.2rem; }
.kicker { font-family: var(--font-sans); color: var(--accent-press); text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.76rem; font-weight: var(--fw-bold); }
.story-card p, .panel p, .faq-item p { margin-bottom: 0; }
.story-card h3, .panel h3, .faq-item h3 { margin-top: 0.5rem; margin-bottom: 0.5rem; }
.story-card { position: relative; overflow: hidden; }
.story-card::after { content: ""; position: absolute; inset: auto -40px -40px auto; width: 110px; height: 110px; border-radius: 50%; background: var(--accent-tint); }

.stat-value { font-family: var(--font-display); font-size: clamp(1.7rem, 3.6vw, 2.7rem); letter-spacing: var(--ls-tight); font-weight: var(--fw-extra); color: var(--text-strong); }

.article-card {
  display: flex; flex-direction: column; gap: 0.85rem; padding: 1.2rem;
  background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-card);
  box-shadow: var(--shadow-xs); transition: transform 0.22s var(--ease-out), box-shadow 0.22s var(--ease-out);
}
.article-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.article-card h3 { font-size: 1.3rem; }
.article-card .meta { display: flex; gap: 0.8rem; flex-wrap: wrap; color: var(--text-muted); font-family: var(--font-sans); font-size: 0.86rem; }

.callout { background: linear-gradient(140deg, var(--ink-900), var(--ink-800) 60%, #3a1f12); color: #fff; border-radius: var(--radius-xl); padding: 2rem; overflow: hidden; position: relative; }
.callout::before, .callout::after { content: ""; position: absolute; border-radius: 50%; filter: blur(6px); }
.callout::before { width: 170px; height: 170px; background: rgba(251,134,57,0.25); top: -40px; right: 8%; }
.callout::after { width: 140px; height: 140px; background: rgba(251,134,57,0.18); bottom: -50px; left: 12%; }
.callout h2, .callout p, .callout a { position: relative; z-index: 1; }
.callout .muted { color: rgba(255,255,255,0.7); }

.quote { border-left: 4px solid var(--accent); }

.faq-item summary { cursor: pointer; list-style: none; font-family: var(--font-display); font-weight: var(--fw-bold); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary + p { margin-top: 0.75rem; font-family: var(--font-serif); }

.breadcrumbs { display: flex; gap: 0.5rem; flex-wrap: wrap; color: var(--text-muted); font-family: var(--font-sans); font-size: 0.9rem; margin: 1.3rem 0 1rem; }
.breadcrumbs span::after { content: "/"; margin-left: 0.5rem; }
.breadcrumbs span:last-child::after { content: ""; }

.page-hero { padding: 2rem 0 1rem; }
.prose { font-family: var(--font-serif); font-size: var(--fs-lead); line-height: var(--lh-relaxed); color: var(--text-body); max-width: 72ch; }
.prose h2, .prose h3 { font-family: var(--font-display); margin-top: 1.7rem; margin-bottom: 0.7rem; }
.prose p { margin-bottom: 1.1rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.4rem; }
.prose a { color: var(--text-link); text-decoration: underline; }

.two-column { display: grid; grid-template-columns: minmax(0,0.95fr) minmax(280px,0.65fr); gap: 1.4rem; align-items: start; }
.aside-stack { display: grid; gap: 1rem; }
.notice strong { display: block; margin-bottom: 0.35rem; font-family: var(--font-display); }

/* ---------- Footer ---------- */
.footer { background: var(--ink-900); color: rgba(255,255,255,0.72); margin-top: clamp(48px,9vw,96px); padding: 0; }
.footer-grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1.4fr 0.85fr 0.85fr 0.85fr; gap: 1.2rem; padding: clamp(36px,6vw,56px) 0 24px; }
.footer-grid > div:first-child { grid-column: 1 / -1; }
@media (min-width: 900px) { .footer-grid > div:first-child { grid-column: auto; } }
.footer h3, .footer h4 { color: #fff; font-family: var(--font-sans); font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; margin: 0 0 14px; }
.footer .brand strong { color: #fff; }
.footer .brand span { color: rgba(255,255,255,0.6); }
.footer .muted { color: rgba(255,255,255,0.6); }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.footer a { color: rgba(255,255,255,0.72); font-family: var(--font-sans); font-size: 14px; }
.footer a:hover { color: #fff; }
.footer small { color: rgba(255,255,255,0.5); }
.footer-bar { border-top: 1px solid rgba(255,255,255,0.12); max-width: var(--max); margin: 0 auto; padding: 16px 0 28px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-family: var(--font-sans); font-size: 12.5px; color: rgba(255,255,255,0.5); }

.newsletter-band { padding: 1.2rem; border-radius: var(--radius-xl); background: linear-gradient(135deg, var(--accent-tint), var(--paper-2)); border: 1px solid var(--border-subtle); }
.form-card { display: grid; gap: 1rem; }
.form-row { display: grid; gap: 0.4rem; }
.form-row label { font-family: var(--font-sans); font-weight: var(--fw-bold); font-size: var(--fs-sm); }
.form-row input, .form-row textarea, .form-row select { width: 100%; border: 1px solid var(--border-subtle); background: #fff; border-radius: var(--radius-md); padding: 0.85rem 1rem; font: inherit; color: var(--text-body); }
.form-row input:focus, .form-row textarea:focus, .form-row select:focus { outline: 2px solid var(--accent-tint); border-color: var(--accent); }
.form-inline { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 0.8rem; align-items: end; }
.form-status { min-height: 1.3rem; margin: 0; color: var(--text-muted); font-family: var(--font-sans); font-size: 0.9rem; }
.form-status.is-error { color: var(--danger-500); }
.form-status.is-success { color: var(--success-500); }

.admin-gate[hidden] { display: none; }

.tag-list { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.tag { border: 1px solid var(--border-subtle); background: var(--surface-alt); border-radius: var(--radius-pill); padding: 0.3rem 0.65rem; font-family: var(--font-sans); font-size: 0.84rem; }

.table { width: 100%; border-collapse: collapse; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border-subtle); font-family: var(--font-sans); }
.table th, .table td { padding: 0.8rem; text-align: left; border-bottom: 1px solid var(--border-subtle); vertical-align: top; font-size: var(--fs-sm); }
.table th { background: var(--surface-alt); }

@media (max-width: 980px) {
  .hero-grid, .grid-3, .grid-2, .stats, .two-column, .article-grid, .cta-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .topbar-inner { align-items: flex-start; }
  .nav-toggle { display: inline-flex; }
  .nav-links { display: none; width: 100%; flex-direction: column; align-items: flex-start; padding-top: 0.7rem; }
  .nav-links.is-open { display: flex; }
  .market-switch { order: 3; }
  .hero { padding-top: 1.6rem; }
  .form-inline { grid-template-columns: 1fr; }
}

/* ============================================================
   Cartes article avec vignette-photo (home + guides)
   ============================================================ */
.article-card { padding: 0; overflow: hidden; }
.article-card__cover { aspect-ratio: 3 / 2; overflow: hidden; background: var(--surface-alt); }
.article-card__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease-out); }
.article-card:hover .article-card__cover img { transform: scale(1.05); }
.article-card__body { display: flex; flex-direction: column; gap: 0.55rem; padding: 1.1rem 1.2rem 1.3rem; }
.article-card__body h3 { font-size: 1.25rem; }
.article-card__body p { margin: 0; color: var(--text-muted); font-size: 0.98rem; }

/* Hero photo : ratio plus large et belle ombre */
.hero-card img { aspect-ratio: 16 / 10; }
