/* Lot 168 (02/11/2026) : les deux pages privées d'une structure, le devis à accepter (pages/devis-structure.php) et ses codes
   d'accès (pages/structure-acces.php). Des feuilles de papier, claires dans tous les thèmes, comme le devis (.dv-* de
   structures-157.css). Champs et boutons de 44 px ; contraste AA ; rien en ligne. */

.sd-marque { font-weight: 800; color: #0F6B6B; }
.sd-cadre { max-width: 46rem; margin: 1rem auto; padding: 1.4rem 1.6rem; box-sizing: border-box; background: #fff; border: 1px solid #D9D4C8; border-radius: 12px; line-height: 1.55; }
.sd-cadre h1, .sd-cadre h2 { margin: 0 0 .6rem; font-size: 1.3rem; }
.sd-cadre h3 { margin: 1.4rem 0 .4rem; font-size: 1.05rem; }
.sd-cadre p { margin: .5rem 0; }
.sd-cadre a { color: #134E7C; }
.sd-ok { border-left: 5px solid #1E7A4C; }
.sd-info { border-left: 5px solid #134E7C; }
.sd-alerte { border-left: 5px solid #B3261E; }
.sd-aide { font-size: .9rem; color: #5B6070; }
.sd-err { margin: .35rem 0 0; color: #B3261E; font-size: .9rem; font-weight: 700; }
.sd-instructions { white-space: pre-line; padding: .8rem 1rem; background: #F3F1EC; border-radius: 8px; overflow-wrap: anywhere; }

.sd-form { margin-top: 1rem; }
.sd-champ { margin: 0 0 1rem; padding: 0; border: 0; }
.sd-champ > label, .sd-champ legend { display: block; margin-bottom: .35rem; font-weight: 700; }
.sd-champ input[type=text] { width: 100%; min-height: 44px; box-sizing: border-box; padding: .6rem .8rem; border: 1px solid #8A8F9C; border-radius: 10px; font: inherit; color: #1B1F2A; background: #fff; }
.sd-champ [aria-invalid=true] { border-color: #B3261E; }
.sd-choix { display: flex; gap: .6rem; align-items: flex-start; min-height: 44px; padding: .2rem 0; font-weight: 400; cursor: pointer; }
.sd-choix input { flex: 0 0 auto; width: 1.25rem; height: 1.25rem; margin: .15rem 0 0; accent-color: #0F6B6B; }
.sd-bouton { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .7rem 1.4rem; border: 0; border-radius: 10px; background: #0F6B6B; color: #fff !important; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.sd-bouton:hover, .sd-bouton:focus-visible { background: #0B5252; }
.sd-bouton:focus-visible, .sd-choix input:focus-visible, .sd-champ input:focus-visible { outline: 3px solid #134E7C; outline-offset: 2px; }

.sd-chiffres { display: flex; flex-wrap: wrap; gap: .8rem; margin: .8rem 0; padding: 0; list-style: none; }
.sd-chiffres li { flex: 1 1 13rem; padding: .7rem 1rem; border: 1px solid #D9D4C8; border-radius: 10px; color: #5B6070; font-size: .9rem; }
.sd-chiffres strong { display: block; font-size: 1.3rem; color: #1B1F2A; font-variant-numeric: tabular-nums; }
.sd-lien-doc { display: inline-flex; align-items: center; min-height: 44px; margin-right: 1rem; font-weight: 700; }
.sd-etapes { margin: .4rem 0 1rem; padding-left: 1.3rem; }
.sd-etapes li { margin: .3rem 0; overflow-wrap: anywhere; }

/* Les cartes à découper : deux par ligne à l'écran comme à l'impression, jamais coupées entre deux pages. */
.sd-titre-cartes { max-width: 46rem; margin: 1.5rem auto .6rem; padding: 0 16px; box-sizing: border-box; font-size: 1.1rem; }
.sd-cartes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(19rem, 100%), 1fr)); gap: .8rem; max-width: 46rem; margin: 0 auto 2rem; padding: 0 16px; box-sizing: border-box; list-style: none; }
.sd-carte { display: grid; gap: .4rem; padding: 1rem 1.1rem; background: #fff; border: 1px dashed #8A8F9C; border-radius: 10px; break-inside: avoid; }
.sd-carte-titre { font-weight: 700; color: #0F6B6B; }
.sd-code { font-family: Consolas, 'Courier New', monospace; font-size: 1.25rem; font-weight: 700; letter-spacing: .06em; color: #1B1F2A; }
.sd-carte-texte { font-size: .85rem; color: #5B6070; }

@media print {
  .sd-cadre { display: none; }
  .sd-titre-cartes { display: none; }
  .sd-cartes { max-width: none; padding: 0; grid-template-columns: 1fr 1fr; }
  .sd-carte { border-color: #000; }
  /* Le devis et la facture s'impriment seuls : les cadres de la page (acceptation, paiement) restent à l'écran. */
}
