/* =====================================================================
   JBSMT27 — feuille de style principale
   1. Socle commun (ex. jb-base.css)
   2. Thème « Atelier » (ex. jb-theme.css)
   3. Retouches (ex. custom.css)
   4. Compatibilité avec le code HTML de Joomla 5 et 6
   Vos propres retouches : créer css/user.css (chargé en dernier, jamais écrasé).
   ===================================================================== */

/* =====================================================================
   JB SMT Informatique — socle commun des thèmes JBSMT26 (A, B, C)
   Remplace template.css d'Artisteer tout en gardant ses classes
   (art-post, art-block, art-hmenu, art-content-layout...) pour que
   les articles et modules existants s'affichent sans retouche.
   ===================================================================== */

@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/barlow-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/barlow-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/barlow-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/barlow-semi-condensed-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/barlow-semi-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/barlow-semi-condensed-latin-700-normal.woff2") format("woff2"); }

:root {
  /* Couleurs de marque (prélevées sur le logo et l'en-tête d'origine) */
  --jb-orange: #FF7A01;        /* cadre du logo */
  --jb-orange-cta: #DC6200;    /* boutons : lisible avec du texte blanc gras */
  --jb-orange-soft: #FD9D55;   /* fond de l'en-tête d'origine */
  --jb-orange-tint: #FFF1E4;
  --jb-blue: #2340C8;          /* bleu "Informatique" du logo */
  --jb-navy: #14224F;
  --jb-ink: #232833;
  --jb-muted: #5B6273;
  --jb-line: #E2E5EB;
  --jb-page: #F4F5F7;
  --jb-white: #FFFFFF;

  --jb-font: "Barlow", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --jb-font-display: "Barlow Semi Condensed", "Barlow", "Arial Narrow", Arial, sans-serif;

  --jb-wrap: 1160px;
  --jb-gutter: clamp(16px, 4vw, 32px);
  --jb-radius: 6px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 90px; }
