/* CPMLJ — charte reprise de cpmlj.fr : logo doré et vert, vert #32C69A, Playfair Display + Open Sans */
:root {
  --green: #32c69a;
  --green-dark: #1f8a6b;      /* texte vert lisible sur blanc */
  --green-deep: #17594a;      /* pied de page, barre de l'espace */
  --gold: #c9964f;            /* doré du logo */
  --gold-soft: #f6efe3;
  --ink: #333a38;
  --muted: #6b7471;
  --line: #e3e8e6;
  --paper: #ffffff;
  --tint: #f7f7f7;
  --surface: #ffffff;
  --ok: #1f7a4f;
  --warn: #8a5a00;
  --error: #b3261e;
  --focus: #1f8a6b;
  --radius: 10px;
  --display: "Playfair Display", Georgia, "Times New Roman", serif;
  --body: "Open Sans", "Segoe UI", Arial, sans-serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 1rem/1.75 var(--body); color: var(--ink); background: var(--paper); }
img { max-width: 100%; display: block; height: auto; }
a { color: var(--green-dark); }
a:hover { color: var(--gold); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.2; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1140px, 100% - 32px); margin-inline: auto; }
.narrow { max-width: 70ch; }
.muted { color: var(--muted); }
.center { text-align: center; margin-top: 28px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--green-deep); color: #fff; padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---------- Bandeau, barre du haut, en-tête ---------- */
.ribbon { background: var(--gold-soft); color: #5a4220; text-align: center; padding: 10px 16px; font-size: .95rem; }
.topbar { background: var(--tint); font-size: .85rem; color: var(--muted); border-bottom: 1px solid var(--line); }
.topbar__inner { display: flex; flex-wrap: wrap; gap: 4px 28px; justify-content: flex-end; padding: 6px 0; }
.topbar a { color: var(--ink); font-weight: 600; text-decoration: none; }
@media (max-width: 700px) { .topbar__inner { justify-content: center; } .topbar__inner span:first-child { display: none; } }
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.site-header__inner { display: flex; align-items: center; gap: 24px; min-height: 92px; }
.brand { margin-right: auto; display: block; }
.brand img { height: 72px; width: auto; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a { text-decoration: none; color: var(--ink); padding: 10px 14px; font-weight: 600; font-size: .98rem; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--green-dark); }
.nav a[aria-current="page"] { color: var(--green-dark); border-bottom-color: var(--green); }
.nav-toggle { display: none; }
@media (max-width: 900px) {
  .site-header__inner { min-height: 76px; }
  .brand img { height: 58px; }
  .nav-toggle { display: block; font: 600 1rem var(--body); background: #fff; border: 1px solid var(--line); border-radius: 30px; padding: 8px 18px; color: var(--ink); }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; flex-direction: column; align-items: stretch; padding: 8px 16px 16px; border-bottom: 1px solid var(--line); box-shadow: 0 12px 20px -16px rgba(0,0,0,.25); }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 8px; border-bottom: 1px solid var(--line); }
  .nav a[aria-current="page"] { border-bottom-color: var(--line); box-shadow: inset 4px 0 0 var(--green); padding-left: 14px; }
}

/* ---------- Boutons, étiquettes, messages ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 .95rem/1.2 var(--body); padding: 12px 26px; border-radius: 30px; border: 2px solid var(--green); background: #fff; color: var(--green-dark); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--green); color: #fff; }
.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }
.btn--light { background: #fff; border-color: #fff; color: var(--green-dark); }
.btn--light:hover { background: transparent; color: #fff; border-color: #fff; }
.btn--small { padding: 7px 16px; font-size: .88rem; }
.btn--danger { border-color: var(--error); color: var(--error); }
.btn--danger:hover { background: var(--error); color: #fff; }
.btn--ghost { border-color: transparent; background: transparent; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.tag { display: inline-block; font-size: .8rem; font-weight: 600; padding: 3px 10px; border-radius: 99px; background: var(--tint); color: var(--ink); margin: 0 4px 4px 0; text-decoration: none; }
.tag--warn { background: #fff0cc; color: var(--warn); }
.tag--ok { background: #e1f5ee; color: var(--ok); }
.tag--pole { background: #e1f5ee; color: var(--green-deep); }
.notice { padding: 12px 16px; border-radius: 8px; background: #eaf7f2; border-left: 4px solid var(--green); margin: 0 0 16px; }
.notice--ok { background: #e1f5ee; border-color: var(--ok); }
.notice--error { background: #fbe9e7; border-color: var(--error); }
.notice--warn { background: var(--gold-soft); border-color: var(--gold); }

/* ---------- Accueil ---------- */
.hero { background-color: #fff; background-repeat: no-repeat; background-position: right center; background-size: cover; min-height: min(68vh, 600px); display: flex; align-items: center; }
.hero__inner { padding: 64px 0; }
.hero h1 { max-width: 17ch; color: var(--green-deep); }
.hero h1 span { white-space: nowrap; }
.hero__sub { display: inline-block; background: var(--green); color: #fff; font: 400 1.3rem/1.3 var(--display); padding: 10px 18px; margin: 4px 0 28px; }
@media (max-width: 900px) {
  .hero { background-size: 135% auto; background-position: 70% bottom; min-height: 0; padding-bottom: 88vw; align-items: flex-start; }
  .hero__inner { padding: 32px 0 0; }
  .hero h1 { font-size: 2rem; }
  .hero__sub { font-size: 1.1rem; }
}
.section { padding: 64px 0; }
.section--tint { background: var(--tint); }
.title { text-align: center; color: var(--green-dark); font-weight: 400; padding-bottom: 18px; margin-bottom: 36px; position: relative; }
.title::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 72px; height: 2px; background: var(--gold); transform: translateX(-50%); }
.lead { font-size: 1.12rem; color: var(--ink); }
.welcome { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.welcome__img { border-radius: var(--radius); }
@media (max-width: 860px) { .welcome { grid-template-columns: 1fr; gap: 28px; } }
.poles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pole { background: #fff; border-radius: var(--radius); padding: 28px 24px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; box-shadow: 0 1px 0 var(--line); }
.pole__icon { width: 56px; height: 56px; margin-bottom: 12px; }
.pole h3 { color: var(--green-dark); font-weight: 400; }
.pole h3 a { color: inherit; text-decoration: none; }
.pole p { color: var(--muted); }
.pole ul { list-style: none; padding: 0; margin: 0 0 20px; width: 100%; }
.pole li { padding: 8px 0; border-top: 1px solid var(--line); font-size: .94rem; line-height: 1.4; }
.pole li span { color: var(--muted); font-size: .88rem; }
.pole .btn { margin-top: auto; }
@media (max-width: 900px) { .poles { grid-template-columns: 1fr; } }
.band { position: relative; background-size: cover; background-position: center 30%; }
.band::before { content: ""; position: absolute; inset: 0; background: rgba(23, 89, 74, .78); }
.band__inner { position: relative; padding: 64px 0; text-align: center; color: #fff; }
.band h2 { color: #fff; font-weight: 400; }
.quote { background: var(--green); color: #fff; padding: 56px 0; }
.quote figure { margin: 0 auto; max-width: 760px; text-align: center; }
.quote blockquote { margin: 0 0 12px; font: italic 400 clamp(1.25rem, 2.4vw, 1.6rem)/1.5 var(--display); }
.quote figcaption { opacity: .9; }
.infobox-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.infobox { background: var(--tint); border-radius: var(--radius); padding: 28px; text-align: center; }
.infobox h3 { color: var(--green-dark); font-weight: 400; }
.hours-mini { margin: 0 auto 12px; border-collapse: collapse; }
.hours-mini th { text-align: right; font-weight: 400; padding: 2px 12px 2px 0; border-right: 2px solid var(--green); }
.hours-mini td { text-align: left; padding: 2px 0 2px 12px; }
.hours-mini .is-today { font-weight: 700; }
@media (max-width: 760px) { .infobox-row { grid-template-columns: 1fr; } }

/* ---------- Praticien·nes ---------- */
.page-head { padding: 48px 0 24px; text-align: center; }
.page-head h1 { color: var(--green-dark); font-weight: 400; }
.page-head p { font-size: 1.08rem; color: var(--muted); max-width: 62ch; margin-inline: auto; }
.prose { max-width: 70ch; }
.prose li { margin-bottom: .35em; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }
.pcard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; position: relative; text-align: center; }
.pcard__media { aspect-ratio: 1 / 1; background: var(--tint); }
.pcard__photo { width: 100%; height: 100%; object-fit: cover; }
.pcard__media { display: grid; place-items: center; }
.pcard__placeholder { width: 55%; opacity: .55; }
.pgrid > div { display: flex; }
.pgrid > div > .pcard { flex: 1; }
.pcard__body { padding: 18px 16px 20px; display: flex; flex-direction: column; align-items: center; flex: 1; }
.pcard__name { font-size: 1.2rem; margin: 0 0 4px; }
.pcard__name a { color: var(--green-dark); text-decoration: none; }
.pcard__name a::after { content: ""; position: absolute; inset: 0; }
.pcard__name a:hover { text-decoration: underline; }
.pcard__title { margin: 0 0 12px; color: var(--muted); font-size: .92rem; line-height: 1.45; }
.pcard__book { margin-top: auto; position: relative; z-index: 1; }
.avatar--initials { display: grid; place-items: center; background: #e1f5ee; color: var(--green-dark); font: 400 1.6rem var(--display); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center; margin-bottom: 32px; }
.filters input[type=search] { flex: 1 1 100%; max-width: 560px; font: inherit; padding: 12px 20px; border: 1.5px solid var(--line); border-radius: 30px; }
.chip { font: 600 .92rem var(--body); text-decoration: none; padding: 8px 18px; border-radius: 30px; border: 1.5px solid var(--green); color: var(--green-dark); background: #fff; }
.chip i { display: none; }
.chip[aria-current="true"], .chip:hover { background: var(--green); color: #fff; }
.empty { padding: 32px; text-align: center; background: var(--tint); border-radius: var(--radius); color: var(--muted); }

/* Fiche */
.profile { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; padding: 48px 0 72px; }
.profile__top { display: flex; gap: 28px; align-items: center; margin-bottom: 28px; }
.profile__photo { width: 170px; height: 170px; border-radius: 50%; object-fit: cover; flex: none; font-size: 3rem; border: 4px solid #fff; box-shadow: 0 0 0 2px var(--green); }
.profile h1 { color: var(--green-dark); margin-bottom: 4px; }
.profile__title { font-size: 1.1rem; color: var(--gold); font-weight: 600; margin: 0 0 10px; }
.profile__summary { font-size: 1.12rem; }
.profile h2 { font-size: 1.35rem; color: var(--green-dark); font-weight: 400; margin-top: 1.6em; }
.aside-card { background: var(--tint); border-radius: var(--radius); padding: 24px; position: sticky; top: 112px; }
.aside-card h2 { font-size: 1.25rem; color: var(--green-dark); font-weight: 400; }
.aside-card dl { margin: 12px 0 16px; }
.aside-card dt { font-weight: 600; font-size: .85rem; color: var(--muted); margin-top: 12px; }
.aside-card dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.aside-card .btn { width: 100%; margin-top: 8px; }
@media (max-width: 900px) { .profile { grid-template-columns: 1fr; gap: 28px; } .aside-card { position: static; } .profile__top { flex-direction: column; text-align: center; } .profile__photo { width: 140px; height: 140px; } }

/* Ateliers et actualités */
.posts { display: grid; gap: 16px; }
.post { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; display: flex; gap: 20px; position: relative; }
.post h3 { margin: 0 0 6px; font-size: 1.2rem; }
.post h3 a { color: var(--green-dark); text-decoration: none; }
.post h3 a::after { content: ""; position: absolute; inset: 0; }
.post h3 a:hover { text-decoration: underline; }
.post p:last-child { margin: 0; }
.post__kind { font-size: .85rem; color: var(--gold); font-weight: 600; margin: 0 0 4px; }
.post__when { font-weight: 600; margin: 0 0 6px; }
.post__date { flex: none; width: 66px; text-align: center; background: var(--green); color: #fff; border-radius: 8px; padding: 8px 0; font-weight: 600; font-size: .8rem; line-height: 1.1; height: fit-content; }
.post__date span { display: block; font: 700 1.7rem var(--display); }
.article { padding: 48px 0 72px; }
.article h1 { color: var(--green-dark); }
.article__image { border-radius: var(--radius); margin: 0 0 28px; max-height: 460px; width: 100%; object-fit: cover; }
.event-box { background: var(--tint); border-left: 4px solid var(--green); border-radius: 8px; padding: 16px 20px; margin: 0 0 24px; }
.event-box p { margin: 0 0 4px; }

/* Infos pratiques, contact */
.infos { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 8px 0 72px; }
.infos h2 { color: var(--green-dark); font-weight: 400; font-size: 1.5rem; }
.hours { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.hours th, .hours td { text-align: left; padding: 10px 16px; border-bottom: 1px solid var(--line); font-weight: 400; }
.hours tr.is-today { background: #e1f5ee; font-weight: 700; }
.map { width: 100%; aspect-ratio: 4/3; border: 0; border-radius: var(--radius); }
@media (max-width: 900px) { .infos { grid-template-columns: 1fr; } }

/* Formulaires */
.form { display: grid; gap: 16px; }
.form label, .field { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
.form .hint, .hint { font-weight: 400; color: var(--muted); font-size: .88rem; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=url], input[type=date], input[type=time], input[type=datetime-local], input[type=number], input[type=search], input:not([type]), select, textarea {
  font: 400 1rem var(--body); color: var(--ink); padding: 11px 13px; border: 1.5px solid #c9d3d0; border-radius: 8px; background: #fff; width: 100%;
}
textarea { min-height: 140px; resize: vertical; line-height: 1.55; }
textarea.tall { min-height: 280px; }
input:focus, select:focus, textarea:focus { border-color: var(--green); outline: 3px solid rgba(50, 198, 154, .25); outline-offset: 0; }
.check { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 400 !important; }
.check input { width: 20px; height: 20px; margin-top: 3px; flex: none; accent-color: var(--green); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 700px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin: 0; display: grid; gap: 14px; background: #fff; }
legend { font: 400 1.2rem var(--display); color: var(--green-dark); padding: 0 8px; }
.hp { position: absolute; left: -5000px; }

/* Pied de page */
.site-footer { background: var(--green-deep); color: rgba(255,255,255,.82); padding: 56px 0 24px; }
.site-footer a { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0 0 12px; }
.site-footer li { margin-bottom: 6px; }
.site-footer address { font-style: normal; margin-bottom: 12px; }
.site-footer .muted { color: rgba(255,255,255,.7); }
.site-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; }
.site-footer__logo { width: 150px; margin-bottom: 16px; }
.site-footer__title { font: 400 1.15rem var(--display); color: #fff; margin-bottom: 12px; }
.site-footer__bottom { display: flex; flex-wrap: wrap; gap: 8px 24px; border-top: 1px solid rgba(255,255,255,.18); margin-top: 32px; padding-top: 20px; font-size: .9rem; }
.site-footer__bottom span { margin-right: auto; }
@media (max-width: 900px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* =========================================================
   Espace praticien·nes et gérant·e
   ========================================================= */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: var(--tint); }
.auth-card { width: min(460px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 32px; }
.auth-card h1 { font-size: 1.8rem; }
.checks { list-style: none; padding: 0; }
.checks .is-ok { color: var(--ok); } .checks .is-ko { color: var(--error); font-weight: 700; }

.app { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.app__side { background: var(--green-deep); color: #dfe8e6; padding: 20px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; }
.app__brand { color: #fff; text-decoration: none; font: 700 1.2rem var(--display); padding: 6px 10px 18px; display: block; }
.app__brand small { display: block; font: 400 .85rem var(--body); color: #a8bcbc; margin-top: 2px; }
.app__nav { display: grid; gap: 2px; }
.app__nav a { color: #e7efed; text-decoration: none; padding: 10px 12px; border-radius: 8px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; }
.app__nav a:hover { background: rgba(255,255,255,.08); }
.app__nav a[aria-current="page"] { background: #fff; color: var(--green-deep); }
.app__nav .count { background: #f0b429; color: #3a2a00; border-radius: 99px; font-size: .78rem; padding: 1px 8px; }
.app__navtitle { font-size: .85rem; color: #a8bcbc; margin: 18px 12px 6px; }
.app__foot { margin-top: auto; padding: 16px 12px 0; font-size: .92rem; }
.app__foot a { color: #fff; }
.app__main { padding: 32px clamp(16px, 4vw, 48px) 64px; max-width: 1180px; width: 100%; }
.app__top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.app__top h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0; }
.app__menu { display: none; }
@media (max-width: 960px) {
  .app { grid-template-columns: 1fr; }
  .app__side { position: static; height: auto; padding: 12px 16px; }
  .app__side .app__nav, .app__side .app__navtitle, .app__side .app__foot { display: none; }
  .app__side.is-open .app__nav, .app__side.is-open .app__navtitle, .app__side.is-open .app__foot { display: grid; }
  .app__head { display: flex; justify-content: space-between; align-items: center; }
  .app__brand { padding: 4px 0; }
  .app__menu { display: block; font: 700 .95rem var(--body); background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.4); border-radius: 8px; padding: 7px 12px; }
}
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 20px; }
.panel h2 { font-size: 1.25rem; }
.panel__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.panel__head h2 { margin: 0; }
.dash { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.dash .panel { margin: 0; }
.steps { list-style: none; padding: 0; margin: 0; }
.steps li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.steps li:last-child { border: 0; }
.steps .dot { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); flex: none; display: grid; place-items: center; font-size: .8rem; font-weight: 700; }
.steps .is-done .dot { background: var(--ok); border-color: var(--ok); color: #fff; }

.table { width: 100%; border-collapse: collapse; font-size: .97rem; }
.table th { text-align: left; font-size: .86rem; color: var(--muted); font-weight: 700; padding: 8px 10px; border-bottom: 2px solid var(--line); }
.table td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr.is-unread td { font-weight: 700; }
.table .actions { white-space: nowrap; text-align: right; }
.table .actions form { display: inline; }
@media (max-width: 700px) {
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr { border-bottom: 1px solid var(--line); padding: 8px 0; }
  .table td { border: 0; padding: 4px 0; }
  .table .actions { text-align: left; }
}
.preview-link { font-weight: 700; }
.photo-edit { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.photo-edit .profile__photo { width: 110px; height: 110px; font-size: 2rem; }
.counter { font-weight: 400; color: var(--muted); font-size: .85rem; justify-self: end; }
.counter.is-over { color: var(--error); font-weight: 700; }
.format-help { font-size: .9rem; color: var(--muted); background: var(--tint); border-radius: 8px; padding: 10px 12px; }
.format-help code { background: #fff; padding: 1px 5px; border-radius: 4px; }

/* Planning des salles */
.planning-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.planning-toolbar .week { font: 700 1.1rem var(--display); margin: 0 8px; }
.planning { --hour: 44px; display: grid; grid-template-columns: 52px repeat(var(--days), minmax(120px, 1fr)); overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.planning__col { position: relative; border-left: 1px solid var(--line); min-width: 120px; }
.planning__head { position: sticky; top: 0; height: 52px; padding: 6px 8px; border-bottom: 2px solid var(--line); background: var(--surface); z-index: 2; font-weight: 700; font-size: .9rem; line-height: 1.2; }
.planning__head small { display: block; font-weight: 400; color: var(--muted); }
.planning__head.is-today { background: #e7f0f3; }
.planning__body { position: relative; height: calc(var(--hour) * var(--hours)); background-image: repeating-linear-gradient(to bottom, var(--line) 0 1px, transparent 1px var(--hour)); }
.planning__hours { padding-top: 52px; }
.planning__hours div { height: var(--hour); font-size: .78rem; color: var(--muted); text-align: right; padding-right: 6px; transform: translateY(-8px); }
.slot { position: absolute; left: 3px; right: 3px; border-radius: 7px; padding: 4px 7px; font-size: .8rem; line-height: 1.25; overflow: hidden; background: color-mix(in srgb, var(--c) 18%, white); border-left: 4px solid var(--c); color: var(--ink); }
.slot.is-mine { background: color-mix(in srgb, var(--c) 34%, white); }
.slot b { display: block; }
.slot form { display: inline; }
.slot button { font: 700 .75rem var(--body); background: none; border: 0; color: var(--error); padding: 0; cursor: pointer; text-decoration: underline; }
.slot-new { position: absolute; left: 0; right: 0; height: calc(var(--hour) / 2); border: 0; background: transparent; cursor: pointer; padding: 0; }
.slot-new:hover, .slot-new:focus-visible { background: color-mix(in srgb, var(--focus) 12%, transparent); }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: .9rem; margin: 10px 0 0; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; background: var(--c); margin-right: 6px; vertical-align: -1px; }
dialog { border: 0; border-radius: 16px; padding: 24px; width: min(480px, 100% - 32px); box-shadow: 0 30px 80px -20px rgba(0,0,0,.4); }
dialog::backdrop { background: rgba(23,50,58,.45); }

/* Annonces internes */
.board { display: grid; gap: 14px; }
.ann { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.ann.is-pinned { border-color: #c9a227; box-shadow: inset 4px 0 0 #c9a227; }
.ann__meta { font-size: .88rem; color: var(--muted); margin: 0 0 6px; }
.ann h3 { margin: 0 0 8px; }
.ann__replies { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 10px; display: grid; gap: 8px; }
.reply { font-size: .95rem; background: var(--tint); border-radius: 8px; padding: 8px 12px; }
.reply b { font-size: .88rem; }
.reply-form { display: flex; gap: 8px; margin-top: 8px; }
.reply-form input { flex: 1; }
.cat-travaux { --c: #b0662a; } .cat-menage { --c: #1f6f8b; } .cat-salle { --c: #4e7d3a; } .cat-materiel { --c: #6d4e93; } .cat-info { --c: #3d5a63; }
.app { background: var(--tint); }
.app__brand img { height: 46px; width: auto; margin-bottom: 6px; }
.auth-card .auth-logo { height: 70px; width: auto; margin-bottom: 8px; }
