/* public/seo-pages.css — pages éditoriales (HTML pur, sans React) : même identité que l'application (violet, Inter / Outfit, cartes arrondies). */
@font-face { font-family: Inter; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/fonts/inter-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Inter; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/fonts/inter-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Outfit; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/fonts/outfit-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Outfit; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/fonts/outfit-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  color-scheme: dark;
  --bg: #05070b; --panel: #0a0d14; --panel-2: #101522; --panel-3: #151b2b;
  --border: rgba(224, 228, 255, .12); --border-strong: #273047;
  --text: #f2f4f3; --text-soft: rgba(242, 244, 243, .84); --muted: rgba(242, 244, 243, .64);
  --accent: #8b7cf6; --accent-light: #b5adff; --accent-fg: #090b14; --accent-soft: rgba(139, 124, 246, .14);
  --heading: Outfit, Inter, "Segoe UI", system-ui, sans-serif;
  --body: Inter, "Segoe UI", "Noto Sans", system-ui, sans-serif;
  --radius: 16px; --gutter: clamp(18px, 5vw, 40px); --page: 1040px; --max: var(--page); --read: var(--page);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { position: relative; margin: 0; min-width: 320px; background: var(--bg); color: var(--text); font-family: var(--body); font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(900px 520px at 80% -8%, rgba(139, 124, 246, .17), transparent 62%), radial-gradient(640px 420px at 2% 6%, rgba(139, 124, 246, .08), transparent 60%); }
a { color: var(--accent-light); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--accent-light); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(139, 124, 246, .4); }

