/*
Theme Name: SGC2 : Laboratoire 2 - Thème Pokémon
Description: Thème WordPress pour catalogue Pokémon - SGC2 : Laboratoire 2
Author: Rémi Guyon
Version: 1.0.0
Text Domain: sgc2-pokedex
*/

/* ==========================================================================
   Reset et Base
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

/* ==========================================================================
   Container et Layout
   ========================================================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.site-header h1 {
    margin: 0;
    font-size: 2rem;
}

.site-header h1 a {
    color: white;
    text-decoration: none;
}

.site-header nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin-top: 15px;
}

.site-header nav a {
    color: white;
    text-decoration: none;
    padding: 5px 15px;
    border-radius: 20px;
    transition: background 0.3s ease;
}

.site-header nav a:hover {
    background: rgba(255,255,255,0.2);
}

/* ==========================================================================
   Archives (liste de Pokémon)
   ========================================================================== */

.archive-header,
.taxonomy-header {
    background: white;
    padding: 30px;
    border-radius: 10px;
    margin: 30px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.archive-header h1,
.taxonomy-header h1 {
    color: #667eea;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.term-count {
    color: #666;
    font-size: 1.1rem;
}

.genre-description,
.archive-description {
    margin-top: 15px;
    color: #555;
    font-size: 1.05rem;
}

/* Grille de Pokémon */
.pokemon-grid,
.archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.pokemon-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pokemon-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.pokemon-image {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.pokemon-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pokemon-info {
    padding: 20px;
}

.pokemon-info h3 {
    color: #667eea;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.pokemon-info h3 a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.pokemon-info h3 a:hover {
    color: #764ba2;
}

.pokemon-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0;
}

.pokemon-type,
.pokemon-generation,
.pokemon-taxonomy {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.pokemon-type:hover,
.pokemon-generation:hover,
.pokemon-taxonomy:hover {
    transform: scale(1.05);
}

/* Couleurs par type */
.type-feu { background: #ff6b6b; color: white; }
.type-eau { background: #4ecdc4; color: white; }
.type-plante { background: #95e1d3; color: #333; }
.type-electrique { background: #f9ca24; color: #333; }
.type-psy { background: #a29bfe; color: white; }
.type-combat { background: #fd79a8; color: white; }
.type-vol { background: #74b9ff; color: white; }
.type-default { background: #dfe6e9; color: #333; }

.pokemon-generation {
    background: #6c5ce7;
    color: white;
}

.pokemon-excerpt {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 12px 0;
}

.read-more {
    display: inline-block;
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    margin-top: 10px;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #764ba2;
}

/* ==========================================================================
   Page Single Pokémon
   ========================================================================== */

.single-pokemon {
    background: white;
    border-radius: 15px;
    padding: 40px;
    margin: 30px 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.single-pokemon h1 {
    color: #667eea;
    font-size: 3rem;
    margin-bottom: 20px;
}

.pokemon-featured-image {
    width: 100%;
    max-width: 500px;
    margin: 20px auto;
    display: block;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.pokemon-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
    margin: 30px 0;
}

.pokemon-taxonomies {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.taxonomy-group {
    flex: 1;
    min-width: 200px;
}

.taxonomy-group strong {
    display: block;
    color: #667eea;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.taxonomy-group a {
    display: inline-block;
    padding: 5px 12px;
    margin: 3px;
    background: white;
    border-radius: 15px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.taxonomy-group a:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

.navigation-back {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
}

.navigation-back a {
    display: inline-block;
    color: #667eea;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.navigation-back a:hover {
    color: #764ba2;
}

/* ==========================================================================
   Pagination
   ========================================================================== */

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

.pagination a,
.pagination span {
    display: inline-block;
    padding: 10px 18px;
    background: white;
    color: #667eea;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.pagination a:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

.pagination .current {
    background: #667eea;
    color: white;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    background: #2d3436;
    color: white;
    text-align: center;
    padding: 30px 0;
    margin-top: 60px;
}

.site-footer p {
    margin: 0;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
    .site-header h1 {
        font-size: 1.5rem;
    }
    
    .site-header nav ul {
        flex-direction: column;
        gap: 10px;
    }
    
    .pokemon-grid,
    .archive-grid {
        grid-template-columns: 1fr;
    }
    
    .single-pokemon {
        padding: 20px;
    }
    
    .single-pokemon h1 {
        font-size: 2rem;
    }
    
    .pokemon-taxonomies {
        flex-direction: column;
    }
}

/* ==========================================================================
   Utilitaires
   ========================================================================== */

.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

/* Message si aucun résultat */
.no-results {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 15px;
    margin: 30px 0;
}

.no-results p {
    font-size: 1.2rem;
    color: #666;
}