body.jb {
  margin: 0; padding: 0; min-width: 0;
  font-family: var(--jb-font); font-size: 17px; line-height: 1.6; color: var(--jb-ink);
  background: var(--jb-page);
  -webkit-font-smoothing: antialiased;
}
body.jb img { max-width: 100%; height: auto; border: 0; }
body.jb a { color: var(--jb-blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
body.jb a:hover { color: var(--jb-navy); }
body.jb :focus-visible { outline: 3px solid var(--jb-orange); outline-offset: 2px; border-radius: 2px; }
.jb-wrap { width: 100%; max-width: var(--jb-wrap); margin: 0 auto; padding-left: var(--jb-gutter); padding-right: var(--jb-gutter); }
.jb-skip { position: absolute; left: -9999px; top: 0; z-index: 1000; background: var(--jb-navy); color: #fff !important; padding: 10px 16px; }
.jb-skip:focus { left: 8px; top: 8px; }
.jb-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.clearfix::after, .cleared { content: ""; display: table; clear: both; }

/* ---------- Titres ---------- */
body.jb h1, body.jb h2, body.jb h3, body.jb h4, body.jb h5, body.jb h6 {
  font-family: var(--jb-font-display); font-weight: 700; color: var(--jb-navy);
  line-height: 1.15; margin: 1.4em 0 .5em; letter-spacing: -.005em;
}
body.jb h1 { font-size: clamp(30px, 4vw, 40px); }
body.jb h2 { font-size: clamp(25px, 3vw, 31px); }
body.jb h3 { font-size: 23px; }
body.jb h4 { font-size: 19px; }
body.jb h5, body.jb h6 { font-size: 17px; }
body.jb h1 a, body.jb h2 a, body.jb h3 a { color: inherit; text-decoration: none; }
body.jb h1 a:hover, body.jb h2 a:hover, body.jb h3 a:hover { color: var(--jb-blue); }
body.jb p { margin: 0 0 1em; }

/* ---------- Boutons ---------- */
.jb-btn, body.jb .art-button, body.jb .button, body.jb .btn, body.jb button[type=submit], body.jb input[type=submit] {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--jb-font-display); font-weight: 700; font-size: 19px; line-height: 1.1;
  padding: 13px 22px; border-radius: var(--jb-radius); border: 2px solid transparent;
  background: var(--jb-orange-cta); color: #fff !important; text-decoration: none !important;
  cursor: pointer; transition: background-color .15s, border-color .15s, color .15s;
}
.jb-btn:hover, body.jb .art-button:hover, body.jb .button:hover, body.jb .btn:hover, body.jb button[type=submit]:hover, body.jb input[type=submit]:hover { background: #B85200; }
.jb-btn--ghost { background: transparent; color: var(--jb-navy) !important; border-color: var(--jb-navy); }
.jb-btn--ghost:hover { background: var(--jb-navy); color: #fff !important; }
.jb-btn--light { background: #fff; color: var(--jb-navy) !important; }
.jb-btn--light:hover { background: var(--jb-orange-tint); }
.jb-btn svg { width: 1.1em; height: 1.1em; flex: none; }

/* ---------- Menu horizontal (sortie Artisteer : ul.art-hmenu) ---------- */
.jb-nav ul.art-hmenu, .jb-nav ul.art-hmenu ul { list-style: none; margin: 0; padding: 0; }
.jb-nav ul.art-hmenu { display: flex; flex-wrap: wrap; align-items: stretch; }
.jb-nav ul.art-hmenu > li { position: relative; }
.jb-nav ul.art-hmenu a, .jb-nav ul.art-hmenu span.separator {
  display: block; font-family: var(--jb-font-display); font-weight: 600; font-size: 18px;
  text-decoration: none; white-space: nowrap;
}
.jb-nav ul.art-hmenu ul {
  position: absolute; left: 0; top: 100%; min-width: 230px; z-index: 50; display: none;
  background: #fff; border: 1px solid var(--jb-line); border-radius: 0 0 var(--jb-radius) var(--jb-radius);
  box-shadow: 0 12px 24px -12px rgba(20, 34, 79, .35); padding: 6px 0;
}
.jb-nav ul.art-hmenu li:hover > ul, .jb-nav ul.art-hmenu li:focus-within > ul { display: block; }
.jb-nav ul.art-hmenu ul a { color: var(--jb-ink) !important; padding: 9px 18px; font-weight: 500; font-size: 17px; background: none !important; }
.jb-nav ul.art-hmenu ul a:hover { color: var(--jb-blue) !important; background: var(--jb-page) !important; }
.jb-nav ul.art-hmenu ul ul { left: 100%; top: -7px; border-radius: var(--jb-radius); }
.jb-menu-toggle {
  display: none; align-items: center; gap: 10px; background: none; border: 0; cursor: pointer;
  font-family: var(--jb-font-display); font-weight: 700; font-size: 18px; color: inherit; padding: 12px 0;
}
.jb-menu-toggle .jb-burger, .jb-menu-toggle .jb-burger::before, .jb-menu-toggle .jb-burger::after {
  display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px; position: relative; content: "";
}
.jb-menu-toggle .jb-burger::before { position: absolute; top: -7px; }
.jb-menu-toggle .jb-burger::after { position: absolute; top: 7px; }

/* ---------- Zone principale ---------- */
.jb-main { padding-top: 36px; padding-bottom: 56px; }
.jb-columns { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: start; }
.jb-columns--sidebar { grid-template-columns: minmax(0, 1fr) 320px; }
.jb-content > *:first-child { margin-top: 0; }

/* Mises en page Artisteer (positions top/bottom et contenu d'articles) */
.art-content-layout { display: table; width: 100%; table-layout: fixed; border-collapse: collapse; }
.art-content-layout-row { display: table-row; }
.art-layout-cell { display: table-cell; vertical-align: top; }
.jb-positions > .art-content-layout { border-collapse: separate; border-spacing: 24px 0; margin: 0 -24px 32px; width: calc(100% + 48px); }
.art-postcontent .art-content-layout { margin: 0 0 1em; }
.art-postcontent .art-layout-cell { padding: 0 12px; }
.art-postcontent .art-layout-cell:first-child { padding-left: 0; }
.art-postcontent .art-layout-cell:last-child { padding-right: 0; }

/* ---------- Articles (art-post) ---------- */
.art-post { margin: 0 0 28px; }
.art-post .art-postmetadataheader { margin: 0 0 14px; }
.art-post .art-postheader { margin: 0; font-size: clamp(25px, 3vw, 32px); }
.art-post .art-postheader:empty, .art-postheadericon:empty { display: none; }
.art-post .art-postmetadataheader:not(:has(h2 span:not(:empty))):not(:has(.art-metadata-icons:not(:empty))) { display: none; }
.art-metadata-icons { font-size: 14px; color: var(--jb-muted); margin-top: 6px; }
.art-metadata-icons:empty, .art-postmetadatafooter:empty, .art-postmetadatafooter:has(.art-metadata-icons:empty) { display: none; }
.art-metadata-icons a { color: var(--jb-muted); }
.art-metadata-icons img { vertical-align: middle; }
.art-postmetadatafooter { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--jb-line); }
.art-postcontent { overflow-wrap: break-word; }
.art-postcontent::after { content: ""; display: table; clear: both; }
.art-postcontent > *:last-child { margin-bottom: 0; }
.art-postcontent ul, .art-postcontent ol { margin: 0 0 1em; padding-left: 1.3em; }
.art-postcontent li { margin: .25em 0; }
.art-postcontent ul > li::marker { color: var(--jb-orange); }
.art-postcontent blockquote {
  margin: 1.2em 0; padding: 14px 20px; border-left: 4px solid var(--jb-orange);
  background: var(--jb-orange-tint); border-radius: 0 var(--jb-radius) var(--jb-radius) 0;
}
.art-postcontent hr { border: 0; border-top: 1px solid var(--jb-line); margin: 2em 0; }
.art-postcontent img[style*="float: left"], .art-postcontent img[align=left], .art-postcontent .img-intro-left, .art-postcontent .img-fulltext-left { margin: 4px 24px 12px 0; }
.art-postcontent img[style*="float: right"], .art-postcontent img[align=right], .art-postcontent .img-intro-right, .art-postcontent .img-fulltext-right { margin: 4px 0 12px 24px; }
.art-postcontent .img-intro-left, .art-postcontent .img-fulltext-left { float: left; }
.art-postcontent .img-intro-right, .art-postcontent .img-fulltext-right { float: right; }
p.readmore { margin: 18px 0 0; }
p.readmore .art-button { font-size: 17px; padding: 10px 18px; }

/* Tableaux (ex. page Tarifs) */
.art-postcontent table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: 16px; }
.art-postcontent th, .art-postcontent td { padding: 11px 14px; border-bottom: 1px solid var(--jb-line); text-align: left; vertical-align: top; }
.art-postcontent th, .art-postcontent thead td { font-family: var(--jb-font-display); font-weight: 700; font-size: 17px; color: var(--jb-navy); background: var(--jb-page); }
.art-postcontent tbody tr:hover td { background: #FAFBFC; }
.art-postcontent table[border="0"] td, .art-postcontent table.jb-plain td { border: 0; padding-left: 0; }

/* Harmonisation des vieux styles en ligne (option "Harmoniser le texte des articles") */
body.jb-normalize .art-postcontent [style*="font-size"],
body.jb-normalize .art-blockcontent [style*="font-size"] { font-size: inherit !important; line-height: inherit !important; }
body.jb-normalize .art-postcontent [style*="font-family"],
body.jb-normalize .art-blockcontent [style*="font-family"] { font-family: inherit !important; }
body.jb-normalize .art-postcontent font[size] { font-size: inherit; }

/* ---------- Blocs de modules (art-block) ---------- */
.art-block { background: #fff; border: 1px solid var(--jb-line); border-radius: var(--jb-radius); padding: 22px 24px; margin: 0 0 24px; }
.art-blockheader h3.t { margin: 0 0 12px; font-size: 21px; }
.art-blockcontent > *:last-child { margin-bottom: 0; }
.art-blockcontent ul { list-style: none; margin: 0; padding: 0; }
.art-blockcontent li { padding: 7px 0; border-bottom: 1px solid var(--jb-line); }
.art-blockcontent li:last-child { border-bottom: 0; }
.art-blockcontent li a { text-decoration: none; }

/* ---------- Fil d'Ariane, messages, pagination ---------- */
.jb-breadcrumb { font-size: 15px; color: var(--jb-muted); margin: 0 0 18px; }
.jb-breadcrumb a { color: var(--jb-muted); }
.jb-breadcrumb img { vertical-align: middle; }
#system-message-container:empty { display: none; }
#system-message { margin: 0 0 24px; padding: 0; }
#system-message dt { display: none; }
#system-message dd { margin: 0; }
#system-message dd ul, .alert { list-style: none; margin: 0 0 12px; padding: 14px 18px; border-radius: var(--jb-radius); background: #EAF0FF; border-left: 4px solid var(--jb-blue); color: var(--jb-navy); }
#system-message dd.error ul, .alert-error, .alert-danger { background: #FDECEC; border-left-color: #C62828; color: #7A1616; }
#system-message dd.notice ul, .alert-warning { background: var(--jb-orange-tint); border-left-color: var(--jb-orange); color: #6B3500; }
.art-pager, .pagination { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 24px 0; }
.art-pager a, .art-pager span, .pagination a, .pagination span {
  display: inline-block; min-width: 40px; padding: 8px 12px; text-align: center; border-radius: var(--jb-radius);
  border: 1px solid var(--jb-line); background: #fff; text-decoration: none; font-weight: 600; color: var(--jb-navy);
}
.art-pager .active, .pagination .active span { background: var(--jb-navy); border-color: var(--jb-navy); color: #fff; }
.pagination p.counter { flex-basis: 100%; margin: 0; color: var(--jb-muted); font-size: 15px; border: 0; padding: 0; background: none; text-align: left; }

/* ---------- Formulaires (contact, recherche, connexion) ---------- */
body.jb input[type=text], body.jb input[type=email], body.jb input[type=tel], body.jb input[type=password],
body.jb input[type=search], body.jb textarea, body.jb select, body.jb .inputbox {
  font: inherit; font-size: 17px; color: var(--jb-ink); background: #fff; width: 100%; max-width: 520px;
  padding: 10px 12px; border: 1px solid #C9CED8; border-radius: var(--jb-radius);
}
body.jb textarea { min-height: 160px; max-width: 100%; }
body.jb input:focus, body.jb textarea:focus, body.jb select:focus { border-color: var(--jb-blue); outline: 3px solid rgba(35, 64, 200, .18); outline-offset: 0; }
body.jb label { font-weight: 600; color: var(--jb-navy); }
body.jb fieldset { border: 0; padding: 0; margin: 0 0 1em; }
body.jb legend { font-family: var(--jb-font-display); font-weight: 700; font-size: 22px; color: var(--jb-navy); padding: 0; margin-bottom: 10px; }
body.jb .contact-form dt, body.jb .control-label { margin-top: 12px; }
body.jb .contact-form dd { margin-left: 0; }

/* ---------- Blocs de contenu réutilisables (à utiliser dans les articles) ---------- */
.jb-lead { font-size: 20px; line-height: 1.55; color: var(--jb-ink); max-width: 62ch; }
.jb-split { display: grid; grid-template-columns: minmax(180px, 280px) minmax(0, 1fr); gap: 28px; align-items: start; margin: 0 0 1.4em; }
.jb-split > figure { margin: 0; }
.jb-split img { border-radius: var(--jb-radius); border: 1px solid var(--jb-line); background: #fff; display: block; }
.jb-split > div > *:first-child { margin-top: 0; }
.jb-checks { list-style: none !important; padding: 0 !important; margin: 0 0 1.2em; }
.jb-checks li { position: relative; padding-left: 30px; margin: .45em 0; }
.jb-checks li::before {
  content: ""; position: absolute; left: 2px; top: .38em; width: 16px; height: 16px; border-radius: 50%;
  background: var(--jb-orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.3l2.6 2.5L12 5.4' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;
}
.jb-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin: 0 0 1.4em; }
.jb-card { background: #fff; border: 1px solid var(--jb-line); border-radius: var(--jb-radius); padding: 18px 20px; }
.jb-card h3, .jb-card h4 { margin: 0 0 .35em !important; font-size: 21px !important; }
.jb-card p { margin: 0; color: var(--jb-muted); font-size: 16px; }
.jb-callout {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px;
  background: var(--jb-navy); color: #fff; border-radius: var(--jb-radius); padding: 20px 24px; margin: 1.4em 0;
}
.jb-callout p { margin: 0; font-size: 19px; }
.jb-callout strong { color: #fff; }
.jb-callout a.jb-btn { font-size: 21px; }
.jb-hours { font-weight: 600; color: var(--jb-navy); }

/* ---------- Bandeau marques ---------- */
.jb-brands { background: #fff; border-top: 1px solid var(--jb-line); }
.jb-brands .jb-wrap { display: flex; align-items: center; justify-content: center; gap: 28px; padding-top: 20px; padding-bottom: 20px; flex-wrap: wrap; }
.jb-brands p { margin: 0; font-family: var(--jb-font-display); font-weight: 600; font-size: 20px; color: var(--jb-navy); max-width: 28ch; }
.jb-brands img { width: 349px; }

/* ---------- Pied de page ---------- */
.jb-footer { background: var(--jb-navy); color: #C9D0E4; font-size: 16px; }
.jb-footer a { color: #fff !important; }
.jb-footer a:hover { color: var(--jb-orange-soft) !important; }
.jb-footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; padding-top: 44px; padding-bottom: 36px; }
.jb-footer h2 { font-size: 19px !important; color: #fff !important; margin: 0 0 12px !important; }
.jb-footer p { margin: 0 0 .5em; }
.jb-footer ul { list-style: none; margin: 0; padding: 0; }
.jb-footer li { margin: 0 0 .45em; }
.jb-footer .jb-footer-phone { font-family: var(--jb-font-display); font-weight: 700; font-size: 26px; text-decoration: none; }
.jb-social { display: flex; gap: 10px; margin-top: 14px; }
.jb-social a { display: inline-flex; width: 40px; height: 40px; border-radius: 50%; align-items: center; justify-content: center; background: rgba(255,255,255,.1); }
.jb-social a:hover { background: var(--jb-orange-cta); }
.jb-social svg { width: 19px; height: 19px; fill: #fff; }
.jb-footer-bottom { border-top: 1px solid rgba(255,255,255,.12); }
.jb-footer-bottom .jb-wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 16px; padding-bottom: 18px; font-size: 14px; color: #9DA7C4; }
.jb-footer-bottom a { color: #C9D0E4 !important; }
.jb-footer .art-nostyle h3 { color: #fff; font-size: 19px; margin: 0 0 12px; }

/* ---------- Responsive commun ---------- */
@media (max-width: 960px) {
  .jb-columns--sidebar { grid-template-columns: minmax(0, 1fr); }
  .jb-footer-grid { grid-template-columns: 1fr 1fr; }
  .jb-footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  body.jb { font-size: 16.5px; }
  .art-content-layout, .art-content-layout-row, .art-layout-cell { display: block; width: auto !important; }
  .jb-positions > .art-content-layout { margin: 0 0 16px; width: auto; }
  .jb-positions .art-layout-cell { margin-bottom: 16px; }
  .art-postcontent .art-layout-cell { padding: 0 !important; margin-bottom: 1em; }
  .art-postcontent img[style*="float"] { float: none !important; display: block; margin: 0 0 14px !important; }
  .jb-split { grid-template-columns: 1fr; }
  .jb-split > figure { max-width: 300px; }
  .jb-footer-grid { grid-template-columns: 1fr; }
  .art-postcontent table { display: block; overflow-x: auto; }
  .jb-menu-toggle { display: inline-flex; }
  .jb-nav ul.art-hmenu { display: none; flex-direction: column; width: 100%; }
  .jb-nav.is-open ul.art-hmenu { display: flex; }
  .jb-nav ul.art-hmenu ul { position: static; display: block; box-shadow: none; border: 0; padding: 0 0 0 16px; background: transparent; }
  .jb-nav ul.art-hmenu ul a { color: inherit !important; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
@media print {
  .jb-topbar, .jb-nav, .jb-hero, .jb-brands, .jb-footer, .jb-side { display: none !important; }
  body.jb { background: #fff; }
}

/* =====================================================================
   Version compacte (v2.6.1) : espacements et tailles resserrés
   ===================================================================== */
body.jb { line-height: 1.5; }
body.jb p { margin-bottom: .7em; }
body.jb h1, body.jb h2, body.jb h3, body.jb h4, body.jb h5, body.jb h6 { margin: 1em 0 .4em; }
body.jb h2 { font-size: clamp(22px, 2.4vw, 26px); }
body.jb h3 { font-size: 20px; }
.jb-main { padding-top: 20px; padding-bottom: 32px; }
.jb-columns { gap: 20px; }
.jb-columns--sidebar { grid-template-columns: minmax(0, 1fr) 290px; }
.jb-positions > .art-content-layout { border-spacing: 14px 0; margin: 0 -14px 16px; width: calc(100% + 28px); }
.art-post { margin-bottom: 16px; }
.art-post .art-postmetadataheader { margin-bottom: 8px; }
.art-post .art-postheader { font-size: clamp(22px, 2.4vw, 26px); }
.art-postmetadatafooter { margin-top: 10px; padding-top: 8px; }
.art-postcontent ul, .art-postcontent ol { margin-bottom: .7em; }
.art-postcontent li { margin: .1em 0; }
.art-postcontent th, .art-postcontent td { padding: 7px 10px; }
.art-postcontent blockquote { padding: 10px 14px; margin: .8em 0; }
.art-block { padding: 14px 16px; margin-bottom: 14px; }
.art-blockheader h3.t { margin-bottom: 8px; font-size: 19px; }
.art-blockcontent li { padding: 5px 0; }
.jb-btn, body.jb .art-button, body.jb .button, body.jb .btn, body.jb button[type=submit], body.jb input[type=submit] { font-size: 17px; padding: 10px 18px; }
.jb-lead { font-size: 18.5px; }
.jb-split { gap: 18px; margin-bottom: .9em; }
.jb-cards { gap: 12px; margin-bottom: .9em; }
.jb-card { padding: 12px 14px; }
.jb-card h3, .jb-card h4 { font-size: 19px !important; }
.jb-callout { padding: 14px 18px; margin: .9em 0; }
.jb-callout a.jb-btn { font-size: 19px; }
.jb-brands .jb-wrap { padding-top: 10px; padding-bottom: 10px; gap: 20px; }
.jb-brands p { font-size: 18px; }
.jb-brands img { width: 260px; }
.jb-footer { font-size: 15px; }
.jb-footer-grid { padding-top: 26px; padding-bottom: 18px; gap: 24px; }
.jb-footer h2 { margin-bottom: 8px !important; font-size: 18px !important; }
.jb-footer p { margin-bottom: .3em; }
.jb-footer .jb-footer-phone { font-size: 22px; }
.jb-social { margin-top: 8px; }
.jb-social a { width: 34px; height: 34px; }
.jb-social svg { width: 16px; height: 16px; }
.jb-footer-bottom .jb-wrap { padding-top: 10px; padding-bottom: 12px; }
@media (max-width: 760px) {
  .jb-main { padding-top: 14px; padding-bottom: 20px; }
}

/* v2.21 : encadré d'appel — texte et bouton côte à côte */
.jb-callout { flex-wrap: nowrap; }
.jb-callout p { flex: 1 1 auto; min-width: 0; font-size: 16.5px; line-height: 1.45; }
.jb-callout .jb-btn { flex: none; white-space: nowrap; }
@media (max-width: 680px) { .jb-callout { flex-wrap: wrap; } }

/* =====================================================================
   JBSMT26A « Atelier » — l'en-tête orange d'origine, réorganisé :
   logo, accroche, technicien et numéro de téléphone alignés sur une grille.
   ===================================================================== */

/* Bandeau d'infos */
.jb-topbar { background: var(--jb-navy); color: #DDE3F3; font-size: 14.5px; }
.jb-topbar .jb-wrap { display: flex; justify-content: space-between; gap: 6px 24px; flex-wrap: wrap; padding-top: 7px; padding-bottom: 7px; }
.jb-topbar span { display: inline-flex; align-items: center; gap: 7px; }
.jb-topbar svg { width: 15px; height: 15px; color: var(--jb-orange-soft); }

/* En-tête (Image de fond header.webp intégrée directement ici) */
.jb-header { position: relative; background: var(--jb-orange-soft) url("../images/header.webp") center top / cover no-repeat; border-bottom: 0; }
.jb-header-inner {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; column-gap: 32px;
  min-height: 250px; padding-top: 22px;
}
.jb-logo { align-self: center; margin-bottom: 22px; display: block; background: #fff; border-radius: var(--jb-radius); padding: 6px; box-shadow: 0 10px 24px -14px rgba(20, 34, 79, .55); }
.jb-logo img { display: block; width: 178px; }
.jb-header-text { align-self: center; padding-bottom: 22px; max-width: 560px; }
.jb-a .jb-header h1, .jb-header-title {
  font-family: var(--jb-font-display); font-weight: 700; color: var(--jb-navy);
  font-size: clamp(28px, 3vw, 38px); line-height: 1.08; margin: 0 0 10px;
}
.jb-inner .jb-header-title { font-size: clamp(24px, 2.4vw, 30px); }
.jb-header-sub { margin: 0; font-size: 17.5px; color: #2C2416; line-height: 1.45; }
.jb-tech { align-self: end; width: 199px; display: block; }
.jb-header-cta {
  align-self: center; margin-bottom: 22px; background: #fff; border-radius: var(--jb-radius);
  padding: 16px 20px 14px; box-shadow: 0 10px 24px -14px rgba(20, 34, 79, .55); text-align: left;
}
.jb-cta-label { display: block; font-size: 14.5px; color: var(--jb-muted); margin-bottom: 2px; }
.jb-phone {
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  font-family: var(--jb-font-display); font-weight: 700; font-size: 31px; line-height: 1.1;
  color: var(--jb-navy) !important; text-decoration: none !important;
}
.jb-phone svg { width: 26px; height: 26px; color: var(--jb-orange-cta); }
.jb-phone:hover { color: var(--jb-blue) !important; }
.jb-cta-mail { display: block; margin-top: 4px; font-size: 15px; }
.jb-inner .jb-header-inner { min-height: 200px; }
.jb-inner .jb-tech { width: 160px; }

/* Menu */
.jb-nav { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid var(--jb-line); box-shadow: 0 4px 14px -10px rgba(20, 34, 79, .4); }
.jb-nav-inner { display: flex; align-items: center; flex-wrap: wrap; color: var(--jb-navy); }
.jb-a .jb-nav ul.art-hmenu > li > a, .jb-a .jb-nav ul.art-hmenu > li > span.separator { color: var(--jb-navy); padding: 15px 18px; box-shadow: inset 0 -3px 0 transparent; }
.jb-a .jb-nav ul.art-hmenu > li:first-child > a { padding-left: 0; }
.jb-a .jb-nav ul.art-hmenu > li > a:hover { color: var(--jb-blue); box-shadow: inset 0 -3px 0 var(--jb-orange-soft); }
.jb-a .jb-nav ul.art-hmenu > li.active > a, .jb-a .jb-nav ul.art-hmenu > li.current > a { color: var(--jb-navy); box-shadow: inset 0 -3px 0 var(--jb-orange); }
.art-hmenu-extra1, .art-hmenu-extra2 { margin-left: auto; }

/* Articles : panneaux blancs, titre avec filet orange */
.jb-a .art-post { background: #fff; border: 1px solid var(--jb-line); border-radius: var(--jb-radius); padding: 30px 34px; }
.jb-a .art-post .art-postmetadataheader { margin-bottom: 18px; }
.jb-a .art-post .art-postheader::after { content: ""; display: block; width: 56px; height: 4px; background: var(--jb-orange); border-radius: 2px; margin-top: 12px; }
.jb-a .jb-positions .art-block { height: 100%; }

@media (max-width: 1080px) {
  .jb-header-inner { grid-template-columns: auto minmax(0, 1fr) auto; }
  .jb-tech { display: none; }
}
@media (max-width: 760px) {
  .jb-topbar .jb-wrap { justify-content: center; text-align: center; }
  .jb-header-inner { grid-template-columns: 1fr; justify-items: start; min-height: 0; padding-top: 18px; padding-bottom: 20px; row-gap: 14px; }
  .jb-logo, .jb-header-text, .jb-header-cta { margin-bottom: 0; padding-bottom: 0; }
  .jb-logo img { width: 130px; }
  .jb-header-cta { width: 100%; }
  .jb-phone { font-size: 28px; }
  .jb-a .art-post { padding: 22px 20px; }
  .jb-nav-inner { padding-top: 0; }
  .jb-a .jb-nav ul.art-hmenu > li > a { padding: 11px 0; box-shadow: none !important; border-top: 1px solid var(--jb-line); }
  .jb-a .jb-nav ul.art-hmenu > li.active > a { color: var(--jb-orange-cta); }
}
@media (max-width: 760px) { .jb-inner .jb-header-sub { display: none; } }

/* Version compacte */
.jb-topbar .jb-wrap { padding-top: 4px; padding-bottom: 4px; }
.jb-topbar { font-size: 13.5px; }
.jb-header-inner { min-height: 180px; padding-top: 14px; column-gap: 24px; }
.jb-inner .jb-header-inner { min-height: 140px; }
.jb-logo { margin-bottom: 14px; padding: 5px; }
.jb-logo img { width: 135px; }
.jb-inner .jb-logo img { width: 110px; }
.jb-header-text { padding-bottom: 14px; }
.jb-a .jb-header h1, .jb-header-title { font-size: clamp(24px, 2.4vw, 30px); margin-bottom: 6px; }
.jb-inner .jb-header-title { font-size: clamp(21px, 2vw, 25px); }
.jb-header-sub { font-size: 16px; }
.jb-tech { width: 150px; }
.jb-inner .jb-tech { width: 120px; }
.jb-header-cta { margin-bottom: 14px; padding: 10px 16px; }
.jb-phone { font-size: 26px; }
.jb-phone svg { width: 22px; height: 22px; }
.jb-a .jb-nav ul.art-hmenu > li > a, .jb-a .jb-nav ul.art-hmenu > li > span.separator { padding: 10px 16px; font-size: 17px; }
.jb-a .art-post { padding: 18px 22px; }
.jb-a .art-post .art-postmetadataheader { margin-bottom: 12px; }
.jb-a .art-post .art-postheader::after { margin-top: 7px; height: 3px; width: 44px; }
@media (max-width: 760px) {
  .jb-header-inner { padding-top: 12px; padding-bottom: 14px; row-gap: 10px; }
  .jb-logo img, .jb-inner .jb-logo img { width: 100px; }
  .jb-a .art-post { padding: 14px 14px; }
  .jb-a .jb-nav ul.art-hmenu > li > a { padding: 8px 0; }
}

/* =====================================================================
   Articles : premier en pleine largeur, les autres en cartes par trois (v2.14)
   ===================================================================== */
.blog-featured, .blog { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.blog-featured > *, .blog > * { grid-column: 1 / -1; }
.blog-featured > .items-leading, .blog > .items-leading,
.blog-featured > .items-row, .blog > .items-row { display: contents; }
.items-leading > div, .items-row > .item { grid-column: span 2; display: flex; flex-direction: column; min-width: 0; }
.items-leading > div > .art-post, .items-row > .item > .art-post { flex: 1; margin-bottom: 0; }
.items-row > .row-separator { display: none; }
body.jb-lead-wide :not(.jb-lead-outside) > .items-leading > div:first-child { grid-column: 1 / -1; }
@media (min-width: 1001px) {
  .items-leading > .jb-r3-full, .items-row > .jb-r3-full { grid-column: 1 / -1; }
  .items-leading > .jb-r3-half, .items-row > .jb-r3-half { grid-column: span 3; }
}
@media (min-width: 681px) and (max-width: 1000px) {
  .items-leading > div, .items-row > .item { grid-column: span 3; }
  body.jb-lead-wide :not(.jb-lead-outside) > .items-leading > div:first-child, .items-leading > .jb-r2-full, .items-row > .jb-r2-full { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  .items-leading > div, .items-row > .item { grid-column: 1 / -1; }
}

/* Cartes : titres et marges adaptés */
.blog-featured .art-post, .blog .art-post { container-type: inline-size; }
.blog-featured > .art-post, .blog > .art-post { container-type: normal; }
.jb-a .jb-card-item .art-post { padding: 16px 18px; }
.jb-card-item .art-postheader { font-size: 21px; }
@container (max-width: 560px) {
  .art-postcontent .art-content-layout, .art-postcontent .art-content-layout-row, .art-postcontent .art-layout-cell { display: block; width: auto !important; }
  .art-postcontent .art-layout-cell { padding: 0 !important; margin-bottom: .6em; }
  .art-postcontent { font-size: 16px; }
}

/* =====================================================================
   Bandeau remanié (v2.10) : atouts avec icônes, réseaux sociaux
   ===================================================================== */
.jb-topbar .jb-wrap { align-items: center; justify-content: flex-start; column-gap: 28px; }
.jb-topbar-social { margin-left: auto; gap: 10px !important; color: #B9C3E0; }
.jb-social--mini { display: inline-flex; gap: 6px; margin: 0; }
.jb-social--mini a { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,.12); }
.jb-social--mini a:hover { background: var(--jb-orange-cta); }
.jb-topbar .jb-social--mini svg { width: 14px; height: 14px; fill: #fff; color: #fff; }

.jb-header-inner { min-height: 170px; }
.jb-inner .jb-header-inner { min-height: 130px; }
.jb-header-sub { max-width: 52ch; }
.jb-header-badges { background: rgba(255, 255, 255, .5); border-top: 1px solid rgba(255, 255, 255, .6); }
.jb-badges { list-style: none; margin: 0; padding: 7px 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 18px; }
.jb-badges li { display: inline-flex; align-items: center; gap: 8px; color: var(--jb-navy); font-family: var(--jb-font-display); font-size: 16.5px; font-weight: 600; line-height: 1.2; }
.jb-badges .jb-line { width: 22px; height: 22px; color: var(--jb-orange-cta); flex: none; }
.jb-cta-mail { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.jb-cta-mail svg { width: 16px; height: 16px; }

@media (max-width: 760px) {
  .jb-topbar-social { margin-left: 0; }
  .jb-badges { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; }
  .jb-badges li { font-size: 14.5px; }
  .jb-badges .jb-line { width: 19px; height: 19px; }
}
@media (max-width: 380px) { .jb-badges { grid-template-columns: 1fr; } }

/* =====================================================================
   Blocs prestations (accueil) et encart « Besoin d'un technicien ? »
   ===================================================================== */
.jb-services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0 0 16px; }
.jb-service {
  display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; align-items: start;
  background: #fff; border: 1px solid var(--jb-line); border-radius: var(--jb-radius); padding: 14px 16px;
}
.jb-service .jb-line { grid-row: span 2; width: 40px; height: 40px; padding: 8px; border-radius: 50%; background: var(--jb-orange-tint); color: var(--jb-orange-cta); }
.jb-a .jb-service h2, .jb-a .jb-service h3 { font-size: 19px; margin: 2px 0 4px; }
.jb-service p { margin: 0; color: var(--jb-muted); font-size: 15px; line-height: 1.45; }

.jb-side { position: sticky; top: 64px; }
.jb-side-card { background: var(--jb-navy); color: #DDE3F3; border-radius: var(--jb-radius); padding: 16px; }
.jb-a .jb-side-card h2 { color: #fff; font-size: 21px; margin: 0 0 4px; }
.jb-side-card p { font-size: 15px; margin: 0 0 10px; }
.jb-side-phone {
  display: flex; align-items: center; justify-content: center; gap: 10px; background: var(--jb-orange-cta);
  color: #fff !important; text-decoration: none !important; border-radius: var(--jb-radius); padding: 9px;
  font-family: var(--jb-font-display); font-weight: 700; font-size: 22px;
}
.jb-side-phone:hover { background: #B85200; }
.jb-side-phone svg { width: 20px; height: 20px; }
.jb-side-facts { list-style: none; margin: 10px 0 0; padding: 0; font-size: 14.5px; }
.jb-side-facts li { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; border-top: 1px solid rgba(255,255,255,.12); }
.jb-side-facts svg { width: 17px; height: 17px; flex: none; margin-top: 2px; color: var(--jb-orange-soft); }
.jb-side-facts a { color: #fff; }
.jb-social--side { margin-top: 8px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.12); }

@media (max-width: 960px) {
  .jb-services { grid-template-columns: 1fr; gap: 10px; }
  .jb-side { position: static; }
}
body.jb .jb-side-card .jb-side-facts a { color: #fff; }
body.jb .jb-side-card .jb-side-facts a:hover { color: var(--jb-orange-soft); }

/* =====================================================================
   Facebook et Instagram dans la barre de menu
   ===================================================================== */
.jb-social--nav { display: flex; align-items: center; gap: 8px; margin: 0 0 0 auto; padding: 6px 0; }
.jb-social--nav a {
  display: inline-flex; align-items: center; gap: 7px; width: auto; height: 34px; padding: 0 13px 0 9px; border-radius: 999px; white-space: nowrap;
  color: #fff !important; text-decoration: none !important; font-family: var(--jb-font-display); font-weight: 600; font-size: 15.5px;
}
.jb-social--nav svg { width: 18px; height: 18px; fill: #fff; }
.jb-social--nav .jb-facebook { background: #1877F2; }
.jb-social--nav .jb-instagram { background: linear-gradient(45deg, #F9A13A 0%, #E6405F 45%, #C1358F 70%, #7A3FC4 100%); }
.jb-social--nav a:hover { filter: brightness(1.08); box-shadow: 0 4px 10px -4px rgba(20, 34, 79, .5); }

/* =====================================================================
   Page Tarifs : Cartes, Grilles & Mise en page
   ===================================================================== */

/* Encart d'accroche (Devis gratuit) */
.jb-price-highlight {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #FFF5EC;
  border: 1px solid #FFD0A8;
  border-left: 5px solid #FF7A00;
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 24px;
}
.jb-price-highlight-icon svg {
  width: 36px;
  height: 36px;
  color: #FF7A00;
  flex: none;
}
.jb-price-highlight-text h3 {
  margin: 0 0 4px;
  font-size: 18px;
  color: #14224F;
}
.jb-price-highlight-text p {
  margin: 0;
  font-size: 14px;
  color: #4B5563;
}

/* Grille 3 colonnes */
.jb-price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
  margin-bottom: 24px;
}
.jb-price-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 12px -6px rgba(20, 34, 79, .08);
}
.jb-price-card--featured {
  border: 2px solid #FF7A00;
}
.jb-price-badge {
  position: absolute;
  top: -12px;
  right: 16px;
  background: #FF7A00;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
}
.jb-price-card h2 {
  font-size: 19px;
  color: #14224F;
  margin: 0 0 10px;
}
.jb-price-amount {
  font-size: 26px;
  font-weight: 700;
  color: #14224F;
  margin-bottom: 8px;
}
.jb-price-amount span {
  font-size: 14px;
  font-weight: 400;
  color: #4B5563;
}
.jb-price-desc {
  font-size: 14px;
  color: #4B5563;
  margin: 0 0 16px;
  line-height: 1.4;
}
.jb-price-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid #E5E7EB;
  padding-top: 14px;
  flex: 1;
}
.jb-price-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  font-size: 14px;
  color: #374151;
  line-height: 1.4;
}
.jb-price-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #FF7A00;
  font-weight: bold;
}

/* Note de bas de page */
.jb-price-footer-info {
  font-size: 13px;
  color: #6B7280;
  margin-bottom: 24px;
}

/* Bloc d'appel à l'action final */
.jb-price-cta-box {
  background: #14224F;
  color: #fff;
  border-radius: 8px;
  padding: 24px;
  text-align: center;
}
.jb-price-cta-box h3 {
  color: #fff;
  margin: 0 0 6px;
  font-size: 20px;
}
.jb-price-cta-box p {
  margin: 0 0 16px;
  color: #DDE3F3;
  font-size: 14px;
}
.jb-price-phone-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #FF7A00;
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 20px;
  padding: 10px 24px;
  border-radius: 999px;
  box-shadow: 0 6px 16px -4px rgba(255, 122, 0, .5);
}
.jb-price-phone-btn svg {
  width: 20px;
  height: 20px;
}

/* Adaptabilité mobile */
@media (max-width: 900px) {
  .jb-price-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* =====================================================================
   Page Contact & Formulaire (com_contact)
   ===================================================================== */

/* Conteneur principal du composant contact */
.contact-form,
.contact {
  background: #ffffff;
  border: 1px solid var(--jb-line, #E5E7EB);
  border-radius: var(--jb-radius, 8px);
  padding: 28px 24px;
  box-shadow: 0 4px 12px -6px rgba(20, 34, 79, .08);
}

/* Titre principal de la page */
.contact-form legend,
.contact h1, .contact h2 {
  font-family: var(--jb-font-display);
  color: var(--jb-navy, #14224F);
  font-size: 22px;
  font-weight: 700;
  border-bottom: 2px solid var(--jb-orange, #FF7A00);
  padding-bottom: 8px;
  margin-bottom: 20px;
}

/* Champs de saisie (input, textarea) */
.contact-form .form-group {
  margin-bottom: 18px;
}

.contact-form label {
  display: block;
  font-weight: 600;
  color: var(--jb-navy, #14224F);
  margin-bottom: 6px;
  font-size: 14.5px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #D1D5DB;
  border-radius: 6px;
  font-size: 15px;
  color: #1F2937;
  background-color: #FAFAFA;
  transition: border-color .15s ease, box-shadow .15s ease;
  box-sizing: border-box;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
  border-color: var(--jb-orange, #FF7A00);
  background-color: #fff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 122, 0, .15);
}

/* Bouton d'envoi */
.contact-form button[type="submit"],
.contact-form .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--jb-orange, #FF7A00);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 16px;
  padding: 12px 28px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 4px 12px -2px rgba(255, 122, 0, .4);
  transition: background .15s ease, transform .15s ease;
  margin-top: 10px;
}

.contact-form button[type="submit"]:hover,
.contact-form .btn-primary:hover {
  background: #E06B00;
  transform: translateY(-1px);
}

/* Case à cocher & Captcha */
.contact-form .checkbox,
.contact-form .control-group {
  margin-top: 12px;
  margin-bottom: 12px;
}
/* =====================================================================
   Compaction de la Page Contact (Denser & Moins d'espaces perdus)
   ===================================================================== */

/* Réduction des marges globales de la page */
.contact,
.contact-form {
  max-width: 680px;
  margin: 0 auto;
  padding: 16px 20px !important;
  background: #ffffff;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .05);
}

/* Titre compact */
.contact-form legend,
.contact h1, .contact h2 {
  font-size: 18px !important;
  margin-bottom: 12px !important;
  padding-bottom: 4px !important;
  border-bottom: 2px solid #FF7A00;
}

/* Formulaire serré : espacements réduits */
.contact-form .form-group,
.contact-form .control-group {
  margin-bottom: 10px !important;
}

/* Libellés plus denses */
.contact-form label {
  font-size: 13.5px !important;
  margin-bottom: 3px !important;
  font-weight: 600;
}

/* Champs plus fins */
.contact-form input[type="text"],
.contact-form input[type="email"] {
  padding: 6px 10px !important;
  height: 34px !important;
  font-size: 14px !important;
}

/* Zone de texte message réduite */
.contact-form textarea {
  padding: 8px 10px !important;
  height: 90px !important;
  font-size: 14px !important;
}

/* Case à cocher & mentions compactes */
.contact-form .checkbox,
.contact-form .control-label,
.contact-form small {
  font-size: 12px !important;
  line-height: 1.3 !important;
}

/* Bouton Envoyer compact */
.contact-form button[type="submit"],
.contact-form .btn-primary {
  padding: 8px 22px !important;
  font-size: 14.5px !important;
  margin-top: 6px !important;
}
/* Bloc contact direct sous formulaire */
.jb-contact-direct {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed #E5E7EB;
  text-align: center;
  font-size: 13.5px;
  color: #4B5563;
}
.jb-contact-direct p {
  margin: 3px 0;
}
.jb-contact-phone a {
  color: #FF7A00 !important;
  font-size: 16px;
  text-decoration: none !important;
}
.jb-contact-hours {
  font-size: 13px;
  color: #6B7280;
}
/* Neutralisation définitive des popovers et réalignement propre du formulaire */
.contact-form .control-group {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  margin-bottom: 12px !important;
}

.contact-form .control-label {
  width: 100% !important;
  text-align: left !important;
  padding: 0 !important;
  margin-bottom: 4px !important;
}

.contact-form .controls {
  width: 100% !important;
  margin: 0 !important;
}

/* Désactivation de l'affichage des popovers parasites sur les labels */
.contact-form .hasPopover {
  pointer-events: none !important;
}

/* Retouches reprises de custom.css (JBSMT26A) */

/* Affichage direct de l'image de fond header.webp */
.jb-header {
  background-image: url('../images/header.webp') !important;
  background-repeat: no-repeat !important;
  background-position: center center !important;
  background-size: cover !important;
  position: relative;
  overflow: hidden;
  min-height: 250px;
}

.jb-header-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  display: block;
}

.jb-header-inner {
  position: relative;
  z-index: 1;
}

/* Page de contact : masquer les titres de rubriques inutiles */
.contact > h3 {
  display: none;
}

/* Masquer l'icône « i » devant le texte des informations diverses */
.contact-miscinfo dt {
  display: none;
}
.contact-miscinfo dd {
  margin-left: 0;
}

/* Formulaire de contact : affichage correct sur téléphone */
@media (max-width: 900px) {
  .contact form .control-group,
  .contact form .form-group,
  .contact form .controls,
  .contact form .control-label {
    display: block !important;
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
    text-align: left !important;
  }
  .contact form input[type="text"],
  .contact form input[type="email"],
  .contact form textarea {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* Pages avec colonne latérale : une seule colonne sur téléphone et tablette */
@media (max-width: 900px) {
  .jb-columns--sidebar {
    display: block !important;
  }
  .jb-columns--sidebar > .jb-content,
  .jb-columns--sidebar > .jb-side {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .jb-columns--sidebar > .jb-side {
    margin-top: 20px !important;
  }
}


/* Correction : Limiter la taille des icônes SVG pour éviter l'affichage géant */
a[href^="tel:"] svg,
.jb-phone svg {
  width: 24px !important;
  height: 24px !important;
  max-width: 24px !important;
  max-height: 24px !important;
}

/* Barre d'appel : masquée par défaut (ordinateur), affichée sur mobile ci-dessous */
.jb-callbar {
  display: none;
}

/* Rétablissement et style du bouton flottant « Appelez-nous » sur mobile */
@media (max-width: 760px) {
  .jb-callbar {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 60;
    min-height: 52px;
    border-radius: 999px;
    background: var(--jb-orange-cta);
    color: #fff !important;
    text-decoration: none !important;
    font-family: var(--jb-font-display);
    font-weight: 700;
    font-size: 20px;
    box-shadow: 0 10px 24px -8px rgba(20, 34, 79, .55);
  }
  .jb-callbar svg {
    width: 20px !important;
    height: 20px !important;
    max-width: 20px !important;
    max-height: 20px !important;
    fill: #fff !important;
  }
  body.jb { padding-bottom: 76px; }
}

/* Logo discret dans la barre de menu (à gauche de « Accueil ») */
.jb-nav-logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  margin-right: 14px;
}
body.jb .jb-nav-logo img {
  display: block;
  width: 46px;
  height: 46px;
  max-width: none;
}
@media (max-width: 760px) {
  .jb-nav-logo { display: none; }
}


/* Logo encadré de l'en-tête : légèrement agrandi pour mieux lire les caractères */
body.jb .jb-logo img {
  width: 160px;
  height: auto;
  max-width: none;
}
@media (max-width: 760px) {
  body.jb .jb-logo img { width: 130px; }
}

/* Formulaire de contact : version compacte (renforcée) */
body.jb .contact form .control-group { margin: 0 0 4px !important; }
body.jb .contact form .control-label,
body.jb .contact form label { margin: 0 0 2px !important; padding: 0 !important; line-height: 1.25; }
body.jb .contact form .controls { margin: 0 !important; }
body.jb .contact form input[type="text"],
body.jb .contact form input[type="email"] {
  margin: 0 !important;
  padding: 6px 10px !important;
  height: auto;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
}
body.jb .contact form textarea {
  min-height: 0 !important;
  height: 90px !important;
  margin: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
}
body.jb .contact form legend { margin: 0 0 6px !important; padding-bottom: 4px !important; }

@media (min-width: 761px) {
  .contact form fieldset { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; }
  .contact form fieldset > * { grid-column: 1 / -1; }
  .contact form .control-group:has(#jform_contact_name),
  .contact form .control-group:has(#jform_contact_email) { grid-column: auto; }
  
  body.jb .contact h2:has(.contact-name) { display: none; }
}

/* Pastille des cookies (Cookies CK) : remontée au-dessus du bouton d'appel sur mobile */
@media (max-width: 760px) {
  #cookiesck_options {
    bottom: 66px !important;
  }
}

/* =====================================================================
   4. Compatibilité Joomla 5 / 6 (JBSMT27)
   Le thème ne charge pas Bootstrap : quelques classes utilisées par le code
   de Joomla sont définies ici.
   ===================================================================== */

/* Texte réservé aux lecteurs d'écran */
.visually-hidden, .visually-hidden-focusable:not(:focus):not(:focus-within) {
  position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important;
  overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important;
}

/* Rangées de positions (top, user, bottom) : remplacent les tableaux Artisteer */
.jb-positions { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 0 0 16px; align-items: stretch; }
.jb-position > *:last-child { margin-bottom: 0; }
.jb-content .jb-positions .art-post { height: 100%; margin-bottom: 0; }
@media (max-width: 760px) { .jb-positions { grid-template-columns: 1fr; } }

/* Menu : titres de rubrique et séparateurs Joomla */
.jb-nav ul.art-hmenu span.nav-header, .jb-nav ul.art-hmenu span.mod-menu__heading, .jb-nav ul.art-hmenu span.mod-menu__separator {
  display: block; font-family: var(--jb-font-display); font-weight: 600; font-size: 17px; color: var(--jb-navy); padding: 10px 16px; white-space: nowrap; cursor: default;
}
.jb-nav ul.art-hmenu .image-title { margin-left: 6px; }
.jb-nav ul.art-hmenu img { vertical-align: middle; }

/* En-tête de page Joomla (option « Afficher le titre de la page ») */
.page-header h1, .page-header h2 { margin-top: 0; }

/* Informations sur l'article (auteur, dates, catégorie) */
dl.article-info { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; font-size: 14px; color: var(--jb-muted); }
dl.article-info dt { flex-basis: 100%; font-weight: 600; }
dl.article-info dd { margin: 0; }
dl.article-info dd [class^="icon-"] { display: none; }
.art-postmetadataheader > dl.article-info, .art-metadata-icons dl.article-info { margin-top: 4px; }

/* Étiquettes, badges, articles non publiés */
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--jb-line); color: var(--jb-navy); vertical-align: middle; }
.badge.bg-warning { background: var(--jb-orange-tint); color: #6B3500; }
.badge.bg-info { background: #EAF0FF; color: var(--jb-navy); }
ul.tags { list-style: none !important; padding: 0 !important; margin: 0 0 .8em !important; display: flex; flex-wrap: wrap; gap: 6px; }
ul.tags li { margin: 0 !important; }
ul.tags a { text-decoration: none; }
.system-unpublished { opacity: .75; border-style: dashed !important; }

/* Images d'introduction et d'article complet */
figure.item-image { margin: 0 0 12px; }
figure.item-image img { display: block; border-radius: var(--jb-radius); }
figure.item-image figcaption { font-size: 14px; color: var(--jb-muted); margin-top: 4px; }
.float-start, figure.left { float: left; margin: 4px 20px 12px 0; }
.float-end, figure.right { float: right; margin: 4px 0 12px 20px; }
.float-none { float: none; }
@media (max-width: 760px) { .float-start, .float-end, figure.left, figure.right { float: none; margin: 0 0 12px; } }

/* Bouton « Lire la suite » (Joomla : .btn.btn-secondary) */
p.readmore .btn { font-size: 17px; padding: 10px 18px; }
p.readmore .btn [class^="icon-"] { display: none; }

/* Icônes Joomla de base (sans charger Font Awesome) */
[class^="icon-"]:empty, [class*=" icon-"]:empty { display: inline-block; font-style: normal; line-height: 1; }
.icon-angle-left::before { content: "\2039"; }
.icon-angle-right::before { content: "\203A"; }
.icon-angle-double-left::before { content: "\00AB"; }
.icon-angle-double-right::before { content: "\00BB"; }
.icon-chevron-left::before { content: "\2039"; }
.icon-chevron-right::before { content: "\203A"; }
.icon-edit::before { content: "\270E"; }
.icon-eye-slash::before, .icon-lock::before { content: "\1F512"; font-size: .85em; }

/* Pagination Joomla (ul.pagination > li.page-item > a.page-link) */
.jb-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin: 8px 0 0; }
.jb-pagination p.counter { margin: 0; color: var(--jb-muted); font-size: 15px; }
.pagination__wrapper { margin: 0; }
.pagination-toolbar { display: block !important; margin: 0 !important; }
ul.pagination { list-style: none; margin: 0 !important; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
ul.pagination .page-item { margin: 0; }
ul.pagination .page-link {
  display: inline-block; min-width: 40px; padding: 8px 12px; text-align: center; border-radius: var(--jb-radius);
  border: 1px solid var(--jb-line); background: #fff; text-decoration: none; font-weight: 600; color: var(--jb-navy);
}
ul.pagination a.page-link:hover { border-color: var(--jb-navy); }
ul.pagination .page-item.active .page-link { background: var(--jb-navy); border-color: var(--jb-navy); color: #fff; }
ul.pagination .page-item.disabled .page-link { opacity: .45; }
/* Pagination à l'intérieur d'un article (Page précédente / suivante) */
ul.pagenav, .pagenavigation ul { list-style: none !important; padding: 0 !important; display: flex; justify-content: space-between; gap: 12px; margin: 1.2em 0 0 !important; }
.pagenavigation .btn [class^="icon-"] { display: none; }

/* Fil d'Ariane Joomla (ol.breadcrumb) */
.jb-breadcrumb ol.breadcrumb, .jb-breadcrumb ol.mod-breadcrumbs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.jb-breadcrumb li + li::before { content: "›"; margin-right: 4px; color: var(--jb-muted); }
.jb-breadcrumb .mod-breadcrumbs__here { display: none; }
.jb-breadcrumb li.mod-breadcrumbs__divider { display: none; }

/* Messages d'information */
.alert-info { background: #EAF0FF; border-left: 4px solid var(--jb-blue); }
.alert-success { background: #E9F7EE; border-left-color: #2E7D32; color: #1B4D20; }

/* Liste « Autres articles » et sous-catégories */
.items-more ol, .items-more ul { margin: 0; padding-left: 1.2em; }
.cat-children h3 { margin-top: 0; }

/* Page d'erreur */
.jb-error .jb-callout { margin-top: 1.4em; }
.jb-error-debug { white-space: pre-wrap; font-size: 13px; background: var(--jb-page); padding: 12px; border-radius: var(--jb-radius); overflow-x: auto; }

/* Affichage « composant seul » (impression) */
body.jb-component { background: #fff; padding: 16px 0; }

/* v1.0.1 — en-tête : les atouts restent collés en bas, sans bande orange vide */
.jb-header { display: flex; flex-direction: column; }
.jb-header > .jb-header-inner { flex: 1 1 auto; }
/* v1.0.1 — infos d'article : pas de libellé « Détails » (comme l'ancien thème) */
dl.article-info dt.article-info-term { display: none; }
/* v1.0.1 — barre de menu sur une seule ligne : libellé « Nous suivre » retiré, icônes seules sur écran moyen */
.jb-social--nav .jb-social-title { display: none; }
.jb-nav-inner { flex-wrap: nowrap; }
.jb-nav ul.art-hmenu { flex-wrap: nowrap; }
@media (max-width: 1240px) {
  .jb-social--nav a { width: 34px; padding: 0; justify-content: center; }
  .jb-social--nav .jb-social-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .jb-a .jb-nav ul.art-hmenu > li > a { padding-left: 12px; padding-right: 12px; }
}
@media (max-width: 960px) {
  .jb-nav-inner { flex-wrap: wrap; }
  .jb-nav ul.art-hmenu { flex-wrap: wrap; }
}

/* v1.0.2 — bloc de titre d'article sans titre ni information : masqué (évite un espace vide) */
.art-post .art-postmetadataheader:not(:has(.art-postheader)):not(:has(dd)):not(:has(a, img, button)) { display: none; }
/* v1.0.2 — titres blancs dans les encadrés bleus de la page Tarifs (étaient bleu foncé sur bleu foncé) */
body.jb .jb-price-cta-box h2, body.jb .jb-price-cta-box h3, body.jb .jb-callout h2, body.jb .jb-callout h3 { color: #fff; margin-top: 0; }

/* v1.0.3 — menu à 7 entrées : il tient sur une ligne.
   Facebook/Instagram restent dans le bandeau du haut et le pied de page. */
@media (min-width: 961px) {
  .jb-nav .jb-social--nav { display: none; }
  .jb-a .jb-nav ul.art-hmenu > li > a, .jb-a .jb-nav ul.art-hmenu > li > span.separator { padding-left: 12px; padding-right: 12px; }
  .jb-a .jb-nav ul.art-hmenu > li:first-child > a { padding-left: 0; }
}
@media (min-width: 961px) and (max-width: 1180px) {
  .jb-a .jb-nav ul.art-hmenu > li > a, .jb-a .jb-nav ul.art-hmenu > li > span.separator { padding-left: 8px; padding-right: 8px; font-size: 16px; }
  .jb-nav-logo { margin-right: 8px !important; }
}
/* Sécurité : jamais de défilement horizontal de la page */
html, body.jb { overflow-x: clip; }
