:root { --sauge: #4f6340; --brun: #6b4529; --creme: #f6f1e6; --fruit: #c2415a; }
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.5 system-ui, 'Segoe UI', sans-serif; background: var(--creme); color: #2d2a24; }
.adm-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1.5rem; padding: .6rem 1.2rem; background: var(--sauge); color: #fff; }
.adm-brand { display: flex; align-items: center; gap: .6rem; color: #fff; text-decoration: none; font-weight: 700; }
.adm-brand img { border-radius: 50%; background: #fff; }
.adm-bar nav { display: flex; flex-wrap: wrap; gap: .3rem 1rem; }
.adm-bar nav a { color: #e8efe0; text-decoration: none; padding: .3rem .1rem; border-bottom: 2px solid transparent; }
.adm-bar nav a.actif, .adm-bar nav a:hover { color: #fff; border-color: #fff; }
.adm-main { max-width: 1000px; margin: 0 auto; padding: 1.4rem 1rem 4rem; }
h1 { color: var(--brun); } h2 { color: var(--sauge); margin: 1.2rem 0 .6rem; font-size: 1.15rem; }
.adm-carte { background: #fff; border-radius: 12px; padding: 1.2rem 1.4rem; box-shadow: 0 2px 10px rgba(0,0,0,.07); margin-bottom: 1.4rem; }
.adm-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 1.4rem; }
.adm-stats .adm-carte { margin: 0; text-decoration: none; color: inherit; text-align: center; }
.adm-stats strong { display: block; font-size: 2rem; color: var(--sauge); }
.adm-form label { display: block; font-weight: 600; margin-bottom: .8rem; }
.adm-form input:not([type=checkbox]):not([type=radio]), .adm-form textarea, .adm-login input { display: block; width: 100%; margin-top: .25rem; padding: .6rem .7rem; font: inherit; border: 1px solid #c9c2b2; border-radius: 8px; background: #fff; }
.adm-form input[type=file] { padding: .4rem; }
.adm-grille2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.2rem; }
.adm-grille3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 0 1.2rem; }
.adm-aide { font-size: .88rem; color: #6e675a; }
.adm-btn { display: inline-block; padding: .65rem 1.3rem; border: 0; border-radius: 8px; background: var(--sauge); color: #fff; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; }
.adm-btn:hover { filter: brightness(1.1); }
.adm-btn--p { padding: .35rem .7rem; font-size: .88rem; }
.adm-btn--clair { background: #e5dfd0; color: #3b362c; }
.adm-btn--danger { background: var(--fruit); }
.adm-case { font-weight: 400 !important; display: flex !important; align-items: center; gap: .5rem; }
.adm-case--bas { align-self: end; }
.adm-vignette { max-width: 120px; max-height: 120px; border-radius: 8px; margin: .4rem 0; background: #eee; object-fit: contain; }
.adm-vignette--p { width: 54px; height: 54px; margin: 0; }
.adm-table-wrap { overflow-x: auto; padding: .5rem; }
.adm-table { width: 100%; border-collapse: collapse; }
.adm-table th, .adm-table td { padding: .6rem; text-align: left; border-bottom: 1px solid #ece6d8; vertical-align: middle; }
.adm-table tr.masque { opacity: .55; }
.adm-actions { display: flex; flex-wrap: wrap; gap: .4rem; }
.adm-actions form { margin: 0; }
.adm-flash { padding: .8rem 1rem; border-radius: 8px; margin-bottom: 1rem; }
.adm-flash--ok { background: #e2efd8; color: #2f4a21; } .adm-flash--err { background: #f8dde1; color: #7a1b2c; } .adm-flash--info { background: #fdf0c9; color: #6b5313; }
.adm-login { max-width: 380px; margin: 3rem auto; text-align: center; }
.adm-login label { display: block; text-align: left; font-weight: 600; margin-bottom: .8rem; }
.adm-login img { margin: 0 auto 1rem; }
.adm-radio { display: flex !important; align-items: center; gap: .6rem; font-weight: 400 !important; }
fieldset { border: 0; padding: 0; margin: 0 0 1rem; }
/* Interrupteur On/Off */
.adm-interrupteur { display: flex !important; align-items: center; gap: .9rem; cursor: pointer; font-weight: 600; }
.adm-interrupteur input { position: absolute; opacity: 0; }
.adm-interrupteur .piste { flex: none; width: 56px; height: 30px; border-radius: 15px; background: #b8b2a2; position: relative; transition: background .2s; }
.adm-interrupteur .piste::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: left .2s; }
.adm-interrupteur input:checked + .piste { background: #b3262f; }
.adm-interrupteur input:checked + .piste::after { left: 29px; }
.adm-interrupteur input:focus-visible + .piste { outline: 3px solid #1f5a3c; }
@media (max-width: 640px) { .adm-grille2, .adm-grille3 { grid-template-columns: 1fr; } }

.adm-large { grid-column: 1 / -1; }
.adm-form select { display: block; width: 100%; margin-top: .25rem; padding: .6rem .7rem; font: inherit; border: 1px solid #c9c2b2; border-radius: 8px; background: #fff; }
.adm-form small.adm-aide { display: block; font-weight: 400; }
.adm-badge { background: var(--fruit); color: #fff; border-radius: 999px; padding: 0 .5rem; font-size: .8rem; font-weight: 700; }
.adm-message--nouveau { border-left: 6px solid var(--fruit); }
.adm-message header { display: flex; flex-wrap: wrap; gap: .4rem .8rem; align-items: center; }
.adm-message time { margin-left: auto; color: #6e675a; font-size: .88rem; }
.adm-puce { background: #e2efd8; color: #2f4a21; border-radius: 999px; padding: .1rem .7rem; font-size: .82rem; }
:focus-visible { outline: 3px solid #1b4fd8; outline-offset: 2px; }
