#cap-site-header.ios-nav .ios-brand {
  display:inline-flex;
  flex:0 0 auto;
  gap:9px;
  align-items:center;
  min-height:44px;
  white-space:nowrap;
  text-decoration:none;
}
#cap-site-header.ios-nav .ios-brand img {
  display:block;
  width:23px;
  height:32px;
  flex:none;
  margin:0;
  padding:0;
  border:0;
  border-radius:0;
  box-shadow:none;
  object-fit:contain;
}
#cap-site-header.ios-nav .ios-brand-accent {color:#ec640f}
@media(max-width:800px) {
  #cap-site-header.ios-nav .ios-brand {gap:7px}
  #cap-site-header.ios-nav .ios-brand img {height:27px;width:20px}
}
@media(max-width:360px) {
  #cap-site-header.ios-nav .ios-brand {gap:5px;font-size:18px}
  #cap-site-header.ios-nav .ios-row {gap:6px}
}

#cap-site-header.ios-nav .ios-tools nav > a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
}

@media (max-width: 800px) {
  #cap-site-header.ios-nav .ios-menu > .ios-links {
    inset: 100% 0 auto;
    min-width: 0;
    max-height: calc(100dvh - 92px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  #cap-site-header.ios-nav .ios-menu > .ios-links :is(a, summary) {
    box-sizing: border-box;
    min-height: 44px;
    padding: 8px 16px;
  }
}

/* Keep the original stacked pricing layout throughout its tablet breakpoint. */
@media (min-width:821px) and (max-width:900px) {
  body[data-cap-page="tarifs"] .tarifs-grid { grid-template-columns:minmax(0,1fr); }
}
body[data-cap-page="tarifs"] .t-amount { white-space:nowrap; }

/* Each legal section remains discoverable without a horizontal swipe. */
@media (max-width:650px) {
  body[data-cap-page="legal"] .lg-tabnav { position:static; }
  body[data-cap-page="legal"] .lg-tabnav-inner { flex-wrap:wrap; gap:2px 5px; padding:6px 14px; overflow:visible; }
  body[data-cap-page="legal"] .lg-tab { min-height:40px; padding:8px 10px; }
}

body[data-cap-page="404"] .cap-404-links a:first-child,
body[data-cap-page] .toc-cta a {
  background:var(--cap-orange) !important;
  color:var(--cap-ink) !important;
  border-radius:999px;
}
body[data-cap-page="404"] .cap-404-links a { border-radius:999px; }
body[data-cap-page] :is(.cta-sub,.faq-a) a {
  color:#84400e !important;
  text-decoration:underline;
  text-underline-offset:.15em;
}
body[data-cap-page] .cta-sub a { border-bottom:0 !important; }
body[data-cap-page] :is(.auto1 .vs-logo,.auto1 .vs-role,.frais-table tbody td:last-child,.budget-table tfoot td:last-child,tr.total td) { color:#84400e !important; }
body[data-cap-page] :is(.lbc .vs-logo,.lbc .vs-role,tr.sell-price td) { color:#285e90 !important; }
body[data-cap-page] :is(tr.margin td,tr.result td,.example-table tr.hl td:last-child) { color:#1a6946 !important; }
body[data-cap-page] :is(.ei-content p,.demo-cta p,.col-head p,.sl-text span,.testi-role) { color:var(--cap-muted) !important; }
body[data-cap-page="contact"] .error-toast { color:#9c2732; background:#fff2f2; }
/* Leave room beneath the last row for the floating assistance button. */
body[data-cap-public]:has(#cap-help-hub) .cap-site-footer {
  padding-bottom:calc(76px + env(safe-area-inset-bottom,0px));
}

@media (max-width:420px) {
  body[data-cap-page="article-calcul-marge-auto1"] .article-body { grid-template-columns:minmax(0,1fr); }
  body[data-cap-page="article-calcul-marge-auto1"] .article-body main { min-width:0; overflow-wrap:anywhere; }
  body[data-cap-page="tarifs"] .trust-grid { grid-template-columns:minmax(0,1fr); }
}

@media(max-width:1400px) {
  .cap-help:has(#cap-help-hub) .footinner {
    margin-bottom:calc(64px + env(safe-area-inset-bottom,0px));
  }
}

body[data-cap-public] .cap-mast__scene {
  container-type: inline-size;
}
@container (max-width: 345px) {
  body[data-cap-public] .cap-mast__film {
    left: 10px;
    right: auto;
    top: 10px;
    padding: 8px 10px;
  }
}
body[data-cap-public] .home-platforms-actions {
  flex-shrink: 0;
  white-space: nowrap;
}

@media (max-width:600px) {
  #invoices-list .invoice-table, #invoices-list .invoice-table tbody { display:block; width:100%; }
  #invoices-list .invoice-table thead { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
  #invoices-list .invoice-table tbody tr { display:block; margin-block:6px 16px; }
  #invoices-list .invoice-table td { display:grid; grid-template-columns:minmax(72px,.8fr) minmax(0,1fr); align-items:center; gap:6px; padding:6px 0; overflow-wrap:anywhere; text-align:right; }
  #invoices-list .invoice-table td::before { text-align:left; font-weight:700; color:var(--cap-muted); }
  #invoices-list .invoice-table td:nth-child(1)::before { content:"Date"; }
  #invoices-list .invoice-table td:nth-child(2)::before { content:"N° facture"; }
  #invoices-list .invoice-table td:nth-child(3)::before { content:"Montant"; }
  #invoices-list .invoice-table td:nth-child(4)::before { content:"Statut"; }
  #invoices-list .invoice-table td:nth-child(5)::before { content:"Télécharger"; }
  #invoices-list .invoice-link { justify-self:end; min-height:36px; text-decoration:underline; }
}
