/* ===== GLOBAL CSS — TRI5962 SPORT & PERFORMANCE ===== */
/* Polices système uniquement — JAMAIS de 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;
  background-color: #09090b;
  color: #e4e4e7;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video, iframe, embed, object, svg, canvas {
  max-width: 100%;
  height: auto;
}

img {
  display: block;
}

a {
  color: #22c55e;
  text-decoration: none;
}

a:focus-visible {
  outline: 2px solid #22c55e;
  outline-offset: 3px;
  border-radius: 4px;
}

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

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

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

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

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

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

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

/* ===== SECTION COMMON ===== */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #22c55e;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 14px;
  background-color: rgba(34,197,94,0.08);
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid rgba(34,197,94,0.2);
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: #f4f4f5;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  color: #71717a;
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 620px;
  margin: 0 auto;
}

/* ===== CATEGORY BADGES ===== */
.cat-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}

.cat-badge--entrainement { background-color: rgba(34,197,94,0.12); color: #22c55e; border: 1px solid rgba(34,197,94,0.25); }
.cat-badge--entrainement:hover { background-color: rgba(34,197,94,0.2); }

.cat-badge--nutrition { background-color: rgba(234,179,8,0.12); color: #eab308; border: 1px solid rgba(234,179,8,0.25); }
.cat-badge--nutrition:hover { background-color: rgba(234,179,8,0.2); }

.cat-badge--equipements { background-color: rgba(59,130,246,0.12); color: #60a5fa; border: 1px solid rgba(59,130,246,0.25); }
.cat-badge--equipements:hover { background-color: rgba(59,130,246,0.2); }

.cat-badge--actualites { background-color: rgba(239,68,68,0.12); color: #f87171; border: 1px solid rgba(239,68,68,0.25); }
.cat-badge--actualites:hover { background-color: rgba(239,68,68,0.2); }

.cat-badge--mental { background-color: rgba(168,85,247,0.12); color: #c084fc; border: 1px solid rgba(168,85,247,0.25); }
.cat-badge--mental:hover { background-color: rgba(168,85,247,0.2); }

.cat-badge--sports-collectifs { background-color: rgba(249,115,22,0.12); color: #fb923c; border: 1px solid rgba(249,115,22,0.25); }
.cat-badge--sports-collectifs:hover { background-color: rgba(249,115,22,0.2); }

/* ===== READ TIME ===== */
.read-time {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #71717a;
  font-size: 0.78rem;
}

/* ===== CARD META ROW ===== */
.card-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

/* ===== BUTTONS ===== */
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background-color 0.2s, color 0.2s, transform 0.15s;
  letter-spacing: 0.01em;
}

.btn-primary {
  background-color: #22c55e;
  color: #18181b;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: #16a34a;
  color: #fff;
  transform: translateY(-1px);
  outline: none;
}

.btn-secondary {
  background-color: transparent;
  color: #e4e4e7;
  border: 2px solid #3f3f46;
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  border-color: #22c55e;
  color: #22c55e;
  transform: translateY(-1px);
  outline: none;
}

/* ===== READ MORE BTN ===== */
.read-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #22c55e;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, gap 0.2s;
}

.read-more-btn:hover,
.read-more-btn:focus-visible {
  border-bottom-color: #22c55e;
  gap: 10px;
  outline: none;
}

/* ===== FOCUS VISIBLE ===== */
:focus-visible {
  outline: 2px solid #22c55e;
  outline-offset: 2px;
}

/* ===== MOBILE GLOBAL