/**
 * Single Post Styles
 * Projective Conseil Child Theme
 * 
 * Styles aérés et épurés pour les articles de blog.
 * Utilise les variables CSS Elementor pour cohérence.
 */

/* =============================================
   MAIN CONTAINER
   ============================================= */
.single-post {
    background: #fff;
}

/* =============================================
   HERO SECTION
   ============================================= */
.single-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    padding: 180px 20px 130px;
    background-color: var(--projective-teal, #006D77);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-align: center;
    overflow: hidden;
    z-index: 0;
}

.single-hero.has-thumbnail {
    min-height: 450px;
}

/* 1. Filtre sur l'image (Grayscale/Brightness comme sur l'accueil) */
.single-hero.has-thumbnail::before {
    content: '';
    position: absolute;
    inset: 0;
    background: inherit;
    background-color: transparent;
    filter: grayscale(30%) brightness(0.9);
    z-index: -2;
    pointer-events: none;
}

/* 2. Dégradé bleu (Overlay comme sur l'accueil) */
.single-hero.has-thumbnail::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(20, 40, 60, 0.75) 0%, rgba(30, 50, 70, 0.65) 50%, rgba(15, 35, 55, 0.8) 100%);
    z-index: -1;
    pointer-events: none;
}

/* Contenu du Hero */
.single-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

/* Meta (catégorie + date) */
.single-hero-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.single-category {
    font-family: 'Work Sans', sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.96px;
    color: var(--projective-accent, #E9C46A);
    background: transparent;
    border: 1px solid var(--projective-accent, #E9C46A);
    padding: 8px 20px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.single-hero.has-thumbnail .single-category {
    background: transparent;
    color: var(--projective-accent, #E9C46A);
    border-color: var(--projective-accent, #E9C46A);
}

.single-category:hover {
    background: transparent;
    color: #fff;
    border-color: #fff;
}

.single-hero-meta time {
    font-family: 'Work Sans', sans-serif;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
}

.single-hero.has-thumbnail .single-hero-meta time {
    color: rgba(255, 255, 255, 0.9);
}

/* Titre */
.single-title {
    font-family: 'Syne', sans-serif;
    font-size: 3.5rem !important;
    font-weight: 600;
    line-height: 1.25;
    color: #fff;
    margin: 0;
}

.single-hero.has-thumbnail .single-title {
    color: #fff;
}

/* =============================================
   ARTICLE CONTENT
   ============================================= */
.single-content-wrapper {
    padding: 60px 20px 80px;
}

.single-content {
    max-width: 720px;
    margin: 0 auto;
}

/* Typographie du contenu Gutenberg */
.single-content p {
    font-family: 'Work Sans', sans-serif;
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--projective-text, #666666);
    margin-bottom: 1.5em;
}

.single-content h2 {
    font-family: 'Syne', sans-serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--projective-dark, #1A1A1A);
    margin: 2em 0 0.75em;
    line-height: 1.3;
}

.single-content h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--projective-dark, #1A1A1A);
    margin: 1.75em 0 0.5em;
    line-height: 1.35;
}

.single-content h4,
.single-content h5,
.single-content h6 {
    font-family: 'Work Sans', sans-serif;
    font-weight: 600;
    color: var(--projective-dark, #1A1A1A);
    margin: 1.5em 0 0.5em;
}

/* Liens */
.single-content a {
    color: var(--projective-teal, #006D77);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.3s ease;
}

.single-content a:hover {
    color: var(--projective-accent-dark, #D4AF37);
}

/* Listes */
.single-content ul,
.single-content ol {
    font-family: 'Work Sans', sans-serif;
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--projective-text, #666666);
    margin-bottom: 1.5em;
    padding-left: 1.5em;
}

.single-content li {
    margin-bottom: 0.5em;
}

/* Citations */
.single-content blockquote {
    margin: 2em 0;
    padding: 24px 30px;
    border-left: 4px solid var(--projective-accent, #E9C46A);
    background: var(--projective-bg-light, #EDF6F5);
    font-family: 'Work Sans', sans-serif;
    font-size: 1.1rem;
    font-style: italic;
    line-height: 1.75;
    color: var(--projective-dark, #1A1A1A);
}

.single-content blockquote p {
    margin-bottom: 0;
    color: inherit;
}

/* Images */
.single-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 2em auto;
}

.single-content figure {
    margin: 2em 0;
}

.single-content figcaption {
    font-family: 'Work Sans', sans-serif;
    font-size: 0.85rem;
    color: var(--projective-text, #666666);
    text-align: center;
    margin-top: 0.75em;
}

/* Séparateurs */
.single-content hr {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 3em 0;
}

/* =============================================
   NAVIGATION (Prev / Next)
   ============================================= */
.single-navigation {
    background: var(--projective-bg-light, #EDF6F5);
    padding: 40px 20px;
}

.single-nav-inner {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.single-nav-link {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    text-decoration: none;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.single-nav-link:hover {
    border-color: var(--projective-accent, #E9C46A);
    transform: translateY(-4px);
}

.single-nav-prev {
    text-align: left;
}

.single-nav-next {
    text-align: right;
}

.nav-label {
    font-family: 'Work Sans', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--projective-teal, #006D77);
}

.nav-title {
    font-family: 'Syne', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--projective-dark, #1A1A1A);
    line-height: 1.4;
}

.single-nav-placeholder {
    display: block;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
    .single-hero {
        min-height: 280px;
        padding: 150px 20px 80px;
    }

    .single-hero.has-thumbnail {
        min-height: 360px;
    }

    .single-hero-meta {
        flex-direction: column;
        gap: 12px;
    }

    .single-content-wrapper {
        padding: 40px 20px 60px;
    }

    .single-content p,
    .single-content ul,
    .single-content ol {
        font-size: 1rem;
    }

    .single-content h2 {
        font-size: 1.4rem;
    }

    .single-content h3 {
        font-size: 1.15rem;
    }

    .single-nav-inner {
        grid-template-columns: 1fr;
    }

    .single-nav-next {
        text-align: left;
    }
}