/**
 * LD Solutions - Single Post
 * Styles pour la page article individuel
 *
 * @package ldsolutions
 * @version 1.0.0
 */

/* ============================================================
   HERO SECTION
   ============================================================ */

.sp-hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 200px 2rem 120px;
    overflow: hidden;
}

.sp-hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.sp-hero__bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sp-hero__bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(2, 27, 80, 0.75) 0%, rgba(2, 27, 80, 0.85) 100%);
}

.sp-hero__container {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.sp-hero__meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 1.5rem;
}

.sp-hero__category {
    display: inline-block;
    padding: 6px 16px;
    font-family: Arial, -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--lds-white, #ffffff);
    background: rgba(18, 90, 248, 0.3);
    border: 1px solid rgba(100, 170, 255, 0.4);
    border-radius: 100px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.sp-hero__category:hover {
    background: rgba(18, 90, 248, 0.5);
    border-color: rgba(100, 170, 255, 0.6);
}

.sp-hero__separator {
    color: rgba(255, 255, 255, 0.4);
}

.sp-hero__date {
    font-family: Arial, -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

.sp-hero__title {
    margin: 0 0 1.5rem;
    font-family: 'Chillax', Arial, -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--lds-white, #ffffff);
}

.sp-hero__excerpt {
    margin: 0 auto;
    max-width: 700px;
    font-family: Arial, -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.125rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
}

/* ============================================================
   CONTENU DE L'ARTICLE
   ============================================================ */

.sp-content {
    position: relative;
    background: var(--lds-white, #ffffff);
    padding: 80px 2rem;
}

.sp-content__container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 80px 1fr 80px;
    gap: 40px;
}

/* Sidebars */
.sp-content__sidebar {
    position: relative;
}

.sp-content__sidebar--left {
    position: sticky;
    top: 120px;
    height: fit-content;
}

/* Partage social */
.sp-share {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.sp-share__label {
    font-family: Arial, -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(21, 30, 40, 0.5);
}

.sp-share__links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sp-share__link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(145deg, var(--lds-white, #ffffff) 0%, #F8FAFF 100%);
    border: 1px solid rgba(2, 27, 80, 0.1);
    color: var(--lds-navy, #021B50);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.sp-share__link:hover {
    background: linear-gradient(135deg, var(--lds-navy, #021B50) 0%, var(--lds-navy-light, #0A2A6E) 100%);
    border-color: transparent;
    color: var(--lds-white, #ffffff);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(2, 27, 80, 0.2);
}

.sp-share__link.copied {
    background: #10B981;
    border-color: transparent;
    color: var(--lds-white, #ffffff);
}

/* Contenu principal */
.sp-content__main {
    max-width: 800px;
    margin: 0 auto;
}

.sp-content__body {
    font-family: Arial, -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.0625rem;
    line-height: 1.8;
    color: rgba(21, 30, 40, 0.8);
}

.sp-content__body h2 {
    font-family: 'Chillax', Arial, -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--lds-navy, #021B50);
    margin: 2.5rem 0 1rem;
    line-height: 1.3;
}

.sp-content__body h3 {
    font-family: 'Chillax', Arial, -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--lds-navy, #021B50);
    margin: 2rem 0 0.75rem;
    line-height: 1.4;
}

.sp-content__body h4 {
    font-family: 'Chillax', Arial, -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--lds-navy, #021B50);
    margin: 1.5rem 0 0.5rem;
    line-height: 1.4;
}

.sp-content__body p {
    margin: 0 0 1.5rem;
}

.sp-content__body a {
    color: var(--lds-blue, #125AF8);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s ease;
}

.sp-content__body a:hover {
    color: var(--lds-navy, #021B50);
}

.sp-content__body strong {
    font-weight: 600;
    color: var(--lds-black, #151E28);
}

.sp-content__body ul,
.sp-content__body ol {
    margin: 0 0 1.5rem;
    padding-left: 1.5rem;
}

.sp-content__body li {
    margin-bottom: 0.5rem;
}

.sp-content__body blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    background: linear-gradient(145deg, #F8FAFF 0%, var(--lds-white, #ffffff) 100%);
    border-left: 4px solid var(--lds-blue, #125AF8);
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: rgba(21, 30, 40, 0.75);
}

.sp-content__body blockquote p:last-child {
    margin-bottom: 0;
}

.sp-content__body img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 2rem 0;
}

.sp-content__body pre {
    margin: 2rem 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--lds-navy, #021B50) 0%, var(--lds-navy-light, #0A2A6E) 100%);
    border-radius: 12px;
    overflow-x: auto;
}

.sp-content__body code {
    font-family: 'Fira Code', 'Consolas', monospace;
    font-size: 0.875rem;
    color: #E0E7FF;
}

.sp-content__body p code {
    padding: 2px 8px;
    background: rgba(18, 90, 248, 0.1);
    color: var(--lds-blue, #125AF8);
    border-radius: 4px;
}

/* Tags */
.sp-content__tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(21, 30, 40, 0.1);
}

.sp-content__tags-label {
    font-family: Arial, -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(21, 30, 40, 0.5);
}

.sp-content__tag {
    display: inline-block;
    padding: 6px 14px;
    font-family: Arial, -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--lds-navy, #021B50);
    background: linear-gradient(135deg, rgba(2, 27, 80, 0.06) 0%, rgba(18, 90, 248, 0.08) 100%);
    border: 1px solid rgba(18, 90, 248, 0.2);
    border-radius: 100px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.sp-content__tag:hover {
    background: linear-gradient(135deg, rgba(18, 90, 248, 0.12) 0%, rgba(18, 90, 248, 0.18) 100%);
    border-color: rgba(18, 90, 248, 0.4);
    transform: translateY(-2px);
}

/* ============================================================
   NAVIGATION ENTRE ARTICLES
   ============================================================ */

.sp-navigation {
    background: linear-gradient(160deg, var(--lds-platinium, #EBEBEB) 0%, #e2e4e8 100%);
    padding: 60px 2rem;
}

.sp-navigation__container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.sp-navigation__link {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 24px;
    background: var(--lds-white, #ffffff);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(2, 27, 80, 0.06);
}

.sp-navigation__link:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(2, 27, 80, 0.1);
}

.sp-navigation__link--empty {
    visibility: hidden;
}

.sp-navigation__link--next {
    text-align: right;
}

.sp-navigation__label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: Arial, -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--lds-blue, #125AF8);
}

.sp-navigation__link--next .sp-navigation__label {
    justify-content: flex-end;
}

.sp-navigation__title {
    font-family: 'Chillax', Arial, -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--lds-navy, #021B50);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================================
   ARTICLES CONNEXES
   ============================================================ */

.sp-related {
    background: var(--lds-white, #ffffff);
    padding: 100px 2rem;
}

.sp-related__container {
    max-width: 1200px;
    margin: 0 auto;
}

.sp-related__header {
    text-align: center;
    margin-bottom: 3rem;
}

.sp-related__title {
    font-family: 'Chillax', Arial, -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    text-transform: uppercase;
    margin: 0 0 1rem;
    color: var(--lds-navy, #021B50);
}

.sp-related__title span {
    font-style: italic;
}

.sp-related__subtitle {
    font-family: Arial, -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.7;
    color: rgba(21, 30, 40, 0.65);
    margin: 0;
}

.sp-related__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 3rem;
}

.sp-related__cta {
    text-align: center;
}

/* ============================================================
   CTA SECTION
   ============================================================ */

.sp-cta {
    position: relative;
    padding: 100px 2rem;
    overflow: hidden;
}

.sp-cta__bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.sp-cta__bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sp-cta__bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(2, 27, 80, 0.85);
}

.sp-cta__container {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.sp-cta__title {
    font-family: 'Chillax', Arial, -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    text-transform: uppercase;
    margin: 0 0 1.25rem;
    color: var(--lds-white, #ffffff);
}

.sp-cta__text {
    font-family: Arial, -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 2rem;
}

.sp-cta__actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.sp-cta__actions .lds-btn svg {
    margin-left: 8px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
    .sp-hero {
        padding: 160px 1.5rem 100px;
    }

    .sp-content {
        padding: 60px 1.5rem;
    }

    .sp-content__container {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .sp-content__sidebar--left {
        position: relative;
        top: auto;
        order: 2;
        margin-top: 3rem;
        padding-top: 2rem;
        border-top: 1px solid rgba(21, 30, 40, 0.1);
    }

    .sp-share {
        flex-direction: row;
        justify-content: center;
    }

    .sp-share__links {
        flex-direction: row;
    }

    .sp-content__sidebar--right {
        display: none;
    }

    .sp-content__main {
        order: 1;
    }

    .sp-navigation,
    .sp-related,
    .sp-cta {
        padding: 80px 1.5rem;
    }

    .sp-related__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .sp-hero {
        min-height: 50vh;
        padding: 140px 1rem 80px;
    }

    .sp-hero__meta {
        flex-wrap: wrap;
    }

    .sp-hero__excerpt {
        font-size: 1rem;
    }

    .sp-content {
        padding: 50px 1rem;
    }

    .sp-content__body {
        font-size: 1rem;
    }

    .sp-content__body h2 {
        font-size: 1.5rem;
    }

    .sp-content__body h3 {
        font-size: 1.25rem;
    }

    .sp-navigation {
        padding: 50px 1rem;
    }

    .sp-navigation__container {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .sp-navigation__link--next {
        text-align: left;
    }

    .sp-navigation__link--next .sp-navigation__label {
        justify-content: flex-start;
        flex-direction: row-reverse;
    }

    .sp-related,
    .sp-cta {
        padding: 60px 1rem;
    }

    .sp-related__grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 480px) {
    .sp-hero {
        min-height: 45vh;
        padding: 120px 1rem 60px;
    }

    .sp-hero__title {
        font-size: 1.5rem;
    }

    .sp-hero__excerpt {
        font-size: 0.9375rem;
    }

    .sp-content {
        padding: 40px 1rem;
    }

    .sp-content__body blockquote {
        padding: 1rem 1.25rem;
    }

    .sp-cta {
        padding: 50px 1rem;
    }

    .sp-cta__actions .lds-btn {
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }
}
