/* ===== Réunions Élus – Frontend CSS ===== */

.re-formulaire-wrap {
    max-width: 640px;
    margin: 24px auto;
    font-family: inherit;
}

/* Info réunion */
.re-info-reunion {
    background: #f0f4fb;
    border-left: 4px solid #1a4a8a;
    border-radius: 0 6px 6px 0;
    padding: 16px 20px;
    margin-bottom: 24px;
}
.re-info-reunion .re-titre {
    margin: 0 0 8px;
    font-size: 1.1em;
    color: #1a4a8a;
}
.re-info-reunion p {
    margin: 4px 0;
    font-size: 0.95em;
    color: #444;
}
.re-places-alerte {
    color: #c62828 !important;
    font-weight: bold;
}

/* Formulaire */
.re-form-container {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 28px;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.re-form-container h4 {
    margin: 0 0 20px;
    font-size: 1em;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #555;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

/* Champs */
.re-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
@media (max-width: 500px) {
    .re-field-row { grid-template-columns: 1fr; }
}
.re-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
}
.re-field label {
    font-size: 0.88em;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}
.re-required {
    color: #c62828;
}
.re-field input {
    padding: 10px 12px;
    border: 1px solid #d0d0d0;
    border-radius: 5px;
    font-size: 0.95em;
    transition: border-color .2s, box-shadow .2s;
    outline: none;
    width: 100%;
    box-sizing: border-box;
}
.re-field input:focus {
    border-color: #1a4a8a;
    box-shadow: 0 0 0 3px rgba(26, 74, 138, .12);
}

/* RGPD */
.re-rgpd {
    font-size: 0.8em;
    color: #888;
    margin: 4px 0 20px;
    line-height: 1.5;
}

/* Bouton */
.re-btn-submit {
    display: inline-block;
    background: #1a4a8a;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 12px 28px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, transform .1s;
    width: 100%;
}
.re-btn-submit:hover {
    background: #153b70;
}
.re-btn-submit:active {
    transform: scale(.98);
}
.re-btn-submit:disabled {
    background: #aaa;
    cursor: not-allowed;
}

/* Messages */
.re-message {
    padding: 14px 18px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 0.95em;
    line-height: 1.5;
}
.re-message.success {
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
    color: #2e7d32;
}
.re-message.error {
    background: #fdecea;
    border: 1px solid #ef9a9a;
    color: #c62828;
}

/* Complet */
.re-complet {
    background: #fff3e0;
    border: 1px solid #ffcc80;
    border-radius: 6px;
    padding: 16px 20px;
    color: #e65100;
}

/* ===== Page de réunion (reunion-page.php) ===== */
.re-page-wrap {
    max-width: 760px;
    margin: 0 auto;
    font-family: 'Source Sans 3', sans-serif;
}
.re-page-header {
    background: #f4f7fb;
    border-left: 4px solid #1a4a8a;
    border-radius: 0 8px 8px 0;
    padding: 20px 24px;
    margin-bottom: 32px;
}
.re-page-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}
.re-page-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}
.re-page-meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    color: #333;
}
.re-page-meta-item svg { color: #1a4a8a; flex-shrink:0; }
.re-page-meta-item--alert { color: #c62828; font-weight: 600; }
.re-page-meta-item--alert svg { color: #c62828; }
.re-page-agenda-wrap {
    margin-top: 4px;
    position: relative;
}

.re-page-description {
    margin-bottom: 40px;
    font-size: 1rem;
    line-height: 1.7;
    color: #333;
}

.re-page-form-section {
    border-top: 2px solid #e8edf5;
    padding-top: 32px;
    margin-top: 8px;
}
.re-page-form-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a2a45;
    margin: 0 0 20px;
}

.re-page-passee {
    background: #fff3e0;
    border: 1px solid #ffcc80;
    border-radius: 6px;
    padding: 16px 20px;
    color: #e65100;
    margin-top: 24px;
}

/* Champs checkbox dans le formulaire */
.re-field--checkbox {
    flex-direction: column;
}
.re-field--checkbox label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
}
.re-field--checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #1a4a8a;
    cursor: pointer;
    flex-shrink: 0;
}
.re-field-help {
    font-size: 0.8rem;
    color: #888;
    margin: 4px 0 0 28px;
}
.re-field textarea {
    padding: 10px 12px;
    border: 1px solid #d0d0d0;
    border-radius: 5px;
    font-size: 0.95rem;
    font-family: inherit;
    resize: vertical;
    width: 100%;
    box-sizing: border-box;
    transition: border-color .2s;
    outline: none;
}
.re-field textarea:focus {
    border-color: #1a4a8a;
    box-shadow: 0 0 0 3px rgba(26,74,138,.12);
}
