:root {
    --color-green:      #3EAE5F;
    --color-dark-green: #007368;
    --color-brown:      #96634A;
    --color-blue:       #B2D0E4;
    --btn-confirm-bg:   #B2D0E4;
    --btn-confirm-fg:   #1a3a4a;
    --btn-confirm-hover:#8ab4cc;
    --btn-cancel-bg:    #966341;
    --btn-cancel-fg:    white;
    --btn-cancel-hover: #7a4f34;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: #333;
    line-height: 1.6;
}

#app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    max-width: 1140px;
    margin: 0 auto;
}

main {
    flex: 1;
}

/* ===== ADMIN BAR ===== */

#admin-bar {
    background: #007368;
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.4rem 1rem;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

#admin-bar a {
    color: #B2D0E4;
    text-decoration: underline;
    cursor: pointer;
}

#admin-bar a:hover {
    color: white;
}

/* ===== MODAL ===== */

#modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

#modal-overlay.open {
    display: flex;
}

#modal-box {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    min-width: 320px;
    max-width: 480px;
    width: 90%;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

#modal-message {
    font-size: 1rem;
    margin-bottom: 1.25rem;
    line-height: 1.6;
    color: #333;
}

#modal-input-wrap {
    margin-bottom: 1rem;
}

#modal-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
}

#modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

.modal-btn {
    padding: 0.6rem 1.25rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    background: var(--btn-cancel-bg);
    color: var(--btn-cancel-fg);
    transition: background 0.2s;
}

.modal-btn:hover {
    background: var(--btn-cancel-hover);
}

.modal-btn.primary {
    background: var(--btn-confirm-bg);
    color: var(--btn-confirm-fg);
}

.modal-btn.primary:hover {
    background: var(--btn-confirm-hover);
}

/* ===== HEADER ===== */

header {
    background: white;
    border-bottom: 1px solid #ddd;
}

.header-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo-header {
    height: 60px;
    width: auto;
    margin-right: 1em;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #3EAE5F;
}

.nav-links a.active {
    color: #3EAE5F;
    border-bottom: 2px solid #3EAE5F;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    list-style: none;
    min-width: 160px;
    z-index: 100;
    padding: 0.25rem 0;
}

.nav-dropdown:hover .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-menu li a {
    display: block;
    padding: 0.5rem 1rem;
    white-space: nowrap;
    font-weight: 400;
    border-bottom: none;
}

.nav-dropdown-menu li a:hover {
    background: #f0f8f5;
    color: #3EAE5F;
}

#login-link {
    color: #96634A;
    display: flex;
    align-items: center;
}

#login-link:hover {
    color: #007368;
}

#login-link .material-icons {
    font-size: 1.5rem;
}

/* ===== ACCUEIL PAGE ===== */

.hero {
    width: 100%;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.mission-section {
    display: grid;
    grid-template-columns: 1fr 200px;
    gap: 2rem;
    padding: 1rem 2rem;
    align-items: center;
}

.mission-text {
    padding: 1rem;
}

.mission-text h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: #3EAE5F;
}

.mission-text p {
    font-size: 1rem;
    color: #555;
}

.mission-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* ===== COMMISSIONS GRID ===== */

.commissions-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr); /* overridden by JS on accueil */
    gap: 0.5rem;
    padding: 0.75rem;
    margin: 0 0 1rem;
    background: #f9f9f9;
    position: relative;
}

.commissions-grid-label {
    position: absolute;
    bottom: -1.6rem;
    left: 0;
    right: 0;
    text-align: center;
    font-weight: 600;
    font-size: 0.95rem;
    color: #333;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
    white-space: nowrap;
}

.commission-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    background: #3EAE5F;
    border: 2px solid #3EAE5F;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.35rem;
    text-align: center;
}

.commission-card:hover {
    box-shadow: 0 4px 12px rgba(62, 174, 95, 0.4);
    transform: translateY(-4px);
}

.commission-card:hover ~ .commissions-grid-label {
    opacity: 1;
}

.commission-card img {
    width: 75%;
    height: 75%;
    object-fit: contain;
}

.commission-card p {
    display: none;
}

/* ===== ADMIN SECTION ===== */

.admin-section {
    padding: 2rem;
    background: #f0f8f5;
    border: 2px dashed #3EAE5F;
    margin: 2rem;
    border-radius: 8px;
}

.admin-section h3 {
    margin-bottom: 1.5rem;
    color: #3EAE5F;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
}

