/* ---------------------------------------------------------------------------
   Thème : « étiquette d'inventaire » biomédical
   Vert bloc opératoire pour l'action, ambre d'étiquette pour ce qui manque.
   --------------------------------------------------------------------------- */
@font-face { font-family: "Inter"; src: url("fonts/Inter-Regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter-Medium.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter-SemiBold.woff") format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("fonts/InterDisplay-SemiBold.woff") format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("fonts/InterDisplay-Bold.woff") format("woff"); font-weight: 700; font-display: swap; }

:root {
  --fond: #F3F6F4;
  --surface: #FFFFFF;
  --surface-2: #EAF0ED;
  --encre: #13201C;
  --texte-2: #52625C;
  --trait: #D6DFDA;
  --trait-fort: #B7C5BF;
  --vert: #13685A;
  --vert-fonce: #0C4F44;
  --vert-clair: #DCEDE7;
  --sur-vert: #FFFFFF;
  --ambre: #F2C14E;
  --ambre-clair: #FFF4D6;
  --ambre-texte: #6A4D00;
  --ombre: 0 1px 2px rgba(19, 32, 28, .06), 0 8px 24px -12px rgba(19, 32, 28, .18);
  --r-petit: 6px;
  --r-moyen: 10px;
  --r-grand: 18px;
  --police: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --police-titre: "Inter Display", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --largeur: 1240px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --fond: #0E1614;
    --surface: #15201D;
    --surface-2: #1B2925;
    --encre: #E4ECE8;
    --texte-2: #9AAEA6;
    --trait: #263531;
    --trait-fort: #3A4D47;
    --vert: #57C4AB;
    --vert-fonce: #86D9C5;
    --vert-clair: #173B33;
    --sur-vert: #06231D;
    --ambre-clair: #33290F;
    --ambre-texte: #F2D58A;
    --ombre: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 30px -14px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--fond); color: var(--encre);
  font: 400 1rem/1.55 var(--police); font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: var(--vert); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--vert-fonce); }
:focus-visible { outline: 2px solid var(--vert); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--police-titre); letter-spacing: -.02em; line-height: 1.15; margin: 0; }
h2 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0; }
.visuellement-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sauter { position: absolute; left: 12px; top: -48px; background: var(--vert); color: var(--sur-vert); padding: 8px 12px; border-radius: var(--r-petit); z-index: 10; }
.sauter:focus { top: 12px; }

/* ---------- en-tête et pied ---------- */
.entete { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--fond) 82%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid color-mix(in srgb, var(--trait) 70%, transparent); }
.entete-int { max-width: var(--largeur); margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.marque { display: inline-flex; align-items: center; gap: 10px; color: var(--encre); text-decoration: none; font: 700 1.2rem/1 var(--police-titre); letter-spacing: -.03em; }
.marque:hover { color: var(--encre); }
.marque-signe { width: 28px; height: 28px; }
.marque-signe rect { fill: var(--vert); }
.marque-signe path { fill: var(--sur-vert); }
.marque-signe circle { fill: var(--vert); }
.entete nav { display: flex; gap: 22px; }
.entete nav a { color: var(--texte-2); text-decoration: none; font-weight: 500; font-size: .95rem; }
.entete nav a:hover { color: var(--encre); }
main { min-height: 60vh; }
.pied { border-top: 1px solid var(--trait); margin-top: 72px; }
.pied-int { max-width: var(--largeur); margin: 0 auto; padding: 28px 24px 40px; color: var(--texte-2); font-size: .9rem; display: grid; gap: 6px; }
.pied-int strong { color: var(--encre); }
.pied-meta { font-size: .85rem; }

/* ---------- champ de recherche ---------- */
.champ { position: relative; display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--trait-fort); border-radius: 14px; padding: 6px 6px 6px 46px; max-width: 680px; box-shadow: var(--ombre); transition: border-color .15s; }
.champ:focus-within { border-color: var(--vert); box-shadow: 0 0 0 4px color-mix(in srgb, var(--vert) 18%, transparent), var(--ombre); }
.champ-icone { position: absolute; left: 16px; width: 20px; height: 20px; fill: none; stroke: var(--texte-2); stroke-width: 2; stroke-linecap: round; }
.champ input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--encre); font: 400 1.02rem var(--police); padding: 10px 4px; }
.champ input:focus { outline: none; }
.champ input::placeholder { color: color-mix(in srgb, var(--texte-2) 80%, transparent); }
.champ input::-webkit-search-cancel-button { display: none; }
button, .champ button { font: 600 .98rem var(--police); color: var(--sur-vert); background: var(--vert); border: 0; border-radius: 10px; padding: 12px 20px; cursor: pointer; transition: background .15s; }
button:hover { background: var(--vert-fonce); }
.champ-grand { padding: 8px 8px 8px 52px; border-radius: 16px; }
.champ-grand .champ-icone { left: 20px; width: 22px; height: 22px; }
.champ-grand input { font-size: 1.12rem; padding: 12px 4px; }
.champ-grand button { padding: 14px 24px; font-size: 1.02rem; border-radius: 11px; }

