/* --- VARIABLES --- */
:root {
  --primary-orange: #f97316;
  --primary-dark: #d35e13;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --bg-light: #f8fafc;
  --box-bg: #f1f5f9;
}

/* --- RESET & BASE --- */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; 
}

body { 
    background: var(--bg-light); 
    color: var(--text-main); 
    line-height: 1.6; 
    -webkit-font-smoothing: antialiased;
}

/* --- HERO (UNIFIÉ ET COMPACT) --- */
.hero { 
    background-color: var(--primary-orange); 
    padding: 40px 0; /* Hauteur réduite pour la cohérence */
    width: 100%;
    color: white; 
}

/* Unification des deux noms de classes que tu utilises selon les pages */
.container-hero, .container-header { 
    max-width: 1100px; 
    margin: 0 auto; 
    padding: 0 40px; 
}

.back-link-pill {
    display: inline-block;
    color: white;
    text-decoration: none;
    background: rgba(0, 0, 0, 0.15);
    padding: 8px 22px; 
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px; /* Espace réduit entre bouton et titre */
    transition: 0.3s;
}

.back-link-pill:hover { 
    background: rgba(0, 0, 0, 0.3); 
    transform: translateX(-5px);
}

.hero h1 { 
    font-size: clamp(28px, 5vw, 48px); 
    font-weight: 800; 
    margin: 0; /* Supprime la marge par défaut qui agrandissait le bloc orange */
    letter-spacing: -1px; 
    line-height: 1.1;
}

.hero .subtitle { 
    font-size: clamp(14px, 2vw, 17px);
    opacity: 0.9; 
    margin-top: 8px;
}

/* --- CONTENEUR DE CONTENU (UNIFIE MAIN ET CONTAINER) --- */
main, .container { 
    max-width: 1100px; 
    margin: 40px auto; 
    padding: 0 20px; 
    display: block; 
}

/* --- CARTES ET ARTICLES --- */
.event-card, .card {
    background: white;
    border-radius: 15px;
    margin-bottom: 30px;
    padding: 30px;
    border: 1px solid #e2e8f0; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.event-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 25px; 
    padding-bottom: 15px; 
    border-bottom: 1px solid #f1f5f9;
}

.event-header h2 { 
    font-size: 1.6rem; 
    color: #0f172a; 
}

.meta { 
    color: var(--text-muted); 
    font-size: 0.9rem; 
}

.meta span { 
    margin-right: 15px; 
}

.badge { 
    background: var(--primary-orange); 
    color: white; 
    padding: 6px 15px; 
    border-radius: 50px; 
    font-weight: bold; 
    font-size: 0.8rem; 
}

/* --- GRILLES D'IMAGES --- */
.images, .grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 20px; 
    margin: 20px 0; 
}

.images img, .card-image img { 
    width: 100%; 
    height: 260px; 
    object-fit: cover; 
    border-radius: 12px; 
    transition: 0.3s; 
}

.images img:hover { 
    transform: scale(1.02); 
}

/* --- BLOCS DE TEXTE ET AVIS --- */
.content-box, .review, .card-content {
    background: var(--box-bg);
    border: 1px solid #cbd5e1; 
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.content-box h3 { 
    color: var(--primary-orange); 
    margin-bottom: 10px; 
}

.stars { color: #f97316; margin-bottom: 10px; }
.author { display: block; margin-top: 10px; font-weight: bold; font-size: 0.9rem; }

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

.btn-nav { 
    padding: 10px 20px; 
    border: 2px solid var(--primary-orange); 
    border-radius: 50px; 
    text-decoration: none; 
    color: var(--primary-orange); 
    font-weight: bold; 
    transition: 0.3s; 
    font-size: 0.9rem;
}

.btn-nav:hover:not(.disabled) { 
    background: var(--primary-orange); 
    color: white; 
}

.btn-nav.disabled {
    border-color: #cbd5e1;
    color: #cbd5e1;
    pointer-events: none;
}

/* --- SECTION CTA --- */
.cta { 
    text-align: center; 
    padding: 50px 20px; 
    background: var(--primary-orange); 
    border-radius: 20px; 
    color: white; 
    margin-top: 60px;
}

.btn { 
    display: inline-block; 
    background: white; 
    color: var(--primary-orange); 
    padding: 15px 35px; 
    border-radius: 50px; 
    text-decoration: none; 
    font-weight: bold; 
    margin-top: 20px; 
    transition: 0.3s;
}

.btn:hover { transform: scale(1.05); }

/* --- RESPONSIVE DESIGN --- */

@media (max-width: 900px) {
    .container-hero, .container-header { padding: 0 30px; }
    .hero { 
        padding: 25px 0;
        text-align: center; 
    }
}

@media (max-width: 600px) {
    main, .container { margin: 25px auto; padding: 0 15px; }
    .event-card { padding: 20px 15px; }
    
    .event-header { 
        flex-direction: column; 
        align-items: flex-start; 
        gap: 10px; 
    }
    
    .event-header h2 { font-size: 1.4rem; }
    .images img { height: 200px; }
    
    .pagination { flex-wrap: wrap; }
    .page-info { width: 100%; text-align: center; order: -1; margin-bottom: 10px; }
}

@media (max-width: 400px) {
    .hero h1 { font-size: 24px; }
    .meta span { display: block; margin-bottom: 5px; }
}