.form-group textarea {
    min-height: 200px;
    resize: vertical;
}

.admin-section button {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.admin-section button[type="submit"] {
    background: var(--btn-confirm-bg);
    color: var(--btn-confirm-fg);
}

.admin-section button[type="submit"]:hover {
    background: var(--btn-confirm-hover);
}

.admin-section button[type="button"] {
    background: var(--btn-cancel-bg);
    color: var(--btn-cancel-fg);
}

.admin-section button[type="button"]:hover {
    background: var(--btn-cancel-hover);
}

.admin-section button:disabled,
.commission-desc-save:disabled,
#commission-page-desc-save:disabled,
.save-edit:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* ===== QUILL EDITOR ===== */

.ql-toolbar {
    border: 1px solid #ccc !important;
    border-radius: 4px 4px 0 0 !important;
    background: #fafafa;
    font-family: 'Montserrat', sans-serif;
}

.ql-container {
    border: 1px solid #ccc !important;
    border-top: none !important;
    border-radius: 0 0 4px 4px !important;
    background: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
}

.ql-editor {
    min-height: 8rem;
    padding: 0.75rem;
}

.ql-editor ol,
.ql-editor ul {
    padding-left: 1.5em;
}

.ql-highlight-btn {
    width: auto !important;
    padding: 0 4px !important;
    background: #fff9a0;
    border-radius: 3px;
}

/* ===== EDITORIALS ===== */

.editorials {
    padding: 2rem;
}

.editorial-item {
    margin-bottom: 2rem;
    border-left: 4px solid #3EAE5F;
    padding: 1.5rem;
    background: #fafafa;
    border-radius: 4px;
}

.editorial-item.collapsed {
    padding: 1.5rem 1.5rem 1rem;
}

@keyframes editorial-flash {
    0%   { background: #d4edda; border-left-color: #007368; }
    100% { background: #fafafa; border-left-color: #3EAE5F; }
}

.editorial-highlight {
    animation: editorial-flash 2s ease-out forwards;
}

.editorial-header {
    cursor: pointer;
    user-select: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.editorial-header:hover {
    color: #3EAE5F;
}

.editorials-controls {
    padding: 1rem 2rem 0;
}

.show-all-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    cursor: pointer;
    color: #555;
}

.show-all-label input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

.editorial-section-tag {
    display: inline-block;
    background: #3EAE5F;
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.editorial-section-tag.event-tag {
    background: #96634A;
}

.editorial-label {
    display: inline-block;
    background: #3EAE5F;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.editorial-date {
    font-size: 0.875rem;
    color: #999;
}

.editorial-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0.5rem 0;
}

.editorial-header-actions {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
}

.editorial-mail-btn {
    color: #ccc;
    display: flex;
    align-items: center;
    text-decoration: none;
    padding: 0.2rem;
    border-radius: 4px;
    transition: color 0.15s;
}

.editorial-mail-btn:hover {
    color: #3EAE5F;
}

.editorial-mail-btn .material-icons {
    font-size: 1.2rem;
}

.editorial-toggle {
    color: #3EAE5F;
    font-size: 1.5rem;
    vertical-align: middle;
}

.editorial-body {
    margin-top: 1rem;
    line-height: 1.8;
}

.editorial-body ol,
.editorial-body ul {
    padding-left: 1.5em;
}

.editorial-body img {
    max-width: 100%;
    height: auto;
}

.editorial-body.hidden {
    display: none;
}

.pdf-embed-wrap {
    margin-top: 1rem;
}

.pdf-embed {
    width: 100%;
    height: 500px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.pdf-download-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #007368;
    font-weight: 600;
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border: 1px solid #007368;
    border-radius: 4px;
}

.pdf-download-link:hover {
    background: #f0f8f5;
}

.editorial-actions {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
}

.editorial-actions button {
    padding: 0.5rem 1rem;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    transition: background 0.3s;
}

.editorial-actions button.edit {
    background: var(--btn-confirm-bg);
    color: var(--btn-confirm-fg);
}

.editorial-actions button.edit:hover {
    background: var(--btn-confirm-hover);
}

.editorial-actions button.delete {
    background: var(--btn-cancel-bg);
    color: var(--btn-cancel-fg);
}

.editorial-actions button.delete:hover {
    background: var(--btn-cancel-hover);
}

.editorial-edit-form {
    margin-top: 1rem;
    padding: 1rem;
    background: #f0f8f5;
    border: 1px solid #3EAE5F;
    border-radius: 4px;
}

.editorial-edit-form .form-group {
    margin-bottom: 0.75rem;
}

.editorial-edit-form input,
.editorial-edit-form textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
}

.editorial-edit-form textarea {
    min-height: 150px;
    resize: vertical;
}

.draft-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    cursor: pointer;
    color: #96634A;
    font-weight: 600;
}

.draft-label input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
}

