/* ===== SECUTECH INSIDER — CSS GLOBAL ===== */
/* Polices système UNIQUEMENT — JAMAIS Google Fonts */

/* ===== RESET & BASE ===== */
*, *::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;
  background-color: #0a1628;
  color: #c8daea;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== SKIP LINK ===== */
.skip-to-content {
  position: absolute;
  top: -100%;
  left: 16px;
  background-color: #00d4aa;
  color: #0a1628;
  padding: 10px 20px;
  border-radius: 0 0 6px 6px;
  font-weight: 700;
  text-decoration: none;
  z-index: 9999;
  transition: top 0.2s;
}

.skip-to-content:focus {
  top: 0;
}

/* ===== SCREEN READER ONLY ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== IMAGES ===== */
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;
  font-weight: 700;
  letter-spacing: -0.02em;
}

p {
  margin-top: 0;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

a {
  color: #0078d4;
  text-decoration: none;
}

a:hover {
  color: #00d4aa;
}

/* ===== TABLES RESPONSIVE ===== */
table {
  max-width: 100%;
  border-collapse: collapse;
  width: 100%;
}

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

/* ===== FORMS BASE ===== */
input, textarea, select, button {
  font-family: inherit;
  font-size: inherit;
}

input[type="email"],
input[type="text"],
input[type="search"],
textarea {
  font-size: 16px; /* Empêche zoom iOS */
}

/* ===== FOCUS VISIBLE GLOBAL ===== */
:focus-visible {
  outline: 2px solid #00d4aa;
  outline-offset: 2px;
}

/* ===== CONTENEUR UTILITAIRE ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* ===== BADGE / TAG ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.badge--accent {
  background-color: rgba(0, 120, 212, 0.15);
  color: #0078d4;
  border: 1px solid rgba(0, 120, 212, 0.3);
}

.badge--teal {
  background-color: rgba(0, 212, 170, 0.12);
  color: #00d4aa;
  border: 1px solid rgba(0, 212, 170, 0.3);
}

/* ===== SECTION TITLES ===== */
.section-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: #ffffff;
  margin-bottom: 8px;
}

.section-subtitle {
  font-size: 1rem;
  color: #7a9ab8;
  margin-bottom: 0;
}

/* ===== DISCLAIMER GLOBAL ===== */
.disclaimer {
  background-color: rgba(0, 120, 212, 0.06);
  border: 1px solid rgba(0, 120, 212, 0.15);
  border-left: 3px solid #0078d4;
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 0.82rem;
  color: #7a9ab8;
  line-height: 1.55;
}

.disclaimer strong {
  color: #a0b8cc;
}

/* ===== GRID ANTI-OVERFLOW ===== */
.grid, [class*='grid'] {
  min-width: 0;
}

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

  .section-title {
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  }
}

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

  .container {
    padding: 0 16px;
  }

  .section-title {
    font-size: clamp(1.2rem, 4vw, 1.6rem);
  }

  .section-subtitle {
    font-size: 0.95rem;
  }

  .disclaimer {
    padding: 10px 14px;
    font-size: 0.80rem;
  }

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

  table {
    font-size: 0.875rem;
  }

  .table-responsive,
  .table-wrapper {
    border-radius: 6px;
  }
}

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

  .container {
    padding: 0 12px;
  }

  .section-title {
    font-size: clamp(1.1rem, 5vw, 1.4rem);
  }

  .section-subtitle {
    font-size: 0.9rem;
  }

  .disclaimer {
    padding: 8px 12px;
    font-size: 0.78rem;
  }

  .badge {
    font-size: 0.68rem;
    padding: 3px 7px;
    letter-spacing: 0.05em;
  }

  table {
    font-size: 0.825rem;
  }
}