/* =====================================================
   ServeursLocaux/includes/style.css
   DayZ Aide — Guide Serveur Local
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;600;700;800;900&family=Barlow:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg:           #0a0b0e;
  --bg2:          #0f1117;
  --bg3:          #161b22;
  --bg4:          #1c2230;
  --bg5:          #212736;
  --border:       rgba(255,255,255,0.07);
  --border2:      rgba(255,255,255,0.13);
  --orange:       #f5820a;
  --orange2:      #ff9d2e;
  --orange-dim:   rgba(245,130,10,0.10);
  --orange-glow:  rgba(245,130,10,0.20);
  --blue:         #3b82f6;
  --blue-dim:     rgba(59,130,246,0.12);
  --green:        #22c55e;
  --green-dim:    rgba(34,197,94,0.12);
  --red:          #ef4444;
  --red-dim:      rgba(239,68,68,0.12);
  --yellow:       #f59e0b;
  --yellow-dim:   rgba(245,158,11,0.12);
  --purple:       #a855f7;
  --purple-dim:   rgba(168,85,247,0.12);
  --text:         #e8eaf0;
  --text2:        #8d95a8;
  --text3:        #556070;
  --radius:       10px;
  --radius-lg:    16px;
  --shadow:       0 4px 24px rgba(0,0,0,0.5);
  --shadow-lg:    0 10px 40px rgba(0,0,0,0.6);
  --sidebar-w:    260px;
  --header-h:     58px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Barlow', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.65;
  min-height: 100vh;
  background-image:
    radial-gradient(ellipse 100% 60% at 50% -20%, rgba(245,130,10,0.05), transparent),
    url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.012'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E");
}

/* ===== LAYOUT ===== */
.layout {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  grid-template-rows: var(--header-h) 1fr auto;
  grid-template-areas:
    "header header"
    "sidebar main"
    "sidebar footer";
  min-height: 100vh;
}

/* ===== HEADER ===== */
.site-header {
  grid-area: header;
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(10,11,14,0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 18px;
  height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-badge {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--orange), var(--orange2));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 13px;
  color: #000;
  box-shadow: 0 0 14px rgba(245,130,10,0.4);
}

.logo-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text);
}
.logo-name em { color: var(--orange); font-style: normal; }

.header-sep { width: 1px; height: 28px; background: var(--border); flex-shrink: 0; }

.header-guide-tag {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text3);
  letter-spacing: .05em;
}

.header-guide-tag span {
  background: var(--orange-dim);
  border: 1px solid rgba(245,130,10,0.2);
  border-radius: 5px;
  padding: 2px 9px;
  font-size: 11px;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.header-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.progress-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text3);
}

.progress-bar {
  width: 120px;
  height: 4px;
  background: var(--bg5);
  border-radius: 10px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--orange), var(--orange2));
  border-radius: 10px;
  transition: width .5s ease;
  box-shadow: 0 0 8px rgba(245,130,10,0.5);
}

.header-back-site {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 7px;
  background: var(--bg4);
  border: 1px solid var(--border);
  color: var(--text2);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all .2s;
  white-space: nowrap;
}
.header-back-site:hover { border-color: var(--orange); color: var(--orange); }

/* ===== SIDEBAR ===== */
.site-sidebar {
  grid-area: sidebar;
  width: var(--sidebar-w);
  background: var(--bg2);
  border-right: 1px solid var(--border);
  position: sticky;
  top: var(--header-h);
  height: calc(100vh - var(--header-h));
  overflow-y: auto;
  overflow-x: hidden;
  padding: 18px 0 40px;
  scrollbar-width: thin;
  scrollbar-color: var(--bg5) transparent;
}

.sidebar-section {
  margin-bottom: 6px;
}

.sidebar-section-title {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text3);
  padding: 10px 18px 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text2);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: all .18s;
  position: relative;
}

.sidebar-link:hover {
  color: var(--text);
  background: rgba(255,255,255,0.03);
}

.sidebar-link.active {
  color: var(--orange);
  border-left-color: var(--orange);
  background: var(--orange-dim);
  font-weight: 600;
}

.sidebar-link .sl-icon {
  font-size: 14px;
  flex-shrink: 0;
  width: 18px;
  text-align: center;
}

.sidebar-link .sl-badge {
  margin-left: auto;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  background: var(--orange-dim);
  color: var(--orange);
  border: 1px solid rgba(245,130,10,0.2);
  letter-spacing: .06em;
}

.sidebar-link .sl-badge.done {
  background: var(--green-dim);
  color: var(--green);
  border-color: rgba(34,197,94,0.2);
}

