/* ==========================================
   DICTIONNAIRE DES DÉCORATIONS - STYLES
   Thème: GridMag Child
   ========================================== */

/* ==========================================
   EN-TÊTE ARCHIVE
   ========================================== */
.decorations-header {
    background: linear-gradient(135deg, #d4af37 0%, #aa8c2c 100%);
    color: white;
    padding: 60px 40px;
    text-align: center;
    margin-bottom: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.decorations-header .page-title {
    font-size: 2.5em;
    margin: 0 0 15px 0;
    font-weight: 700;
}

.decorations-header .archive-description {
    font-size: 1.1em;
    margin: 0 0 30px 0;
    opacity: 0.95;
}

/* Statistiques */
.decorations-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
}

.decorations-stats .stat-box {
    text-align: center;
}

.decorations-stats .stat-number {
    display: block;
    font-size: 3em;
    font-weight: 700;
    line-height: 1;
}

.decorations-stats .stat-label {
    display: block;
    font-size: 0.9em;
    margin-top: 8px;
    opacity: 0.9;
}

/* ==========================================
   FILTRES
   ========================================== */
.decorations-filters {
    background: white;
    padding: 30px;
    margin-bottom: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.search-box {
    margin-bottom: 20px;
}

.search-box form {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
}

.decoration-search-input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid #d4af37;
    border-radius: 4px 0 0 4px;
    font-size: 16px;
}

.search-submit {
    background: #d4af37;
    border: none;
    padding: 12px 25px;
    cursor: pointer;
    border-radius: 0 4px 4px 0;
    transition: background 0.3s;
}

.search-submit:hover {
    background: #b8922b;
}

.search-submit .dashicons {
    color: white;
    font-size: 20px;
}

.filter-types {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.filter-types label {
    font-weight: 600;
    color: #333;
}

.filter-types select {
    padding: 10px 15px;
    border: 2px solid #d4af37;
    border-radius: 4px;
    font-size: 15px;
    min-width: 250px;
}

/* Filtre alphabétique */
.alpha-filter {
    margin-top: 20px;
}

.alpha-letters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.alpha-link {
    display: inline-block;
    width: 35px;
    height: 35px;
    line-height: 35px;
    text-align: center;
    background: #f5f5f5;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s;
    font-weight: 600;
}

.alpha-link:hover,
.alpha-link.active {
    background: #d4af37;
    color: white;
}

.alpha-link.reset {
    width: auto;
    padding: 0 15px;
}

/* ==========================================
   GRILLE DES DÉCORATIONS
   ========================================== */
.decorations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.decoration-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.decoration-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.decoration-card .card-content {
    padding: 25px;
}

/* Image du ruban */
.ruban-image {
    text-align: center;
    margin-bottom: 20px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 4px;
}

.ruban-image img {
    max-width: 100%;
    height: auto;
    max-height: 120px;
    object-fit: contain;
}

/* Titre */
.decoration-title {
    font-size: 1.4em;
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.decoration-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.decoration-title a:hover {
    color: #d4af37;
}

/* Badge type */
.decoration-type {
    margin-bottom: 15px;
}

.type-badge {
    display: inline-block;
    background: #d4af37;
    color: white;
    padding: 5px 12px;
    border-radius: 3px;
    font-size: 0.85em;
    font-weight: 600;
}

/* Extrait */
.decoration-excerpt {
    color: #666;
    font-size: 0.95em;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Métadonnées */
.decoration-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.decoration-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9em;
    color: #666;
}

.decoration-meta .dashicons {
    color: #d4af37;
    font-size: 18px;
}

/* Lien "En savoir plus" */
.read-more-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #d4af37;
    text-decoration: none;
    font-weight: 600;
    transition: gap 0.3s;
}

.read-more-link:hover {
    gap: 10px;
}

/* ==========================================
   FICHE INDIVIDUELLE
   ========================================== */
.decoration-single {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Fil d'Ariane */
.breadcrumb {
    margin-bottom: 30px;
    font-size: 0.9em;
    color: #666;
}

.breadcrumb a {
    color: #d4af37;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb .separator {
    margin: 0 8px;
    color: #ccc;
}

.breadcrumb .current {
    color: #333;
}

/* En-tête avec ruban */
.decoration-header {
    background: linear-gradient(135deg, #d4af37 0%, #aa8c2c 100%);
    color: white;
    padding: 40px;
    border-radius: 8px;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 30px;
}

.ruban-large {
    flex-shrink: 0;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.ruban-large img {
    display: block;
    max-width: 150px;
    height: auto;
    max-height: 200px;
    object-fit: contain;
}

.decoration-title-group {
    flex: 1;
}

.decoration-title-group .decoration-title {
    font-size: 2.2em;
    margin: 0 0 10px 0;
}

.decoration-title-group .variantes {
    font-size: 0.95em;
    opacity: 0.9;
    margin: 5px 0;
}

.decoration-title-group .devise {
    font-size: 1.1em;
    font-style: italic;
    margin: 15px 0 0 0;
    opacity: 0.95;
}

/* Badges */
.decoration-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.badge {
    display: inline-block;
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: 600;
    background: rgba(255,255,255,0.2);
}

.badge-type {
    background: rgba(255,255,255,0.3);
}

.badge-periode {
    background: rgba(255,255,255,0.25);
}

.badge-date {
    background: rgba(255,255,255,0.2);
}

/* Contenu */
.decoration-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    margin-bottom: 40px;
}

.definition-box {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.definition-box h2 {
    color: #d4af37;
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #d4af37;
}

.definition-text {
    line-height: 1.8;
    color: #333;
}

/* Encadré statistiques */
.stats-box {
    background: linear-gradient(135deg, #d4af37 0%, #aa8c2c 100%);
    color: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.stats-box h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.3em;
}

.stats-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.stats-box li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.stats-box li:last-child {
    border-bottom: none;
}

.stats-box strong {
    display: block;
    margin-bottom: 5px;
    opacity: 0.9;
}

/* Navigation */
.decoration-navigation {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    margin-top: 40px;
}

.nav-links {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 20px;
}

.nav-prev,
.nav-next {
    flex: 1;
    padding: 15px;
    background: white;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
    text-align: center;
}

.nav-prev:hover,
.nav-next:hover {
    background: #d4af37;
    color: white;
}

.back-to-archive {
    display: inline-block;
    padding: 12px 25px;
    background: #d4af37;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s;
}

.back-to-archive:hover {
    background: #b8922b;
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 768px) {
    .decorations-header {
        padding: 40px 20px;
    }
    
    .decorations-header .page-title {
        font-size: 1.8em;
    }
    
    .decorations-stats {
        gap: 20px;
    }
    
    .decorations-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .decoration-header {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }
    
    .decoration-title-group .decoration-title {
        font-size: 1.6em;
    }
    
    .decoration-content {
        grid-template-columns: 1fr;
    }
    
    .nav-links {
        flex-direction: column;
    }
    
    .alpha-letters {
        gap: 5px;
    }
    
    .alpha-link {
        width: 30px;
        height: 30px;
        line-height: 30px;
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    .decorations-header .page-title {
        font-size: 1.5em;
    }
    
    .decorations-stats .stat-number {
        font-size: 2.5em;
    }
    
    .filter-types {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-types select {
        width: 100%;
        min-width: 0;
    }
}

/* ==========================================
   PAGINATION
   ========================================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 40px 0;
}

.pagination .page-numbers {
    padding: 10px 15px;
    background: white;
    border: 2px solid #d4af37;
    color: #d4af37;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: #d4af37;
    color: white;
}

/* Pas de résultats */
.no-results {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.no-results h2 {
    color: #d4af37;
    margin-bottom: 15px;
}

.no-results a {
    color: #d4af37;
    text-decoration: underline;
}
