/* LinkedIn Format Pro - Inspiration v1 : bandeau flottant, action principale, étapes en cartes.
   Chargé après style.css / premium-ux.css. Aucune règle ne change le contenu ni le SEO. */

html { scroll-padding-top: 88px; }

/* ---------- Bandeau flottant (pilule) ---------- */
.site-header {
  top: 10px;
  margin: 10px clamp(8px, 2vw, 24px) 0;
  border: 1px solid var(--border-light);
  border-radius: 999px;
  background: color-mix(in srgb, var(--color-white) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.5) blur(14px);
  backdrop-filter: saturate(1.5) blur(14px);
  box-shadow: 0 6px 24px rgba(16, 24, 40, .08);
  transition: height .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.site-header.is-compact { height: 52px; box-shadow: 0 10px 30px rgba(16, 24, 40, .16); }
:root[data-theme="dark"] .site-header { border-color: rgba(255, 255, 255, .12); box-shadow: 0 6px 24px rgba(0, 0, 0, .45); }
@media (max-width: 900px) { .site-header { border-radius: 22px; } }
@media (max-width: 1439px) { .site-header .header-note { display: none; } }
.site-header .share-button { white-space: nowrap; }
@media (max-width: 1279px) and (min-width: 901px) { .site-header .share-button span { display: none; } .site-header .share-button { min-width: 40px; min-height: 36px; justify-content: center; padding: 0 10px; } }
@supports not (backdrop-filter: blur(1px)) { .site-header { background: var(--color-white); } }

/* ---------- Une seule action colorée dans l'en-tête : l'analyse de post ---------- */
.site-header .site-nav > a:first-child {
  background: #1B7A38; color: #fff; font-weight: 700; border-radius: 999px; padding: 8px 16px; text-decoration: none;
  box-shadow: 0 2px 8px rgba(27, 122, 56, .28); transition: background-color .15s ease, transform .15s ease;
}
.site-header .site-nav > a:first-child:hover { background: #14612c; color: #fff; transform: translateY(-1px); }
.site-header .site-nav > a:first-child[aria-current="page"] { background: #14612c; color: #fff; }

/* ---------- "Comment ça marche" : étapes en cartes (HTML inchangé) ---------- */
.hiw-section .steps { list-style: none; margin: var(--space-md, 20px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md, 20px); }
.hiw-section .steps > li {
  position: relative; display: block; padding: 22px 20px 20px; background: var(--color-white);
  border: 1px solid var(--border-light); border-radius: 16px; box-shadow: 0 2px 10px rgba(16, 24, 40, .05);
}
.hiw-section .step-num {
  display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; margin-bottom: 12px;
  border-radius: 50%; background: #1B7A38; color: #fff; font-weight: 800; font-size: 1.05rem;
}
.hiw-section .steps h3 { margin: 0 0 6px; font-size: 1.05rem; }
.hiw-section .steps p { margin: 0; font-size: var(--font-size-sm, .9rem); line-height: 1.55; color: var(--text-secondary); }
@media (max-width: 800px) { .hiw-section .steps { grid-template-columns: 1fr; gap: 12px; } }
@media (prefers-reduced-motion: reduce) { .site-header, .site-header .site-nav > a { transition: none; } }

/* Boutons d'action de l'en-tête : même gabarit partout */
@media (min-width: 1024px) { .site-header :is(.share-button, .favorite-button, .theme-toggle) { min-height: 40px; min-width: 40px; justify-content: center; } }
