/* agora/agora.css */

body.agora-page {
    background-color: var(--color-cream);
    padding-top: var(--nav-height);
}

.agora-container {
    max-width: 1200px; /* Un peu plus large pour permettre les 2 colonnes */
    margin: 0 auto;
    padding: 60px 20px;
    font-family: 'Courier Prime', monospace;
}

/* --- LE SUJET DU MOIS --- */
.topic-header {
    text-align: center;
    margin-bottom: 60px;
    border-bottom: 1px solid rgba(0,0,0,0.1); /* Ligne plus discrète */
    padding-bottom: 50px;
}

.topic-label {
    font-family: 'Courier Prime', monospace;
    background-color: var(--color-orange);
    color: white;
    padding: 5px 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    font-weight: bold;
    display: inline-block;
    border-radius: 50px;
    margin-bottom: 20px;
}

.topic-title {
    font-family: "Juana Regular";
    font-size: 3.5rem;
    color: var(--color-black);
    line-height: 1.1;
    margin-bottom: 25px;
}

.topic-description {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--color-dark-gray);
    max-width: 700px;
    margin: 0 auto;
}

/* --- FORMULAIRE DE PARTICIPATION --- */
.contribution-area {
    background-color: white;
    padding: 40px;
    border-radius: 8px; /* Plus arrondi */
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); /* Ombre douce */
    margin-bottom: 80px;
    border: 1px solid rgba(0,0,0,0.05);
}

.contribution-area h3 {
    font-family: "Juana Regular";
    margin-bottom: 20px;
    font-size: 1.8rem;
    color: var(--color-black);
}

.slow-warning {
    background-color: #f9f9f9;
    color: #666;
    padding: 15px;
    font-size: 0.9rem;
    margin-bottom: 25px;
    border-left: 4px solid var(--color-orange);
    display: flex;
    align-items: center;
    gap: 15px;
}

textarea.agora-input {
    width: 100%;
    border: 2px solid #eee; /* Bordure plus douce */
    padding: 20px;
    font-family: 'Courier Prime', monospace;
    font-size: 1rem;
    min-height: 150px;
    margin-bottom: 20px;
    resize: vertical;
    border-radius: 4px;
    transition: border-color 0.3s;
}

textarea.agora-input:focus {
    outline: none;
    border-color: var(--color-orange);
}

.btn-agora {
    background-color: var(--color-black);
    color: white;
    border: none;
    padding: 15px 30px;
    font-family: 'Courier Prime', monospace;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
    border-radius: 4px;
}

.btn-agora:hover {
    background-color: var(--color-orange);
    transform: translateY(-2px);
}

/* --- LE MUR DE DÉBAT (NOUVEAU DESIGN MASONRY) --- */
.debate-wall {
    /* C'est ici que la magie opère : colonnes automatiques */
    column-count: 2; 
    column-gap: 30px; 
}

.debate-card {
    background-color: white;
    padding: 30px;
    margin-bottom: 30px; /* Espace entre les cartes verticales */
    border-radius: 8px;
    position: relative;
    
    /* Empêche une carte d'être coupée en deux entre deux colonnes */
    break-inside: avoid; 
    page-break-inside: avoid;
    
    /* Style visuel */
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.03);
    transition: transform 0.3s, box-shadow 0.3s;
}

.debate-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

/* Barre colorée en haut de chaque carte pour le style */
.debate-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 20px;
    right: 20px;
    height: 4px;
    background-color: var(--color-orange);
    border-radius: 0 0 4px 4px;
    opacity: 0.8;
}

.debate-meta {
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.debate-author {
    font-family: "Juana Regular"; /* Nom en police Titre */
    font-size: 1.3rem;
    color: var(--color-black);
}

.debate-date {
    font-size: 0.75rem;
    color: #bbb;
    font-weight: normal;
}

.debate-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-dark-gray); /* Gris foncé pour meilleure lecture */
    white-space: pre-line;
    text-align: justify;
}

/* Icône de guillemet décorative */
.debate-text::before {
    content: "“";
    font-family: "Juana Regular";
    font-size: 3rem;
    color: #f0f0f0;
    position: absolute;
    top: 40px;
    right: 20px;
    z-index: 0;
    pointer-events: none;
}

/* Alertes */
.msg-alert {
    padding: 20px;
    margin-bottom: 30px;
    text-align: center;
    border-radius: 4px;
    font-weight: bold;
}
.msg-success { background-color: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.msg-error { background-color: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* --- RESPONSIVE MOBILE --- */
@media screen and (max-width: 900px) {
    .debate-wall {
        column-count: 1; /* Une seule colonne sur mobile */
    }
    
    .topic-title { font-size: 2.2rem; }
    .agora-container { padding: 30px 15px; }
    .contribution-area { padding: 20px; }
}