/* ═══════════════════════════════════════════
   RUNNING STUDIO — style.css
   Design : minimaliste sportif, inspiré iLovePDF
   Palette : blanc / gris Apple / noir / rouge sport
════════════════════════════════════════════ */

/* ─── RESET & BASE ─────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Couleurs */
  --c-white:       #FFFFFF;
  --c-bg:          #F5F5F7;
  --c-bg-card:     #FFFFFF;
  --c-border:      #E2E2E7;
  --c-text:        #111111;
  --c-text-sub:    #6B6B6B;
  --c-red:         #E8272A;
  --c-red-dark:    #C41F22;
  --c-red-light:   #FFF0F0;
  --c-shadow:      rgba(0, 0, 0, 0.06);
  --c-shadow-md:   rgba(0, 0, 0, 0.10);

  /* Typographie */
  --font-main: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Consolas', monospace;

  /* Espacements */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2.5rem;
  --space-xl:  4rem;
  --space-xxl: 6rem;

  /* Rayons */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;

  /* Transitions */
  --trans-fast:   150ms ease;
  --trans-normal: 250ms ease;

  /* Layout */
  --container-max: 1100px;
  --header-h:      64px;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-main);
  background-color: var(--c-bg);
  color: var(--c-text);
  line-height: 1.6;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Focus visible global (accessibilité) */
:focus-visible {
  outline: 2.5px solid var(--c-red);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Réduit le mouvement si préférence OS */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ─── CONTAINER ─────────────────────────── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* ─── HEADER ─────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: var(--space-sm);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--c-text);
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.logo-icon {
  font-size: 1.2rem;
}

.logo-text strong {
  font-weight: 800;
}

/* Logo image */
.logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 8px;
  flex-shrink: 0;
}

.logo-img--footer {
  width: 36px;
  height: 36px;
  /* Sur fond sombre du footer, on conserve l'image telle quelle
     (fond blanc arrondi du logo s'intègre comme un badge) */
  border-radius: 6px;
}

/* Navigation */
.main-nav ul {
  display: flex;
  gap: var(--space-sm);
  list-style: none;
  align-items: center;
}

.main-nav a {
  text-decoration: none;
  color: var(--c-text-sub);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  transition: color var(--trans-fast), background var(--trans-fast);
}

.main-nav a:hover {
  color: var(--c-red);
  background: var(--c-red-light);
}

/* Bouton burger (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius-sm);
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--c-text);
  border-radius: 2px;
  transition: transform var(--trans-normal), opacity var(--trans-normal);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ─── HERO ───────────────────────────────── */
.hero {
  background: var(--c-white);
  padding: var(--space-xxl) 0 var(--space-xl);
  text-align: center;
  border-bottom: 1px solid var(--c-border);
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--c-red-light);
  color: var(--c-red-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 0.9rem;
  border-radius: 100px;
  border: 1px solid rgba(232, 39, 42, 0.2);
}

.hero-title {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--c-text);
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--c-text-sub);
  font-weight: 400;
  max-width: 560px;
  line-height: 1.5;
}

/* Barre animée signature */
.hero-bar {
  width: 80px;
  height: 4px;
  background: var(--c-border);
  border-radius: 2px;
  overflow: hidden;
  margin-top: var(--space-xs);
}

.hero-bar-fill {
  height: 100%;
  width: 0;
  background: var(--c-red);
  border-radius: 2px;
  animation: barFill 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
}

@keyframes barFill {
  to { width: 100%; }
}

/* ─── GRILLE DES OUTILS ──────────────────── */
.tools-grid-section {
  padding: var(--space-xl) 0;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
  color: var(--c-text);
}

.section-sub {
  text-align: center;
  color: var(--c-text-sub);
  margin-top: var(--space-xs);
  font-size: 1rem;
  margin-bottom: var(--space-lg);
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-md);
}

.tool-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-md);
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition:
    transform var(--trans-normal),
    box-shadow var(--trans-normal),
    border-color var(--trans-normal);
  position: relative;
}

