/* ==========================================================================
   Studio48h — design tokens & components
   Traduit depuis le handoff Claude Design (Studio48h.dc.html).
   Bootstrap 5 fournit la grille et les utilitaires ; ce fichier porte
   l'identité (couleurs, typo, composants sur-mesure).
   ========================================================================== */

:root {
  --accent: #2E7BFF;
  --accent-contrast: #cfe0ff;
  --promo: #ff5a3c;        /* offre de lancement (rouge-corail) */
  --promo-ink: #c0341d;
  --ink: #141821;          /* texte principal */
  --ink-dark: #0d1013;     /* fonds sombres */
  --muted: #565d68;        /* paragraphes */
  --faint: #8b9099;        /* légendes */
  --faint-2: #9096a0;
  --line: #eaebee;         /* bordures claires */
  --line-2: #e7e9ec;
  --line-3: #e4e6ea;
  --line-soft: #eef0ec;
  --nav-border: #ededf0;
  --bg-soft: #f7f8f6;
  --dark-line: #242a31;
  --dark-line-2: #1e242b;
  --dark-faint: #6b7280;
  --dark-faint-2: #5f6772;
  --dark-muted: #8b9099;
  --font-head: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;
  --nav-h: 80px; /* hauteur approx. de la navbar sticky, à déduire du hero plein écran */
}

