/* Les trois outils gratuits (calculator.js, finish.js, quote.js) et leur sommaire. Même direction « Galerie » que site.css :
   filets fins, angles de 8 px (--r, « papier chaud » du 15 nov. 2026), un seul accent. Aucun style n'est écrit dans les pages (règle de contenu du serveur).
   Téléphone d'abord : tout tient à 320 px sans défilement horizontal ; chaque cible fait 44 px au moins. */
.tool .wrap > *, .tools .wrap > * { min-width: 0; }
.page .cards { padding-left: 0; max-width: none; margin-top: var(--e-5); }
.page .cards li { margin-bottom: 0; }

/* Les parties d'un outil : un filet, un titre. */
.tool-part { border-top: 1px solid var(--trait); margin-top: var(--e-6); }
.tool-part > h2 { margin-top: var(--e-5); }
.tool .note { margin-top: var(--e-4); }

/* Une pièce : un cadre fin, les mesures sur deux ou trois colonnes. */
.tool-room { border: 1px solid var(--trait); border-left: 3px solid var(--accent); border-radius: var(--r); padding: var(--e-4); margin: 0 0 var(--e-4); max-width: 34rem; min-width: 0; }
.tool-room .field, .tool-room .tick { max-width: none; }
.tool-room-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--e-3); margin-bottom: var(--e-4); }
.tool-room-head .field { flex: 1 1 10rem; margin: 0; min-width: 0; }
.tool-room-head .btn { min-height: var(--cible); }
.tool-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--e-3); align-items: end; max-width: 30rem; margin: 0 0 var(--e-4); }
.tool-grid .field { margin: 0; min-width: 0; }
@media (min-width: 520px) { .tool-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tool-room .tool-grid { max-width: none; }
.tool .tick { min-height: var(--cible); align-items: center; padding: 6px 0; margin: var(--e-2) 0; }
.tool .tick input { margin: 0; }
.tool .small { font-size: 1.0625rem; }
.tool-area { margin: var(--e-2) 0 0; font-weight: 600; }
.tool-area:empty { display: none; }
.tool-wrong { color: var(--stop); }
.tool-field { margin: 0 0 var(--e-4); max-width: 30rem; }

/* Les tailles de pots : des boutons à bascule. */
.chips { display: flex; flex-wrap: wrap; gap: var(--e-2); margin: 0 0 var(--e-2); }
.chip { min-height: var(--cible); min-width: 68px; padding: 8px 14px; border: 1.5px solid var(--trait-champ); border-radius: var(--r); background: var(--blanc); color: var(--gris); font: 500 1rem/1.2 var(--texte); cursor: pointer; text-decoration: line-through; }
.chip[aria-pressed="true"] { background: var(--encre); border-color: var(--encre); color: var(--blanc); font-weight: 600; text-decoration: none; }

/* Le résultat : une ligne par peinture, les pots en grand. */
.page .tool-lines { list-style: none; padding: 0; margin: 0 0 var(--e-4); border-top: 1.5px solid var(--encre); }
.tool-lines li { display: grid; gap: 2px; padding: var(--e-3) 0; margin: 0; border-bottom: 1px solid var(--trait); }
.tool-big { display: block; font: 600 1.25rem/1.25 var(--titre); }
.tool-answer { border-left: 3px solid var(--accent); background: var(--voile); padding: var(--e-4); margin-top: var(--e-3); }
.tool-answer p { margin: 0 0 var(--e-2); }
.tool-answer .small { display: block; }
.page .tool-answer ul { margin: 0; }
.tool-copy { max-width: var(--lecture); margin-top: var(--e-4); }

/* L'échelle des finitions, du moins au plus brillant : le reflet est dessiné par un dégradé. */
.sheens { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--e-2); max-width: var(--lecture); margin: 0 0 var(--e-4); }
@media (min-width: 520px) { .sheens { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.sheen { min-height: 72px; display: flex; align-items: flex-end; padding: 10px 12px; border: 1px solid var(--trait); border-radius: var(--r); font-weight: 600; font-size: 1rem; color: var(--encre); background: #c9d6cf; }
.sheen.s2 { background: linear-gradient(160deg, #d3dfd9, #bfcec6); }
.sheen.s3 { background: linear-gradient(160deg, #e6eeea 0%, #b9c9c1 55%, #d6e1dc 100%); }
.sheen.s4 { background: linear-gradient(160deg, #ffffff 0%, #b2c4bb 42%, #eef4f1 68%, #adbfb6 100%); }

/* La liste du devis : la case, l'étiquette « Rule » ou « Good practice », l'explication, la source. */
.page .quote-list { list-style: none; padding: 0; margin: 0; max-width: var(--lecture); border-top: 1px solid var(--trait); }
.quote-point { padding: var(--e-2) 0 var(--e-3); margin: 0; border-bottom: 1px solid var(--trait); }
.quote-point > p { margin: 0 0 var(--e-1) 38px; }
.quote-point .badge { margin-left: 4px; white-space: nowrap; vertical-align: 2px; }
.quote-src a { display: inline-flex; align-items: center; min-height: var(--cible); margin-right: var(--e-3); overflow-wrap: anywhere; }
.quote-count { font-family: var(--texte); font-weight: 400; letter-spacing: 0; white-space: nowrap; margin-left: 6px; }

/* « Check a quote », lot 6 : consigne, groupes repliables, ajouts officiels. */
.quote-how { margin: var(--e-4) 0 var(--e-3); font-size: 1.1875rem; max-width: var(--lecture); }
.quote-group { border-top: 1px solid var(--trait); margin-top: 0; }
.quote-group:first-of-type { margin-top: var(--e-5); }
.quote-group > summary { display: flex; flex-wrap: wrap; align-items: center; gap: var(--e-2); min-height: var(--cible); padding: var(--e-2) 0; cursor: pointer; list-style: none; }
.quote-group > summary::-webkit-details-marker { display: none; }
.quote-group > summary::before { content: "+"; flex: 0 0 auto; width: 1.5rem; font: 700 1.5rem/1 var(--texte); color: var(--accent); text-align: center; }
.quote-group[open] > summary::before { content: "\2212"; }
.quote-group > summary h2 { display: inline; margin: 0; font-size: 1.375rem; }
.quote-group > summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.quote-group .quote-list { margin-bottom: var(--e-4); }
.quote-point > p.quote-new { margin-left: 38px; border-left: 3px solid var(--accent); padding-left: var(--e-3); }
.quote-new a { display: inline-flex; align-items: center; min-height: var(--cible); overflow-wrap: anywhere; }

/* L'impression montre tout : le script ouvre les groupes ; les boutons ne servent à rien sur papier. */
@media print { .quote-group > summary::before { content: none; } .tool .actions .btn { display: none; } }

/* Sous les quatre cartes : le groupe « Guides and sheets » (15 nov. 2026). */
.tools-sub { font-size: 1.5rem; margin-top: var(--e-6); }
.tools .paths-mini { max-width: var(--lecture); }