.tool-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px var(--c-shadow-md);
  border-color: rgba(232, 39, 42, 0.25);
}

.tool-card-icon {
  font-size: 2rem;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 2px;
}

.tool-card-body {
  flex: 1;
}

.tool-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-text);
  margin-bottom: 0.3rem;
  letter-spacing: -0.01em;
}

.tool-card-desc {
  font-size: 0.875rem;
  color: var(--c-text-sub);
  line-height: 1.45;
}

.tool-card-arrow {
  font-size: 1.1rem;
  color: var(--c-red);
  flex-shrink: 0;
  align-self: center;
  transition: transform var(--trans-normal);
}

.tool-card:hover .tool-card-arrow {
  transform: translateX(4px);
}

/* ─── SECTIONS OUTIL ─────────────────────── */
.tool-section {
  padding: var(--space-xl) 0;
  background: var(--c-white);
  border-top: 1px solid var(--c-border);
}

.tool-section--alt {
  background: var(--c-bg);
}

.tool-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.tool-header-icon {
  font-size: 2.5rem;
  line-height: 1;
  flex-shrink: 0;
}

.tool-header h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--c-text);
  line-height: 1.15;
}

.tool-header-sub {
  color: var(--c-text-sub);
  font-size: 0.95rem;
  margin-top: 0.25rem;
}

.tool-body {
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
}

/* ─── INPUTS ─────────────────────────────── */
.input-group {
  margin-bottom: var(--space-md);
}

.input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.input-label {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: 0.5rem;
}

.input-unit {
  font-weight: 400;
  color: var(--c-text-sub);
  font-size: 0.85rem;
  margin-left: 0.25rem;
}

.input-field {
  display: block;
  width: 100%;
  max-width: 360px;
  padding: 0.75rem 1rem;
  font-size: 1.05rem;
  font-family: var(--font-main);
  color: var(--c-text);
  background: var(--c-white);
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius-md);
  transition: border-color var(--trans-fast), box-shadow var(--trans-fast);
  -webkit-appearance: none;
  appearance: none;
}

.input-field:focus {
  outline: none;
  border-color: var(--c-red);
  box-shadow: 0 0 0 3px rgba(232, 39, 42, 0.12);
}

.input-field::placeholder {
  color: #BCBCBC;
}

/* Supprime les flèches spinners sur number */
.input-field[type="number"]::-webkit-inner-spin-button,
.input-field[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.input-field[type="number"] { -moz-appearance: textfield; }

.input-hint {
  font-size: 0.8rem;
  color: var(--c-text-sub);
  margin-top: 0.4rem;
}

.input-error {
  font-size: 0.82rem;
  color: var(--c-red);
  font-weight: 600;
  margin-top: 0.4rem;
  min-height: 1.2em;
}

/* ─── BOUTON PRINCIPAL ───────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: var(--space-sm);
  padding: 0.8rem 1.75rem;
  background: var(--c-red);
  color: var(--c-white);
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition:
    background var(--trans-fast),
    transform var(--trans-fast),
    box-shadow var(--trans-fast);
}

.btn-primary:hover {
  background: var(--c-red-dark);
  box-shadow: 0 4px 16px rgba(232, 39, 42, 0.3);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: none;
}

/* ─── TABS ───────────────────────────────── */
.tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: var(--space-md);
  background: var(--c-bg);
  border-radius: var(--radius-md);
  padding: 0.3rem;
  width: fit-content;
}

.tab {
  padding: 0.55rem 1.1rem;
  border: none;
  border-radius: var(--radius-sm);
  background: none;
  font-family: var(--font-main);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--c-text-sub);
  cursor: pointer;
  transition: background var(--trans-fast), color var(--trans-fast);
}

.tab.active {
  background: var(--c-white);
  color: var(--c-text);
  font-weight: 700;
  box-shadow: 0 1px 4px var(--c-shadow);
}

