:root {
  --fond: #fbf6ec; --fond2: #f5ecdb; --carte: #fffdf8; --bord: #eadfc9;
  --vert: #33511f; --vert2: #5d7a3a; --vert-clair: #e3ebcf; --vert-pale: #f0f3e1;
  --texte: #2c2a22; --doux: #6f6a5c; --orange: #c2752b;
  --rouge: #a8322a; --rouge-f: #fbe9e4; --ambre: #9a5b06; --ambre-f: #fdf0d6; --jaune-f: #fbf5d4;
  --r: 16px; --ombre: 0 2px 10px rgba(96, 72, 30, .08);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fond); color: var(--texte); font: 16px/1.5 "Avenir Next", "Nunito", "Segoe UI", system-ui, sans-serif; display: flex; min-height: 100vh; }
a { color: var(--vert); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 1.8rem; line-height: 1.2; margin: 0 0 .3rem; color: var(--vert); font-weight: 600; }
h1 small, h2 small { font-weight: 400; color: var(--doux); font-size: .65em; }
h2 { font-size: 1.15rem; color: var(--vert); margin: 1.8rem 0 .7rem; font-weight: 600; }
h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--vert2); margin: 0 0 .25rem; }
.ic { width: 1.25em; height: 1.25em; flex: none; vertical-align: -.22em; }
.sous { color: var(--doux); margin: .2rem 0 1rem; font-size: .93rem; }
.vide { color: var(--doux); font-style: italic; padding: 1rem 0; }
.centre { text-align: center; } .droite { text-align: right; margin-top: .6rem; }
.fil { margin: 0 0 .4rem; font-size: .88rem; color: var(--doux); }
img { max-width: 100%; }

