/* Articles publics (whisky) */

/* ==================== CARTES (home + listing) ==================== */
.article-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}
.article-card-link:hover { color: inherit; }

.article-card {
    background: #fff;
    border: 1px solid rgba(107,75,58,0.12);
    display: flex;
    flex-direction: column;
    transition: all 0.25s;
}
.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 22px rgba(107,75,58,0.18);
    border-color: rgba(107,75,58,0.25);
}

.article-card-photo {
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: #f4efe9;
}
.article-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}
.article-card:hover .article-card-photo img { transform: scale(1.04); }

.article-card-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #c8a35a;
    background: linear-gradient(135deg, #f4efe9 0%, #e5d8c6 100%);
}

.article-card-body {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.article-card-body h5 {
    color: #3b2f2f;
    font-weight: 700;
    margin: 0 0 10px;
    font-size: 1.05rem;
    line-height: 1.3;
}
.article-card-extrait {
    color: #5c4a42;
    font-size: 0.88rem;
    line-height: 1.45;
    margin: 0 0 12px;
    flex: 1;
}
.article-card-date {
    font-size: 0.78rem;
    color: #8a7a6e;
    margin-bottom: 8px;
}
.article-card-cta {
    color: #6b4b3a;
    font-weight: 600;
    font-size: 0.85rem;
    margin-top: auto;
}

/* ==================== LISTING PAGE ==================== */
.articles-list-wrapper {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.articles-list-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.articles-search {
    display: flex;
    gap: 6px;
    flex: 1;
    max-width: 400px;
}
.articles-search input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #c8a890;
    font-size: 0.95rem;
    background: #fff;
}
.articles-search button {
    padding: 8px 16px;
    background: #6b4b3a;
    color: #fff;
    border: none;
    cursor: pointer;
    font-weight: 600;
}
.articles-search button:hover { background: #835a43; }

.articles-layout {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 30px;
}

.articles-main-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.articles-sidebar {
    background: #f9f4ee;
    border: 1px solid rgba(107,75,58,0.1);
    padding: 18px;
    align-self: start;
}
.articles-sidebar h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: #6b4b3a;
    margin: 0 0 14px;
    letter-spacing: 0.08em;
    border-bottom: 1px solid rgba(107,75,58,0.2);
    padding-bottom: 8px;
}

.archive-year { margin-bottom: 6px; }
.archive-year > summary {
    cursor: pointer;
    font-weight: 700;
    padding: 6px 0;
    list-style: none;
    color: #3b2f2f;
}
.archive-year > summary::-webkit-details-marker { display: none; }
.archive-year > summary::before {
    content: '\25B8';
    display: inline-block;
    margin-right: 6px;
    color: #c8a35a;
    transition: transform 0.2s ease;
}
.archive-year[open] > summary::before { transform: rotate(90deg); }

.archive-months {
    list-style: none;
    padding: 0 0 0 16px;
    margin: 4px 0 10px;
}
.archive-months li { padding: 3px 0; }
.archive-months a {
    color: #5c4a42;
    text-decoration: none;
    font-size: 0.9rem;
}
.archive-months a:hover,
.archive-months a.active {
    color: #c8a35a;
    font-weight: 700;
}

.articles-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 24px;
    flex-wrap: wrap;
}
.articles-pagination a,
.articles-pagination span {
    padding: 6px 12px;
    background: #f4efe9;
    color: #3b2f2f;
    text-decoration: none;
    font-size: 0.9rem;
    border: 1px solid rgba(107,75,58,0.15);
}
.articles-pagination a:hover { background: #c8a35a; color: #3d2418; }
.articles-pagination .current {
    background: #6b4b3a;
    color: #fff;
    border-color: #6b4b3a;
    font-weight: 700;
}

.articles-empty {
    padding: 50px 20px;
    text-align: center;
    color: #8a7a6e;
}

/* ==================== DETAIL PAGE ==================== */
.article-detail {
    background: #fff;
    border: 1px solid rgba(107,75,58,0.1);
    padding: 40px;
    max-width: 900px;
    margin: 40px auto;
}

.article-detail-cover {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    margin-bottom: 24px;
}

.article-detail h1 {
    color: #3b2f2f;
    font-weight: 700;
    font-size: 2rem;
    margin: 0 0 10px;
}

.article-detail-meta {
    color: #8a7a6e;
    font-size: 0.9rem;
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(107,75,58,0.15);
}

.article-detail-content {
    color: #3b2f2f;
    font-size: 1.05rem;
    line-height: 1.75;
}
.article-detail-content img {
    max-width: 100%;
    height: auto;
    margin: 16px 0;
}
.article-detail-content h2 {
    font-size: 1.55rem;
    color: #6b4b3a;
    margin: 32px 0 14px;
    font-weight: 700;
}
.article-detail-content h3 {
    font-size: 1.25rem;
    color: #835a43;
    margin: 24px 0 12px;
    font-weight: 600;
}
.article-detail-content blockquote {
    border-left: 4px solid #c8a35a;
    padding-left: 20px;
    color: #5c4a42;
    font-style: italic;
    margin: 18px 0;
    background: #f9f4ee;
    padding: 16px 20px;
}

.article-detail-tags {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid rgba(107,75,58,0.15);
}
.article-detail-tags a {
    display: inline-block;
    padding: 4px 12px;
    background: #f4efe9;
    color: #6b4b3a;
    font-size: 0.82rem;
    text-decoration: none;
    margin: 4px 6px 4px 0;
    border: 1px solid rgba(107,75,58,0.2);
}
.article-detail-tags a:hover { background: #c8a35a; color: #3d2418; }

.article-back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: #6b4b3a;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}
.article-back-link:hover { color: #c8a35a; }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 992px) {
    .articles-layout { grid-template-columns: 1fr; }
    .articles-main-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .articles-main-grid { grid-template-columns: 1fr; }
    .article-detail { padding: 24px 18px; }
    .article-detail h1 { font-size: 1.55rem; }
}