.sidebar-type-switcher {
  margin: 12px 14px 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  background: var(--bg4);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px;
}

.type-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 7px 8px;
  border-radius: 5px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text3);
  text-decoration: none;
  transition: all .18s;
}

.type-btn.active {
  background: var(--orange);
  color: #000;
  box-shadow: 0 2px 8px rgba(245,130,10,0.3);
}

/* ===== MAIN CONTENT ===== */
.site-main {
  grid-area: main;
  padding: 36px 40px 60px;
  max-width: 820px;
  width: 100%;
}

/* ===== FOOTER ===== */
.site-footer {
  grid-area: footer;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 20px 28px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-brand {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: var(--text3);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.footer-brand em { color: var(--orange); font-style: normal; }

.footer-sep { color: var(--text3); }

.footer-links {
  display: flex;
  gap: 14px;
}

.footer-links a {
  font-size: 12px;
  color: var(--text3);
  text-decoration: none;
  transition: color .2s;
}
.footer-links a:hover { color: var(--orange); }

.footer-right {
  margin-left: auto;
  font-size: 11px;
  color: var(--text3);
}

/* ===== PAGE ELEMENTS ===== */

/* Page header */
.page-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange-dim);
  border: 1px solid rgba(245,130,10,0.22);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 16px;
}

.page-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .02em;
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 14px;
}
.page-title em { color: var(--orange); font-style: normal; }

.page-intro {
  font-size: 15px;
  color: var(--text2);
  line-height: 1.75;
  max-width: 600px;
  padding-left: 16px;
  border-left: 3px solid var(--orange);
  margin-bottom: 36px;
}

/* Cards */
.card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 16px;
}

.card-head {
  background: var(--bg4);
  padding: 13px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}

.card-num {
  width: 26px; height: 26px;
  background: var(--orange);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 13px;
  color: #000;
  flex-shrink: 0;
}

.card-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text);
}

.card-body { padding: 22px; }

/* Step items */
.step-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.step-item:last-child { border-bottom: none; padding-bottom: 0; }
.step-item:first-child { padding-top: 0; }

.step-num {
  width: 26px; height: 26px;
  border: 2px solid var(--orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 11px;
  color: var(--orange);
  flex-shrink: 0;
  margin-top: 1px;
}

.step-body h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text);
  margin-bottom: 7px;
}

.step-body p, .step-body li {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.7;
  margin-bottom: 6px;
}
.step-body p:last-child { margin-bottom: 0; }

