/* ============================================================
   FluidShift — Design override for Ghost Source theme
   Aligns blog.fluidshift.co with the charte of fluidshift.co
   ============================================================ */

/* 1. Accent color : remplace le rose Ghost par du zinc-900
   ---------------------------------------------------------- */
:root {
    --ghost-accent-color: #18181b !important;
    --color-primary-text: #18181b;
    --color-secondary-text: #71717a;
    --color-border: #f4f4f5;
    --color-dark-border: #e4e4e7;
}

/* 2. Navigation — header identique à fluidshift.co
   ---------------------------------------------------------- */

/* Reset Ghost nav */
.gh-navigation { display: none !important; }

/* Header wrapper */
.fs-header {
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
    border-bottom: 1px solid rgba(228, 228, 231, 0.6);
    background: rgba(255, 255, 255, 0.8);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.fs-header-inner {
    max-width: 1280px;
    margin: 0 auto;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
}

@media (min-width: 1024px) {
    .fs-header-inner { padding: 0 32px; }
}

/* Logo */
.fs-logo {
    font-size: 20px;
    font-weight: 500;
    letter-spacing: -0.05em;
    color: #18181b;
    text-transform: uppercase;
    text-decoration: none;
}

.fs-logo:hover {
    color: #18181b;
    text-decoration: none;
}

/* Desktop nav — visible par défaut, cachée en mobile */
/* !important nécessaire : Ghost a nav{display:inline-flex;flex-direction:column;gap:28px} globalement */
.fs-nav-desktop {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 16px !important;
    margin-left: auto;
    white-space: nowrap;
}

/* Burger — caché par défaut, visible seulement en mobile */
.fs-burger {
    display: none !important;
}

@media (max-width: 639px) {
    .fs-nav-desktop { display: none !important; }
    .fs-burger { display: flex !important; }
}

.fs-nav-link {
    font-size: 14px;
    font-weight: 500;
    color: #71717a;
    text-decoration: none;
    transition: color 0.15s;
}

.fs-nav-link:hover {
    color: #18181b;
    text-decoration: none;
}

.fs-nav-active {
    color: #18181b;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-color: #a1a1aa;
}

/* Contact button */
.fs-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #18181b;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #fff !important;
    text-decoration: none !important;
    transition: background 0.15s;
}

.fs-nav-btn:hover {
    background: #3f3f46;
    color: #fff !important;
    text-decoration: none !important;
}

/* Hamburger button */
.fs-burger {
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
}

.fs-burger span {
    display: block;
    width: 24px;
    height: 1px;
    background: #18181b;
}

