/* Espace admin de l'atelier Adril Art : les couleurs de la maquette (atelier/admin/maquette.html). */
:root { --paper:#f5eee2; --ink:#15304a; --soft:#4a5d6e; --ochre:#c27a3a; --line:#d9ccb6; --ok:#3f7a4f; --fond:#fbf7f0; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.45 Inter, system-ui, -apple-system, sans-serif; -webkit-text-size-adjust: 100%; }
body { max-width: 560px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
header { position: sticky; top: 0; z-index: 2; background: var(--paper); padding: calc(14px + env(safe-area-inset-top)) 20px 12px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
header b { font: 600 20px Georgia, serif; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
header a.retour { text-decoration: none; }
header span { font-size: 13px; color: var(--soft); flex: none; }
main { padding: 16px 20px calc(96px + env(safe-area-inset-bottom)); }
nav.bas { position: fixed; bottom: 0; left: 0; right: 0; display: flex; justify-content: center; border-top: 1px solid var(--line); background: var(--fond); padding: 10px 0 calc(12px + env(safe-area-inset-bottom)); z-index: 3; }
nav.bas a { flex: 0 1 186px; text-align: center; font-size: 13px; color: var(--soft); text-decoration: none; padding: 4px 0; }
nav.bas a.on { color: var(--ink); font-weight: 600; }
h2 { font: 600 17px Georgia, serif; margin: 22px 0 8px; }
.bouton { display: block; width: 100%; padding: 13px; border: 0; border-radius: 12px; background: var(--ink); color: #fff; font-weight: 600; text-align: center; cursor: pointer; text-decoration: none; }
.bouton.clair { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.bouton:disabled { opacity: .5; cursor: default; }
.petit { display: inline-block; padding: 7px 12px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-size: 13px; cursor: pointer; text-decoration: none; }
.depot { display: block; border: 2px dashed var(--line); border-radius: 14px; padding: 18px; text-align: center; color: var(--soft); margin-bottom: 14px; font-size: 13px; cursor: pointer; }
.depot b { color: var(--ink); }
.depot.survol { border-color: var(--ink); background: #fff; }
.depot input { display: none; }
form.nouvelle { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin-bottom: 16px; }
form.nouvelle img { width: 100%; max-height: 260px; object-fit: contain; border-radius: 8px; background: var(--paper); margin-bottom: 10px; }
label.champ { display: block; font-size: 12px; color: var(--soft); margin: 10px 0 4px; }
input[type=text], textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--fond); }
textarea { min-height: 72px; resize: vertical; }
.aide { font-size: 12px; color: var(--soft); margin-top: 4px; }
.carte { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.carte img { width: 64px; height: 84px; object-fit: cover; border-radius: 6px; flex: none; background: var(--line); }
.carte h3 { margin: 0 0 4px; font: 600 16px Georgia, serif; }
.carte .date { font-size: 12px; color: var(--soft); }
.pastilles { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.p { font-size: 11px; padding: 3px 8px; border-radius: 20px; background: #ece3d3; color: var(--soft); }
.p.ok { background: #dcebdc; color: var(--ok); }
.p.att { background: #f6e2cd; color: #9a5a1f; }
.p.ko { background: #f3d6d2; color: #9a2f22; }
.vide { color: var(--soft); text-align: center; padding: 30px 0; }
.reel { position: relative; border-radius: 14px; overflow: hidden; margin-bottom: 12px; background: #1b1410; aspect-ratio: 9 / 16; max-height: 62vh; margin-inline: auto; }
.reel video, .reel img, .reel iframe { width: 100%; height: 100%; object-fit: cover; display: block; border: 0; }
.reel .attente { position: absolute; inset: auto 0 0 0; padding: 10px 12px; background: rgba(0,0,0,.55); color: #fff; font-size: 13px; }
.variantes { display: flex; gap: 8px; margin-bottom: 14px; }
.variantes button { flex: 1; padding: 8px 0; border-radius: 10px; border: 1px solid var(--line); background: transparent; font-size: 13px; cursor: pointer; }
.variantes button.on { border-color: var(--ink); background: #fff; font-weight: 600; }
.reglage { display: flex; align-items: center; gap: 10px; font-size: 13px; margin: 8px 0; }
.reglage label { width: 86px; color: var(--soft); }
.reglage input { flex: 1; accent-color: var(--ink); }
.reglage output { width: 34px; text-align: right; color: var(--soft); font-variant-numeric: tabular-nums; }
.choix { display: flex; gap: 14px; font-size: 13px; margin: 10px 0 12px; color: var(--soft); }
.canal { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.canal > div:first-child { flex: 1; min-width: 0; }
.canal b { display: block; font-size: 15px; }
.canal small { color: var(--soft); font-size: 12px; display: block; }
.canal .actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.inter { appearance: none; -webkit-appearance: none; width: 46px; height: 28px; border-radius: 14px; background: var(--line); position: relative; flex: none; cursor: pointer; margin: 0; transition: background .15s; }
.inter::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: left .15s; }
.inter:checked { background: var(--ok); }
.inter:checked::after { left: 21px; }
.onglets { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.onglets button { padding: 7px 12px; border-radius: 18px; font-size: 13px; border: 1px solid var(--line); background: transparent; cursor: pointer; }
.onglets button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.md h1 { display: none; }
.md h2 { font: 600 16px Georgia, serif; margin: 20px 0 6px; padding-top: 10px; border-top: 1px solid var(--line); }
.md h3 { font: 600 15px Georgia, serif; margin: 16px 0 4px; }
.md p, .md li { font-size: 14px; color: var(--ink); }
.md ul { padding-left: 18px; margin: 6px 0; }
.md code { background: #ece3d3; padding: 1px 5px; border-radius: 5px; font-size: 12.5px; }
.md table { border-collapse: collapse; font-size: 13px; margin: 8px 0; }
.md td, .md th { border: 1px solid var(--line); padding: 4px 6px; text-align: left; }
.note { font-size: 12px; color: var(--soft); margin-top: 10px; }
.travail { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; font-size: 13px; }
.travail pre { white-space: pre-wrap; font-size: 11px; color: var(--soft); margin: 6px 0 0; max-height: 140px; overflow: auto; }
.legende { white-space: pre-wrap; background: var(--fond); border: 1px solid var(--line); border-radius: 10px; padding: 10px; font-size: 13px; margin-top: 8px; }
.toast { position: fixed; left: 50%; bottom: calc(80px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--ink); color: #fff; padding: 9px 16px; border-radius: 20px; font-size: 13px; z-index: 5; max-width: 90vw; }
.erreur { color: #9a2f22; font-size: 13px; margin-top: 8px; }
.connexion { padding: 18vh 28px 0; max-width: 380px; margin: 0 auto; }
.connexion h1 { font: 600 26px Georgia, serif; margin: 0 0 4px; }
.connexion p { color: var(--soft); margin: 0 0 22px; }
.connexion input { width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--fond); margin-bottom: 12px; }