/* Alerts */
.alert {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 13px 16px;
  border-radius: 10px;
  font-size: 13.5px;
  line-height: 1.65;
  margin: 12px 0;
  border: 1px solid transparent;
}
.alert-icon { font-size: 17px; flex-shrink: 0; margin-top: 1px; }
.alert-content strong { color: #fff; }

.alert-info   { background: var(--blue-dim);   border-color: rgba(59,130,246,0.22);  color: #93c5fd; }
.alert-ok     { background: var(--green-dim);  border-color: rgba(34,197,94,0.22);   color: #86efac; }
.alert-warn   { background: var(--yellow-dim); border-color: rgba(245,158,11,0.22);  color: #fcd34d; }
.alert-danger { background: var(--red-dim);    border-color: rgba(239,68,68,0.22);   color: #fca5a5; }
.alert-def    { background: var(--purple-dim); border-color: rgba(168,85,247,0.22);  color: #d8b4fe; }
.alert-orange { background: var(--orange-dim); border-color: rgba(245,130,10,0.22);  color: var(--orange2); }

/* Code blocks */
.code-block {
  background: #0d0f13;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  overflow: hidden;
  margin: 12px 0;
}

.cb-header {
  background: #13161d;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.cb-dots { display: flex; gap: 5px; }
.cb-dots span { width: 10px; height: 10px; border-radius: 50%; }
.cb-dots span:nth-child(1) { background: #ff5f57; }
.cb-dots span:nth-child(2) { background: #ffbd2e; }
.cb-dots span:nth-child(3) { background: #28c840; }

.cb-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text3);
  flex: 1;
}

.cb-copy {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--text2);
  font-size: 11px;
  font-weight: 600;
  font-family: 'Barlow', sans-serif;
  padding: 3px 10px;
  cursor: pointer;
  transition: all .2s;
}
.cb-copy:hover { background: var(--orange); color: #000; border-color: var(--orange); }
.cb-copy.copied { background: var(--green); color: #000; border-color: var(--green); }

.cb-body {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  line-height: 1.8;
  padding: 16px 18px;
  overflow-x: auto;
  white-space: pre;
  color: #9db59d;
  margin: 0;
}

/* Tooltips */
.tip {
  border-bottom: 1px dashed rgba(245,130,10,0.5);
  color: var(--orange2);
  font-weight: 600;
  cursor: help;
  position: relative;
}
.tip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 13px; height: 13px;
  background: var(--orange-dim);
  border-radius: 50%;
  font-size: 8px;
  font-weight: 800;
  color: var(--orange);
  margin-left: 3px;
  vertical-align: middle;
}
.tip:hover::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg4);
  border: 1px solid var(--border2);
  color: var(--text);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.55;
  padding: 9px 13px;
  border-radius: 8px;
  min-width: 200px;
  max-width: 280px;
  white-space: normal;
  z-index: 300;
  box-shadow: var(--shadow);
  pointer-events: none;
}

/* Tables */
.table-wrap { overflow-x: auto; margin: 12px 0; border-radius: 10px; border: 1px solid var(--border); }
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th {
  background: var(--bg4);
  text-align: left;
  padding: 10px 14px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text3);
  border-bottom: 1px solid var(--border);
}
.data-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); color: var(--text2); vertical-align: top; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--bg4); }

/* Badges */
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.badge-blue   { background: var(--blue-dim);   color: var(--blue);   border: 1px solid rgba(59,130,246,0.25); }
.badge-green  { background: var(--green-dim);  color: var(--green);  border: 1px solid rgba(34,197,94,0.25); }
.badge-red    { background: var(--red-dim);    color: var(--red);    border: 1px solid rgba(239,68,68,0.25); }
.badge-orange { background: var(--orange-dim); color: var(--orange); border: 1px solid rgba(245,130,10,0.25); }
.badge-gray   { background: rgba(255,255,255,0.04); color: var(--text3); border: 1px solid var(--border); }

/* Mono */
.mono { font-family: 'JetBrains Mono', monospace; font-weight: 500; }
.orange { color: var(--orange) !important; }
.green  { color: var(--green)  !important; }
.red    { color: var(--red)    !important; }

/* Info tiles grid */
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 12px 0; }
.info-grid.col3 { grid-template-columns: 1fr 1fr 1fr; }

.info-tile {
  background: var(--bg4);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
}
.info-tile-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--text3);
  margin-bottom: 5px;
}
.info-tile-value {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
}
.info-tile-desc { font-size: 12px; color: var(--text3); margin-top: 3px; line-height: 1.5; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 8px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .08em;
  text-decoration: none;
  transition: all .2s;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary {
  background: linear-gradient(135deg, var(--orange), var(--orange2));
  color: #000;
  box-shadow: 0 4px 18px rgba(245,130,10,0.28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 26px rgba(245,130,10,0.42); }
.btn-ghost {
  background: var(--bg4);
  color: var(--text2);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--border2); color: var(--text); }

/* Nav bottom */
.nav-bottom {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.nav-bottom-right { margin-left: auto; }

/* Divider */
.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 24px 0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text3);
}
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* Checklist */
.checklist { list-style: none; }
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
  color: var(--text2);
  line-height: 1.6;
}
.checklist li:last-child { border-bottom: none; }
.checklist li::before {
  content: '✓';
  color: var(--green);
  font-weight: 900;
  font-size: 11px;
  flex-shrink: 0;
  margin-top: 3px;
  width: 16px;
}

code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  background: var(--bg5);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
  color: var(--orange2);
}

/* Scrollbar */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--bg5); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--orange); }

/* =====================================================
   RESPONSIVE — Mobile first
   xs  : < 480px   (petits phones)
   sm  : < 640px   (phones)
   md  : < 900px   (tablettes portrait)
   lg  : < 1100px  (tablettes paysage / petits laptops)
   ===================================================== */

/* Bouton hamburger — caché par défaut sur desktop */
.sidebar-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  background: var(--bg4);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
  transition: all .2s;
  margin-left: 6px;
}
.sidebar-toggle:hover { border-color: var(--orange); }
.sidebar-toggle svg { width: 18px; height: 18px; stroke: var(--text2); }

/* Overlay pour fermer la sidebar sur mobile */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 150;
  backdrop-filter: blur(2px);
}
.sidebar-overlay.active { display: block; }

/* ===== LG : tablette paysage / petit laptop ===== */
@media (max-width: 1100px) {
  :root { --sidebar-w: 220px; }
  .site-main { padding: 28px 28px 60px; }
  .header-back-site span { display: none; }
}