/* ---------- accueil ---------- */
.hero { max-width: var(--largeur); margin: 0 auto; padding: 72px 24px 56px; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); font-weight: 700; letter-spacing: -.04em; line-height: 1.02; max-width: 17ch; text-wrap: balance; }
.hero-chapo { margin: 22px 0 30px; font-size: 1.12rem; line-height: 1.6; color: var(--texte-2); max-width: 54ch; }
.essais { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .92rem; }
.essais span { color: var(--texte-2); margin-right: 4px; }
.essais a { text-decoration: none; color: var(--encre); background: var(--surface); border: 1px solid var(--trait); border-radius: 999px; padding: 5px 12px; transition: border-color .15s, background .15s; }
.essais a:hover { border-color: var(--vert); background: var(--vert-clair); color: var(--encre); }

/* l'étiquette : l'élément signature */
.etiquette { position: relative; margin: 0; background: var(--surface); border: 1px solid var(--trait); border-radius: var(--r-grand); box-shadow: var(--ombre); overflow: hidden; transform: rotate(.8deg); }
.etiquette::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 10px; background: var(--ambre); }
.etiquette-trou { position: absolute; top: 26px; right: 24px; width: 16px; height: 16px; border-radius: 50%; background: var(--fond); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .18); }
.etiquette-haut { padding: 34px 28px 22px; }
.etiquette-bas { padding: 22px 28px 20px; border-top: 2px dashed var(--trait-fort); transition: opacity .35s ease, transform .35s ease; }
.etiquette-bas.cache { opacity: 0; transform: translateY(6px); }
.etiquette-legende { display: block; font-size: .8rem; font-weight: 500; color: var(--texte-2); margin-bottom: 6px; }
.etiquette-saisie { font: 600 1.55rem/1.2 var(--police-titre); letter-spacing: -.02em; min-height: 1.2em; }
.curseur { display: inline-block; width: 2px; height: 1.05em; margin-left: 3px; vertical-align: -0.12em; background: var(--vert); animation: clignote 1s steps(1) infinite; }
@keyframes clignote { 50% { opacity: 0; } }
.etiquette-categorie { font: 600 1.2rem/1.3 var(--police-titre); color: var(--vert); letter-spacing: -.01em; }
.etiquette-code { margin-top: 4px; font-size: .88rem; color: var(--texte-2); font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.etiquette-chiffres { display: flex; gap: 28px; margin: 18px 0 0; }
.etiquette-chiffres div { display: flex; flex-direction: column-reverse; }
.etiquette-chiffres dt { font-size: .82rem; color: var(--texte-2); }
.etiquette-chiffres dd { margin: 0; font: 700 1.9rem/1 var(--police-titre); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.etiquette-lien { display: block; padding: 14px 28px; background: var(--surface-2); border-top: 1px solid var(--trait); font-weight: 600; text-decoration: none; font-size: .95rem; }

.couverture { max-width: var(--largeur); margin: 0 auto; padding: 8px 24px 0; }
.couverture-tete { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 32px; align-items: baseline; padding-top: 32px; border-top: 1px solid var(--trait); }
.couverture-tete p { color: var(--texte-2); max-width: 60ch; }
.familles { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 0 32px; }
.familles li { display: flex; border-bottom: 1px solid var(--trait); }      /* le trait est sur la cellule : il s'aligne sur toute la rangée */
.familles a { flex: 1; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 12px 2px; color: var(--encre); text-decoration: none; }
.familles a:hover { color: var(--vert); }
.familles-n { color: var(--texte-2); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- pages intérieures ---------- */
.colonne { max-width: 820px; margin: 0 auto; padding: 40px 24px 0; }
.colonne-large { max-width: var(--largeur); }
.titre-page { font-size: clamp(1.7rem, 3.2vw, 2.3rem); font-weight: 700; letter-spacing: -.035em; margin: 40px 0 12px; text-wrap: balance; }
.chapo { color: var(--texte-2); font-size: 1.05rem; max-width: 62ch; }
.compris { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; color: var(--texte-2); font-size: .88rem; margin-bottom: 24px; }
.compris span { background: var(--surface-2); border-radius: 999px; padding: 3px 10px; color: var(--encre); }

.choix { list-style: none; padding: 0; margin: 0; background: var(--surface); border: 1px solid var(--trait); border-radius: var(--r-moyen); overflow: hidden; }
.choix li + li { border-top: 1px solid var(--trait); }
.choix-ligne { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px 20px; color: var(--encre); text-decoration: none; transition: background .12s; }
.choix-ligne:hover { background: var(--surface-2); color: var(--encre); }
.choix li:first-child .choix-ligne { box-shadow: inset 4px 0 0 var(--vert); }
.choix-texte { display: grid; gap: 4px; min-width: 0; }
.choix-meilleur { font-size: .8rem; font-weight: 600; color: var(--vert); }
.choix-terme { font: 600 1.12rem/1.3 var(--police-titre); letter-spacing: -.01em; }
.choix-vide .choix-terme { color: var(--texte-2); }
.choix-chemin { display: flex; flex-wrap: wrap; gap: 4px 0; font-size: .86rem; color: var(--texte-2); }
.choix-chemin > span + span::before { content: "›"; margin: 0 8px; color: var(--trait-fort); }
.choix-code { font-size: .8rem; color: var(--texte-2); font-variant-numeric: tabular-nums; letter-spacing: .03em; white-space: nowrap; }
.choix-etat { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }
.pastille { font-size: .85rem; font-weight: 600; white-space: nowrap; background: var(--vert-clair); color: var(--vert-fonce); border-radius: 999px; padding: 4px 12px; font-variant-numeric: tabular-nums; }
.pastille-ambre { background: var(--ambre-clair); color: var(--ambre-texte); font-weight: 500; }
.nature { font-size: .8rem; color: var(--texte-2); }

.directs { margin-top: 40px; }
.directs ul { list-style: none; padding: 0; margin: 12px 0 14px; }
.directs li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--trait); }
.directs li a { font-weight: 600; text-decoration: none; }
.directs li span { color: var(--texte-2); font-size: .9rem; }
.lien-fort { font-weight: 600; }

/* ---------- résultats ---------- */
.retour { display: inline-flex; align-items: center; gap: 8px; font-size: .92rem; text-decoration: none; font-weight: 500; }
.retour::before { content: ""; width: 7px; height: 7px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.tete-resultats { margin-top: 28px; }
.tete-resultats .titre-page { margin: 6px 0 6px; }
.fil { display: flex; flex-wrap: wrap; font-size: .88rem; color: var(--texte-2); }
.fil span + span::before { content: "›"; margin: 0 8px; color: var(--trait-fort); }
.code-cat { color: var(--texte-2); font-size: .9rem; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.barre { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin: 28px 0 14px; }
.bilan { color: var(--texte-2); }
.bilan strong { color: var(--encre); font-variant-numeric: tabular-nums; }
.filtres { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.selecteur select { font: 500 .93rem var(--police); color: var(--encre); background: var(--surface); border: 1px solid var(--trait-fort); border-radius: var(--r-petit); padding: 9px 34px 9px 12px; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--texte-2) 50%), linear-gradient(135deg, var(--texte-2) 50%, transparent 50%); background-position: right 16px top 52%, right 11px top 52%; background-size: 5px 5px; background-repeat: no-repeat; cursor: pointer; }
.bascule { display: inline-flex; align-items: center; gap: 10px; font-size: .92rem; color: var(--texte-2); cursor: pointer; }
.bascule input { appearance: none; width: 36px; height: 20px; border-radius: 999px; background: var(--trait-fort); position: relative; cursor: pointer; transition: background .15s; margin: 0; }
.bascule input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); transition: transform .15s; }
.bascule input:checked { background: var(--vert); }
.bascule input:checked::after { transform: translateX(16px); }

