/* CSS for the updates.html page
   Couleurs et police viennent de /theme.css : mise en page seulement. */

/* Recherche */
.barre-recherche {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem 1rem;
    margin-bottom: 1rem;
}
.barre-recherche input {
    flex: 1 1 18rem;
    max-width: 32rem;
    padding: 0.6rem 0.8rem;
    font-size: 0.95rem;
}
.compteur { color: var(--ec-attenue); font-size: 0.85rem; }

.updates-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 0.8rem;
}

/* Vignettes : boutons (clic ou clavier) qui ouvrent la demande */
.ec-theme .update-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    font: inherit;
    font-weight: 400;
    color: var(--ec-texte);
    background: var(--ec-surface);
    border: 1px solid var(--ec-bordure);
    border-left: 3px solid var(--ec-accent);
    border-radius: 8px;
    padding: 0.9rem 1rem;
    transition: border-color 0.15s, transform 0.15s;
}
.ec-theme .update-card:hover, .ec-theme .update-card:focus-visible {
    border-color: var(--ec-accent);
    filter: none;
    transform: translateY(-1px);
}
.update-card[hidden] { display: none; }

.update-title {
    margin: 0 0 0.35rem;
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.35;
}

.update-date {
    margin: 0;
    color: var(--ec-attenue);
    font-size: 0.82rem;
}

.update-action {
    margin-top: auto;
    padding-top: 0.6rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ec-accent);
    opacity: 0;
    transition: opacity 0.15s;
}
.update-card:hover .update-action, .update-card:focus-visible .update-action { opacity: 1; }
@media (hover: none) { .update-action { opacity: 1; } }

.state {
    grid-column: 1 / -1;
    color: var(--ec-attenue);
    font-style: italic;
    padding: 0.8rem 0;
}

.contact {
    margin-top: 2rem;
    padding: 1.1rem 1.2rem;
    background: var(--ec-surface);
    border: 1px solid var(--ec-bordure);
    border-radius: var(--ec-rayon);
}

.contact h2 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    font-weight: 650;
}

.contact p { margin: 0 0 0.9rem; color: var(--ec-attenue); }

.contact a { font-weight: 600; }

/* Formulaire de demande */
.demande {
    width: min(560px, calc(100vw - 2rem));
    padding: 0;
    color: var(--ec-texte);
    background: var(--ec-surface);
    border: 1px solid var(--ec-bordure);
    border-radius: var(--ec-rayon);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.demande::backdrop { background: rgba(0, 0, 0, 0.6); }
.demande form { padding: 1.1rem 1.3rem 1.3rem; }
.demande-entete { display: flex; justify-content: space-between; align-items: center; }
.demande-entete h2 { margin: 0; font-size: 1.1rem; }
.ec-theme .demande .fermer {
    padding: 0 0.4rem;
    font-size: 1.6rem;
    line-height: 1;
    color: var(--ec-attenue);
    background: none;
    border: 0;
}
.ec-theme .demande .fermer:hover { color: var(--ec-texte); }
.demande-aide { margin: 0.3rem 0 1rem; color: var(--ec-attenue); font-size: 0.85rem; }
.demande label { display: block; margin-bottom: 0.8rem; }
.demande input, .demande textarea {
    display: block;
    width: 100%;
    margin-top: 0.3rem;
    font-family: var(--ec-police);
    font-weight: 400;
}
.demande textarea { resize: vertical; }
.demande-ligne { display: grid; grid-template-columns: 1fr 1fr; gap: 0 0.8rem; }
.facultatif { font-weight: 400; }
.demande-copie { margin: 0 0 0.6rem; color: var(--ec-accent); font-size: 0.85rem; }
.demande-copie:empty { display: none; }
.demande-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.5rem; }

@media (max-width: 560px) {
    .demande-ligne { grid-template-columns: 1fr; }
}
