/* Tokens repris de la charte WikiAgri (wikiagri/exemple + design-system/admin/MASTER.md). */

@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4-italic.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --slate-50: #f5f7f9; --slate-100: #eceff3; --slate-200: #d6dce3; --slate-300: #b4bdc8;
  --slate-400: #8b96a4; --slate-500: #687382; --slate-600: #4d5764; --slate-700: #333b45;
  --slate-800: #252b33; --slate-900: #171b21; --slate-950: #0d1014;
  --yellow-50: #fffbe8; --yellow-100: #fff3bd; --yellow-300: #ffe46b; --yellow-400: #fed317;
  --yellow-500: #ebbf00; --yellow-700: #866c00; --yellow-900: #463900;
  --green-50: #ecfdf3; --green-700: #067647;

  --text: var(--slate-900); --text-2: var(--slate-600); --text-3: var(--slate-500);
  --font: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;

  --r-sm: 4px; --r: 8px; --r-lg: 16px; --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(13, 16, 20, .06), 0 1px 3px rgba(13, 16, 20, .08);
  --shadow-md: 0 4px 8px -2px rgba(13, 16, 20, .08), 0 12px 24px -6px rgba(13, 16, 20, .12);
  --shadow-lg: 0 8px 16px -4px rgba(13, 16, 20, .1), 0 24px 48px -12px rgba(13, 16, 20, .22);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ==== Base ==== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.5; color: var(--text); background: #fff; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.2; letter-spacing: -.02em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul { list-style: none; margin: 0; padding: 0; }
address { font-style: normal; }
:focus-visible { outline: 3px solid var(--yellow-400); outline-offset: 2px; border-radius: 2px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 820px; }
.sr-only { position: absolute; 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: -9999px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 200; background: var(--yellow-400); color: var(--slate-950); padding: 8px 16px; border-radius: var(--r); font-weight: 600; }
.icon-sm { width: 16px; height: 16px; flex: none; }

/* ==== Typographie ==== */
.kicker { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--slate-700); }
.kicker-yellow { color: var(--yellow-700); }
.h-xl { font-size: 48px; line-height: 1.08; letter-spacing: -.03em; }
.h-lg { font-size: 30px; line-height: 1.15; letter-spacing: -.025em; }
.h-sm { font-size: 20px; line-height: 1.25; }
.chapo { font-family: var(--serif); font-size: 20px; line-height: 1.55; color: var(--text-2); }
.link { text-decoration: underline; text-decoration-color: var(--slate-300); text-underline-offset: 3px; }
.link:hover { text-decoration-color: currentColor; }

