/* ====================================================
   ViaCrossTraining.net – Custom CSS
   Bootstrap 5 override + composants spécifiques
   ==================================================== */

/* --- Typographie --- */
:root {
  --accent: #e63946;
  --font-display: 'Barlow Condensed', sans-serif;
  --font-body: 'Barlow', sans-serif;
}

body {
  font-family: var(--font-body);
}

h1, h2, h3, .navbar-brand {
  font-family: var(--font-display);
  letter-spacing: 0.01em;
}

.fw-black { font-weight: 800; }

/* --- Couleur accent --- */
.text-accent { color: var(--accent) !important; }
.bg-accent  { background-color: var(--accent) !important; }

/* --- HERO (accueil) --- */
.hero-section {
  background: linear-gradient(135deg, #0d1117 0%, #1a1e2e 60%, #0d1117 100%);
  min-height: 55vh;
  display: flex;
  align-items: center;
}

/* --- HERO de section --- */
.section-hero {
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--section-color) 80%, #000) 0%,
    color-mix(in srgb, var(--section-color) 50%, #111) 100%
  );
  min-height: 180px;
  display: flex;
  align-items: center;
}

.section-hero-icon {
  font-size: 3rem;
  line-height: 1;
  opacity: .9;
}

/* --- Cards de section --- */
.section-card {
  border-top: 3px solid var(--section-color) !important;
  transition: transform .15s ease, box-shadow .15s ease;
}
.section-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,.12) !important;
}
.section-icon {
  font-size: 2rem;
}

/* --- Cards articles --- */
.article-card {
  transition: transform .15s ease, box-shadow .15s ease;
}
.article-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,.10) !important;
}

/* --- Contenu article (markdown rendu) --- */
.article-body h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: .75rem;
  padding-bottom: .4rem;
  border-bottom: 2px solid var(--bs-border-color);
}
.article-body h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: .5rem;
}
.article-body table {
  width: 100%;
  margin-bottom: 1rem;
}
.article-body table th {
  background-color: var(--bs-secondary-bg);
}
.article-body blockquote {
  border-left: 4px solid var(--accent);
  padding: .75rem 1.25rem;
  background: var(--bs-secondary-bg);
  border-radius: 0 .375rem .375rem 0;
  margin: 1.25rem 0;
  font-style: italic;
}
.article-body code {
  background: var(--bs-secondary-bg);
  padding: .15em .4em;
  border-radius: .2em;
  font-size: .88em;
}
.article-body pre code {
  background: transparent;
  padding: 0;
}
.article-body pre {
  background: #1a1e2e;
  color: #e8e8e8;
  border-radius: .5rem;
  padding: 1.25rem;
  overflow-x: auto;
  margin-bottom: 1.25rem;
}

/* --- Table des matières --- */
.article-body .toc, .card .toc {
  font-size: .88rem;
}
.article-body .toc ul, .card .toc ul {
  padding-left: 1.25rem;
  margin-bottom: 0;
}

/* --- Outils interactifs (class à utiliser dans le contenu) --- */
.tool-widget {
  background: var(--bs-secondary-bg);
  border-radius: .75rem;
  padding: 1.5rem;
  margin: 1.5rem 0;
}
.tool-widget .result-box {
  background: white;
  border: 2px solid var(--accent);
  border-radius: .5rem;
  padding: 1rem;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}
