/* Design Système pour le Concours de Poésie V2 - Harmonie Site */
:root {
    --site-orange: #B75C26;
    --site-orange-light: #E6A47B;
    --site-brown: #553A29;
    --site-sage: #64766A;
    --site-stone: #F4F2F3;
    --site-blue: #94A7AE;
    --site-purple: #C0A9BD;

    /* Variables thématiques */
    --accent: var(--site-orange);
    --accent-light: var(--site-orange-light);
    --bg-dark: #1a1a1a;
    --card-bg: rgba(255, 255, 255, 0.95);
    --text-dark: #333;
    --text-light: #f4f4f4;
}

.concours-body {
    background-color: #f4f4f4;
    color: var(--text-dark);
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
}

/* On force un background sombre et élégant seulement pour la partie haute si besoin, 
   mais restons sur du clair/élégant pour le corps */
.concours-header-bg {
    background: linear-gradient(to bottom, var(--site-brown), #3a281c);
    padding: 80px 20px 120px;
    text-align: center;
    color: white;
    border-bottom: 5px solid var(--site-orange);
}

.concours-container {
    max-width: 1000px;
    margin: -40px auto 40px;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

/* Card Style - Harmonized with Site Stone Color */
.glass-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: var(--site-orange);
    text-align: center;
    margin-bottom: 15px;
}

.theme-banner {
    background: linear-gradient(90deg, transparent, var(--site-orange), transparent);
    height: 3px;
    width: 60%;
    margin: 20px auto;
}

.status-badge {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
    background: var(--site-orange);
    color: white;
    margin-bottom: 25px;
}

/* Timeline Elegant - Site Colors */
.timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-top: 40px;
}

.timeline-item {
    text-align: center;
    padding: 20px;
    border-top: 3px solid #ddd;
    position: relative;
    color: #888;
}

.timeline-item.active {
    color: var(--site-brown);
    border-top-color: var(--site-orange);
    font-weight: bold;
}

.timeline-item.active::before {
    content: '';
    position: absolute;
    top: -9px;
    left: 50%;
    transform: translateX(-50%);
    width: 14px;
    height: 14px;
    background: var(--site-orange);
    border-radius: 50%;
    border: 3px solid white;
}

/* Boutons Harmonisés */
.btn-gold {
    background: var(--site-orange);
    color: white;
    border: none;
    padding: 14px 35px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 10px rgba(183, 92, 38, 0.2);
}

.btn-gold:hover {
    background: var(--site-brown);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(85, 58, 41, 0.3);
}

/* Règlement Section */
.rules-content {
    line-height: 1.7;
    color: #444;
}

.rules-content h3 {
    color: var(--site-brown);
    margin-top: 35px;
    border-bottom: 2px solid var(--site-stone);
    padding-bottom: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .glass-card {
        padding: 25px;
    }

    .concours-header-bg {
        padding: 40px 15px;
    }
}

/* Footer Alignment */
.pieddepage {
    margin-top: 50px;
    padding-bottom: 30px;
}
/* Admin Navigation Links Unifiées (Visibles sur fond sombre) */
.admin-nav { 
    margin: 0 0 40px 0; 
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}
.admin-nav a, .admin-nav a:visited { 
    color: #ffffff !important; 
    text-decoration: none; 
    font-size: 0.85rem;
    padding: 10px 20px;
    border-radius: 40px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.admin-nav a:hover { 
    background: rgba(255,255,255,0.25);
    color: white !important;
    transform: translateY(-2px);
    border-color: rgba(255,255,255,0.5);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
.admin-nav a.active {
    background: var(--site-orange);
    border-color: var(--site-orange);
    color: white !important;
}

/* Onglets de Phase (Qualifs / Finale) */
.phase-tabs { display: flex; gap: 10px; margin-bottom: 30px; }
.phase-tab { 
    padding: 12px 24px; 
    border-radius: 10px; 
    text-decoration: none; 
    font-weight: bold; 
    background: #ffffff; 
    color: #555; 
    transition: all 0.3s ease; 
    border: 1px solid #ddd;
    font-size: 0.95rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}
.phase-tab:hover { 
    background: #f8f9fa; 
    color: var(--site-orange);
    border-color: var(--site-orange-light);
    transform: translateY(-1px);
}
.phase-tab.active { 
    background: var(--site-orange); 
    color: white !important; 
    border-color: var(--site-orange); 
    box-shadow: 0 4px 10px rgba(183, 92, 38, 0.2);
}