/* ==== Boutons ==== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 16px; font-weight: 600; line-height: 1; padding: 14px 26px; border-radius: var(--r-pill); border: 0; cursor: pointer; white-space: nowrap; transition: background-color .15s, transform .15s var(--ease); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--yellow-400); color: var(--slate-950); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), var(--shadow-sm); }
.btn-primary:hover { background: var(--yellow-300); }
.btn-dark { background: var(--slate-800); color: #fff; }
.btn-dark:hover { background: var(--slate-950); }
.btn-ghost { background: #fff; color: var(--slate-700); box-shadow: inset 0 0 0 1px var(--slate-200); }
.btn-ghost:hover { background: var(--slate-50); }
.btn[aria-disabled="true"] { cursor: not-allowed; color: var(--text-3); background: var(--slate-100); box-shadow: none; }
.more { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--slate-600); }
.more:hover { color: var(--slate-950); }
.more .icon-sm { transition: transform .25s var(--ease); }
.more:hover .icon-sm { transform: translateX(3px); }

/* ==== Header ==== */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.6) blur(12px); box-shadow: 0 1px 0 var(--slate-200); }
.header-main { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.logo img { width: 200px; height: auto; }

/* ==== Sections ==== */
.section { padding: 80px 0; }
.section-tint { background: var(--slate-50); }
.section-dark { background: var(--slate-900); color: #fff; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 40px; padding-top: 16px; border-top: 4px solid var(--slate-900); }
.section-head h2 { font-size: 30px; letter-spacing: -.025em; }
.section-head p { color: var(--text-2); }
.grid { display: grid; gap: 32px; }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ==== Hero ==== */
.hero { padding: 64px 0 88px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.hero-copy { display: grid; gap: 24px; }
.hero-copy .chapo { max-width: 56ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.hero-visual { display: grid; place-items: center; }
.cover-img { width: min(100%, 380px); border-radius: var(--r); box-shadow: var(--shadow-lg); transform: rotate(2deg); }

/* Couverture stylisée (sans image) */
.cover { position: relative; width: min(100%, 360px); aspect-ratio: 3 / 4; padding: 28px; display: flex; flex-direction: column; gap: 8px; border-radius: var(--r); background: var(--yellow-400); color: var(--slate-950); box-shadow: 14px 14px 0 var(--slate-900), var(--shadow-lg); transform: rotate(2deg); }
.cover-masthead { font-size: 56px; font-weight: 800; letter-spacing: -.05em; line-height: .9; }
.cover-kicker { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--yellow-900); }
.cover-title { margin-top: auto; font-family: var(--serif); font-size: 30px; line-height: 1.1; font-weight: 600; }
.cover-toc { display: grid; gap: 6px; margin-top: 16px; padding-top: 16px; border-top: 2px solid var(--slate-950); font-size: 14px; font-weight: 600; }

/* ==== Formules ==== */
.offers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.offer { position: relative; display: flex; flex-direction: column; gap: 24px; padding: 32px; border-radius: var(--r-lg); background: #fff; box-shadow: inset 0 0 0 1px var(--slate-200); }
.offer-featured { box-shadow: inset 0 0 0 3px var(--yellow-400), var(--shadow-md); }
.offer-badge { position: absolute; top: 0; left: 32px; transform: translateY(-50%); padding: 6px 12px; border-radius: var(--r-pill); background: var(--yellow-400); color: var(--slate-950); font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.offer-head { display: grid; gap: 8px; }
.offer-name { font-size: 24px; line-height: 1.2; }
.offer-duration { color: var(--text-3); font-weight: 600; }
.offer-issues { font-weight: 600; color: var(--text-2); }
.offer-price { display: grid; gap: 6px; padding-top: 24px; border-top: 1px solid var(--slate-200); }
.price { font-size: 48px; font-weight: 700; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.price-old { margin-left: 8px; font-size: 20px; font-weight: 500; color: var(--text-3); }
.price-soon { font-size: 28px; letter-spacing: -.02em; color: var(--text-2); }
.price-unit { font-size: 14px; color: var(--text-3); }
.saving { justify-self: start; margin-top: 4px; padding: 4px 10px; border-radius: var(--r-pill); background: var(--green-50); color: var(--green-700); font-size: 13px; font-weight: 700; }
.offer-tagline { font-family: var(--serif); font-style: italic; color: var(--text-2); }
.offer-perks { display: grid; gap: 12px; color: var(--text-2); }
.offer-perks li { display: flex; gap: 10px; align-items: flex-start; }
.offer-perks .icon-sm { margin-top: 4px; color: var(--green-700); }
.offer-cta { margin-top: auto; width: 100%; }

.renew { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 24px; margin-top: 48px; padding: 24px; border-radius: var(--r-lg); background: #fff; box-shadow: inset 0 0 0 1px var(--slate-200); text-align: center; }

/* ==== Pourquoi ==== */
.pillar { display: grid; gap: 12px; }
.pillar p:last-child { color: var(--text-2); }
.pillar-num { font-size: 30px; font-weight: 700; letter-spacing: -.04em; line-height: 1; color: var(--yellow-700); }

/* ==== FAQ ==== */
.faq { display: grid; gap: 12px; }
.faq details { border-radius: var(--r); background: #fff; box-shadow: inset 0 0 0 1px var(--slate-200); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 24px; font-weight: 400; line-height: 1; color: var(--text-3); transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 24px 20px; color: var(--text-2); max-width: 65ch; }

/* ==== CTA final ==== */
.cta-final-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }

/* ==== Merci ==== */
.thanks .container { display: grid; gap: 24px; justify-items: start; }

/* ==== Footer ==== */
.site-footer { background: var(--slate-950); color: var(--slate-300); font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-top: 56px; padding-bottom: 40px; }
.footer-tagline { margin-top: 16px; max-width: 36ch; }
.footer-contact strong { color: #fff; }
.footer-contact a, .footer-links a { color: var(--slate-300); }
.footer-contact a:hover, .footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-links { display: grid; gap: 10px; align-content: start; }
.footer-bottom { padding-top: 20px; padding-bottom: 28px; border-top: 1px solid rgba(255, 255, 255, .1); color: var(--slate-400); }

/* ==== Responsive ==== */
@media (max-width: 960px) {
  .offers { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin: 0 auto; gap: 32px; }
  .offer-featured { order: -1; }
  .g-3 { grid-template-columns: minmax(0, 1fr); }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .cover { width: min(70%, 240px); }
  .cover-masthead { font-size: 44px; }
  .cover-title { font-size: 24px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .section { padding: 56px 0; }
  .hero { padding: 40px 0 56px; }
  .h-xl { font-size: 34px; }
  .h-lg { font-size: 26px; }
  .chapo { font-size: 18px; }
  .section-head h2 { font-size: 26px; }
  .logo img { width: 150px; }
  .header-main { height: 64px; }
  .offer { padding: 28px 24px; }
  .offer-badge { left: 24px; }
  .hero-actions .btn, .renew .btn, .cta-final .btn { width: 100%; }
}
