/* Pression Juste : styles des outils (manomètre, démoussage, location, diagnostic) et des schémas, repris de l'ancien thème le 26/11/2026. Variables : theme.css. */

/* Outil « manomètre » : tâche + surface → plage bar / l/h, cadran, grille, machines compatibles (agent outil) */
.outil-manometre { background: var(--papier); border: 1.5px solid var(--encre); border-radius: 4px; padding: 18px; margin: 32px 0;
  box-shadow: 6px 6px 0 var(--mur); display: grid; gap: 18px; min-width: 0; }
@media (min-width: 760px) { .outil-manometre { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); } .om-note { grid-column: 1 / -1; } }
.outil-manometre fieldset { border: 0; padding: 0; margin: 0 0 12px; min-width: 0; }
.outil-manometre legend, .om-champ > span { font-family: var(--mono); font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--gris); }
.outil-manometre legend { margin-bottom: 6px; }
.outil-manometre fieldset label { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--encre); border-radius: 4px;
  padding: 5px 9px; margin: 0 4px 6px 0; font-size: 15px; cursor: pointer; background: #fff; }
.outil-manometre fieldset label:has(input:checked) { background: var(--jaune); }
.outil-manometre input[type="radio"] { accent-color: var(--encre); margin: 0; }
.om-champ { display: grid; gap: 4px; }
.om-champ input { width: 100%; box-sizing: border-box; font-family: var(--mono); font-size: 18px; padding: 8px 10px; border: 1.5px solid var(--encre);
  border-radius: 4px; color: var(--encre); background: #fff; }
.om-champ input:disabled { background: var(--beton); color: var(--gris); }
.om-aide { font-size: 14px; color: var(--gris); margin: 6px 0 0; }
.om-aide:empty { display: none; }
.om-resultat { min-width: 0; }
.om-plage { margin: 0 0 8px; font-size: 18px; }
.om-plage strong { font-family: var(--mono); white-space: nowrap; }
.om-repere { font-size: 14px; color: var(--gris); }
.om-dessins { display: grid; gap: 10px; }
.om-cadran, .om-grille { display: block; width: 100%; height: auto; }
.om-cadran { max-width: 240px; margin: 0 auto; }
.om-fond-arc { fill: none; stroke: var(--beton); stroke-width: 14; }
.om-zone { fill: none; stroke: var(--orange); stroke-width: 14; }
.om-trait { stroke: var(--gris); stroke-width: 1.2; }
.om-trait-fort { stroke: var(--encre); stroke-width: 2; }
.om-graduation, .om-axe-texte { font-family: var(--mono); font-size: 11px; fill: var(--encre); }
.om-graduation { paint-order: stroke; stroke: var(--papier); stroke-width: 4px; stroke-linejoin: round; }
.om-aiguille { stroke: var(--orange-texte); stroke-width: 4; stroke-linecap: round; }
.om-axe { fill: var(--encre); }
.om-unite { font-family: var(--mono); font-size: 12px; fill: var(--gris); }
.om-lecture { font-family: var(--titre); font-weight: 600; font-size: 22px; fill: var(--encre); }
.om-grille { background: #fff; border: 1px solid var(--beton-fonce); }
.om-ligne { stroke: var(--beton); stroke-width: 1; }
.om-zone-grille { fill: var(--orange); fill-opacity: .2; stroke: var(--orange-texte); stroke-width: 1.5; stroke-dasharray: 5 3; }
.om-point { fill: #fff; stroke: var(--beton-fonce); stroke-width: 1.5; }
.om-point-ok { fill: var(--eau); stroke: var(--encre); }
.om-legende { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-family: var(--mono); font-size: 14px; color: var(--gris); margin: 8px 0; }
.om-pastille { display: inline-block; width: 14px; height: 14px; border: 1.5px solid var(--encre); }
.om-pastille-zone { background: rgba(255, 106, 19, .2); border: 1.5px dashed var(--orange-texte); }
.om-pastille-ok { background: var(--eau); border-radius: 50%; }
.om-pastille-non { background: #fff; border-color: var(--beton-fonce); border-radius: 50%; }
.om-conseil { font-size: 16px; margin: 0 0 8px; }
.om-bilan { font-weight: 600; margin: 8px 0 6px; }
.om-machines { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.om-machine { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; align-items: center; border: 1.5px solid var(--encre);
  border-radius: 4px; padding: 8px 10px; background: #fff; }
.om-machine[hidden] { display: none; }
.om-nom { font-family: var(--titre); font-weight: 600; line-height: 1.2; overflow-wrap: anywhere; }
.om-infos { grid-column: 1; font-family: var(--mono); font-size: 14px; color: var(--gris); overflow-wrap: anywhere; }
.om-regler { color: var(--orange-texte); }
.om-machine .bouton { grid-column: 2; grid-row: 1 / span 2; }
.om-plus, .om-exclus { font-size: 14px; color: var(--gris); margin: 8px 0 0; }
.om-plus:empty, .om-exclus:empty { display: none; }
.om-note { font-size: 15px; line-height: 1.55; color: var(--gris); border-top: 1px dashed var(--beton-fonce); padding-top: 12px; }
.om-note strong { color: var(--encre); }

/* Outil « démoussage de toiture » : réutilise la boîte du manomètre (om-*), ajoute grille de champs, verdict et listes (agent outil) */
.od-grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 12px; align-items: end; }
.od-grille[hidden], .od-directe[hidden] { display: none; }
.od-large { grid-column: 1 / -1; }
.od-directe { margin: 0 0 12px; }
.od-form select { width: 100%; box-sizing: border-box; font-size: 16px; padding: 8px 10px; border: 1.5px solid var(--encre); border-radius: 4px; color: var(--encre); background: #fff; }
.od-form select:disabled { background: var(--beton); color: var(--gris); }
.od-form .om-champ > span { text-transform: none; letter-spacing: 0; font-size: 14px; }
.od-prix { border-top: 1px dashed var(--beton-fonce) !important; padding-top: 10px !important; }
.od-verdict { border: 1.5px solid var(--encre); border-left-width: 8px; border-radius: 4px; padding: 10px 12px; margin: 0 0 12px; }
.od-verdict p { margin: 0; }
.od-titre { font-family: var(--titre); font-weight: 600; font-size: 22px; line-height: 1.15; margin-bottom: 4px !important; }
.od-texte { font-size: 16px; }
.od-ok { background: #e8f2f8; border-left-color: var(--eau); }
.od-attention { background: #fff3df; border-left-color: var(--orange-texte); }
.od-attention .od-titre { color: var(--orange-texte); }
.od-pro, .od-stop { background: #fdeceb; border-left-color: #a4161a; }
.od-pro .od-titre, .od-stop .od-titre { color: #8a1014; }
.od-stop { border-width: 3px; border-left-width: 10px; border-color: #a4161a; }
.od-surface { font-size: 18px; margin: 0 0 6px; }
.od-surface strong { font-family: var(--mono); white-space: nowrap; }
.od-detail { font-size: 14px; color: var(--gris); overflow-wrap: anywhere; }
.od-h { font-size: 20px; margin: 14px 0 4px; }
.od-dose, .od-temps, .od-cout-diy, .od-cout-pro, .od-ecart, .od-meteo { margin: 0 0 6px; }
.od-meteo { font-size: 14px; color: var(--gris); }
.od-meteo:empty, .od-ecart:empty { display: none; }
.od-produits { margin-top: 8px; }
.od-choisi { box-shadow: inset 6px 0 0 var(--jaune); }
.od-materiel { margin: 0; padding-left: 20px; font-size: 16px; }
.od-materiel li[hidden] { display: none; }
.od-pression { font-size: 15px; border-top: 1px dashed var(--beton-fonce); padding-top: 10px; margin: 12px 0 0; }
@media (prefers-reduced-motion: reduce) { .outil-demoussage * { transition: none !important; animation: none !important; } }

/* Outil diagnostic (dépannage pas à pas) : fiche d'atelier punaisée au mur de garage — bandeau béton banché, ruban de chantier pour « appelez un pro », étapes numérotées au pochoir. */
.diagnostic { border: 1.5px solid var(--encre); border-radius: 2px; background: var(--papier); box-shadow: 4px 4px 0 var(--encre); padding: 0 18px 18px; }
.diag-titre { margin: 0 -18px 16px; padding: 14px 18px; font-family: var(--titre); font-size: 27px; font-weight: 600; text-transform: uppercase; letter-spacing: .02em;
  color: #fff; background-color: var(--mur); background-image: var(--banches); border-bottom: 4px solid var(--jaune); }
.diag-num, .diag-etape, .diag-gravite, .diag-source, .diag-fil button { font-family: var(--mono); }
.diag-num, .diag-etape { color: var(--orange-texte); }
.diag-question, .diag-sol-titre { font-family: var(--titre); font-weight: 600; }
.diag-question { font-size: 23px; }
.diag-sol-titre { font-size: 25px; }
.diag-choix a { border: 1.5px solid var(--encre); border-radius: 2px; background: #fff; box-shadow: 2px 2px 0 var(--beton-fonce); }
.diag-choix a:hover, .diag-choix a:focus-visible { background: var(--jaune); }
.diag-gravite { border-radius: 2px; }
.diag-etapes { list-style: none; counter-reset: etape; padding: 0; }
.diag-etapes li { counter-increment: etape; position: relative; padding-left: 44px; }
.diag-etapes li::before { content: counter(etape, decimal-leading-zero); position: absolute; left: 0; top: 1px; padding: 0 5px; font: 600 14px/22px var(--mono);
  color: #fff; background: var(--encre); border-radius: 2px; }
.diag-appel { border: 1.5px solid var(--encre); border-radius: 2px; color: var(--encre); padding-top: 20px;
  background: #fff repeating-linear-gradient(-45deg, var(--jaune) 0 8px, var(--encre) 8px 16px) top / 100% 8px no-repeat; }
.diag-securite { border-radius: 2px; }
.diag-fil button { border-radius: 2px; background: #fff; }

/* Outils « manomètre » et « démoussage » (14/10) : liste étroite : bouton sous le nom (le texte n'est plus écrasé lettre à lettre). */
.outil-manometre .om-machines { container: om-machines / inline-size; }
@container om-machines (max-width: 30rem) {
  .outil-manometre .om-machine { grid-template-columns: minmax(0, 1fr); }
  .outil-manometre .om-machine .bouton { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 6px; }
}
/* « Vos prix » du démoussage : les champs gardent leur forme (libellé au-dessus), pas celle des pastilles radio du fieldset. */
.outil-manometre .od-prix .om-champ { display: grid; gap: 4px; align-items: stretch; border: 0; border-radius: 0; padding: 0; margin: 0; background: none; cursor: auto; font-size: inherit; }

/* Refonte « le jet propre » (26/11/2026) : les boîtes des outils prennent le style du site (bords fins, coins ronds, ombre douce). */
.outil-manometre, .outil-demoussage, .outil-location, .diagnostic { border: 1px solid var(--trait) !important; border-radius: 18px !important; box-shadow: var(--ombre) !important; background: var(--blanc) !important; }
.outil-manometre fieldset label { border: 1px solid var(--trait); border-radius: 999px; }
.volumes, .largeurs { background-color: var(--blanc); border: 1px solid var(--trait); border-radius: 14px; padding: 16px; }

/* Outil « réglage du jet » (26/11/2026) : réutilise la boîte du manomètre (om-*) ; préfixe or-. Rien n'est animé. */
.outil-reglage { container-type: normal; }
.outil-reglage .or-commandes { min-width: 0; }
.outil-reglage .or-form { display: grid; gap: 4px; min-width: 0; }
.outil-reglage .or-form[hidden], .outil-reglage .or-form fieldset[hidden], .outil-reglage .or-nojs[hidden], .outil-reglage .or-bloc[hidden],
.outil-reglage .or-vide[hidden], .outil-reglage .or-acc[hidden] { display: none; }
.outil-reglage .or-nojs { font-size: 15px; color: var(--gris); border-left: 4px solid var(--eau); padding: 4px 10px; background: var(--eau-pale); }
.outil-reglage .or-select { width: 100%; box-sizing: border-box; min-height: 48px; font-size: 16px; padding: 8px 10px; border: 1.5px solid var(--encre);
  border-radius: 8px; color: var(--encre); background: #fff; }
.outil-reglage .or-form fieldset label { min-height: 44px; box-sizing: border-box; padding: 8px 14px; margin: 0 6px 8px 0; }
.outil-reglage .or-form input[type="radio"] { width: 20px; height: 20px; flex: 0 0 auto; }
.outil-reglage .or-cible { margin: 0 0 10px; font-size: 18px; overflow-wrap: anywhere; }
.outil-reglage .or-bloc { border: 1.5px solid var(--encre); border-left-width: 8px; border-left-color: var(--eau); border-radius: 8px; padding: 12px 14px; margin: 0 0 12px; background: #fff; min-width: 0; }
.outil-reglage .or-attention { border-left-color: var(--orange-texte); background: #fff3df; }
.outil-reglage .or-stop { border-color: #a4161a; border-width: 3px; border-left-width: 10px; background: #fdeceb; }
.outil-reglage .or-bloc-titre { margin: 0 0 8px; font-size: 22px; line-height: 1.15; overflow-wrap: anywhere; }
.outil-reglage .or-stop .or-bloc-titre { color: #8a1014; }
.outil-reglage .or-champs { margin: 0 0 8px; display: grid; gap: 4px; }
.outil-reglage .or-champs > div { display: grid; grid-template-columns: minmax(0, 9.5em) minmax(0, 1fr); gap: 2px 12px; }
.outil-reglage .or-champs dt { font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--gris); padding-top: 3px; }
.outil-reglage .or-champs dd { margin: 0; font-size: 17px; overflow-wrap: anywhere; }
.outil-reglage .or-interdit, .outil-reglage .or-risque, .outil-reglage .or-divergence, .outil-reglage .or-a-savoir { margin: 6px 0 0; font-size: 16px; overflow-wrap: anywhere; }
.outil-reglage .or-interdit { color: #8a1014; }
.outil-reglage .or-divergence { background: #fff3df; border-left: 4px solid var(--orange-texte); padding: 4px 10px; }
.outil-reglage .or-a-savoir { color: var(--gris); font-size: 15px; }
.outil-reglage .or-source { margin-top: 8px; padding-top: 6px; border-top: 1px dashed var(--beton-fonce); font-size: 14px; color: var(--gris); overflow-wrap: anywhere; }
.outil-reglage .or-vide { border: 1.5px dashed var(--gris); border-radius: 8px; padding: 12px 14px; margin: 0 0 12px; font-size: 16px; background: #fff; }
.outil-reglage .or-vide:empty { display: none; }
.outil-reglage .or-acc-ligne .om-infos { font-family: var(--texte-police); font-size: 15px; }
.outil-reglage .or-acc-titre { font-size: 20px; margin: 16px 0 8px; }
.outil-reglage .or-tableau { grid-column: 1 / -1; border-top: 1px dashed var(--beton-fonce); padding-top: 10px; min-width: 0; }
.outil-reglage .or-tableau summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-family: var(--titre); font-weight: 600; font-size: 20px; }
.outil-reglage .or-tableau-cadre { overflow-x: auto; margin-top: 8px; }
.outil-reglage .or-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.outil-reglage .or-table caption { text-align: left; font-size: 14px; color: var(--gris); padding-bottom: 6px; }
.outil-reglage .or-table th, .outil-reglage .or-table td { padding: 8px 10px; text-align: left; vertical-align: top; border-bottom: 1px solid #efede7; overflow-wrap: anywhere; }
.outil-reglage .or-table thead th { background: var(--ardoise); color: #fff; font-size: 14px; }
.outil-reglage .or-table tbody th { font-family: var(--titre); font-size: 17px; font-weight: 600; min-width: 9em; }
@media (min-width: 760px) { .outil-reglage .or-tableau, .outil-reglage .or-note { grid-column: 1 / -1; } }
@media (max-width: 700px) {
  .outil-reglage { padding: 14px; }
  .outil-reglage .or-champs > div { grid-template-columns: minmax(0, 1fr); }
  .outil-reglage .or-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .outil-reglage .or-table, .outil-reglage .or-table tbody, .outil-reglage .or-table tr, .outil-reglage .or-table th, .outil-reglage .or-table td { display: block; }
  .outil-reglage .or-table tr { border: 1px solid var(--trait); border-radius: 10px; margin: 0 0 10px; padding: 6px 4px; }
  .outil-reglage .or-table td { border: 0; padding: 3px 10px; }
  .outil-reglage .or-table td::before { content: attr(data-label) " : "; font-family: var(--mono); font-size: 12px; text-transform: uppercase; color: var(--gris); display: block; }
  .outil-reglage .or-table caption { display: block; }
  .outil-reglage .or-table .or-cel-vide { display: none; }
}
@media (prefers-reduced-motion: reduce) { .outil-reglage * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
