/* ================================================================
   sylvain-marchand.fr : feuille du site public (ZONE SITE, preservee)
   Charte : bleu nuit et or, Playfair Display (titres) + Source Sans 3.
   ================================================================ */

/* Polices hebergees sur le site (aucun appel a Google Fonts) */
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/playfair-display-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Playfair Display'; font-style: italic; font-weight: 400; font-display: swap; src: url('fonts/playfair-display-latin-400-italic.woff2') format('woff2'); }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/playfair-display-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 900; font-display: swap; src: url('fonts/playfair-display-latin-900-normal.woff2') format('woff2'); }
@font-face { font-family: 'Source Sans 3'; font-style: normal; font-weight: 300; font-display: swap; src: url('fonts/source-sans-3-latin-300-normal.woff2') format('woff2'); }
@font-face { font-family: 'Source Sans 3'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/source-sans-3-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Source Sans 3'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/source-sans-3-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Source Sans 3'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/source-sans-3-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Source Sans 3'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/source-sans-3-latin-700-normal.woff2') format('woff2'); }

:root {
  --navy: #1b2838;
  --navy-deep: #0f1922;
  --gold: #c4a54d;
  --gold-light: #d4ba6a;
  --gold-ink: #8a6d1f;        /* or lisible sur fond clair */
  --gold-ink-hover: #5f4a12;
  --paper: #faf7f1;
  --cream: #f2ece1;
  --line: #e6dfd2;
  --line-soft: #eee7da;
  --text: #2c2c2c;
  --text-2: #4a4540;
  --muted: #6b6560;
  --humeur-ink: #7a3b14;
  --humeur-bg: #f6e3d3;
  --recherche-bg: #e3e8ef;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Source Sans 3', system-ui, sans-serif;
  --wrap: 1180px;
  --radius: 6px;

  /* Blocs du socle (si des pages composees par blocs sont ajoutees) */
  --msb-accent: #c4a54d;
  --msb-text: #2c2c2c;
  --msb-radius: 6px;
  --msb-max: 1180px;
  --msb-font-head: 'Playfair Display', Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); background: var(--paper); color: var(--text); line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; height: auto; }