/* ---------- menu latéral ---------- */
.side { width: 262px; flex: none; background: linear-gradient(180deg, #f9f3e3, #f3ead6); border-right: 1px solid var(--bord); position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; }
.side-deco-h { height: 118px; background: url(img/fleurs-hg.jpg) left top / 244px auto no-repeat; mix-blend-mode: multiply; flex: none; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.side-deco-b { flex: 1 0 150px; background: url(img/fleurs-bg.jpg) left bottom / 252px auto no-repeat; mix-blend-mode: multiply; -webkit-mask-image: linear-gradient(transparent, #000 45%); mask-image: linear-gradient(transparent, #000 45%); pointer-events: none; }
.side-logo { display: none; }
body:not(.accueil) .side-logo { display: block; padding: 0 22px 6px; mix-blend-mode: multiply; }
body:not(.accueil) .side-deco-h { height: 84px; }
.side nav { padding: 6px 14px; }
.side .item, .side summary { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 12px; border-radius: 12px; color: var(--texte); font: inherit; font-size: .98rem; background: none; border: 0; cursor: pointer; text-align: left; list-style: none; }
.side summary::-webkit-details-marker { display: none; }
.side .item span, .side summary span { flex: 1; }
.side .item:hover, .side summary:hover { background: rgba(93, 122, 58, .1); text-decoration: none; }
.side .on { background: var(--vert-clair); color: var(--vert); font-weight: 600; }
.side summary .ic:last-child { width: 1em; transition: transform .15s; color: var(--doux); }
.side details[open] summary .ic:last-child { transform: rotate(90deg); }
.side .sub { display: block; padding: 6px 12px 6px 46px; border-radius: 10px; font-size: .92rem; color: #4a4638; }
.side .sub:hover { background: rgba(93, 122, 58, .1); text-decoration: none; }
.side .sub.tous { color: var(--doux); font-size: .85rem; }
.side hr { border: 0; border-top: 1px solid var(--bord); margin: 10px 8px; }
.side form { margin: 0; }
.burger, .voile { display: none; }

/* ---------- zone principale ---------- */
main { flex: 1; min-width: 0; }
.top { display: flex; align-items: center; gap: 12px; padding: 16px 32px 0; }
.page { padding: 20px 32px 60px; max-width: 1180px; }
.barre { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--bord); border-radius: 999px; padding: 4px 6px 4px 16px; box-shadow: var(--ombre); flex: 1; max-width: 640px; color: var(--doux); }
.barre:focus-within { border-color: var(--vert2); box-shadow: 0 0 0 3px rgba(93, 122, 58, .18); }
.barre input { flex: 1; border: 0; outline: 0; background: none; font: inherit; padding: 8px 0; min-width: 0; color: var(--texte); }
.barre.grande { max-width: 760px; padding: 6px 6px 6px 22px; font-size: 1.08rem; }
.flash { margin: 14px 32px 0; padding: 10px 16px; border-radius: 12px; background: var(--vert-clair); color: var(--vert); max-width: 1116px; }
.flash.err { background: var(--rouge-f); color: var(--rouge); }

.btn { display: inline-flex; align-items: center; gap: 7px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--bord); background: #fff; color: var(--vert); font: inherit; font-size: .93rem; font-weight: 600; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--vert-pale); text-decoration: none; }
.btn.primaire { background: var(--vert); border-color: var(--vert); color: #fff; }
.btn.primaire:hover { background: #26400f; }
.btn.danger { color: var(--rouge); } .btn.danger:hover { background: var(--rouge-f); }
.btn.discret { border-color: transparent; background: none; font-weight: 500; }
.btn.petit { padding: 4px 11px; font-size: .84rem; }
.icone-btn { border: 0; background: none; color: #b9ae97; cursor: pointer; padding: 6px; border-radius: 8px; }
.icone-btn:hover { color: var(--rouge); background: var(--rouge-f); }

/* ---------- accueil ---------- */
.accueil .page { padding-top: 0; }
.accueil .top { position: absolute; padding: 12px; }
.hero { text-align: center; position: relative; padding: 4px 0 6px; min-height: 250px; }
.hero-montagne { position: absolute; left: -32px; top: 0; width: 330px; mix-blend-mode: multiply; -webkit-mask-image: linear-gradient(90deg, #000 60%, transparent), linear-gradient(#000 60%, transparent); -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, #000 60%, transparent), linear-gradient(#000 60%, transparent); mask-composite: intersect; pointer-events: none; }
.hero-logo { width: min(440px, 80%); mix-blend-mode: multiply; position: relative; }
.hero .barre { margin: 6px auto 0; position: relative; }
.hero-aide { color: var(--doux); font-size: .9rem; margin: 8px 0 0; }
.tuiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 18px 0; }
.tuile { background: linear-gradient(180deg, #fffefa, #fbf3e4); border: 1px solid var(--bord); border-radius: var(--r); padding: 12px 10px 14px; text-align: center; box-shadow: var(--ombre); display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--texte); transition: transform .12s, box-shadow .12s; }
.tuile:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(96, 72, 30, .14); text-decoration: none; }
.tuile img { height: 84px; mix-blend-mode: multiply; object-fit: contain; }
.tuile span { font-size: 1.08rem; font-weight: 600; color: var(--vert); }
.tuile small { color: var(--doux); font-size: .8rem; }
.tuile.large { padding: 16px; } .tuile.sans-img .ic { width: 34px; height: 34px; color: var(--orange); margin: 8px 0; }
.trio { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.bloc { background: var(--carte); border: 1px solid var(--bord); border-radius: var(--r); padding: 16px 18px; box-shadow: var(--ombre); }
.bloc h2 { margin: 0 0 10px; display: flex; align-items: center; gap: 8px; }
.bloc h2:not(:first-child) { margin-top: 1.6rem; }
.bloc.vert { background: var(--vert-pale); border-color: #dde4c6; }
.trio .bloc > a:not(.btn) { display: flex; align-items: center; gap: 10px; background: #fffdf6; border-radius: 10px; padding: 8px 12px; margin-top: 6px; color: var(--texte); font-size: .95rem; }
.trio .bloc > a:not(.btn) span { flex: 1; } .trio .bloc > a:not(.btn):hover { background: #fff; text-decoration: none; box-shadow: var(--ombre); }
.trio .bloc > a .ic:last-child { width: 1em; color: var(--doux); }
.bloc.cabinet { text-align: center; } .bloc.cabinet h2 { justify-content: center; }
.bloc.cabinet p { margin: 0 0 10px; color: var(--doux); font-size: .9rem; }
.bloc.cabinet img { display: block; margin: 8px auto 0; mix-blend-mode: multiply; max-height: 64px; }
.autres { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; justify-content: center; }
.pastille { background: #fff; border: 1px solid var(--bord); border-radius: 999px; padding: 7px 16px; font-weight: 600; font-size: .93rem; }
.pastille:hover { background: var(--vert-pale); text-decoration: none; }

/* ---------- listes ---------- */
.entete { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 10px; }
.entete > img { height: 70px; mix-blend-mode: multiply; }
.entete > div:first-of-type { flex: 1; min-width: 200px; } .entete .sous { margin: 0; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; } .actions form { margin: 0; }
.onglets { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0 16px; border-bottom: 1px solid var(--bord); }
.onglets a { padding: 7px 14px; border-radius: 10px 10px 0 0; color: var(--doux); font-weight: 600; font-size: .93rem; border: 1px solid transparent; border-bottom: 0; margin-bottom: -1px; }
.onglets a.on { background: var(--carte); border-color: var(--bord); color: var(--vert); }
.outils-liste { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin: 12px 0; }
.outils-liste .barre { max-width: 360px; }
.alpha { display: flex; flex-wrap: wrap; gap: 2px; } .alpha a { padding: 2px 7px; border-radius: 6px; font-weight: 600; font-size: .88rem; } .alpha a:hover { background: var(--vert-clair); text-decoration: none; }
.groupe > h2 { margin: 1.3rem 0 .4rem; padding-bottom: 3px; border-bottom: 1px solid var(--bord); color: var(--orange); }
.lignes, .docs { list-style: none; margin: 0; padding: 0; }
.ligne { display: flex; align-items: center; gap: 6px; border-bottom: 1px solid #f1e8d6; }
.ligne > a { flex: 1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 8px 6px; color: var(--texte); min-width: 0; }
.ligne > a:hover { background: #fffdf4; text-decoration: none; }
.l-titre { font-weight: 600; color: var(--vert); } .l-st { color: var(--doux); font-size: .88rem; }
.l-ci { color: var(--orange); display: flex; } .l-ci .ic { width: 1em; }
.ligne form { margin: 0; }
.etoile { border: 0; background: none; cursor: pointer; color: #cfc4ab; padding: 4px; display: inline-flex; vertical-align: middle; }
.etoile:hover { color: var(--orange); } .etoile.on { color: #e0a015; } .etoile.on .ic { fill: #f4c542; }
.badge { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; padding: 2px 9px; border-radius: 999px; background: var(--vert-clair); color: var(--vert); white-space: nowrap; }
.b-gemmo { background: #efe6c6; color: #6b5a10; } .b-fdb { background: #fbdfe6; color: #99334f; } .b-aroma, .b-recette_he { background: #e8defa; color: #5a3d99; }
.b-phylak, .b-pekana { background: #fde6c8; color: #91530c; } .b-pediatrie, .b-maternite { background: #d9ecf5; color: #1f5f80; } .b-encours { background: var(--ambre-f); color: var(--ambre); }
.pliable { background: var(--carte); border: 1px solid var(--bord); border-radius: 12px; padding: 0 14px; margin: 8px 0; }
.pliable > summary { cursor: pointer; padding: 10px 0; font-weight: 600; color: var(--vert); }
.pliable[open] { padding-bottom: 10px; }
.sys-ligne { margin: 6px 0 12px; line-height: 2; } .sys-ligne strong { display: block; color: var(--orange); font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; }

/* ---------- recherche & cartes ---------- */
.filtres-ligne { display: flex; flex-wrap: wrap; gap: 14px; margin: 12px 0 4px; }
.filtres-ligne label { font-size: .85rem; color: var(--doux); display: flex; align-items: center; gap: 8px; }
select, input[type=text], input[type=password], input[type=number], textarea { font: inherit; padding: 8px 12px; border: 1px solid var(--bord); border-radius: 10px; background: #fff; color: var(--texte); max-width: 100%; }
select:focus, input:focus, textarea:focus { outline: 0; border-color: var(--vert2); box-shadow: 0 0 0 3px rgba(93, 122, 58, .16); }
.aide { background: var(--vert-pale); border-radius: var(--r); padding: 8px 18px; margin-top: 16px; }
.puces { display: flex; flex-wrap: wrap; gap: 7px; margin: 12px 0; }
.puce { background: #fff; border: 1px solid var(--bord); border-radius: 999px; padding: 4px 13px; font-size: .88rem; color: var(--texte); white-space: nowrap; }
.puce:hover { background: var(--vert-pale); text-decoration: none; } .puce.on { background: var(--vert); border-color: var(--vert); color: #fff; }
.puce b { font-weight: 700; color: var(--orange); margin-left: 3px; } .puce.on b { color: #ffe2b8; } .puce small { color: var(--doux); }
.puce.ind { border-color: #d6dfbb; background: #f8faef; }
.bloc-ind { background: var(--carte); border: 1px solid var(--bord); border-radius: var(--r); padding: 4px 16px 6px; margin: 14px 0; }
.bloc-ind h2 { margin: 10px 0 0; font-size: 1rem; }
.res-titre small { margin-left: 8px; }
.cartes { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 12px; }
.carte { background: var(--carte); border: 1px solid var(--bord); border-radius: var(--r); padding: 12px 14px; box-shadow: var(--ombre); min-width: 0; }
.carte-tete { display: flex; align-items: flex-start; gap: 8px; } .carte-tete .badge { margin-top: 4px; }
.carte-titre { flex: 1; font-weight: 700; font-size: 1.04rem; color: var(--vert); }
.carte-st { color: var(--doux); font-size: .88rem; margin: 2px 0 4px; overflow-wrap: anywhere; }
.carte p { margin: 6px 0 0; font-size: .93rem; }
.effs { list-style: none; margin: 6px 0; padding: 0; font-size: .92rem; } .effs li { padding: 2px 0; }
.effs.grand li { padding: 5px 0; border-bottom: 1px dashed #efe5d0; }
.eff-note { color: var(--doux); } .eff-note::before { content: "— "; }
.niv { display: inline-block; min-width: 3.3em; letter-spacing: 1px; font-size: .9em; }
.niv1 { color: #b8a25a; } .niv2 { color: #7f9a3d; } .niv3 { color: #3c7a1e; } .niv4 { color: #1d5c12; } .niv0 { color: var(--doux); }
.niv-titre { display: flex; align-items: center; gap: 8px; }
.legende { color: var(--doux); font-size: .8rem; margin-top: 12px; }

/* ---------- alertes ---------- */
.alerte { display: flex; gap: 9px; border-radius: 12px; padding: 8px 12px; margin-top: 8px; font-size: .9rem; border-left: 4px solid; overflow-wrap: anywhere; }
.alerte .ic { margin-top: 2px; } .alerte p { margin: 3px 0 0; }
.a-ci { background: var(--rouge-f); border-color: var(--rouge); color: #6d1f19; }
.a-ei { background: var(--ambre-f); border-color: #d98a14; color: #6b3f04; }
.a-int { background: var(--jaune-f); border-color: #c9b21a; color: #5c5206; }
.alertes { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 12px; margin: 10px 0 18px; }
.alertes .alerte { font-size: .96rem; padding: 12px 14px; }

/* ---------- fiche ---------- */
.fiche-tete { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.fiche-tete > div:first-child { flex: 1; min-width: 240px; }
.latin { font-style: italic; color: var(--vert2); font-size: 1.1rem; margin: 0; }
.fiche-corps { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.fiche-corps > :only-child { grid-column: 1 / -1; }
.champs { background: var(--carte); border: 1px solid var(--bord); border-radius: var(--r); padding: 6px 18px; box-shadow: var(--ombre); }
.champ { padding: 12px 0; border-bottom: 1px solid #f1e8d6; overflow-wrap: anywhere; } .champ:last-child { border: 0; }
.eff-bloc { background: var(--vert-pale); border: 1px solid #dde4c6; border-radius: var(--r); padding: 4px 18px 12px; }
.eff-bloc h2 { margin-top: 12px; } .eff-bloc h3 { margin-top: 14px; color: var(--orange); }
.note-carte { background: #fffbe6; border: 1px solid #efe3ad; border-radius: 12px; padding: 10px 14px; margin: 8px 0; } .note-carte p { margin: 4px 0 0; }
.pied-fiche { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 28px; color: var(--doux); font-size: .88rem; }
.docs.compact li { padding: 4px 0; } .docs small { color: var(--doux); }
.ext { font-size: .68rem; font-weight: 700; text-transform: uppercase; background: #efe6d2; color: #6f6247; border-radius: 6px; padding: 2px 6px; min-width: 3.2em; text-align: center; }
.ext-pdf { background: #f7d9d4; color: #96281f; } .ext-docx, .ext-doc { background: #d7e5f7; color: #1f4f8f; }
.galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 12px; }
.vignette { flex-direction: column; border: 1px solid var(--bord); border-radius: 12px; background: #fff; padding: 6px; text-align: center; font-size: .8rem; color: var(--texte); overflow: hidden; }
.vignette img { width: 100%; height: 130px; object-fit: cover; border-radius: 8px; background: var(--fond2); }
.vignette span { padding: 4px 2px 0; overflow-wrap: anywhere; }

/* ---------- édition ---------- */
.edition { max-width: 860px; }
.champ-e { display: block; margin: 0 0 14px; } .champ-e > span { display: block; font-weight: 600; font-size: .88rem; color: var(--vert); margin-bottom: 4px; }
.champ-e input, .champ-e textarea, .champ-e select { width: 100%; } textarea { resize: vertical; line-height: 1.45; }
.e-ci > span { color: var(--rouge); } .e-ci textarea { border-color: #e2b3ad; background: #fffaf9; }
.e-ei > span, .e-int > span { color: var(--ambre); } .e-ei textarea, .e-int textarea { border-color: #e9cf9d; background: #fffcf5; }
.eff-e { display: grid; grid-template-columns: minmax(140px, 1fr) auto minmax(120px, 1.2fr); gap: 10px; align-items: center; padding: 5px 0; border-top: 1px solid #f1e8d6; }
.eff-nom { font-size: .93rem; }
.seg { display: inline-flex; border: 1px solid var(--bord); border-radius: 999px; overflow: hidden; background: #fff; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: 4px 10px; font-size: .78rem; font-weight: 700; color: var(--doux); cursor: pointer; min-width: 2.2em; text-align: center; }
.seg input:checked + span { background: var(--vert); color: #fff; } .seg label:first-child input:checked + span { background: #e9e2d1; color: var(--doux); }
.seg input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: -2px; }
.eff-e input[type=text] { padding: 5px 10px; font-size: .9rem; }
.barre-actions { position: sticky; bottom: 0; background: linear-gradient(transparent, var(--fond) 30%); padding: 22px 0 14px; display: flex; gap: 10px; }
.sys-admin { background: var(--carte); border: 1px solid var(--bord); border-radius: var(--r); padding: 12px 16px; margin: 12px 0; }
.sys-admin ul { list-style: none; margin: 8px 0 0; padding: 0 0 0 14px; } .sys-admin li { padding: 3px 0; }
.ligne-form { display: flex; gap: 8px; align-items: center; margin: 0; flex-wrap: wrap; } .ligne-form input[type=text] { flex: 1; min-width: 160px; padding: 5px 10px; }
.ligne-form small { color: var(--doux); white-space: nowrap; } .titre-input { font-weight: 700; color: var(--vert); }
.ligne-form.ajout input { border-style: dashed; }

/* ---------- tableau type Excel ---------- */
.tableau-wrap { overflow: auto; max-height: 75vh; border: 1px solid var(--bord); border-radius: 12px; background: #fff; }
.tableau { border-collapse: separate; border-spacing: 0; font-size: .85rem; }
.tableau th, .tableau td { border-right: 1px solid #efe6d3; border-bottom: 1px solid #efe6d3; padding: 5px 8px; }
.tableau thead th { position: sticky; top: 0; background: var(--vert-pale); z-index: 2; min-width: 86px; max-width: 130px; vertical-align: bottom; font-size: .78rem; line-height: 1.25; }
.tableau tbody th { position: sticky; left: 0; background: #fffdf6; text-align: left; white-space: nowrap; z-index: 1; font-weight: 600; }
.tableau thead th:first-child { left: 0; z-index: 3; }
.tableau td { text-align: center; cursor: pointer; font-weight: 700; user-select: none; min-width: 60px; }
.tableau td:hover { outline: 2px solid var(--vert2); outline-offset: -2px; }
.tableau td.n1 { background: #f6f1d4; color: #7c6a1c; } .tableau td.n2 { background: #dfeaba; color: #48601a; } .tableau td.n3 { background: #b9d78c; color: #24480f; } .tableau td.n4 { background: #8cc063; color: #143507; }
.tableau td i { color: var(--orange); font-style: normal; } .tableau td.attente { opacity: .5; }

/* ---------- outils ---------- */
.grille2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; align-items: start; }
.calc { display: flex; flex-wrap: wrap; gap: 12px; margin: 10px 0; } .calc label { font-size: .85rem; color: var(--doux); display: flex; flex-direction: column; gap: 4px; } .calc input { width: 130px; }
.resultat { background: var(--vert-pale); border-radius: 12px; padding: 10px 14px; font-weight: 600; color: var(--vert); }
.resultat:empty { display: none; }
table.simple { border-collapse: collapse; width: 100%; font-size: .93rem; margin: 8px 0; } table.simple th, table.simple td { text-align: left; padding: 6px 8px; border-bottom: 1px solid #f1e8d6; font-weight: 400; } table.simple td { font-weight: 600; }
#fm-txt { width: 100%; }

/* ---------- connexion ---------- */
body.login { align-items: center; justify-content: center; background: var(--fond) url(img/fleurs-bg.jpg) left bottom / 300px auto no-repeat; padding: 20px; }
.login-box { background: var(--carte); border: 1px solid var(--bord); border-radius: 22px; padding: 26px 30px 30px; width: min(420px, 100%); box-shadow: 0 10px 40px rgba(96, 72, 30, .14); text-align: center; }
.login-box img { mix-blend-mode: multiply; width: 300px; } .login-box h1 { font-size: 1.2rem; margin: 6px 0 12px; }
.login-box p { color: var(--doux); font-size: .9rem; }
.login-box label { display: block; text-align: left; font-size: .88rem; font-weight: 600; color: var(--vert); margin: 12px 0; }
.login-box input { width: 100%; margin-top: 4px; } .login-box .btn { width: 100%; justify-content: center; padding: 11px; margin-top: 6px; } .login-box .flash { margin: 0 0 8px; }

/* ---------- mobile ---------- */
@media (max-width: 1000px) { .tuiles { grid-template-columns: repeat(2, 1fr); } .trio { grid-template-columns: 1fr; } .fiche-corps { grid-template-columns: 1fr; } .hero-montagne { display: none; } }
@media (max-width: 820px) {
  .side { position: fixed; left: 0; top: 0; z-index: 30; transform: translateX(-100%); transition: transform .2s; box-shadow: 0 0 40px rgba(0, 0, 0, .2); }
  #nav-toggle:checked ~ .side { transform: none; }
  #nav-toggle:checked ~ .voile { display: block; position: fixed; inset: 0; background: rgba(40, 30, 10, .35); z-index: 20; }
  .burger { display: inline-flex; padding: 8px; border-radius: 10px; background: #fff; border: 1px solid var(--bord); cursor: pointer; color: var(--vert); }
  .top { padding: 12px 16px 0; } .page { padding: 16px 16px 50px; } .flash { margin: 12px 16px 0; }
  .accueil .top { position: static; } .hero { min-height: 0; }
  .cartes { grid-template-columns: 1fr; } .eff-e { grid-template-columns: 1fr; gap: 4px; padding: 8px 0; }
  h1 { font-size: 1.45rem; }
}
@media print { .side, .top, .actions, .barre-actions, .etoile { display: none !important; } body { background: #fff; } .page { padding: 0; } }
.barre input:focus { box-shadow: none; }
.sapo select { max-width: 170px; padding: 5px 8px; } .sapo input { width: 86px; padding: 5px 8px; } .sapo td, .sapo th { padding: 4px 6px 4px 0; font-size: .88rem; }
.resultat b { font-size: 1.1em; } .resultat small { font-weight: 400; color: var(--doux); }
.carte-pa { font-size: .88rem; margin: 5px 0; padding: 6px 10px; background: #f6f3e4; border-radius: 10px; overflow-wrap: anywhere; } .carte-pa b { color: var(--vert2); }
mark { background: #fbe9a6; color: inherit; border-radius: 3px; padding: 0 2px; }
.b-lot { background: #fde6c8; color: #91530c; }
.lot { margin: 16px 0; padding-top: 12px; } .lot-tete { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; } .lot-tete h2 { margin: 0; flex: 1; }
.lot-n { display: inline-flex; align-items: center; justify-content: center; width: 1.7em; height: 1.7em; border-radius: 50%; background: var(--vert-clair); font-size: .85em; }
/* ---------- photos ---------- */
.photos { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin: 12px 0 6px; }
.photos figure { margin: 0; background: #fff; border: 1px solid var(--bord); border-radius: 14px; padding: 6px; box-shadow: var(--ombre); max-width: 340px; }
.photos figure img { display: block; height: 210px; max-width: 100%; object-fit: cover; border-radius: 10px; }
.photos figcaption { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: .72rem; color: var(--doux); padding: 3px 4px 0; min-height: 1.6em; }
.photos figcaption span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .photos figcaption form { margin: 0 0 0 auto; }
.photos figcaption .icone-btn { padding: 2px; } .photos figcaption .ic { width: 1.1em; }
.photo-ajout { margin: 0 0 6px; }
img.mini { width: 38px; height: 38px; object-fit: cover; border-radius: 9px; align-self: center; flex: none; background: var(--fond2); }
.carte-photo { float: right; width: 76px; height: 76px; object-fit: cover; border-radius: 12px; margin: 0 0 6px 10px; }
.carte-tete { clear: none; } .carte .etoile { order: 3; }
/* ---------- menu : retouches + éditeur ---------- */
.side nav { padding: 4px 12px 10px; }
.side .item, .side summary { padding: 8px 12px; font-size: .95rem; margin: 1px 0; }
.side .ic { color: var(--vert2); } .side .on .ic { color: var(--vert); }
.side details { margin: 1px 0; }
.side details[open] { background: rgba(255, 253, 246, .55); border-radius: 12px; padding-bottom: 6px; }
.side .sub { position: relative; margin: 0 6px 0 22px; padding: 5px 10px 5px 16px; font-size: .9rem; border-left: 2px solid #e3dbc3; border-radius: 0 8px 8px 0; }
.side .sub.on { border-left-color: var(--vert2); background: var(--vert-clair); color: var(--vert); font-weight: 600; }
.side .sub.tous { font-size: .8rem; font-style: italic; }
.side .item.discret { font-size: .85rem; color: var(--doux); }
.menu-ed .menu-ic { color: var(--vert2); display: inline-flex; } .menu-ed select { padding: 4px 8px; font-size: .85rem; max-width: 190px; }
.menu-ed .icone-btn { color: var(--doux); font-size: .8rem; } .menu-ed li { border-top: 1px solid #f1e8d6; padding: 5px 0; }
/* ---------- saponification : tableau qui tient dans la carte ---------- */
.sapo { table-layout: fixed; width: 100%; }
.sapo th:nth-child(1) { width: 36%; } .sapo th:nth-child(2), .sapo th:nth-child(3) { width: 21%; } .sapo th:nth-child(4) { width: 15%; } .sapo th:nth-child(5) { width: 7%; }
.sapo select, .sapo input { width: 100%; max-width: none; min-width: 0; } .sapo .sp-p { white-space: nowrap; font-size: .82rem; }
.sapo th { font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.calc label { flex: 1 1 130px; } .calc input, .calc select { width: 100%; }
.b-he { background: #e8defa; color: #5a3d99; }