/* En-tête : barre collante, marque, navigation en pastilles, bouton d'inscription */
.sm-ed-header { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding: 12px max(var(--gutter), calc(50% - var(--page) / 2 + var(--gutter))); border-bottom: 1px solid var(--border); background: rgba(5, 7, 11, .82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.sm-ed-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-family: var(--heading); font-size: 1.35rem; font-weight: 700; letter-spacing: -.045em; text-decoration: none; }
.sm-ed-brand img { width: 34px; height: 34px; border-radius: 9px; }
.sm-ed-brand:hover { color: #fff; }
.sm-ed-wordmark { word-spacing: .08em; }
.sm-ed-wm-a { color: var(--accent-light); }
.sm-ed-header nav { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.sm-ed-header nav a { padding: 8px 12px; border-radius: 10px; color: var(--text-soft); font-size: .92rem; font-weight: 500; text-decoration: none; white-space: nowrap; transition: background-color .15s, color .15s; }
.sm-ed-header nav a:hover { background: var(--panel-3); color: #fff; }
.sm-ed-header nav a[href="/login"] { border: 1px solid var(--border-strong); margin-inline-start: 6px; }
.sm-ed-header nav a[href="/signup"] { background: var(--accent); color: var(--accent-fg); font-weight: 700; margin-inline-start: 6px; }
.sm-ed-header nav a[href="/signup"]:hover { background: var(--accent-light); color: var(--accent-fg); }

/* Contenu */
.sm-ed-main { width: 100%; max-width: calc(var(--read) + var(--gutter) * 2); margin: 0 auto; padding: clamp(24px, 5vw, 56px) var(--gutter) clamp(48px, 8vw, 96px); }
.sm-ed-crumbs { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 clamp(18px, 3vw, 28px); padding: 5px 12px; border: 1px solid var(--border); border-radius: 999px; background: rgba(10, 13, 20, .7); color: var(--muted); font-size: .8rem; line-height: 1.4; }
.sm-ed-crumbs a { color: var(--muted); text-decoration: none; }
.sm-ed-crumbs a:hover { color: #fff; }
.sm-ed-main h1 { margin: 0 0 20px; color: #fff; font-family: var(--heading); font-size: clamp(2.05rem, 6.2vw, 3.5rem); font-weight: 700; line-height: 1.04; letter-spacing: -.048em; text-wrap: balance; }
.sm-ed-main h1 + p { max-width: 62ch; margin: 0 0 8px; color: var(--text-soft); font-size: clamp(1.05rem, 2.6vw, 1.2rem); line-height: 1.65; }
.sm-ed-main h2 { display: flex; align-items: center; gap: 12px; margin: clamp(40px, 7vw, 64px) 0 16px; font-family: var(--heading); font-size: clamp(1.4rem, 4vw, 1.85rem); font-weight: 600; line-height: 1.2; letter-spacing: -.035em; scroll-margin-top: 84px; text-wrap: balance; }
.sm-ed-main h2::before { content: ""; flex: 0 0 auto; width: 5px; height: 1.15em; border-radius: 3px; background: linear-gradient(180deg, var(--accent-light), var(--accent)); }
.sm-ed-main h3 { margin: 30px 0 8px; padding-top: 24px; border-top: 1px solid var(--border); font-family: var(--heading); font-size: 1.15rem; font-weight: 600; line-height: 1.3; letter-spacing: -.02em; }
.sm-ed-main h2 + h3 { margin-top: 8px; padding-top: 0; border-top: 0; }
.sm-ed-main p { max-width: 72ch; margin: 0 0 16px; color: var(--text-soft); }
.sm-ed-main strong { color: #fff; font-weight: 650; }
.sm-ed-main ul, .sm-ed-main ol { max-width: 72ch; margin: 0 0 20px; padding: 0; list-style: none; }
.sm-ed-main ul > li { position: relative; margin: 0 0 10px; padding-inline-start: 24px; color: var(--text-soft); }
.sm-ed-main ul > li::before { content: ""; position: absolute; inset-inline-start: 4px; top: .72em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.sm-ed-main ol { counter-reset: sm-step; }
.sm-ed-main ol > li { position: relative; counter-increment: sm-step; margin: 0 0 12px; padding-inline-start: 44px; color: var(--text-soft); }
.sm-ed-main ol > li::before { content: counter(sm-step); position: absolute; inset-inline-start: 0; top: .1em; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-light); font-family: var(--heading); font-size: .85rem; font-weight: 700; }

/* Listes de liens (« Voir aussi », « Aller plus loin ») : cartes cliquables */
.sm-ed-main ul.sm-ed-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 12px; max-width: none; }
.sm-ed-links > li { margin: 0; padding: 14px 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--panel); color: var(--muted); font-size: .9rem; line-height: 1.5; transition: border-color .15s, background-color .15s, transform .15s; }
.sm-ed-links > li::before { display: none; }
.sm-ed-links > li:hover { border-color: rgba(139, 124, 246, .55); background: var(--panel-2); transform: translateY(-1px); }
.sm-ed-links a { color: #fff; font-family: var(--heading); font-size: 1.02rem; font-weight: 600; text-decoration: none; }
.sm-ed-links a::after { content: " →"; color: var(--accent-light); }
.sm-ed-links a:hover { color: var(--accent-light); }
.sm-ed-hint { display: block; margin-top: 2px; color: var(--muted); font-size: .88rem; line-height: 1.5; }

/* Tableaux : défilement horizontal, première colonne figée */
.sm-ed-table { margin: 8px 0 24px; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); -webkit-overflow-scrolling: touch; }
.sm-ed-table:focus-visible { outline-offset: 2px; }
.sm-ed-table table { width: 100%; min-width: 600px; border-collapse: separate; border-spacing: 0; }
.sm-ed-table th, .sm-ed-table td { padding: 14px 16px; border-bottom: 1px solid var(--border); text-align: start; vertical-align: top; font-size: .95rem; line-height: 1.55; color: var(--text-soft); }
.sm-ed-table thead th { background: var(--panel-2); color: var(--accent-light); font-family: var(--heading); font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.sm-ed-table tbody th { position: sticky; inset-inline-start: 0; z-index: 1; width: 24%; background: var(--panel); color: #fff; font-weight: 600; }
.sm-ed-table tbody tr:hover th, .sm-ed-table tbody tr:hover td { background: var(--panel-2); }
.sm-ed-table tr:last-child th, .sm-ed-table tr:last-child td { border-bottom: 0; }
.sm-ed-src { margin-inline-start: 6px; font-size: .78rem; white-space: nowrap; }
.sm-ed-note { color: var(--muted); font-size: .9rem; }

/* Appel à l'inscription */
.sm-ed-cta { display: inline-block; padding: 13px 26px; border-radius: 12px; background: linear-gradient(180deg, var(--accent-light), var(--accent)); color: var(--accent-fg); font-family: var(--heading); font-size: 1rem; font-weight: 700; letter-spacing: -.01em; text-decoration: none; box-shadow: 0 12px 30px -12px rgba(139, 124, 246, .75); transition: transform .15s, box-shadow .15s; }
.sm-ed-cta:hover { color: var(--accent-fg); transform: translateY(-1px); box-shadow: 0 16px 36px -12px rgba(139, 124, 246, .9); }
.sm-ed-main p:has(> .sm-ed-cta) { max-width: none; margin: 40px 0 0; padding: clamp(22px, 4vw, 34px); border: 1px solid var(--border); border-radius: 20px; background: radial-gradient(520px 200px at 50% 0, rgba(139, 124, 246, .2), transparent 70%), var(--panel); text-align: center; }

/* Pied de page : groupes de liens avec titre, puis mentions */
.sm-ed-footer { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 44px var(--gutter) 56px; border-top: 1px solid var(--border); color: var(--muted); font-size: .86rem; line-height: 1.65; }
.sm-ed-footer nav { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 24px; }
.sm-ed-footer nav::before { content: attr(aria-label); flex: 0 0 100%; margin-bottom: 4px; color: #fff; font-family: var(--heading); font-size: .74rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.sm-ed-footer nav a { color: var(--muted); text-decoration: none; }
.sm-ed-footer nav a:hover { color: #fff; text-decoration: underline; }
.sm-ed-footer p { max-width: 80ch; margin: 0 0 10px; }
.sm-ed-footer nav:last-of-type { margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.sm-ed-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Mobile : en-tête sur deux lignes (marque puis navigation défilante), cartes pleine largeur */
@media (max-width: 720px) {
  .sm-ed-header { position: static; gap: 8px; padding-block: 10px; }
  .sm-ed-header nav { flex: 1 0 100%; flex-wrap: nowrap; gap: 6px; margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter) 4px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .sm-ed-header nav::-webkit-scrollbar { display: none; }
  .sm-ed-header nav a { flex: 0 0 auto; padding: 8px 14px; border: 1px solid var(--border); background: rgba(10, 13, 20, .7); }
  .sm-ed-header nav a[href="/signup"] { margin: 0; border-color: transparent; background: var(--accent); }
  .sm-ed-header nav a[href="/login"] { margin: 0; }
  .sm-ed-header nav a[href="/signup"] { order: -2; }
  .sm-ed-header nav a[href="/login"] { order: -1; }
  .sm-ed-main ul.sm-ed-links { grid-template-columns: 1fr; }
  .sm-ed-table table { min-width: 0; }
  .sm-ed-table th, .sm-ed-table td { min-width: 112px; padding: 12px 13px; font-size: .92rem; }
  .sm-ed-table tbody th { width: auto; }
  .sm-ed-cta { display: block; width: 100%; text-align: center; }
  .sm-ed-footer { padding-top: 32px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
