/* ==========================================================================
   INSTITUT DU DIAMANT - Feuille de styles principale
   100 % CSS personnalisé, images & animations libres de droits
   ========================================================================== */

:root {
  --bg-main: #f4f1ea;
  --bg-card: #ffffff;
  --bg-dark: #132a1f;
  --turf-green: #1e4d35;
  --turf-light: #2d6a4f;
  --dirt-clay: #c87d4b;
  --dirt-light: #e6ccb2;
  --seam-red: #d62828;
  --seam-red-dark: #9e1b1b;
  --chalk-white: #faf9f6;
  --wip-yellow: #ffb703;
  --wip-orange: #fb8500;
  --blueprint-blue: #219ebc;
  --text-main: #1d2521;
  --text-muted: #526058;
  --border-color: #d5cfc2;
  --shadow-sm: 0 2px 6px rgba(19, 42, 31, 0.08);
  --shadow-md: 0 6px 18px rgba(19, 42, 31, 0.12);
  --radius-md: 12px;
  --radius-lg: 18px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.5;
  padding-bottom: 60px;
}

/* ==========================================================================
   EN-TÊTE & NAVIGATION
   ========================================================================== */
.site-header {
  background: var(--turf-green);
  color: #ffffff;
  border-bottom: 5px solid var(--dirt-clay);
  padding: 18px 24px;
}

.header-container {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #ffffff;
}

.brand-logo {
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
}

