/* ===== RSC Pâturages — couleurs du club : modifie ces 2 lignes ===== */
:root {
  --club: #0a5c36;        /* couleur principale */
  --club-fonce: #063d24;
  --accent: #f2b705;      /* couleur secondaire */

  --fond: #f5f6f4;
  --carte: #ffffff;
  --texte: #15201a;
  --gris: #5b6a61;
  --bord: #e2e7e3;
  --rouge: #c62828;
  --orange: #e67e00;
  --bleu: #1565c0;
  --rayon: 18px;
  --ombre: 0 1px 2px rgba(0,0,0,.04), 0 6px 24px rgba(0,0,0,.06);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--texte);
  background: var(--fond);
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
body { margin: 0; line-height: 1.55; padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
@media (min-width: 760px) { body { padding-bottom: 0; } }
img { max-width: 100%; display: block; }
a { color: var(--club); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
h2 { font-size: clamp(1.5rem, 4vw, 2rem); }
p { margin: 0 0 .9em; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.section { padding: 48px 0; }
.muted { color: var(--gris); }
.center { text-align: center; }
.hidden { display: none !important; }

/* ---------- En-tête ---------- */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.88); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--bord); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--texte); font-weight: 800; font-size: 1.05rem; }
.brand img { width: 34px; height: 34px; }
.nav-top { display: none; gap: 4px; }
.nav-top a { text-decoration: none; color: var(--texte); padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: .95rem; }
.nav-top a:hover { background: var(--fond); }
.nav-top a.actif { background: var(--club); color: #fff; }
@media (min-width: 760px) { .nav-top { display: flex; } }

/* ---------- Barre du bas (mobile) ---------- */
.nav-bas { position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; display: grid; grid-template-columns: repeat(4, 1fr); background: rgba(255,255,255,.94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--bord); padding-bottom: env(safe-area-inset-bottom); }
.nav-bas a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 9px 0 8px; text-decoration: none; color: var(--gris); font-size: .72rem; font-weight: 600; }
.nav-bas svg { width: 24px; height: 24px; }
.nav-bas a.actif { color: var(--club); }
@media (min-width: 760px) { .nav-bas { display: none; } }

