﻿/* Blog - Page article */

/* ===== BANNER ===== */

.banner-section {
    max-width: 1280px;
    margin: 0 auto;
}


/* ===== CONTAINER ===== */
.main-article {
    background-color: var(--white);
}
 
.article-container {
    display: grid;
    grid-template-columns: 1fr 280px; /* Colonne de gauche prend tout l'espace, celle de droite est fixÃ© Ã  280px */
    column-gap: 40px; /* Espace entre les colonnes uniquement, pas entre breadcrumb et colonnes */
    row-gap: 0;
    max-width: 1280px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 100px 100px 0px 0px;
    position: relative;
    z-index: 2; /* Passe devant le bloc blanc */
    top: -50px; /* Seul le contenu remonte */
    padding: 0 60px 40px 60px;
    box-shadow: 0px -250px 99px #0000001A;
}
 
/* ===== BREADCRUMB ===== */

/* Le breadcrumb occupe sa propre ligne en haut de la grille et s'Ã©tend
   sur les deux colonnes â€” comme Ã§a les colonnes dÃ©marrent au mÃªme Y
   et la pub s'aligne naturellement avec l'image.
   .article-container ayant 60px de padding latÃ©ral, on ajoute 80px ici
   (offset volontairement plus grand que les 100px des autres pages).
   Single-line forcÃ© pour que le titre ne passe jamais Ã  la ligne. */
.article-container > .breadcrumb {
    grid-column: 1 / -1;
    padding-inline: 20px;
    padding-left: 80px;
    flex-wrap: nowrap;
    white-space: nowrap;
}

/* ===== HEADER ARTICLE ===== */
 
.article-header {
    margin-bottom: 0;
}
 
.article-title {
    font-family: var(--font-head);
    font-size: 3.5rem;
    line-height: 1.05;
    margin: 0 0 10px 0;
    color: var(--purple);
}
 
/* ===== META INFOS ===== */
 
/* Meta (auteur, date, vues) â€” sous l'image, style sobre */
.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    color: var(--purple);
    opacity: 0.7;
}

.article-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
}

.article-meta-item svg {
    opacity: 0.6;
    flex-shrink: 0;
}

.article-meta-item strong {
    color: var(--purple);
    font-weight: 600;
}
 
/* ===== COVER IMAGE ===== */
 
.article-cover {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 24px;
    background: rgba(255, 255, 255, 0.02);
}
 
.article-cover img {
    width: 100%;
    height: 300px;
    max-height: 450px;
    object-fit: cover;
    display: block;
}
 
/* ===== CONTENU ARTICLE ===== */

.article-content {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--purple);
    position: relative;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid rgba(74, 25, 67, 0.12);
}

.article-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 64px;
    height: 3px;
    background: var(--orange);
    border-radius: 2px;
    transform: translateY(-50%);
}

.article-content h2 {
    font-family: var(--font-body);
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.25;
    margin: 44px 0 18px 0;
    padding: 0;
    color: var(--orange);
}

.article-content h3 {
    font-family: var(--font-body);
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--orange);
    margin: 32px 0 12px 0;
    display: flex;
    align-items: center;
    gap: 14px;
}

.article-content h3::before {
    content: '';
    flex: 0 0 32px;
    height: 2px;
    background: var(--orange);
    border-radius: 1px;
}

.article-content h4 {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--purple);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 22px 0 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.article-content h4::before {
    content: '';
    flex: 0 0 18px;
    height: 1px;
    background: var(--purple);
    opacity: 0.45;
}
 
.article-content p {
    margin: 0 0 20px 0;
    font-size: 0.875rem;
}
 
.article-content ul,
.article-content ol {
    margin: 0 0 20px 0;
    padding-left: 24px;
}
 
.article-content li {
    margin-bottom: 8px;
    font-size: 0.875rem;
}
 
.article-content strong {
    color: var(--orange);
    font-weight: 700;
    font-size: 1rem;
}
 
.article-content a {
    color: var(--orange);
    text-decoration: underline;
}
 
.article-content a:hover {
    opacity: 0.8;
}
 
.article-content blockquote {
    margin: 24px 0;
    padding: 20px 24px;
    background: rgba(255, 128, 0, 0.06);
    border-left: 4px solid var(--orange);
    border-radius: 0 12px 12px 0;
    font-style: italic;
}
 
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 24px 0;
}
 