.tab:hover:not(.active) {
  color: var(--c-text);
}

/* ─── RÉSULTATS ──────────────────────────── */
.result-block {
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--c-border);
}

.result-block.hidden {
  display: none;
}

.result-summary {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.result-item {
  flex: 1;
  min-width: 160px;
  background: var(--c-bg);
  border-radius: var(--radius-md);
  padding: var(--space-sm) var(--space-md);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.result-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--c-text-sub);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.result-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--c-red);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

/* ─── TABLEAUX ───────────────────────────── */
.table-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
  color: var(--c-text);
}

.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--c-border);
  -webkit-overflow-scrolling: touch;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
}

.data-table thead {
  background: var(--c-bg);
}

.data-table th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--c-text-sub);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
  border-bottom: 1px solid var(--c-border);
}

.data-table td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--c-border);
  white-space: nowrap;
  color: var(--c-text);
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.data-table tbody tr:hover {
  background: var(--c-bg);
}

/* Ligne surlignée (100% VMA) */
.data-table tr.row-highlight td {
  background: var(--c-red-light);
  color: var(--c-red-dark);
  font-weight: 700;
}

/* ─── TEXTE SEO ──────────────────────────── */
.seo-text {
  padding: var(--space-lg);
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  color: var(--c-text-sub);
}

.seo-text h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--c-text);
  margin-bottom: var(--space-xs);
}

.seo-text h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--c-text);
  margin-top: var(--space-sm);
  margin-bottom: var(--space-xs);
}

.seo-text p {
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: 0.5rem;
}

.seo-text strong {
  color: var(--c-text);
  font-weight: 600;
}

/* ─── FOOTER ─────────────────────────────── */
.site-footer {
  background: var(--c-text);
  color: rgba(255, 255, 255, 0.6);
  padding: var(--space-xl) 0;
  margin-top: 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  text-align: center;
}

.footer-logo {
  font-size: 1.1rem;
  color: var(--c-white);
  letter-spacing: -0.01em;
}

.footer-logo strong { font-weight: 800; }

.footer-slogan {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-legal {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.35);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem var(--space-sm);
  list-style: none;
  margin-top: var(--space-xs);
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color var(--trans-fast);
}

.footer-nav a:hover {
  color: var(--c-white);
}

.footer-copy {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.25);
  margin-top: var(--space-xs);
}

/* ─── RESPONSIVE ─────────────────────────── */
@media (max-width: 768px) {
  :root {
    --space-lg:  2rem;
    --space-xl:  3rem;
    --space-xxl: 4rem;
  }

  /* Nav mobile */
  .main-nav {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--c-white);
    border-bottom: 1px solid var(--c-border);
    padding: var(--space-sm);
    z-index: 99;
    box-shadow: 0 8px 24px var(--c-shadow-md);
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0.25rem;
  }

  .main-nav a {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 1rem;
  }

  .nav-toggle {
    display: flex;
  }

  /* Inputs pleine largeur */
  .input-field {
    max-width: 100%;
  }

  /* Inputs en colonne sur mobile */
  .input-row {
    grid-template-columns: 1fr;
  }

  /* Tableau : texte plus petit */
  .data-table {
    font-size: 0.8rem;
  }

  .data-table th,
  .data-table td {
    padding: 0.55rem 0.7rem;
  }

  /* Résumé résultats */
  .result-item {
    min-width: 120px;
  }

  .result-value {
    font-size: 1.3rem;
  }

  /* Tabs */
  .tabs {
    width: 100%;
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .tools-grid {
    grid-template-columns: 1fr;
  }

  .tool-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-xs);
  }

  .hero-title {
    font-size: 2.2rem;
  }
}

/* ─── ZONES VMA ──────────────────────────── */