.tableau { background: var(--surface); border: 1px solid var(--trait); border-radius: var(--r-moyen); overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .93rem; table-layout: fixed; }
/* largeurs fixes : le tableau tient toujours dans la page, les textes longs passent à la ligne */
thead th:nth-child(1) { width: 21%; }
thead th:nth-child(2) { width: 10%; }
thead th:nth-child(4) { width: 10%; }
thead th:nth-child(5) { width: 16%; }
tbody th, tbody td { overflow-wrap: anywhere; }
thead th { text-align: left; font-size: .82rem; font-weight: 500; color: var(--texte-2); padding: 12px 16px; border-bottom: 1px solid var(--trait); background: var(--surface-2); white-space: nowrap; }
tbody th, tbody td { text-align: left; vertical-align: top; padding: 16px; border-bottom: 1px solid var(--trait); }
tbody tr:last-child > * { border-bottom: 0; }
.t-fab { font: 600 1rem/1.35 var(--police-titre); }
.t-sous { display: block; font: 400 .82rem/1.4 var(--police); color: var(--texte-2); margin-top: 4px; }
.t-pays { color: var(--texte-2); overflow-wrap: normal; }
.t-classe { white-space: nowrap; font-variant-numeric: tabular-nums; }
.modeles { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.modeles li { background: var(--surface-2); border-radius: var(--r-petit); padding: 2px 8px; font-size: .85rem; max-width: 100%; overflow-wrap: anywhere; }
.pastille-modele { display: inline-flex; align-items: center; gap: 6px; background: var(--surface-2); border-radius: var(--r-petit); padding: 2px 8px; font-size: .85rem; }
.pastille-modele a { color: inherit; text-decoration: none; }
.pastille-modele a:hover { color: var(--vert); text-decoration: underline; }
.point { flex: none; width: 7px; height: 7px; border-radius: 50%; }
.point-vente { background: #2E9B6A; }
.point-arrete { background: #C8483B; }
.modele-arrete { background: transparent; box-shadow: inset 0 0 0 1px var(--trait); color: var(--texte-2); }
.modele-arrete a, .modele-arrete > span:not(.point):not(.directive) { text-decoration: line-through; text-decoration-color: color-mix(in srgb, #C8483B 70%, transparent); }
.directive { flex: none; font-size: .72rem; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ambre-texte); background: var(--ambre-clair); border-radius: 4px; padding: 0 5px; }
.legende { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; font-size: .85rem; color: var(--texte-2); }
.legende li { display: inline-flex; align-items: center; gap: 6px; }
.legende .pastille-modele { color: var(--encre); }
.legende-note { margin-left: auto; }
.t-mandataire { margin-top: 6px; }
.t-alerte { color: #B0423A; font-weight: 500; }
.ligne-arretee .t-fab { color: var(--texte-2); }
.t-regl { display: block; margin-top: 4px; font-size: .8rem; color: var(--texte-2); }
.lien-eudamed { display: block; margin-top: 8px; font-size: .86rem; }
.t-modeles details { margin-top: 8px; }
.t-modeles summary { cursor: pointer; color: var(--vert); font-size: .86rem; font-weight: 500; }
.t-modeles details .modeles { margin-top: 8px; }
.t-contact { overflow-wrap: normal; }
.bouton-site { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .9rem; text-decoration: none; border: 1px solid var(--trait-fort); border-radius: var(--r-petit); padding: 6px 10px; color: var(--encre); max-width: 100%; }
.bouton-site:hover { border-color: var(--vert); color: var(--vert); }
.bouton-site svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.lien-email { display: block; margin-top: 8px; font-size: .86rem; word-break: break-all; }
.sans-contact { color: var(--texte-2); font-size: .86rem; }
.avertissement { margin-top: 14px; font-size: .88rem; color: var(--texte-2); max-width: 75ch; }

.absente { position: relative; margin: 28px 0 0; padding: 28px 28px 24px; max-width: 720px; background: var(--ambre-clair); border-radius: var(--r-grand); overflow: hidden; }
.absente::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 8px; background: var(--ambre); }
.absente .etiquette-trou { top: 24px; background: var(--fond); }
.absente h2 { color: var(--ambre-texte); font-size: 1.2rem; margin: 4px 40px 8px 0; }
.absente p { color: var(--ambre-texte); max-width: 60ch; }

/* ---------- demande ---------- */
.demande { margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--trait); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 40px; }
.demande-texte p { color: var(--texte-2); margin-top: 8px; max-width: 42ch; }
.demande form { display: grid; gap: 6px; }
.demande label { font-size: .9rem; font-weight: 600; margin-top: 8px; }
.facultatif { font-weight: 400; color: var(--texte-2); }
.demande textarea, .demande input[type=email] { width: 100%; font: 400 1rem var(--police); color: var(--encre); background: var(--surface); border: 1px solid var(--trait-fort); border-radius: var(--r-petit); padding: 11px 12px; }
.demande textarea:focus, .demande input:focus { outline: none; border-color: var(--vert); box-shadow: 0 0 0 3px color-mix(in srgb, var(--vert) 18%, transparent); }
.bouton-second { justify-self: start; margin-top: 12px; background: transparent; color: var(--vert); border: 1px solid var(--vert); }
.bouton-second:hover { background: var(--vert-clair); }
.piege { position: absolute; left: -9999px; }

/* ---------- texte et messages ---------- */
.texte h2 { margin: 36px 0 10px; }
.texte p, .texte li { max-width: 68ch; }
.texte p + p { margin-top: 12px; }
.texte ul { padding-left: 20px; }
.texte li { margin-bottom: 8px; }
.a-completer { background: var(--ambre-clair); color: var(--ambre-texte); padding: 10px 14px; border-radius: var(--r-petit); }
.message .champ { margin-top: 28px; }

/* ---------- journal ---------- */
.admin h2 { margin: 40px 0 6px; }
.admin .tableau { margin-top: 10px; }
.admin tbody td { padding: 10px 14px; }
.admin table { table-layout: auto; }
.admin thead th { width: auto !important; }
.admin p { color: var(--texte-2); }
.chiffres { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 20px 0; }
.chiffres div { background: var(--surface); border: 1px solid var(--trait); border-radius: var(--r-moyen); padding: 14px 16px; }
.chiffres strong { display: block; font: 700 1.7rem/1.1 var(--police-titre); letter-spacing: -.03em; }
.chiffres span { color: var(--texte-2); font-size: .85rem; }
.code { font-variant-numeric: tabular-nums; color: var(--texte-2); }

/* ---------- petits écrans ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 44px; padding-top: 44px; }
  .etiquette { transform: none; max-width: 460px; }
  .couverture-tete, .demande { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 640px) {
  .entete-int, .hero, .couverture, .colonne, .pied-int { padding-left: 16px; padding-right: 16px; }
  .hero h1 { font-size: 2.4rem; }
  .champ, .champ-grand { flex-wrap: wrap; padding: 8px; }
  .champ-icone, .champ-grand .champ-icone { top: 22px; left: 16px; }
  .champ input, .champ-grand input { padding-left: 32px; flex-basis: 100%; }
  .champ button { width: 100%; }
  .choix-ligne { flex-direction: column; align-items: flex-start; gap: 10px; }
  .choix-etat { align-items: flex-start; flex-direction: row; }
  .familles { grid-template-columns: 1fr; }
  .tableau { background: transparent; border: 0; }
  table, thead, tbody, tr, th, td { display: block; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  tbody tr { background: var(--surface); border: 1px solid var(--trait); border-radius: var(--r-moyen); margin-bottom: 12px; padding: 4px 0; }
  tbody th, tbody td { border: 0; padding: 8px 16px; }
  td[data-titre]::before { content: attr(data-titre); display: block; font-size: .78rem; color: var(--texte-2); margin-bottom: 4px; }
  .admin td[data-titre]::before { content: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* sélecteur de langue */
.entete nav .langue { font-size: .82rem; font-weight: 600; letter-spacing: .02em; color: var(--encre); border: 1px solid var(--trait-fort); border-radius: 999px; padding: 3px 10px; }
.entete nav .langue:hover { border-color: var(--vert); color: var(--vert); }
.entete nav { align-items: center; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .point-vente { background: #4CC28C; }
  :root:not([data-theme="light"]) .point-arrete { background: #E86A5C; }
  :root:not([data-theme="light"]) .t-alerte { color: #F08A7E; }
}
@media (max-width: 900px) { .legende-note { margin-left: 0; } }

/* fabricants reconnus dans la recherche */
.fab-trouves { list-style: none; padding: 0; margin: 0; background: var(--surface); border: 1px solid var(--trait); border-radius: var(--r-moyen); overflow: hidden; }
.fab-trouves li + li { border-top: 1px solid var(--trait); }
.fab-ligne { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 20px; color: var(--encre); text-decoration: none; }
.fab-ligne:hover { background: var(--surface-2); color: var(--encre); }
.fab-nom { font: 600 1.08rem/1.3 var(--police-titre); display: grid; gap: 2px; }
.fab-autres { font: 400 .82rem/1.4 var(--police); color: var(--texte-2); }
.fab-infos { color: var(--texte-2); font-size: .9rem; white-space: nowrap; }
.section-secondaire { margin-top: 40px; }
.section-secondaire h2 { margin-bottom: 14px; }
.section-secondaire .lien-fort { display: inline-block; margin-top: 12px; }
/* page fabricant */
.fiche-fab { display: grid; gap: 6px; margin-top: 6px; color: var(--texte-2); }
.fiche-fab-noms { display: block; font-size: .86rem; }
.fiche-fab-contact { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin-top: 6px; }
.lien-categorie { color: var(--encre); text-decoration: none; }
.lien-categorie:hover { color: var(--vert); text-decoration: underline; }
@media (max-width: 640px) { .fab-ligne { flex-direction: column; align-items: flex-start; gap: 4px; } .fab-infos { white-space: normal; } }

/* accueil : ce que l'on tape -> ce que l'on obtient */
.usages { margin: 26px 0 30px; display: grid; gap: 0; max-width: 560px; }
.usages div { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--trait); }
.usages div:first-child { border-top: 1px solid var(--trait); }
.usages dt { font-weight: 600; color: var(--encre); }
.usages dd { margin: 0; color: var(--texte-2); }
@media (max-width: 640px) { .usages div { grid-template-columns: 1fr; gap: 2px; } }

/* formulaires (contact, export) */
.formulaire { display: grid; gap: 6px; max-width: 620px; margin-top: 24px; }
.formulaire label { font-size: .9rem; font-weight: 600; margin-top: 10px; }
.formulaire input[type=email], .formulaire textarea, .formulaire select { width: 100%; font: 400 1rem var(--police); color: var(--encre); background: var(--surface); border: 1px solid var(--trait-fort); border-radius: var(--r-petit); padding: 11px 12px; }
.formulaire input:focus, .formulaire textarea:focus, .formulaire select:focus { outline: none; border-color: var(--vert); box-shadow: 0 0 0 3px color-mix(in srgb, var(--vert) 18%, transparent); }
.formulaire button { justify-self: start; margin-top: 14px; }
.formulaire .note { margin-top: 4px; }
.case-cocher { display: flex; gap: 10px; align-items: flex-start; font-weight: 400 !important; color: var(--texte-2); }
.case-cocher input { margin-top: 4px; accent-color: var(--vert); }
.rappel { background: var(--surface-2); border-radius: var(--r-petit); padding: 10px 14px; }
.erreurs { margin-top: 20px; max-width: 620px; background: color-mix(in srgb, #C8483B 12%, var(--surface)); border: 1px solid color-mix(in srgb, #C8483B 40%, transparent); border-radius: var(--r-moyen); padding: 10px 16px; }
.erreurs ul { margin: 0; padding-left: 18px; }
.message form { margin-top: 24px; }
/* actions du tableau */
.barre-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.bouton-export { display: inline-flex; align-items: center; font-weight: 600; font-size: .92rem; text-decoration: none; color: var(--vert); border: 1px solid var(--vert); border-radius: var(--r-petit); padding: 8px 14px; }
.bouton-export:hover { background: var(--vert-clair); color: var(--vert-fonce); }
.lien-signaler { display: block; margin-top: 10px; font-size: .78rem; color: var(--texte-2); }
.lien-signaler:hover { color: var(--encre); }
.note { color: var(--texte-2); font-size: .9rem; }
.formulaire + .note { margin-top: 28px; }
.absente.registre { margin-bottom: 8px; }

/* administration */
.admin-tete { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.admin-tete-droite { display: flex; gap: 14px; align-items: center; }
.admin-tete-droite button { padding: 8px 14px; font-size: .9rem; }
.periode select { margin-left: 8px; padding: 7px 10px; border: 1px solid var(--trait-fort); border-radius: var(--r-petit); background: var(--surface); color: var(--encre); font: inherit; }
.onglets { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--trait); margin: 18px 0 8px; }
.onglets a, .filtres-statut a { padding: 10px 14px; text-decoration: none; color: var(--texte-2); font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.onglets a[aria-current=page], .filtres-statut a[aria-current=page] { color: var(--encre); border-bottom-color: var(--vert); }
.badge { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--ambre); color: #3a2a00; font-size: .78rem; font-weight: 700; text-align: center; }
.section-tete { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 10px; margin-top: 36px; }
.section-tete h2 { margin: 0; }
.lien-csv { font-size: .86rem; font-weight: 600; margin-left: 10px; }
.chiffre-alerte { background: var(--ambre-clair) !important; border-color: transparent !important; text-decoration: none; color: var(--ambre-texte); border-radius: var(--r-moyen); padding: 14px 16px; }
.chiffre-alerte strong { display: block; font: 700 1.7rem/1.1 var(--police-titre); }
.chiffre-alerte span { font-size: .85rem; }
.grille-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 0 28px; }
.admin table { table-layout: auto; font-size: .88rem; }
.admin td.nb { text-align: right; white-space: nowrap; width: 1%; }
.admin td.url { font-family: ui-monospace, Consolas, monospace; font-size: .78rem; word-break: break-all; }
.barre-mini { display: inline-block; width: 60px; height: 6px; margin-right: 8px; border-radius: 3px; background: linear-gradient(90deg, var(--vert) var(--p), var(--surface-2) var(--p)); vertical-align: middle; }
.commande { background: var(--surface); border: 1px solid var(--trait); border-radius: var(--r-moyen); padding: 14px 16px; margin: 14px 0; }
.commande #cmd { display: block; margin: 8px 0 10px; padding: 10px; background: var(--surface-2); border-radius: var(--r-petit); font-size: .82rem; word-break: break-all; }
.commande button { padding: 6px 12px; font-size: .86rem; margin-top: 0; }
.filtres-statut { display: flex; gap: 2px; border-bottom: 1px solid var(--trait); }
.message-admin { background: var(--surface); border: 1px solid var(--trait); border-radius: var(--r-moyen); padding: 16px 18px; margin-top: 14px; }
.message-admin header { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: .88rem; color: var(--texte-2); }
.message-admin header strong { color: var(--encre); }
.message-texte { white-space: pre-wrap; margin: 10px 0; }
.message-admin details summary { cursor: pointer; color: var(--vert); font-weight: 600; margin-top: 6px; }
.message-admin .formulaire { max-width: none; }
.message-admin .formulaire input[type=text] { width: 100%; font: inherit; padding: 10px 12px; margin-top: 4px; border: 1px solid var(--trait-fort); border-radius: var(--r-petit); background: var(--surface); color: var(--encre); }
.message-admin .formulaire textarea { margin-top: 4px; }
.form-statut { margin-top: 10px; }
.form-statut button { padding: 6px 12px; font-size: .84rem; margin: 0; }
.reponse { border-left: 3px solid var(--vert); padding: 4px 0 4px 12px; margin: 10px 0; }
.reponse span { font-size: .8rem; color: var(--texte-2); }
.etat { font-size: .76rem; font-weight: 700; border-radius: 999px; padding: 2px 9px; }
.etat-nouveau { background: var(--ambre-clair); color: var(--ambre-texte); }
.etat-repondu { background: var(--vert-clair); color: var(--vert-fonce); }
.etat-traite { background: var(--surface-2); color: var(--texte-2); }
.champ-mdp { width: 100%; font: inherit; padding: 11px 12px; border: 1px solid var(--trait-fort); border-radius: var(--r-petit); background: var(--surface); color: var(--encre); }

.admin td.code { white-space: nowrap; }
.commande .note code { font-size: .82rem; }
.admin td { overflow-wrap: normal; word-break: normal; }
.admin td.url { word-break: break-all; }
.admin .tableau + .note { margin-top: 10px; }

.pastille-grise { background: var(--surface-2); color: var(--texte-2); font-weight: 500; }

/* pages Parcourir et catégories voisines */
.voisines { margin-top: 48px; }
.arbre { list-style: none; padding: 0; margin: 20px 0; columns: 2 420px; column-gap: 40px; }
.arbre li { break-inside: avoid; padding: 5px 0; border-bottom: 1px solid var(--trait); }
.arbre li.niveau-1 { font-weight: 700; margin-top: 18px; font-size: 1.05rem; }
.arbre li.niveau-2 { font-weight: 600; padding-left: 0; }
.arbre li.niveau-3 { padding-left: 16px; }
.arbre li.niveau-4 { padding-left: 32px; font-size: .94rem; }
.arbre a { text-decoration: none; color: var(--encre); }
.arbre a:hover { color: var(--vert); text-decoration: underline; }
.arbre-n { color: var(--texte-2); font-size: .82rem; white-space: nowrap; }
.lettres { display: flex; flex-wrap: wrap; gap: 4px; margin: 18px 0; }
.lettres a { min-width: 34px; padding: 6px 8px; text-align: center; border: 1px solid var(--trait); border-radius: var(--r-petit); text-decoration: none; color: var(--texte-2); font-weight: 600; }
.lettres a[aria-current=page] { background: var(--vert); border-color: var(--vert); color: var(--fond, #fff); }
.liste-fab { list-style: none; padding: 0; columns: 3 240px; column-gap: 32px; }
.liste-fab li { padding: 5px 0; break-inside: avoid; }
.liste-fab a { text-decoration: none; color: var(--encre); }
.liste-fab a:hover { color: var(--vert); text-decoration: underline; }
.pied-meta a + a { margin-left: 18px; }

/* menu des langues */
.langues { position: relative; }
.langues summary { list-style: none; cursor: pointer; font-size: .82rem; font-weight: 600; letter-spacing: .02em; color: var(--encre); border: 1px solid var(--trait-fort); border-radius: 999px; padding: 3px 10px; }
.langues summary::-webkit-details-marker { display: none; }
.langues summary:hover, .langues[open] summary { border-color: var(--vert); color: var(--vert); }
.langues ul { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; list-style: none; margin: 0; padding: 6px; min-width: 150px; background: var(--surface); border: 1px solid var(--trait); border-radius: var(--r-moyen); box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.langues li a { display: block; padding: 7px 10px; border-radius: var(--r-petit); text-decoration: none; color: var(--encre); font-size: .92rem; }
.langues li a:hover { background: var(--surface-2); }
.langues li a[aria-current] { font-weight: 700; color: var(--vert); }
.succes { background: var(--vert-clair); color: var(--vert-fonce); padding: 10px 14px; border-radius: var(--r-petit); }
.filtre-appris { display: flex; gap: 8px; margin: 14px 0 6px; max-width: 520px; }
.filtre-appris input { flex: 1; font: inherit; padding: 8px 12px; border: 1px solid var(--trait-fort); border-radius: var(--r-petit); background: var(--surface); color: var(--encre); }
.filtre-appris button { margin: 0; padding: 8px 14px; }
.bouton-petit { padding: 4px 10px !important; font-size: .8rem !important; margin: 0 !important; }

/* mise sur le marché dans le pays du visiteur */
.t-marche { display: block; margin-bottom: 8px; font-size: .8rem; line-height: 1.35; color: var(--texte-2); cursor: help; }
.t-marche.marche-oui { color: var(--vert-fonce); font-weight: 600; cursor: default; }
.t-marche.marche-oui::before { content: "✓ "; }
.fiche-marche span[title] { cursor: help; text-decoration: underline dotted; text-underline-offset: 3px; }
.fiche-marche strong.marche-oui { color: var(--vert-fonce); }
.fiche-marche strong.marche-oui::before { content: "✓ "; }

.n-refs { margin-left: 6px; font-size: .74rem; color: var(--texte-2); white-space: nowrap; cursor: help; }
