/* ===================================================
   GLOBAL.CSS - Hyperbare.fr - v5.1
   Styles globaux - PAS de header/footer/nav ici
   =================================================== */

/* ===== RESET & BOX MODEL ===== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: #1e293b;
  background-color: #f8fafc;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== MEDIA ELEMENTS ===== */
img, video, iframe, embed, object {
  max-width: 100%;
  height: auto;
}

img { display: block; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.25;
  margin-top: 0;
  color: #0f172a;
}

p { margin-top: 0; }

a {
  color: #1e3a8a;
  transition: color 0.2s;
}

a:hover { color: #0d9488; }

/* ===== CONTAINERS ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background-color 0.2s, transform 0.15s, box-shadow 0.2s;
  font-family: inherit;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible {
  outline: 3px solid #0d9488;
  outline-offset: 3px;
}

.btn-primary {
  background-color: #1e3a8a;
  color: #ffffff;
}
.btn-primary:hover {
  background-color: #1e3a8a;
  box-shadow: 0 4px 16px rgba(30,58,138,0.3);
  color: #ffffff;
}

.btn-secondary {
  background-color: #0d9488;
  color: #ffffff;
}
.btn-secondary:hover {
  background-color: #0f766e;
  box-shadow: 0 4px 16px rgba(13,148,136,0.3);
  color: #ffffff;
}

.btn-outline {
  background-color: transparent;
  color: #1e3a8a;
  border: 2px solid #1e3a8a;
}
.btn-outline:hover {
  background-color: #1e3a8a;
  color: #ffffff;
}

/* ===== BADGES ===== */
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge-blue   { background-color: #dbeafe; color: #1e3a8a; }
.badge-teal   { background-color: #ccfbf1; color: #0f766e; }
.badge-slate  { background-color: #e2e8f0; color: #475569; }

/* ===== SECTION SPACING ===== */
.section { padding: 72px 0; }
.section-sm { padding: 48px 0; }
.section-lg { padding: 96px 0; }

.section-title {
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 16px;
  color: #64748b;
  max-width: 560px;
  line-height: 1.65;
  margin-bottom: 0;
}

.section-header {
  margin-bottom: 48px;
}

/* ===== CARDS ===== */
.card {
  background-color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
  box-shadow: 0 8px 32px rgba(30,58,138,0.1);
  transform: translateY(-2px);
}

/* ===== TABLES ===== */
.table-responsive,
.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
  font-size: 14px;
  overflow-wrap: break-word;
  word-break: break-word;
}

th {
  background-color: #f1f5f9;
  font-weight: 700;
  color: #1e3a8a;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

tr:hover td { background-color: #f8fafc; }

/* ===== FORMS ===== */
input, textarea, select, button {
  max-width: 100%;
  font-family: inherit;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-size: 16px;
  background-color: #ffffff;
  color: #1e293b;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus,
select:focus {
  border-color: #0d9488;
  box-shadow: 0 0 0 3px rgba(13,148,136,0.15);
  outline: none;
}

label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}

/* ===== FOCUS VISIBLE ===== */
:focus-visible {
  outline: 3px solid #0d9488;
  outline-offset: 2px;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #94a3b8; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #1e3a8a; }

/* ===== UTILITY ===== */
.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

.overflow-wrap {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

pre, code {
  overflow-x: auto;
  max-width: 100%;
  white-space: pre-wrap;
  word-break: break-word;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

/* ===== CATEGORY PILLS ===== */
.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background-color: #dbeafe;
  color: #1e3a8a;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}
.cat-pill:hover {
  background-color: #1e3a8a;
  color: #ffffff;
}
.cat-pill.teal {
  background-color: #ccfbf1;
  color: #0f766e;
}

/* ===== DISCLAIMER MEDICAL ===== */
.medical-disclaimer {
  background-color: #fef3c7;
  border: 1px solid #fcd34d;
  border-radius: 10px;
  padding: 16px 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 24px 0;
}
.medical-disclaimer svg { flex-shrink: 0; margin-top: 2px; }
.medical-disclaimer p {
  font-size: 13px;
  color: #78350f;
  margin: 0;
  line-height: 1.6;
}

/* ===== RESPONSIVE (auto-repair) ===== */
@media (max-width: 1024px) {
  .container {
    padding: 0 20px;
  }

  .container-narrow {
    padding: 0 20px;
  }

  .section {
    padding: 56px 0;
  }

  .section-sm {
    padding: 36px 0;
  }

  .section-lg {
    padding: 72px 0;
  }

  .section-header {
    margin-bottom: 36px;
  }

  .section-title {
    font-size: clamp(22px, 3vw, 32px);
  }

  th, td {
    padding: 10px 12px;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }

  .container {
    padding: 0 16px;
  }

  .container-narrow {
    padding: 0 16px;
  }

  .section {
    padding: 40px 0;
  }

  .section-sm {
    padding: 28px 0;
  }

  .section-lg {
    padding: 56px 0;
  }

  .section-header {
    margin-bottom: 28px;
  }

  .section-title {
    font-size: clamp(20px, 5vw, 28px);
  }

  .section-subtitle {
    font-size: 15px;
    max-width: 100%;
  }

  .btn {
    padding: 10px 18px;
    font-size: 14px;
    gap: 6px;
  }

  .medical-disclaimer {
    flex-direction: column;
    gap: 8px;
    padding: 14px 16px;
  }

  .medical-disclaimer svg {
    margin-top: 0;
  }

  .medical-disclaimer p {
    font-size: 13px;
  }

  th, td {
    padding: 9px 10px;
    font-size: 13px;
  }

  th {
    font-size: 11px;
  }

  table {
    min-width: 480px;
  }

  .table-responsive,
  .table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .badge {
    font-size: 10px;
    padding: 3px 8px;
  }

  .cat-pill {
    font-size: 10px;
    padding: 4px 10px;
  }

  h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
  }

  input[type="text"],
  input[type="email"],
  input[type="tel"],
  textarea,
  select {
    font-size: 16px;
    padding: 11px 14px;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }

  .container {
    padding: 0 12px;
  }

  .container-narrow {
    padding: 0 12px;
  }

  .section {
    padding: 32px 0;
  }

  .section-sm {
    padding: 20px 0;
  }

  .section-lg {
    padding: 40px 0;
  }

  .section-header {
    margin-bottom: 20px;
  }

  .section-title {
    font-size: clamp(18px, 6vw, 24px);
  }

  .section-subtitle {
    font-size: 14px;
  }

  .btn {
    padding: 10px 16px;
    font-size: 13px;
    gap: 5px;
    width: 100%;
    justify-content: center;
  }

  .btn-outline {
    width: 100%;
    justify-content: center;
  }

  .medical-disclaimer {
    padding: 12px 12px;
    gap: 8px;
    margin: 16px 0;
  }

  .medical-disclaimer p {
    font-size: 12px;
  }

  th, td {
    padding: 8px 8px;
    font-size: 12px;
  }

  th {
    font-size: 10px;
  }

  .badge {
    font-size: 10px;
    padding: 3px 7px;
  }

  .cat-pill {
    font-size: 10px;
    padding: 4px 8px;
    gap: 4px;
  }

  label {
    font-size: 13px;
  }

  input[type="text"],
  input[type="email"],
  input[type="tel"],
  textarea,
  select {
    padding: 10px 12px;
    font-size: 16px;
  }

  .card {
    border-radius: 10px;
  }
}