/* Couleurs pastel, suffisamment contrastées (WCAG AA) */
.zone-z1 td { background: #F0F7FF; color: #1a5fa8; }
.zone-z2 td { background: #F0FFF4; color: #1a7a3c; }
.zone-z3 td { background: #FFFBEB; color: #7a5a00; }
.zone-z4 td { background: #FFF4E6; color: #a04500; }
.zone-z5 td { background: #FFF0F0; color: #b52020; }
.zone-z6 td { background: #FDF0FF; color: #7a2080; }

/* Priorité à row-highlight (100% VMA) par rapport aux zones */
.data-table tr.row-highlight td {
  background: var(--c-red-light) !important;
  color: var(--c-red-dark) !important;
  font-weight: 700;
}

/* Badges de zone dans la cellule */
.zone-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 100px;
  white-space: nowrap;
}

/* ─── STRATÉGIE D'ENTRAÎNEMENT ───────────── */

.input-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B6B6B' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* Alerte */
.strat-alert {
  background: #FFF8E1;
  border: 1px solid #F0C040;
  border-radius: var(--radius-md);
  padding: var(--space-sm) var(--space-md);
  font-size: 0.875rem;
  color: #7a5a00;
  margin-bottom: var(--space-md);
  line-height: 1.5;
}

/* result-value taille réduite pour les cartes de résumé */
.result-value--sm {
  font-size: 1.1rem;
}

/* En-têtes de phase */
.strat-phase-header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  margin: var(--space-md) 0 var(--space-xs);
  font-size: 0.9rem;
}

.strat-phase-header > span:first-child {
  font-size: 1.5rem;
  flex-shrink: 0;
  line-height: 1.2;
}

.strat-phase-header > div {
  flex: 1;
}

.strat-phase-header strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 0.2rem;
}

.strat-phase-header > div > span {
  display: block;
  font-size: 0.82rem;
  opacity: 0.8;
  margin-bottom: 0.5rem;
}

.strat-phase-details {
  list-style: none;
  padding: 0;
  margin: 0;
}

.strat-phase-details li {
  font-size: 0.8rem;
  padding: 0.2rem 0;
  padding-left: 1rem;
  position: relative;
  opacity: 0.85;
  line-height: 1.4;
}

.strat-phase-details li::before {
  content: '→';
  position: absolute;
  left: 0;
  font-size: 0.7rem;
}

/* Couleurs des phases */
.phase-base      { background: #EBF5FF; color: #1a4a8a; border: 1px solid #BDD8F8; }
.phase-foncier   { background: #EDFAF2; color: #1a6a3a; border: 1px solid #B0E8C8; }
.phase-specifique{ background: #FFF4E6; color: #8a4000; border: 1px solid #F8D0A0; }
.phase-taper     { background: #F5F0FF; color: #5a1a9a; border: 1px solid #D8BFFF; }

/* Cartes semaine */
.strat-week {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.9rem var(--space-md);
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-left: 4px solid var(--c-border);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 0.4rem;
  transition: box-shadow var(--trans-fast);
}

.strat-week:hover {
  box-shadow: 0 2px 8px var(--c-shadow);
}

.strat-week.phase-base      { border-left-color: #5a9de0; }
.strat-week.phase-foncier   { border-left-color: #3ab870; }
.strat-week.phase-specifique{ border-left-color: #f08020; }
.strat-week.phase-taper     { border-left-color: #9a60e0; }

.strat-week--decharge {
  opacity: 0.8;
  background: var(--c-bg);
}

.strat-week--race {
  border-left-color: var(--c-red) !important;
}

.strat-week--race-day {
  background: var(--c-red-light);
  border: 2px solid var(--c-red);
  border-radius: var(--radius-md);
  margin-top: var(--space-sm);
  padding: var(--space-md);
}

.strat-week-meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.strat-week-num {
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--c-text);
  min-width: 70px;
}

.strat-week-date {
  font-size: 0.8rem;
  color: var(--c-text-sub);
  flex: 1;
}

.strat-week-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
}

.strat-week-conseil {
  font-size: 0.82rem;
  color: var(--c-text-sub);
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 768px) {
  .strat-phase-header {
    flex-direction: column;
  }
  .strat-week-meta {
    gap: 0.4rem;
  }
}

/* ─── FORMULAIRE STRATÉGIE ───────────────── */

/* Reset navigateur + style custom */
.strat-fieldset {
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  padding-top: var(--space-sm);
  margin-bottom: var(--space-md);
  margin-left: 0;
  margin-right: 0;
  background: var(--c-bg);
  min-width: 0; /* fix fieldset width bug */
}

.strat-fieldset .input-row {
  margin-top: var(--space-xs);
}

.strat-legend {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--c-text-sub);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0 0.5rem;
  /* Aligne la légende dans le bord du fieldset */
  float: left;
  line-height: 1;
  margin-bottom: var(--space-xs);
}

/* Clearfix après la légende flottante */
.strat-fieldset::after {
  content: '';
  display: table;
  clear: both;
}

/* ─── BLOC ALLURES D'ENTRAÎNEMENT ────────── */
.strat-allures-block {
  margin-bottom: var(--space-lg);
}

/* Allures par phase dans l'en-tête */
.strat-phase-allures {
  margin: 0.4rem 0 0.5rem;
}

.strat-phase-allures span {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(0,0,0,0.07);
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
}

/* ─── SÉANCES DÉTAILLÉES ─────────────────── */

.strat-seances {
  margin-top: var(--space-sm);
  border-top: 1px solid var(--c-border);
  padding-top: var(--space-sm);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.strat-seance-row {
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
}

.strat-seance-jour {
  flex-shrink: 0;
  width: 72px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--c-text-sub);
  padding-top: 0.15rem;
}

.strat-seance-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.strat-seance-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.strat-seance-type {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--c-text);
}

.strat-seance-metas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.strat-seance-tag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 100px;
  white-space: nowrap;
}

.strat-tag--allure {
  background: #EBF5FF;
  color: #1a4a8a;
}

.strat-tag--duree {
  background: #EDFAF2;
  color: #1a6a3a;
}

.strat-tag--dist {
  background: #FFF4E6;
  color: #8a4000;
}

.strat-seance-detail {
  font-size: 0.78rem;
  color: var(--c-text-sub);
  line-height: 1.45;
  margin: 0;
}

/* Séparation visuelle entre jours */
.strat-seance-row + .strat-seance-row {
  padding-top: 0.4rem;
  border-top: 1px dashed var(--c-border);
}

@media (max-width: 480px) {
  .strat-seance-row {
    flex-direction: column;
    gap: 0.2rem;
  }
  .strat-seance-jour {
    width: auto;
  }
}

/* ─── DISCLAIMERS ────────────────────────── */

/* Bannière globale sous le hero */
.disclaimer-banner {
  background: #FFFBEB;
  border-bottom: 1px solid #F0C040;
}

.disclaimer-inner {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: 0.85rem var(--space-md);
}

.disclaimer-icon {
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.disclaimer-banner p {
  font-size: 0.82rem;
  color: #6b5300;
  line-height: 1.55;
  margin: 0;
}

.disclaimer-banner strong {
  color: #4a3800;
}

/* Disclaimer dans la section stratégie */
.disclaimer-strat {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  background: #FFFBEB;
  border: 1px solid #F0C040;
  border-radius: var(--radius-md);
  padding: 0.8rem var(--space-md);
  margin-bottom: var(--space-md);
  font-size: 0.82rem;
  color: #6b5300;
  line-height: 1.55;
}

.disclaimer-strat-icon {
  flex-shrink: 0;
  line-height: 1.55;
}

.disclaimer-strat span:last-child {
  flex: 1;
}

.disclaimer-strat strong {
  color: #4a3800;
  font-weight: 700;
}

/* Footer */
.footer-disclaimer {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.28);
  font-style: italic;
  margin-top: 0.2rem;
  text-align: center;
}
