/* =========================================================
   ABRACADABOUX — Association de parents d'élèves
   Ton : chaleureux, humain, digne de confiance. Pour des PARENTS.
   Display : Bricolage Grotesque · Corps : Figtree
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,500;12..96,600;12..96,700&family=Figtree:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  --fond:        #faf8f4;
  --carte:       #ffffff;
  --encre:       #223040;
  --encre-doux:  #5d6b7a;
  --petrole:     #2c6274;
  --petrole-fonce:#1f4a58;
  --petrole-clair:#e3edf0;
  --ambre:       #cf862f;
  --ambre-clair: #f6e9d6;
  --sauge:       #6f9d76;
  --sauge-clair: #e6f0e6;
  --bordure:     #ece6dc;

  --rayon:       14px;
  --rayon-sm:    10px;
  --ombre:       0 16px 44px -22px rgba(31, 74, 88, .40);
  --ombre-douce: 0 8px 24px -14px rgba(31, 74, 88, .28);
  --large:       1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Figtree', system-ui, sans-serif;
  color: var(--encre);
  background: var(--fond);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 .5em;
  color: var(--encre);
  letter-spacing: -.015em;
}

a { color: var(--petrole); text-decoration: none; }
a:hover { text-decoration: underline; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--large); margin: 0 auto; padding: 0 24px; }

/* ---------- En-tête / navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(250, 248, 244, .9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--bordure);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 74px; }
.brand {
  display: inline-flex; align-items: center; gap: 11px;
  font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 1.3rem;
  color: var(--encre); text-decoration: none; letter-spacing: -.02em;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px; flex: none;
  background: linear-gradient(150deg, var(--petrole), var(--petrole-fonce));
  display: grid; place-items: center;
  color: #fff; font-weight: 700; font-size: .95rem;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.12);
}
.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-links a {
  padding: 8px 14px; border-radius: 8px; color: var(--encre-doux);
  font-weight: 600; font-size: .96rem;
}
.nav-links a:hover { background: var(--petrole-clair); color: var(--petrole); text-decoration: none; }
.nav-links a.nav-cta { color: var(--petrole); }
.nav-toggle { display: none; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; border-radius: 10px; border: none;
  font-family: 'Bricolage Grotesque', sans-serif; font-weight: 600; font-size: 1rem;
  cursor: pointer; background: var(--petrole); color: #fff;
  box-shadow: 0 8px 18px -10px rgba(44, 98, 116, .8);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; background: var(--petrole-fonce); }
.btn-amber { background: var(--ambre); box-shadow: 0 8px 18px -10px rgba(207, 134, 47, .85); }
.btn-amber:hover { background: #b9741f; }
.btn-outline { background: transparent; color: var(--petrole); box-shadow: none; border: 1.5px solid #cdd9dd; }
.btn-outline:hover { background: var(--petrole-clair); color: var(--petrole-fonce); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Hero (clair, posé) ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(680px 320px at 88% -8%, var(--ambre-clair), transparent 70%),
    radial-gradient(760px 380px at 6% 108%, var(--petrole-clair), transparent 72%),
    var(--fond);
  padding: 92px 0 84px; text-align: center;
}
.hero-eyebrow {
  display: inline-block; font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 600; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--petrole); background: #fff;
  border: 1px solid var(--bordure); padding: 7px 16px; border-radius: 999px; margin-bottom: 24px;
}
.hero h1 {
  font-weight: 700; font-size: clamp(2.6rem, 7vw, 4.4rem);
  margin: 0 0 .3em; max-width: 14ch; margin-inline: auto;
}
.hero h1 em { font-style: normal; color: var(--ambre); }
.hero .lead {
  max-width: 600px; margin: 0 auto 34px;
  font-size: clamp(1.05rem, 2.3vw, 1.25rem); color: var(--encre-doux);
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Chiffres ---------- */
.stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  margin: 44px auto 0; max-width: 820px;
}
.stat {
  background: var(--carte); border: 1px solid var(--bordure); border-radius: var(--rayon);
  padding: 24px 18px; text-align: center; box-shadow: var(--ombre-douce);
}
.stat .num { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 2.15rem; color: var(--petrole); line-height: 1; }
.stat .lbl { font-size: .92rem; color: var(--encre-doux); font-weight: 600; margin-top: 4px; }

/* ---------- Sections ---------- */
.section { padding: 76px 0; }
.section-head { max-width: 640px; margin: 0 auto 46px; text-align: center; }
.eyebrow {
  font-family: 'Bricolage Grotesque', sans-serif; font-weight: 600; font-size: .8rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ambre); margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