a { color: var(--gold-ink); }
a:hover { color: var(--gold-ink-hover); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.site-body { display: block; }

.sm-skip { position: absolute; left: -9999px; top: 0; background: var(--gold); color: var(--navy-deep); padding: 10px 16px; z-index: 300; font-weight: 700; }
.sm-skip:focus { left: 8px; top: 8px; }

/* ---------- En-tete ---------- */
.sm-header { position: sticky; top: 0; z-index: 100; background: rgba(15, 25, 34, .97); border-bottom: 1px solid rgba(196, 165, 77, .18); }
.sm-nav { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.sm-logo { font-family: var(--serif); font-weight: 700; font-size: 19px; color: #fff; text-decoration: none; letter-spacing: .3px; }
.sm-logo:hover { color: #fff; }
.sm-logo span { color: var(--gold); }
.sm-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 28px; }
.sm-menu a { color: rgba(255, 255, 255, .75); text-decoration: none; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 500; transition: color .2s; }
.sm-menu a:hover, .sm-menu a.is-active { color: var(--gold-light); }
.sm-menu a.sm-nav-cta { color: var(--gold); font-weight: 600; border: 1px solid rgba(196, 165, 77, .5); padding: 9px 16px; border-radius: 3px; }
.sm-menu a.sm-nav-cta:hover, .sm-menu a.sm-nav-cta.is-current { background: var(--gold); color: var(--navy-deep); border-color: var(--gold); }
.sm-burger { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; background: none; border: 1px solid rgba(196, 165, 77, .4); border-radius: 4px; color: var(--gold); cursor: pointer; }

@media (max-width: 820px) {
  .sm-nav { padding: 0 16px; min-height: 60px; flex-wrap: wrap; }
  .sm-burger { display: inline-flex; }
  .sm-menu { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0 16px; }
  .sm-menu.is-open { display: flex; }
  .sm-menu a { display: flex; align-items: center; min-height: 48px; font-size: 14px; border-top: 1px solid rgba(255, 255, 255, .06); }
  .sm-menu a.sm-nav-cta { justify-content: center; margin-top: 12px; border-top: 1px solid rgba(196, 165, 77, .5); }
}

/* ---------- Elements communs ---------- */
.sm-wrap { max-width: var(--wrap); margin: 0 auto; }
.sm-narrow { max-width: 820px; }
.sm-narrow-l { max-width: 820px; }
.sm-eyebrow { margin: 0 0 16px; font-size: 12px; letter-spacing: 4px; text-transform: uppercase; color: var(--gold-ink); font-weight: 700; }
.sm-eyebrow--light { color: var(--gold); }
.sm-h2 { margin: 0 0 14px; font-family: var(--serif); font-size: clamp(30px, 4vw, 44px); line-height: 1.15; font-weight: 700; color: var(--navy); max-width: 820px; }
.sm-h2--small { font-size: clamp(26px, 3vw, 32px); margin-bottom: 32px; }
.sm-sub { margin: 0 0 56px; font-size: 16px; color: var(--muted); }
.sm-section { padding: 112px 32px; }
.sm-section--tight { padding-top: 56px; }
.sm-section--cream { background: var(--cream); }
.sm-section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 48px; }
.sm-section-head .sm-sub { margin-bottom: 0; }
.sm-empty { color: var(--muted); font-size: 16px; }

.sm-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 28px; font-family: var(--sans); font-size: 13px; letter-spacing: 2px; text-transform: uppercase; font-weight: 700; border-radius: 4px; text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.sm-btn--gold { background: var(--gold); color: var(--navy-deep); }
.sm-btn--gold:hover { background: var(--gold-light); color: var(--navy-deep); transform: translateY(-1px); }
.sm-btn--outline { border-color: rgba(196, 165, 77, .5); color: #fff; font-weight: 500; }
.sm-btn--outline:hover { border-color: var(--gold-light); color: var(--gold-light); }
.sm-btn--navy { background: var(--navy); color: #fff; font-weight: 600; }
.sm-btn--navy:hover { background: var(--navy-deep); color: #fff; }
.sm-btn--ghost { background: transparent; border-color: rgba(255, 255, 255, .3); color: rgba(255, 255, 255, .85); font-weight: 600; }
.sm-btn--ghost:hover { border-color: rgba(255, 255, 255, .6); color: #fff; }
.sm-ctas { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Accueil : bandeau ---------- */
.sm-hero { background: var(--navy-deep); padding: 96px 32px 112px; }
.sm-hero-in { max-width: var(--wrap); margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 64px; }
.sm-hero-text { flex: 999 1 520px; min-width: 0; }
.sm-hero-title { margin: 0 0 28px; font-family: var(--serif); font-size: clamp(48px, 7vw, 72px); line-height: 1.02; font-weight: 900; color: #fff; }
.sm-hero-title span { color: var(--gold); }
.sm-hero-bio { margin: 0 0 28px; max-width: 540px; font-size: 19px; line-height: 1.7; font-weight: 300; color: rgba(255, 255, 255, .8); }
.sm-hero-quote { margin: 0 0 44px; max-width: 520px; font-family: var(--serif); font-style: italic; font-size: 17px; line-height: 1.65; color: var(--gold-light); }
.sm-hero-portrait { flex: 1 1 280px; max-width: 340px; position: relative; }
.sm-hero-portrait::before { content: ''; position: absolute; inset: 18px -18px -18px 18px; border: 1px solid rgba(196, 165, 77, .45); border-radius: 4px; }
.sm-hero-portrait img { position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; }

/* ---------- Accueil : travaux ---------- */
.sm-question { background: var(--navy); border-radius: var(--radius); padding: 48px 56px; margin-bottom: 72px; }
.sm-question blockquote { margin: 0; font-family: var(--serif); font-style: italic; font-size: clamp(19px, 2.2vw, 26px); line-height: 1.55; color: #fff; }
.sm-question--small { padding: 32px; margin: 40px 0; }
.sm-question-text { margin: 0; font-family: var(--serif); font-style: italic; font-size: clamp(19px, 2vw, 24px); line-height: 1.5; color: #fff; }
.sm-question .sm-eyebrow { margin-bottom: 14px; letter-spacing: 3px; }
.sm-pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 40px; margin-bottom: 72px; }
.sm-pillar { border-top: 2px solid var(--gold); padding-top: 24px; }
.sm-pillar-num { margin: 0 0 12px; font-family: var(--serif); font-size: 40px; font-weight: 700; color: var(--gold-ink); line-height: 1; }
.sm-pillar h3 { margin: 0 0 12px; font-size: 20px; font-weight: 700; color: var(--navy); }
.sm-pillar p:last-child { margin: 0; font-size: 16px; line-height: 1.7; color: var(--text-2); }
.sm-methods { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.sm-method { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.sm-method p:last-child { margin: 0; font-size: 15px; line-height: 1.7; color: var(--text-2); }
.sm-method-label { display: block; margin: 0 0 10px; font-size: 12px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--gold-ink); font-weight: 700; }

/* ---------- Cartes d'articles ---------- */
.sm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.sm-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; text-decoration: none; color: inherit; transition: border-color .2s, transform .2s, box-shadow .2s; }
.sm-card:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(27, 40, 56, .08); color: inherit; }
.sm-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 18px; }
.sm-card-tag { font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.sm-card-title { margin: 0 0 14px; font-family: var(--serif); font-size: 21px; line-height: 1.38; font-weight: 700; color: var(--navy); }
.sm-card-excerpt { display: block; margin: 0 0 24px; font-size: 15px; line-height: 1.65; color: var(--text-2); flex-grow: 1; }
.sm-card-foot { display: flex; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line-soft); font-size: 14px; color: var(--muted); }
.sm-card-more { color: var(--gold-ink); font-weight: 600; }
.sm-badge { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 5px 10px; border-radius: 3px; text-decoration: none; }
.sm-badge--recherche { color: var(--navy); background: var(--recherche-bg); }
.sm-badge--humeur { color: var(--humeur-ink); background: var(--humeur-bg); }
.sm-badge--onDark { color: var(--navy-deep); background: var(--gold); }
a.sm-badge--onDark:hover { color: var(--navy-deep); background: var(--gold-light); }

.sm-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.sm-filter { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 22px; font-size: 15px; font-weight: 600; text-decoration: none; background: #fff; color: var(--navy); border: 1px solid #d8cfbf; }
.sm-filter:hover { border-color: var(--navy); color: var(--navy); }
.sm-filter.is-active { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---------- Bandeau des pages internes ---------- */
.sm-pagehero { background: var(--navy); padding: 72px 32px 80px; }
.sm-pagehero--small { padding: 56px 32px 56px; }
.sm-pagehero-title { margin: 0 0 16px; font-family: var(--serif); font-size: clamp(38px, 5.5vw, 56px); line-height: 1.1; font-weight: 900; color: #fff; }
.sm-pagehero--small .sm-pagehero-title { margin: 0; }
.sm-pagehero-sub { margin: 0; max-width: 640px; font-size: 19px; line-height: 1.6; font-weight: 300; color: rgba(255, 255, 255, .8); }
.sm-pagehero-tag { margin: 0; font-size: 15px; letter-spacing: 3px; text-transform: uppercase; color: rgba(255, 255, 255, .8); }
.sm-crumbs { display: flex; flex-wrap: wrap; gap: 10px; font-size: 14px; margin-bottom: 28px; color: rgba(255, 255, 255, .5); }
.sm-crumbs a { color: rgba(255, 255, 255, .72); text-decoration: none; }
.sm-crumbs a:hover { color: #fff; }
.sm-crumbs [aria-current] { color: var(--gold-light); }

/* ---------- A propos ---------- */
.sm-about { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 64px; }
.sm-about-side { flex: 1 1 280px; max-width: 340px; display: flex; flex-direction: column; gap: 24px; }
.sm-about-portrait { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.sm-about-text { flex: 999 1 520px; min-width: 0; max-width: 720px; }
.sm-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; }
.sm-box a { display: flex; align-items: center; min-height: 44px; font-size: 16px; font-weight: 600; color: var(--navy); text-decoration: none; border-bottom: 1px solid var(--line-soft); }
.sm-box a:last-child { border-bottom: 0; }
.sm-box a:hover { color: var(--gold-ink); }
.sm-faq { display: flex; flex-direction: column; gap: 12px; }
.sm-faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 24px; }
.sm-faq summary { min-height: 60px; display: flex; align-items: center; font-size: 18px; font-weight: 600; color: var(--navy); cursor: pointer; list-style-position: inside; }
.sm-faq details p { margin: 0 0 22px; font-size: 16px; line-height: 1.7; color: var(--text-2); }

/* ---------- Texte courant (bio, pages legales, articles) ---------- */
.sm-prose { font-size: 19px; line-height: 1.8; color: var(--text); }
.sm-prose p { margin: 0 0 26px; }
.sm-prose h2 { margin: 48px 0 18px; font-family: var(--serif); font-size: 30px; line-height: 1.3; font-weight: 700; color: var(--navy); }
.sm-prose h3 { margin: 32px 0 12px; font-size: 21px; font-weight: 700; color: var(--navy); }
.sm-prose h4 { margin: 28px 0 10px; font-size: 18px; font-weight: 700; color: var(--navy); }
.sm-prose strong { font-weight: 700; color: var(--navy); }
.sm-prose ul, .sm-prose ol { margin: 0 0 26px; padding-left: 26px; }
.sm-prose li { margin-bottom: 8px; line-height: 1.7; }
.sm-prose a { color: var(--gold-ink); text-decoration: underline; text-underline-offset: 3px; }
.sm-prose blockquote { margin: 36px 0; padding: 26px 30px; background: var(--cream); border-radius: var(--radius); font-family: var(--serif); font-style: italic; font-size: 21px; line-height: 1.6; color: var(--navy); }
.sm-legal { font-size: 17px; }
.sm-legal h2 { font-size: 26px; margin-top: 40px; }
.sm-legal h2:first-child { margin-top: 0; }
.sm-about-text > p:first-child, .sm-about-text > *:first-child { margin-top: 0; }

/* ---------- Article ---------- */
.sm-arthero { padding: 64px 32px 72px; }
.sm-artmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 24px; font-size: 14px; color: rgba(255, 255, 255, .75); }
.sm-arttitle { margin: 0 0 24px; font-family: var(--serif); font-size: clamp(32px, 4.5vw, 46px); line-height: 1.18; font-weight: 700; color: #fff; }
.sm-artexcerpt { margin: 0 0 36px; font-size: 19px; line-height: 1.65; font-weight: 300; color: rgba(255, 255, 255, .82); }
.sm-author { display: flex; align-items: center; gap: 14px; }
.sm-author img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); }
.sm-author a { display: block; color: #fff; text-decoration: none; font-weight: 600; font-size: 16px; }
.sm-author a:hover { color: var(--gold-light); }
.sm-author span { font-size: 14px; color: rgba(255, 255, 255, .68); }
.sm-artcover { max-width: 1000px; margin: -32px auto 0; padding: 0 32px; }
.sm-artcover img { display: block; width: 100%; border-radius: var(--radius); }
.sm-article { padding: 72px 32px 40px; }
.sm-artbody, .sm-refs { max-width: 720px; margin: 0 auto; }

/* Sommaire des articles */
.sm-tocwrap { max-width: 720px; margin: 0 auto 48px; }
.sm-toc { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: var(--radius); padding: 22px 26px; }
.sm-toc-title { margin: 0 0 10px; font-size: 12px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--gold-ink); font-weight: 700; }
.sm-toc ol { margin: 0; padding-left: 22px; font-size: 16px; line-height: 1.5; }
.sm-toc li { margin: 6px 0; }
.sm-toc a { color: var(--navy); text-decoration: none; }
.sm-toc a:hover { color: var(--gold-ink); text-decoration: underline; }
.sm-artbody h2[id] { scroll-margin-top: 88px; }

/* Classes editoriales des articles (reprises de l'ancien site) */
.sm-artbody .art-sep { display: block; width: 64px; height: 2px; margin: 48px auto; background: var(--gold); }
.sm-artbody .art-sup { font-size: .68em; vertical-align: super; line-height: 0; color: var(--gold-ink); font-weight: 700; }
.sm-artbody .art-small { display: block; margin-top: 12px; font-family: var(--sans); font-style: normal; font-size: 14px; color: var(--muted); }
.sm-artbody .pull-quote { margin: 40px 0; }
.sm-artbody .data-box { margin: 36px 0; padding: 26px 28px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: var(--radius); display: flex; flex-direction: column; gap: 6px; }
.sm-artbody .data-value { font-family: var(--serif); font-size: 38px; font-weight: 700; color: var(--navy); line-height: 1.1; }
.sm-artbody .data-label { font-size: 16px; line-height: 1.6; color: var(--text-2); }
.sm-artbody .data-source { font-size: 13px; color: var(--muted); margin-top: 6px; }
.sm-artbody .callout { margin: 36px 0; padding: 22px 26px; background: rgba(196, 165, 77, .09); border: 1px solid rgba(196, 165, 77, .28); border-radius: var(--radius); font-size: 17px; line-height: 1.75; color: var(--text-2); }
.sm-artbody .callout strong:first-child { display: block; margin-bottom: 10px; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--navy); }
.sm-artbody .references, .sm-refs { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.65; color: var(--text-2); }
.sm-artbody .references h2, .sm-refs h2 { margin: 0 0 16px; font-size: 22px; }
.sm-artbody .references ul, .sm-refs ul { list-style: none; padding-left: 0; }
.sm-artbody .references li, .sm-refs li { padding-left: 24px; text-indent: -24px; margin-bottom: 10px; }
.sm-refs-norm { font-style: italic; font-size: 14px; color: var(--muted); }

.sm-share { padding: 0 32px 56px; }
.sm-share-in { max-width: 720px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 20px 0; }
.sm-share-label { margin-right: 8px; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.sm-sharebtn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid #d8cfbf; border-radius: 4px; background: #fff; color: var(--navy); font-family: var(--sans); font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer; }
.sm-sharebtn:hover { border-color: var(--navy); color: var(--navy); }

.sm-authorcard-wrap { padding: 0 32px 72px; }
.sm-authorcard { max-width: 720px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; text-decoration: none; color: inherit; }
.sm-authorcard:hover { border-color: var(--gold); color: inherit; }
.sm-authorcard img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; }
.sm-authorcard > span { flex: 1 1 300px; display: flex; flex-direction: column; }
.sm-authorcard-name { font-family: var(--serif); font-size: 22px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.sm-authorcard-bio { font-size: 15px; line-height: 1.6; color: var(--text-2); }

.sm-neighbors { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.sm-neighbor { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; text-decoration: none; color: inherit; }
.sm-neighbor:hover { border-color: var(--gold); color: inherit; }
.sm-neighbor--next { text-align: right; }
.sm-neighbor-meta { display: block; margin-bottom: 10px; font-size: 13px; color: var(--muted); }
.sm-neighbor-title { display: block; font-family: var(--serif); font-size: 20px; line-height: 1.4; font-weight: 700; color: var(--navy); }

/* ---------- Pied de page ---------- */
.sm-footer { background: var(--navy-deep); padding: 72px 32px 40px; color: rgba(255, 255, 255, .72); text-align: center; }
.sm-footer-in { max-width: var(--wrap); margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.sm-footer-name { margin: 0; font-family: var(--serif); font-size: 28px; font-weight: 700; color: #fff; }
.sm-footer-name span { color: var(--gold); }
.sm-footer-tag { margin: 0 0 6px; font-size: 13px; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); }
.sm-footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 28px; font-size: 15px; }
.sm-footer-links a { display: inline-flex; align-items: center; min-height: 44px; color: rgba(255, 255, 255, .8); text-decoration: none; }
.sm-footer-links a:hover { color: var(--gold-light); }
.sm-footer-legal { font-size: 14px; }
.sm-footer-legal a { color: rgba(255, 255, 255, .62); }
.sm-copy { margin: 10px 0 0; font-size: 13px; color: rgba(255, 255, 255, .5); }


/* ---------- Apparition au defilement ---------- */
.sm-js .sm-reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.sm-js .sm-reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sm-js .sm-reveal { opacity: 1; transform: none; transition: none; }
  .sm-card, .sm-btn { transition: none; }
}

/* ---------- Petits ecrans ---------- */
@media (max-width: 720px) {
  .sm-hero { padding: 40px 16px 56px; }
  .sm-hero-in { flex-direction: column-reverse; align-items: flex-start; gap: 36px; }
  .sm-hero-portrait { width: 200px; flex: none; }
  .sm-hero-portrait::before { inset: 12px -12px -12px 12px; }
  .sm-hero-bio { font-size: 17px; }
  .sm-ctas { flex-direction: column; width: 100%; }
  .sm-ctas .sm-btn { width: 100%; }
  .sm-section { padding: 56px 16px; }
  .sm-pagehero, .sm-arthero { padding: 48px 16px 56px; }
  .sm-question { padding: 28px 22px; margin-bottom: 40px; }
  .sm-pillars { gap: 32px; margin-bottom: 40px; }
  .sm-grid { grid-template-columns: 1fr; }
  .sm-card { padding: 22px; }
  .sm-about { gap: 40px; }
  .sm-prose { font-size: 17px; }
  .sm-prose h2 { font-size: 25px; }
  .sm-article { padding: 48px 16px 32px; }
  .sm-share, .sm-authorcard-wrap { padding-left: 16px; padding-right: 16px; }
  .sm-artcover { padding: 0 16px; }
  .sm-neighbor--next { text-align: left; }
  .sm-footer { padding: 48px 16px 32px; }
}

/* ---------- Impression (bouton Imprimer / PDF des articles) ---------- */
@media print {
  .sm-header, .sm-footer, .sm-share, .sm-authorcard-wrap, .sm-section--cream, .sm-crumbs, .sm-skip { display: none !important; }
  body { background: #fff; }
  .sm-arthero { background: #fff; padding: 0 0 12pt; }
  .sm-arttitle, .sm-artexcerpt, .sm-artmeta, .sm-author a, .sm-author span { color: #111 !important; }
  .sm-badge--onDark { background: none; color: #111; padding: 0; }
  .sm-article { padding: 0; }
  .sm-prose { font-size: 11pt; line-height: 1.7; color: #111; }
  .sm-prose h2 { font-size: 15pt; break-after: avoid; }
  .sm-prose a::after { content: " (" attr(href) ")"; font-size: 8pt; color: #666; }
}

/* Appel a temoignages / contact (v1.0.6) */
.sm-callbox { max-width: 720px; margin: 0 auto; background: var(--cream, #faf7f1); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: var(--radius); padding: 24px 28px; }
.sm-callbox p { margin: 0 0 10px; font-size: 16px; line-height: 1.6; color: var(--text-2); }
.sm-callbox p:last-child { margin-bottom: 0; }
.sm-callbox strong { color: var(--navy); }
.sm-callbox a { font-weight: 700; color: var(--navy); }
.sm-callbox-wrap { padding: 0 32px 40px; }
.sm-section .sm-callbox { margin-top: 40px; }
@media (max-width: 720px) { .sm-callbox-wrap { padding-left: 16px; padding-right: 16px; } }
@media print { .sm-callbox-wrap { display: none !important; } }

/* ================================================================
   v2 (v1.0.7) : programme, methodologie, publications, profil
   ================================================================ */
.sm-status { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 40px; padding: 8px 14px; border: 1px solid rgba(196, 165, 77, .4); border-radius: 3px; font-size: 14px; line-height: 1.4; color: var(--gold-light); }
.sm-status span { flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.sm-question-note { margin: 14px 0 0; font-size: 14px; color: rgba(255, 255, 255, .65); }
.sm-pillar .sm-method-label { margin-bottom: 6px; }
.sm-more { font-weight: 700; color: var(--navy); }
.sm-more:hover { color: var(--gold-ink); }
.sm-lead { margin: 0 0 32px; max-width: 760px; font-size: 17px; line-height: 1.7; color: var(--text-2); }
.sm-note { margin: 12px 0 0; font-size: 14px; color: var(--muted); }
.sm-mt { margin-top: 64px; }
.sm-mt-s { margin-top: 24px; }
.sm-section--call { padding-top: 72px; padding-bottom: 72px; }
.sm-callbox .sm-btn { margin-top: 6px; }
.sm-callbox a.sm-btn, .sm-callbox a.sm-btn:hover { color: #fff; }
.sm-method--top { border-top: 3px solid var(--gold); }
.sm-method h3 { margin: 0 0 10px; font-family: var(--serif); font-size: 21px; color: var(--navy); }
.sm-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Avancement */
.sm-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.sm-steps li { padding: 24px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.sm-steps li:last-child { border-right: 0; }
.sm-steps strong { color: var(--navy); }
.sm-steps span { font-size: 14px; line-height: 1.6; color: var(--text-2); }
.sm-steps .sm-steps-state { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.sm-steps li.is-done .sm-steps-state { color: #2e6b3a; }
.sm-steps li.is-current .sm-steps-state { color: var(--gold-ink); }
.sm-steps li.is-current { background: #fbf6ea; }

/* Onglets des pages Recherche */
.sm-pagehero--tabs { padding-bottom: 0; }
.sm-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 40px; }
.sm-tabs a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; border-radius: 6px 6px 0 0; }
.sm-tabs a[aria-current="page"] { background: var(--paper); color: var(--navy); font-weight: 700; }
.sm-tabs a:hover { color: var(--gold-light); }
.sm-tabs a[aria-current="page"]:hover { color: var(--navy); }

/* Propositions */
.sm-props { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); max-width: 900px; }
.sm-props li { display: flex; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.sm-props-num { flex: 0 0 52px; font-family: var(--serif); font-size: 26px; font-weight: 700; color: var(--gold-ink); line-height: 1.2; }
.sm-props strong { display: block; margin-bottom: 4px; color: var(--navy); }
.sm-props p { margin: 0; font-size: 16px; line-height: 1.65; color: var(--text-2); }

/* Typologie (tableau a deux axes) */
.sm-typo-wrap { overflow-x: auto; }
.sm-typo { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 15px; }
.sm-typo th, .sm-typo td { border: 1px solid var(--line); padding: 18px 20px; vertical-align: top; text-align: left; }
.sm-typo thead th, .sm-typo tbody th { background: var(--navy); color: #fff; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; font-weight: 600; }
.sm-typo tbody th { background: #2a3a4d; width: 26%; }
.sm-typo thead td { border: 0; }
.sm-typo td { background: #fff; }
.sm-typo td strong { display: block; margin-bottom: 4px; color: var(--navy); }
.sm-typo td span { display: block; font-size: 14px; line-height: 1.6; color: var(--text-2); }
.sm-typo td.is-hyp { background: #fbf6ea; }

/* Methodologie */
.sm-flag { display: inline-flex; margin: 0 0 28px; padding: 8px 14px; background: #fbf6ea; border: 1px solid var(--line); border-radius: 3px; font-size: 14px; font-weight: 600; color: var(--gold-ink); }
.sm-design { list-style: none; margin: 0 0 64px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.sm-design li { padding: 24px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.sm-design li:last-child { border-right: 0; }
.sm-design-num { font-family: var(--serif); font-size: 28px; font-weight: 700; color: var(--gold-ink); line-height: 1; }
.sm-design strong { color: var(--navy); }
.sm-design span:last-child { font-size: 14px; line-height: 1.6; color: var(--text-2); }
.sm-protocol h2 { font-size: 28px; margin-top: 48px; }
.sm-protocol h2:first-child { margin-top: 0; }

/* Publications */
.sm-notice { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 48px; font-size: 15px; line-height: 1.6; color: var(--text-2); }
.sm-notice strong { color: var(--navy); }
.sm-publist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.sm-pubrow { padding: 18px 0; border-bottom: 1px solid var(--line); }
.sm-pubrow-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 6px; font-size: 14px; color: var(--muted); }
.sm-pubrow-title { font-size: 18px; line-height: 1.5; color: var(--navy); text-decoration: none; font-weight: 600; }
.sm-pubrow-title:hover { color: var(--gold-ink); }
.sm-box--text p:last-child { margin: 0; font-size: 15px; line-height: 1.65; color: var(--text-2); }

/* Profil (A propos) */
.sm-pagehero--profile .sm-profile { display: flex; flex-wrap: wrap; align-items: center; gap: 40px; }
.sm-profile-photo { width: 180px; height: 180px; border-radius: 50%; object-fit: cover; border: 3px solid var(--gold); }
.sm-parcours { list-style: none; margin: 0 0 40px; padding: 0; border-top: 1px solid var(--line); }
.sm-parcours li { display: flex; flex-wrap: wrap; gap: 6px 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.sm-parcours-date { flex: 0 0 130px; font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--gold-ink); }
.sm-parcours li > div { flex: 1 1 380px; }
.sm-parcours strong { color: var(--navy); }
.sm-parcours p { margin: 4px 0 0; font-size: 15px; line-height: 1.6; color: var(--text-2); }

@media (max-width: 720px) {
  .sm-steps li, .sm-design li { border-right: 0; border-bottom: 1px solid var(--line); }
  .sm-steps li:last-child, .sm-design li:last-child { border-bottom: 0; }
  .sm-tabs { margin-top: 28px; }
  .sm-mt { margin-top: 48px; }
  .sm-profile-photo { width: 120px; height: 120px; }
}

/* v1.0.8 : typologie a quatre criteres, page Participer, mention de revision */
.sm-typo--forms { min-width: 640px; }
.sm-typo--forms thead th { background: var(--navy); }
.sm-typo--forms tbody th { width: 22%; text-transform: none; letter-spacing: 0; font-size: 16px; font-family: var(--serif); }
.sm-typo--forms tbody th em { display: block; margin-top: 6px; font-family: var(--sans, inherit); font-style: normal; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: #e9d29a; }
.sm-typo--forms td:nth-child(2) { width: 24%; }
.sm-typo--forms tr.is-hyp td { background: #fbf6ea; }
.sm-revised { margin: 6px 0 0; font-size: 14px; color: var(--text-2); }
.sm-elig { list-style: none; margin: 0 0 8px; padding: 0; }
.sm-elig li { position: relative; padding: 10px 0 10px 30px; border-bottom: 1px solid var(--line); }
.sm-elig li::before { content: "✓"; position: absolute; left: 4px; top: 10px; color: var(--gold-ink); font-weight: 700; }
.sm-methods--4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.sm-prose ul.sm-elig { padding-left: 0; } .sm-prose ul.sm-elig li { list-style: none; }

/* v1.0.9 : acces reserve aux lecteurs */
.sm-preview { position: relative; }
.sm-lock { margin: 8px 0 40px; padding: 28px 30px; border: 1px solid var(--line); border-left: 4px solid var(--gold-ink); border-radius: 6px; background: #fbf6ea; }
.sm-lock p { margin: 0 0 12px; line-height: 1.65; }
.sm-lock-plan-t { font-weight: 600; color: var(--navy); margin-top: 18px !important; }
.sm-lock-plan { margin: 0 0 18px; padding-left: 22px; color: var(--text-2); line-height: 1.7; }
.sm-lock-ctas { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin: 18px 0 0 !important; }
.sm-readerbar { font-size: 14px; color: var(--text-2); margin: 0 0 20px; padding: 8px 12px; background: #f3efe6; border-radius: 4px; }
.sm-form { display: grid; gap: 8px; max-width: 420px; }
.sm-form label { font-weight: 600; font-size: 14px; color: var(--navy); margin-top: 8px; }
.sm-form input { font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
.sm-form button { margin-top: 14px; justify-self: start; cursor: pointer; border: 0; }
.sm-alert { padding: 12px 16px; border-radius: 4px; margin: 0 0 20px; }
.sm-alert--ok { background: #e3f4ea; color: #17663a; }
.sm-alert--err { background: #fde4e1; color: #8a1f11; }
.sm-read { font-size: 12px; color: #17663a; font-weight: 600; }
.sm-btn--outline-dark { background: transparent; border: 1px solid var(--navy) !important; color: var(--navy); }

/* v1.0.10 : enquete et candidature */
.sm-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.sm-survey { margin-top: 24px; }
.sm-survey-sec { margin: 40px 0 6px; padding-top: 22px; border-top: 2px solid var(--navy); }
.sm-q { border: 0; margin: 0; padding: 22px 0; border-bottom: 1px solid var(--line); }
.sm-q[hidden] { display: none; }
.sm-q legend { float: left; width: 100%; font-weight: 600; color: var(--navy); font-size: 17px; line-height: 1.45; padding: 0; margin: 0 0 12px; display: flex; gap: 12px; align-items: flex-start; }
.sm-q legend + * { clear: both; }
.sm-q-t { flex: 1; padding-top: 3px; }
.sm-q-n { flex: 0 0 30px; margin-top: 0; height: 30px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; }
.sm-q-req { font-weight: 400; font-size: 13px; color: var(--text-2); }
.sm-q-help { margin: -4px 0 12px 42px; font-size: 14px; color: var(--text-2); }
.sm-opts { display: flex; flex-wrap: wrap; gap: 8px; margin-left: 42px; }
.sm-opt { position: relative; cursor: pointer; }
.sm-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sm-opt span { display: inline-block; padding: 9px 14px; border: 1px solid var(--line); border-radius: 22px; background: #fff; font-size: 15px; line-height: 1.3; transition: background .15s, border-color .15s; }
.sm-opt:hover span { border-color: var(--navy); }
.sm-opt input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.sm-opt input:focus-visible + span { outline: 2px solid var(--gold-ink); outline-offset: 2px; }
.sm-opt--s span { padding: 6px 11px; font-size: 13px; }
.sm-grid-q { margin-left: 42px; }
.sm-grid-row { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 10px 0; border-top: 1px dashed var(--line); flex-wrap: wrap; }
.sm-grid-lab { flex: 1 1 260px; font-size: 15px; }
.sm-grid-opts { display: flex; gap: 6px; flex-wrap: wrap; }
.sm-q textarea, .sm-cform textarea { width: 100%; font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 4px; background: #fff; box-sizing: border-box; }
.sm-q textarea { margin-left: 42px; width: calc(100% - 42px); }
.sm-survey button[type=submit] { margin-top: 28px; }
.sm-survey-stop { margin-top: 20px; padding: 12px 16px; background: #fbf6ea; border-radius: 4px; }
.sm-cform { max-width: 560px; }
.sm-choice { border: 0; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.sm-choice legend { font-weight: 600; font-size: 14px; color: var(--navy); margin-bottom: 4px; }
.sm-choice label, .sm-check { font-weight: 400 !important; color: var(--text) !important; font-size: 15px !important; display: flex; gap: 8px; align-items: flex-start; }
.sm-check { margin-top: 12px !important; }
.sm-cform-int { display: grid; gap: 8px; }
@media (max-width: 600px) {
  .sm-opts, .sm-grid-q, .sm-q-help { margin-left: 0; }
  .sm-q textarea { margin-left: 0; width: 100%; }
}
