/* asso — charte : vert profond (#13332e), ambre (#f0b429), fond clair (#f3f4f6). Même squelette que Le Tilt (mobile.css). */
:root { --asso-nuit: #13332e; --asso-vert: #1f5f4a; --asso-ambre: #f0b429; --asso-ambre-fonce: #d99a0b; --asso-gris: #6b7280; --asso-fond: #f3f4f6; --asso-rouge: #dc2626; --asso-ok: #15803d; }
* { box-sizing: border-box; }
body { font-family: Arial, Helvetica, sans-serif; background: var(--asso-fond); color: #1f2937; margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--asso-vert); }

.header { padding: 12px 20px; background: linear-gradient(180deg, #1f5f4a, #13332e); border-bottom: 3px solid var(--asso-ambre); color: #fff; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.header a { color: #fff; text-decoration: none; }
.header-left { display: flex; align-items: center; gap: 12px; }
.header-left img { height: 36px; }
.header-titles h1 { margin: 0; font-size: 1.1rem; }
.header-titles p { margin: 0; font-size: 0.8rem; opacity: 0.9; }
.header-titles .contexte { color: var(--asso-ambre); font-weight: bold; }
.header-actions { display: flex; align-items: center; gap: 14px; font-size: 0.9rem; }
.header-actions form { margin: 0; }
.btn-lien { background: none; border: 1px solid rgba(255,255,255,0.5); color: #fff; padding: 6px 12px; border-radius: 5px; cursor: pointer; font-size: 0.85rem; }
.btn-lien:hover { background: rgba(255,255,255,0.12); }

main { flex: 1; width: 100%; max-width: 960px; margin: 0 auto; padding: 20px 16px; }
.page-login main { display: flex; flex-direction: column; align-items: center; padding-top: 0; }
.page-login { background: var(--asso-nuit); background-image: radial-gradient(circle at 20% 15%, rgba(240,180,41,0.16), transparent 40%), radial-gradient(circle at 80% 80%, rgba(31,95,74,0.5), transparent 45%); }
.page-login .header { display: none; }
.logo-splash { display: block; width: min(300px, 76vw); margin: 2.4rem auto 1.4rem; }
.login-card { background: #fff; padding: 2rem; border-radius: 10px; box-shadow: 0 12px 30px rgba(0,0,0,0.35); width: 100%; max-width: 420px; border-top: 4px solid var(--asso-ambre); }
.login-card h2 { text-align: center; color: var(--asso-nuit); font-size: 1.3rem; margin: 0 0 1.4rem; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-weight: bold; margin-bottom: 6px; font-size: 0.9rem; color: #374151; }
.form-group input, .form-group select { width: 100%; padding: 0.7rem; border: 1px solid #d1d5db; border-radius: 6px; font-size: 1rem; }
.form-group input:focus, .form-group select:focus { outline: 2px solid var(--asso-ambre); border-color: var(--asso-ambre); }
.form-group .aide { font-size: 0.8rem; color: var(--asso-gris); margin: 4px 0 0; }
.code { text-transform: uppercase; letter-spacing: 0.3em; font-weight: bold; text-align: center; }
.btn-primary { width: 100%; padding: 0.8rem; background: linear-gradient(180deg, #ffcf5c, var(--asso-ambre)); color: var(--asso-nuit); font-weight: bold; border: none; border-radius: 6px; font-size: 1rem; cursor: pointer; margin-top: 0.6rem; }
.btn-primary:hover { background: linear-gradient(180deg, var(--asso-ambre), var(--asso-ambre-fonce)); }
.btn-secondaire { padding: 0.5rem 0.9rem; background: #fff; color: var(--asso-vert); border: 1px solid var(--asso-vert); border-radius: 6px; font-size: 0.9rem; cursor: pointer; }
.btn-danger { padding: 0.5rem 0.9rem; background: #fff; color: var(--asso-rouge); border: 1px solid var(--asso-rouge); border-radius: 6px; font-size: 0.9rem; cursor: pointer; }
.error { color: var(--asso-rouge); font-size: 0.9rem; margin-bottom: 1rem; text-align: center; padding: 10px; background: #fee2e2; border-radius: 6px; }
.status { color: var(--asso-ok); font-size: 0.9rem; margin-bottom: 1rem; text-align: center; padding: 10px; background: #dcfce7; border-radius: 6px; }
.link-center { display: block; text-align: center; margin-top: 1rem; color: var(--asso-vert); text-decoration: none; font-size: 0.9rem; }
.signature { text-align: center; color: #9fb3ad; font-size: 0.8rem; margin: 1.2rem 0 2rem; }
.signature b { color: var(--asso-ambre); font-style: italic; }
.pied { text-align: center; color: var(--asso-gris); font-size: 0.75rem; padding: 12px; }
.page-login .pied { color: #9fb3ad; }

.carte { background: #fff; border-radius: 10px; box-shadow: 0 2px 6px rgba(0,0,0,0.08); padding: 1.2rem 1.4rem; margin-bottom: 1.2rem; }
.carte h2 { margin: 0 0 1rem; font-size: 1.15rem; color: var(--asso-nuit); border-bottom: 2px solid var(--asso-ambre); display: inline-block; padding-bottom: 4px; }
.grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
table.liste { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
table.liste th, table.liste td { text-align: left; padding: 8px 6px; border-bottom: 1px solid #e5e7eb; vertical-align: middle; }
table.liste th { color: var(--asso-gris); font-weight: bold; font-size: 0.8rem; text-transform: uppercase; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 0.75rem; font-weight: bold; }
.badge-active { background: #dcfce7; color: var(--asso-ok); }
.badge-suspendue { background: #fee2e2; color: var(--asso-rouge); }
.badge-role { background: #fef3c7; color: #92400e; }
.actions-ligne { display: flex; gap: 6px; flex-wrap: wrap; }
.actions-ligne form { margin: 0; }
.choix-liste { list-style: none; padding: 0; margin: 0; }
.choix-liste li { margin-bottom: 10px; }
.choix-liste button { width: 100%; text-align: left; padding: 12px 14px; background: #fff; border: 1px solid #d1d5db; border-radius: 8px; cursor: pointer; font-size: 1rem; }
.choix-liste button:hover { border-color: var(--asso-ambre); background: #fffbeb; }
.choix-liste small { display: block; color: var(--asso-gris); font-size: 0.8rem; margin-top: 2px; }
@media (max-width: 600px) { table.liste thead { display: none; } table.liste td { display: block; padding: 4px 0; } table.liste tr { display: block; padding: 8px 0; border-bottom: 1px solid #e5e7eb; } }

/* --- Activités --- */
.barre-titre { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 0.8rem; }
.barre-titre h2 { margin: 0; }
.btn-ambre { display: inline-block; padding: 0.5rem 0.9rem; background: linear-gradient(180deg, #ffcf5c, var(--asso-ambre)); color: var(--asso-nuit); border: none; border-radius: 6px; font-size: 0.9rem; font-weight: bold; cursor: pointer; text-decoration: none; }
.btn-ambre:hover { background: linear-gradient(180deg, var(--asso-ambre), var(--asso-ambre-fonce)); }
.btn-secondaire { text-decoration: none; display: inline-block; }
.liste-activites { list-style: none; padding: 0; margin: 0; }
.liste-activites li { border-bottom: 1px solid #e5e7eb; }
.activite-lien { display: grid; grid-template-columns: 220px 1fr auto; gap: 12px; align-items: center; padding: 12px 4px; color: inherit; text-decoration: none; }
.activite-lien:hover { background: #fffbeb; }
.activite-quand { color: var(--asso-vert); font-weight: bold; font-size: 0.9rem; }
.activite-quand .date::first-letter { text-transform: uppercase; }
.activite-etat { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.badge-privee { background: #e0e7ff; color: #3730a3; }
.badge-publique { background: #dcfce7; color: var(--asso-ok); }
.badge-jauge { background: #f3f4f6; color: #374151; }
.form-group textarea { width: 100%; padding: 0.7rem; border: 1px solid #d1d5db; border-radius: 6px; font-size: 1rem; font-family: inherit; }
.tuile { display: block; background: #fff; border-radius: 10px; box-shadow: 0 2px 6px rgba(0,0,0,0.08); padding: 1rem 1.2rem; text-decoration: none; color: inherit; border-left: 4px solid var(--asso-ambre); }
.tuile:hover { background: #fffbeb; }
.tuile strong { display: block; color: var(--asso-nuit); margin-bottom: 4px; }
.tuile span { font-size: 0.85rem; color: var(--asso-gris); }
.activite-publique { border-top: 1px solid #e5e7eb; padding: 1rem 0; }
.activite-publique h3 { margin: 4px 0 8px; color: var(--asso-nuit); }
.form-inscription { margin-top: 0.8rem; padding: 1rem; background: #f9fafb; border-radius: 8px; }
.pot-de-miel { position: absolute; left: -9999px; }
@media (max-width: 700px) { .activite-lien { grid-template-columns: 1fr; } .activite-etat { justify-content: flex-start; } }