.section-head p { color: var(--encre-doux); }
.section-alt { background: #f4efe7; }

/* ---------- Cartes ---------- */
.card { background: var(--carte); border: 1px solid var(--bordure); border-radius: var(--rayon); padding: 28px; box-shadow: var(--ombre-douce); }
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.event-card { display: flex; flex-direction: column; }
.event-date {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  width: 58px; height: 58px; border-radius: 12px;
  background: var(--petrole-clair); color: var(--petrole-fonce); margin-bottom: 18px; flex: none;
  border: 1px solid #d3e1e5;
}
.event-date .d { font-family: 'Bricolage Grotesque'; font-weight: 700; font-size: 1.35rem; line-height: 1; }
.event-date .m { font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.event-card h3 { font-size: 1.22rem; margin-bottom: .3em; }
.event-card p { color: var(--encre-doux); font-size: .98rem; margin-bottom: 1.1em; }
.event-card .tag {
  display: inline-block; font-size: .76rem; font-weight: 700; color: var(--sauge);
  background: var(--sauge-clair); padding: 4px 12px; border-radius: 999px; margin-bottom: 14px; align-self: flex-start;
}

/* Features (qui sommes-nous) */
.feature { text-align: left; }
.feature .ico {
  width: 52px; height: 52px; display: grid; place-items: center; margin: 0 0 18px; border-radius: 12px;
}
.feature .ico svg { width: 26px; height: 26px; }
.ico-petrole { background: var(--petrole-clair); color: var(--petrole); }
.ico-ambre { background: var(--ambre-clair); color: var(--ambre); }
.ico-sauge { background: var(--sauge-clair); color: var(--sauge); }
.feature h3 { font-size: 1.2rem; }
.feature p { color: var(--encre-doux); font-size: .98rem; margin-bottom: 0; }

/* ---------- Encart bénévoles ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--petrole), var(--petrole-fonce));
  border-radius: var(--rayon); padding: 50px 40px; color: #fff; text-align: center; box-shadow: var(--ombre);
}
.cta-band h2 { color: #fff; font-size: clamp(1.7rem, 4vw, 2.25rem); }
.cta-band p { color: rgba(255,255,255,.9); max-width: 540px; margin: 0 auto 26px; }
.cta-band .btn { background: var(--ambre); color: #fff; box-shadow: 0 10px 24px -12px rgba(0,0,0,.4); }
.cta-band .btn:hover { background: #b9741f; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; }
.contact-info { padding: 0; margin: 0; }
.contact-info li { list-style: none; display: flex; gap: 14px; align-items: flex-start; margin: 0 0 20px; }
.contact-info li:last-child { margin-bottom: 0; }
.contact-info .k { flex: none; width: 42px; height: 42px; border-radius: 10px; background: var(--petrole-clair); color: var(--petrole); display: grid; place-items: center; }
.contact-info .k svg { width: 20px; height: 20px; }
.contact-info strong { display: block; }
.contact-info span.v { color: var(--encre-doux); font-size: .96rem; }

/* ---------- Formulaires (partagé avec inscription.php) ---------- */
.form label { display: block; font-weight: 600; margin-bottom: 16px; color: var(--encre); font-size: .96rem; }
.form input, .form textarea, .form select {
  width: 100%; margin-top: 6px; padding: 12px 14px;
  border: 1.5px solid var(--bordure); border-radius: var(--rayon-sm);
  font: inherit; font-weight: 400; color: var(--encre); background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form input:focus, .form textarea:focus, .form select:focus {
  outline: none; border-color: var(--petrole); box-shadow: 0 0 0 4px rgba(44,98,116,.13);
}

/* ---------- Alerte (partagé) ---------- */
.alert { background: #fbeee2; border: 1.5px solid var(--ambre); color: #9c5f1c; padding: 14px 18px; border-radius: var(--rayon-sm); margin-bottom: 22px; font-weight: 600; }
.alert-ok { background: var(--sauge-clair); border-color: var(--sauge); color: #3f6a48; }

/* ---------- Badges & créneaux (partagé avec inscription.php) ---------- */
.badge { display: inline-block; background: var(--sauge-clair); color: #3f6a48; font-weight: 700; font-size: .82rem; padding: 5px 12px; border-radius: 999px; }
.badge.full { background: #f6e2e2; color: #a4453f; }
.empty { color: var(--encre-doux); font-style: italic; }
.stand-list { display: grid; gap: 22px; }
.stand-group { border: 1px solid var(--bordure); border-radius: var(--rayon); padding: 22px; background: #fff; }
.stand-group-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.stand-group-head h4 { margin: 0; font-size: 1.15rem; }
.stand-group-head p { margin: 0; color: var(--encre-doux); font-size: .9rem; }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.slot-card { display: flex; flex-direction: column; gap: 8px; border: 1.5px solid var(--bordure); border-radius: var(--rayon-sm); padding: 14px; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.slot-card:hover { border-color: var(--petrole); background: var(--petrole-clair); }
.slot-card input { accent-color: var(--petrole); }
.slot-time { font-weight: 700; }
.slot-disabled { opacity: .55; cursor: not-allowed; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--petrole-fonce); color: #cADbe0; padding: 50px 0 28px; margin-top: 20px; }
.footer-grid { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; margin-bottom: 30px; }
.site-footer .brand { color: #fff; }
.site-footer .brand-mark { background: rgba(255,255,255,.14); }
.site-footer a { color: #bcd2d8; }
.site-footer a:hover { color: #fff; }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 12px; }
.footer-col a { display: block; margin-bottom: 8px; font-size: .95rem; }
.footer-col p { color: #a7c0c7; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); padding-top: 20px; font-size: .88rem; color: #9fb8bf; text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .grid-3, .grid-2, .contact-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .nav-links { display: none; position: absolute; top: 74px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--fond); border-bottom: 1px solid var(--bordure); padding: 12px 24px; gap: 4px; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: inline-grid; place-items: center; width: 44px; height: 44px; border: none; background: none; font-size: 1.5rem; color: var(--encre); cursor: pointer; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn:hover { transform: none; } }

/* ===================== PAGES INTERNES ===================== */
.page-hero {
  background: radial-gradient(560px 240px at 85% -25%, var(--ambre-clair), transparent 70%), var(--petrole-clair);
  padding: 64px 0 56px; text-align: center; border-bottom: 1px solid var(--bordure);
}
.page-hero .eyebrow { color: var(--petrole); }
.page-hero h1 { font-size: clamp(2.1rem, 5vw, 3rem); margin-bottom: .2em; }
.page-hero p { color: var(--encre-doux); max-width: 620px; margin: 0 auto; }

.prose { max-width: 720px; margin: 0 auto; }
.prose h2 { margin: 1.6em 0 .5em; font-size: 1.5rem; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--encre); }
.prose ul { padding-left: 1.2em; color: var(--encre); }
.prose li { margin-bottom: .4em; }

/* Le bureau */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 20px; }
.member { text-align: center; }
.member .avatar {
  width: 74px; height: 74px; border-radius: 50%; margin: 0 auto 14px;
  display: grid; place-items: center; font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700; font-size: 1.5rem; color: #fff;
  background: linear-gradient(150deg, var(--petrole), var(--petrole-fonce));
}
.member .avatar.a2 { background: linear-gradient(150deg, var(--ambre), #b9741f); }
.member .avatar.a3 { background: linear-gradient(150deg, var(--sauge), #4f7a56); }
.member .avatar.a4 { background: linear-gradient(150deg, #5a6b8c, #3a4763); }
.member h3 { font-size: 1.1rem; margin-bottom: .1em; }
.member .role { color: var(--petrole); font-weight: 600; font-size: .92rem; }
.member p { color: var(--encre-doux); font-size: .92rem; margin: .5em 0 0; }

/* Actualités */
.article-list { display: grid; gap: 26px; max-width: 760px; margin: 0 auto; }
.article { display: grid; grid-template-columns: 128px 1fr; gap: 24px; align-items: start; }
.article .thumb {
  border-radius: 12px; aspect-ratio: 1 / 1; display: grid; place-items: center;
  background: var(--petrole-clair); color: var(--petrole); text-align: center; padding: 10px;
}
.article .thumb.t2 { background: var(--ambre-clair); color: var(--ambre); }
.article .thumb.t3 { background: var(--sauge-clair); color: #4f7a56; }
.article .thumb .dd { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 1.9rem; line-height: 1; }
.article .thumb .mm { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.article-meta { font-size: .8rem; color: var(--ambre); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; }
.article h3 { font-size: 1.3rem; margin-bottom: .3em; }
.article p { color: var(--encre-doux); margin-bottom: 0; }
@media (max-width: 620px) {
  .article { grid-template-columns: 1fr; }
  .article .thumb { max-width: 96px; }
}

/* ===================== PHOTOS ===================== */
/* Hero en deux colonnes (texte + photo) */
.hero { text-align: left; }
.hero-grid { display: grid; grid-template-columns: 1.04fr .96fr; gap: 46px; align-items: center; }
.hero-grid h1 { margin-inline: 0; max-width: none; }
.hero-grid .lead { margin-left: 0; margin-right: 0; }
.hero-actions { justify-content: flex-start; }
.hero .stats { margin-top: 42px; }
@media (max-width: 860px) {
  .hero { text-align: center; }
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-actions { justify-content: center; }
  .hero-grid .lead { margin-inline: auto; }
}

/* Cadre photo générique + repli quand l'image manque */
.photo { position: relative; border-radius: 16px; overflow: hidden; background: var(--petrole-clair); box-shadow: var(--ombre); }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-ph { box-shadow: none; background: linear-gradient(135deg, var(--petrole-clair), var(--ambre-clair)); border: 1.5px dashed #cbb489; display: grid; place-items: center; }
.photo-ph-in { display: inline-flex; flex-direction: column; align-items: center; gap: 8px; color: var(--petrole); font-weight: 600; font-size: .88rem; text-align: center; padding: 12px; }
.photo-ph-in svg { width: 30px; height: 30px; opacity: .75; }
.hero-photo { aspect-ratio: 4 / 3; }

/* Cartes événements avec image en tête */
.event-card { padding: 0; overflow: hidden; }
.event-card .photo { border-radius: 0; box-shadow: none; }
.event-photo { aspect-ratio: 16 / 10; }
.event-date {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  width: auto; min-width: 50px; height: auto; padding: 7px 11px; border-radius: 10px;
  background: rgba(255,255,255,.95); color: var(--petrole-fonce); border: none;
  box-shadow: 0 6px 14px -8px rgba(0,0,0,.45); margin: 0;
}
.event-body { padding: 22px; display: flex; flex-direction: column; }

/* Article avec photo (remplace la vignette datée si une image est fournie) */
.article .photo { aspect-ratio: 1 / 1; border-radius: 12px; box-shadow: none; }

.event-card { position: relative; }

/* ===================== ESPACE ADMIN ===================== */
.admin-bar { background: var(--petrole-fonce); color: #fff; }
.admin-bar .container { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.admin-bar .brand { color: #fff; font-size: 1.1rem; }
.admin-bar .brand-mark { background: rgba(255,255,255,.16); }
.admin-bar a { color: #cfe0e5; font-weight: 600; text-decoration: none; }
.admin-bar a:hover { color: #fff; }
.admin-actions { display: flex; gap: 20px; align-items: center; font-size: .95rem; }
.admin-main { padding: 40px 0 80px; }
.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.admin-head h1 { margin: 0; font-size: 1.8rem; }
.admin-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--bordure); border-radius: var(--rayon); overflow: hidden; box-shadow: var(--ombre-douce); }
.admin-table th, .admin-table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--bordure); font-size: .95rem; vertical-align: middle; }
.admin-table th { background: #f4efe7; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 600; color: var(--encre); }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table .actions { display: flex; gap: 8px; }
.btn-sm { padding: 7px 14px; font-size: .88rem; border-radius: 8px; }
.btn-danger { background: #c0492f; box-shadow: none; }
.btn-danger:hover { background: #a23c26; }
.pill { display: inline-block; font-size: .76rem; font-weight: 700; padding: 4px 11px; border-radius: 999px; }
.pill-on { background: var(--sauge-clair); color: #3f6a48; }
.pill-off { background: #ece4d7; color: #8a7f6d; }
.admin-card { max-width: 620px; }
.login-wrap { max-width: 410px; margin: 70px auto; }
.form .check { display: flex; align-items: center; gap: 10px; font-weight: 600; margin-top: 4px; }
.form .check input { width: auto; margin: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) {
  .field-row { grid-template-columns: 1fr; }
  .admin-table { display: block; overflow-x: auto; }
  .admin-head { flex-direction: column; align-items: flex-start; }
}

/* Champ photo dans l'admin */
.current-photo { display: flex; align-items: center; gap: 12px; margin: 8px 0 10px; font-weight: 400; font-size: .92rem; color: var(--encre-doux); }
.current-photo img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; border: 1px solid var(--bordure); }
.form input[type="file"] { padding: 9px 12px; background: #fbfaf7; cursor: pointer; }
.hint { display: block; margin-top: 6px; font-size: .82rem; font-weight: 400; color: var(--encre-doux); }

/* ===================== FINITIONS & ANIMATIONS ===================== */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
.card { transition: box-shadow .22s ease; }
.feature:hover, .event-card:hover { box-shadow: var(--ombre); }

/* ===================== GALERIE ===================== */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery-item { position: relative; margin: 0; border-radius: 12px; overflow: hidden; box-shadow: var(--ombre-douce); aspect-ratio: 4 / 3; background: var(--petrole-clair); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 10px; background: linear-gradient(transparent, rgba(31,74,88,.82)); color: #fff; font-size: .9rem; font-weight: 600; }
@media (max-width: 760px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .gallery-grid { grid-template-columns: 1fr; } }

/* Nav admin */
.admin-nav { display: flex; gap: 6px; }
.admin-nav a { padding: 7px 13px; border-radius: 8px; color: #cfe0e5; font-weight: 600; font-size: .92rem; }
.admin-nav a:hover, .admin-nav a.on { background: rgba(255,255,255,.12); color: #fff; text-decoration: none; }

/* Réseaux sociaux (footer) */
.social-link { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.12); color: #fff; margin-top: 14px; transition: background .2s ease; }
.social-link:hover { background: rgba(255,255,255,.22); text-decoration: none; }
.social-link svg { width: 20px; height: 20px; }

/* ===================== COUVERTURES ILLUSTRÉES ===================== */
.photo-cover { display: grid; place-items: center; position: relative; overflow: hidden; }
.photo-cover::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.16) 1.5px, transparent 1.7px); background-size: 18px 18px; opacity: .5; }
.photo-cover svg { position: relative; z-index: 1; width: 40%; max-width: 118px; height: auto; color: #fff; opacity: .96; }
.cover-fete   { background: linear-gradient(135deg, #2c6274, #1f4a58); }
.cover-jouets { background: linear-gradient(135deg, #cf862f, #b9741f); }
.cover-noel   { background: linear-gradient(135deg, #6f9d76, #4f7a56); }
.cover-ecole  { background: linear-gradient(135deg, #33235f, #2c6274); }
.cover-photo  { background: linear-gradient(135deg, #2c6274, #6a94a3); }

/* Logo réseau (vrai logo, plus de pastille) */
.social-link { display: inline-block; margin-top: 14px; line-height: 0; background: none; width: auto; height: auto; border-radius: 0; }
.social-link svg { width: 34px; height: 34px; }
.social-link:hover { opacity: .85; }

/* Actualités : contenu + colonne Facebook */
.news-layout { display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: 40px; align-items: start; max-width: 1040px; margin: 0 auto; }
.news-layout .article-list { max-width: none; margin: 0; }
.fb-sidebar { position: sticky; top: 92px; }
.fb-card { background: #fff; border: 1px solid var(--bordure); border-radius: var(--rayon); overflow: hidden; box-shadow: var(--ombre-douce); }
.fb-card-head { display: flex; align-items: center; gap: 10px; padding: 15px 18px; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 600; color: var(--encre); border-bottom: 1px solid var(--bordure); }
.fb-card-head svg { width: 24px; height: 24px; flex: none; }
.fb-embed { min-height: 180px; background: #f4efe7; }
.fb-embed iframe { display: block; width: 100%; border: none; }
.fb-card .btn { border-radius: 0; }
@media (max-width: 860px) { .news-layout { grid-template-columns: 1fr; } .fb-sidebar { position: static; } }

/* Logo de l'association dans l'en-tête */
.brand-logo { height: 52px; width: auto; display: block; }
@media (max-width: 640px) { .brand-logo { height: 42px; } }

/* ===================== ADMINISTRATION (compléments) ===================== */
.admin-nav a.active { color: var(--ambre); }
.admin-nav a.active::after { opacity: 1; }

/* Statistiques */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 4px 0 26px; }
.stat-box { background: var(--carte); border: 1px solid var(--bordure); border-radius: var(--rayon); padding: 18px 20px; box-shadow: var(--ombre-douce); }
.stat-box .n { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 1.9rem; color: var(--petrole); line-height: 1; }
.stat-box .l { color: var(--encre-doux); font-size: .9rem; margin-top: 4px; }
@media (max-width: 720px) { .stat-row { grid-template-columns: repeat(2, 1fr); } }

/* Cartes du tableau de bord */
.dash-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.dash-card { display: block; background: var(--carte); border: 1px solid var(--bordure); border-radius: var(--rayon); padding: 22px; box-shadow: var(--ombre-douce); transition: transform .15s ease, box-shadow .15s ease; color: inherit; }
.dash-card:hover { transform: translateY(-3px); box-shadow: var(--ombre); text-decoration: none; }
.dash-ico { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--petrole-clair); color: var(--petrole); margin-bottom: 12px; }
.dash-ico svg { width: 24px; height: 24px; }
.dash-card h3 { font-size: 1.12rem; margin: 0 0 4px; }
.dash-card p { color: var(--encre-doux); font-size: .92rem; margin: 0; }

/* Encarts d'information */
.notice { padding: 12px 16px; border-radius: 12px; margin: 4px 0 16px; font-size: .95rem; }
.notice-ok { background: var(--sauge-clair); color: #2f6b45; border: 1px solid #bfe0cd; }

/* Badges */
.badge { display: inline-block; padding: 3px 11px; border-radius: 999px; font-size: .78rem; font-weight: 600; }
.badge-on { background: var(--sauge-clair); color: #2f6b45; }
.badge-off { background: #f0ece4; color: #8a7f6d; }

/* Ligne de message non lu */
.admin-table tr.unread td { font-weight: 600; }
.admin-table .msg-preview { color: var(--encre-doux); font-weight: 400; font-size: .9rem; }

/* Affichage d'un compte-rendu */
.cr-view { background: var(--carte); border: 1px solid var(--bordure); border-radius: var(--rayon); padding: 26px 28px; box-shadow: var(--ombre-douce); }
.cr-view h2 { margin-top: 0; }
.cr-view .cr-meta { color: var(--encre-doux); font-size: .95rem; margin-bottom: 18px; }
.cr-view h4 { margin: 20px 0 6px; color: var(--petrole); font-size: 1rem; }
.cr-view .cr-text { white-space: pre-wrap; line-height: 1.6; }

/* Comptes-rendus publics (dépliables) */
.cr-item { background: var(--carte); border: 1px solid var(--bordure); border-radius: var(--rayon); margin-bottom: 12px; box-shadow: var(--ombre-douce); overflow: hidden; }
.cr-item > summary { list-style: none; cursor: pointer; padding: 16px 20px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.cr-item > summary::-webkit-details-marker { display: none; }
.cr-item > summary::before { content: "+"; font-size: 1.3rem; color: var(--ambre); font-weight: 700; width: 18px; }
.cr-item[open] > summary::before { content: "–"; }
.cr-item-date { color: var(--encre-doux); font-size: .9rem; min-width: 130px; }
.cr-item-titre { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 600; flex: 1; }
.cr-item-body { padding: 4px 20px 20px 52px; border-top: 1px solid var(--bordure); }
.cr-item-body h4 { color: var(--petrole); margin: 16px 0 4px; font-size: 1rem; }
.cr-item-body .cr-text { white-space: pre-wrap; line-height: 1.6; color: var(--encre); }

/* Lien de téléchargement PDF (comptes-rendus publics) */
.cr-pdf-link { margin-top: 16px; }
.cr-pdf-link a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--petrole); font-size: .92rem; }
.cr-pdf-link a::before { content: "⬇"; }

/* Message flash d'erreur */
.notice-ko { background: #f6e0e0; color: #b23b3b; border: 1px solid #eec2c2; }

/* Photo de membre du bureau (avatar rond) */
.avatar.avatar-photo { padding: 0; overflow: hidden; }
.avatar.avatar-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }

/* Assistant IA dans l'éditeur */
.ia-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.ia-btn[disabled] { opacity: .55; cursor: progress; }
.ia-status { font-size: .85rem; color: var(--encre-doux); }

/* Infos pratiques (heure/lieu) d'un document public */
.cr-pratique { display:inline-block; background: var(--petrole-clair); color: var(--petrole-fonce); padding: 7px 12px; border-radius: 8px; font-size: .92rem; margin-bottom: 12px; }

/* ============================================================
   ADMINISTRATION — refonte "Espace bureau"
   (tout est scopé sous .admin-body pour ne pas toucher au public)
   ============================================================ */
.admin-body { background: #eef1f0; margin: 0; }
.admin-shell { display: flex; min-height: 100vh; }
.side-toggle-input { display: none; }

/* ---- Barre latérale ---- */
.admin-body .side {
  position: fixed; inset: 0 auto 0 0; width: 250px; z-index: 40;
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, #285a6b 0%, #17394500 100%), linear-gradient(180deg, #285a6b, #163741);
  color: #eaf3f5; padding: 18px 14px;
}
.admin-body .side-logo {
  background: #fff; border-radius: 14px; padding: 14px 16px; text-align: center;
  box-shadow: 0 8px 22px -14px rgba(0,0,0,.5);
}
.admin-body .side-logo img { height: 46px; width: auto; display: inline-block; }
.admin-body .side-caption {
  text-transform: uppercase; letter-spacing: .16em; font-size: .68rem; font-weight: 700;
  color: rgba(255,255,255,.5); text-align: center; margin: 14px 0 10px;
}
.admin-body .side-nav { display: flex; flex-direction: column; gap: 3px; overflow-y: auto; flex: 1; }
.admin-body .side-nav a {
  position: relative; display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; border-radius: 11px; color: rgba(255,255,255,.82);
  font-weight: 500; font-size: .96rem; text-decoration: none; transition: background .15s, color .15s;
}
.admin-body .side-nav a svg { width: 20px; height: 20px; flex: none; opacity: .9; }
.admin-body .side-nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.admin-body .side-nav a.active { background: rgba(255,255,255,.13); color: #fff; }
.admin-body .side-nav a.active::before {
  content: ""; position: absolute; left: 0; top: 9px; bottom: 9px; width: 3px;
  background: var(--ambre); border-radius: 0 3px 3px 0;
}
.admin-body .side-nav a.active::after {
  content: "✦"; margin-left: auto; color: var(--ambre); font-size: .8rem;
  animation: twinkle 2.4s ease-in-out infinite;
}
@keyframes twinkle { 0%,100% { opacity: .35; } 50% { opacity: 1; } }
.admin-body .side-foot { border-top: 1px solid rgba(255,255,255,.12); padding-top: 12px; margin-top: 8px; }
.admin-body .side-user { display: flex; align-items: center; gap: 11px; padding: 8px; border-radius: 11px; text-decoration: none; transition: background .15s; }
.admin-body .side-user:hover { background: rgba(255,255,255,.08); }
.admin-body .side-ava {
  width: 38px; height: 38px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--ambre); color: #3a2410; font-weight: 700; font-family: 'Bricolage Grotesque', sans-serif;
}
.admin-body .side-id { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.admin-body .side-id strong { color: #fff; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-body .side-id small { color: rgba(255,255,255,.55); font-size: .78rem; }
.admin-body .side-logout {
  display: block; text-align: center; margin-top: 8px; padding: 9px; border-radius: 10px;
  color: rgba(255,255,255,.75); font-size: .88rem; text-decoration: none; border: 1px solid rgba(255,255,255,.14);
  transition: background .15s, color .15s;
}
.admin-body .side-logout:hover { background: rgba(255,255,255,.1); color: #fff; }

/* ---- Zone principale ---- */
.admin-body .admin-main-wrap { flex: 1; margin-left: 250px; min-width: 0; display: flex; flex-direction: column; }
.admin-body .topbar {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 14px;
  height: 62px; padding: 0 26px; background: rgba(255,255,255,.85); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--bordure);
}
.admin-body .topbar-title { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 600; font-size: 1.05rem; color: var(--encre); }
.admin-body .topbar-link { margin-left: auto; color: var(--petrole); font-weight: 600; font-size: .9rem; text-decoration: none; }
.admin-body .topbar-link:hover { color: var(--petrole-fonce); }
.admin-body .burger { display: none; }
.admin-body .side-scrim { display: none; }
.admin-body .admin-content { flex: 1; }
.admin-body .content-inner { max-width: 1060px; margin: 0 auto; padding: 30px 26px 60px; }

/* ---- En-tête de page ---- */
.admin-body .admin-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.admin-body .admin-head h1 { font-family: 'Bricolage Grotesque', sans-serif; font-size: 1.7rem; margin: 0; letter-spacing: -.01em; }

/* ---- Statistiques ---- */
.admin-body .stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin: 0 0 26px; }
.admin-body .stat-box {
  position: relative; background: #fff; border: 1px solid var(--bordure); border-radius: 16px;
  padding: 20px 22px; box-shadow: 0 12px 26px -20px rgba(31,74,88,.5); overflow: hidden;
}
.admin-body .stat-box::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--petrole); }
.admin-body .stat-box .n { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 1.85rem; line-height: 1; color: var(--petrole); }
.admin-body .stat-box .l { color: var(--encre-doux); font-size: .88rem; margin-top: 6px; }

/* ---- Cartes du tableau de bord ---- */
.admin-body .dash-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.admin-body .dash-card {
  display: block; background: #fff; border: 1px solid var(--bordure); border-radius: 16px; padding: 24px;
  box-shadow: 0 12px 26px -20px rgba(31,74,88,.5); transition: transform .16s ease, box-shadow .16s ease, border-color .16s; color: inherit;
}
.admin-body .dash-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -24px rgba(31,74,88,.55); border-color: #d8cdbb; text-decoration: none; }
.admin-body .dash-ico { display: inline-grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; background: var(--petrole-clair); color: var(--petrole); margin-bottom: 14px; transition: background .16s, color .16s; }
.admin-body .dash-card:hover .dash-ico { background: var(--petrole); color: #fff; }
.admin-body .dash-ico svg { width: 25px; height: 25px; }
.admin-body .dash-card h3 { font-family: 'Bricolage Grotesque', sans-serif; font-size: 1.14rem; margin: 0 0 4px; }
.admin-body .dash-card p { color: var(--encre-doux); font-size: .92rem; margin: 0; }

/* ---- Cartes & formulaires ---- */
.admin-body .admin-card { background: #fff; border: 1px solid var(--bordure); border-radius: 16px; padding: 24px; box-shadow: 0 12px 26px -20px rgba(31,74,88,.5); }
.admin-body .form label { display: block; font-weight: 600; font-size: .9rem; color: var(--encre); margin-bottom: 12px; }
.admin-body .form input, .admin-body .form select, .admin-body .form textarea {
  width: 100%; box-sizing: border-box; margin-top: 5px; padding: 11px 13px; font-size: 15px;
  border: 1px solid #dcd4c7; border-radius: 11px; background: #fdfcfa; font-family: inherit; color: var(--encre);
  transition: border-color .15s, box-shadow .15s;
}
.admin-body .form input:focus, .admin-body .form select:focus, .admin-body .form textarea:focus {
  outline: none; border-color: var(--petrole); box-shadow: 0 0 0 3px rgba(44,98,116,.14);
}
.admin-body .field-row { display: flex; gap: 16px; flex-wrap: wrap; }
.admin-body .field-row > label { flex: 1; min-width: 180px; }
.admin-body .hint { color: var(--encre-doux); font-weight: 400; font-size: .82rem; }
.admin-body .check { display: flex; align-items: center; gap: 9px; }
.admin-body .check input { width: auto; margin: 0; }

/* ---- Boutons ---- */
.admin-body .btn { border-radius: 11px; font-weight: 600; transition: transform .12s, box-shadow .15s, background .15s; }
.admin-body .btn:hover { transform: translateY(-1px); }
.admin-body .btn-block { display: block; width: 100%; text-align: center; margin-top: 6px; }
.admin-body .btn-sm { padding: 7px 12px; font-size: .85rem; }

/* ---- Tables ---- */
.admin-body .admin-table { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--bordure); border-radius: 16px; overflow: hidden; box-shadow: 0 12px 26px -20px rgba(31,74,88,.5); }
.admin-body .admin-table thead th { background: #f4efe7; text-align: left; font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; color: var(--encre-doux); padding: 13px 16px; border-bottom: 1px solid var(--bordure); }
.admin-body .admin-table td { padding: 13px 16px; border-bottom: 1px solid #f1ece3; vertical-align: middle; }
.admin-body .admin-table tbody tr:last-child td, .admin-body .admin-table tr:last-child td { border-bottom: 0; }
.admin-body .admin-table tr:hover td { background: #faf8f4; }
.admin-body .admin-table .actions { display: flex; gap: 7px; align-items: center; flex-wrap: wrap; }

/* ---- Badges / encarts ---- */
.admin-body .badge { display: inline-block; padding: 4px 11px; border-radius: 999px; font-size: .76rem; font-weight: 700; }
.admin-body .badge-on { background: var(--sauge-clair); color: #2f6b45; }
.admin-body .badge-off { background: #efe9df; color: #8a7f6d; }
.admin-body .notice { padding: 13px 16px; border-radius: 12px; margin: 0 0 18px; font-size: .95rem; }
.admin-body .notice-ok { background: var(--sauge-clair); color: #2f6b45; border: 1px solid #bfe0cd; }
.admin-body .notice-ko, .admin-body .alert { background: #f8e3e3; color: #b23b3b; border: 1px solid #eec2c2; padding: 13px 16px; border-radius: 12px; margin: 0 0 18px; }
.admin-body .empty { text-align: center; color: var(--encre-doux); padding: 40px 20px; background: #fff; border: 1px dashed var(--bordure); border-radius: 16px; }

/* ---- Écran de connexion / installation ---- */
.admin-body.auth { background: linear-gradient(150deg, #285a6b, #163741); min-height: 100vh; }
.admin-body.auth .auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.admin-body.auth .auth-card { width: min(430px, 94vw); background: #fff; border-radius: 22px; padding: 34px 32px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.55); }
.admin-body.auth .auth-logo { text-align: center; margin-bottom: 18px; }
.admin-body.auth .auth-logo img { height: 58px; }
.admin-body.auth .login-wrap { all: unset; display: block; }
.admin-body.auth .admin-card { background: none; border: 0; box-shadow: none; padding: 0; }
.admin-body.auth .form input { background: #fdfcfa; }

/* ---- Responsive : barre latérale repliable ---- */
.admin-body .burger span { display: block; width: 22px; height: 2px; background: var(--encre); border-radius: 2px; }
@media (max-width: 900px) {
  .admin-body .side { transform: translateX(-100%); transition: transform .25s ease; box-shadow: 0 0 60px rgba(0,0,0,.4); }
  .admin-body .admin-main-wrap { margin-left: 0; }
  .admin-body .burger { display: inline-flex; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; }
  .side-toggle-input:checked ~ .side { transform: translateX(0); }
  .side-toggle-input:checked ~ .side-scrim { display: block; position: fixed; inset: 0; background: rgba(15,30,36,.5); z-index: 35; }
  .admin-body .content-inner { padding: 22px 16px 50px; }
}

/* ---- Accessibilité ---- */
.admin-body a:focus-visible, .admin-body button:focus-visible, .admin-body .btn:focus-visible, .admin-body input:focus-visible { outline: 2px solid var(--ambre); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .admin-body * { animation: none !important; transition: none !important; } }

/* Logo de l'association dans le pied de page (étiquette claire) */
.footer-logo { display: inline-block; background: #fff; border-radius: 12px; padding: 11px 14px; box-shadow: 0 10px 24px -16px rgba(0,0,0,.5); }
.footer-logo img { height: 44px; width: auto; display: block; }

/* ===== Organisation des événements ===== */
.admin-body .orga-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.admin-body .orga-card { display: block; background: #fff; border: 1px solid var(--bordure); border-radius: 16px; padding: 20px 22px; box-shadow: 0 12px 26px -20px rgba(31,74,88,.5); transition: transform .16s, box-shadow .16s; color: inherit; }
.admin-body .orga-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -24px rgba(31,74,88,.55); text-decoration: none; }
.admin-body .orga-card-date { color: var(--ambre); font-weight: 700; font-size: .82rem; }
.admin-body .orga-card h3 { font-family: 'Bricolage Grotesque', sans-serif; margin: 4px 0 14px; font-size: 1.18rem; }
.admin-body .progress { height: 8px; background: #eee6d9; border-radius: 99px; overflow: hidden; }
.admin-body .progress-bar { height: 100%; background: linear-gradient(90deg, var(--sauge), var(--petrole)); border-radius: 99px; }
.admin-body .orga-card-meta { display: flex; justify-content: space-between; margin-top: 10px; font-size: .86rem; color: var(--encre-doux); }
.admin-body .orga-card-meta .solde { font-weight: 600; color: var(--petrole); }

.admin-body .orga-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: start; }
@media (max-width: 900px) { .admin-body .orga-grid { grid-template-columns: 1fr; } }
.admin-body .orga-head { display: flex; align-items: center; justify-content: space-between; margin: 0 0 12px; }
.admin-body .orga-head h2 { font-family: 'Bricolage Grotesque', sans-serif; font-size: 1.24rem; margin: 0; }
.admin-body .orga-sum { background: var(--petrole-clair); color: var(--petrole); font-weight: 700; font-size: .82rem; padding: 4px 11px; border-radius: 99px; }
.admin-body .orga-add { margin-bottom: 14px; }
.admin-body .orga-list { display: flex; flex-direction: column; gap: 8px; }
.admin-body .task { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--bordure); border-radius: 12px; padding: 11px 13px; }
.admin-body .task.is-done { opacity: .62; }
.admin-body .task.is-done .task-title { text-decoration: line-through; }
.admin-body .task-check { margin: 0; }
.admin-body .tick { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--petrole); background: #fff; color: #fff; cursor: pointer; display: grid; place-items: center; font-size: .8rem; font-weight: 700; flex: none; transition: background .15s, border-color .15s; }
.admin-body .task.is-done .tick { background: var(--sauge); border-color: var(--sauge); }
.admin-body .task-body { flex: 1; min-width: 0; }
.admin-body .task-title { font-weight: 600; font-size: .96rem; }
.admin-body .task-title .qte { color: var(--encre-doux); font-weight: 400; }
.admin-body .task-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 3px; font-size: .82rem; color: var(--encre-doux); align-items: center; }
.admin-body .ech { font-weight: 700; padding: 2px 9px; border-radius: 99px; }
.admin-body .ech-retard { background: #f8e0e0; color: #b23b3b; }
.admin-body .ech-proche { background: var(--ambre-clair); color: #8a5a1a; }
.admin-body .ech-neutre { background: #eef1f0; color: var(--encre-doux); }
.admin-body .task-del { border: 0; background: none; color: #c9c0b2; font-size: 1.3rem; line-height: 1; cursor: pointer; padding: 0 4px; flex: none; }
.admin-body .task-del:hover { color: #b23b3b; }

/* ============================================================
   REFRESH PUBLIC — lisible, intuitif & ludique (thème magie)
   Scopé hors admin pour ne pas toucher l'espace bureau.
   ============================================================ */
body:not(.admin-body) { --jaune:#f2b705; --vert:#6cbf4b; --bleu:#2e9bd6; --violet:#7a4fb0; --rose:#d84f9c; }

/* ---- Hero plus vivant ---- */
body:not(.admin-body) .hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(60% 55% at 88% 8%, rgba(207,134,47,.14), transparent 70%),
    radial-gradient(50% 50% at 6% 92%, rgba(111,157,118,.16), transparent 70%),
    radial-gradient(45% 45% at 50% 0%, rgba(44,98,116,.08), transparent 70%);
}
body:not(.admin-body) .hero::before,
body:not(.admin-body) .hero::after {
  content: "✦"; position: absolute; color: var(--ambre); opacity: .5;
  animation: twinkle 2.8s ease-in-out infinite; pointer-events: none;
}
body:not(.admin-body) .hero::before { top: 42px; right: 8%; font-size: 26px; color: var(--rose); }
body:not(.admin-body) .hero::after { bottom: 60px; left: 4%; font-size: 20px; color: var(--bleu); animation-delay: .8s; }
body:not(.admin-body) .hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); line-height: 1.06; letter-spacing: -.02em; }
body:not(.admin-body) .hero h1 em {
  font-style: normal; color: var(--petrole-fonce);
  background: linear-gradient(transparent 58%, rgba(207,134,47,.42) 58%);
  padding: 0 .06em; border-radius: 2px;
}
body:not(.admin-body) .hero-eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  background: #fff; color: var(--petrole); border: 1px solid var(--bordure);
  padding: 7px 15px; border-radius: 999px; font-weight: 700; font-size: .82rem;
  box-shadow: 0 8px 20px -14px rgba(31,74,88,.4);
}
body:not(.admin-body) .hero-eyebrow::before { content: "✦"; color: var(--ambre); }
body:not(.admin-body) .lead { font-size: 1.14rem; }

/* ---- Boutons en pastilles, plus joueurs ---- */
body:not(.admin-body) .btn {
  border-radius: 999px; font-weight: 700; padding: 13px 24px;
  transition: transform .15s cubic-bezier(.34,1.56,.64,1), box-shadow .18s, filter .15s;
}
body:not(.admin-body) .btn-amber { box-shadow: 0 12px 24px -12px rgba(207,134,47,.7); }
body:not(.admin-body) .btn:hover { transform: translateY(-2px) scale(1.02); }
body:not(.admin-body) .btn-amber:hover { filter: brightness(1.04); }

/* ---- Statistiques du hero : couleurs qui pétillent ---- */
body:not(.admin-body) .stats .stat .num { font-size: 2.1rem; }
body:not(.admin-body) .stats .stat:nth-child(1) .num { color: var(--ambre); }
body:not(.admin-body) .stats .stat:nth-child(2) .num { color: var(--sauge); }
body:not(.admin-body) .stats .stat:nth-child(3) .num { color: var(--petrole); }

/* ---- Eyebrow de section : petit badge coloré ---- */
body:not(.admin-body) .eyebrow {
  display: inline-block; background: var(--ambre-clair); color: #9a6118;
  padding: 5px 13px; border-radius: 999px; font-weight: 700; letter-spacing: .02em;
}
body:not(.admin-body) .section-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); }

/* ---- Cartes "on anime / on finance / on rassemble" ---- */
body:not(.admin-body) .card.feature { border-radius: 20px; transition: transform .18s ease, box-shadow .18s ease; }
body:not(.admin-body) .card.feature:hover { transform: translateY(-6px); box-shadow: var(--ombre); }
body:not(.admin-body) .card.feature .ico { border-radius: 16px; transition: transform .2s cubic-bezier(.34,1.56,.64,1); }
body:not(.admin-body) .card.feature:hover .ico { transform: rotate(-6deg) scale(1.06); }
body:not(.admin-body) .grid-3 .card.feature:nth-child(1) .ico { background: var(--ambre-clair); color: var(--ambre); }
body:not(.admin-body) .grid-3 .card.feature:nth-child(2) .ico { background: var(--sauge-clair); color: var(--sauge); }
body:not(.admin-body) .grid-3 .card.feature:nth-child(3) .ico { background: var(--petrole-clair); color: var(--petrole); }

/* ---- Cartes d'événements plus gaies ---- */
body:not(.admin-body) .event-card { border-radius: 20px; transition: transform .18s ease, box-shadow .18s ease; }
body:not(.admin-body) .event-card:hover { transform: translateY(-6px); box-shadow: var(--ombre); }
body:not(.admin-body) .event-date { border-radius: 14px; box-shadow: 0 10px 22px -14px rgba(31,74,88,.5); }
body:not(.admin-body) .event-card:nth-child(3n+1) .event-date { background: var(--ambre); color: #fff; }
body:not(.admin-body) .event-card:nth-child(3n+2) .event-date { background: var(--sauge); color: #fff; }
body:not(.admin-body) .event-card:nth-child(3n+3) .event-date { background: var(--petrole); color: #fff; }

/* ---- Bandeau d'appel : plus chaleureux ---- */
body:not(.admin-body) .cta-band { position: relative; overflow: hidden; border-radius: 24px; }
body:not(.admin-body) .cta-band::after {
  content: "✦ ✦ ✦"; position: absolute; top: 14px; right: 22px; letter-spacing: 10px;
  color: rgba(255,255,255,.25); font-size: 18px;
}

/* ---- Titres de pages internes ---- */
body:not(.admin-body) .page-hero h1 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
body:not(.admin-body) .page-hero .eyebrow { margin-bottom: 10px; }

/* ---- Entrées douces au chargement ---- */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
body:not(.admin-body) .hero-grid > div > * { animation: rise .6s ease both; }
body:not(.admin-body) .hero-grid > div > *:nth-child(2) { animation-delay: .08s; }
body:not(.admin-body) .hero-grid > div > *:nth-child(3) { animation-delay: .16s; }
body:not(.admin-body) .hero-grid > div > *:nth-child(4) { animation-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  body:not(.admin-body) .hero::before, body:not(.admin-body) .hero::after { animation: none; }
  body:not(.admin-body) .hero-grid > div > * { animation: none; }
}

/* Documents à télécharger (page publique) */
body:not(.admin-body) .dl-list { display: flex; flex-direction: column; gap: 10px; }
body:not(.admin-body) .dl-item { display: flex; align-items: center; gap: 14px; background: var(--carte); border: 1px solid var(--bordure); border-radius: 14px; padding: 14px 16px; box-shadow: var(--ombre-douce); transition: transform .15s, box-shadow .15s; }
body:not(.admin-body) .dl-item:hover { transform: translateY(-2px); box-shadow: var(--ombre); text-decoration: none; }
body:not(.admin-body) .dl-ext { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 11px; background: var(--petrole-clair); color: var(--petrole); font-weight: 800; font-size: .72rem; }
body:not(.admin-body) .dl-body { flex: 1; display: flex; flex-direction: column; }
body:not(.admin-body) .dl-titre { font-weight: 600; color: var(--encre); }
body:not(.admin-body) .dl-meta { font-size: .84rem; color: var(--encre-doux); }
body:not(.admin-body) .dl-arrow { color: var(--ambre); font-size: 1.2rem; }

/* Tableau de bord de pilotage */
.admin-body .pilot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-bottom: 8px; }
@media (max-width: 900px) { .admin-body .pilot-grid { grid-template-columns: 1fr; } }
.admin-body .pilot-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid #f1ece3; color: inherit; }
.admin-body .pilot-item:last-child { border-bottom: 0; }
.admin-body a.pilot-item:hover { text-decoration: none; }
.admin-body .pilot-title { font-weight: 600; font-size: .95rem; }
.admin-body .pilot-sub { font-size: .82rem; color: var(--encre-doux); }
.admin-body .pilot-date { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; color: var(--petrole); background: var(--petrole-clair); padding: 5px 11px; border-radius: 10px; font-size: .84rem; flex: none; }

/* Filtres de la comptabilité */
.admin-body .compta-filters { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.admin-body .compta-filters label { display: flex; flex-direction: column; font-size: .82rem; font-weight: 600; color: var(--encre-doux); gap: 4px; }

/* Rattachement des pièces */
.admin-body .ratt-row { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--bordure); border-radius: 12px; padding: 12px 14px; margin-bottom: 8px; flex-wrap: wrap; }
.admin-body .ratt-info { flex: 1; min-width: 200px; }
.admin-body .ratt-title { font-weight: 600; font-size: .95rem; }
.admin-body .ratt-meta { font-size: .8rem; color: var(--encre-doux); }
.admin-body .ratt-form { display: flex; gap: 7px; margin: 0; }
.admin-body .ratt-form input { padding: 8px 11px; border: 1px solid #dcd4c7; border-radius: 9px; min-width: 230px; }
.admin-body .ratt-pages { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 16px; }
.admin-body .ratt-pages a { padding: 6px 11px; border-radius: 8px; border: 1px solid var(--bordure); color: var(--petrole); text-decoration: none; font-size: .85rem; }
.admin-body .ratt-pages a.on { background: var(--petrole); color: #fff; border-color: var(--petrole); }

/* Sous-navigation de la comptabilité */
.admin-body .compta-nav { display:flex; gap:2px; flex-wrap:wrap; align-items:flex-end; border-bottom:2px solid var(--bordure); margin:2px 0 22px; }
.admin-body .compta-nav a { padding:9px 16px; font-weight:600; color:var(--encre-doux); border-bottom:2px solid transparent; margin-bottom:-2px; text-decoration:none; font-size:.92rem; }
.admin-body .compta-nav a.on { color:var(--petrole); border-bottom-color:var(--petrole); }
.admin-body .compta-nav a:hover { color:var(--petrole); }
.admin-body .compta-nav .cn-pdf { margin-left:auto; color:var(--ambre); border:1px solid var(--ambre-clair); border-radius:9px; margin-bottom:6px; }
.admin-body .compta-nav .cn-pdf:hover { background:var(--ambre-clair); border-bottom-color:var(--ambre-clair); }

/* Comptes & pointage */
.admin-body .pt-comptes { display:flex; gap:10px; flex-wrap:wrap; margin-bottom:18px; }
.admin-body .pt-compte { display:flex; flex-direction:column; gap:2px; padding:11px 16px; border:1px solid var(--bordure); border-radius:12px; background:#fff; text-decoration:none; min-width:150px; transition:transform .12s; }
.admin-body .pt-compte:hover { transform:translateY(-2px); }
.admin-body .pt-compte.on { border-color:var(--petrole); box-shadow:0 0 0 2px var(--petrole-clair); }
.admin-body .pt-compte-nom { font-size:.82rem; color:var(--encre-doux); font-weight:600; }
.admin-body .pt-compte-solde { font-family:'Bricolage Grotesque',sans-serif; font-weight:700; font-size:1.15rem; color:var(--petrole); }
.admin-body .pt-bandeau { display:flex; gap:12px; flex-wrap:wrap; margin-bottom:6px; }
.admin-body .pt-box { flex:1; min-width:118px; background:#fff; border:1px solid var(--bordure); border-radius:12px; padding:11px 14px; display:flex; flex-direction:column; gap:3px; }
.admin-body .pt-box .l { font-size:.74rem; color:var(--encre-doux); }
.admin-body .pt-box .l small { font-weight:400; }
.admin-body .pt-box .n { font-family:'Bricolage Grotesque',sans-serif; font-weight:700; font-size:1.12rem; }
.admin-body .pt-box.pt-pointe { background:var(--petrole-clair); border-color:var(--petrole); }
.admin-body .pt-box.pt-pointe .n { color:var(--petrole-fonce); }
.admin-body .pt-box.pt-strong .n { color:var(--petrole); }
.admin-body .pt-aide { font-size:.86rem; color:var(--encre-doux); margin:10px 0 16px; line-height:1.5; }
.admin-body .pt-aide a { color:var(--petrole); text-decoration:none; }
.admin-body .pt-aide a.pt-exon { font-weight:700; text-decoration:underline; }
.admin-body .pt-table tr.pt-on { background:var(--sauge-clair); }
.admin-body .pt-check { width:18px; height:18px; cursor:pointer; accent-color:var(--sauge); }

/* ===== Ergonomie comptabilité : actions rapides, légende, lisibilité ===== */
.admin-body .quick-actions { display:grid; grid-template-columns:repeat(auto-fit,minmax(155px,1fr)); gap:12px; margin:0 0 26px; }
.admin-body .qa { display:flex; align-items:center; gap:13px; padding:15px 17px; border-radius:16px; background:#fff; border:1px solid var(--bordure); text-decoration:none; color:var(--encre); font-weight:700; line-height:1.15; box-shadow:var(--ombre-douce); transition:transform .15s cubic-bezier(.34,1.56,.64,1), box-shadow .15s; }
.admin-body .qa:hover { transform:translateY(-3px); box-shadow:var(--ombre); text-decoration:none; }
.admin-body .qa-ico { width:42px; height:42px; border-radius:13px; display:grid; place-items:center; font-size:1.5rem; font-weight:800; flex:none; }
.admin-body .qa-txt { font-size:.92rem; }
.admin-body .qa-dep .qa-ico { background:var(--ambre-clair); color:var(--ambre); }
.admin-body .qa-rec .qa-ico { background:var(--sauge-clair); color:var(--sauge); }
.admin-body .qa-vir .qa-ico { background:var(--petrole-clair); color:var(--petrole); }
.admin-body .qa-pnt .qa-ico { background:#ece5f6; color:#7a4fb0; }
.admin-body .qa-bil .qa-ico { background:#fbe6f0; color:#d84f9c; }

/* Légende des couleurs du journal */
.admin-body .compta-legende { display:flex; gap:14px; align-items:center; font-size:.8rem; color:var(--encre-doux); }
.admin-body .compta-legende .lg { display:inline-flex; align-items:center; gap:6px; }
.admin-body .compta-legende .lg::before { content:""; width:11px; height:11px; border-radius:3px; display:inline-block; }
.admin-body .compta-legende .lg-rec::before { background:var(--sauge); }
.admin-body .compta-legende .lg-dep::before { background:var(--ambre); }
.admin-body .compta-legende .lg-int::before { background:#c9c0b2; }

/* Journal plus lisible */
.admin-body .admin-table tbody tr { transition:background .12s; }
.admin-body .admin-table tbody tr:hover { background:var(--petrole-clair); }
.admin-body .admin-table td { vertical-align:middle; }

/* Filtres : présentation plus claire, alignée */
.admin-body .compta-filters { align-items:flex-end; background:#fff; border:1px solid var(--bordure); border-radius:14px; padding:14px 16px; box-shadow:var(--ombre-douce); }

/* Gestion catégories & projets */
.admin-body .ref-add { display:flex; gap:7px; margin-bottom:14px; }
.admin-body .ref-add input[type=text] { flex:1; padding:9px 11px; border:1px solid #dcd4c7; border-radius:9px; }
.admin-body .ref-list { display:flex; flex-direction:column; gap:6px; }
.admin-body .ref-row { display:flex; align-items:center; gap:6px; }
.admin-body .ref-edit { display:flex; gap:6px; flex:1; margin:0; }
.admin-body .ref-edit input[type=text] { flex:1; padding:8px 10px; border:1px solid var(--bordure); border-radius:9px; background:#fff; }
.admin-body .ref-exo { font-family:'Bricolage Grotesque',sans-serif; font-weight:700; color:var(--petrole); margin:14px 0 6px; font-size:.9rem; }
.admin-body .ref-clos { opacity:.5; }

/* Export & archivage */
.admin-body .exp-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:14px; }
.admin-body .exp-card { display:flex; align-items:center; gap:14px; background:#fff; border:1px solid var(--bordure); border-radius:16px; padding:18px; text-decoration:none; color:var(--encre); box-shadow:var(--ombre-douce); transition:transform .15s, box-shadow .15s; }
.admin-body .exp-card:hover { transform:translateY(-3px); box-shadow:var(--ombre); text-decoration:none; }
.admin-body .exp-ico { width:46px; height:46px; border-radius:13px; display:grid; place-items:center; font-size:1.4rem; font-weight:800; flex:none; }
.admin-body .exp-body { display:flex; flex-direction:column; gap:3px; }
.admin-body .exp-body small { color:var(--encre-doux); font-size:.83rem; line-height:1.35; }

/* Zone de dépôt de facture à la saisie */
.admin-body .pj-drop { display:flex; align-items:center; gap:12px; border:2px dashed #cdd4c7; border-radius:12px; padding:13px 16px; background:var(--petrole-clair); margin-bottom:6px; cursor:pointer; transition:border-color .15s; }
.admin-body .pj-drop:hover { border-color:var(--petrole); }
.admin-body .pj-drop input[type=file] { flex:none; max-width:230px; }
.admin-body .pj-drop-txt { color:var(--encre-doux); font-size:.9rem; }

/* Affiche/flyer d'événement affiché en entier sur fond flou */
.event-photo.has-img { position: relative; overflow: hidden; background: #eef1f0; }
.event-photo.has-img::before { content: ""; position: absolute; inset: 0; background-image: var(--bg); background-size: cover; background-position: center; filter: blur(20px) brightness(.85); transform: scale(1.2); }
.event-photo.has-img img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; }

/* Filigrane "événement passé" (ruban en diagonale) */
.event-card.event-passe { opacity: .9; }
.event-card.event-passe .event-photo img { filter: grayscale(.45); }
.event-card { overflow: hidden; }
/* Tampon "événement passé" bien visible, au centre de l'affiche */
.event-photo.is-passe::after { content: ""; position: absolute; inset: 0; background: rgba(18,24,34,.5); z-index: 2; pointer-events: none; }
.event-photo .event-tampon { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%) rotate(-10deg); z-index: 3; pointer-events: none; color: #fff; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 1.6rem; line-height: 1.05; text-align: center; text-transform: uppercase; letter-spacing: .04em; padding: 14px 26px; border: 4px solid #fff; border-radius: 12px; background: rgba(178,59,59,.82); box-shadow: 0 8px 24px rgba(0,0,0,.4); }
/* Filigrane version admin (badge simple) */
.admin-body .ev-passe-badge { display:inline-block; background:rgba(178,59,59,.12); color:#b23b3b; font-weight:700; font-size:.74rem; padding:2px 9px; border-radius:20px; }


/* Cliquer sur une affiche pour l'agrandir */
.event-photo.has-img img { cursor: zoom-in; }
.lightbox { position: fixed; inset: 0; background: rgba(15,20,25,.92); display: none; align-items: center; justify-content: center; z-index: 9999; cursor: zoom-out; padding: 20px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 96vw; max-height: 92vh; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.55); }
.lightbox .lb-close { position: fixed; top: 18px; right: 24px; color: #fff; font-size: 2rem; font-weight: 700; line-height: 1; cursor: pointer; opacity: .85; }

/* Bloc actualités Facebook */
.fb-section .fb-embed { display: flex; justify-content: center; }
.fb-section .fb-embed iframe { max-width: 100%; border: none; border-radius: 16px; overflow: hidden; box-shadow: var(--ombre-douce); background: #fff; }

/* Horaire d'un événement */
.event-heure { color: var(--petrole) !important; font-weight: 700; font-size: .95rem !important; margin-bottom: .6em !important; }

/* ===== Bénévoles ===== */
.container-narrow { max-width: 780px; }
.alert-ko { background: #fbe6e6; color: #b23b3b; border-color: #f0cccc; }
.alert-ok { background: var(--sauge-clair); color: #3d6b45; }

/* Admin bénévoles */
.admin-body .ben-choix { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px,1fr)); gap: 14px; }
.admin-body .ben-choix-card { display: flex; flex-direction: column; gap: 3px; padding: 16px; background: #fff; border: 1px solid var(--bordure); border-radius: 14px; text-decoration: none; color: var(--encre); box-shadow: var(--ombre-douce); transition: transform .15s; }
.admin-body .ben-choix-card:hover { transform: translateY(-3px); }
.admin-body .ben-choix-card small { color: var(--encre-doux); }
.admin-body .ben-jauge { margin-top: 6px; font-size: .84rem; font-weight: 700; color: var(--petrole); }
.admin-body .ben-bandeau { display: flex; gap: 22px; flex-wrap: wrap; background: #fff; border: 1px solid var(--bordure); border-radius: 14px; padding: 14px 18px; margin-bottom: 14px; }
.admin-body .ben-bandeau strong { font-family: 'Bricolage Grotesque', sans-serif; font-size: 1.3rem; }
.admin-body .ben-bandeau .ben-manque strong { color: #b23b3b; }
.admin-body .ben-lien { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--petrole-clair); border-radius: 12px; padding: 12px 16px; margin-bottom: 20px; font-size: .9rem; }
.admin-body .ben-lien input { flex: 1; min-width: 220px; padding: 8px 11px; border: 1px solid var(--bordure); border-radius: 8px; background: #fff; }
.admin-body .ben-poste { padding: 16px 18px; }
.admin-body .ben-poste-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.admin-body .ben-poste-head h3 { font-size: 1.15rem; }
.admin-body .ben-h { font-size: .85rem; font-weight: 600; color: var(--petrole); }
.admin-body .ben-places { font-size: .84rem; font-weight: 700; color: var(--sauge); }
.admin-body .ben-places.ben-complet { color: var(--encre-doux); }
.admin-body .ben-poste-form { display: flex; flex-direction: column; gap: 7px; margin-top: 10px; padding: 12px; background: var(--fond); border-radius: 10px; }
.admin-body .ben-poste-form input { padding: 8px 10px; border: 1px solid var(--bordure); border-radius: 8px; }
.admin-body .ben-inscrits { margin: 12px 0; display: flex; flex-direction: column; gap: 5px; }
.admin-body .ben-inscrit { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 11px; background: var(--fond); border-radius: 8px; font-size: .92rem; }
.admin-body .ben-add-insc { display: flex; gap: 7px; flex-wrap: wrap; }
.admin-body .ben-add-insc input { flex: 1; min-width: 120px; padding: 8px 10px; border: 1px solid var(--bordure); border-radius: 8px; }

/* Public bénévoles */
.ben-pub-list { display: grid; gap: 12px; }
.ben-pub-ev { display: flex; flex-direction: column; gap: 3px; padding: 16px 18px; background: #fff; border: 1px solid var(--bordure); border-radius: 14px; text-decoration: none; color: var(--encre); box-shadow: var(--ombre-douce); }
.ben-pub-ev:hover { border-color: var(--petrole); }
.ben-pub-ev small { color: var(--encre-doux); }
.ben-pub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 16px; }
.ben-pub-card { padding: 20px; }
.ben-pub-card h3 { font-size: 1.2rem; margin-bottom: .2em; }
.ben-pub-h { color: var(--petrole); font-weight: 700; margin-bottom: .4em; }
.ben-pub-places { font-weight: 700; color: var(--sauge); margin: .6em 0; }
.ben-pub-places.ben-complet { color: var(--encre-doux); }
.ben-pub-form { margin-top: 10px; gap: 8px; }

/* Créneaux bénévoles (cases à cocher) */
.ben-creneaux { display: flex; flex-wrap: wrap; gap: 8px; }
.ben-creneau { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border: 1px solid var(--bordure); border-radius: 10px; background: #fff; cursor: pointer; font-size: .9rem; transition: border-color .12s; }
.ben-creneau:hover { border-color: var(--petrole); }
.ben-creneau input { margin: 0; }
.ben-creneau span { font-weight: 600; }
.ben-creneau small { color: var(--sauge); }
.ben-creneau-off { opacity: .5; cursor: not-allowed; background: var(--fond); }
.ben-creneau-off:hover { border-color: var(--bordure); }
.ben-creneau-off small { color: var(--encre-doux); }
/* Admin : créneaux d'un poste */
.admin-body .ben-creneaux-admin { margin: 12px 0; display: flex; flex-direction: column; gap: 4px; }
.admin-body .ben-cr-row { display: flex; gap: 12px; align-items: flex-start; padding: 7px 0; border-bottom: 1px dashed var(--bordure); }
.admin-body .ben-cr-h { min-width: 130px; font-weight: 700; color: var(--petrole); font-size: .9rem; }
.admin-body .ben-cr-h small { color: var(--sauge); font-weight: 600; }
.admin-body .ben-cr-h small.ben-complet { color: var(--encre-doux); }
.admin-body .ben-cr-inscrits { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; }
.admin-body .ben-cr-tag { display: inline-flex; align-items: center; gap: 4px; background: var(--sauge-clair); color: #3d6b45; padding: 3px 9px; border-radius: 20px; font-size: .85rem; }
.admin-body .ben-cr-x { background: none; border: none; color: #b23b3b; cursor: pointer; font-weight: 700; padding: 0 2px; font-size: 1rem; line-height: 1; }
.admin-body .ben-add-wrap { margin-top: 8px; }

/* ===== Espace bénévole (public) ===== */
.eb-login { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; justify-content: center; margin-bottom: 24px; }
.eb-login label { flex: 1; min-width: 240px; }
.eb-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 22px; }
.eb-stat { background: #fff; border: 1px solid var(--bordure); border-radius: 16px; padding: 18px; text-align: center; box-shadow: var(--ombre-douce); }
.eb-n { display: block; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 2rem; color: var(--petrole); line-height: 1; }
.eb-l { display: block; margin-top: 4px; font-size: .82rem; color: var(--encre-doux); }
.eb-challenge { background: linear-gradient(135deg, var(--petrole-clair), var(--ambre-clair)); border-radius: 18px; padding: 22px; text-align: center; }
.eb-challenge h3 { font-size: 1.3rem; margin-bottom: .3em; }
.eb-bar { height: 16px; background: #fff; border-radius: 20px; overflow: hidden; margin: 12px 0 6px; box-shadow: inset 0 1px 3px rgba(0,0,0,.1); }
.eb-bar-fill { height: 100%; background: linear-gradient(90deg, var(--sauge), var(--petrole)); border-radius: 20px; transition: width .6s ease; }
.eb-bar-txt { font-weight: 700; color: var(--petrole-fonce); margin: 0; }
.eb-prochains { display: grid; gap: 10px; }
.eb-creneau-card { display: flex; flex-direction: column; gap: 2px; background: #fff; border: 1px solid var(--bordure); border-radius: 12px; padding: 12px 16px; }
.eb-creneau-card small { color: var(--encre-doux); }
.eb-podium { background: #fff; border: 1px solid var(--bordure); border-radius: 16px; overflow: hidden; }
.eb-podium-row { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--bordure); }
.eb-podium-row:last-child { border-bottom: none; }
.eb-rank { font-size: 1.2rem; min-width: 34px; text-align: center; font-weight: 700; }
.eb-podium-row span:nth-child(2) { flex: 1; font-weight: 600; }
.eb-hours { font-weight: 700; color: var(--petrole); }

/* Bouton "Espace bénévole" (menu public) */
.nav-links .nav-benevole { display: inline-flex; align-items: center; gap: 6px; color: var(--petrole); border: 1.5px solid var(--petrole); padding: 6px 14px; border-radius: 999px; font-weight: 600; transition: background .16s, color .16s; }
.nav-links .nav-benevole:hover { background: var(--petrole); color: #fff; }

/* Espace bénévole : onglets connexion/inscription */
.eb-tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--bordure); margin-bottom: 20px; justify-content: center; }
.eb-tabs a { padding: 10px 22px; font-weight: 700; color: var(--encre-doux); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -2px; }
.eb-tabs a.on { color: var(--petrole); border-bottom-color: var(--petrole); }
.eb-auth { max-width: 420px; margin: 0 auto; }

/* ===== Panier bénévole ===== */
.ben-cart-creneaux { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.ben-add-cart { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--bordure); border-radius: 10px; background: #fff; cursor: pointer; font-size: .9rem; font-weight: 600; transition: border-color .12s, background .12s; }
.ben-add-cart:hover { border-color: var(--petrole); }
.ben-add-cart .cart-when { font-weight: 700; }
.ben-add-cart .cart-pl { color: var(--sauge); font-weight: 600; font-size: .8rem; }
.ben-add-cart .cart-plus { background: var(--petrole); color: #fff; width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 1rem; line-height: 1; }
.ben-add-cart.added { background: var(--sauge-clair); border-color: var(--sauge); }
.ben-add-cart.added .cart-plus { background: var(--sauge); font-size: 0; }
.ben-add-cart.added .cart-plus::before { content: "✓"; font-size: .85rem; }
.ben-add-off { opacity: .5; cursor: not-allowed; }
.ben-add-off .cart-pl { color: var(--encre-doux); }

.ben-panier { position: fixed; left: 50%; transform: translateX(-50%); bottom: 16px; width: min(500px, 92vw); background: #fff; border: 1px solid var(--bordure); border-radius: 16px; box-shadow: 0 12px 40px rgba(0,0,0,.22); z-index: 500; overflow: hidden; }
.ben-panier-head { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; background: var(--petrole); color: #fff; border: none; cursor: pointer; font-size: 1rem; font-weight: 700; }
.ben-panier-chev { transition: transform .2s; }
.ben-panier.open .ben-panier-chev { transform: rotate(180deg); }
.ben-panier-body { max-height: 0; overflow: hidden; transition: max-height .3s ease; padding: 0 18px; }
.ben-panier.open .ben-panier-body { max-height: 72vh; overflow: auto; padding: 16px 18px; }
.ben-panier-list { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.ben-panier-list li { background: var(--sauge-clair); color: #3d6b45; padding: 6px 12px; border-radius: 8px; font-size: .9rem; font-weight: 600; }

/* Hero événement sur la page bénévoles */
.ben-ev-hero { display: flex; gap: 20px; align-items: center; background: #fff; border: 1px solid var(--bordure); border-radius: 18px; padding: 16px; margin-bottom: 22px; box-shadow: var(--ombre-douce); }
.ben-ev-photo { position: relative; overflow: hidden; border-radius: 12px; width: 200px; min-width: 200px; aspect-ratio: 16/11; background: #eef1f0; }
.ben-ev-photo::before { content: ""; position: absolute; inset: 0; background-image: var(--bg); background-size: cover; background-position: center; filter: blur(18px) brightness(.85); transform: scale(1.2); }
.ben-ev-photo img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; }
.ben-ev-info h2 { margin: .1em 0; }
.ben-ev-meta { font-weight: 700; color: var(--petrole); margin: .2em 0 .5em; }
@media (max-width: 560px){ .ben-ev-hero { flex-direction: column; text-align: center; } .ben-ev-photo { width: 100%; } }
/* Panier : pastille animée + espace bas pour ne rien cacher */
#ben-panier-count.pulse { animation: benPulse .4s ease; display: inline-block; }
@keyframes benPulse { 0%{transform:scale(1)} 40%{transform:scale(1.4)} 100%{transform:scale(1)} }
.ben-pub-grid { padding-bottom: 84px; }

/* Panier : choix "pour moi / invité" */
.ben-pour { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 10px; padding: 10px 12px; background: var(--fond); border-radius: 10px; }
.ben-pour label { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; cursor: pointer; }

/* Titres de section dans la barre latérale admin */
.admin-body .side-group { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: rgba(255,255,255,.5); padding: 16px 16px 5px; margin-top: 4px; }
.admin-body .side-nav > a:first-child { margin-bottom: 2px; }

/* Espace bénévole : stats à 2 colonnes (sans classement) */
.eb-stats.eb-stats-2 { grid-template-columns: repeat(2, 1fr); }

/* Paliers de récompenses (espace bénévole) */
.eb-palier-list { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.eb-palier { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--bordure); border-radius: 12px; padding: 12px 16px; opacity: .62; }
.eb-palier.ok { opacity: 1; border-color: var(--sauge); background: var(--sauge-clair); }
.eb-palier-ico { flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; background: #e7e2d8; color: var(--encre-doux); }
.eb-palier.ok .eb-palier-ico { background: var(--sauge); color: #fff; font-size: 1.2rem; }
.eb-palier-txt { flex: 1; }
.eb-palier-txt strong { display: block; }
.eb-palier-txt small { color: var(--encre-doux); }
.eb-palier.ok .eb-palier-txt small { color: #3d6b45; }
.eb-palier-badge { background: var(--sauge); color: #fff; font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 20px; }

/* Bannière de réengagement de rentrée */
.eb-reengage { background: linear-gradient(135deg, var(--ambre-clair), var(--sauge-clair)); border-radius: 16px; padding: 20px; text-align: center; margin-bottom: 20px; }
.eb-reengage h3 { font-size: 1.25rem; margin-bottom: .2em; }
.eb-reengage p { margin-bottom: 14px; }
.eb-reengage-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* Récap récompenses (suivi admin) */
.admin-body .ben-reco-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
.admin-body .ben-reco-card { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--bordure); border-radius: 14px; padding: 14px 16px; box-shadow: var(--ombre-douce); }
.admin-body .ben-reco-emo { font-size: 1.8rem; }
.admin-body .ben-reco-card strong { font-family: 'Bricolage Grotesque', sans-serif; font-size: 1.5rem; display: block; }
.admin-body .ben-reco-card small { color: var(--encre-doux); font-size: .78rem; }
@media (max-width: 640px){ .admin-body .ben-reco-cards { grid-template-columns: 1fr; } }

/* Pointage des récompenses */
.admin-body .reco-sec-head h3 { display: flex; align-items: center; gap: 10px; }
.admin-body .reco-count { font-size: .78rem; font-weight: 700; color: var(--petrole); background: var(--petrole-clair); padding: 2px 10px; border-radius: 20px; }
.admin-body .reco-check { width: 20px; height: 20px; cursor: pointer; }
.admin-body .reco-row.reco-done { background: var(--sauge-clair); }
.admin-body .reco-row.reco-done strong { color: #3d6b45; }

/* ===== Planning bénévoles ===== */
.admin-body .plan-doc { background: #fff; border: 1px solid var(--bordure); border-radius: 14px; padding: 24px 28px; }
.admin-body .plan-titre { border-bottom: 2px solid var(--petrole); padding-bottom: 12px; margin-bottom: 18px; }
.admin-body .plan-titre h2 { font-size: 1.6rem; margin: 0; }
.admin-body .plan-titre p { color: var(--encre-doux); margin: 4px 0 0; text-transform: capitalize; }
.admin-body .plan-h { color: var(--petrole); font-size: 1.1rem; margin: 22px 0 10px; border-bottom: 1px solid var(--bordure); padding-bottom: 5px; }
.admin-body .plan-poste { margin-bottom: 14px; break-inside: avoid; }
.admin-body .plan-poste h4 { font-size: 1.05rem; margin: 0 0 4px; }
.admin-body .plan-h-horaire { font-weight: 600; color: var(--encre-doux); font-size: .9rem; }
.admin-body .plan-table { width: 100%; border-collapse: collapse; }
.admin-body .plan-table td, .admin-body .plan-table th { padding: 6px 10px; border-bottom: 1px solid var(--bordure); text-align: left; vertical-align: top; }
.admin-body .plan-table th { font-size: .82rem; color: var(--encre-doux); }
.admin-body .plan-creneau { font-weight: 700; color: var(--petrole); white-space: nowrap; width: 130px; }
.admin-body .plan-vide { color: var(--encre-doux); font-style: italic; }
.admin-body .plan-annuaire { margin-top: 8px; }

@media print {
  .admin-body .side, .admin-body .no-print, .side-toggle-input, .admin-body .side-caption, label[for="side-toggle"] { display: none !important; }
  .admin-body, body { background: #fff !important; }
  .admin-shell { display: block !important; }
  .admin-body .plan-doc { border: none !important; border-radius: 0 !important; padding: 0 !important; }
  .admin-body .plan-h, .admin-body .plan-titre { color: #000 !important; }
  @page { margin: 1.4cm; }
}

/* Inscription réservée aux comptes */
.ben-cta-login { text-align: center; background: var(--petrole-clair); border: 1px solid var(--petrole); border-radius: 14px; padding: 20px; margin-bottom: 20px; }
.ben-cta-login p { margin-bottom: 12px; }
.ben-add-cart.ben-add-ro { cursor: default; background: var(--fond); }

/* Recherche de personne (assignation de tâche) */
.admin-body .resp-field { position: relative; }
.admin-body .resp-dd { position: absolute; top: 100%; left: 0; right: 0; z-index: 30; background: #fff; border: 1px solid var(--bordure); border-radius: 10px; box-shadow: var(--ombre); max-height: 260px; overflow: auto; margin-top: 3px; }
.admin-body .resp-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 12px; cursor: pointer; }
.admin-body .resp-item:hover { background: var(--petrole-clair); }
.admin-body .resp-item small { color: var(--encre-doux); }
.admin-body .resp-tag { font-size: .68rem; font-weight: 700; padding: 2px 9px; border-radius: 20px; background: var(--sauge-clair); color: #3d6b45; white-space: nowrap; }
.admin-body .resp-tag.t-bureau { background: var(--petrole-clair); color: var(--petrole-fonce); }
.admin-body .resp-empty { padding: 10px 12px; color: var(--encre-doux); font-size: .88rem; }

/* Question + carte WhatsApp (espace bénévole) */
.ben-wa-q { background: var(--fond); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.ben-wa-q > span { font-weight: 600; }
.ben-wa-q label { display: inline-flex; align-items: center; gap: 7px; font-weight: 500; cursor: pointer; }
.ben-wa-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: #e7f6ec; border: 1px solid #b6e2c4; border-radius: 14px; padding: 16px 18px; margin-bottom: 18px; }
.ben-wa-card small { color: var(--encre-doux); }
.ben-wa-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Boutons-pilules de sélection (remplacent les radios) */
.choice-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.choice-pills input { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.choice-pills label { flex: 1; min-width: 150px; text-align: center; padding: 11px 16px; border: 1.5px solid var(--bordure); border-radius: 12px; cursor: pointer; font-weight: 600; color: var(--encre); background: #fff; transition: background .15s, color .15s, border-color .15s; }
.choice-pills label:hover { border-color: var(--petrole); }
.choice-pills input:checked + label { background: var(--petrole); color: #fff; border-color: var(--petrole); }

/* Descriptions des rôles */
.admin-body .roles-desc { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: 12px; margin-top: 12px; }
.admin-body .role-desc-item { background: var(--fond); border-radius: 10px; padding: 12px 14px; }
.admin-body .role-desc-item strong { color: var(--petrole); }
.admin-body .role-desc-item p { margin: 4px 0 6px; font-size: .9rem; }
.admin-body .role-desc-item small { color: var(--encre-doux); font-size: .8rem; }

/* Édition des permissions par rôle */
.admin-body .role-card { margin-bottom: 16px; }
.admin-body .role-card-head h3 { display: flex; align-items: center; gap: 8px; }
.admin-body .role-perms-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); gap: 8px; margin-top: 12px; }
.admin-body .role-perm { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border: 1.5px solid var(--bordure); border-radius: 10px; cursor: pointer; font-weight: 600; font-size: .9rem; transition: background .12s, border-color .12s; }
.admin-body .role-perm:hover { border-color: var(--petrole); }
.admin-body .role-perm.on { background: var(--sauge-clair); border-color: var(--sauge); color: #3d6b45; }
.admin-body .role-perm input { width: 17px; height: 17px; cursor: pointer; }

/* Responsable des courses */
.admin-body .courses-resp { margin-bottom: 16px; }
.admin-body .courses-resp .resp-field { margin-bottom: 10px; }

/* Badge de notification (messages non lus) dans le menu admin */
.admin-body .side-nav a { position: relative; }
.admin-body .nav-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: auto; background: var(--ambre); color: #fff; font-size: .72rem; font-weight: 800; border-radius: 999px; }

/* Diagnostic / état du site */
.admin-body .diag-summary { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.admin-body .diag-card { margin-bottom: 14px; }
.admin-body .diag-table { width: 100%; border-collapse: collapse; }
.admin-body .diag-table td { padding: 8px 10px; border-bottom: 1px solid var(--bordure); vertical-align: top; }
.admin-body .diag-ico { width: 34px; text-align: center; }
.admin-body .diag-detail { color: var(--encre-doux); font-size: .88rem; }
.admin-body .diag-err + td strong, .admin-body tr:has(.diag-err) strong { color: #b23b3b; }

/* ===== Éditeur de texte riche ===== */
.rich-wrap { border: 1px solid var(--bordure); border-radius: 10px; overflow: hidden; background: #fff; }
.rich-tb { display: flex; flex-wrap: wrap; gap: 3px; padding: 6px; background: var(--fond); border-bottom: 1px solid var(--bordure); }
.rich-btn { border: 1px solid transparent; background: #fff; border-radius: 6px; padding: 5px 11px; cursor: pointer; font-size: .92rem; line-height: 1; }
.rich-btn:hover { border-color: var(--bordure); background: var(--petrole-clair); }
.rich-ed { min-height: 180px; padding: 12px 14px; outline: none; line-height: 1.6; }
.rich-ed:focus { background: #fffdf9; }
.rich-ed h3 { margin: .6em 0 .3em; font-size: 1.15rem; }
.rich-ed ul, .rich-ed ol { margin: .4em 0 .4em 1.4em; }
.rich-ed a { color: var(--petrole); }

/* Barre d'assistance IA */
.admin-body .ia-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 4px 0 8px; }
.admin-body .ia-status { color: var(--encre-doux); font-size: .88rem; }
.admin-body .check-inline { display: flex; align-items: center; gap: 8px; }

/* Corps d'article riche (site public) */
.article-corps { line-height: 1.6; }
.article-corps p { margin: 0 0 .6em; }
.article-corps p:last-child { margin-bottom: 0; }
.article-corps ul, .article-corps ol { margin: .4em 0 .6em 1.3em; }
.article-corps a { color: var(--petrole); }

/* Emailing */
.admin-body .mail-cibles { display: flex; gap: 10px; flex-wrap: wrap; margin: 8px 0 4px; }
.admin-body .mail-cible { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1.5px solid var(--bordure); border-radius: 12px; cursor: pointer; font-weight: 600; }
.admin-body .mail-cible:hover { border-color: var(--petrole); }
.admin-body .mail-nb { background: var(--petrole-clair); color: var(--petrole-fonce); font-size: .78rem; font-weight: 800; padding: 1px 9px; border-radius: 999px; }

/* Bouton Code HTML actif */
.rich-code-btn { margin-left: auto; font-family: monospace; }
.rich-btn.on { background: var(--petrole); color: #fff; }

/* Emailing — envoi */
.admin-body .mail-send { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.admin-body .mail-test { display: flex; gap: 6px; align-items: center; }
.admin-body .mail-test input { width: 220px; }

/* Graphiques comptables */
.admin-body .graph-2col { display: grid; grid-template-columns: 1fr; gap: 16px; }
.admin-body .pie-row { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; justify-content: center; }
.admin-body .pie-legend { flex: 1; min-width: 220px; }
.admin-body .pie-li { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 1rem; }
.admin-body .pie-dot { width: 12px; height: 12px; border-radius: 3px; flex-shrink: 0; display: inline-block; }
.admin-body .pie-lbl { flex: 1; }
.admin-body .pie-val { color: var(--encre-doux); font-size: .82rem; white-space: nowrap; }
.admin-body .bar-legend { display: flex; gap: 18px; justify-content: center; margin-top: 8px; font-size: .85rem; color: var(--encre-doux); }
.admin-body .bar-legend span { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 760px) { .admin-body .graph-2col { grid-template-columns: 1fr; } }

/* Bouton "+" ajout de tiers */
.admin-body .tiers-add-wrap { display: flex; gap: 6px; align-items: stretch; }
.admin-body .tiers-add-wrap input { flex: 1; }
.admin-body .tiers-add-btn { flex-shrink: 0; width: 38px; border: 1px solid var(--petrole); background: var(--petrole); color: #fff; border-radius: 8px; font-size: 1.2rem; font-weight: 700; cursor: pointer; line-height: 1; }
.admin-body .tiers-add-btn:hover { background: var(--petrole-fonce); }

/* Journal comptable — lisibilité */
.admin-body .ecr-interne { background: #f2f6f8; }
.admin-body .ecr-vir { color: var(--petrole); font-weight: 700; font-size: .9rem; }
.admin-body .ecr-sens { color: var(--petrole-fonce); font-weight: 600; }
.admin-body .ecr-note { color: var(--encre-doux); font-style: italic; }

/* Détail par compte (synthèse) */
.admin-body .cpt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 14px; margin-bottom: 22px; }
.admin-body .cpt-card { padding: 14px 16px; }
.admin-body .cpt-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 2px solid var(--bordure); padding-bottom: 8px; margin-bottom: 6px; }
.admin-body .cpt-nom { font-weight: 700; color: var(--encre); }
.admin-body .cpt-solde { font-weight: 700; font-size: 1.1rem; }
.admin-body .cpt-ops { width: 100%; border-collapse: collapse; font-size: .85rem; }
.admin-body .cpt-ops td { padding: 5px 0; border-bottom: 1px solid var(--bordure); vertical-align: top; }
.admin-body .cpt-ops tr:last-child td { border-bottom: none; }
.admin-body .cpt-date { color: var(--encre-doux); white-space: nowrap; width: 42px; }
.admin-body .cpt-lib { padding: 5px 8px; line-height: 1.3; }
.admin-body .cpt-lib small { color: var(--encre-doux); }
.admin-body .cpt-mont { text-align: right; white-space: nowrap; font-weight: 600; }
.admin-body .cpt-link { display: inline-block; margin-top: 10px; font-size: .85rem; color: var(--petrole); font-weight: 600; text-decoration: none; }
.admin-body .cpt-link:hover { text-decoration: underline; }

/* ===== Mobile : tableaux admin en cartes lisibles ===== */
@media (max-width: 640px) {
  .admin-body .admin-table { border: none; }
  .admin-body .admin-table thead { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); }
  .admin-body .admin-table, .admin-body .admin-table tbody { display: block; width: 100%; }
  .admin-body .admin-table tr { display: block; margin-bottom: 12px; border: 1px solid var(--bordure); border-radius: 12px; padding: 8px 14px; background: #fff; box-shadow: 0 1px 3px rgba(34,48,64,.05); }
  .admin-body .admin-table td { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 6px 0; border: none; border-bottom: 1px solid var(--bordure); text-align: right; }
  .admin-body .admin-table td:last-child { border-bottom: none; }
  .admin-body .admin-table td::before { content: attr(data-label); font-weight: 600; color: var(--encre-doux); text-align: left; white-space: nowrap; }
  .admin-body .admin-table td:empty { display: none; }
  .admin-body .admin-table td.td-titre, .admin-body .admin-table td.cpt-lib { font-weight: 700; font-size: 1.02rem; }
  .admin-body .admin-table td.td-titre::before { content: ''; }
  .admin-body .admin-table td.actions { flex-wrap: wrap; justify-content: flex-start; gap: 8px; padding-top: 10px; border-bottom: none; }
  .admin-body .admin-table td.actions::before { content: ''; display: none; }
  .admin-body .admin-table td.actions .btn { flex: 1; min-width: 90px; text-align: center; }
  /* Journal compta : garde les colonnes clés lisibles */
  .admin-body .admin-table td.cpt-mont::before { content: ''; }
}

/* Centre d'alertes (tableau de bord) */
.admin-body .dash-alerts { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 4px; }
.admin-body .dash-alert { display: inline-flex; align-items: center; gap: 8px; background: #fff7ec; border: 1px solid #f0dcb8; color: var(--encre); font-weight: 600; font-size: .88rem; padding: 8px 14px; border-radius: 10px; text-decoration: none; transition: transform .1s; }
.admin-body .dash-alert:hover { transform: translateY(-1px); border-color: var(--ambre); }
.admin-body .dash-alert-ico { font-size: 1rem; }