/* ===== MD : tablette portrait ===== */
@media (max-width: 900px) {
  :root { --sidebar-w: 260px; }

  .layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "header"
      "main"
      "footer";
  }

  /* Sidebar devient un drawer latéral */
  .site-sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 260px;
    height: 100vh;
    z-index: 180;
    transition: left .28s cubic-bezier(.25,.8,.25,1);
    box-shadow: none;
    border-right: 1px solid var(--border2);
    padding-top: calc(var(--header-h) + 10px);
  }

  .site-sidebar.open {
    left: 0;
    box-shadow: 4px 0 30px rgba(0,0,0,0.6);
  }

  .sidebar-toggle { display: flex; }

  .site-main {
    padding: 24px 20px 60px;
    max-width: 100%;
  }

  .info-grid.col3 { grid-template-columns: 1fr 1fr; }

  .page-title { font-size: clamp(26px, 5vw, 40px); }

  .data-table { font-size: 12px; }
  .data-table th, .data-table td { padding: 8px 10px; }

  .header-guide-tag { display: none; }

  .progress-wrap { display: none; }
}

/* ===== SM : téléphones ===== */
@media (max-width: 640px) {
  .site-header { padding: 0 14px; gap: 10px; }

  .logo-name { font-size: 15px; }

  .header-back-site { padding: 5px 10px; font-size: 11px; }

  .site-main { padding: 18px 14px 60px; }

  .page-title { font-size: clamp(22px, 6vw, 34px); }

  .page-intro {
    font-size: 13.5px;
    padding-left: 12px;
    margin-bottom: 24px;
  }

  .page-eyebrow { font-size: 9px; padding: 3px 11px; }

  .card-body { padding: 16px; }
  .card-head { padding: 11px 16px; }
  .card-title { font-size: 13px; }

  .step-item { gap: 12px; padding: 13px 0; }
  .step-body h4 { font-size: 13px; }
  .step-body p { font-size: 13px; }

  .info-grid { grid-template-columns: 1fr; }
  .info-grid.col3 { grid-template-columns: 1fr; }

  .info-tile { padding: 12px 14px; }
  .info-tile-value { font-size: 15px; }

  .cb-body { font-size: 11px; padding: 12px 14px; }
  .cb-title { font-size: 10px; }

  .alert { padding: 11px 13px; font-size: 13px; gap: 9px; }
  .alert-icon { font-size: 15px; }

  .btn { padding: 10px 16px; font-size: 13px; }

  .nav-bottom { gap: 8px; margin-top: 28px; padding-top: 20px; }
  .nav-bottom-right { margin-left: 0; width: 100%; }
  .nav-bottom-right .btn { width: 100%; justify-content: center; }

  .data-table { font-size: 11px; }
  .data-table th { font-size: 9px; padding: 7px 8px; }
  .data-table td { padding: 7px 8px; }

  .badge { font-size: 9px; padding: 2px 6px; }

  .checklist li { font-size: 13px; }

  code { font-size: 11px; }

  .tip:hover::after { display: none; } /* tooltip inutilisable sur touch */

  .site-footer { padding: 16px 14px; flex-direction: column; gap: 10px; text-align: center; }
  .footer-right { margin-left: 0; }
  .footer-links { justify-content: center; flex-wrap: wrap; gap: 10px; }

  /* Sidebar drawer plus large sur mobile */
  .site-sidebar { width: 80vw; left: -85vw; }
  .site-sidebar.open { left: 0; }
}

/* ===== XS : très petits écrans ===== */
@media (max-width: 380px) {
  .site-main { padding: 14px 12px 56px; }
  .page-title { font-size: 20px; }
  .cb-body { font-size: 10px; }
  .logo-name { display: none; }
  .logo-badge { width: 28px; height: 28px; font-size: 11px; }
}

/* ===== Touch : empêcher le zoom sur les inputs ===== */
@media (hover: none) {
  .choice-card:hover { transform: none; }
  .btn:hover { transform: none; }
}

/* ===== Impression ===== */
@media print {
  .site-sidebar, .site-header, .site-footer,
  .sidebar-toggle, .sidebar-overlay, .nav-bottom { display: none !important; }
  .layout { display: block; }
  .site-main { padding: 0; max-width: 100%; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .card { border: 1px solid #ccc; break-inside: avoid; }
  .cb-body { background: #f5f5f5; color: #000; border: 1px solid #ccc; }
  a { color: #000; text-decoration: underline; }
  .alert { border: 1px solid #ccc; }
}