@keyframes slow-blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.2; }
}

.pending-badge {
    font-size: 1rem !important;
    vertical-align: middle;
    margin-right: 0.3rem;
    color: #96634A;
    text-decoration: none;
    animation: slow-blink 0.8s ease-in-out infinite;
}

.draft-badge {
    display: inline-block;
    background: #32f818;
    color: rgb(91, 1, 1);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.1rem 0.4rem;
    border-radius: 3px;
    vertical-align: middle;
    margin-left: 0.3rem;
}

.editorial-edit-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.editorial-edit-actions .save-edit {
    background: var(--btn-confirm-bg);
    color: var(--btn-confirm-fg);
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.editorial-edit-actions .save-edit:hover {
    background: var(--btn-confirm-hover);
}

.editorial-edit-actions .cancel-edit {
    background: var(--btn-cancel-bg);
    color: var(--btn-cancel-fg);
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.editorial-edit-actions .cancel-edit:hover {
    background: var(--btn-cancel-hover);
}

/* ===== FOOTER ===== */

footer {
    background: #f5f5f5;
    border-top: 1px solid #ddd;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2rem;
    align-items: flex-start;
}

.footer-left,
.footer-right {
    display: flex;
    flex-direction: column;
}

.footer-left {
    align-items: flex-start;
}

.footer-right {
    align-items: flex-end;
}

.logo-footer {
    height: 50px;
    width: auto;
}

.footer-left p,
.footer-right p {
    font-size: 0.95rem;
    color: #666;
}

.footer-right a {
    color: #3EAE5F;
    text-decoration: none;
}

.footer-right a:hover {
    text-decoration: underline;
}

footer hr {
    border: none;
    border-top: 1px solid #ddd;
}

.footer-copyright {
    text-align: center;
    padding: 1rem 2rem;
    font-size: 0.875rem;
    color: #999;
}

.footer-nocookie {
    font-size: 0.75rem;
    color: #bbb;
    margin-top: 0.25rem;
}

/* ===== ADMIN PAGE ===== */

.admin-page {
    padding: 2rem;
    max-width: 700px;
    margin: 0 auto;
}

.admin-page h1 {
    font-size: 1.5rem;
    color: #3EAE5F;
    margin-bottom: 2rem;
}

.admin-block {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.admin-block h2 {
    font-size: 1.1rem;
    color: #007368;
    margin-bottom: 1.25rem;
}

.admin-block--log {
    width: 100vw;
    position: relative;
    left: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    border-radius: 0;
    border-left: none;
    border-right: none;
    background: #f4f4f4;
}

.admin-block--log h2 {
    color: #bbb;
    font-size: 0.95rem;
}

.log-subtitle {
    font-size: 0.85rem;
    color: #999;
    font-weight: 600;
    margin: 1.25rem 0 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

#log-filter-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
}

#log-filter {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 260px;
    color: #555;
}

#log-refresh {
    background: none;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    padding: 0.15rem 0.3rem;
    color: #888;
    display: flex;
    align-items: center;
}

#log-refresh:hover {
    color: #555;
    border-color: #999;
}

#log-content {
    background: #1e1e1e;
    color: #d4d4d4;
    font-size: 0.78rem;
    line-height: 1.5;
    padding: 1rem;
    border-radius: 4px;
    overflow-x: auto;
    max-height: 500px;
    overflow-y: scroll;
    white-space: pre;
    width: 100%;
    box-sizing: border-box;
}

.admin-stats-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.admin-stats-table td {
    padding: 0.35rem 0.5rem;
    color: #444;
}