.demo { background: #fff4d6; color: #6b4e00; text-align: center; font-size: .85rem; padding: 6px 12px; }

/* ---------- Hero ---------- */
.hero { background: radial-gradient(1200px 500px at 80% -10%, rgba(242,183,5,.25), transparent 60%), linear-gradient(160deg, var(--club) 0%, var(--club-fonce) 100%); color: #fff; padding: 64px 0 72px; }
.hero h1 { font-size: clamp(2.2rem, 8vw, 4rem); margin-bottom: .3em; }
.hero p { font-size: clamp(1.05rem, 2.6vw, 1.3rem); opacity: .92; max-width: 640px; }
.hero .btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.page-titre { background: linear-gradient(160deg, var(--club), var(--club-fonce)); color: #fff; padding: 40px 0 44px; }
.page-titre h1 { font-size: clamp(1.9rem, 6vw, 2.8rem); margin: 0 0 .2em; }
.page-titre p { margin: 0; opacity: .9; }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--club); color: #fff; border: 0; border-radius: 999px; padding: 12px 22px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; transition: transform .1s, filter .15s; }
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: scale(.97); }
.btn.accent { background: var(--accent); color: #1d1600; }
.btn.blanc { background: #fff; color: var(--club); }
.btn.contour { background: transparent; color: var(--club); box-shadow: inset 0 0 0 2px var(--club); }
.btn.contour-blanc { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.7); }
.btn.petit { padding: 8px 14px; font-size: .9rem; }
.btn.danger { background: var(--rouge); }
.btn[disabled] { opacity: .55; pointer-events: none; }

/* ---------- Cartes ---------- */
.carte { background: var(--carte); border-radius: var(--rayon); box-shadow: var(--ombre); padding: 22px; }
.grille { display: grid; gap: 16px; }
@media (min-width: 760px) { .grille.g2 { grid-template-columns: 1fr 1fr; } .grille.g3 { grid-template-columns: repeat(3, 1fr); } }

.chiffres { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; }
.chiffre { background: var(--carte); border-radius: var(--rayon); box-shadow: var(--ombre); padding: 20px; text-align: center; }
.chiffre b { display: block; font-size: 2.2rem; color: var(--club); line-height: 1.1; }

/* ---------- Événements ---------- */
.events { display: grid; gap: 16px; }
@media (min-width: 760px) { .events { grid-template-columns: 1fr 1fr; } }
.event { background: var(--carte); border-radius: var(--rayon); box-shadow: var(--ombre); overflow: hidden; display: flex; flex-direction: column; }
.event-img { aspect-ratio: 16/8; object-fit: cover; width: 100%; }
.event-in { display: flex; gap: 16px; padding: 20px; }
.event-date { flex: 0 0 62px; height: 66px; border-radius: 14px; background: var(--club); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.event-date span { font-size: 1.6rem; font-weight: 800; }
.event-date small { text-transform: uppercase; font-size: .72rem; font-weight: 700; letter-spacing: .05em; margin-top: 3px; }
.event-body { flex: 1; min-width: 0; }
.event-body h3 { font-size: 1.2rem; margin: 2px 0 4px; }
.meta { color: var(--gris); font-size: .92rem; margin-bottom: 10px; }
.desc { font-size: .97rem; }
.tag { display: inline-block; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; padding: 3px 9px; border-radius: 999px; background: #e9f3ee; color: var(--club); }
.tag-bingo { background: #fff1c7; color: #7a5600; }
.tag-champagne { background: #f6e9ff; color: #6a2c91; }

/* ---------- Communications parents ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; border: 1px solid var(--bord); background: #fff; border-radius: 999px; padding: 8px 14px; font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer; color: var(--texte); }
.chip.actif { background: var(--club); border-color: var(--club); color: #fff; }
.comms { display: grid; gap: 12px; }
.comm { background: var(--carte); border-radius: var(--rayon); box-shadow: var(--ombre); padding: 18px 20px; border-left: 6px solid var(--bleu); }
.comm.annulation { border-left-color: var(--rouge); }
.comm.important { border-left-color: var(--orange); }
.comm h3 { font-size: 1.1rem; margin: 6px 0 6px; }
.comm .haut { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.niv { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; padding: 3px 9px; border-radius: 999px; background: #e3eefb; color: var(--bleu); }
.annulation .niv { background: #fde7e7; color: var(--rouge); }
.important .niv { background: #fff0db; color: #9a5300; }
.cat { font-size: .75rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--fond); color: var(--gris); }
.comm .quand { font-weight: 700; font-size: .95rem; margin-bottom: 6px; }
.comm .pub { font-size: .8rem; color: var(--gris); margin: 6px 0 0; }
.alerte { display: block; background: #fde7e7; color: #8e1b1b; border-radius: 14px; padding: 12px 16px; text-decoration: none; font-weight: 600; margin-top: 18px; }
details.archives summary { cursor: pointer; font-weight: 700; color: var(--gris); padding: 10px 0; }

/* ---------- Formulaires ---------- */
form label, fieldset { display: block; margin: 0 0 14px; font-weight: 600; font-size: .93rem; }
fieldset { border: 0; padding: 0; }
legend { font-weight: 600; font-size: .93rem; margin-bottom: 6px; padding: 0; }
input[type=text], input[type=email], input[type=tel], input[type=url], input[type=number], input[type=date], input[type=datetime-local], input[type=password], select, textarea {
  display: block; width: 100%; margin-top: 6px; font: inherit; font-weight: 400; font-size: 16px; padding: 12px 14px; border: 1px solid var(--bord); border-radius: 12px; background: #fff; color: var(--texte);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--club); outline-offset: 1px; border-color: transparent; }
label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
label.check input { width: 20px; height: 20px; margin: 2px 0 0; flex: 0 0 auto; accent-color: var(--club); }
.aide { display: block; font-weight: 400; color: var(--gris); font-size: .82rem; margin-top: 4px; }
.ligne2 { display: grid; gap: 0 14px; }
@media (min-width: 600px) { .ligne2 { grid-template-columns: 1fr 1fr; } }
.equipe { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 8px; align-items: end; margin-bottom: 10px; }
.equipe select, .equipe input { margin-top: 0; }
.equipe .suppr { background: var(--fond); border: 0; border-radius: 12px; width: 46px; height: 48px; font-size: 1.3rem; cursor: pointer; color: var(--gris); }
.pot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.msg { border-radius: 14px; padding: 14px 16px; margin: 12px 0; font-weight: 600; }
.msg.ok { background: #e6f4ec; color: #0b5130; }
.msg.err { background: #fde7e7; color: #8e1b1b; }
.cats { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-check input { position: absolute; opacity: 0; pointer-events: none; }
.chip-check span { display: inline-block; border: 1px solid var(--bord); border-radius: 999px; padding: 7px 12px; font-weight: 600; font-size: .88rem; cursor: pointer; background: #fff; }
.chip-check input:checked + span { background: var(--club); color: #fff; border-color: var(--club); }

/* ---------- Pied de page ---------- */
footer.pied { background: #0f1a14; color: #c9d3cd; padding: 40px 0 30px; margin-top: 40px; font-size: .93rem; }
footer.pied a { color: #fff; }
footer.pied .grille { gap: 24px; }
footer.pied h4 { color: #fff; margin: 0 0 8px; font-size: 1rem; }
footer.pied .bas { border-top: 1px solid rgba(255,255,255,.1); margin-top: 26px; padding-top: 16px; font-size: .82rem; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }

.vide { text-align: center; color: var(--gris); padding: 30px 10px; background: var(--carte); border-radius: var(--rayon); box-shadow: var(--ombre); }
.chargement { text-align: center; color: var(--gris); padding: 30px; }
.texte-long p { font-size: 1.05rem; }
