:root {
  --bg: #0e0906; --panel: #17110c; --panel-2: #20170f; --line: #33261a;
  --gold: #e9b95a; --gold-2: #f5d58b; --bronze: #b97a2f; --text: #f6f0e4; --muted: #bfb4a2;
  --ok: #2f9e62; --warn: #e0a100; --bad: #e0534a; --radius: 14px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: radial-gradient(900px 460px at 50% 0, rgba(185,122,47,.28), transparent) no-repeat, var(--bg); color: var(--text); font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--gold); }
img { max-width: 100%; height: auto; display: block; }
.wrap { width: min(1040px, 100% - 32px); margin-inline: auto; }
.narrow { max-width: 720px; margin-inline: auto; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; line-height: 1.18; margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 6.5vw, 3.2rem); }
h2 { font-size: clamp(1.4rem, 4.2vw, 2rem); color: var(--gold); margin-top: 1.4em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); } .small { font-size: .875rem; } .center { text-align: center; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 8px; top: 8px; background: var(--gold); color: #1a1205; padding: 8px 12px; z-index: 50; border-radius: 8px; }
.kicker { color: var(--gold); letter-spacing: .22em; text-transform: uppercase; font-size: .78rem; margin: 0 0 .4em; }

.site-header { position: sticky; top: 0; z-index: 20; background: rgba(14,9,6,.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; min-height: 64px; flex-wrap: wrap; padding-block: 6px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--gold); text-decoration: none; font: 800 1.15rem Georgia, serif; letter-spacing: .03em; }
.brand b { color: var(--gold-2); } .brand small { font: 500 .75rem system-ui; color: var(--muted); }
.brand img { width: 64px; height: auto; }
.nav { display: flex; gap: 2px 14px; flex-wrap: wrap; align-items: center; }
.nav a, .nav button.linklike { color: var(--text); text-decoration: none; padding: 10px 6px; font-size: .95rem; background: none; border: 0; cursor: pointer; font-family: inherit; }
.nav a:hover, .nav a.active, .nav button.linklike:hover { color: var(--gold); }
.nav a.btn { background: var(--gold); color: #1a1205; padding: 0 16px; }
.nav a.btn:hover { background: var(--gold-2); color: #1a1205; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 999px; border: 2px solid var(--gold); background: var(--gold); color: #1a1205; font: 700 1rem system-ui; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--gold-2); }
.btn-ghost { background: transparent; color: var(--gold); } .btn-ghost:hover { background: rgba(233,185,90,.12); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .9rem; } .btn-block { width: 100%; }
.btn.danger { color: var(--bad); border-color: var(--bad); }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin: 1.2rem 0 0; } .cta-row.left { justify-content: flex-start; }

.hero { padding: 40px 0 28px; text-align: center; }
.hero-logo { width: min(260px, 60%); margin: 0 auto 8px; }
.hero h1 { color: var(--gold-2); }
.hero .lead { max-width: 640px; margin: 0 auto; color: var(--muted); font-size: 1.1rem; }
.lead { font-size: 1.1rem; }
section.block { padding: 32px 0; }
.grid { display: grid; gap: 16px; } .g2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); } .g3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); } .g4 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.band { background: linear-gradient(135deg, var(--panel-2), var(--panel)); border-color: var(--bronze); }
.event { display: flex; gap: 18px; align-items: stretch; flex-wrap: wrap; }
.event-img { flex: 0 0 150px; } .event-img img { border-radius: 10px; width: 150px; }
.event-body { flex: 1 1 220px; min-width: 0; } .event-big .event-img { flex-basis: 210px; } .event-big .event-img img { width: 210px; }
.event h3 a { color: var(--text); text-decoration: none; } .event h3 a:hover { color: var(--gold); }
.affiche { border-radius: var(--radius); margin: 0 auto 1.2rem; max-height: 640px; width: auto; }
.infos { list-style: none; padding: 0; margin: 0 0 1.2rem; } .infos li { padding: 6px 0; border-bottom: 1px solid var(--line); }
ul { padding-left: 1.2em; }

.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-weight: 600; }
.form input:not([type=checkbox]), .form textarea { width: 100%; background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font: inherit; min-height: 48px; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.form .check input { width: 22px; height: 22px; margin-top: 3px; flex: 0 0 auto; accent-color: var(--gold); }
.two { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.hp { position: absolute; left: -5000px; height: 0; overflow: hidden; }
.flash { padding: 12px 16px; border-radius: 10px; margin: 16px 0; border: 1px solid; }
.flash.ok { border-color: var(--ok); background: rgba(47,158,98,.12); } .flash.err { border-color: var(--bad); background: rgba(224,83,74,.12); }

.site-footer { border-top: 1px solid var(--line); margin-top: 56px; padding: 40px 0 24px; font-size: .95rem; background: rgba(255,255,255,.02); }
.foot-grid { display: grid; gap: 32px; grid-template-columns: 1.4fr 1fr 1fr; }
.foot-brand p { margin: 10px 0 14px; }
.foot-logo img { display: block; height: auto; width: 110px; }
.foot-col h2 { font: 700 .8rem var(--sans, system-ui), sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); margin: 0 0 12px; }
.foot-col ul, .foot-social { list-style: none; margin: 0; padding: 0; }
.foot-col li { margin: 0 0 8px; }
.foot-col a { text-decoration: none; } .foot-col a:hover { text-decoration: underline; }
.foot-social { display: flex; flex-wrap: wrap; gap: 10px; }
.foot-social a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 10px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.04); text-decoration: none; transition: transform .15s, border-color .15s; }
.foot-social a:hover, .foot-social a:focus-visible { border-color: var(--gold); transform: translateY(-2px); }
.foot-social img { height: 24px; width: auto; max-width: 32px; display: block; }
.foot-social a.txt { font-size: .85rem; font-weight: 600; }
.foot-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
.foot-bottom a { color: inherit; }
@media (max-width: 720px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 420px) { .foot-grid { grid-template-columns: 1fr; } }
.lien-tete { display: flex; align-items: center; gap: 12px; }
.lien-icone { width: 36px; height: 36px; object-fit: contain; border-radius: 8px; } .lien-icone.vide { display: inline-flex; align-items: center; justify-content: center; background: var(--line); color: var(--muted); }