/* ===== COLONNE DE GAUCHE ===== */
.first-column {
    display: flex;
    flex-direction: column;
    width: 800px;
    text-align: left;
}

/* ===== COLONNE DE DROITE ===== */
.second-column {
    color: black;
}

/* Bloc reseaux sociaux entre la pub et "Les plus consultes" */
.blog-social {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Titres sidebar : factorise pour garantir un rendu strictement identique */
.blog-social-title,
.related-title {
    margin: 0;
    padding: 0;
    font-family: var(--font-head);
    font-size: 2.4em;
    font-weight: 400;
    line-height: 1;
    color: var(--purple);
    display: flex;
    align-items: center;
    gap: 12px;
}

.blog-social-title::after,
.related-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--purple);
    align-self: center;
}

.blog-social-icons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.blog-social-icons a {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--orange);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: transform 0.2s ease, opacity 0.3s ease;
}

.blog-social-icons a:hover {
    transform: scale(1.1);
    opacity: 0.9;
}

.blog-social-icons a svg {
    width: 100%;
    height: 100%;
    mix-blend-mode: multiply;
    pointer-events: none;
}

/* ===== PARTAGE SOCIAL ===== */
 
.article-share {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 48px;
    justify-content: center;
}
 
.share-label {
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.8;
    color: black;
}
 
.share-buttons {
    display: flex;
    gap: 12px;
}
 
.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.share-btn svg {
    width: 22px;
    height: 22px;
}
 
.share-facebook {
    background: #1877f2;
    color: #fff;
}
 
.share-twitter {
    background: #1da1f2;
    color: #fff;
}
 
.share-linkedin {
    background: #0077b5;
    color: #fff;
}
 
.share-copy {
    background: lightgrey;
    color: #fff;
}
 
.share-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
 
.share-copy.copied {
    background: #4ade80;
}
 
/* ===== BOUTONS ACTIONS ===== */
 
.buttons-actions {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr; /* 50% / 50% : chaque bouton couvre la moitie en hit-zone */
    padding: 25px 0;
    margin-top: 30px;
}

/* Trait horizontal en haut : plus large que le conteneur, fondu blanc aux extremites */
.buttons-actions::after {
    content: '';
    position: absolute;
    top: 0;
    left: -40px;
    right: -40px;
    height: 1px;
    background: linear-gradient(to right,
        transparent 0%,
        #ececec 12%,
        #ececec 88%,
        transparent 100%);
    pointer-events: none;
}

/* Trait vertical entre les deux boutons (touche l'horizontal en haut -> forme T,
   descend legerement avec fondu blanc) â€” visible si prev ET next presents */
.buttons-actions.has-divider::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    height: calc(100% + 8px);
    width: 1px;
    background: linear-gradient(to bottom,
        #ececec 0%,
        #ececec 80%,
        transparent 100%);
    pointer-events: none;
}

.nav-item {
    text-decoration: none;
    display: flex;
    flex-direction: column; /* Empile le label au-dessus du titre */
    justify-content: center;
    min-width: 0;
    padding: 14px 22px;
    border-radius: 8px;
}

.nav-item.prev {
    grid-column: 1; /* Toujours dans la colonne de gauche, meme si seul */
}

.nav-item.next {
    grid-column: 2; /* Toujours dans la colonne de droite, meme si seul */
    text-align: right;
    align-items: flex-end;
}

.action-label {
    color: var(--purple);
    font-size: 1rem;
    margin-bottom: 4px;
}

.article-direction-title {
    color: var(--orange);
    font-weight: bold;
    font-size: 0.875rem;

    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 73%;
}
.article-direction-title:hover {
    text-decoration: underline;
}
 
/* ===== ARTICLES SIMILAIRES ===== */
 
.related-articles {
    margin-top: 64px;
    padding: 48px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
    z-index: 2;
    background-color: var(--purple);
    padding-bottom: 50px;
}
 
.related-articles-section {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.related-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.related-list li {
    position: relative;
    padding-left: 22px;
}

.related-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--orange);
}

.related-card {
    color: var(--purple);
    text-decoration: none;
    font-size: 1rem;
    line-height: 1.4;
    transition: opacity 0.2s ease;
}

.related-card:hover {
    opacity: 0.7;
    text-decoration: underline;
}
 
