/* IMASSO — pierre et brume
   Palette : sapin profond, gris galet, brume claire, cire (accent rare).
   Typographie : serif système pour les titres, sans-serif système pour le texte.
   Motif : l'arche (photos). Aucune ressource externe (CSP stricte, aucun style en ligne). */

:root {
    --bg: #f2f4f1;
    --surface: #fbfbf8;
    --line: #d9e0db;
    --text: #1f3530;
    --text-muted: #5b6963;
    --accent: #4f6f62;
    --accent-dim: #dfe8e3;
    --accent-hover: #3f5a4f;
    --ok: #2d6a4f;
    --err: #a8342b;
    --sapin: #1f3530;
    --cire: #d9b36a;
    --radius: 3px;
    --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
    --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --gut: clamp(1.1rem, 4vw, 2.5rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 4.5rem; }
body { margin: 0; background: var(--bg); color: var(--text); font: 1.0625rem/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.12; letter-spacing: -0.012em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.4rem, 6.2vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); margin-bottom: 1.1rem; }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; max-width: 62ch; }
.wrap { width: min(72rem, 100% - 2 * var(--gut)); margin-inline: auto; }
:focus-visible { outline: 3px solid var(--cire); outline-offset: 3px; border-radius: 3px; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--accent-dim); padding: 1px 5px; border-radius: 3px; font-size: 0.9em; }
.skip { position: absolute; left: -999px; top: 0; background: var(--sapin); color: #fff; padding: 0.7rem 1rem; z-index: 100; }
.skip:focus { left: 0; }

/* Boutons et liens */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: 0.7rem 1.7rem; border-radius: 999px; border: 1.5px solid var(--sapin); background: var(--sapin); color: #fff; font: 600 1rem var(--sans); text-decoration: none; cursor: pointer; transition: background 0.2s, border-color 0.2s; }
.btn:hover { background: var(--accent); border-color: var(--accent); }
.btn--small { min-height: 2.6rem; padding: 0.45rem 1.2rem; font-size: 0.95rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: wait; }
.link { font-weight: 600; color: var(--text); text-decoration: underline; text-underline-offset: 0.25em; text-decoration-thickness: 1.5px; }
.link:hover { color: var(--accent); }

/* En-tête */
.top { position: sticky; top: 0; z-index: 20; background: rgba(242, 244, 241, 0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top__in { display: flex; align-items: center; gap: 1.5rem; padding-block: 0.7rem; }
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--text); margin-right: auto; }
.brand__logo { height: 2.2rem; width: auto; }
.brand__name { font: 400 1.5rem/1 var(--serif); letter-spacing: 0.14em; }
.nav { display: none; gap: 1.6rem; }
.nav a { text-decoration: none; color: var(--text); font-size: 0.97rem; }
.nav a:hover { text-decoration: underline; text-underline-offset: 0.3em; }
@media (min-width: 62rem) { .nav { display: flex; } }

/* Accueil */
.hero { padding-block: clamp(2.5rem, 7vw, 5.5rem) clamp(3rem, 8vw, 6rem); }
.hero__in { display: grid; gap: 2.5rem; align-items: center; }
.hero__copy h1 { max-width: 13ch; }
.lede { font-size: clamp(1.12rem, 2vw, 1.3rem); color: var(--text-muted); max-width: 34rem; margin-top: 1.4rem; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.4rem; margin-top: 2rem; }
.hero__note { margin-top: 1.6rem; color: var(--text-muted); font-size: 0.95rem; }
@media (min-width: 56rem) { .hero__in { grid-template-columns: 1.15fr 0.85fr; gap: 4rem; } }

/* Arche : le motif du site */
.arch { margin: 0; border-radius: 999px 999px 0.5rem 0.5rem; overflow: hidden; background: var(--line); aspect-ratio: 4 / 5.2; }
.arch img, .arch .arch__ph { width: 100%; height: 100%; object-fit: cover; }
.hero__arch { max-width: 26rem; width: 100%; justify-self: center; animation: rise 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@keyframes rise { from { clip-path: inset(100% 0 0 0); opacity: 0.4; } to { clip-path: inset(0 0 0 0); opacity: 1; } }

/* Sections */
.sec { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.sec__lead { color: var(--text-muted); max-width: 38rem; margin-bottom: 2.5rem; }
.prose p { max-width: 36rem; }
.about__in { display: grid; gap: 2.5rem; align-items: center; }
.about__arch { max-width: 22rem; width: 100%; }
@media (min-width: 56rem) { .about__in { grid-template-columns: 0.7fr 1fr; gap: 5rem; } .about__arch { justify-self: start; } }
.rule-list { list-style: none; padding: 0; margin: 1.4rem 0 0; }
.rule-list li { padding: 0.55rem 0 0.55rem 1.4rem; position: relative; border-top: 1px solid var(--line); max-width: 36rem; }
.rule-list li:last-child { border-bottom: 1px solid var(--line); }
.rule-list li::before { content: ""; position: absolute; left: 0; top: 1.2rem; width: 0.55rem; height: 0.55rem; border-radius: 50% 50% 0 0; background: var(--accent); }
.rule-list--roomy li { padding-block: 0.85rem; }
.rule-list--roomy li::before { top: 1.5rem; }

/* Services : une liste, pas des cartes */
.svc-list { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--sapin); }
.svc { display: grid; gap: 0.8rem; padding: 1.6rem 0; border-bottom: 1px solid var(--line); }
.svc h3 { margin-bottom: 0.4rem; }
.svc p { margin: 0; color: var(--text-muted); max-width: 38rem; }
.svc__meta { display: flex; align-items: baseline; gap: 1.4rem; }
.svc__price { font: 400 1.25rem var(--serif); }
@media (min-width: 48rem) { .svc { grid-template-columns: 1fr auto; gap: 3rem; align-items: center; } .svc__meta { flex-direction: column; align-items: flex-end; gap: 0.4rem; text-align: right; } }
.fine { font-size: 0.92rem; color: var(--text-muted); margin-top: 1.4rem; }

/* Déroulement */
.how { background: var(--surface); border-block: 1px solid var(--line); }
.how__in { display: grid; gap: 3.5rem; }
@media (min-width: 56rem) { .how__in { grid-template-columns: 1fr 1fr; gap: 6rem; } }
.steps { counter-reset: s; list-style: none; margin: 1.5rem 0 0; padding: 0; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 2.6rem 1fr; gap: 1rem; padding: 0.9rem 0; border-top: 1px solid var(--line); max-width: 36rem; }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(s); font: 400 1.5rem/1.2 var(--serif); color: var(--accent); }

/* Réservation : le moment fort */
.book { background: var(--sapin); color: #eef2ef; padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.book h2 { color: #fff; }
.book__lead { color: #b9c7c0; }
.book__grid { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 60rem) { .book__grid { grid-template-columns: 1.05fr 0.95fr; gap: 4rem; } }
.book h3 { font-size: 1.25rem; margin-bottom: 0.9rem; }
.svc-pick { border: 0; margin: 0 0 2.2rem; padding: 0; }
.svc-pick legend { font: 400 1.25rem var(--serif); margin-bottom: 0.9rem; padding: 0; }
.radio { display: block; cursor: pointer; margin: 0; }
.radio input { position: absolute; opacity: 0; pointer-events: none; }
.radio span { display: flex; justify-content: space-between; gap: 1rem; padding: 0.8rem 1rem; border: 1.5px solid #3f5d53; border-radius: 0.8rem; margin-bottom: 0.5rem; transition: border-color 0.2s, background 0.2s; }
.radio em { font-style: normal; color: #b9c7c0; white-space: nowrap; }
.radio:hover span { border-color: #7f9a8e; }
.radio input:checked + span { border-color: var(--cire); background: rgba(217, 179, 106, 0.1); }
.radio input:focus-visible + span { outline: 3px solid var(--cire); outline-offset: 2px; }

.cal { margin-bottom: 2rem; max-width: 26rem; }
.cal__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.6rem; }
.cal__head h3 { margin: 0; }
.cal__nav { display: flex; align-items: center; gap: 0.4rem; }
#cal-month { min-width: 9.5rem; text-align: center; font-weight: 600; text-transform: capitalize; }
.cal__nav button { width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 1.5px solid #3f5d53; background: none; color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; }
.cal__nav button:hover:not(:disabled) { border-color: var(--cire); }
.cal__nav button:disabled { opacity: 0.3; cursor: default; }
.cal__dow, .cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.3rem; }
.cal__dow { font-size: 0.8rem; color: #9fb2a8; text-align: center; margin-bottom: 0.3rem; }
.day { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; border-radius: 50%; border: 1.5px solid transparent; background: none; color: #6f877c; font: inherit; font-size: 1rem; padding: 0; }
.day--ok { color: #fff; border-color: #587a6d; cursor: pointer; font-weight: 600; }
.day--ok:hover { border-color: var(--cire); }
.day--sel { background: var(--cire); border-color: var(--cire); color: var(--sapin); }
.day--blank { visibility: hidden; }
.cal__grid.is-loading { opacity: 0.45; }
.cal__empty { margin: 0.9rem 0 0; color: #b9c7c0; }
.times__list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.time { min-width: 5.2rem; min-height: 2.8rem; padding: 0.4rem 1rem; border-radius: 999px; border: 1.5px solid #587a6d; background: none; color: #fff; font: 600 1rem var(--sans); cursor: pointer; }
.time:hover { border-color: var(--cire); }
.time[aria-pressed="true"] { background: var(--cire); border-color: var(--cire); color: var(--sapin); }

/* Formulaires publics (panneau clair) */
.req, .done, .msg { background: var(--bg); color: var(--text); border-radius: 1.2rem; padding: clamp(1.3rem, 3vw, 2.2rem); }
.req h3, .msg h3 { font-size: 1.4rem; }
.chosen { background: var(--surface); border: 1px dashed var(--accent); border-radius: 0.7rem; padding: 0.7rem 0.9rem; margin-bottom: 1.1rem; font-size: 0.97rem; max-width: none; }
.chosen.is-set { border-style: solid; font-weight: 600; }
.field { margin-bottom: 1rem; }
.req .field label, .msg .field label { display: block; font-weight: 600; font-size: 0.95rem; color: var(--text); margin: 0 0 0.3rem; }
.req .field input[type="text"], .req .field input[type="email"], .msg .field input[type="text"], .msg .field input[type="email"], .req .field textarea, .msg .field textarea { width: 100%; padding: 0.7rem 0.8rem; border: 1.5px solid #9aaaa2; border-radius: 0.6rem; background: #fff; color: var(--text); font: inherit; }
.req .field textarea, .msg .field textarea { resize: vertical; }
.req .field input:focus, .req .field textarea:focus, .msg .field input:focus, .msg .field textarea:focus { outline: 3px solid var(--cire); outline-offset: 1px; border-color: var(--sapin); }
.field.is-bad input, .field.is-bad textarea { border-color: var(--err); }
.two { display: grid; gap: 0 1rem; }
@media (min-width: 40rem) { .two { grid-template-columns: 1fr 1fr; } }
.req .field--check label { display: flex; gap: 0.6rem; font-weight: 400; align-items: flex-start; }
.req .field--check input { margin-top: 0.35rem; width: 1.1rem; height: 1.1rem; accent-color: var(--sapin); flex: none; }
.field-err, .form-err { color: var(--err); font-size: 0.92rem; font-weight: 600; margin: 0.3rem 0 0; }
.form-err { margin: 0 0 1rem; padding: 0.7rem 0.9rem; background: #fbe9e7; border-radius: 0.6rem; max-width: none; }
.req .fine, .msg .fine { margin: 0.9rem 0 0; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.done h3 { font-size: 1.7rem; margin-bottom: 0.8rem; }
.book__fine { color: #9fb2a8; margin-top: 2rem; }
.notice { padding: 0.7rem 0.9rem; border-radius: 0.6rem; font-weight: 600; max-width: none; }
.notice--ok { background: #dcefe3; color: #17462f; }
.notice--error { background: #fbe9e7; color: #7c1f18; }

/* Galerie */
.gallery__in { display: grid; gap: 1rem; }
.gallery__in--1 { grid-template-columns: minmax(0, 22rem); justify-content: center; }
@media (min-width: 40rem) { .gallery__in--2 { grid-template-columns: repeat(2, 1fr); } .gallery__in--3 { grid-template-columns: repeat(3, 1fr); } }

/* Témoignages */
.testi-list { display: grid; gap: 2rem; }
@media (min-width: 56rem) { .testi-list { grid-template-columns: repeat(2, 1fr); gap: 3rem; } }
.testi { margin: 0; padding-left: 1.4rem; border-left: 3px solid var(--accent); }
.testi blockquote { margin: 0; }
.testi p { font: 400 1.25rem/1.5 var(--serif); }
.testi figcaption { color: var(--text-muted); font-size: 0.95rem; }

/* Questions fréquentes */
.faq { background: var(--surface); border-top: 1px solid var(--line); }
.faq__in { display: grid; gap: 2rem; }
@media (min-width: 56rem) { .faq__in { grid-template-columns: 0.7fr 1.3fr; gap: 5rem; } }
.faq__list { border-top: 1.5px solid var(--sapin); }
details { border-bottom: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; padding: 1.1rem 2.5rem 1.1rem 0; font: 400 1.2rem/1.35 var(--serif); position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0.3rem; top: 0.95rem; font: 300 1.7rem/1 var(--sans); color: var(--accent); transition: transform 0.25s; }
details[open] summary::after { transform: rotate(45deg); }
.ans { padding: 0 0 1rem; color: var(--text-muted); max-width: 38rem; }

/* Contact */
.contact__in { display: grid; gap: 3rem; align-items: start; }
@media (min-width: 56rem) { .contact__in { grid-template-columns: 1fr 1fr; gap: 6rem; } }
.lede-sm { color: var(--text-muted); }
.contact__list { list-style: none; margin: 1.4rem 0 2.2rem; padding: 0; }
.contact__list li { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; padding: 0.8rem 0; border-top: 1px solid var(--line); }
.contact__list li:last-child { border-bottom: 1px solid var(--line); }
.contact__list span { color: var(--text-muted); font-size: 0.95rem; }
.contact__list a { font-weight: 600; }
.area-head { margin-top: 0.5rem; }
.area-name { font: 400 1.8rem/1.2 var(--serif); margin-bottom: 0.6rem; }
.msg { background: var(--surface); border: 1px solid var(--line); }

/* Pied de page */
.foot { background: var(--sapin); color: #b9c7c0; padding-block: 1.8rem; font-size: 0.92rem; }
.foot__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.8rem 2rem; }
.foot p { margin: 0; max-width: none; }
.foot a { color: #dfe8e3; }

/* Page de confidentialité */
.policy { padding: 4rem 0 5.5rem; }
.policy__inner { max-width: 44rem; }
.policy__inner p, .policy__inner li { max-width: none; }
.policy h1 { font-size: clamp(2rem, 5vw, 3rem); }
.policy h2 { font-size: 1.35rem; margin-top: 2.2rem; }
.policy__updated { color: var(--text-muted); font-size: 0.9rem; margin-top: -0.4rem; }
.policy__note { margin-top: 2.2rem; padding-top: 1.1rem; border-top: 1px solid var(--line); font-size: 0.9rem; color: var(--text-muted); }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .hero__arch { animation: none; }
    * { transition: none !important; }
}

/* --- Connexion, espace d'édition et statistiques (thème clair) --- */

/* --- Login / Admin (partagent la même feuille) --- */

.login-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.login-card {
    width: 100%;
    max-width: 360px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 36px 32px;
}

.login-card--wide { max-width: 440px; }

.login-mark {
    color: var(--accent);
    font-family: var(--serif);
    font-size: 1.15rem;
    letter-spacing: 0.14em;
    margin: 0 0 18px;
}

.login-sub { margin: -8px 0 20px; font-size: 0.92rem; }

.login-error {
    background: #fbe3e0;
    border: 1px solid #e0a39b;
    color: #7c1f18;
    padding: 10px 14px;
    border-radius: var(--radius);
    font-size: 0.9rem;
}

.login-links {
    margin-top: 18px;
    text-align: center;
    font-size: 0.85rem;
}

.captcha-row {
    display: flex;
    align-items: center;
    gap: 12px;
}
.captcha-row .captcha-question {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    color: var(--text);
    white-space: nowrap;
}
.captcha-row input { flex: 1; }

.totp-key-box {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px 16px;
    font-size: 1.05rem;
    letter-spacing: 0.06em;
    word-break: break-all;
    margin: 10px 0;
}

.uri-box {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 10px 12px;
    font-size: 0.8rem;
    word-break: break-all;
    color: var(--text-muted);
    margin: 6px 0 0;
}

form label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 16px 0 6px;
}

form input[type="text"],
form input[type="email"],
form input[type="password"],
form textarea {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--line);
    color: var(--text);
    padding: 10px 12px;
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
}

form textarea { resize: vertical; }

.checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 16px 0 !important;
}
.checkbox-label input[type="checkbox"] {
    width: auto;
}

.login-card button, .admin-save {
    margin-top: 22px;
    width: 100%;
    padding: 11px;
    background: var(--accent);
    color: #fff;
    border: none;
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius);
    cursor: pointer;
}
.login-card button:hover, .admin-save:hover { background: var(--accent-hover); }

.admin-save--muted {
    background: transparent;
    border: 1px solid var(--line);
    color: var(--text-muted);
}
.admin-save--muted:hover { background: var(--surface); color: var(--text); }

.inline-toggle-form {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px 16px;
    margin: 16px 0 26px;
}
.inline-toggle-form .checkbox-label { margin: 0 0 10px !important; }
.admin-save--inline {
    width: auto;
    margin-top: 0;
    padding: 8px 16px;
    font-size: 0.85rem;
}

.incident-list {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
}
.incident-list li {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-bottom: 12px;
}
.incident-list__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}
.incident-tag {
    font-size: 0.75rem;
    background: var(--accent-dim);
    color: var(--accent);
    padding: 2px 8px;
    border-radius: 2px;
}
.incident-delete-form { margin-top: 8px; }



.admin-header {
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
}
.admin-mark {
    font-family: var(--serif);
    letter-spacing: 0.1em;
    color: var(--accent);
    margin: 0;
}
.admin-nav a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 20px;
    font-size: 0.9rem;
}
.admin-nav a:hover { color: var(--text); }

.admin-toc {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 18px;
    padding: 14px 24px;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    background: var(--bg);
    z-index: 5;
}
.admin-toc a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    white-space: nowrap;
}
.admin-toc a:hover { color: var(--accent); }

.admin-main { scroll-behavior: smooth; }
.admin-main [id^="section-"] { scroll-margin-top: 70px; }

.admin-main {
    max-width: 720px;
    margin: 0 auto;
    padding: 36px 24px 80px;
}

.admin-form section {
    border-top: 1px solid var(--line);
    padding: 24px 0;
}
.admin-form section:first-child { border-top: none; padding-top: 0; }

.admin-notice {
    padding: 10px 14px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    margin-bottom: 20px;
}
.admin-notice--ok {
    background: #dcefe3;
    border: 1px solid #9fcbb0;
    color: #17462f;
}
.admin-notice--error {
    background: #fbe3e0;
    border: 1px solid #e0a39b;
    color: #7c1f18;
}

.admin-sep {
    border: none;
    border-top: 1px solid var(--line);
    margin: 44px 0 32px;
}

.field-hint {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 6px 0 0;
    max-width: 60ch;
}

.admin-form select {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--line);
    color: var(--text);
    padding: 10px 12px;
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
}

.stats-period {
    display: flex;
    gap: 8px;
    margin: 4px 0 20px;
}
.stats-period a {
    padding: 6px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
}
.stats-period a.is-active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    font-weight: 600;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    margin-bottom: 8px;
}
.stat-box {
    background: var(--surface);
    padding: 18px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.stat-number { font-size: 1.9rem; font-weight: 700; color: var(--accent); line-height: 1; }
.stat-label { font-size: 0.8rem; color: var(--text-muted); }

.stats-subhead {
    font-size: 1rem;
    margin: 26px 0 10px;
    color: var(--text);
}

.stats-bars {
    list-style: none;
    margin: 0;
    padding: 0;
}
.stats-bars li {
    display: grid;
    grid-template-columns: 44px 1fr 34px;
    align-items: center;
    gap: 10px;
    padding: 3px 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}
.stats-bars__track {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 2px;
    height: 10px;
    overflow: hidden;
}

.stats-bars__count { text-align: right; }

.stats-list {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.92rem;
}
.stats-list li {
    display: flex;
    justify-content: space-between;
    padding: 7px 0;
    border-bottom: 1px solid var(--line);
    color: var(--text-muted);
}
.stats-list li:last-child { border-bottom: none; }
.stats-list li span:first-child { color: var(--text); }

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
}


/* --- Ajouts IMASSO pour l'espace d'édition (réservation, images) --- */

.admin-main { max-width: 860px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 0.8rem; padding: 1.1rem 1.2rem; margin-bottom: 1rem; }
.card h3 { margin-top: 0; }
.card--req header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 0.7rem; }
.tag { font-size: 0.78rem; font-weight: 600; border-radius: 999px; padding: 0.15rem 0.7rem; background: #fbefd2; color: #6b4c07; white-space: nowrap; }
.kv { display: grid; grid-template-columns: 6rem 1fr; gap: 0.3rem 1rem; margin: 0 0 1rem; }
.kv dt { color: var(--text-muted); font-size: 0.9rem; }
.kv dd { margin: 0; word-break: break-word; }
.row { display: flex; flex-wrap: wrap; gap: 0.7rem; align-items: center; }
.row .admin-save { width: auto; margin-top: 0; padding: 0.6rem 1.3rem; }
.button--danger, .admin-save--danger { background: var(--err) !important; color: #fff !important; }
.admin-save--danger:hover, .button--danger:hover { background: #8b2a22 !important; }
.badge { background: var(--err); color: #fff; border-radius: 999px; font-size: 0.78rem; padding: 0.05rem 0.5rem; margin-left: 0.2rem; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 0.8rem; background: var(--surface); margin: 0.6rem 0 1rem; }
.table-wrap table { border-collapse: collapse; width: 100%; min-width: 34rem; }
.table-wrap th, .table-wrap td { text-align: left; padding: 0.65rem 0.8rem; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 0.93rem; }
.table-wrap th { font-size: 0.8rem; color: var(--text-muted); font-weight: 600; }
.table-wrap tr:last-child td { border-bottom: 0; }
.table-wrap form { display: inline; }
.table-wrap .admin-save, .card .admin-save--small { width: auto; margin: 0; padding: 0.4rem 0.9rem; font-size: 0.85rem; }
.chip { display: inline-flex; align-items: center; gap: 0.3rem; background: var(--accent-dim); border-radius: 999px; padding: 0.1rem 0.3rem 0.1rem 0.8rem; margin: 0.1rem 0.3rem 0.1rem 0; }
.chip button { width: 1.8rem; height: 1.8rem; margin: 0; padding: 0; border: 0; background: none; color: var(--err); font-size: 1.2rem; line-height: 1; cursor: pointer; border-radius: 50%; }
.chip button:hover { background: #fff; }
.muted { color: var(--text-muted); }
.empty { background: var(--surface); border: 1px dashed #9aaaa2; border-radius: 0.8rem; padding: 0.9rem 1rem; color: var(--text-muted); max-width: none; }
.count { font: 600 0.82rem var(--sans); background: var(--accent-dim); border-radius: 999px; padding: 0.1rem 0.6rem; vertical-align: middle; }

.grid-form { display: grid; gap: 0 1rem; grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr)); align-items: end; }
.grid-form .wide { grid-column: 1 / -1; }
.inline-time { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.inline-time input[type="time"] { width: auto; background: var(--bg); border: 1px solid var(--line); color: var(--text); padding: 8px 10px; border-radius: var(--radius); font: inherit; }
.grid-form input[type="date"], .grid-form input[type="time"], .grid-form input[type="number"] { width: 100%; background: var(--bg); border: 1px solid var(--line); color: var(--text); padding: 10px 12px; border-radius: var(--radius); font-size: 1rem; font-family: inherit; }
.sub-card { border: 1px solid var(--line); border-radius: 0.7rem; padding: 0.9rem 1rem; margin-bottom: 0.8rem; background: var(--surface); }
.sub-card .stats-subhead { margin-top: 0; }

.media-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
.media-grid .card h3 { margin-bottom: 0.6rem; }
.thumb { aspect-ratio: 4 / 5; background: var(--accent-dim); border-radius: 0.6rem; display: grid; place-items: center; overflow: hidden; margin-bottom: 0.6rem; color: var(--text-muted); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.media-grid input[type="file"] { width: 100%; font: inherit; font-size: 0.9rem; }

progress.stats-bars__fill { appearance: none; -webkit-appearance: none; width: 100%; height: 10px; border: 0; background: transparent; display: block; }
progress.stats-bars__fill::-webkit-progress-bar { background: transparent; }
progress.stats-bars__fill::-webkit-progress-value { background: var(--accent); }
progress.stats-bars__fill::-moz-progress-bar { background: var(--accent); }
.is-gap-top { margin-top: 10px; }

@media (max-width: 40rem) { .kv { grid-template-columns: 1fr; gap: 0; } .kv dd { margin-bottom: 0.5rem; } }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.inline-form { display: inline; margin: 0; }
.sub-card .grid-form { margin-bottom: 0.4rem; }
