/* Design Système pour le Concours de Poésie V10 - Harmonie Site V10 (Bordeaux, Crème, Or) */
:root {
    --gold: #d4af37;
    --gold-hover: #b89328;
    --gold-light: rgba(212, 175, 55, 0.15);
    
    /* Utilisation des variables de site.css avec fallback */
    --c-bg-page: var(--bg-page, #f9f6f0);
    --c-bg-card: var(--bg-card, #ffffff);
    --c-border: var(--border-color, #e7e3d4);
    --c-text-main: var(--text-main, #2d2926);
    --c-text-muted: var(--text-muted, #5d5851);
    --c-accent: var(--accent, #8b263e);
    --c-accent-hover: var(--accent-hover, #6b1b2e);
    --c-shadow: var(--shadow, 0 4px 15px -3px rgba(41, 18, 24, 0.04));
    --c-radius: var(--radius, 12px);
    --c-radius-sm: var(--radius-sm, 8px);
}

.concours-body {
    background-color: var(--c-bg-page);
    color: var(--c-text-main);
    font-family: var(--font-serif, 'Lora', Georgia, serif);
    min-height: 100vh;
}

/* Header de la page concours */
.concours-header-bg {
    background: linear-gradient(135deg, #291218 0%, #472029 100%);
    padding: 25px 20px 30px;
    text-align: center;
    color: #f5eef0;
    border-radius: var(--c-radius);
    border: 1px solid #472029;
    box-shadow: var(--c-shadow);
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.concours-header-bg::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.concours-container {
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 0 15px;
}

/* Card Style */
.glass-card {
    background: var(--c-bg-card);
    border: 1px solid var(--c-border);
    border-radius: var(--c-radius);
    padding: 40px;
    box-shadow: var(--c-shadow);
    margin-bottom: 30px;
}

.hero-title {
    font-family: var(--font-serif, 'Lora', Georgia, serif);
    font-size: 2.1rem;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    margin: 10px 0;
    font-weight: 700;
}

.theme-banner {
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    height: 3px;
    width: 40%;
    margin: 10px auto;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    background: var(--gold);
    color: #291218;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    font-family: var(--font-sans, sans-serif);
}

/* Timeline */
.timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px;
    margin-top: 25px;
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: var(--c-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.timeline-item {
    text-align: center;
    padding: 15px 10px;
    border-top: 3px solid rgba(255,255,255,0.2);
    position: relative;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    font-family: var(--font-sans, sans-serif);
    transition: all 0.3s ease;
}

.timeline-item.active {
    color: #ffffff;
    border-top-color: var(--gold);
    font-weight: bold;
    text-shadow: 0 0 10px rgba(255,255,255,0.2);
}

.timeline-item.active::before {
    content: '';
    position: absolute;
    top: -9px;
    left: 50%;
    transform: translateX(-50%);
    width: 14px;
    height: 14px;
    background: var(--gold);
    border-radius: 50%;
    border: 3px solid #291218;
    box-shadow: 0 0 8px var(--gold);
}

/* Boutons */
.btn-gold {
    background: var(--gold);
    color: #291218 !important;
    border: none;
    padding: 12px 30px;
    border-radius: var(--c-radius-sm);
    font-weight: bold;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.2);
    font-family: var(--font-sans, sans-serif);
}

.btn-gold:hover {
    background: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 255, 255, 0.3);
}

.btn-bordeaux {
    background: var(--c-accent);
    color: #ffffff !important;
    border: 1px solid var(--c-accent-hover);
    padding: 12px 30px;
    border-radius: var(--c-radius-sm);
    font-weight: bold;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 10px rgba(139, 38, 62, 0.2);
    font-family: var(--font-sans, sans-serif);
}

.btn-bordeaux:hover {
    background: var(--c-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(107, 27, 46, 0.3);
}

.rules-content {
    line-height: 1.8;
    color: var(--c-text-muted);
}

.rules-content h3 {
    color: var(--c-accent);
    margin-top: 30px;
    border-bottom: 2px solid var(--c-border);
    padding-bottom: 8px;
    font-family: var(--font-serif, 'Lora', Georgia, serif);
}

/* Admin Bar */
.admin-badge-bar {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 9999;
    background: var(--c-bg-card);
    padding: 15px;
    border-radius: var(--c-radius-sm);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border: 1px solid var(--c-border);
    font-size: 0.8rem;
    max-width: 250px;
    font-family: var(--font-sans, sans-serif);
}

.admin-badge-bar h4 {
    margin: 0 0 8px 0;
    color: var(--c-accent);
    font-size: 0.9rem;
    font-family: var(--font-sans, sans-serif);
}

.admin-badge-bar a {
    color: var(--c-accent);
    text-decoration: none;
    font-weight: bold;
}

.admin-badge-bar a:hover {
    text-decoration: underline;
}

/* Admin Navigation In-Page */
.admin-nav {
    margin: 0 0 30px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.admin-nav a {
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none;
    font-size: 0.85rem;
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-sans, sans-serif);
}

.admin-nav a:hover {
    background: rgba(255,255,255,0.18);
    color: #ffffff !important;
    border-color: rgba(255,255,255,0.3);
}

.admin-nav a.active {
    background: var(--gold);
    border-color: var(--gold);
    color: #291218 !important;
}

/* Forms layout */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.full-width {
    grid-column: 1 / 3;
}

label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--c-text-main);
    font-family: var(--font-sans, sans-serif);
}

input[type="text"],
input[type="number"],
input[type="datetime-local"],
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--c-border);
    border-radius: var(--c-radius-sm);
    background-color: #faf9f6;
    color: var(--c-text-main);
    font-family: var(--font-sans, sans-serif);
    transition: border-color 0.2s;
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="datetime-local"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--c-accent);
}

/* Tables */
.premium-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-family: var(--font-sans, sans-serif);
}

.premium-table th {
    background-color: var(--c-accent);
    color: #ffffff;
    text-align: left;
    padding: 14px;
    font-weight: 600;
    border: 1px solid var(--c-border);
}

.premium-table td {
    padding: 14px;
    border: 1px solid var(--c-border);
    color: var(--c-text-main);
}

.premium-table tr:nth-child(even) {
    background-color: rgba(139, 38, 62, 0.02);
}

.premium-table tr.row-active {
    background-color: var(--gold-light);
}

/* Modération Dashboard items */
.poem-mod-card {
    border: 1px solid var(--c-border);
    border-radius: var(--c-radius);
    padding: 20px;
    margin-bottom: 20px;
    background: #ffffff;
    transition: transform 0.2s, box-shadow 0.2s;
}

.poem-mod-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(41, 18, 24, 0.05);
}

.poem-mod-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--c-border);
    padding-bottom: 12px;
    margin-bottom: 12px;
}