/* Administration */
.bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.tile { text-decoration: none; color: var(--text); display: grid; gap: 4px; } .tile strong { font: 700 2.2rem Georgia, serif; color: var(--gold); }
.table-wrap { overflow-x: auto; } table { width: 100%; border-collapse: collapse; min-width: 560px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; } th { color: var(--muted); font-weight: 600; font-size: .85rem; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; } .inline { display: inline; margin: 0; }
.tag { display: inline-block; font-size: .72rem; padding: 2px 8px; border-radius: 999px; background: var(--gold); color: #1a1205; font-weight: 700; } .tag.warn { background: var(--warn); }
.msg.unread { border-color: var(--gold); } .pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.lien { display: grid; gap: 8px; padding-bottom: 12px; border-bottom: 1px solid var(--line); } .mt { margin-top: 32px; }

@media (max-width: 560px) {
  .nav { gap: 0 8px; } .nav a, .nav button.linklike { padding: 10px 4px; font-size: .9rem; }
  .event-img, .event-big .event-img { flex-basis: 100%; } .event-img img, .event-big .event-img img { width: 100%; max-height: 340px; object-fit: cover; object-position: top; }
}

/* Inscriptions aux événements */
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 10px; }
.badge { display: inline-block; font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--bronze); color: var(--gold-2); background: rgba(185,122,47,.12); }
.badge-membres { border-color: var(--gold); background: var(--gold); color: #1a1205; } .badge-warn { border-color: var(--warn); color: var(--warn); background: rgba(224,161,0,.12); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 4px; }
.chip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); color: var(--text); text-decoration: none; font-size: .92rem; }
.chip:hover { border-color: var(--gold); } .chip.active { background: var(--gold); border-color: var(--gold); color: #1a1205; font-weight: 700; }
fieldset.choix { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 0; display: grid; gap: 12px; min-width: 0; }
fieldset.choix legend { padding: 0 6px; font-weight: 700; color: var(--gold-2); }
.form select { width: 100%; background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font: inherit; min-height: 48px; }
.form select:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.methode[hidden] { display: none; }
.sticky-cta { display: none; }
@media (max-width: 720px) {
  .sticky-cta { display: inline-flex; position: fixed; left: 16px; right: 16px; bottom: 14px; z-index: 30; box-shadow: 0 6px 24px rgba(0,0,0,.6); }
  body { padding-bottom: 76px; }
}
.liste-cases { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); max-height: 260px; overflow-y: auto; padding: 4px; }
.form input[type=radio], .form input[type=checkbox] { width: 22px; height: 22px; min-height: 0; padding: 0; margin: 3px 0 0; flex: 0 0 auto; accent-color: var(--gold); }
.sticky-cta[hidden] { display: none; }

/* Administration : filtres et sélecteur de séance */
.filtre-membres, .inline-form { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); align-items: end; margin: 12px 0 18px; }
.inline-form { grid-template-columns: minmax(0, 1fr) auto; }
.inline-form select { width: 100%; }

/* Page de confirmation d'inscription */
.confirmation .confirm-tete { display: flex; align-items: center; gap: 16px; margin: 8px 0 20px; }
.confirmation .confirm-tete h1 { font-size: clamp(1.5rem, 5vw, 2.1rem); margin: 0 0 2px; }
.confirmation .confirm-tete p { margin: 0; }
.confirm-pastille { flex: 0 0 auto; width: 52px; height: 52px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 700; background: rgba(47,158,98,.18); color: var(--ok); border: 2px solid var(--ok); }
.confirm-tete.attente .confirm-pastille { background: rgba(224,161,0,.15); color: var(--warn); border-color: var(--warn); }
.confirm-tete.annulee .confirm-pastille { background: rgba(224,83,74,.15); color: var(--bad); border-color: var(--bad); }
.details { margin: 10px 0 16px; display: grid; gap: 0; }
.details > div { display: grid; grid-template-columns: 90px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.details > div:last-child { border-bottom: 0; }
.details dt { color: var(--muted); font-size: .85rem; } .details dd { margin: 0; overflow-wrap: anywhere; }
.confirmation .kicker { letter-spacing: .08em; font-size: .85rem; }
