/* ============================================================
   MIELANCE MÉDIA — archive.css
   Styles des pages catégories et archives
   ============================================================ */

/* ============================================================
   EN-TÊTE ARCHIVE / CATÉGORIE
   ============================================================ */
.archive-header {
    background: var(--color-brun);
    padding: var(--space-3xl) 0;
    position: relative;
    overflow: hidden;
}

/* Motif nid d'abeille discret */
.archive-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100'%3E%3Cpath d='M28 66L0 50V18L28 2l28 16v32L28 66zm0-6l22-12.7V25.7L28 13 6 25.7v21.6L28 60z' fill='%23C8962E' fill-opacity='0.07'/%3E%3C/svg%3E");
    background-size: 56px 100px;
    pointer-events: none;
}

.archive-header::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(200,150,46,0.12) 0%, transparent 60%);
    pointer-events: none;
}

.archive-header__inner {
    display: flex;
    align-items: center;
    gap: var(--space-2xl);
    position: relative;
    z-index: 1;
}

/* Icône de catégorie */
.archive-header__icon {
    font-size: 4rem;
    line-height: 1;
    flex-shrink: 0;
    filter: drop-shadow(0 4px 12px rgba(200,150,46,0.4));
    transition: transform var(--transition-base);
}

.archive-header:hover .archive-header__icon {
    transform: scale(1.08) rotate(-3deg);
}

/* Texte */
.archive-header__eyebrow {
    font-family: var(--font-ui);
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-or-clair);
    margin-bottom: var(--space-sm);
    margin-top: 0;
    opacity: 0.8;
}

.archive-header__title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--color-blanc);
    line-height: 1.1;
    margin-bottom: var(--space-sm);
}

.archive-header__desc {
    font-family: var(--font-body);
    font-size: var(--text-md);
    color: rgba(245, 237, 216, 0.65);
    line-height: 1.6;
    margin-bottom: var(--space-sm);
    margin-top: 0;
    max-width: 600px;
}

.archive-header__count {
    font-family: var(--font-ui);
    font-size: var(--text-sm);
    color: var(--color-or-pale);
    margin: 0;
    opacity: 0.8;
}

.archive-header__count span {
    font-weight: 700;
    font-size: var(--text-md);
    color: var(--color-or-clair);
}

/* ============================================================
   EN-TÊTE ARCHIVE AUTEUR
   ============================================================ */
.archive-header--author .archive-header__author-avatar-wrap {
    position: relative;
    width: 110px;
    height: 110px;
    flex-shrink: 0;
}

.archive-header__author-avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    position: relative;
    z-index: 1;
    border: 3px solid rgba(255,255,255,0.2);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.archive-header__author-ring {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: conic-gradient(
        var(--color-or) 0deg,
        var(--color-or-clair) 90deg,
        var(--color-or-pale) 180deg,
        var(--color-or) 360deg
    );
    z-index: 0;
    opacity: 0.8;
}

/* ============================================================
   CORPS ARCHIVE
   ============================================================ */
.archive-body {
    padding-top: var(--space-3xl);
    padding-bottom: var(--space-4xl);
}

/* ============================================================
   ÉTAT VIDE
   ============================================================ */
.no-results {
    text-align: center;
    padding: var(--space-4xl) var(--space-xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    max-width: 480px;
    margin: 0 auto;
}

.no-results__icon {
    font-size: 4rem;
    margin: 0;
    line-height: 1;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-10px); }
}

.no-results__title {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    color: var(--color-brun);
    margin: 0;
}

.no-results__text {
    font-size: var(--text-md);
    color: var(--color-gris-chaud);
    line-height: 1.6;
    margin: 0;
}

/* ============================================================
   RESPONSIVE ARCHIVE
   ============================================================ */
@media (max-width: 768px) {
    .archive-header {
        padding: var(--space-2xl) 0;
    }

    .archive-header__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-lg);
    }

    .archive-header__icon {
        font-size: 3rem;
    }

    .archive-header__title {
        font-size: var(--text-3xl);
    }
}

@media (max-width: 480px) {
    .archive-header__title {
        font-size: var(--text-2xl);
    }
}