.stat-summary td { font-weight: 600; }
.stat-summary:hover td { color: #3EAE5F; }
.stat-toggle { font-size: 1rem; vertical-align: middle; color: #3EAE5F; }
.stat-detail-label { padding-left: 1.5rem; color: #777; font-size: 0.875rem; }
tr.stat-detail.hidden { display: none; }

.admin-stats-table td hr {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 0.25rem 0;
}

.stat-val {
    text-align: right;
    font-weight: 600;
    color: #333;
}

.admin-task-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.admin-task-row.column {
    flex-direction: column;
    align-items: flex-start;
}

.admin-task-row button {
    background: var(--btn-confirm-bg);
    color: var(--btn-confirm-fg);
    border: none;
    border-radius: 4px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.2s;
}

.admin-task-row button:hover { background: var(--btn-confirm-hover); }

.unsub-row {
    display: flex;
    gap: 0.5rem;
    width: 100%;
}

.unsub-row input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
}

.task-result { font-size: 0.875rem; }
.task-result.ok  { color: #3EAE5F; }
.task-result.err { color: #d32f2f; }

/* ===== AGENDA PAGE ===== */

.agenda h1 {
    padding: 2rem 2rem 1rem;
    font-size: 1.5rem;
    color: #3EAE5F;
}

.agenda-past {
    opacity: 0.5;
}

.agenda-past .editorial-date {
    text-decoration: line-through;
}

.event-item {
    background: #f0f8f0;
}

.agenda-empty {
    padding: 2rem;
    color: #999;
    font-style: italic;
}

/* ===== ASSOCIATION PAGE ===== */

.association-hero {
    width: 100%;
    overflow: hidden;
}

.association-hero img {
    width: 100%;
    max-width: 800px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.association-mission {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2rem;
    padding: 2rem 2rem;
    align-items: flex-start;
}

.mission-logo img {
    width: 100%;
    height: auto;
}

.mission-content h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: #3EAE5F;
}

.mission-content p {
    margin-bottom: 1rem;
    color: #555;
    line-height: 1.8;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #3EAE5F;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-download:hover {
    background: #007368;
}

.btn-download .material-icons {
    font-size: 1.25rem;
}

.association-section {
    padding: 2rem;
    text-align: center;
}

.association-section h2 {
    font-size: 1.5rem;
    color: #3EAE5F;
    margin-bottom: 1.5rem;
}

.missions-section ul {
    list-style: none;
    max-width: 700px;
    margin: 0 auto;
    text-align: left;
}

.missions-section li {
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
}

.missions-section li:before {
    content: "•";
    color: #3EAE5F;
    font-size: 1.5rem;
    position: absolute;
    left: 0;
}

.values-section {
    max-width: 800px;
    margin: 0 auto;
}

.values-section p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.association-section p {
    color: #555;
}

.association-cta {
    background: #007368;
    color: white;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2rem 2rem;
    align-items: center;
    text-align: center;
}

.cta-left {
    font-size: 1.5rem;
    font-weight: 600;
}

.cta-right {
    text-align: center;
}

.btn-contact {
    background: white;
    color: #007368;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-contact:hover {
    background: #f0f0f0;
}

.charte-section {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

.charte-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    padding: 1rem;
    border: 2px solid #3EAE5F;
    border-radius: 4px;
    background: #f9f9f9;
}

.charte-header:hover {
    background: #f0f8f5;
}

.charte-header h2 {
    margin: 0;
    color: #3EAE5F;
    font-size: 1.25rem;
}

.charte-toggle {
    color: #3EAE5F;
    font-size: 1.5rem;
    transition: transform 0.3s;
    flex-shrink: 0;
}

.charte-header.open .charte-toggle {
    transform: rotate(90deg);
}

.charte-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.charte-content.hidden {
    max-height: 0;
}

.charte-content:not(.hidden) {
    max-height: 2000px;
}

.charte-text {
    padding: 2rem;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 4px 4px;
}

.charte-text h3 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
    text-align: center;
}

.charte-text h4 {
    font-size: 1.1rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: #3EAE5F;
}

.charte-text h5 {
    font-size: 1rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    color: #007368;
    font-weight: 600;
}

.charte-text p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.charte-text ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.charte-text li {
    margin-bottom: 0.5rem;
    color: #555;
}

.charte-text ul ul {
    margin-left: 1.5rem;
    margin-top: 0.5rem;
}

/* ===== CONTACT / NEWSLETTER ===== */

.contact-separator {
    margin: 0 1rem;
    border: none;
    border-top: 1px solid #ddd;
}

.subscribe-form {
    width: 100%;
    max-width: 420px;
    margin: 0.75rem auto 0;
}

.subscribe-form input[type="email"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
}

.subscribe-consent {
    font-size: 0.85rem;
    color: #555;
    line-height: 1.5;
    text-align: left;
}

.subscribe-consent label {
    display: flex;
    gap: 0.5rem;
    cursor: pointer;
}

.subscribe-consent input[type="checkbox"] {
    flex-shrink: 0;
    margin-top: 3px;
    width: 1rem;
    height: 1rem;
}

.subscribe-form button {
    width: 100%;
    padding: 0.75rem;
    background: var(--btn-confirm-bg);
    color: var(--btn-confirm-fg);
    border: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.subscribe-form button:hover:not(:disabled) { background: var(--btn-confirm-hover); }
.subscribe-form button:disabled { background: #ccc; cursor: not-allowed; }

.subscribe-msg { margin-top: 1rem; font-weight: 600; }
.subscribe-msg.ok  { color: #3EAE5F; }
.subscribe-msg.err { color: #d32f2f; }

.subscribe-rgpd {
    margin-top: 1rem;
    font-size: 0.78rem;
    color: #777;
    text-align: left;
    max-width: 480px;
}

.subscribe-rgpd ul { padding-left: 1.25rem; }
.subscribe-rgpd li { margin-bottom: 0.4rem; }
.subscribe-rgpd a  { color: #3EAE5F; }

.subscribers-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.subscribers-table th, .subscribers-table td {
    padding: 0.5rem 1rem;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.subscribers-table th { font-weight: 700; color: #555; }

/* ===== COMMISSION DETAIL PAGE ===== */

.commission-page-hero {
    width: 100%;
    overflow: hidden;
}

.commission-page-hero img {
    width: 100%;
    max-width: 800px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.commission-page-inner {
    padding: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.commission-page {
    padding: 0;
    max-width: none;
}

.commission-page-title-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.commission-page-inner .commission-page-title {
    font-size: 1.75rem;
    color: #3EAE5F;
    margin-bottom: 0;
}

.commission-editos-link {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #007368;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
}

.commission-editos-link:hover {
    color: #3EAE5F;
}

.commission-editos-link .material-icons {
    font-size: 1.1rem;
}

.commission-page-header {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: flex-start;
}

.commission-page-card .commission-row-card.static {
    cursor: default;
}

.hero-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.25);
    border: none;
    cursor: pointer;
    color: white;
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 10;
}

.hero-nav-btn .material-icons { font-size: 2.5rem; }

.hero:hover .hero-nav-btn,
.association-hero:hover .hero-nav-btn,
.commissions-hero:hover .hero-nav-btn,
.contact-hero:hover .hero-nav-btn,
.agenda-hero:hover .hero-nav-btn {
    opacity: 1;
}

.commission-nav {
    position: relative;
}

.commission-nav .commission-row-card.static {
    position: relative;
}

.commission-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.25);
    border: none;
    cursor: pointer;
    color: white;
    padding: 0;
    display: flex;
    align-items: center;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.2s;
}

.commission-nav:hover .commission-nav-btn {
    opacity: 1;
}

#commission-prev { left: 2px; }
#commission-next { right: 2px; }

.commission-nav-btn .material-icons {
    font-size: 2rem;
}

.commission-page-desc p {
    color: #555;
    line-height: 1.8;
}

.commission-desc-edit {
    width: 100%;
    min-height: 120px;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 0.5rem;
    resize: vertical;
}

.commission-desc-save,
#commission-page-desc-save {
    background: var(--btn-confirm-bg);
    color: var(--btn-confirm-fg);
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.commission-desc-save:hover,
#commission-page-desc-save:hover {
    background: var(--btn-confirm-hover);
}

.hide-narrow {
    display: block;
}

/* ===== CONTACT PAGE ===== */

.contact-hero {
    width: 100%;
    overflow: hidden;
}

.contact-hero img {
    width: 100%;
    max-width: 800px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.contact {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.contact-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.25rem 1rem;
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
}

.contact-icon {
    margin-bottom: 0.5rem;
}

.contact-icon .material-icons {
    font-size: 2.5rem;
    color: #3EAE5F;
}

.contact h1 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.contact h2 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.contact p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.contact-link {
    display: inline-block;
    background: #3EAE5F;
    color: white;
    padding: 1rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: background 0.3s;
}

.contact-link:hover {
    background: #007368;
}

.rss-copy-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}
.rss-feed-url {
    font-size: 0.85rem;
    background: #f0f0f0;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    word-break: break-all;
}
.btn-copy {
    background: none;
    border: none;
    cursor: pointer;
    color: #007368;
    padding: 0.2rem;
    line-height: 1;
}
.btn-copy:hover { color: #3EAE5F; }
.rss-copy-msg {
    font-size: 0.85rem;
    color: #3EAE5F;
    font-weight: 600;
    margin-top: 0.25rem;
}

/* ===== COMMISSIONS PAGE ===== */

.commissions-hero {
    width: 100%;
    overflow: hidden;
}

.commissions-hero img {
    width: 100%;
    max-width: 800px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.commissions-intro {
    padding: 2rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.commissions-intro p {
    color: #555;
    line-height: 1.8;
    font-size: 1rem;
}

.commissions-list {
    padding: 2rem;
}

.commission-row {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: flex-start;
}

.commission-row-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    background: #3EAE5F;
    border: 2px solid #3EAE5F;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.commission-row-card:hover {
    box-shadow: 0 4px 12px rgba(62, 174, 95, 0.4);
    transform: translateY(-4px);
}

.commission-row-card img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 0.5rem;
}

.commission-row-card p {
    font-weight: 600;
    color: white;
    font-size: 0.95rem;
}

.commission-description {
    color: #555;
    line-height: 1.8;
}

.commission-description p {
    margin-bottom: 1rem;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 800px) {
    .mission-section {
        grid-template-columns: 1fr;
        padding: 0;
    }

    .association-mission {
        grid-template-columns: 1fr;
    }

    .commissions .commissions-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
    padding: 0;
}

.mobile-agenda-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
    padding: 0 0.5rem;
    text-decoration: none;
    margin-left: auto;
}

.mobile-agenda-btn .material-icons { font-size: 2rem; }

.hamburger .material-icons { font-size: 2rem; }

@media (max-width: 768px) {
    .header-nav {
        flex-wrap: wrap;
        padding: 0.75rem 1rem;
        position: relative;
    }

    .logo-header {
        height: 50px;
        flex-shrink: 0;
        margin-right: 1em;
    }

    .mobile-agenda-btn {
        display: flex;
        align-items: center;
        margin-left: auto;
    }

    .hamburger {
        display: flex;
        align-items: center;
        margin-left: 0.5rem;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        gap: 0;
        width: 100%;
        background: white;
        border-top: 1px solid #eee;
        padding: 0.5rem 0;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links > li > a {
        display: block;
        padding: 0.75rem 1rem;
        border-bottom: 1px solid #f0f0f0;
    }

    .nav-dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding-left: 1.5rem;
        display: flex;
        flex-direction: column;
    }

    .nav-dropdown:hover .nav-dropdown-menu {
        display: flex;
    }

    .accueil .commissions-grid,
    .commissions .commissions-grid {
        grid-template-columns: 1fr !important;
        gap: 0.5rem;
        padding: 1rem;
    }

    .accueil .commission-card,
    .commissions .commission-card {
        aspect-ratio: unset;
        flex-direction: row;
        justify-content: flex-start;
        gap: 0.75rem;
        padding: 10px;
    }

    .accueil .commission-card p,
    .commissions .commission-card p {
        display: block;
        font-weight: 600;
        color: white;
        font-size: 0.95rem;
    }

    .accueil .commission-card img,
    .commissions .commission-card img {
        width: 40px;
        height: 40px;
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .accueil .commissions-grid-label {
        display: none;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .footer-left,
    .footer-right {
        align-items: center;
        text-align: center;
    }

    .mission-text h2 {
        font-size: 1.5rem;
    }

    .association-cta {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .cta-left {
        font-size: 1.25rem;
    }

    .commission-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .commission-row-card {
        width: auto;
        aspect-ratio: unset;
        flex-direction: row;
        justify-content: flex-start;
        gap: 0.75rem;
        padding: 10px;
    }

    .commission-row-card img {
        width: 40px;
        height: 40px;
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .hide-narrow {
        display: none;
    }

    .agenda h1.agenda-title {
        font-size: 0;
    }

    .agenda h1.agenda-title::after {
        content: 'Agenda';
        font-size: 1.5rem;
    }

    .commission-page-header {
        grid-template-columns: 1fr;
    }

    .commission-page-inner {
        padding: 0.75rem;
    }

    .commission-page-inner .commission-page-title {
        font-size: 1.35rem;
        margin-bottom: 1rem;
    }

    .editorials {
        padding: 0.75rem;
    }

    .editorials-controls {
        padding: 0.5rem 0.75rem 0;
    }

    .editorial-item {
        padding: 0.75rem;
        margin-bottom: 1rem;
    }

    .editorial-item.collapsed {
        padding: 0.75rem;
    }

    .editorial-title {
        font-size: 1.05rem;
    }

    .editorial-body {
        font-size: 0.95rem;
    }

    .editorial-body img {
        width: 100%;
        height: auto;
    }
}