/* Mobile menu */
.fs-mobile-menu {
    display: none;
    border-top: 1px solid #f4f4f5;
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.fs-mobile-menu.fs-mobile-menu-open {
    display: block;
}

.fs-mobile-nav {
    display: flex;
    flex-direction: column;
    padding: 16px 24px;
    gap: 16px;
}

.fs-mobile-link {
    font-size: 14px;
    font-weight: 500;
    color: #3f3f46;
    text-decoration: none;
    padding: 4px 0;
    transition: color 0.15s;
}

.fs-mobile-link:hover {
    color: #18181b;
    text-decoration: none;
}

.fs-nav-btn-full {
    text-align: center;
    margin-top: 4px;
}

/* 3. Boutons — remplace le rose par noir arrondi
   ---------------------------------------------------------- */
.gh-btn,
.gh-btn-primary,
.gh-subscribe-btn,
.kg-signup-card-btn,
.gh-portal-btn,
.post-upgrade-cta-btn,
a.gh-btn,
button.gh-btn {
    background: #18181b !important;
    color: #fff !important;
    border: none !important;
    border-radius: 999px !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    padding: 0.625rem 1.5rem !important;
    transition: background 0.15s ease !important;
}

.gh-btn:hover,
.gh-btn-primary:hover,
.gh-subscribe-btn:hover,
.kg-signup-card-btn:hover {
    background: #3f3f46 !important;
    color: #fff !important;
}

/* Bouton outlined/secondary */
.gh-btn-secondary {
    background: transparent !important;
    color: #18181b !important;
    border: 1px solid #e4e4e7 !important;
    border-radius: 999px !important;
}

.gh-btn-secondary:hover {
    background: #f4f4f5 !important;
}

/* 4. Liens et accent
   ---------------------------------------------------------- */
a {
    color: #18181b;
}

a:hover {
    color: #52525b;
}

.gh-article-tag,
.gh-post-tag,
.article-tag a {
    color: #71717a !important;
    background: #f4f4f5 !important;
    border-radius: 999px !important;
    border: none !important;
    padding: 0.25rem 0.75rem !important;
    font-size: 0.75rem !important;
}

.gh-article-tag:hover,
.article-tag a:hover {
    background: #e4e4e7 !important;
    color: #18181b !important;
}

/* 5. Titres
   ---------------------------------------------------------- */
h1, h2, h3, h4, h5, h6,
.gh-article-title,
.article-title,
.gh-card-title {
    color: #18181b;
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.gh-article-title a,
.article-title a,
.gh-card-title a {
    color: #18181b;
}

.gh-article-title a:hover,
.article-title a:hover,
.gh-card-title a:hover {
    color: #52525b;
}

/* 6. Cards articles
   ---------------------------------------------------------- */
.gh-card {
    border: 1px solid #f4f4f5;
    border-radius: 0.75rem;
    overflow: hidden;
    transition: border-color 0.15s;
}

.gh-card:hover {
    border-color: #e4e4e7;
}

/* 7. Hero / Header
   ---------------------------------------------------------- */
.gh-header {
    background: #fff;
    border-bottom: 1px solid #f4f4f5;
}

.gh-header-title {
    color: #18181b;
    font-weight: 500;
    letter-spacing: -0.04em;
}

.gh-header-description {
    color: #71717a;
}

/* 8. Contenu article
   ---------------------------------------------------------- */
.gh-content {
    color: #52525b;
    font-size: 20px;
    line-height: 1.75;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.gh-content h2 {
    color: #18181b;
    font-size: 30px;
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.gh-content h3 {
    color: #18181b;
    font-size: 24px;
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.gh-content h4 {
    color: #18181b;
    font-size: 20px;
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.gh-content a {
    color: #18181b;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.gh-content a:hover {
    color: #52525b;
}

.gh-content blockquote {
    border-left: 2px solid #e4e4e7;
    color: #71717a;
}

/* 9. Footer
   ---------------------------------------------------------- */
.gh-footer {
    border-top: 1px solid #f4f4f5;
    background: #fff;
}

.gh-foot-nav a,
.gh-copyright {
    color: #a1a1aa;
    font-size: 0.8125rem;
}

.gh-foot-nav a:hover {
    color: #18181b;
}

/* 10. Signup / Subscribe section
   ---------------------------------------------------------- */
.gh-signup,
.kg-signup-card {
    background: #18181b !important;
    color: #fff !important;
    border-radius: 1rem !important;
}

.gh-signup-title,
.kg-signup-card-heading {
    color: #fff !important;
    letter-spacing: -0.03em;
}

.gh-signup-description,
.kg-signup-card-subheading {
    color: rgba(255,255,255,0.6) !important;
}

/* 11. Supprime le rose partout où il peut apparaître
   ---------------------------------------------------------- */
[style*="--ghost-accent-color: #FF1A75"],
[style*="--ghost-accent-color:#FF1A75"] {
    --ghost-accent-color: #18181b !important;
}

.gh-progress-container .gh-progress-bar {
    background: #18181b !important;
}

/* 12. Page mentions / meta
   ---------------------------------------------------------- */
.article-byline-meta,
.gh-article-meta {
    color: #a1a1aa;
    font-size: 0.875rem;
}

.article-byline-name a,
.gh-author-name a {
    color: #18181b;
    font-weight: 500;
}

/* 13. Hero page d'accueil
   ---------------------------------------------------------- */
.fs-home-hero {
    background: #18181b;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    padding: 48px 24px;
    box-sizing: border-box;
}

@media (min-width: 640px) {
    .fs-home-hero {
        min-height: 400px;
        max-height: 400px;
    }
}

.fs-home-hero-inner {
    text-align: center;
    max-width: 720px;
    width: 100%;
}

.fs-home-hero-title {
    font-size: 40px;
    font-weight: 500;
    color: #fff !important;
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin: 0 0 16px 0;
}

@media (min-width: 640px) {
    .fs-home-hero-title {
        font-size: 56px;
    }
}

.fs-home-hero-accroche {
    font-size: 17px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.5) !important;
    line-height: 1.6;
    margin: 0;
    letter-spacing: 0;
}

/* 14. Labels de section — retirer les majuscules Ghost
   ---------------------------------------------------------- */
.gh-container-title,
.gh-featured-title,
.gh-sidebar-title {
    text-transform: none !important;
    letter-spacing: 0 !important;
}