/* ---- Base -------------------------------------------------------------- */
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html {
  scroll-behavior: smooth;
  /* Compense le header sticky pour TOUS les sauts d'ancre (natifs, inter-pages,
     scrollIntoView). --nav-h est mesuré dynamiquement par nav_controller ;
     la valeur :root (80px) sert de repli avant l'exécution du JS. */
  scroll-padding-top: calc(var(--nav-h) + 12px);
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
::selection { background: var(--accent); color: #fff; }

.s48-head { font-family: var(--font-head); }

/* Reveal on scroll */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

@keyframes s48-blink { 0%,72%,100%{opacity:1} 80%,92%{opacity:.35} }
@keyframes s48-float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }

/* ---- Buttons ---------------------------------------------------------- */
.s48-btn {
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  border-radius: 14px;
  transition: transform .15s, box-shadow .15s, opacity .15s, border-color .15s;
  display: inline-block;
  text-align: center;
}
.s48-btn-primary {
  background: var(--accent); color: #fff;
  padding: 17px 30px; font-weight: 800; font-size: 17px;
  box-shadow: 0 6px 26px rgba(46,123,255,.4);
}
.s48-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(46,123,255,.5); color:#fff; }
.s48-btn-nav {
  background: var(--accent); color: #fff;
  padding: 12px 20px; border-radius: 12px; font-weight: 700; font-size: 15px;
  box-shadow: 0 2px 14px rgba(46,123,255,.35);
}
.s48-btn-nav:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(46,123,255,.5); color:#fff; }
.s48-btn-ghost {
  background: #fff; color: var(--ink);
  padding: 17px 28px; border: 1.5px solid #dfe2e6; font-weight: 700; font-size: 17px;
}
.s48-btn-ghost:hover { border-color: var(--accent); color: var(--ink); }
.s48-btn-dark {
  background: var(--ink); color: #fff;
  padding: 14px; border-radius: 12px; font-weight: 700; font-size: 15.5px; width: 100%;
}
.s48-btn-dark:hover { opacity: .88; color: #fff; }
.s48-btn-block-primary {
  background: var(--accent); color: #fff; width: 100%;
  padding: 14px; border-radius: 12px; font-weight: 800; font-size: 15.5px;
  box-shadow: 0 4px 18px rgba(46,123,255,.4);
}
.s48-btn-block-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(46,123,255,.5); color:#fff; }

/* ---- Navbar ----------------------------------------------------------- */
.s48-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--nav-border);
}
.s48-nav {
  max-width: 1200px; margin: 0 auto;
  padding: 16px 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.s48-logo { font-family: var(--font-head); font-weight: 700; font-size: 22px; letter-spacing: -.02em; display: flex; align-items: center; }
.s48-logo .brand-ink { color: var(--ink); }
.s48-logo .brand-accent { color: var(--accent); }
.s48-navlinks { display: flex; gap: 28px; font-size: 15px; font-weight: 600; }
.s48-navlinks a { cursor: pointer; }
.s48-nav-right { display: flex; align-items: center; gap: 30px; }
@media (max-width: 820px) { .s48-navlinks { display: none; } }

/* ---- Layout helpers --------------------------------------------------- */
.s48-wrap { max-width: 1120px; margin: 0 auto; }
.s48-wrap-wide { max-width: 1200px; margin: 0 auto; }
.s48-wrap-lg { max-width: 1160px; margin: 0 auto; }
.s48-wrap-narrow { max-width: 820px; margin: 0 auto; }

/* ---- Hero ------------------------------------------------------------- */
/* Fond dégradé + motifs décoratifs (points + grille), estompés par masque. */
.s48-hero-bg {
  position: relative;
  /* Occupe au minimum tout l'écran restant sous la navbar sticky. */
  min-height: calc(100vh - var(--nav-h));
  min-height: calc(100dvh - var(--nav-h));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: radial-gradient(115% 85% at 50% -8%,
    color-mix(in srgb, var(--accent) 26%, #fff) 0%,
    color-mix(in srgb, var(--accent) 12%, #fff) 45%,
    color-mix(in srgb, var(--accent) 6%, #fff) 100%);
}
.s48-hero-dots,
.s48-hero-grid { position: absolute; inset: 0; pointer-events: none; }
.s48-hero-dots {
  background-image: radial-gradient(circle, rgba(20,24,33,.16) 1.2px, transparent 1.8px);
  background-size: 18px 18px;
  -webkit-mask-image: radial-gradient(130% 100% at 50% 0%, #000 0%, transparent 100%);
  mask-image: radial-gradient(130% 100% at 50% 0%, #000 0%, transparent 100%);
}
.s48-hero-grid {
  background-image:
    linear-gradient(color-mix(in srgb, var(--accent) 13%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--accent) 13%, transparent) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(115% 95% at 50% 5%, #000 0%, transparent 95%);
  mask-image: radial-gradient(115% 95% at 50% 5%, #000 0%, transparent 95%);
}

.s48-hero { position: relative; width: 100%; max-width: 1120px; margin: 0 auto; padding: 56px 22px; text-align: center; }
.s48-hero-promo {
  display: flex; width: fit-content; align-items: center; gap: 10px;
  margin: 0 auto 16px;
  background: color-mix(in srgb, var(--promo) 10%, #fff);
  border: 1px solid color-mix(in srgb, var(--promo) 32%, #fff);
  color: var(--promo-ink); font-weight: 700; font-size: 14px;
  padding: 7px 16px 7px 7px; border-radius: 999px;
  transition: transform .15s, box-shadow .15s;
}
.s48-hero-promo:hover { transform: translateY(-1px); color: var(--promo-ink); box-shadow: 0 8px 22px -10px color-mix(in srgb, var(--promo) 60%, transparent); }
.s48-hero-promo-badge { background: var(--promo); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 13px; padding: 4px 11px; border-radius: 999px; }
.s48-hero-promo-arrow { color: var(--promo); font-weight: 800; }

.s48-badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: #f2f4f1; border: 1px solid #e4e7e1;
  padding: 8px 15px; border-radius: 999px;
  font-size: 13.5px; font-weight: 700; color: #3d4a33; margin-bottom: 28px;
}
.s48-badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: s48-blink 2.6s infinite; }
.s48-h1 {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(38px, 6.4vw, 76px); line-height: 1.02; letter-spacing: -.03em;
  margin: 0 auto; max-width: 14ch; text-wrap: balance;
}
.s48-h1 .accent { color: var(--accent); }
.s48-hero-lead {
  font-size: clamp(17px, 2.2vw, 21px); color: var(--muted);
  max-width: 56ch; margin: 26px auto 0; line-height: 1.55; text-wrap: pretty;
}
.s48-hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 38px; }
.s48-hero-note { font-size: 13.5px; color: var(--faint-2); margin-top: 18px; }

/* hero timeline chip */
.s48-timeline { margin-top: 56px; display: flex; justify-content: center; }
.s48-timeline-inner {
  display: flex; align-items: stretch;
  background: var(--ink-dark); border-radius: 20px; padding: 6px;
  box-shadow: 0 24px 60px -20px rgba(13,16,19,.4);
}
.s48-timeline-cell { padding: 22px 30px; text-align: left; }
.s48-timeline-cell.is-accent { background: var(--accent); border-radius: 15px; }
.s48-timeline-sep { width: 1px; background: var(--dark-line); margin: 14px 0; }
.s48-timeline-kicker { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #7a8290; }
.s48-timeline-cell.is-accent .s48-timeline-kicker { color: var(--accent-contrast); }
.s48-timeline-title { font-family: var(--font-head); font-size: 26px; font-weight: 700; color: #fff; margin-top: 6px; }

/* ---- Reassurance band ------------------------------------------------- */
.s48-band { background: var(--ink-dark); color: #fff; }
.s48-band-inner { max-width: 1120px; margin: 0 auto; padding: 46px 22px 40px; }
.s48-band-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.s48-band-item { display: flex; align-items: center; gap: 16px; }
.s48-band-item.has-sep { border-left: 1px solid var(--dark-line); padding-left: 22px; }
.s48-band-num { font-family: var(--font-head); font-size: 34px; font-weight: 700; color: var(--accent); line-height: 1; }
.s48-band-num sup { font-size: 16px; vertical-align: super; }
.s48-band-label { font-size: 16px; font-weight: 600; line-height: 1.35; }
.s48-band-foot { font-size: 12.5px; color: var(--dark-faint); margin: 22px 0 0; }

/* ---- Section titles --------------------------------------------------- */
.s48-section { max-width: 1120px; margin: 0 auto; padding: 92px 22px 78px; }
.s48-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.s48-h2 { font-family: var(--font-head); font-weight: 700; font-size: clamp(30px, 4.4vw, 46px); letter-spacing: -.02em; margin: 12px 0 0; }
.s48-section-sub { color: var(--muted); font-size: 17px; margin: 0; }

/* ---- Process cards ---------------------------------------------------- */
.s48-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.s48-step-card { border: 1px solid var(--line); border-radius: 22px; padding: 34px 30px; background: #fff; }
.s48-step-num { font-family: var(--font-head); font-size: 52px; font-weight: 700; line-height: 1; color: #e9ece8; }
.s48-step-num.is-accent { color: var(--accent); }
.s48-step-title { font-family: var(--font-head); font-size: 22px; font-weight: 600; margin: 18px 0 10px; }
.s48-step-body { color: var(--muted); font-size: 16px; line-height: 1.55; margin: 0; }

/* ---- Portfolio -------------------------------------------------------- */
.s48-portfolio { background: var(--bg-soft); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.s48-portfolio-inner { max-width: 1200px; margin: 0 auto; padding: 92px 22px 84px; }
.s48-portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.s48-pf-card {
  background: #fff; border-radius: 18px; border: 1px solid var(--line); overflow: hidden;
  box-shadow: 0 1px 3px rgba(13,16,19,.04);
  transition: transform .25s cubic-bezier(.16,1,.3,1), box-shadow .25s;
}
.s48-pf-card:hover { transform: translateY(-6px); box-shadow: 0 26px 50px -22px rgba(13,16,19,.35); }
.s48-pf-shot { position: relative; background: #e9ebe6; border-radius: 16px 16px 0 0; overflow: hidden; padding: 14px 14px 0; }
.s48-pf-browser { background: #fff; border-radius: 12px 12px 0 0; box-shadow: 0 -1px 0 #e2e5df; }
.s48-pf-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; border-bottom: 1px solid var(--line-soft); }
.s48-dot { width: 11px; height: 11px; border-radius: 50%; }
.s48-dot.r { background: #ff5f57; } .s48-dot.y { background: #febc2e; } .s48-dot.g { background: #28c840; }
.s48-pf-url { margin-left: 10px; flex: 1; background: #f2f3f0; border-radius: 6px; padding: 5px 12px; font-size: 12px; color: #8b9099; font-family: var(--font-head); }
.s48-pf-desk { position: relative; aspect-ratio: 16/10; overflow: hidden; background: #f2f3f0; }
.s48-pf-desk img { width: 100%; height: 100%; object-fit: cover; display: block; }
.s48-pf-desk-ph { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: #a7adb5; font-size: 13px; font-family: var(--font-head); text-align: center; padding: 0 12px; }
.s48-pf-phone {
  position: absolute; right: 26px; bottom: 0; width: 86px; height: 150px;
  background: var(--ink-dark); border-radius: 16px 16px 0 0; padding: 5px 5px 0;
  box-shadow: 0 12px 30px -8px rgba(13,16,19,.45);
}
.s48-pf-phone-screen { position: relative; width: 100%; height: 100%; background: #f2f3f0; border-radius: 12px 12px 0 0; overflow: hidden; }
.s48-pf-phone-screen img { width: 100%; height: 100%; object-fit: cover; display: block; }
.s48-pf-body { padding: 22px 24px 26px; background: #fff; border-radius: 0 0 16px 16px; }
.s48-pf-titlerow { display: flex; align-items: center; gap: 10px; }
.s48-pf-title { font-family: var(--font-head); font-size: 21px; font-weight: 600; margin: 0; }
.s48-pf-live { font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: #fff; background: var(--accent); padding: 3px 9px; border-radius: 999px; }
.s48-pf-sector { font-size: 13.5px; font-weight: 700; color: var(--accent); margin-top: 5px; }
.s48-pf-context { color: var(--muted); font-size: 15px; line-height: 1.5; margin: 12px 0 0; text-wrap: pretty; }

/* ---- Pricing ---------------------------------------------------------- */
.s48-pricing { max-width: 1160px; margin: 0 auto; padding: 92px 22px 60px; }
.s48-price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 22px; align-items: start; }
.s48-price-card { border: 1px solid var(--line-2); border-radius: 22px; padding: 34px 30px; background: #fff; position: relative; }
.s48-price-card.is-featured { border: 2px solid var(--accent); box-shadow: 0 22px 50px -22px rgba(46,123,255,.5); }
.s48-price-flag {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff; font-size: 12.5px; font-weight: 800; letter-spacing: .03em;
  padding: 6px 16px; border-radius: 999px; white-space: nowrap;
}
.s48-price-name { font-family: var(--font-head); font-size: 21px; font-weight: 600; margin: 0; }
.s48-price-desc { color: var(--faint); font-size: 14.5px; margin: 8px 0 20px; }
.s48-price-row { display: flex; align-items: baseline; gap: 6px; }
.s48-price-from { font-size: 14px; color: var(--faint); }
.s48-price-amount { font-family: var(--font-head); font-size: 44px; font-weight: 700; letter-spacing: -.02em; }
.s48-price-ht { font-size: 15px; color: var(--faint); font-weight: 600; }
.s48-price-old { font-family: var(--font-head); font-size: 22px; font-weight: 600; color: var(--faint); text-decoration: line-through; align-self: center; }
.s48-price-promo {
  align-self: center; margin-left: 4px;
  background: var(--promo); color: #fff; font-family: var(--font-head);
  font-weight: 800; font-size: 13px; padding: 3px 9px; border-radius: 999px; letter-spacing: .01em;
}

/* Bannière promo de lancement */
.s48-promo {
  display: flex; align-items: center; justify-content: center; gap: 12px 14px; flex-wrap: wrap;
  max-width: 760px; margin: -28px auto 34px; text-align: center;
  background: color-mix(in srgb, var(--promo) 9%, #fff);
  border: 1px solid color-mix(in srgb, var(--promo) 32%, #fff);
  border-radius: 16px; padding: 14px 22px;
}
.s48-promo-badge {
  background: var(--promo); color: #fff; font-family: var(--font-head);
  font-weight: 800; font-size: 13px; letter-spacing: .02em;
  padding: 6px 13px; border-radius: 999px; white-space: nowrap;
}
.s48-promo-text { font-size: 15.5px; color: var(--ink); }
.s48-promo-text strong { color: var(--promo-ink); }
.s48-features { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-direction: column; gap: 12px; }
.s48-price-card .s48-price-row + button { margin: 22px 0 24px; }
.s48-feature { display: flex; gap: 11px; font-size: 15px; color: #3b424c; }
.s48-check { color: var(--accent); font-weight: 800; }

/* Hébergement encart */
.s48-hosting {
  margin-top: 26px; background: var(--ink-dark); border-radius: 20px; padding: 26px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap;
}
.s48-hosting-left { display: flex; align-items: center; gap: 16px; }
.s48-hosting-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 22px; }
.s48-hosting-title { color: #fff; font-family: var(--font-head); font-size: 19px; font-weight: 600; }
.s48-hosting-sub { color: var(--dark-muted); font-size: 14.5px; margin-top: 3px; }
.s48-hosting-price { color: #fff; font-family: var(--font-head); font-size: 22px; font-weight: 700; white-space: nowrap; }
.s48-hosting-price .muted { color: var(--dark-muted); font-weight: 500; }

/* ---- FAQ -------------------------------------------------------------- */
.s48-faq { max-width: 820px; margin: 0 auto; padding: 80px 22px 84px; }
.s48-faq-list { display: flex; flex-direction: column; gap: 12px; }
.s48-faq-item { border: 1px solid #e9ebee; border-radius: 16px; overflow: hidden; background: #fff; }
.s48-faq-btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 22px; background: none; border: none; cursor: pointer; text-align: left;
}
.s48-faq-q { font-family: var(--font-head); font-size: 17.5px; font-weight: 600; color: var(--ink); }
.s48-faq-icon { font-size: 24px; font-weight: 400; color: var(--accent); transition: transform .25s; flex-shrink: 0; line-height: 1; }
.s48-faq-item.is-open .s48-faq-icon { transform: rotate(45deg); }
.s48-faq-a { padding: 0 22px 22px; color: var(--muted); font-size: 15.5px; line-height: 1.6; text-wrap: pretty; }
.s48-faq-item:not(.is-open) .s48-faq-a { display: none; }

/* ---- CTA final -------------------------------------------------------- */
.s48-cta-wrap { max-width: 1120px; margin: 0 auto; padding: 20px 22px 92px; }
.s48-cta { background: var(--accent); border-radius: 28px; padding: clamp(40px, 6vw, 68px); text-align: center; position: relative; overflow: hidden; }
.s48-cta h2 { font-family: var(--font-head); font-weight: 700; font-size: clamp(30px, 4.8vw, 52px); letter-spacing: -.025em; color: #fff; margin: 0 auto; max-width: 18ch; line-height: 1.05; text-wrap: balance; }
.s48-cta p { color: #dce4ff; font-size: 18px; font-weight: 600; margin: 20px auto 34px; max-width: 48ch; line-height: 1.5; }
.s48-cta-btn { background: var(--ink-dark); color: #fff; border: none; padding: 18px 36px; border-radius: 15px; font-weight: 800; font-size: 18px; cursor: pointer; box-shadow: 0 10px 30px -8px rgba(13,16,19,.5); transition: transform .15s; }
.s48-cta-btn:hover { transform: translateY(-2px); color: #fff; }

/* ---- Footer ----------------------------------------------------------- */
.s48-footer { background: var(--ink-dark); color: #c3c9d1; }
.s48-footer-inner { max-width: 1120px; margin: 0 auto; padding: 56px 22px 40px; }
.s48-footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 34px 22px; }
.s48-footer-brand { font-family: var(--font-head); font-weight: 700; font-size: 24px; letter-spacing: -.02em; }
.s48-footer-brand .brand-ink { color: #fff; }
.s48-footer-brand .brand-accent { color: var(--accent); }
.s48-footer-about { font-size: 14.5px; line-height: 1.55; color: var(--dark-muted); margin: 14px 0 0; max-width: 320px; }
.s48-footer-h { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--dark-faint-2); margin-bottom: 16px; }
.s48-footer-links { display: flex; flex-direction: column; gap: 11px; font-size: 15px; }
.s48-footer-links a { cursor: pointer; }
.s48-footer-col span { color: var(--dark-muted); }
.s48-footer-bottom { border-top: 1px solid var(--dark-line-2); margin-top: 40px; padding-top: 22px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--dark-faint-2); }

/* ---- Questionnaire modal --------------------------------------------- */
.s48-modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(13,16,19,.55); backdrop-filter: blur(6px);
  display: flex; align-items: flex-start; justify-content: center;
  overflow-y: auto; padding: 24px 16px;
}
.s48-modal { background: #fff; border-radius: 24px; width: 100%; max-width: 620px; margin: auto; box-shadow: 0 40px 100px -20px rgba(13,16,19,.5); overflow: hidden; }
.s48-modal-head { padding: 22px 26px 0; position: relative; }
.s48-modal-headrow { display: flex; align-items: center; justify-content: space-between; }
.s48-modal-logo { font-family: var(--font-head); font-weight: 700; font-size: 19px; }
.s48-modal-close { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 18px; color: var(--faint); line-height: 1; }
.s48-progress-meta { display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 700; color: var(--faint); margin: 18px 0 8px; }
.s48-progress { height: 6px; background: var(--line-soft); border-radius: 999px; overflow: hidden; }
.s48-progress-bar { height: 100%; background: var(--accent); border-radius: 999px; transition: width .35s cubic-bezier(.16,1,.3,1); }
.s48-modal-body { padding: 26px; }
.s48-step-h { font-family: var(--font-head); font-size: 24px; font-weight: 600; margin: 0 0 6px; }
.s48-step-p { color: var(--faint); font-size: 15px; margin: 0 0 20px; }
.s48-input { width: 100%; padding: 16px 18px; border: 1.5px solid var(--line-3); border-radius: 14px; font-size: 16px; font-family: inherit; }
.s48-input:focus { outline: none; border-color: var(--accent); }
.s48-input + .s48-input { margin-top: 12px; }
.s48-textarea { resize: vertical; }
.s48-opts { display: flex; flex-direction: column; gap: 11px; }
.s48-opts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.s48-opt {
  display: block; width: 100%; text-align: left; padding: 15px 18px; border-radius: 14px;
  border: 1.5px solid var(--line-3); background: #fff;
  font-size: 15.5px; font-weight: 600; color: var(--ink); cursor: pointer; font-family: inherit; transition: all .15s;
}
.s48-opt.is-selected { border: 2px solid var(--accent); background: color-mix(in srgb, var(--accent) 12%, #fff); }
.s48-upload { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border: 1.5px dashed #d3d7dc; border-radius: 14px; cursor: pointer; color: var(--muted); font-size: 15px; font-weight: 600; margin-top: 12px; }
.s48-upload-icon { width: 34px; height: 34px; border-radius: 9px; background: #f2f4f1; display: flex; align-items: center; justify-content: center; font-size: 17px; }
.s48-modal-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 26px 24px; border-top: 1px solid var(--line-soft); }
.s48-foot-back { background: #fff; color: var(--muted); border: 1.5px solid var(--line-3); padding: 14px 22px; border-radius: 12px; font-weight: 700; font-size: 15.5px; cursor: pointer; }
.s48-foot-next { background: var(--accent); color: #fff; border: none; padding: 14px 26px; border-radius: 12px; font-weight: 800; font-size: 15.5px; cursor: pointer; transition: opacity .15s; }
.s48-foot-next:disabled { cursor: not-allowed; opacity: .4; }
.s48-done { text-align: center; padding: 14px 0 8px; }
.s48-done-icon { width: 66px; height: 66px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; margin: 0 auto 22px; font-size: 32px; color: #fff; animation: s48-float 3s ease-in-out infinite; }
.s48-done-kicker { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.s48-done-title { font-family: var(--font-head); font-size: 27px; font-weight: 600; margin: 10px 0 12px; }
.s48-done-body { color: var(--muted); font-size: 16px; line-height: 1.6; margin: 0 auto 26px; max-width: 42ch; text-wrap: pretty; }
.s48-done-close { background: var(--ink); color: #fff; border: none; padding: 15px 32px; border-radius: 13px; font-weight: 700; font-size: 16px; cursor: pointer; }

/* ---- Pages légales ---------------------------------------------------- */
.s48-legal { max-width: 820px; margin: 0 auto; padding: 64px 22px 84px; }
.s48-legal-kicker { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.s48-legal h1 { font-family: var(--font-head); font-weight: 700; font-size: clamp(30px, 4.4vw, 46px); letter-spacing: -.02em; margin: 12px 0 8px; }
.s48-legal-updated { color: var(--faint); font-size: 14px; margin: 0 0 40px; }
.s48-legal h2 { font-family: var(--font-head); font-weight: 600; font-size: 22px; margin: 40px 0 12px; }
.s48-legal h3 { font-family: var(--font-head); font-weight: 600; font-size: 17px; margin: 24px 0 8px; }
.s48-legal p, .s48-legal li { color: #3b424c; font-size: 15.5px; line-height: 1.65; }
.s48-legal p { margin: 0 0 14px; }
.s48-legal ul { margin: 0 0 14px; padding-left: 22px; }
.s48-legal li { margin-bottom: 6px; }
.s48-legal a { color: var(--accent); text-decoration: underline; }
.s48-legal dl { margin: 0 0 14px; }
.s48-legal dt { font-weight: 700; color: var(--ink); font-size: 14px; margin-top: 12px; }
.s48-legal dd { margin: 2px 0 0; color: #3b424c; font-size: 15.5px; }
.s48-legal-todo {
  background: #fff8e6; border: 1px solid #f2e2b0; color: #7a5c00;
  border-radius: 6px; padding: 1px 7px; font-size: 13.5px; font-weight: 700;
  font-family: var(--font-head); white-space: nowrap;
}
.s48-legal-note {
  background: #eaf2ff; border: 1px solid #cfe0ff; color: #14459b;
  border-radius: 14px; padding: 16px 18px; font-size: 14.5px; line-height: 1.55; margin: 0 0 32px;
}

/* ---- Ancres (compensation header sticky) ------------------------------ */
/* La compensation du header est portée par `html { scroll-padding-top }` ci-dessus
   (une seule source, sinon padding + margin s'additionnent et on dépasse). */

/* ---- Flash ------------------------------------------------------------ */
.s48-flash {
  position: fixed; z-index: 200; top: 16px; left: 50%; transform: translateX(-50%);
  max-width: min(92vw, 560px); display: flex; align-items: center; gap: 14px;
  padding: 14px 18px; border-radius: 14px; font-size: 15px; font-weight: 600;
  box-shadow: 0 18px 44px -18px rgba(13,16,19,.4);
}
.s48-flash-notice { background: #eaf2ff; color: #14459b; border: 1px solid #cfe0ff; }
.s48-flash-alert { background: #fdecec; color: #a12222; border: 1px solid #f6cccc; }
.s48-flash-close { background: none; border: none; cursor: pointer; font-size: 15px; color: inherit; opacity: .7; line-height: 1; }
.s48-flash-close:hover { opacity: 1; }

.s48-form-error {
  background: #fdecec; color: #a12222; border: 1px solid #f6cccc;
  padding: 12px 14px; border-radius: 12px; font-size: 14.5px; font-weight: 600; margin: 0 0 4px;
}

.s48-hidden { display: none !important; }
[hidden] { display: none !important; }

/* ==========================================================================
   Blog — section accueil, liste, carte, article, éditeur
   ========================================================================== */

/* ---- Section blog (accueil + « à lire aussi ») ------------------------ */
.s48-blog { background: var(--bg-soft); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.s48-blog-inner { max-width: 1200px; margin: 0 auto; padding: 92px 22px 84px; }
.s48-blog-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 46px; }
.s48-blog-head .s48-h2 { margin-top: 12px; }
.s48-blog-head-sub { color: var(--muted); font-size: 16px; line-height: 1.55; margin: 0; max-width: 90ch; }
.s48-blog-foot { margin-top: 44px; text-align: center; }
.s48-blog-all { font-size: 15.5px; font-weight: 700; color: var(--ink); }
.s48-blog-all:hover { color: var(--accent); }

/* ---- Grille + carte --------------------------------------------------- */
.s48-blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.s48-blog-card {
  display: flex; flex-direction: column; background: #fff; border-radius: 18px;
  border: 1px solid var(--line); overflow: hidden; box-shadow: 0 1px 3px rgba(13,16,19,.04);
  transition: transform .25s cubic-bezier(.16,1,.3,1), box-shadow .25s; color: inherit;
}
.s48-blog-card:hover { transform: translateY(-6px); box-shadow: 0 26px 50px -22px rgba(13,16,19,.35); color: inherit; }
.s48-blog-cover { position: relative; aspect-ratio: 16/9; overflow: hidden; border-radius: 16px 16px 0 0; background: #e9ebe6; }
.s48-blog-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.s48-blog-img-ph {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(120% 120% at 20% 0%, color-mix(in srgb, var(--accent) 22%, #fff) 0%, var(--bg-soft) 70%);
}
.s48-blog-img-ph span {
  font-family: var(--font-head); font-size: 13px; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; color: var(--accent); background: #fff; padding: 6px 14px;
  border-radius: 999px; box-shadow: 0 4px 16px -6px rgba(46,123,255,.5);
}
.s48-blog-card-body { padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.s48-blog-meta { display: flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 700; color: var(--accent); }
.s48-blog-tag { text-transform: uppercase; letter-spacing: .05em; }
.s48-blog-dot { color: #c3c9d1; }
.s48-blog-read { color: var(--faint); font-weight: 600; }
.s48-blog-card-title { font-family: var(--font-head); font-size: 20px; font-weight: 600; margin: 12px 0 8px; line-height: 1.25; text-wrap: balance; }
.s48-blog-card-excerpt { color: var(--muted); font-size: 14.5px; line-height: 1.5; margin: 0; text-wrap: pretty; }
.s48-blog-more { margin-top: 16px; font-size: 14.5px; font-weight: 700; color: var(--ink); }
.s48-blog-card:hover .s48-blog-more { color: var(--accent); }
.s48-blog-empty { color: var(--muted); font-size: 17px; text-align: center; }

/* ---- En-tête page blog ------------------------------------------------ */
.s48-blog-hero {
  text-align: center; padding: 72px 22px 8px;
  background: radial-gradient(115% 90% at 50% -20%, color-mix(in srgb, var(--accent) 16%, #fff) 0%, #fff 70%);
}
.s48-blog-hero-h1 {
  font-family: var(--font-head); font-weight: 700; font-size: clamp(34px, 5.4vw, 58px);
  line-height: 1.04; letter-spacing: -.03em; margin: 12px auto 0; max-width: 18ch; text-wrap: balance;
}
.s48-blog-hero-lead { font-size: clamp(16px, 2vw, 19px); color: var(--muted); max-width: 58ch; margin: 22px auto 0; line-height: 1.55; text-wrap: pretty; }

/* ---- Article ---------------------------------------------------------- */
.s48-article { padding: 40px 0 20px; }
.s48-article-crumbs { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--faint); margin-bottom: 26px; }
.s48-article-crumbs a { color: var(--faint); }
.s48-article-crumbs a:hover { color: var(--accent); }
.s48-article-crumb-current { color: var(--accent); }
.s48-article-h1 { font-family: var(--font-head); font-weight: 700; font-size: clamp(30px, 5vw, 46px); line-height: 1.08; letter-spacing: -.025em; margin: 16px 0 20px; text-wrap: balance; }
.s48-article-author { display: flex; align-items: center; gap: 12px; padding-bottom: 28px; border-bottom: 1px solid var(--line-soft); }
.s48-article-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 700; font-size: 16px; }
.s48-article-author-name { font-weight: 700; color: var(--ink); font-size: 14px; }
.s48-article-date { color: var(--faint); font-size: 14px; }
.s48-article-cover { position: relative; aspect-ratio: 16/8; overflow: hidden; border-radius: 18px; background: #e9ebe6; margin: 28px 0 36px; }
.s48-article-cover .s48-blog-img, .s48-article-cover .s48-blog-img-ph { position: absolute; inset: 0; }

.s48-article-body { display: flex; flex-direction: column; gap: 20px; }
.s48-article-h2 { font-family: var(--font-head); font-size: 24px; font-weight: 600; letter-spacing: -.01em; margin: 14px 0 0; }
.s48-article-p { font-size: 17.5px; line-height: 1.7; color: #3b424c; margin: 0; text-wrap: pretty; }
.s48-article-p strong { color: var(--ink); }
.s48-article-quote {
  margin: 8px 0; padding: 20px 26px; border-left: 4px solid var(--accent);
  background: var(--bg-soft); border-radius: 0 14px 14px 0;
  font-family: var(--font-head); font-size: 19px; font-weight: 500; line-height: 1.5; color: var(--ink);
}
.s48-article-cta { margin-top: 44px; background: var(--accent); border-radius: 22px; padding: 34px 30px; text-align: center; }
.s48-article-cta h3 { font-family: var(--font-head); font-size: 24px; font-weight: 600; color: #fff; margin: 0 0 10px; text-wrap: balance; }
.s48-article-cta p { color: #dce4ff; font-size: 15.5px; margin: 0 0 22px; }

/* ==========================================================================
   Éditeur de blog (admin)
   ========================================================================== */
.s48-admin { background: var(--bg-soft); min-height: 100vh; }
.s48-admin-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.9); backdrop-filter: blur(14px); border-bottom: 1px solid var(--nav-border); }
.s48-admin-bar { max-width: 960px; margin: 0 auto; padding: 14px 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.s48-admin-brand { font-family: var(--font-head); font-weight: 700; font-size: 20px; display: flex; align-items: center; gap: 10px; }
.s48-admin-brand .brand-ink { color: var(--ink); } .s48-admin-brand .brand-accent { color: var(--accent); }
.s48-admin-badge { font-family: var(--font-body); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, #fff); border: 1px solid color-mix(in srgb, var(--accent) 30%, #fff); padding: 3px 8px; border-radius: 999px; }
.s48-admin-actions { display: flex; align-items: center; gap: 18px; }
.s48-admin-link { background: none; border: none; cursor: pointer; font-family: var(--font-body); font-size: 14.5px; font-weight: 700; color: var(--muted); padding: 0; }
.s48-admin-link:hover { color: var(--accent); }
.s48-admin-link-danger { color: #a12222; }
.s48-admin-link-danger:hover { color: #d33; }
.s48-admin-flash { max-width: 960px; margin: 18px auto 0; padding: 12px 18px; background: #eaf2ff; color: #14459b; border: 1px solid #cfe0ff; border-radius: 12px; font-size: 14.5px; font-weight: 600; }
.s48-admin-main { padding: 8px 0 80px; }
.s48-admin-wrap { max-width: 960px; margin: 0 auto; padding: 34px 22px 0; }
.s48-admin-wrap-narrow { max-width: 760px; }
.s48-admin-pagehead { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.s48-admin-pagehead h1 { font-family: var(--font-head); font-weight: 700; font-size: 30px; letter-spacing: -.02em; margin: 0; }
.s48-admin-pagehead p { color: var(--faint); font-size: 14.5px; margin: 0; }

.s48-admin-list { display: flex; flex-direction: column; gap: 12px; }
.s48-admin-row { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.s48-admin-row-title { font-family: var(--font-head); font-size: 18px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.s48-admin-tag-draft { font-family: var(--font-body); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #7a5c00; background: #fff8e6; border: 1px solid #f2e2b0; padding: 3px 8px; border-radius: 999px; }
.s48-admin-tag-featured { font-family: var(--font-body); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, #fff); border: 1px solid color-mix(in srgb, var(--accent) 30%, #fff); padding: 3px 8px; border-radius: 999px; }
.s48-admin-row-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--faint); margin-top: 7px; }
.s48-admin-row-actions { display: flex; align-items: center; gap: 16px; }
.s48-admin-row-actions form { margin: 0; }
.s48-admin-empty { background: #fff; border: 1px dashed var(--line-3); border-radius: 18px; padding: 48px 22px; text-align: center; }
.s48-admin-empty p { color: var(--muted); font-size: 16px; margin: 0 0 20px; }

.s48-admin-form { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 30px 30px 34px; }
.s48-admin-field { margin-bottom: 20px; display: flex; flex-direction: column; gap: 8px; }
.s48-admin-field > label { font-size: 14px; font-weight: 700; color: var(--ink); }
.s48-admin-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
@media (max-width: 560px) { .s48-admin-grid-2 { grid-template-columns: 1fr; } }
.s48-admin-hint { font-size: 13px; color: var(--faint); margin: 0; line-height: 1.5; }
.s48-admin-hint code { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; font-size: 12.5px; color: var(--ink); }
.s48-admin-body { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; line-height: 1.6; }
.s48-admin-check { flex-direction: row; align-items: center; gap: 10px; }
.s48-admin-check input { width: 18px; height: 18px; accent-color: var(--accent); }
.s48-admin-check label { font-weight: 600; }
.s48-admin-cover-preview img { border-radius: 12px; border: 1px solid var(--line); display: block; }
.s48-admin-form-actions { display: flex; align-items: center; gap: 20px; margin-top: 8px; }
