/* ART CONSTRUCTION - serie « Prevention des fraudes du batiment suisse » (14 pages /outils/dossiers/{slug}/) : gabarit, mini-diagnostic, scanner, lettres types.
   Prolonge outils-dossiers.css (memes variables --ot-*, memes composants .od-*) ; tout est prefixe .fr-. Responsive de 320 a 1920 px : aucun debordement horizontal ; aucune ressource externe. */

/* ------------------------------------------------------------------ en-tete et avertissement */
.fr-badge { background: #FEF3C7; border-color: #FDE68A; color: #92400E; }
.fr-avis { margin: 0 0 18px; padding: 14px 18px; border: 1px solid #BFDBFE; border-left: 4px solid var(--ot-bleu); border-radius: 12px; background: var(--ot-bleu-s); color: var(--ot-txt); font-size: 14.5px; line-height: 1.6; }
.fr-avis p { margin: 0; }
.fr-guide .ot-modele-titre { overflow-wrap: anywhere; }
.fr-guide .ot-btn[disabled] { opacity: .55; cursor: not-allowed; }

/* ------------------------------------------------------------------ sommaire, signaux, etapes */
.fr-sommaire { margin: 0 0 22px; padding: 14px 20px; border: 1px solid var(--ot-bord); border-radius: 12px; background: var(--ot-bg); }
.fr-sommaire .od-t { margin-top: 0; }
.fr-sommaire ol { margin: 0; padding-left: 20px; }
.fr-sommaire li + li { margin-top: 4px; }
.fr-sommaire a { color: var(--ot-bleu-f); font-weight: 600; }
.fr-signaux { margin: 6px 0 16px; padding-left: 0; color: var(--ot-sec); font-size: 15.5px; line-height: 1.65; }
.fr-signaux li { margin-bottom: 7px; overflow-wrap: anywhere; }
.od-guide .fr-note { padding: 10px 14px; border-radius: 10px; background: #F1F5F9; font-size: 13.5px; }
.fr-etapes { color: var(--ot-sec); font-size: 15.5px; line-height: 1.65; }
.fr-etapes li { margin-bottom: 7px; padding-left: 4px; overflow-wrap: anywhere; }
.fr-signaler { color: var(--ot-sec); font-size: 15.5px; line-height: 1.65; }
.fr-signaler a, .fr-sources a { color: var(--ot-bleu-f); font-weight: 600; overflow-wrap: anywhere; }
.fr-lu { color: var(--ot-mut); font-size: 13px; }
.od-guide .fr-tab table { background: #fff; border: 1px solid var(--ot-bord); border-radius: 10px; }
.od-guide .fr-tab td, .od-guide .fr-tab th { color: var(--ot-sec); font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; }

/* ------------------------------------------------------------------ boite « Precision » et lettres types */
.fr-precision { margin: 20px 0; padding: 16px 20px; border: 1px solid #C7D2FE; border-left: 4px solid #4F46E5; border-radius: 12px; background: #EEF2FF; }
.od-guide .fr-precision-t { margin: 0 0 6px !important; color: #3730A3 !important; font-size: 13px !important; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.fr-precision p:last-child { margin-bottom: 0; color: var(--ot-txt); }
.fr-lettre { margin: 18px 0; padding: 16px 20px; border: 1px solid var(--ot-bord); border-radius: 12px; background: #fff; box-shadow: var(--ot-ombre); }
.fr-lettre-t { margin: 0 0 10px; color: var(--ot-txt); font-size: 14px; font-weight: 700; }
.fr-lettre-corps { padding: 12px 14px; border-radius: 8px; background: #F8FAFC; border: 1px dashed #CBD5E1; }
.od-guide .fr-lettre-corps p { margin: 0 0 10px; color: var(--ot-txt); font-size: 14.5px; line-height: 1.6; overflow-wrap: anywhere; }
.fr-lettre-corps p:last-child { margin-bottom: 0; }
.fr-copier { margin-top: 10px; }

/* ------------------------------------------------------------------ composants interactifs */
.fr-outil { margin: 18px 0 26px; padding: 18px 20px; border: 1px solid #BFDBFE; border-radius: 14px; background: #fff; box-shadow: var(--ot-ombre); }
.od-guide .fr-outil-titre { margin: 0 0 6px !important; color: var(--ot-txt) !important; font-size: 16.5px !important; font-weight: 800; line-height: 1.35; }
.od-guide .fr-consigne { margin: 0 0 8px; font-size: 14.5px; }
.od-guide .fr-phrase { margin: 0 0 14px; padding: 9px 12px; border-radius: 8px; background: #FFFBEB; border: 1px solid #FDE68A; color: #92400E; font-size: 13.5px; font-weight: 600; line-height: 1.5; }
.fr-filtres { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; margin: 0 0 14px; align-items: end; }
.fr-visibles { grid-column: 1 / -1; margin: 0; color: var(--ot-mut); font-size: 13px; }
.od-guide .fr-visibles { margin: 0; font-size: 13px; }
.fr-form { display: grid; gap: 10px; }
.fr-form fieldset { margin: 0; padding: 0; border: 0; min-width: 0; display: grid; gap: 8px; }
.fr-groupe { padding-top: 6px !important; }
.fr-groupe-t { margin: 8px 0 2px; padding: 0; color: var(--ot-bleu-f); font-size: 13px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.fr-case[hidden] { display: none; }
.fr-case span { min-width: 0; overflow-wrap: anywhere; }
.fr-case input:checked + span { color: var(--ot-txt); font-weight: 600; }
.fr-case:has(input:checked) { border-color: #93C5FD; background: var(--ot-bleu-s); }
.fr-meta { display: block; margin-top: 3px; color: var(--ot-mut); font-size: 12px; font-weight: 500; line-height: 1.45; }
.fr-res { margin-top: 16px; }
.fr-score { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin: 0 0 8px; padding: 12px 16px; border: 1px solid; border-radius: 12px; }
.fr-score-n { font-size: 2.2rem; font-weight: 800; line-height: 1; }
.fr-score-t { font-size: 14.5px; font-weight: 600; }
.fr-tranche { margin-left: auto; padding: 4px 12px; border-radius: 999px; background: rgba(255,255,255,.75); font-size: 13px; font-weight: 800; }
.fr-tr-aucun { border-color: #BBF7D0; background: #F0FDF4; color: #166534; }
.fr-tr-surveiller { border-color: #FDE68A; background: #FFFBEB; color: #92400E; }
.fr-tr-verifier { border-color: #FECACA; background: #FEF2F2; color: #991B1B; }
.fr-conseil { margin: 0 0 8px; }
.od-guide .fr-res p { color: var(--ot-txt); font-size: 14.5px; line-height: 1.6; }
.od-guide .fr-res .ot-mut { color: var(--ot-mut); font-size: 12.5px; }
.fr-res .od-t { margin-top: 14px; }
.fr-imprimer-entete { margin: 0 0 10px; font-size: 12px; font-weight: 700; }
.fr-actions { margin-top: 12px; }

/* ------------------------------------------------------------------ maillage */
.fr-maillage-t { margin: 12px 0 4px; color: var(--ot-mut); font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.fr-maillage-t:first-of-type { margin-top: 0; }
.fr-lien-note { color: var(--ot-mut); font-size: 13px; }
.fr-serie { margin-top: 14px; }
.fr-serie summary { cursor: pointer; color: var(--ot-bleu-f); font-size: 14px; font-weight: 700; }
.fr-serie[open] summary { margin-bottom: 8px; }
.fr-acip { margin: 4px 0 16px; }
.fr-acip .ot-btn { white-space: normal; text-align: left; }
.fr-sources .od-t { margin-top: 18px; }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 720px) {
  .fr-filtres { grid-template-columns: minmax(0, 1fr); }
  .fr-outil { padding: 14px 14px; }
  .fr-lettre, .fr-precision { padding: 14px 14px; }
  .fr-tranche { margin-left: 0; }
  .fr-actions .ot-btn, .fr-copier { width: 100%; justify-content: center; }
}

/* ------------------------------------------------------------------ impression : seul le resultat du composant choisi (outils-fraudes.js pose .fr-imprime / .fr-cible-impression) */
@media print {
  html.fr-imprime body * { visibility: hidden !important; }
  html.fr-imprime .fr-cible-impression .fr-zone-impr, html.fr-imprime .fr-cible-impression .fr-zone-impr * { visibility: visible !important; }
  html.fr-imprime .fr-cible-impression .fr-zone-impr { position: absolute; left: 0; top: 0; width: 100%; margin: 0; padding: 0; border: 0; background: #fff; }
  html.fr-imprime #ot, html.fr-imprime .ot-grille, html.fr-imprime .ot-centre, html.fr-imprime .ot-carte, html.fr-imprime .od-guide, html.fr-imprime .fr-outil { overflow: visible !important; height: auto !important; position: static !important; }
  html.fr-imprime .fr-imprimer-entete { display: block !important; }
  html.fr-imprime .fr-score { break-inside: avoid; }
  html.fr-imprime .od-tab { overflow: visible; }
}