/* ===== META : badge "Mis Ã  jour le" ===== */

.article-meta-updated strong {
    color: var(--orange);
}

/* ===== TABLE DES MATIÃˆRES (TOC) ===== */

/* TOC desktop : sticky en sidebar */
.article-toc-desktop {
    position: sticky;
    top: 90px;
    margin-bottom: 24px;
    padding: 18px 18px 12px;
    background: rgba(74, 25, 67, 0.04);
    border-left: 3px solid var(--orange);
    border-radius: 0 12px 12px 0;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
}

.toc-title {
    margin: 0 0 12px 0;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--purple);
}

.toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: toc;
}

.toc-item {
    margin: 6px 0;
    line-height: 1.35;
}

.toc-item a {
    color: var(--purple);
    text-decoration: none;
    font-size: 0.875rem;
    opacity: 0.85;
    transition: color 0.2s, opacity 0.2s;
}

.toc-item a:hover {
    color: var(--orange);
    opacity: 1;
    text-decoration: underline;
}

.toc-level-3 {
    padding-left: 14px;
    position: relative;
}

.toc-level-3::before {
    content: '–';
    position: absolute;
    left: 0;
    color: var(--orange);
    opacity: 0.6;
}

.toc-level-3 a {
    font-size: 0.75rem;
    opacity: 0.75;
}

/* TOC mobile : <details> repliable au-dessus du contenu */
.article-toc-mobile {
    display: none;
    margin: 24px 0 16px;
    padding: 14px 18px;
    background: rgba(74, 25, 67, 0.05);
    border-radius: 12px;
    border-left: 3px solid var(--orange);
}

.article-toc-mobile summary {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--purple);
    font-size: 1rem;
    list-style: none;
}

.article-toc-mobile summary::-webkit-details-marker {
    display: none;
}

.article-toc-mobile summary svg {
    color: var(--orange);
    flex-shrink: 0;
}

.article-toc-mobile[open] summary {
    margin-bottom: 12px;
}

.article-toc-mobile .toc-list {
    padding-left: 4px;
}

/* ===== ARTICLES SIMILAIRES (sidebar) ===== */

.similar-articles-section {
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.similar-title {
    margin: 0 0 4px 0;
    font-family: var(--font-head);
    font-size: 2.4em;
    font-weight: 400;
    line-height: 1;
    color: var(--purple);
    display: flex;
    align-items: center;
    gap: 12px;
}

.similar-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--purple);
    align-self: center;
}

.similar-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.similar-card {
    display: flex;
    gap: 12px;
    text-decoration: none;
    color: var(--purple);
    border-radius: 10px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.similar-card:hover {
    transform: translateX(2px);
    opacity: 0.85;
}

.similar-thumb {
    flex: 0 0 70px;
    height: 70px;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(74, 25, 67, 0.06);
}

.similar-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.similar-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.similar-title-text {
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--purple);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.similar-excerpt {
    font-size: 0.75rem;
    line-height: 1.3;
    color: var(--purple);
    opacity: 0.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Ancre offset : pour que les liens #heading ne soient pas masquÃ©s par le header */
.article-content h2[id],
.article-content h3[id] {
    scroll-margin-top: 100px;
}

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

@media (max-width: 768px) {
    .article-title {
        font-size: 1.75rem;
    }
 
    .article-meta {
        gap: 12px;
        font-size: 0.75rem;
    }

    .article-content {
        margin-top: 24px;
        padding-top: 24px;
    }

    .article-content::before {
        width: 48px;
        height: 2px;
    }

    .article-content h3 {
        font-size: 1.125rem;
    }

    .article-content h4 {
        font-size: 1rem;
    }
 
    .article-cover img {
        max-height: 300px;
    }
 
    .article-share {
        flex-direction: column;
        align-items: flex-start;
    }
 
    .related-grid {
        grid-template-columns: 1fr;
    }

    /* TOC : version mobile <details> visible, desktop sticky cachÃ©e */
    .article-toc-desktop {
        display: none;
    }

    .article-toc-mobile {
        display: block;
    }

    /* Articles similaires : cards un peu plus compactes */
    .similar-thumb {
        flex: 0 0 60px;
        height: 60px;
    }

    .similar-title-text {
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .article-title {
        font-size: 1.5rem;
    }
 
    .article-content {
        font-size: 1rem;
    }
}