/* ==========================================================================
   SIDEBAR ARTICLES (Desktop uniquement)
   ========================================================================== */

/* Conteneur flex article + sidebar */
.single-content-area {
    display: flex;
    gap: 60px;
    align-items: flex-start;
    justify-content: flex-end;
}

/* Colonne principale */
.single-content-main {
    flex: 1;
    min-width: 0;
    max-width: 800px;
    overflow-x: hidden;
}

/* Sidebar droite */
.single-sidebar {
    width: 300px;
    flex-shrink: 0;
    padding-top: 10px;
}

.sidebar-inner {
    margin-bottom: 30px;
}

.sidebar-popular {
    margin-bottom: 30px;
}

/* Grand Angle sticky au scroll */
.sidebar-sticky {
    position: sticky;
    top: 80px;
}

/* ==========================================================================
   TITRES SIDEBAR
   ========================================================================== */
.sidebar-title {
    font-size: 1.3rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #1a1a1a;
    margin: 0 0 20px 0;
    position: relative;
    padding-left: 15px;
}

.sidebar-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 80%;
    background-color: #e65f0d;
    border-radius: 3px;
}

/* ==========================================================================
   ARTICLES POPULAIRES — thumbnail + texte
   ========================================================================== */
.sidebar-popular-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sidebar-popular-item {
    display: flex;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    align-items: flex-start;
}

.sidebar-popular-item:hover .sidebar-popular-title {
    color: #e65f0d;
}

.sidebar-popular-thumb {
    width: 100px;
    min-width: 100px;
    aspect-ratio: 1 / 1;
    border-radius: 6px;
    overflow: hidden;
    background-color: #f0f0f0;
}

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

.sidebar-popular-info {
    flex: 1;
    min-width: 0;
}

.sidebar-popular-title {
    font-size: 1rem;
    color: #333;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 5px 0;
    transition: color 0.2s ease;
}

.sidebar-popular-date {
    font-size: 0.8rem;
    color: #999;
}

/* ==========================================================================
   NEWSLETTER SIDEBAR — fond noir, icone, CTA
   ========================================================================== */
.sidebar-newsletter {
    background-color: #1a1a1a;
    border-radius: 12px;
    padding: 30px 25px;
    text-align: center;
}

.sidebar-newsletter .sidebar-title {
    color: #ffffff;
    text-align: center;
    margin-bottom: 15px;
}

/* Icone enveloppe + lignes */
.sidebar-newsletter-icon {
    position: relative;
    display: inline-block;
    margin-bottom: 15px;
}

.sidebar-newsletter-icon svg {
    display: block;
    margin: 0 auto;
}

.sidebar-newsletter-lines {
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.sidebar-newsletter-lines span {
    display: block;
    height: 2px;
    background-color: #999;
    border-radius: 1px;
}

.sidebar-newsletter-lines span:nth-child(1) {
    width: 18px;
}

.sidebar-newsletter-lines span:nth-child(2) {
    width: 14px;
}

.sidebar-newsletter-lines span:nth-child(3) {
    width: 10px;
}

.sidebar-newsletter-desc {
    color: #ccc;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0 0 20px 0;
}

.sidebar-newsletter-form input[type="email"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #444;
    border-radius: 6px;
    font-size: 0.9rem;
    margin-bottom: 12px;
    box-sizing: border-box;
    background-color: #2a2a2a;
    color: #fff;
    transition: border-color 0.3s ease;
}

.sidebar-newsletter-form input[type="email"]::placeholder {
    color: #888;
}

.sidebar-newsletter-form input[type="email"]:focus {
    border-color: #e65f0d;
    outline: none;
}

.sidebar-newsletter-form button[type="submit"] {
    display: inline-block;
    padding: 12px 30px;
    background-color: #e65f0d;
    color: #fff;
    border: none;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.sidebar-newsletter-form button[type="submit"]:hover {
    background-color: #cf5307;
}

/* ==========================================================================
   GRAND ANGLE (pub sticky)
   ========================================================================== */
.sidebar-sticky .sidebar-ad {
    text-align: center;
}

/* ==========================================================================
   RESPONSIVE : masquer la sidebar sous 968px
   ========================================================================== */
@media (max-width: 968px) {
    .single-content-area {
        display: block;
    }

    .single-content-main {
        max-width: 100%;
    }

    .single-sidebar {
        display: none;
    }

    .single-post-wrapper {
        max-width: 1000px;
    }
}
