/* AnonySocial — feuille de style (relooking proposé le 25/09/2026 ; bande « Outils » et autres outils, 12/10/2026).
   Deux verts, un ambre, deux gris ; trois niveaux de bouton ; deux rayons ; une ombre.
   Images en data: seulement (CSP : img-src data:), aucune ressource extérieure. */
:root {
  color-scheme: light;
  --vert: #2e7d32; --vert-fonce: #1b5e20; --vert-pale: #f1f8f2; --vert-trait: #b7dcc0;
  --encre: #1f2a22; --gris: #56625a; --trait: #dde4de; --trait-fort: #c3cdc5; --fond: #f7f9f7;
  --ambre: #6b4a00; --ambre-fond: #fdf6e9; --ambre-trait: #e8c98f; --rouge: #b71c1c;
  --r-petit: 4px; --r: 8px; --r-carte: 12px; --ombre: 0 1px 3px rgba(0, 0, 0, 0.08), 0 8px 24px rgba(30, 60, 35, 0.1);
}
/* un élément caché reste caché, même si une règle lui donne un display */
[hidden] { display: none !important; }
*, ::before, ::after { box-sizing: border-box; }

/* Fond à facettes vert pâle (validé le 23/09), la page posée dessus comme une carte blanche */
html {
  min-height: 100%;
  background: #e6efe8 url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1600 1000" preserveAspectRatio="xMidYMid slice"><g stroke-width="1" stroke-linejoin="round"><polygon points="0,0 200,0 229,135" fill="%23eff6f1" stroke="%23eff6f1"/><polygon points="0,0 229,135 0,138" fill="%23f1f7f2" stroke="%23f1f7f2"/><polygon points="200,0 401,0 229,135" fill="%23ecf4ee" stroke="%23ecf4ee"/><polygon points="401,0 446,139 229,135" fill="%23e9f2eb" stroke="%23e9f2eb"/><polygon points="401,0 709,0 620,189" fill="%23edf5ef" stroke="%23edf5ef"/><polygon points="401,0 620,189 446,139" fill="%23ecf4ee" stroke="%23ecf4ee"/><polygon points="709,0 845,0 620,189" fill="%23eef5f0" stroke="%23eef5f0"/><polygon points="845,0 966,147 620,189" fill="%23f2f7f3" stroke="%23f2f7f3"/><polygon points="845,0 1148,0 966,147" fill="%23eef5f0" stroke="%23eef5f0"/><polygon points="1148,0 1098,217 966,147" fill="%23ebf4ed" stroke="%23ebf4ed"/><polygon points="1148,0 1349,0 1098,217" fill="%23ecf4ee" stroke="%23ecf4ee"/><polygon points="1349,0 1443,210 1098,217" fill="%23ecf4ee" stroke="%23ecf4ee"/><polygon points="1349,0 1600,0 1443,210" fill="%23e4f0e7" stroke="%23e4f0e7"/><polygon points="1600,0 1600,185 1443,210" fill="%23eef5f0" stroke="%23eef5f0"/><polygon points="0,138 229,135 156,450" fill="%23f2f8f3" stroke="%23f2f8f3"/><polygon points="0,138 156,450 0,466" fill="%23f3f8f4" stroke="%23f3f8f4"/><polygon points="229,135 446,139 423,350" fill="%23f1f7f3" stroke="%23f1f7f3"/><polygon points="229,135 423,350 156,450" fill="%23ecf5ee" stroke="%23ecf5ee"/><polygon points="446,139 620,189 423,350" fill="%23ecf4ee" stroke="%23ecf4ee"/><polygon points="620,189 624,373 423,350" fill="%23e8f2ea" stroke="%23e8f2ea"/><polygon points="620,189 966,147 964,355" fill="%23edf5ef" stroke="%23edf5ef"/><polygon points="620,189 964,355 624,373" fill="%23e7f1e9" stroke="%23e7f1e9"/><polygon points="966,147 1098,217 1155,419" fill="%23e5f1e8" stroke="%23e5f1e8"/><polygon points="966,147 1155,419 964,355" fill="%23e7f2ea" stroke="%23e7f2ea"/><polygon points="1098,217 1443,210 1351,406" fill="%23e6f1e8" stroke="%23e6f1e8"/><polygon points="1098,217 1351,406 1155,419" fill="%23e8f2ea" stroke="%23e8f2ea"/><polygon points="1443,210 1600,185 1600,338" fill="%23e3efe6" stroke="%23e3efe6"/><polygon points="1443,210 1600,338 1351,406" fill="%23e3efe6" stroke="%23e3efe6"/><polygon points="0,466 156,450 181,625" fill="%23e9f3ec" stroke="%23e9f3ec"/><polygon points="0,466 181,625 0,538" fill="%23e9f3eb" stroke="%23e9f3eb"/><polygon points="156,450 423,350 181,625" fill="%23ebf4ee" stroke="%23ebf4ee"/><polygon points="423,350 445,573 181,625" fill="%23e7f1ea" stroke="%23e7f1ea"/><polygon points="423,350 624,373 699,593" fill="%23f0f7f2" stroke="%23f0f7f2"/><polygon points="423,350 699,593 445,573" fill="%23edf5ef" stroke="%23edf5ef"/><polygon points="624,373 964,355 882,641" fill="%23e7f1e9" stroke="%23e7f1e9"/><polygon points="624,373 882,641 699,593" fill="%23e8f2ea" stroke="%23e8f2ea"/><polygon points="964,355 1155,419 1174,564" fill="%23e8f2ea" stroke="%23e8f2ea"/><polygon points="964,355 1174,564 882,641" fill="%23e8f2eb" stroke="%23e8f2eb"/><polygon points="1155,419 1351,406 1174,564" fill="%23e5f0e7" stroke="%23e5f0e7"/><polygon points="1351,406 1383,603 1174,564" fill="%23ecf5ee" stroke="%23ecf5ee"/><polygon points="1351,406 1600,338 1600,652" fill="%23edf5ef" stroke="%23edf5ef"/><polygon points="1351,406 1600,652 1383,603" fill="%23e7f2ea" stroke="%23e7f2ea"/><polygon points="0,538 181,625 194,867" fill="%23ecf5ef" stroke="%23ecf5ef"/><polygon points="0,538 194,867 0,832" fill="%23e8f2ea" stroke="%23e8f2ea"/><polygon points="181,625 445,573 194,867" fill="%23e7f2ea" stroke="%23e7f2ea"/><polygon points="445,573 396,788 194,867" fill="%23eaf3ec" stroke="%23eaf3ec"/><polygon points="445,573 699,593 396,788" fill="%23e8f2eb" stroke="%23e8f2eb"/><polygon points="699,593 726,751 396,788" fill="%23eef6f0" stroke="%23eef6f0"/><polygon points="699,593 882,641 726,751" fill="%23e6f1e9" stroke="%23e6f1e9"/><polygon points="882,641 912,735 726,751" fill="%23e4f0e7" stroke="%23e4f0e7"/><polygon points="882,641 1174,564 912,735" fill="%23eef6f0" stroke="%23eef6f0"/><polygon points="1174,564 1169,837 912,735" fill="%23e9f2eb" stroke="%23e9f2eb"/><polygon points="1174,564 1383,603 1383,852" fill="%23e3f0e6" stroke="%23e3f0e6"/><polygon points="1174,564 1383,852 1169,837" fill="%23e8f2eb" stroke="%23e8f2eb"/><polygon points="1383,603 1600,652 1600,773" fill="%23e1eee4" stroke="%23e1eee4"/><polygon points="1383,603 1600,773 1383,852" fill="%23e7f2ea" stroke="%23e7f2ea"/><polygon points="0,832 194,867 259,1000" fill="%23f1f7f3" stroke="%23f1f7f3"/><polygon points="0,832 259,1000 0,1000" fill="%23f0f7f2" stroke="%23f0f7f2"/><polygon points="194,867 396,788 259,1000" fill="%23edf5ef" stroke="%23edf5ef"/><polygon points="396,788 472,1000 259,1000" fill="%23e8f2ea" stroke="%23e8f2ea"/><polygon points="396,788 726,751 472,1000" fill="%23e9f2eb" stroke="%23e9f2eb"/><polygon points="726,751 698,1000 472,1000" fill="%23e5f1e8" stroke="%23e5f1e8"/><polygon points="726,751 912,735 907,1000" fill="%23ecf4ee" stroke="%23ecf4ee"/><polygon points="726,751 907,1000 698,1000" fill="%23e9f3ec" stroke="%23e9f3ec"/><polygon points="912,735 1169,837 1197,1000" fill="%23ebf4ed" stroke="%23ebf4ed"/><polygon points="912,735 1197,1000 907,1000" fill="%23e6f1e9" stroke="%23e6f1e9"/><polygon points="1169,837 1383,852 1442,1000" fill="%23e3efe6" stroke="%23e3efe6"/><polygon points="1169,837 1442,1000 1197,1000" fill="%23eaf3ec" stroke="%23eaf3ec"/><polygon points="1383,852 1600,773 1600,1000" fill="%23ebf4ee" stroke="%23ebf4ee"/><polygon points="1383,852 1600,1000 1442,1000" fill="%23eaf3ec" stroke="%23eaf3ec"/></g></svg>') center / cover no-repeat fixed;
}
body { max-width: 1080px; margin: 24px auto; padding: 44px 28px 22px; font: 0.9375rem/1.5 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: var(--encre); background: #fff; border-top: 4px solid var(--vert); border-radius: var(--r-carte); box-shadow: var(--ombre); }
h1 { margin: 0; font-size: 1.375rem; line-height: 1.2; }
h2 { margin: 0 0 6px; font-size: 1.0625rem; line-height: 1.3; }
a { color: var(--vert); }
a:hover { color: var(--vert-fonce); }
summary { cursor: pointer; }
code { padding: 1px 4px; font: 0.85em ui-monospace, Consolas, monospace; background: var(--fond); border-radius: var(--r-petit); }
.small { font-size: 0.8125rem; color: var(--gris); }
:focus-visible { outline: 2px solid var(--vert); outline-offset: 2px; }

/* Boutons : principal (vert), secondaire (contour), discret (texte) */
button, a.bouton { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 7px 14px; font: inherit; font-size: 0.875rem; font-weight: 600; line-height: 1.2; text-decoration: none; color: #fff; background: var(--vert); border: 1px solid var(--vert); border-radius: var(--r); cursor: pointer; }
button:where(:hover:not(:disabled)), a.bouton:where(:hover) { color: #fff; background: var(--vert-fonce); border-color: var(--vert-fonce); }
button:disabled { opacity: 0.5; cursor: default; }
button.secondary { font-weight: 500; color: var(--encre); background: #fff; border-color: var(--trait-fort); }
button.secondary:where(:hover:not(:disabled)) { color: var(--encre); background: var(--fond); border-color: #aebbb1; }
button.tertiary { min-height: 30px; padding: 5px 8px; font-size: 0.8125rem; font-weight: 500; color: var(--vert); background: none; border-color: transparent; }
button.tertiary:where(:hover:not(:disabled)) { color: var(--vert-fonce); background: var(--vert-pale); border-color: transparent; }
button.lien { display: inline; min-height: 0; padding: 0; font-size: inherit; font-weight: inherit; line-height: inherit; color: var(--vert); background: none; border: 0; text-decoration: underline; }
button.lien:where(:hover) { color: var(--vert-fonce); background: none; }
a.bouton-lien { display: inline-block; padding: 6px 2px; font-size: 0.8125rem; font-weight: 600; }
.files button, .tuto-croix, .documents-fermer, .historique-suppr, .historique-entree, .historique-menu button { min-height: 0; font-weight: 400; color: var(--gris); background: none; border: 0; border-radius: var(--r); }
.tuto-croix, .documents-fermer { flex: none; width: 30px; height: 30px; padding: 0; font-size: 1.375rem; line-height: 1; }
.tuto-croix:hover, .documents-fermer:hover { color: var(--encre); background: rgba(0, 0, 0, 0.06); }

/* En-tête : bêta, marque, réassurance en une ligne (l'explication se déplie) */
.beta { margin: 0 0 14px; padding: 7px 12px; font-size: 0.8125rem; line-height: 1.45; color: var(--ambre); background: var(--ambre-fond); border: 1px solid var(--ambre-trait); border-radius: var(--r); }
.beta a { color: inherit; }
.vibe-note { margin: -4px 0 14px; color: var(--gris); font-size: 0.75rem; line-height: 1.5; }
.vibe-note strong { color: var(--vert-fonce); }
.brand { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; }
.brand img { flex: none; width: 40px; height: 40px; border-radius: var(--r-carte); }
.brand > div { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 12px; min-width: 0; }
.tagline { margin: 0; font-size: 0.875rem; color: var(--gris); }
.aide-liens { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 2px 0 0; font-size: 0.8125rem; }
.hint { margin: 0 0 12px; font-size: 0.875rem; color: var(--gris); }
.hint summary { display: block; padding-left: 24px; list-style: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232e7d32' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") 0 2px / 16px no-repeat; }
.hint summary::-webkit-details-marker { display: none; }
.hint strong { margin-right: 8px; font-weight: 600; color: var(--vert-fonce); }
.hint .plus { font-size: 0.8125rem; color: var(--vert); text-decoration: underline; }
.hint p { margin: 6px 0 0 24px; }

/* Tutoriel « Premiers pas » : étapes sur deux colonnes quand il a la place */
.tutoriel { container-type: inline-size; margin: 0 0 14px; padding: 16px 20px; background: var(--vert-pale); border: 1px solid var(--vert-trait); border-radius: var(--r-carte); }
.tuto-tete { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.tutoriel h2 { color: var(--vert-fonce); }
.tuto-rassurer { margin: 0 0 12px; }
.tuto-etapes { margin: 0 0 10px; padding-left: 1.4em; }
.tuto-etapes li { margin: 0 0 8px; padding-left: 4px; break-inside: avoid; }
.tuto-etapes li::marker { font-weight: 700; color: var(--vert); }
.tutoriel .small { margin: 0; }
@container (min-width: 860px) { .tuto-etapes { columns: 3; column-gap: 32px; } }

/* Zone de travail */
.outil { container-type: inline-size; }
#drop { margin: 0 0 8px; padding: 14px 20px; text-align: center; color: var(--gris); background: var(--vert-pale); border: 2px dashed var(--vert-trait); border-radius: var(--r-carte); cursor: pointer; }
.depot-titre { margin: 0; font-weight: 600; color: var(--encre); }
.depot-titre::before { content: ""; display: inline-block; width: 22px; height: 22px; margin-right: 8px; vertical-align: -5px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232e7d32' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 15V4'/%3E%3Cpath d='m7 9 5-5 5 5'/%3E%3Cpath d='M4 15v3a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-3'/%3E%3C/svg%3E") center / contain no-repeat; }
#drop:hover, #drop.hover, #drop.exemple-survol { background-color: #e6f2e8; border-color: var(--vert); }
.depot-aide { display: inline-block; margin-left: 4px; font-size: 0.8125rem; font-weight: 400; color: var(--gris); }
.depot-boutons { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 10px 0 0; }
.files { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.files:not(:empty) { margin-bottom: 8px; }
.files li { display: inline-flex; overflow: hidden; font-size: 0.8125rem; background: #fff; border: 1px solid var(--trait-fort); border-radius: var(--r); }
.files .badge { display: flex; align-items: center; padding: 4px 7px; font-size: 0.6875rem; font-weight: 700; color: #fff; }
.files .name { align-self: center; max-width: 260px; padding: 0 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.files button { padding: 2px 8px; font-size: 1.0625rem; }
.files button:hover { color: var(--rouge); }
.option { display: inline-flex; align-items: flex-start; gap: 7px; font-size: 0.8125rem; line-height: 1.4; color: var(--gris); }
.outil > .option, .historique .option { display: flex; margin: 0 0 6px; }
input[type="checkbox"] { flex: none; width: 15px; height: 15px; margin: 1px 0 0; accent-color: var(--vert); }
.entete-col { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 12px 0 5px; white-space: nowrap; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--gris); }
.entete-col .meta { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 400; letter-spacing: 0; text-transform: none; }
textarea { display: block; width: 100%; height: 260px; padding: 10px 12px; resize: vertical; font: inherit; line-height: 1.55; color: var(--encre); background: #fff; border: 1px solid var(--trait-fort); border-radius: var(--r); }
textarea:focus, .field input:focus { border-color: var(--vert); box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.15); outline: none; }
textarea::placeholder { color: #6b766e; }
#output { background: #fafcfa; }
textarea[readonly] { color: var(--gris); background: var(--fond); }
.small-area { height: 110px; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0; }
.actions-source .option, .actions-resultat .option { flex-basis: 100%; }
.correspondance { row-gap: 0; }
.status { min-height: 1.4em; margin: 6px 0; font-size: 0.875rem; color: var(--gris); }
progress { display: block; width: 100%; height: 6px; margin: 4px 0 8px; accent-color: var(--vert); }
/* Poignée entre les deux cadres (côte à côte seulement) : glisser pour élargir l'un ou l'autre */
.separateur { display: none; position: relative; cursor: col-resize; touch-action: none; }
.separateur::before { content: ""; position: absolute; inset: 0 8px; border-radius: 1px; }
.separateur::after { content: ""; position: absolute; top: 50%; left: 6px; width: 6px; height: 40px; margin-top: -20px; background: var(--trait-fort); border-radius: 3px; }
.separateur:hover::before, .separateur:focus-visible::before, .separateur.glisse::before { background: var(--vert-trait); }
.separateur:hover::after, .separateur:focus-visible::after, .separateur.glisse::after { background: var(--vert); }
.separateur:focus-visible { outline: none; }
body.glisse-separateur { cursor: col-resize; user-select: none; }
/* Assez de place : ce qui entre à gauche, ce qui sort à droite, le reste en dessous sur toute la largeur */
@container (min-width: 720px) {
  .atelier { display: grid; grid-template-columns: minmax(0, var(--part-source, 50fr)) 18px minmax(0, var(--part-resultat, 50fr)); grid-template-areas: "tsrc . tres" "src sep res" "asrc . ares" "asrc . corr" "stat . corr" "prog prog prog" "masq masq masq" "vig vig vig"; }
  .separateur { display: block; grid-area: sep; }
  .entete-source { grid-area: tsrc; }
  .entete-resultat { grid-area: tres; }
  #input { grid-area: src; }
  #output { grid-area: res; }
  .actions-source { grid-area: asrc; align-self: start; }
  .actions-resultat { grid-area: ares; align-self: start; }
  #status { grid-area: stat; }
  .correspondance { grid-area: corr; align-self: start; margin-top: 0; }
  #progress { grid-area: prog; }
  #masquage-panneau { grid-area: masq; }
  #vig { grid-area: vig; }
  .atelier textarea { height: clamp(240px, calc(100vh - 500px), 480px); }
}

/* Encadrés : lecture, restauration, points de vigilance */
.ocr-alerte, .vigilance { margin: 8px 0; padding: 12px 14px; font-size: 0.875rem; background: var(--ambre-fond); border: 1px solid var(--ambre-trait); border-radius: var(--r); }
.vigilance.attention { background: var(--fond); border-color: var(--trait); }
.ocr-alerte p, .vigilance p { margin: 0 0 8px; }
.ocr-alerte p:last-child { margin-bottom: 0; }
.ocr-alerte .titre, .vigilance .titre { font-weight: 600; }
.ocr-alerte .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ocr-alerte button, .vigilance button { min-height: 30px; padding: 5px 12px; font-size: 0.8125rem; }
.vigilance ul { margin: 0 0 8px; padding: 0; list-style: none; }
.vigilance li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 6px 0; border-top: 1px solid rgba(0, 0, 0, 0.07); }
.vigilance li:first-child { border-top: 0; }
.vigilance .extrait { padding: 1px 7px; font-weight: 600; background: #fff; border: 1px solid var(--trait); border-radius: var(--r-petit); }
.vigilance .pourquoi { font-size: 0.8125rem; color: var(--gris); }
.vigilance .spacer { flex: 1 1 auto; }
.vigilance li button { font-weight: 500; color: var(--vert); background: #fff; border-color: var(--vert-trait); }
.vigilance li button:where(:hover) { color: var(--vert-fonce); background: var(--vert-pale); border-color: var(--vert); }
.vigilance button.ecarter { padding: 5px 4px; font-weight: 400; color: var(--gris); background: none; border-color: transparent; text-decoration: underline; }

/* Masquage du PDF */
.masquage { margin: 10px 0; padding: 14px 16px; border: 1px solid var(--trait); border-radius: var(--r-carte); }
.masquage p { margin: 0 0 8px; }
.masquage .avertissement { padding: 6px 10px; color: var(--ambre); background: var(--ambre-fond); border-left: 3px solid var(--ambre-trait); border-radius: var(--r-petit); }
.masquage .row { gap: 6px; }
.masquage .tertiary { min-width: 34px; color: var(--encre); background: #fff; border-color: var(--trait-fort); }
.masquage .tertiary:where(:hover:not(:disabled)) { background: var(--fond); border-color: #aebbb1; }
.masquage select { max-width: 260px; padding: 5px 8px; font: inherit; font-size: 0.8125rem; border: 1px solid var(--trait-fort); border-radius: var(--r); }
#masquage-canevas { display: block; width: 100%; height: auto; border: 1px solid var(--trait-fort); border-radius: var(--r-petit); cursor: crosshair; touch-action: none; }
.masquage-liste { display: flex; flex-wrap: wrap; gap: 4px 14px; max-height: 160px; margin: 0 0 8px; padding: 0; overflow-y: auto; font-size: 0.8125rem; list-style: none; }
.masquage-liste label { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.masquage-liste .extrait { color: var(--gris); }

/* Dictionnaire, mot de passe */
#dico { margin: 14px 0 0; }
#dico summary { font-size: 0.875rem; color: var(--gris); }
#dico[open] summary { margin-bottom: 8px; }
.field { display: block; margin: 10px 0; font-size: 0.875rem; }
.field input { display: block; width: 100%; margin-top: 4px; padding: 8px 10px; font: inherit; border: 1px solid var(--trait-fort); border-radius: var(--r); }
.error { min-height: 1em; color: var(--rouge); }
dialog { width: calc(100% - 32px); max-width: 420px; padding: 20px 22px; color: var(--encre); border: 0; border-radius: var(--r-carte); box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25); }
dialog::backdrop { background: rgba(20, 30, 22, 0.4); }

/* Bas de page : les autres outils pour le travail social (12/10/2026). Note Réunion en vedette ; à côté,
   le logiciel pour ordinateur, l'application pour téléphone et la supervision à venir. */
.outils-bande { container-type: inline-size; margin: 24px 0 12px; padding: 16px 20px 18px; background: var(--vert-pale); border: 1px solid var(--vert-trait); border-radius: var(--r-carte); }
.outils-bande > h2 { margin-bottom: 2px; }
.outils-bande > .small { margin: 0 0 12px; }
.outils-grille { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.outils-grille h3 { margin: 0; font-size: 0.9375rem; line-height: 1.3; }
.outils-grille p { margin: 0; }
.outil-vedette { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px 18px 16px; font-size: 0.875rem; background: #fff; border: 1px solid var(--trait); border-top: 3px solid var(--vert); border-radius: var(--r-carte); }
.outil-vedette .outil-tete { display: flex; align-items: center; gap: 10px; }
.outil-vedette h3 { font-size: 1.125rem; }
.outil-vedette .small { margin-top: -2px; }
.atouts { display: grid; gap: 3px; margin: 0; padding: 0; list-style: none; }
.atouts li { padding-left: 22px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232e7d32' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") 0 3px / 15px no-repeat; }
.outil-vedette .bouton { margin-top: auto; }
.outil-ligne { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 4px 12px; padding: 10px 14px; font-size: 0.8125rem; color: var(--gris); background: #fff; border: 1px solid var(--trait); border-radius: var(--r); }
.outil-ligne h3 { color: var(--encre); }
.outil-ligne .tuile { align-self: start; }
.outil-ligne .bouton-lien { grid-column: 2; justify-self: start; padding: 2px 0 0; }
.outil-ligne.bientot { background: rgba(255, 255, 255, 0.55); border-style: dashed; border-color: var(--trait-fort); }
@container (min-width: 720px) {
  .outils-grille { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .outil-vedette { grid-row: span 3; }
  .outil-ligne { grid-template-columns: auto minmax(0, 1fr) auto; }
  .outil-ligne .tuile { align-self: center; }
  .outil-ligne .bouton-lien { grid-column: 3; padding: 6px 2px; }
}
.signaler { margin: 12px 0; padding: 0 16px; border: 1px solid var(--trait); border-radius: var(--r-carte); }
.signaler summary { padding: 12px 0; font-weight: 600; }
.signaler[open] { padding-bottom: 14px; }
.piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
#bug-etat { margin: 4px 0 0; }
.capture-aide { display: block; margin: 2px 0 8px; }
.capture { margin: 8px 0 6px; }
.capture img { display: block; max-width: 100%; max-height: 240px; border: 1px solid var(--trait-fort); border-radius: var(--r); }
.capture figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; margin-top: 4px; font-size: 0.8125rem; color: var(--gris); }
.capture-champ { margin: 10px 0; font-size: 0.875rem; }
.capture-champ .option { display: flex; margin-top: 8px; }
.capture-zone { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 16px; padding: 12px 14px; text-align: center; background: var(--vert-pale); border: 2px dashed var(--vert-trait); border-radius: var(--r-carte); cursor: pointer; }
.capture-zone:hover, .capture-zone.survol { background-color: #e6f2e8; border-color: var(--vert); }
.capture-zone .depot-titre { font-size: 0.875rem; }
/* Au doigt : ni glisser ni Ctrl+V, le bouton seul */
@media (hover: none) and (pointer: coarse) {
  .souris-seulement { display: none; }
  .capture-zone { justify-content: flex-start; padding: 0; background: none; border: 0; }
}
footer { margin-top: 20px; padding-top: 14px; font-size: 0.8125rem; line-height: 1.5; color: var(--gris); border-top: 1px solid var(--trait); }
.pied { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px 24px; }
footer h2 { margin: 0 0 6px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--gris); }
footer ul { margin: 0; padding: 0; list-style: none; }
footer li { margin: 0 0 5px; }

/* Volet « Documents » à droite, deux onglets : Exemples, Mes documents (compteur ; titres visibles dans l'onglet seulement).
   Son bouton reste dans le haut de la carte et passe sous le volet ouvert. */
body { position: relative; }
.volets-boutons { position: absolute; top: 9px; right: 14px; z-index: 4; display: flex; gap: 6px; }
.volets-boutons button { min-height: 30px; padding: 4px 12px; font-size: 0.8125rem; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06); }
.documents { position: fixed; top: 24px; right: 12px; z-index: 5; width: 288px; height: calc(100vh - 48px); overflow-y: auto; padding: 14px 14px 20px; font-size: 0.8125rem; line-height: 1.45; background: #fff; border: 1px solid var(--trait); border-top: 3px solid var(--vert); border-radius: var(--r-carte); box-shadow: var(--ombre); }
.documents-tete { display: flex; align-items: flex-end; justify-content: space-between; gap: 4px; margin-bottom: 4px; border-bottom: 1px solid var(--trait); }
.onglets { display: flex; gap: 2px; min-width: 0; }
.onglets [role="tab"] { min-width: 0; min-height: 34px; padding: 6px 5px; overflow: hidden; font-size: 0.8125rem; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; color: var(--gris); background: none; border: 0; border-bottom: 2px solid transparent; border-radius: 0; }
.onglets [role="tab"]:hover { color: var(--encre); background: none; }
.onglets [role="tab"][aria-selected="true"] { color: var(--vert-fonce); border-bottom-color: var(--vert); }
.compte { display: inline-block; min-width: 18px; margin-left: 4px; padding: 0 6px; font-size: 0.6875rem; font-weight: 700; line-height: 1.5; text-align: center; color: var(--vert-fonce); background: var(--vert-pale); border: 1px solid var(--vert-trait); border-radius: var(--r-carte); }
.historique .small, .exemples .small { margin: 6px 0 10px; }
.historique-liste, .exemples-liste { margin: 10px 0; padding: 0; list-style: none; }
.historique-liste li { display: flex; margin-bottom: 2px; border-radius: var(--r); }
.historique-liste li:hover, .historique-liste li.actif { background: var(--vert-pale); }
.historique-entree { display: block; flex: 1 1 auto; min-width: 0; padding: 6px 8px; font-size: 0.8125rem; text-align: left; color: var(--encre); }
.historique-entree .titre { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.historique-entree .date { display: block; margin-top: 2px; font-size: 0.75rem; color: var(--gris); }
.historique-suppr { padding: 2px 8px; font-size: 1.0625rem; visibility: hidden; }
.historique-liste li:hover .historique-suppr, .historique-suppr:focus { visibility: visible; }
.historique-menu { position: fixed; z-index: 20; display: flex; flex-direction: column; min-width: 150px; padding: 4px; background: #fff; border: 1px solid var(--trait); border-radius: var(--r); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15); }
.historique-menu button { justify-content: flex-start; padding: 7px 10px; font-size: 0.8125rem; color: var(--encre); }
.historique-menu button:hover, .historique-menu button:focus { background: var(--vert-pale); }
.historique-menu button[data-action="supprimer"] { color: var(--rouge); }
.exemples-liste li { margin-bottom: 8px; padding: 10px 12px; border: 1px solid var(--trait); border-radius: var(--r); cursor: grab; }
.exemples-liste li:hover { border-color: var(--vert-trait); }
.exemples-liste li:active { cursor: grabbing; }
.exemples-liste .tete { display: flex; align-items: center; gap: 6px; }
.exemples-liste .badge { padding: 2px 5px; font-size: 0.6875rem; font-weight: 700; color: #fff; border-radius: var(--r-petit); }
.exemples-liste .titre { font-weight: 600; }
.exemples-liste .detail { display: block; margin: 3px 0 8px; font-size: 0.75rem; color: var(--gris); }
.exemples-liste .actions { display: flex; align-items: center; gap: 12px; }
.exemples-liste button { min-height: 28px; padding: 4px 12px; font-size: 0.8125rem; }
/* Très large : le volet en colonne (la croix le ferme, « Documents » le rouvre), la page centrée dans la place qui
   reste, « Premiers pas » juste à côté du volet */
@media (min-width: 1600px) {
  /* 120 px au moins à gauche : la place de la bande « Outils » (88 px et deux marges de 16 px) */
  body:not(.sans-exemples):not(.page-texte) { margin-left: max(120px, calc((100vw - 1396px) / 2)); margin-right: 316px; padding-top: 28px; }
  body:not(.sans-exemples) .documents-bouton { display: none; }
  body.sans-exemples .documents { display: none; }
  body:not(.sans-exemples):not(.page-texte):has(#tutoriel:not([hidden])) { margin-left: max(120px, calc((100vw - 1732px) / 2)); margin-right: 652px; }
  body:not(.sans-exemples) .tutoriel { position: fixed; top: 24px; right: 312px; z-index: 4; width: 328px; max-height: calc(100vh - 48px); overflow-y: auto; margin: 0; padding: 14px 16px; font-size: 0.875rem; border-top: 3px solid var(--vert); box-shadow: var(--ombre); }
  body:not(.sans-exemples):not(.page-texte) .outils-rail { left: max(16px, calc((100vw - 1396px) / 2 - 104px)); }
  body:not(.sans-exemples):not(.page-texte):has(#tutoriel:not([hidden])) .outils-rail { left: max(16px, calc((100vw - 1732px) / 2 - 104px)); }
}
@media (max-width: 1599px) {
  .documents { transform: translateX(calc(100% + 24px)); transition: transform 0.2s; }
  .documents.ouvert { transform: none; }
  .documents:not(.ouvert) { visibility: hidden; }
}

/* Tuiles des outils (icône dans un carré arrondi) et pastilles « Nouveau », « Bientôt », « bêta » */
.tuile { flex: none; display: inline-block; width: 36px; height: 36px; background: var(--vert-pale) center / 22px no-repeat; border: 1px solid var(--vert-trait); border-radius: 10px; }
img.tuile { border: 0; }
.tuile-grande { width: 48px; height: 48px; background-size: 30px; border-radius: var(--r-carte); }
.tuile-micro { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232e7d32' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='3' width='6' height='11' rx='3'/%3E%3Cpath d='M5.5 11a6.5 6.5 0 0 0 13 0'/%3E%3Cpath d='M12 17.5V21'/%3E%3Cpath d='M8.5 21h7'/%3E%3C/svg%3E"); }
.tuile-bulles { background-color: var(--fond); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2356625a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 5.5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2H9l-3.5 3v-3a2 2 0 0 1-2-2z'/%3E%3Cpath d='M15.5 8.5h3a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2v3l-3.5-3H11a2 2 0 0 1-2-2v-2'/%3E%3C/svg%3E"); border-color: var(--trait); }
.tuile-ordi { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232e7d32' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='12' rx='2'/%3E%3Cpath d='M9 20h6'/%3E%3Cpath d='M12 16v4'/%3E%3C/svg%3E"); }
.tuile-tel { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232e7d32' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='7' y='2.5' width='10' height='19' rx='2'/%3E%3Cpath d='M11 18.5h2'/%3E%3C/svg%3E"); }
.pastille { display: inline-block; padding: 1px 7px; font-size: 0.625rem; font-weight: 700; line-height: 1.5; letter-spacing: 0.05em; text-transform: uppercase; white-space: nowrap; vertical-align: 2px; color: #fff; background: var(--vert); border-radius: 999px; }
.pastille.grise { color: var(--gris); background: #fff; border: 1px solid var(--trait-fort); }

/* Bande latérale « Outils » (12/10/2026) : à gauche de la carte quand il y a la place (1320 px et plus), en carte
   flottante comme le volet « Documents ». Plus étroit : le lien « Autres outils » de l'en-tête mène à l'encadré du bas. */
.outils-rail { display: none; }
.rail-titre { margin: 0 0 6px; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.06em; text-align: center; text-transform: uppercase; color: var(--gris); }
.outils-rail ul { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 0; list-style: none; }
.outils-rail li > a, .rail-bientot { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 2px 7px; font-size: 0.75rem; font-weight: 600; line-height: 1.2; text-align: center; text-decoration: none; color: var(--encre); border-radius: var(--r); }
.outils-rail li > a:hover { color: var(--vert-fonce); background: var(--vert-pale); }
.outils-rail a[aria-current="page"] { color: var(--vert-fonce); background: var(--vert-pale); box-shadow: inset 0 0 0 1px var(--vert-trait); }
.rail-bientot { color: var(--gris); cursor: default; }
/* bulle d'explication, à droite, au survol ou au clavier */
.outils-rail [data-bulle]:hover::after, .outils-rail a[data-bulle]:focus-visible::after { content: attr(data-bulle); position: absolute; top: 50%; left: calc(100% + 12px); z-index: 6; width: max-content; max-width: 240px; padding: 6px 10px; font-size: 0.75rem; font-weight: 500; line-height: 1.4; text-align: left; color: #fff; background: var(--encre); border-radius: var(--r); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15); transform: translateY(-50%); pointer-events: none; }
@media (min-width: 1320px) {
  .outils-rail { display: block; position: fixed; top: 24px; left: max(8px, calc((100% - var(--carte, 1080px)) / 2 - 104px)); z-index: 4; width: 88px; padding: 10px 6px 8px; background: #fff; border: 1px solid var(--trait); border-top: 3px solid var(--vert); border-radius: var(--r-carte); box-shadow: var(--ombre); }
  .lien-outils { display: none; }
}
/* Fenêtre basse : la bande (cinq outils depuis le 17/10/2026, environ 500 px de haut) n'y tiendrait pas en entier ;
   le lien « Autres outils » de l'en-tête la remplace */
@media (min-width: 1320px) and (max-height: 559px) {
  .outils-rail { display: none; }
  .lien-outils { display: inline; }
}

/* Pages de texte (mentions légales, page d'un outil) */
body.page-texte { --carte: 820px; max-width: 820px; padding: 28px 32px; line-height: 1.6; }
.page-texte h1 { margin: 8px 0 14px; }
.page-texte h2 { margin: 22px 0 6px; color: var(--vert-fonce); }
.outil-entete { display: flex; align-items: center; gap: 14px; margin: 10px 0 14px; }
.page-texte .outil-entete h1 { margin: 0; }
.outil-entete .tagline { margin: 2px 0 0; font-size: 0.9375rem; }
.chapo { font-size: 1rem; }
.telechargement { margin: 18px 0 8px; padding: 14px 18px; background: var(--vert-pale); border: 1px solid var(--vert-trait); border-radius: var(--r-carte); }
.page-texte .telechargement h2 { margin-top: 0; }
.telechargement p { margin: 0 0 8px; }
.telechargement p:last-child { margin-bottom: 0; }
.empreinte { word-break: break-all; }
/* Page AnonyPhoto (17/10/2026) : le QR code à scanner avec le téléphone, à côté de l'adresse et du bouton */
.qr-bloc { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.qr-bloc .qr { flex: none; width: 148px; height: 148px; border-radius: 6px; shape-rendering: crispEdges; }
.qr-bloc > div { flex: 1 1 260px; }
@media (max-width: 600px) { .qr-bloc .qr { order: 1; } }   /* déjà sur le téléphone : le bouton d'abord, le code ensuite */
.page-texte footer { margin-top: 28px; }

/* Téléphone */
@media (max-width: 600px) {
  body, body.page-texte { margin: 12px 8px; padding: 40px 14px 16px; }
  body.page-texte { padding-top: 20px; }
  .volets-boutons { top: 6px; right: 8px; }
  textarea { height: 200px; }
  /* 16 px au moins : l'iPhone ne zoome plus la page quand on touche un champ */
  textarea, .field input { font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) { .documents { transition: none; } }


.toolbox-return {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--vert);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
}
.toolbox-return:hover,
.toolbox-return:focus-visible {
  background: var(--vert-fonce);
  color: #fff;
}


.beta-toolbox {
  color: var(--vert-fonce);
  font-weight: 700;
}
