/* Composants partagés : hero, newsletter, rubriques, footer, pages de contenu, formulaires */
:root {
  --s-gold: #c9a84c;
  --s-dark: #0f0f0f;
  --s-text: #1a1a1a;
  --s-muted: #666;
  --s-bg: #fafaf8;
  --s-border: #e8e4dc;
  --s-sans: system-ui, -apple-system, 'Segoe UI', sans-serif;
  --s-serif: Georgia, serif;
}

.s-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.s-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ── HERO ───────────────────────────────────────────────────────────────── */
.s-hero { background: var(--s-dark); color: #fff; padding: 4.5rem 1.5rem 3.5rem; text-align: center; }
.s-hero-inner { max-width: 720px; margin: 0 auto; }
.s-hero-tag {
  display: inline-block; font-family: var(--s-sans); font-size: .72rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--s-gold); margin-bottom: 1.25rem;
}
.s-hero h1 {
  font-family: var(--s-serif); font-weight: 400; color: #f5f1e8; margin: 0 0 1.1rem;
  font-size: clamp(1.9rem, 5vw, 2.9rem); line-height: 1.15;
}
.s-hero-sub { font-family: var(--s-sans); font-size: 1.02rem; line-height: 1.65; color: #b5b5b5; margin: 0 auto 1.75rem; max-width: 620px; }
.s-hero .s-form { margin: 0 auto; max-width: 660px; }
.s-hero .s-form-note { color: #8a8a8a; }
.s-proof {
  list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.4rem;
  margin: 1.6rem 0 0; padding: 0; font-family: var(--s-sans); font-size: .82rem; color: #cfcfcf;
}
.s-proof li::before { content: '✓'; color: var(--s-gold); margin-right: .4rem; font-weight: 700; }
.s-hero-alt { margin-top: 1.4rem; font-family: var(--s-sans); font-size: .85rem; color: #8a8a8a; }
.s-hero-alt a { color: var(--s-gold); text-decoration: none; margin: 0 .5rem; }
.s-hero-alt a:hover { text-decoration: underline; }

/* ── FORMULAIRE EMAIL ───────────────────────────────────────────────────── */
.s-form { display: flex; flex-wrap: wrap; gap: .5rem; max-width: 520px; position: relative; }
.s-form input[type=email] {
  flex: 1 1 220px; min-width: 0; padding: .85rem 1rem; border-radius: 6px; border: 1px solid #3a3a3a;
  background: #1b1b1b; color: #fff; font: 1rem var(--s-sans);
}
.s-form input[type=email]::placeholder { color: #8a8a8a; }
.s-form input[type=email]:focus { outline: 2px solid var(--s-gold); outline-offset: 1px; }
.s-form button[type=submit], .s-form-stack button[type=submit], .s-btn {
  flex: 0 0 auto; padding: .85rem 1.4rem; border: 0; border-radius: 6px; cursor: pointer;
  background: var(--s-gold); color: var(--s-dark); font: 700 .95rem var(--s-sans); letter-spacing: .02em;
  transition: opacity .2s; text-decoration: none; display: inline-block;
}
.s-form button[type=submit]:hover, .s-form-stack button[type=submit]:hover, .s-btn:hover { opacity: .88; }
.s-form button[disabled] { opacity: .55; cursor: wait; }
.s-form-msg { flex: 1 0 100%; margin: .25rem 0 0; min-height: 1.2em; font: .88rem var(--s-sans); text-align: left; }
.s-form-msg:empty { display: none; }
.s-form-msg.ok { color: #7bd88f; }
.s-form-msg.err { color: #ff8a80; }
.s-form-note { font: .76rem/1.5 var(--s-sans); color: var(--s-muted); margin: .6rem auto 0; max-width: 520px; }

/* ── BLOC NEWSLETTER (fin d'article / pages) ────────────────────────────── */
.s-newsletter { background: var(--s-dark); color: #fff; border-radius: 10px; margin: 3rem auto; max-width: 760px; }
.s-newsletter-inner { padding: 2rem 1.75rem; text-align: center; }
.s-newsletter h2 { font: 400 1.45rem/1.3 var(--s-serif); color: #f5f1e8; margin: 0 0 .6rem; }
.s-newsletter p.s-lead { font: .95rem/1.6 var(--s-sans); color: #b5b5b5; margin: 0 auto 1.25rem; max-width: 520px; }
.s-newsletter .s-form { margin: 0 auto; }
.s-newsletter .s-form-note { color: #8a8a8a; }
body > .s-newsletter { margin: 3rem 1.5rem; max-width: none; }
@media (min-width: 840px) { body > .s-newsletter { margin: 3rem auto; max-width: 900px; } }

/* ── RUBRIQUES ──────────────────────────────────────────────────────────── */
.s-cats-wrap { max-width: 900px; margin: 0 auto; padding: 2rem 1.5rem 0; }
.s-cats-label { font: 700 .72rem var(--s-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--s-muted); margin-bottom: .75rem; }
.s-cats { display: flex; flex-wrap: wrap; gap: .6rem; }
.s-cats a {
  display: inline-block; padding: .45rem .95rem; background: #fff; border: 1px solid var(--s-border); border-radius: 100px;
  font: .84rem var(--s-sans); color: var(--s-text); text-decoration: none; transition: border-color .2s, color .2s;
}
.s-cats a:hover { border-color: var(--s-gold); color: #8a6d1f; }
.s-cats a[aria-current=page] { background: var(--s-dark); border-color: var(--s-dark); color: var(--s-gold); }
.s-cats-row + .s-cats-row { margin-top: .6rem; }

.s-h2 { font: 700 1.25rem var(--s-sans); margin: 0 0 1.25rem; color: var(--s-text); }
.s-section { max-width: 900px; margin: 0 auto; padding: 2.5rem 1.5rem 0; }
.s-section .articles-grid { margin-top: 0; }

.s-cat-head { background: var(--s-dark); color: #fff; padding: 3rem 1.5rem 2.5rem; text-align: center; }
.s-cat-head h1 { font: 400 clamp(1.7rem, 4vw, 2.4rem)/1.2 var(--s-serif); color: #f5f1e8; margin: 0 0 .75rem; }
.s-cat-head p { font: 1rem/1.6 var(--s-sans); color: #b5b5b5; max-width: 600px; margin: 0 auto; }

.s-upcoming { list-style: none; padding: 0; margin: 0; font-family: var(--s-sans); font-size: .92rem; }
.s-upcoming li { padding: .7rem 0; border-bottom: 1px solid var(--s-border); display: flex; gap: 1rem; }
.s-upcoming time { flex: 0 0 5.5rem; color: var(--s-muted); font-size: .82rem; padding-top: .1rem; }
.s-empty { font: .95rem/1.6 var(--s-sans); color: var(--s-muted); background: #fff; border: 1px dashed var(--s-border); border-radius: 8px; padding: 1.25rem; }

/* ── PAGES DE CONTENU ───────────────────────────────────────────────────── */
.s-page { max-width: 720px; margin: 0 auto; padding: 3rem 1.5rem 1rem; }
.s-page h1 { font: 400 clamp(1.7rem, 4vw, 2.3rem)/1.25 var(--s-serif); margin: 0 0 1rem; }
.s-page .s-intro { font: 1.02rem/1.7 var(--s-sans); color: var(--s-muted); margin-bottom: 2rem; }
.s-page h2 { font: 700 1.15rem var(--s-sans); margin: 2.2rem 0 .7rem; }
.s-page p, .s-page li { font-size: .98rem; line-height: 1.7; }
.s-page p { margin: 0 0 1rem; }
.s-page ul, .s-page ol { padding-left: 1.3rem; margin: 0 0 1.2rem; }
.s-page li { margin-bottom: .45rem; }
.s-page code, .s-quote {
  background: #f5f1e8; border-left: 3px solid var(--s-gold); padding: .7rem 1rem; display: block;
  font: .9rem/1.6 var(--s-sans); margin: 0 0 1.2rem; border-radius: 0 6px 6px 0;
}
.s-form-stack { background: #fff; border: 1px solid var(--s-border); border-radius: 10px; padding: 1.5rem; margin: 1.5rem 0 3rem; display: block; max-width: none; }
.s-field { margin-bottom: 1.1rem; text-align: left; }
.s-field label { display: block; font: 600 .86rem var(--s-sans); margin-bottom: .35rem; color: var(--s-text); }
.s-field small { display: block; font: .78rem var(--s-sans); color: var(--s-muted); margin-top: .25rem; }
.s-field input, .s-field textarea {
  width: 100%; padding: .75rem .9rem; border: 1px solid #d6d1c4; border-radius: 6px; background: #fff;
  font: .95rem var(--s-sans); color: var(--s-text);
}
.s-field textarea { min-height: 190px; resize: vertical; line-height: 1.55; }
.s-field input:focus, .s-field textarea:focus { outline: 2px solid var(--s-gold); outline-offset: 1px; }
.s-check { display: flex; gap: .6rem; align-items: flex-start; font: .86rem/1.5 var(--s-sans); margin-bottom: 1.2rem; text-align: left; }
.s-check input { margin-top: .25rem; flex: 0 0 auto; }
.s-terms { font: .82rem/1.5 var(--s-sans); color: var(--s-muted); margin: .5rem 0 1rem; }
.s-form-stack .s-form-msg.ok { color: #1e7a3a; }
.s-form-stack .s-form-msg.err { color: #b3261e; }

body:has(.sticky-cta) .site-footer { padding-bottom: 6rem; }

/* ── FOOTER ─────────────────────────────────────────────────────────────── */
.site-footer { background: var(--s-dark); color: rgba(255,255,255,.55); padding: 3rem 1.5rem 2rem; text-align: left; font: .85rem/1.6 var(--s-sans); }
.sf-inner { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.sf-logo { font: 400 1.25rem var(--s-serif); color: var(--s-gold) !important; text-decoration: none; }
.sf-brand p { margin: .6rem 0 0; max-width: 300px; }
.sf-col h4 { color: #fff; font: 700 .72rem var(--s-sans); letter-spacing: .12em; text-transform: uppercase; margin: 0 0 .8rem; }
.sf-col a { display: block; color: rgba(255,255,255,.6); text-decoration: none; padding: .2rem 0; }
.sf-col a:hover { color: var(--s-gold); }
.sf-legal { max-width: 1000px; margin: 2.2rem auto 0; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.12); font-size: .78rem; line-height: 1.6; }
.sf-legal a { color: var(--s-gold); text-decoration: underline; }
@media (max-width: 700px) {
  .sf-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .s-hero { padding: 3rem 1.25rem 2.5rem; }
  .s-newsletter-inner { padding: 1.6rem 1.1rem; }
  .nav-write { display: none; }
  .s-upcoming li { flex-direction: column; gap: .1rem; }
}
