/* Matrice « Salaires BTP » : mêmes couleurs que les studios (bande bleue, filets bleu clair). Clair par défaut ; SOMBRE seulement quand le visiteur l'a choisi avec le curseur du menu
   (<html data-theme="dark">, posé par /site/theme-sombre-pre.js, comme tout le site : le réglage de l'ordinateur n'est PAS suivi). Bloc sombre : tout en bas, dans @media screen (l'impression reste claire). */
:root { color-scheme: light; --p: #085292; --navy: #06304f; --tx: #12202d; --mu: #51667a; --bg: #fff; --su: #f3f7fb; --bd: #cfdeee; --warn: #b45309; --warn-bg: #fdf3e6; --hero: linear-gradient(135deg, #0b3a66 0%, #085292 100%); }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--tx); font: 16px/1.6 system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; }
.skip { position: absolute; left: -999px; top: 0; background: var(--p); color: #fff; padding: .5rem 1rem; z-index: 99; }
.skip:focus { left: 8px; top: 8px; }
.mx-wrap { width: min(1100px, 100% - 32px); margin-inline: auto; }
.mx-band { position: relative; overflow: hidden; background: var(--hero); color: #fff; padding: 20px 0 30px; }
.mx-band::before { content: ''; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px); background-size: 44px 44px; }
.mx-band .mx-wrap { position: relative; }
.mx-band :focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.mx-crumbs ol { display: flex; flex-wrap: wrap; gap: .3rem; list-style: none; margin: 0 0 22px; padding: 0; font-size: .85rem; color: #cfe5f8; }
.mx-crumbs li + li::before { content: '›'; margin-right: .3rem; }
.mx-crumbs a { color: #fff; text-decoration: none; }
.mx-crumbs a:hover { text-decoration: underline; }
.mx-eyebrow { margin: 0 0 8px; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #b9d9f6; }
.mx-band h1 { margin: 0 0 12px; font-size: clamp(1.6rem, 1.1rem + 2vw, 2.2rem); line-height: 1.18; font-weight: 700; color: #fff; }
.mx-lede { margin: 0; max-width: 72ch; font-size: 1.04rem; line-height: 1.55; color: #dcebf8; }
main { padding-bottom: 1rem; }
.mx-avert { margin: 18px 0; padding: .6rem .9rem; background: var(--warn-bg); border-left: 4px solid var(--warn); border-radius: 6px; font-size: .92rem; }
.mx-note { margin: .6rem 0; font-size: .88rem; color: var(--mu); }
.mx-note--doublon { padding: .5rem .8rem; background: var(--su); border: 1px solid var(--bd); border-radius: 6px; color: var(--tx); }
.mx-note--a-importer, .mx-note--officiel { padding: .45rem .8rem; border: 1px dashed var(--bd); border-radius: 6px; }
.mx-sec { margin: 2rem 0; }
.mx-sec h2 { margin: 0 0 .6rem; font-size: 1.3rem; line-height: 1.3; color: var(--p); }
.mx-sec h3 { margin: 1.1rem 0 .4rem; font-size: 1.02rem; color: var(--navy); }
a { color: var(--p); }
.mx-scroll { overflow-x: auto; margin: .6rem 0; }
.mx-t { border-collapse: collapse; width: 100%; font-size: .92rem; }
.mx-t th, .mx-t td { border: 1px solid var(--bd); padding: .4rem .6rem; text-align: right; white-space: nowrap; }
.mx-t th[scope='row'], .mx-t thead th:first-child { text-align: left; white-space: normal; }
.mx-t thead th { background: var(--su); }
.mx-t tbody th { font-weight: 600; background: #fafcfe; }
.mx-t .mx-tot th, .mx-t .mx-tot td { background: var(--su); font-weight: 700; }
.mx-dl { display: grid; grid-template-columns: minmax(150px, 280px) 1fr; gap: .35rem 1rem; margin: .5rem 0; }
.mx-dl dt { font-weight: 600; color: var(--navy); }
.mx-dl dd { margin: 0; }
@media (max-width: 600px) {
  .mx-dl { grid-template-columns: 1fr; } .mx-dl dd { margin-bottom: .5rem; }
  /* tableaux : police et marges réduites, première colonne jamais écrasée (le tableau défile alors dans sa boîte, sans faire déborder la page) */
  .mx-t { font-size: .85rem; }
  .mx-t th, .mx-t td { padding: .35rem .45rem; }
  .mx-t th[scope='row'], .mx-t thead th:first-child { min-width: 7.5rem; }
}
.mx-liste { margin: .4rem 0; padding-left: 1.2rem; }
.mx-pills { line-height: 2; }
.mx-calc { padding: .8rem 1rem; border: 1px solid var(--bd); border-radius: 10px; background: var(--su); }
.mx-champ { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: .4rem 0; }
.mx-champ label { font-weight: 600; flex: 0 0 20rem; max-width: 100%; }   /* même largeur pour les deux libellés : les champs restent alignés */
.mx-nb { white-space: nowrap; }
.mx-etat { display: block; font-weight: 400; font-size: .76rem; line-height: 1.3; color: var(--mu); }
.mx-champ input { padding: .4rem .6rem; border: 1px solid var(--bd); border-radius: 6px; font: inherit; width: 9rem; }
.mx-calc .mx-t { background: var(--bg); }
.mx-cta { display: flex; flex-wrap: wrap; gap: .6rem; margin: .8rem 0; }
.mx-btn { display: inline-block; padding: .55rem 1rem; border-radius: 8px; background: var(--p); color: #fff; text-decoration: none; font-weight: 600; }
.mx-btn:hover { background: var(--navy); }
.mx-btn--2 { background: #fff; color: var(--p); border: 2px solid var(--p); }
.mx-btn--2:hover { background: var(--su); color: var(--navy); }
.mx-btn--3 { background: transparent; color: var(--p); text-decoration: underline; padding-inline: .3rem; }
.mx-btn--3:hover { background: transparent; color: var(--navy); }
.mx-faq details { border: 1px solid var(--bd); border-radius: 8px; margin: .5rem 0; padding: .1rem .8rem; }
.mx-faq summary { cursor: pointer; font-weight: 600; padding: .5rem 0; }
.mx-sources { margin: 1.5rem 0; padding: .5rem 1rem; border: 1px solid var(--bd); border-radius: 8px; font-size: .9rem; }
.mx-sources summary { cursor: pointer; font-weight: 600; }
.mx-langs { margin: 2rem 0 0; padding-top: 1rem; border-top: 1px solid var(--bd); }
.mx-langs h2 { font-size: 1rem; margin: 0 0 .4rem; color: var(--navy); }
.mx-langs ul { display: flex; flex-wrap: wrap; gap: .4rem .9rem; list-style: none; margin: 0; padding: 0; font-size: .92rem; }
.mx-langs [aria-current] { font-weight: 700; }
.mx-foot { margin-top: 2rem; padding: 1.2rem 0 2rem; background: var(--su); color: var(--mu); font-size: .85rem; }
.mx-foot p { margin: .3rem 0; }

/* ---- MODE SOMBRE (2026-11-21) : jetons + les endroits où une règle générale du site (feuille sombre de la famille « Jobs », qui s'applique aussi à ces pages statiques) passerait devant celle-ci.
   Palette = celle du site (theme-sombre.main.css) : fond #0B1623, carte #111F30, trait #3A5272, texte #E6EDF5 / #9FB0C2, lien #8BCBFF, bouton #1B6EC2. */
@media screen {
  html[data-theme="dark"] { color-scheme: dark; --p: #8BCBFF; --navy: #C9D5E2; --tx: #E6EDF5; --mu: #9FB0C2; --bg: #0B1623; --su: #111F30; --bd: #3A5272; --warn: #E0A458; --warn-bg: #2A2110; }
  html[data-theme="dark"] body { background: var(--bg); color: var(--tx); }
  html[data-theme="dark"] body a:not(.mx-btn):not(.skip) { color: var(--p); }
  html[data-theme="dark"] body .mx-crumbs a { color: #fff; }
  html[data-theme="dark"] body .mx-btn { background: #1B6EC2; color: #fff; }
  html[data-theme="dark"] body .mx-btn:hover { background: #2A7FD6; }
  html[data-theme="dark"] body .mx-btn--2 { background: transparent; color: #8BCBFF; border-color: #8BCBFF; }
  html[data-theme="dark"] body .mx-btn--2:hover { background: #172A40; color: #fff; }
  html[data-theme="dark"] body .mx-btn--3 { background: transparent; color: #8BCBFF; }
  html[data-theme="dark"] body .mx-btn--3:hover { background: transparent; color: #fff; }
  html[data-theme="dark"] .mx-avert { color: var(--tx); }
  html[data-theme="dark"] .mx-note { color: var(--mu); }
  html[data-theme="dark"] .mx-note--doublon { color: var(--tx); }
  html[data-theme="dark"] .mx-t th, html[data-theme="dark"] .mx-t td { background: transparent; color: var(--tx); border-color: var(--bd); }
  html[data-theme="dark"] .mx-t thead th { background: var(--su); }
  html[data-theme="dark"] .mx-t tbody th { background: #0F1D2E; }
  html[data-theme="dark"] .mx-t .mx-tot th, html[data-theme="dark"] .mx-t .mx-tot td { background: var(--su); }
  html[data-theme="dark"] .mx-calc .mx-t { background: var(--bg); }
  html[data-theme="dark"] .mx-etat { color: var(--mu); }
  html[data-theme="dark"] .mx-champ input { background: var(--bg); color: var(--tx); border-color: #5F7D9E; }
  html[data-theme="dark"] .mx-champ label { color: var(--tx); }
  html[data-theme="dark"] .mx-dl dd { color: var(--tx); }
  html[data-theme="dark"] .mx-foot, html[data-theme="dark"] .mx-foot p { color: var(--mu); }
}