/* ==============================================================================
   Feuille de style de référence pour tous les Comptes-Rendus / Procès-Verbaux
   Mairie de Villiers-en-Désœuvre
   ============================================================================== */

/* Suppression de l'overlay dégradé vert sur les pages de compte-rendu */
#WE4a354ef21b {
    display: none !important;
}

body {
    background-color: #f4f6f9 !important;
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: #2c3e50;
}

.OESK_XBody_Default {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
}

/* Restructuration responsive et placement en flux normal */
#XBody {
    height: auto !important;
    min-height: 100vh !important;
    position: relative !important;
}

#XBody .OESZ_XBodyContent {
    height: auto !important;
    position: relative !important;
}

/* Conteneur principal modernisé et responsive */
.cr-container {
    font-family: Arial, Helvetica, sans-serif;
    color: #2c3e50;
    line-height: 1.6;
    background: #ffffff;
    padding: 30px 30px 40px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    margin: 20px auto 220px auto;
    box-sizing: border-box;
    position: relative;
    top: 190px;
}

/* En-tête du Procès-Verbal */
.cr-header-box {
    border: 2px solid #0055a5;
    background-color: #f4f8fc;
    padding: 20px;
    text-align: center;
    border-radius: 6px;
    margin-bottom: 25px;
}

.cr-header-box h1 {
    color: #0055a5;
    font-size: 20px;
    margin: 0 0 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cr-header-box h2 {
    color: #28a745;
    font-size: 17px;
    margin: 0 0 5px 0;
}

.cr-header-box .badge-pv {
    display: inline-block;
    background: #0055a5;
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 13px;
    margin-top: 5px;
}

/* Grille des membres & Ordre du jour */
.cr-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

@media (max-width: 768px) {
    .cr-meta-grid {
        grid-template-columns: 1fr;
    }
}

.cr-card {
    background: #f8f9fa;
    border-left: 4px solid #0055a5;
    padding: 15px 20px;
    border-radius: 4px;
}

.cr-card h3 {
    margin-top: 0;
    color: #0055a5;
    font-size: 15px;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 6px;
}

.cr-card ul {
    margin: 0;
    padding-left: 20px;
    font-size: 14px;
}

/* Titre de section */
.cr-section-title {
    background: #0055a5;
    color: #ffffff;
    padding: 10px 15px;
    font-size: 15px;
    font-weight: bold;
    border-radius: 4px;
    margin: 25px 0 15px 0;
    text-transform: uppercase;
}

/* Encadré de délibération */
.deliberation-box {
    border: 2px solid #28a745;
    background: #f9fff9;
    padding: 20px;
    border-radius: 6px;
    margin: 20px 0;
}

.deliberation-title {
    color: #155724;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 12px;
}

/* Badges de résultats de votes */
.vote-results {
    display: flex;
    gap: 15px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.vote-badge {
    padding: 8px 15px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 14px;
}

.vote-pour {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.vote-contre {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.vote-abstention {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

/* Articles de délibération */
.article-item {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-left: 3px solid #28a745;
    padding: 12px 15px;
    margin-bottom: 10px;
    border-radius: 4px;
}

.article-item strong {
    color: #155724;
}

/* Boutons d'action */
.btn-download-pdf {
    display: inline-block;
    background-color: #0055a5;
    color: #ffffff !important;
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.12);
    transition: background-color 0.2s, transform 0.1s;
}

.btn-download-pdf:hover {
    background-color: #003d78;
    transform: translateY(-1px);
}

.back-link {
    display: inline-block;
    padding: 10px 18px;
    background-color: #6c757d;
    color: #ffffff !important;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 14px;
    transition: background-color 0.2s;
}

.back-link:hover {
    background-color: #5a6268;
}

/* Espacement et alignement de la zone d'actions en bas du compte-rendu */
.cr-footer-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 25px;
    margin-bottom: 25px;
    padding-bottom: 10px;
}

/* Placement garanti des liens légaux tout en bas de la page */
.OESZ_XBodyFooter, .OECT_Footer {
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: auto !important;
    margin: 40px auto 30px auto !important;
    padding: 20px 0 40px 0 !important;
    text-align: center !important;
    clear: both !important;
    display: block !important;
}

#WEc152691c95 {
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 auto !important;
    text-align: center !important;
    display: block !important;
}

#WEc152691c95 .OESZ_DivContent,
#WEc152691c95 .ContentBox {
    position: relative !important;
    display: inline-block !important;
    text-align: center !important;
}