.brand-title {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-sub {
  font-size: 0.82rem;
  color: #c7e5d4;
  display: block;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.nav-link {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  transition: background 0.2s, transform 0.15s;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.nav-link.game-nav {
  background: var(--seam-red);
  color: #ffffff;
}

.nav-link.game-nav:hover {
  background: #ef233c;
}

.nav-link.blog-nav {
  background: var(--blueprint-blue);
  color: #ffffff;
}

.nav-link.blog-nav:hover {
  background: #1b87a3;
}

/* ==========================================================================
   CONTENEUR PRINCIPAL & HERO
   ========================================================================== */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero-banner {
  margin-top: 24px;
  background: linear-gradient(135deg, #1e4d35 0%, #132a1f 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 24px;
  align-items: center;
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(255, 183, 3, 0.45);
}

.hero-dev-tag {
  display: inline-block;
  background: rgba(255, 183, 3, 0.2);
  border: 1px solid var(--wip-yellow);
  color: var(--wip-yellow);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 6px;
  margin-bottom: 10px;
}

.hero-banner h1 {
  font-size: 2rem;
  line-height: 1.2;
  margin-bottom: 10px;
}

.hero-banner p {
  color: #d8ece1;
  font-size: 1.02rem;
  margin-bottom: 18px;
  max-width: 540px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.15s, opacity 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--seam-red);
  color: #ffffff;
}

.btn-secondary {
  background: var(--wip-yellow);
  color: #132a1f;
}

.hero-sketch-box {
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  border-radius: 14px;
  padding: 14px;
  text-align: center;
}

.sketch-caption {
  font-size: 0.78rem;
  color: #b7d5c4;
  margin-top: 6px;
}

/* ==========================================================================
   SECTIONS D'ENTRAÎNEMENT
   ========================================================================== */
.section-block {
  margin-top: 42px;
  scroll-margin-top: 70px;
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border-color);
}

.section-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-number {
  background: var(--turf-green);
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
}

.section-header h2 {
  font-size: 1.45rem;
  color: var(--bg-dark);
}

.dev-status-tag {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #f1f5f9;
  color: #334155;
}

.dev-status-tag.done {
  background: #d8f3dc;
  border-color: #2d6a4f;
  color: #1b4332;
}

.dev-status-tag.wip {
  background: #fff3cd;
  border-color: #d97706;
  color: #92400e;
}

/* Grille de cartes d'entraînement */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}

.training-card {
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.card-diagram-box {
  background: linear-gradient(180deg, #fafbf8 0%, #eff4f0 100%);
  border: 1.5px solid #cbd5cd;
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 14px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.copyright-free-stamp {
  position: absolute;
  top: 6px;
  right: 8px;
  font-family: monospace;
  font-size: 0.66rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #cbd5e1;
  color: #334155;
  padding: 2px 6px;
  border-radius: 4px;
  z-index: 2;
  pointer-events: none;
}

.card-diagram-box svg {
  width: 100%;
  max-height: 165px;
  display: block;
  margin: 0 auto;
}

.training-card h3 {
  font-size: 1.12rem;
  margin-bottom: 8px;
  color: var(--bg-dark);
}

.short-points {
  list-style: none;
  margin-bottom: 12px;
}

.short-points li {
  font-size: 0.93rem;
  color: var(--text-main);
  margin-bottom: 6px;
  padding-left: 20px;
  position: relative;
}

.short-points li::before {
  content: "⚾";
  position: absolute;
  left: 0;
  top: 1px;
  font-size: 0.8rem;
}

.tip-box {
  background: #edf6f0;
  border-left: 3px solid var(--turf-light);
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 0.84rem;
  color: #1e4d35;
  font-weight: 600;
}

/* ==========================================================================
   SECTION 3 : POSITIONNEMENT INTERACTIF SUR LE TERRAIN
   ========================================================================== */
.position-explorer {
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.field-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.situation-btn {
  background: #e9ecef;
  border: 1px solid #ced4da;
  color: var(--text-main);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.situation-btn.active,
.situation-btn:hover {
  background: var(--turf-green);
  color: #ffffff;
  border-color: var(--turf-green);
}

.field-svg-container {
  background: #1b4332;
  border-radius: 14px;
  padding: 12px;
  border: 3px solid var(--dirt-clay);
  position: relative;
}

.field-svg-container svg {
  width: 100%;
  max-height: 360px;
  display: block;
}

.player-node {
  cursor: pointer;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.player-node circle {
  transition: fill 0.2s, stroke-width 0.2s;
}

.player-node:hover circle,
.player-node.active circle {
  fill: var(--wip-yellow);
  stroke: #132a1f;
  stroke-width: 3px;
}

.player-node.active circle {
  animation: playerHaloPulse 1.6s ease-in-out infinite;
}

.player-node:hover text,
.player-node.active text {
  fill: #132a1f;
}

.position-info-panel {
  background: #f8f6f0;
  border: 2px dashed var(--dirt-clay);
  border-radius: 14px;
  padding: 20px;
}

.pos-number-badge {
  display: inline-block;
  background: var(--seam-red);
  color: #fff;
  font-weight: 800;
  font-size: 0.8rem;
  padding: 3px 10px;
  border-radius: 99px;
  margin-bottom: 8px;
}

.position-info-panel h3 {
  font-size: 1.35rem;
  margin-bottom: 8px;
  color: var(--bg-dark);
}

.position-info-panel p {
  font-size: 0.95rem;
  margin-bottom: 12px;
  color: var(--text-main);
}

.pos-quick-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.pos-mini-btn {
  background: #ffffff;
  border: 1px solid var(--border-color);
  padding: 5px 9px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.pos-mini-btn.active {
  background: var(--turf-green);
  color: #fff;
  border-color: var(--turf-green);
}

/* ==========================================================================
   MINI-JEU INTERACTIF : "PRISE OU BALLE ?" (Strike or Ball)
   ========================================================================== */
.game-wrapper {
  background: linear-gradient(180deg, #132a1f 0%, #0d1d15 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 3px solid var(--wip-yellow);
  box-shadow: var(--shadow-md);
}

.game-top-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.game-scoreboard {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.score-pill {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 6px 14px;
  border-radius: 10px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.score-pill strong {
  color: var(--wip-yellow);
  font-size: 1.15rem;
}

.game-layout {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 20px;
  align-items: stretch;
}

.canvas-stage {
  background: #0a1912;
  border-radius: 14px;
  border: 2px solid #2d6a4f;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#pitchCanvas {
  width: 100%;
  max-width: 640px;
  height: auto;
  aspect-ratio: 16 / 11;
  display: block;
}

.game-controls-panel {
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px dashed rgba(255, 255, 255, 0.25);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.pitch-status-box {
  background: rgba(0, 0, 0, 0.35);
  border-radius: 10px;
  padding: 12px;
  text-align: center;
  min-height: 78px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pitch-status-title {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--wip-yellow);
  margin-bottom: 4px;
}

.pitch-status-sub {
  font-size: 0.86rem;
  color: #cfe5d8;
}

.action-btn-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-pitch {
  background: var(--wip-yellow);
  color: #132a1f;
  font-size: 1.05rem;
  font-weight: 800;
  padding: 13px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: transform 0.12s, background 0.15s;
}

.btn-pitch:hover:not(:disabled) {
  background: #ffd166;
  transform: scale(1.02);
}

.btn-pitch:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.guess-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.btn-guess {
  padding: 14px 10px;
  border-radius: 10px;
  border: 2px solid transparent;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.12s, opacity 0.15s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.btn-guess span.key-hint {
  font-size: 0.72rem;
  font-weight: 600;
  opacity: 0.85;
}

.btn-guess:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.btn-guess:hover:not(:disabled) {
  transform: translateY(-2px);
}

.btn-strike {
  background: #d62828;
  color: #ffffff;
}

.btn-ball {
  background: #219ebc;
  color: #ffffff;
}

.game-options {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 12px;
  font-size: 0.84rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.option-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.option-row select {
  background: #132a1f;
  color: #fff;
  border: 1px solid #52b788;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 0.82rem;
}

/* ==========================================================================
   SECTION 6 : TIMING, COORDINATION ŒIL-MAIN & VIDÉOS D'ENTRAÎNEMENT
   ========================================================================== */
.video-showcase-block {
  margin-top: 22px;
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.subsection-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}

.subsection-bar h3 {
  font-size: 1.2rem;
  color: var(--bg-dark);
}

.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.video-card {
  background: #f8f9fa;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

.video-frame {
  background: #0d1d15;
  border-radius: 10px;
  padding: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  border: 2px solid var(--turf-light);
}

.video-frame video {
  width: 100%;
  max-height: 410px;
  border-radius: 8px;
  display: block;
  object-fit: contain;
  background: #000000;
}

.video-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(19, 42, 31, 0.88);
  color: var(--wip-yellow);
  border: 1px solid var(--wip-yellow);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  pointer-events: none;
}

.video-card h4 {
  font-size: 1.08rem;
  color: var(--bg-dark);
  margin-bottom: 6px;
}

/* Mini-test interactif de timing */
.timing-drill-box {
  margin-top: 22px;
  background: var(--bg-card);
  border: 2px dashed var(--wip-orange);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.timing-drill-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.timing-drill-top h3 {
  font-size: 1.15rem;
  color: var(--bg-dark);
}

.timing-track {
  position: relative;
  height: 54px;
  background: linear-gradient(90deg, #e6ccb2 0%, #c87d4b 70%, #2d6a4f 100%);
  border-radius: 12px;
  border: 2px solid var(--bg-dark);
  overflow: hidden;
  margin-bottom: 14px;
}

.timing-sweet-spot {
  position: absolute;
  left: 74%;
  width: 14%;
  top: 0;
  bottom: 0;
  background: rgba(255, 183, 3, 0.38);
  border-left: 3px dashed #ffb703;
  border-right: 3px dashed #ffb703;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
}

.timing-ball {
  position: absolute;
  top: 50%;
  left: 4%;
  width: 28px;
  height: 28px;
  margin-top: -14px;
  margin-left: -14px;
  border-radius: 50%;
  background: #faf9f6;
  border: 2.5px solid #132a1f;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.timing-ball::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border-left: 2px dashed #d62828;
  border-right: 2px dashed #d62828;
}

.timing-controls-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.timing-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.timing-feedback {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--bg-dark);
}

.inline-jump-link {
  display: inline-block;
  margin-top: 10px;
  background: #fff3cd;
  border: 1.5px dashed #d97706;
  color: #92400e;
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
}

.inline-jump-link:hover {
  background: #fde68a;
}

/* Sous-section T de frappe (Tee Work) dans Section 2 */
.tee-work-block {
  margin-top: 20px;
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.tee-work-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 20px;
  align-items: stretch;
}

.tee-work-info {
  background: #f8f9fa;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

.tee-work-info h4 {
  font-size: 1.12rem;
  color: var(--bg-dark);
  margin-bottom: 8px;
}

/* Cartes Gym avec images générées sans droits d'auteur */
.card-image-box {
  background: #132a1f;
  border: 2px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 14px;
  position: relative;
  aspect-ratio: 16 / 9;
}

.card-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.catcher-photo-box {
  aspect-ratio: 16 / 10;
  margin-bottom: 0;
}

.catcher-photo-box img {
  object-position: center 22%;
}

.card-image-box .copyright-free-stamp {
  background: rgba(19, 42, 31, 0.85);
  color: var(--wip-yellow);
  border: 1px solid var(--wip-yellow);
}

.gym-routine-block {
  margin-top: 20px;
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.gym-routine-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.gym-step-card {
  background: #f8f9fa;
  border: 1.5px solid var(--border-color);
  border-left: 4px solid var(--turf-light);
  border-radius: 10px;
  padding: 14px;
}

.gym-step-card h4 {
  font-size: 0.98rem;
  color: var(--bg-dark);
  margin-bottom: 6px;
}

.gym-step-card p {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* ==========================================================================
   SECTION SÉPARÉE : BLOGUE MLB & ACTUALITÉS
   ========================================================================== */
.blog-divider {
  margin-top: 48px;
  margin-bottom: -18px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.blog-divider::before,
.blog-divider::after {
  content: "";
  flex: 1;
  border-top: 2px dashed var(--border-color);
}

.blog-section {
  background: #fdfcf8;
  border: 2px solid var(--border-color);
  border-top: 6px solid var(--blueprint-blue);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}

.blog-intro {
  font-size: 0.94rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 20px;
}

.blog-card {
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}

.blog-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.blog-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.blog-category {
  background: #e0f2fe;
  color: #075985;
  border: 1px solid #7dd3fc;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
}

.blog-category.lockout {
  background: #fee2e2;
  color: #991b1b;
  border-color: #fca5a5;
}

.blog-category.champions {
  background: #fef3c7;
  color: #92400e;
  border-color: #fcd34d;
}

.blog-date {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  font-family: monospace;
}

.blog-card-diagram {
  background: #f4f1ea;
  border: 1.5px solid var(--border-color);
  border-radius: 10px;
  height: 112px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  position: relative;
  margin-bottom: 12px;
}

.blog-card-diagram svg {
  width: 100%;
  height: 100%;
}

.blog-card h3 {
  font-size: 1.12rem;
  line-height: 1.3;
  color: var(--bg-dark);
  margin-bottom: 10px;
}

.blog-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.92rem;
  line-height: 1.58;
  color: var(--text-main);
}

.blog-card-footer {
  padding-top: 10px;
  border-top: 1px dashed var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.blog-word-badge {
  background: #eef6f1;
  color: var(--turf-green);
  border: 1px solid #b7d5c4;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  font-family: monospace;
}

/* ==========================================================================
   PIED DE PAGE (Footer)
   ========================================================================== */
.site-footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 2px dashed var(--border-color);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* ==========================================================================
   ANIMATIONS SVG ÉDUCATIVES (Légères, claires et sans droits d'auteur)
   ========================================================================== */
@keyframes playerHaloPulse {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(255, 183, 3, 0)); }
  50% { filter: drop-shadow(0 0 7px rgba(255, 183, 3, 0.9)); }
}

@keyframes svgFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-4px); }
}

@keyframes svgDashFlow {
  from { stroke-dashoffset: 24; }
  to { stroke-dashoffset: 0; }
}

@keyframes svgPulseSoft {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.08); opacity: 1; }
}

@keyframes readyBounce {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-4px); }
}

@keyframes grounderRoll {
  0% { transform: translate(0px, 68px) scale(0.92); opacity: 0; }
  12% { opacity: 1; }
  32% { transform: translate(0px, 36px) scale(0.97); }
  45% { transform: translate(0px, 44px) scale(0.98); }
  66%, 90% { transform: translate(0px, 0px) scale(1); opacity: 1; }
  100% { transform: translate(0px, 0px) scale(0.9); opacity: 0; }
}

@keyframes crocClose {
  0%, 58% { transform: translateY(-10px) rotate(-14deg); }
  70%, 88% { transform: translateY(0px) rotate(0deg); }
  100% { transform: translateY(-10px) rotate(-14deg); }
}

@keyframes flyArc {
  0% { transform: translate(-115px, 76px) scale(0.8); opacity: 0; }
  12% { opacity: 1; }
  40% { transform: translate(-58px, -22px) scale(1.06); }
  70%, 90% { transform: translate(0px, 0px) scale(1); opacity: 1; }
  100% { transform: translate(0px, 0px) scale(0.85); opacity: 0; }
}

@keyframes calloutPop {
  0%, 62% { transform: scale(0.5); opacity: 0; }
  72%, 90% { transform: scale(1); opacity: 1; }
  100% { transform: scale(0.85); opacity: 0; }
}

@keyframes batterLoad {
  0%, 100% { transform: translateX(0px); }
  45%, 65% { transform: translateX(6px); }
}

@keyframes swingBatLoop {
  0%, 28% { transform: rotate(42deg); }
  48%, 74% { transform: rotate(-42deg); }
  100% { transform: rotate(42deg); }
}

@keyframes swingPitchIn {
  0% { transform: translate(-80px, 4px); opacity: 0; }
  12% { opacity: 1; }
  43% { transform: translate(0px, 0px); opacity: 1; }
  76% { transform: translate(-92px, -42px); opacity: 1; }
  88%, 100% { transform: translate(-92px, -42px); opacity: 0; }
}

@keyframes contactFlash {
  0%, 40% { transform: scale(0.3); opacity: 0; }
  46%, 60% { transform: scale(1.15); opacity: 1; }
  74%, 100% { transform: scale(0.7); opacity: 0; }
}

@keyframes teeBatLoop {
  0%, 20% { transform: rotate(36deg); }
  48% { transform: rotate(-48deg); }
  78%, 100% { transform: rotate(36deg); }
}

@keyframes teeBallLaunch {
  0%, 34% { transform: translate(0px, 0px); opacity: 1; }
  68% { transform: translate(98px, -24px); opacity: 1; }
  82%, 100% { transform: translate(98px, -24px); opacity: 0; }
}

@keyframes kneeLiftAnim {
  0%, 18% { transform: rotate(0deg); }
  45%, 78% { transform: rotate(46deg); }
  100% { transform: rotate(0deg); }
}

@keyframes pitchWhipAnim {
  0%, 22% { transform: rotate(-68deg); }
  52%, 82% { transform: rotate(34deg); }
  100% { transform: rotate(-68deg); }
}

@keyframes pitchBallExit {
  0%, 38% { transform: translate(0px, 0px); opacity: 0; }
  44% { opacity: 1; }
  76%, 90% { transform: translate(62px, 4px); opacity: 1; }
  100% { transform: translate(62px, 4px); opacity: 0; }
}

@keyframes signalOne {
  0%, 45% { opacity: 1; transform: scale(1); }
  50%, 95% { opacity: 0; transform: scale(0.8); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes signalTwo {
  0%, 45% { opacity: 0; transform: scale(0.8); }
  50%, 95% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(0.8); }
}

@keyframes frameBallMove {
  0% { transform: translate(-26px, -6px) scale(0.7); opacity: 0; }
  18% { opacity: 1; }
  45% { transform: translate(0px, 0px) scale(1); }
  66%, 90% { transform: translate(-20px, 0px) scale(1); opacity: 1; }
  100% { transform: translate(-20px, 0px) scale(0.8); opacity: 0; }
}

@keyframes frameMittMove {
  0%, 45% { transform: translateX(0px); }
  66%, 90% { transform: translateX(-20px); }
  100% { transform: translateX(0px); }
}

@keyframes blockDropBody {
  0%, 20% { transform: translateY(0px); }
  40%, 82% { transform: translateY(10px); }
  100% { transform: translateY(0px); }
}

@keyframes dirtBallBounce {
  0% { transform: translate(-72px, -30px); opacity: 0; }
  12% { opacity: 1; }
  36% { transform: translate(-24px, 26px); }
  55%, 86% { transform: translate(0px, 2px); opacity: 1; }
  100% { transform: translate(0px, 14px); opacity: 0; }
}

@keyframes eyeTrackBall {
  0%, 100% { transform: translateX(0px); }
  50% { transform: translateX(-64px); }
}

@keyframes eyePupilLook {
  0%, 100% { transform: translate(5px, -2px); }
  50% { transform: translate(-3px, 1px); }
}

@keyframes beatStep1 {
  0%, 28% { transform: scale(1.18); filter: drop-shadow(0 0 6px rgba(33, 158, 188, 0.7)); }
  34%, 100% { transform: scale(1); filter: none; }
}

@keyframes beatStep2 {
  0%, 30% { transform: scale(1); filter: none; }
  36%, 62% { transform: scale(1.18); filter: drop-shadow(0 0 6px rgba(251, 133, 0, 0.7)); }
  68%, 100% { transform: scale(1); filter: none; }
}

@keyframes beatStep3 {
  0%, 64% { transform: scale(1); filter: none; }
  70%, 94% { transform: scale(1.22); filter: drop-shadow(0 0 8px rgba(214, 40, 40, 0.75)); }
  100% { transform: scale(1); filter: none; }
}

@keyframes sweetBatSlide {
  0%, 15% { transform: translate(-22px, 12px); }
  50%, 82% { transform: translate(0px, 0px); }
  100% { transform: translate(-22px, 12px); }
}

@keyframes pitchFastLoop {
  0% { transform: translate(0px, 0px); opacity: 0; }
  8% { opacity: 1; }
  36% { transform: translate(132px, 0px); opacity: 1; }
  45%, 100% { transform: translate(132px, 0px); opacity: 0; }
}

@keyframes pitchCurveLoop {
  0%, 48% { transform: translate(0px, 0px); opacity: 0; }
  56% { opacity: 1; }
  74% { transform: translate(66px, -16px); }
  90% { transform: translate(132px, 6px); opacity: 1; }
  100% { transform: translate(132px, 6px); opacity: 0; }
}

@keyframes sprintFirstBase {
  0% { transform: translate(0px, 0px); opacity: 0; }
  10% { opacity: 1; }
  78%, 92% { transform: translate(148px, -50px); opacity: 1; }
  100% { transform: translate(158px, -54px); opacity: 0; }
}

@keyframes arrowSlideLoop {
  0%, 100% { transform: translateX(-3px); }
  50% { transform: translateX(5px); }
}

/* Classes d'application */
.anim-float { animation: svgFloat 3s ease-in-out infinite; }
.anim-dash-flow { stroke-dasharray: 6 4; animation: svgDashFlow 1.2s linear infinite; }
.anim-pulse-soft { transform-box: fill-box; transform-origin: center; animation: svgPulseSoft 2s ease-in-out infinite; }
.anim-ready-bounce { animation: readyBounce 1.1s ease-in-out infinite; }
.anim-grounder-ball { transform-box: fill-box; transform-origin: center; animation: grounderRoll 2.8s ease-in-out infinite; }
.anim-croc-hand { transform-box: fill-box; transform-origin: bottom center; animation: crocClose 2.8s ease-in-out infinite; }
.anim-fly-ball { transform-box: fill-box; transform-origin: center; animation: flyArc 3s ease-in-out infinite; }
.anim-fly-callout { transform-box: fill-box; transform-origin: center; animation: calloutPop 3s ease-in-out infinite; }
.anim-batter-load { animation: batterLoad 2.4s ease-in-out infinite; }
.anim-swing-bat { transform-origin: 0px 0px; animation: swingBatLoop 3s cubic-bezier(0.22, 1, 0.36, 1) infinite; }
.anim-swing-pitch { animation: swingPitchIn 3s linear infinite; }
.anim-swing-burst { transform-box: fill-box; transform-origin: center; animation: contactFlash 3s ease-out infinite; }
.anim-tee-bat { transform-origin: 0px 0px; animation: teeBatLoop 3.2s ease-in-out infinite; }
.anim-tee-ball { animation: teeBallLaunch 3.2s ease-out infinite; }
.anim-knee-lift { transform-origin: 0px 0px; animation: kneeLiftAnim 3s ease-in-out infinite; }
.anim-pitch-arm { transform-origin: 0px 0px; animation: pitchWhipAnim 2.8s cubic-bezier(0.25, 0.9, 0.35, 1) infinite; }
.anim-pitch-release { animation: pitchBallExit 2.8s linear infinite; }
.anim-sig-1 { transform-box: fill-box; transform-origin: center; animation: signalOne 3.6s ease-in-out infinite; }
.anim-sig-2 { transform-box: fill-box; transform-origin: center; animation: signalTwo 3.6s ease-in-out infinite; }
.anim-frame-ball { transform-box: fill-box; transform-origin: center; animation: frameBallMove 3s ease-in-out infinite; }
.anim-frame-mitt { animation: frameMittMove 3s ease-in-out infinite; }
.anim-frame-callout { transform-box: fill-box; transform-origin: center; animation: calloutPop 3s ease-in-out infinite; }
.anim-block-body { animation: blockDropBody 2.8s ease-in-out infinite; }
.anim-dirt-ball { animation: dirtBallBounce 2.8s ease-in-out infinite; }
.anim-block-callout { transform-box: fill-box; transform-origin: center; animation: calloutPop 2.8s ease-in-out infinite; }
.anim-eye-ball { animation: eyeTrackBall 2.8s ease-in-out infinite; }
.anim-eye-pupil { animation: eyePupilLook 2.8s ease-in-out infinite; }
.anim-step-1 { transform-box: fill-box; transform-origin: center; animation: beatStep1 3s ease-in-out infinite; }
.anim-step-2 { transform-box: fill-box; transform-origin: center; animation: beatStep2 3s ease-in-out infinite; }
.anim-step-3 { transform-box: fill-box; transform-origin: center; animation: beatStep3 3s ease-in-out infinite; }
.anim-sweet-bat { animation: sweetBatSlide 2.8s ease-in-out infinite; }
.anim-pitch-fast { animation: pitchFastLoop 3.8s linear infinite; }
.anim-pitch-slow { animation: pitchCurveLoop 3.8s ease-in-out infinite; }
.anim-sprint-runner { animation: sprintFirstBase 2.8s cubic-bezier(0.2, 0.85, 0.35, 1) infinite; }
.anim-arrow-slide { animation: arrowSlideLoop 1.6s ease-in-out infinite; }

@keyframes stretchArmReach {
  0%, 100% { transform: translateX(0px); }
  50% { transform: translateX(-12px); }
}

@keyframes pickoffSlide {
  0% { transform: translateX(62px); opacity: 0; }
  18% { opacity: 1; }
  75%, 92% { transform: translateX(0px); opacity: 1; }
  100% { transform: translateX(0px); opacity: 0; }
}

.anim-stretch-reach { animation: stretchArmReach 2.6s ease-in-out infinite; }
.anim-pickoff-dive { animation: pickoffSlide 2.8s ease-out infinite; }

/* Galerie photos Section 1er but */
.first-base-hero-card {
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}

.first-base-hero-photo {
  aspect-ratio: 21 / 10;
  margin-bottom: 0;
}

.first-base-hero-photo img {
  object-position: center 35%;
}

.first-base-seq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.first-base-seq-photo {
  aspect-ratio: 3 / 4;
  margin-bottom: 10px;
}

.first-base-seq-photo img {
  object-position: center 45%;
}

@media (prefers-reduced-motion: reduce) {
  [class*="anim-"],
  .player-node.active circle {
    animation: none !important;
  }
}

/* Responsive */
@media (max-width: 860px) {
  .hero-banner,
  .position-explorer,
  .tee-work-layout,
  .first-base-hero-card,
  .game-layout {
    grid-template-columns: 1fr;
  }
}