.poem-mod-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--c-accent);
}

.poem-mod-author {
    font-size: 0.9rem;
    color: var(--c-text-muted);
}

.poem-mod-body {
    white-space: pre-wrap;
    font-style: italic;
    color: var(--c-text-main);
    margin: 15px 0;
}

.poem-mod-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Alerts and Toast */
.alert-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #2d2926;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: var(--c-radius-sm);
    z-index: 10000;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    display: none;
    font-family: var(--font-sans, sans-serif);
}

/* Progress bar inside stats */
.progress-container {
    background-color: var(--c-border);
    border-radius: 10px;
    overflow: hidden;
    height: 12px;
    width: 100%;
}

.progress-bar {
    background-color: var(--gold);
    height: 100%;
    transition: width 0.4s ease;
}

/* Styles pour le fil d'Ariane (V10) */
.breadcrumb-poem {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-sans, sans-serif) !important;
    font-size: 0.85rem;
    color: var(--c-text-muted);
    margin-bottom: 15px;
    flex-wrap: wrap;
}
.breadcrumb-poem a {
    color: var(--c-accent);
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 500;
}
.breadcrumb-poem a:hover {
    color: var(--c-accent-hover);
    text-decoration: underline;
}
.breadcrumb-poem span {
    font-weight: normal;
    color: var(--c-text-main);
}
.breadcrumb-poem span.separator {
    color: var(--c-text-muted);
    opacity: 0.7;
    margin: 0 2px;
}
