/* =============================================
   Résidence Jean Racine — Style principal
   ============================================= */

:root {
    --vert:        #2d6a4f;
    --vert-fonce:  #1b4332;
    --vert-clair:  #52b788;
    --vert-bg:     #edf7f1;
    --vert-bord:   #d8e8df;   /* [2026-10-31] bordures claires */
    --vert-moyen:  #95d5b2;   /* [2026-10-31] nuance intermédiaire */
    --rouge:       #c0392b;
    --rouge-bg:    #fdecea;
    --texte:       #1a1a1a;
    --gris-clair:  #f9f9f6;
    --bordure:     #e0e0e0;
}

/* Base */
body { font-family: 'Source Sans 3', 'Segoe UI', sans-serif; background: var(--gris-clair); color: var(--texte); }

/* Topbar */
.topbar { background: var(--vert-fonce); color: var(--vert-bord); font-size: 12px; padding: 5px 0; text-align: right; }
.topbar .container { display: flex; justify-content: flex-end; gap: 20px; }
.topbar a { color: var(--vert-bord); text-decoration: none; }
.topbar a:hover { text-decoration: underline; }

/* Header */
.site-header { background: white; border-bottom: 3px solid var(--vert); padding: 14px 0; }
.header-brand { text-decoration: none; display: block; }
.site-title { font-family: Georgia, serif; font-size: 22px; color: var(--vert); font-weight: 600; line-height: 1.2; }
.site-subtitle { font-size: 12px; color: #888; margin-top: 2px; }

/* Navigation */
.site-nav { background: var(--vert); }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.nav-list > li { position: relative; }
.nav-list > li > a { display: block; color: white; text-decoration: none; padding: 11px 15px; font-size: 13px; font-weight: 500; white-space: nowrap; }
.nav-list > li > a:hover { background: rgba(255,255,255,0.15); }

/* Dropdown */
.nav-list .dropdown { display: none; position: absolute; top: 100%; left: 0; background: white; border: 1px solid var(--bordure); border-top: 3px solid var(--vert-clair); min-width: 220px; z-index: 1000; box-shadow: 0 4px 12px rgba(0,0,0,0.1); list-style: none; padding: 0; margin: 0; }
.nav-list .has-sub:hover .dropdown { display: block; }
.nav-list .dropdown li a { display: block; color: var(--vert); padding: 9px 16px; font-size: 13px; text-decoration: none; border-bottom: 0.5px solid #f0f0f0; }
.nav-list .dropdown li a:hover { background: var(--vert-bg); }

/* Main */
.site-main { min-height: 60vh; }

/* Hero de page */
.page-hero { background: white; border-bottom: 1px solid var(--bordure); padding: 36px 0 28px; text-align: center; }
.page-hero h1 { font-family: Georgia, serif; font-size: 26px; color: var(--vert); font-weight: 600; margin-bottom: 8px; }
.page-hero-divider { width: 60px; height: 3px; background: var(--vert-clair); margin: 12px auto 0; border-radius: 2px; }

/* Contenu */
.page-content { max-width: 820px; margin: 0 auto; padding: 36px 24px 48px; }

/* Blocs section */
.section-label { font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 1.5px; color: var(--vert-clair); margin-bottom: 8px; }
.section-title { font-family: Georgia, serif; font-size: 20px; color: var(--vert); margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--bordure); }
.separator { border: none; border-top: 1px solid var(--bordure); margin: 32px 0; }

/* Carte président */
.president-card { background: white; border: 0.5px solid var(--bordure); border-left: 4px solid var(--vert); border-radius: 6px; padding: 20px 24px; font-size: 15px; line-height: 1.8; color: #333; font-style: italic; }
.president-signature { margin-top: 14px; font-style: normal; font-weight: 600; color: var(--vert); font-size: 14px; }

/* Accordéon */
.accordion-item { border: 0.5px solid var(--bordure); border-radius: 8px; overflow: hidden; margin-bottom: 10px; }
.accordion-header-btn { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 14px 18px; background: white; cursor: pointer; font-size: 15px; font-weight: 500; color: var(--vert); border: none; text-align: left; transition: background 0.2s; }
.accordion-header-btn:hover { background: var(--vert-bg); }
.accordion-header-btn.open { background: var(--vert-bg); border-bottom: 0.5px solid var(--vert-bord); }
.accordion-arrow { font-size: 12px; color: var(--vert-clair); transition: transform 0.25s; }
.accordion-header-btn.open .accordion-arrow { transform: rotate(180deg); }
.accordion-body { display: none; padding: 16px 18px; background: #fdfdfd; font-size: 14px; line-height: 1.8; color: #444; border-top: 0.5px solid var(--bordure); }
.accordion-body.open { display: block; }
.faq-body { display: none; padding: 16px 18px; background: #fdfdfd; font-size: 14px; line-height: 1.8; color: #444; border-top: 0.5px solid var(--bordure); }
.faq-body.open { display: block; }
/* Liens documents (rouge surligné) */
a.doc-link { color: var(--rouge); background: var(--rouge-bg); text-decoration: none; padding: 2px 8px; border-radius: 3px; font-size: 14px; }
a.doc-link:hover { text-decoration: underline; }

/* Actualités */
.actu-section { background: var(--vert-bg); border-radius: 8px; padding: 20px; }
.actu-item { background: white; border-radius: 6px; padding: 12px 14px; margin-bottom: 10px; border-left: 3px solid var(--vert); }
.actu-item:last-child { margin-bottom: 0; }
.actu-date { font-size: 11px; color: #999; margin-bottom: 3px; }
.actu-title { font-size: 14px; font-weight: 500; }

/* Carte map */
.map-block { display: flex; gap: 0; background: white; border: 0.5px solid var(--bordure); border-radius: 8px; overflow: hidden; }
.map-frame iframe { display: block; width: 100%; height: 200px; border: none; }
.map-info { padding: 16px 18px; min-width: 180px; font-size: 13px; color: #555; line-height: 1.8; }
.map-info strong { display: block; color: var(--vert); font-size: 14px; margin-bottom: 8px; }

/* Footer */
.site-footer { background: var(--vert); color: var(--vert-bord); padding: 20px 0; text-align: center; font-size: 12px; margin-top: 40px; }
.footer-links { margin-bottom: 8px; }
.footer-links a { color: var(--vert-bord); text-decoration: none; margin: 0 10px; }
.footer-links a:hover { text-decoration: underline; }
.footer-copy { opacity: 0.6; font-size: 11px; }

/* Photo résidence */
.residence-photo { position: relative; border-radius: 8px; overflow: hidden; max-height: 320px; }
.residence-img { display: block; width: 100%; max-height: 320px; object-fit: cover; border-radius: 8px; }
.residence-img-placeholder {
    display: flex; align-items: center; justify-content: center;
    background: var(--vert-bg); border: 2px dashed var(--vert-clair);
    border-radius: 8px; height: 180px;
    color: #888; font-size: 15px; text-align: center; line-height: 1.8;
}

/* Page nouveautés */
.page-hero-subtitle { font-size: 16px; color: #555; margin-top: 8px; }
.nouveautes-intro { font-size: 15px; color: #555; line-height: 1.75; background: var(--vert-bg); border-radius: 6px; padding: 16px 20px; border-left: 4px solid var(--vert-clair); }
.rubriques-list { display: flex; flex-direction: column; gap: 16px; }
.rubrique-card { background: white; border: 0.5px solid var(--bordure); border-radius: 8px; overflow: hidden; border-top: 3px solid var(--vert); }
.rubrique-header { display: flex; align-items: center; gap: 14px; padding: 14px 18px; background: var(--vert-bg); }
.rubrique-numero { background: var(--vert); color: white; font-size: 13px; font-weight: 600; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.rubrique-titre { font-family: Georgia, serif; font-size: 17px; color: var(--vert); margin: 0; }
.rubrique-body { padding: 14px 18px; }

/* ---- Alertes ---- */
.alerte-flash {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    min-width: 340px;
    max-width: 680px;
    width: 90%;
    z-index: 9999;
    border-radius: 8px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    animation: slideDown 0.4s ease;
}
.alerte-flash-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
}
.alerte-icon { font-size: 22px; flex-shrink: 0; }
.alerte-message { flex: 1; font-size: 15px; font-weight: 500; line-height: 1.4; }
.alerte-flash .btn-close { flex-shrink: 0; }
.alerte-progress {
    height: 4px;
    background: rgba(0,0,0,0.2);
    width: 100%;
    transform-origin: left;
    animation-name: progressBar;
    animation-timing-function: linear;
    animation-fill-mode: forwards;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateX(-50%) translateY(-20px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
@keyframes progressBar {
    from { transform: scaleX(1); }
    to   { transform: scaleX(0); }
}

/* Message date (inline dans la page) */
.alerte-date {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    border-radius: 0;
    border-left: none;
    border-right: none;
    padding: 12px 24px;
    font-size: 14px;
}
.alerte-dates {
    margin-left: auto;
    opacity: 0.7;
    font-size: 12px;
    white-space: nowrap;
}

/* ---- Formulaire signalement ---- */
.signalement-intro { background: var(--vert-bg); border-radius: 8px; padding: 16px 20px; border-left: 4px solid var(--vert-clair); font-size: 15px; line-height: 1.75; }
.signalement-form .form-label { color: var(--vert); font-weight: 500; font-size: 14px; }
.signalement-form .form-control,
.signalement-form .form-select { border-color: var(--bordure); font-size: 14px; }
.signalement-form .form-control:focus,
.signalement-form .form-select:focus { border-color: var(--vert-clair); box-shadow: 0 0 0 3px color-mix(in srgb, var(--vert-clair) 15%, transparent); }
.btn-signalement { background: var(--vert); color: white; border: none; padding: 12px 28px; border-radius: 6px; font-size: 15px; font-weight: 500; cursor: pointer; transition: background 0.2s; }
.btn-signalement:hover { background: var(--vert-fonce); }

/* ---- Page Organisation ---- */
/* .org-banner { width: 100%; max-height: 220px; overflow: hidden; }
.org-banner { width: 100%; max-width: 1100px; margin: 0 auto; }*/
.org-banner-img { width: 100%; height: auto; display: block; }
.org-banner-img { width: 100%; max-height: 220px; object-fit: cover; display: block; }
.org-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.org-card { background: white; border: 0.5px solid var(--bordure); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; }
.org-card-header { padding: 16px 18px 14px; border-bottom: 0.5px solid var(--bordure); display: flex; align-items: center; gap: 12px; background: var(--vert-bg); }
.org-icon { width: 38px; height: 38px; border-radius: 8px; background: white; display: flex; align-items: center; justify-content: center; flex-shrink: 0; border: 0.5px solid var(--bordure); }
.org-icon i { font-size: 20px; color: var(--vert); }
.org-title { font-size: 15px; font-weight: 600; color: var(--vert); }
.org-subtitle { font-size: 12px; color: #777; margin-top: 2px; }
.org-card-body { padding: 16px 18px; flex: 1; font-size: 14px; line-height: 1.75; color: #444; }
.org-card-body a { color: var(--rouge); background: var(--rouge-bg); text-decoration: none; padding: 1px 6px; border-radius: 3px; }
.org-card-footer { padding: 14px 18px; border-top: 0.5px solid var(--bordure); }
.btn-org { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 10px; background: var(--vert); color: white; border: none; border-radius: 6px; font-size: 13px; font-weight: 500; cursor: pointer; text-decoration: none; }
.btn-org:hover { background: var(--vert-fonce); color: white; }
.btn-org i { font-size: 16px; }

@media (max-width: 600px) { .org-cols { grid-template-columns: 1fr; } }

/* ---- Liste de documents ---- */
.doc-retour { display: inline-flex; align-items: center; gap: 6px; color: var(--vert); font-size: 14px; text-decoration: none; margin-bottom: 24px; }
.doc-retour:hover { text-decoration: underline; }
.docs-list { display: flex; flex-direction: column; gap: 10px; }
.doc-item { display: flex; align-items: center; gap: 14px; background: white; border: 0.5px solid var(--bordure); border-radius: 8px; padding: 14px 16px; }
.doc-item-icon { width: 40px; height: 40px; border-radius: 8px; background: var(--vert-bg); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.doc-item-icon i { font-size: 22px; color: var(--vert); }
.doc-item-info { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.doc-item-titre { font-size: 14px; font-weight: 500; color: var(--texte); }
.doc-item-type { font-size: 11px; color: #999; text-transform: uppercase; letter-spacing: 0.5px; }
.doc-item-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; background: var(--rouge-bg); color: var(--rouge); border-radius: 6px; font-size: 13px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.doc-item-btn:hover { background: var(--rouge); color: white; }
.doc-item-btn i { font-size: 15px; }

/* ---- Boutons actions ODT ---- */
.odt-actions { display: flex; gap: 10px; margin: 16px 0 8px; flex-wrap: wrap; }
.odt-btn-download, .odt-btn-print {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 16px; border-radius: 6px;
    font-size: 13px; font-weight: 500; cursor: pointer;
    text-decoration: none; border: none;
}
.odt-btn-download { background: var(--rouge-bg); color: var(--rouge); }
.odt-btn-download:hover { background: var(--rouge); color: white; }
.odt-btn-print { background: var(--vert-bg); color: var(--vert); }
.odt-btn-print:hover { background: var(--vert); color: white; }

/* ---- CSS impression ---- */
@media print {
    .topbar, .site-header, .site-nav, .site-footer,
    .odt-actions, .accordion-header-btn, .page-hero-divider,
    .alerte-flash, .alerte-date, .map-block { display: none !important; }

    a { color: #c0392b; }
    h1, h2, h3 { color: var(--vert); }
    h1 { font-size: 17pt; border-bottom: 1px solid var(--vert); padding-bottom: 4px; }
    h2 { font-size: 13pt; }
    h3 { font-size: 11pt; }
    @page { margin: 2cm; }
}

/* ---- Page générique ---- */
.pg-titre { font-family: Georgia, serif; font-size: 22px; color: var(--vert); margin-bottom: 8px; padding-bottom: 10px; border-bottom: 2px solid var(--vert-clair); }
.pg-sous-titre { font-family: Georgia, serif; font-size: 17px; color: var(--vert); margin-bottom: 16px; margin-top: 8px; }
.pg-image { margin-bottom: 24px; border-radius: 8px; overflow: hidden; }
/*.pg-img { width: 100%; max-height: 300px; object-fit: cover; display: block; }*/
.pg-img { width: 100%; height: auto; display: block; }
.pg-texte { margin-bottom: 24px; font-size: 14px; line-height: 1.75; }
.pg-lien { margin: 16px 0; }
.pg-btn-lien { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; font-size: 14px; }

/* ---- Accordeon Page générique ---- */
.pg-accordion { margin: 16px 0; }
.pg-acc-item { border: 1px solid var(--bordure); border-radius: 8px; margin-bottom: 8px; overflow: hidden; }
.pg-acc-header { width: 100%; background: var(--vert-bg); border: none; padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; font-weight: 600; color: var(--vert); text-align: left; font-size: 14px; transition: background 0.2s; }
.pg-acc-header:hover { background: var(--vert-bord); }
.pg-acc-arrow { transition: transform 0.2s; font-size: 11px; }
.pg-acc-header.open .pg-acc-arrow { transform: rotate(180deg); }
.pg-acc-body { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.pg-acc-body.open { max-height: 2000px; }
.pg-acc-body-inner { padding: 16px 18px; font-size: 14px; line-height: 1.7; }

/* Colonnes */
.pg-cols { display: grid; gap: 20px; margin-bottom: 28px; }
.pg-cols-1 { grid-template-columns: 1fr; }
.pg-cols-2 { grid-template-columns: 1fr 1fr; }
.pg-cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.pg-cols-4 { grid-template-columns: 1fr 1fr 1fr 1fr; }
.pg-col { background: white; border: 0.5px solid var(--bordure); border-radius: 8px; padding: 16px 18px; border-top: 3px solid var(--vert); }
.pg-col-titre { font-family: Georgia, serif; font-size: 15px; color: var(--vert); margin-bottom: 10px; }
.pg-col-texte { font-size: 13px; line-height: 1.7; }
.pg-col-lien { margin-top: 12px; }

@media (max-width: 600px) {
    .pg-cols-2, .pg-cols-3, .pg-cols-4 { grid-template-columns: 1fr; }
}

/* ---- Menu hamburger (mobile) ---- */
.nav-container { display: flex; align-items: center; flex-wrap: wrap; }
.nav-hamburger {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
}
.nav-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: white;
    margin: 5px 0;
    transition: all 0.3s;
}
.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (max-width: 768px) {
    .nav-hamburger { display: block; }
    .nav-list {
        display: none;
        width: 100%;
        flex-direction: column;
        padding: 0;
    }
    .nav-list.open { display: flex; }
    .nav-list > li > a { padding: 12px 16px; border-bottom: 0.5px solid rgba(255,255,255,0.1); }
    .nav-list .dropdown {
        display: none;
        position: static;
        box-shadow: none;
        border: none;
        border-top: none;
        background: rgba(0,0,0,0.15);
    }
    .nav-list .has-sub.open .dropdown { display: block; }
    .nav-list .dropdown li a { padding: 10px 24px !important; color: var(--vert-bord) !important; }
    .nav-list .dropdown li a:hover { background: rgba(255,255,255,0.1) !important; }
    .nav-list > li > a::after { float: right; }

    /* Responsive colonnes organisation */
    .org-cols { grid-template-columns: 1fr; }
}

/* ---- Bandeau cookies ---- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--vert-fonce);
    color: var(--vert-bord);
    z-index: 9998;
    padding: 14px 24px;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.2);
    animation: slideUp 0.4s ease;
}
@keyframes slideUp {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}
.cookie-content {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.cookie-text { margin: 0; font-size: 14px; flex: 1; line-height: 1.5; }
.cookie-link { color: var(--vert-clair); }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s;
}
.cookie-btn:hover { opacity: 0.85; }
.cookie-btn-accept { background: var(--vert-clair); color: white; }
.cookie-btn-refuse { background: rgba(255,255,255,0.15); color: var(--vert-bord); }

/* ---- Votre Environnement ---- */
.env-cat-btn { font-size: 16px; font-weight: 600; }
.env-sous-cat { border-left: 3px solid var(--vert-clair); padding-left: 12px; margin-left: 4px; }
.env-sous-cat-titre { font-size: 13px; font-weight: 600; color: var(--vert); text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 8px; padding-bottom: 4px; border-bottom: 0.5px solid var(--bordure); }
.env-activites-list { display: flex; flex-direction: column; gap: 8px; }
.env-activite-card { display: flex; align-items: center; justify-content: space-between; background: white; border: 0.5px solid var(--bordure); border-radius: 6px; padding: 10px 14px; gap: 12px; }
.env-act-nom { font-size: 14px; font-weight: 500; flex: 1; }
.env-act-contacts { display: flex; gap: 6px; flex-shrink: 0; }
.env-contact-btn { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 6px; background: var(--vert-bg); text-decoration: none; font-size: 16px; transition: background 0.2s; }
.env-contact-btn:hover { background: var(--vert-clair); }

/* ---- Conseil Syndical ---- */
.cs-president-card { background: white; border: 0.5px solid var(--bordure); border-radius: 10px; overflow: hidden; border-top: 4px solid var(--vert); }
.cs-president-header { display: flex; align-items: center; gap: 16px; padding: 20px 24px; background: var(--vert-bg); }
.cs-president-icon { font-size: 32px; }
.cs-president-titre { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--vert-clair); font-weight: 600; }
.cs-president-nom { font-family: Georgia, serif; font-size: 20px; color: var(--vert); font-weight: 600; margin-top: 4px; }
.cs-president-contacts { display: flex; flex-wrap: wrap; gap: 16px; padding: 16px 24px; font-size: 14px; }
.cs-contact-lien { color: var(--rouge); text-decoration: none; }
.cs-contact-lien:hover { text-decoration: underline; }
.cs-contact-info { color: #666; }
.cs-section-titre { font-size: 13px; font-weight: 600; color: var(--vert); text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 10px; padding-bottom: 6px; border-bottom: 2px solid var(--vert-clair); }
.cs-membres-list { display: flex; flex-direction: column; gap: 8px; }
.cs-membre-card { display: flex; align-items: center; justify-content: space-between; background: white; border: 0.5px solid var(--bordure); border-radius: 6px; padding: 12px 16px; }
.cs-membre-nom { font-size: 14px; font-weight: 500; flex: 1; }
.cs-membre-infos { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #666; }

/* ---- Assemblée Générale ---- */
.ag-prochaine-card { background: white; border: 0.5px solid var(--bordure); border-radius: 10px; overflow: hidden; border-top: 4px solid var(--vert); margin-bottom: 24px; }
.ag-prochaine-header { display: flex; align-items: center; gap: 16px; padding: 20px 24px; background: var(--vert-bg); }
.ag-prochaine-icon { font-size: 32px; }
.ag-prochaine-label { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--vert-clair); font-weight: 600; }
.ag-prochaine-date { font-family: Georgia, serif; font-size: 22px; color: var(--vert); font-weight: 600; margin-top: 4px; }
.ag-prochaine-lieu { padding: 12px 24px; font-size: 14px; color: #555; border-bottom: 0.5px solid var(--bordure); }
.ag-prochaine-conv { padding: 14px 24px; }

/* ---- Carte Environnement ---- */
.env-map-container { position: sticky; top: 0; z-index: 100; background: white; padding: 8px 0; }
.env-map-legende { text-align: center; font-size: 13px; color: #888; margin-top: 6px; font-style: italic; }

/* ---- Liste des travaux ---- */
.travaux-list { display: flex; flex-direction: column; gap: 12px; }
.travail-card { background: white; border: 0.5px solid var(--bordure); border-radius: 8px; overflow: hidden; border-left: 4px solid var(--vert); }
.travail-header { display: flex; align-items: flex-start; justify-content: space-between; padding: 14px 16px 8px; gap: 12px; }
.travail-tache { font-size: 14px; font-weight: 500; flex: 1; line-height: 1.4; }
.travail-badges { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.travail-priorite { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 20px; text-transform: uppercase; letter-spacing: 0.5px; }
.badge-urgente   { background: #fdecea; color: #c0392b; }
.badge-haute     { background: #fff8e1; color: #e67e22; }
.badge-normale   { background: #e8f4fd; color: #2980b9; }
.badge-faible    { background: #f5f5f5; color: #888; }
.travail-etat { font-size: 12px; font-weight: 500; }
.travail-infos { display: flex; flex-wrap: wrap; gap: 12px; padding: 0 16px 10px; font-size: 13px; color: #666; }
.travail-info-item { display: inline-flex; align-items: center; gap: 4px; }
.travail-commentaire { padding: 10px 16px; background: var(--vert-bg); font-size: 13px; color: #555; border-top: 0.5px solid var(--bordure); line-height: 1.6; }

/* ---- Tableau travaux ---- */
.travaux-intro { background: var(--vert-bg); border-left: 4px solid var(--vert-clair); border-radius: 6px; padding: 16px 20px; font-size: 14px; line-height: 1.75; }
.travaux-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.travaux-table thead tr { background: var(--vert); color: white; }
.travaux-table th { padding: 10px 12px; text-align: left; font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.travaux-table tbody tr { border-bottom: 0.5px solid var(--bordure); }
.travaux-table tbody tr:hover { background: var(--vert-bg); }
.travaux-table td { padding: 10px 12px; vertical-align: middle; }
.travail-tache-cell { max-width: 280px; font-weight: 500; }
.travail-commentaire-inline { font-size: 11px; color: #888; font-weight: 400; margin-top: 3px; }
.row-termine { opacity: 0.6; }
.travail-badge { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 20px; white-space: nowrap; }
.travail-urgente { background: #fdecea; color: #c0392b; }
.travail-haute   { background: #fff8e1; color: #e67e22; }
.travail-normale { background: #e8f4fd; color: #2980b9; }
.travail-faible  { background: #f5f5f5; color: #888; }
.travail-etat { font-size: 12px; font-weight: 500; padding: 3px 8px; border-radius: 4px; white-space: nowrap; }
.etat-attente { background: #f5f5f5; color: #666; }
.etat-encours { background: var(--vert-bg); color: var(--vert); }
.etat-termine { background: #e8f4fd; color: #2980b9; }
.etat-annule  { background: #fdecea; color: #c0392b; }

/* ---- PDF Grille ---- */
.pg-pdf-grille   { display: grid; gap: 20px; margin: 20px 0; }
.pg-pdf-grille-1 { grid-template-columns: 1fr; }
.pg-pdf-grille-2 { grid-template-columns: repeat(2, 1fr); }
.pg-pdf-grille-3 { grid-template-columns: repeat(3, 1fr); }
.pg-pdf-grille-4 { grid-template-columns: repeat(4, 1fr); }

.pg-pdf-card { border: 1px solid var(--bordure); border-radius: 10px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.pg-pdf-header { background: var(--vert-bg); border-bottom: 1px solid var(--bordure); padding: 10px 14px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.pg-pdf-titre { font-weight: 600; color: var(--vert); font-size: 14px; }
.pg-pdf-btns  { display: flex; gap: 6px; }
.pg-pdf-btn   { background: white; border: 1px solid var(--bordure); border-radius: 6px; padding: 4px 10px; font-size: 12px; cursor: pointer; text-decoration: none; color: #333; transition: background 0.15s; }
.pg-pdf-btn:hover { background: var(--vert-bg); }
.pg-pdf-btn-close { border-color: #f5c6cb; color: #c0392b; }
.pg-pdf-btn-close:hover { background: #fdecea; }
.pg-pdf-iframe { width: 100%; height: 1200px; border: none; display: block; }

@media (max-width: 768px) {
    .pg-pdf-grille-2,
    .pg-pdf-grille-3,
    .pg-pdf-grille-4 { grid-template-columns: 1fr; }
    .pg-pdf-iframe { height: 400px; }
}


.pg-pdf-canvas-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #f5f5f5;
}

.pg-pdf-canvas {
    display: block;
    width: 100%;
    height: auto;
}

.pg-pdf-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: .85rem;
    color: #888;
    background: rgba(255,255,255,.9);
    padding: 8px 16px;
    border-radius: 6px;
}

/* --- Accordéon : alignement icône + titre --- */
.pg-acc-header-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.pg-acc-icon {
    font-size: 1.2rem;
    color: var(--vert);        /* vert principal */
    flex-shrink: 0;
    line-height: 1;
}

.pg-acc-emoji {
    font-size: 1.2rem;
    flex-shrink: 0;
    line-height: 1;
}

/* --- Colonnes : alignement icône + titre --- */
.pg-col-titre {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pg-col-icon {
    font-size: 1.3rem;
    color: var(--vert);        /* vert principal */
    flex-shrink: 0;
    line-height: 1;
}

.pg-col-emoji {
    font-size: 1.3rem;
    flex-shrink: 0;
    line-height: 1;
}
.pg-cartes-action {
    display: grid;
    gap: 1.25rem;
    margin: 1.5rem 0;
}

.pg-cartes-action-1 { grid-template-columns: 1fr; }
.pg-cartes-action-2 { grid-template-columns: repeat(2, 1fr); }
.pg-cartes-action-3 { grid-template-columns: repeat(3, 1fr); }
.pg-cartes-action-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 768px) {
    .pg-cartes-action-2,
    .pg-cartes-action-3,
    .pg-cartes-action-4 {
        grid-template-columns: 1fr;
    }
}

.pg-carte-action-card {
    background: #fff;
    border: 1px solid var(--vert-bord);
    border-radius: 10px;
    box-shadow: 0 2px 8px color-mix(in srgb, var(--vert) 7%, transparent);
    transition: box-shadow .2s, transform .2s;
    display: flex;
    flex-direction: column;
}

.pg-carte-action-card:hover {
    box-shadow: 0 4px 16px color-mix(in srgb, var(--vert) 15%, transparent);
    transform: translateY(-2px);
}

.pg-carte-action-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: .75rem;
}

.pg-carte-action-titre {
    font-family: Georgia, serif;
    font-size: 1.1rem;
    color: var(--vert-fonce);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pg-carte-action-icon {
    font-size: 1.3rem;
    color: var(--vert);
    flex-shrink: 0;
}

.pg-carte-action-emoji {
    font-size: 1.3rem;
    flex-shrink: 0;
}

.pg-carte-action-texte {
    font-size: .95rem;
    color: #555;
    margin: 0;
    flex: 1;
    line-height: 1.5;
}

.pg-carte-action-btn {
    display: inline-block;
    margin-top: auto;
    padding: .5rem 1.25rem;
    background: var(--vert);
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-size: .9rem;
    font-weight: 600;
    text-align: center;
    transition: background .2s;
}

.pg-carte-action-btn:hover {
    background: var(--vert-fonce);
    color: #fff;
}

/* Bloc [MESSAGE:type] des pages génériques */
.pg-message {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 18px;
    border-radius: 8px;
    margin: 18px 0;
    font-size: 14.5px;
    line-height: 1.6;
}
.pg-message-icone { font-size: 18px; line-height: 1.4; flex-shrink: 0; }
.pg-message-contenu p { margin: 0 0 6px; }
.pg-message-contenu p:last-child { margin-bottom: 0; }
.pg-message-contenu a { color: inherit; text-decoration: underline; }

.pg-message-info    { background: #eff6ff; border-left: 4px solid #2563eb; color: #1e3a5f; }
.pg-message-success { background: var(--vert-bg); border-left: 4px solid var(--vert); color: var(--vert-fonce); }
.pg-message-warning { background: #fef6e7; border-left: 4px solid #b8860b; color: #6b4e00; }
.pg-message-danger  { background: var(--rouge-bg); border-left: 4px solid var(--rouge); color: #7a2418; }
