/* ============================================
   Single Actualité — style.css
   ============================================ */

/* ── Wrap global ── */
.wsa-wrap {
    background: #fff;
    padding: 2rem 0 3rem;
}

.wsa-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    align-items: start;
}

/* ══════════════════════════════
   COLONNE PRINCIPALE
══════════════════════════════ */

/* Image à la une */
.wsa-featured-img {
    margin-bottom: 1.5rem;
    border-radius: 8px;
    overflow: hidden;
}
.wsa-featured-img img {
    width: 100%;
    height: auto;
    display: block;
}

/* Titre */
.wsa-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.3;
    margin: 0 0 .6rem;
}

/* Date */
.wsa-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #888;
    margin: 0 0 1.5rem;
}
.wsa-date svg {
    opacity: .6;
    flex-shrink: 0;
}

/* Contenu article */
.wsa-content {
    font-size: 0.9375rem;
    color: #333;
    line-height: 1.75;
}

.wsa-content p {
    margin: 0 0 1rem;
}

.wsa-content h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 1.75rem 0 .75rem;
}

.wsa-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 1.5rem 0 .6rem;
}

.wsa-content ul,
.wsa-content ol {
    margin: 0 0 1rem;
    padding-left: 1.5rem;
}

.wsa-content ul li,
.wsa-content ol li {
    margin-bottom: .4rem;
    line-height: 1.65;
}

.wsa-content strong {
    font-weight: 700;
    color: #1a1a2e;
}

.wsa-content a {
    color: #1a7a6e;
    text-decoration: underline;
}
.wsa-content a:hover {
    color: #0f5a52;
}

/* Bouton CTA dans le contenu (généré par WordPress via shortcode ou bouton Gutenberg) */
.wsa-content .wp-block-button__link,
.wsa-content .wsa-cta-btn {
    display: inline-block;
    background: #1a1a2e;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 12px 28px;
    border-radius: 4px;
    text-decoration: none;
    transition: background .2s;
}
.wsa-content .wp-block-button__link:hover,
.wsa-content .wsa-cta-btn:hover {
    background: #2d2d50;
}

.wsa-content .wp-block-button {
    text-align: center;
    margin: 1.5rem 0;
}

/* Navigation entre articles */
.wsa-nav-posts {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
    flex-wrap: wrap;
}

.wsa-nav-btn {
    font-size: 0.82rem;
    color: #1a7a6e;
    text-decoration: none;
    max-width: 45%;
    line-height: 1.4;
    transition: color .2s;
}
.wsa-nav-btn:hover { color: #0f5a52; }
.wsa-nav-next { text-align: right; margin-left: auto; }

/* Bouton retour */
.wsa-back-wrap {
    margin-top: 1.5rem;
    text-align: center;
}

.wsa-back-btn {
    display: inline-block;
    background: #1a1a2e;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: 4px;
    text-decoration: none;
    transition: background .2s;
}
.wsa-back-btn:hover { background: #2d2d50; }

/* ══════════════════════════════
   SIDEBAR
══════════════════════════════ */
.wsa-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    position: sticky;
    top: 2rem;
}

.wsa-sidebar-block {
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 1.5rem;
}
.wsa-sidebar-block:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.wsa-sidebar-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 .875rem;
}

/* Recherche */
.wsa-search-form {
    display: flex;
    align-items: center;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
    background: #f9fafb;
}

.wsa-search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 9px 12px;
    font-size: 0.875rem;
    color: #333;
    outline: none;
}
.wsa-search-input::placeholder { color: #aaa; }

.wsa-search-btn {
    background: transparent;
    border: none;
    padding: 9px 12px;
    cursor: pointer;
    color: #1a7a6e;
    display: flex;
    align-items: center;
    transition: color .2s;
}
.wsa-search-btn:hover { color: #0f5a52; }

/* Dernières actus */
.wsa-recent-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.wsa-recent-item {
    border-bottom: 1px solid #f0f0f0;
}
.wsa-recent-item:last-child { border-bottom: none; }

.wsa-recent-item a {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: .6rem 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1a1a2e;
    text-decoration: none;
    line-height: 1.4;
    transition: color .2s;
}
.wsa-recent-item a:hover { color: #1a7a6e; }
.wsa-recent-item a svg {
    flex-shrink: 0;
    margin-top: 3px;
    color: #1a7a6e;
}

/* Catégories */
.wsa-cat-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.wsa-cat-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #f0f0f0;
}
.wsa-cat-list li:last-child { border-bottom: none; }

.wsa-cat-list li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: .6rem 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1a1a2e;
    text-decoration: none;
    transition: color .2s;
    flex: 1;
}
.wsa-cat-list li a:hover { color: #1a7a6e; }
.wsa-cat-list li a svg { color: #1a7a6e; flex-shrink: 0; }

.wsa-cat-count {
    font-size: 0.75rem;
    color: #999;
    background: #f3f4f6;
    padding: 2px 7px;
    border-radius: 10px;
}

/* ══════════════════════════════
   RESPONSIVE
══════════════════════════════ */
@media (max-width: 900px) {
    .wsa-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .wsa-sidebar {
        position: static;
        border-top: 1px solid #e5e7eb;
        padding-top: 2rem;
    }
    .wsa-title {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .wsa-wrap {
        padding: 1rem 0 2rem;
    }
    .wsa-container {
        padding: 0 1rem;
    }
    .wsa-title {
        font-size: 1.2rem;
    }
}
