.rtc-hero {
  position: relative;
  width: 100%;
  height: 210px;          /* hauteur réduite de 220px à 80px */
  max-height: 210px;
  overflow: hidden;
}

/* SVG de fond qui s'étire dans son conteneur */
.rtc-hero-bg {
  position: absolute;
  inset: 0;               /* top:0; right:0; bottom:0; left:0 */
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none; /* Assure que le fond SVG ne capture pas les clics */
}

/* Contenu non déformé (par-dessus le fond) */
.rtc-hero-content {
  position: relative;
  z-index: 1;
  height: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Logo texte */
.rtc-logo {
  display: flex;
  flex-direction: column;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #ffffff;
}

.rtc-logo-main {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.rtc-logo-sub {
  font-size: 0.85rem;
  font-weight: 400;
  opacity: 0.85;
}

/* Espace central "élastique" entre logo et icône */
.rtc-hero-spacer {
  flex: 1;
}

/* Icône chrono à droite */
.rtc-icon {
  width: 120px;
  height: 120px;
  min-width: 120px;
  min-height: 120px;
  max-width: 120px;
  max-height: 120px;
  flex-shrink: 0;
}

.rtc-icon a {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
}

.rtc-icon-svg {
  width: 100%;
  height: 100%;
  color: #ffffff;
  display: block;
  aspect-ratio: 1 / 1;
}

/* Styles pour les liens de la bannière */
.rtc-logo-link {
  text-decoration: none;
  color: #ffffff;
  display: inline-flex;
  flex-direction: column;
  line-height: 1.1;
  cursor: pointer;
  position: relative;
  z-index: 2;
}

.rtc-logo-link:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
  border-radius: 4px;
}

.rtc-logo-link:hover .rtc-logo-main { text-decoration: underline; }
.rtc-logo-link:hover .rtc-logo-sub { opacity: 1; }

/* Version mobile : bannière un peu plus basse */
@media (max-width: 600px) {
  .rtc-hero {
    height: 80px;
  }

  .rtc-hero-content {
    padding-inline: 1rem;
  }

  .rtc-logo-main {
    font-size: 1.2rem;
  }

  .rtc-logo-sub {
    font-size: 0.75rem;
  }

  .rtc-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    min-height: 60px;
    max-width: 60px;
    max-height: 60px;
  }

  .rtc-icon a {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
  }

  .rtc-icon-svg {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
  }
}

/* Layout général avec menu vertical à gauche */
.layout {
  display: flex;
  min-height: calc(100vh - 210px);
  gap: 1.5rem;
}

#nav-container {
  width: 260px;
  background: #f8fafc;
  border-right: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  height: calc(100vh - 210px);
  overflow-y: auto;
  flex-shrink: 0;
  align-self: flex-start;
}

/* Contenu principal aligné avec padding */
.main-content {
  flex: 1;
  padding: 1.5rem 2rem 1.5rem 1.5rem;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* Navigation verticale */
.rtc-main-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0.5rem 0;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.6rem;
  color: #334155;
  text-decoration: none;
  transition: all 0.15s ease;
  border-left: 3px solid transparent;
  font-size: 0.8125rem;
}

.nav-link:hover,
.nav-link:focus {
  background: #e0f2fe;
  border-left-color: #0ea5e9;
  outline: none;
}

.nav-link[aria-current="page"] {
  background: #eff6ff;
  border-left-color: #2563eb;
  color: #2563eb;
  font-weight: 600;
}

.nav-link .icon {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

/* Navigation dropdown styles - version verticale */
.nav-dropdown-wrapper {
  position: relative;
}

.nav-dropdown-toggle {
  background: #e2e8f0;
  border: none;
  cursor: pointer;
  width: 100%;
  padding: 0.6rem 0.75rem;
  font: inherit;
  color: #1e293b;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.15s ease;
  border-left: 3px solid #94a3b8;
  text-align: left;
  font-size: 0.875rem;
}

.nav-dropdown-toggle:hover,
.nav-dropdown-toggle:focus {
  background: #cbd5e1;
  border-left-color: #0ea5e9;
  outline: none;
}

.nav-dropdown-toggle[aria-current="page"] {
  background: #dbeafe;
  border-left-color: #2563eb;
  color: #1e40af;
  font-weight: 700;
}

.nav-dropdown-toggle .icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.nav-dropdown-toggle .icon-chevron {
  width: 16px;
  height: 16px;
  margin-left: auto;
  transition: transform 0.2s ease;
}

.nav-dropdown-wrapper.open .nav-dropdown-toggle .icon-chevron {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  display: none;
  background: #ffffff;
  border-left: 3px solid #cbd5e1;
  margin-left: 0.5rem;
}

.nav-dropdown-wrapper.open .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.6rem 0.45rem 0.8rem;
  color: #475569;
  text-decoration: none;
  transition: all 0.15s ease;
  font-size: 0.75rem;
  border-left: 3px solid transparent;
}

.nav-dropdown-item:hover,
.nav-dropdown-item:focus {
  background: #f1f5f9;
  color: #0f172a;
  outline: none;
}

.nav-dropdown-item[aria-current="page"] {
  background: #e0f2fe;
  color: #0369a1;
  font-weight: 600;
  border-left-color: #0ea5e9;
}

.nav-dropdown-item .icon {
  width: 25px;
  height: 25px;
}

/* Contenu principal */
.layout > *:not(#nav-container) {
  flex: 1;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .layout {
    flex-direction: column;
  }

  #nav-container {
    position: relative;
    height: auto;
    border-right: none;
    border-bottom: 1px solid #e2e8f0;
    width: 100%;
  }

  .main-content {
    padding: 1rem;
    width: 100%;
  }

  .rtc-main-nav {
    padding: 0.5rem 0;
  }

  .nav-link,
  .nav-dropdown-toggle {
    font-size: 0.9rem;
    padding: 0.6rem 1rem;
  }

  .nav-dropdown-item {
    font-size: 0.85rem;
    padding: 0.5rem 1rem 0.5rem 1.5rem;
  }

  .layout > *:not(#nav-container) {
    width: 100%;
  }
}

.icon { width:1em; height:1em; vertical-align:-0.125em; display:inline-block; stroke-width:2; }
.icon-run { color:#0a6c84; }
.icon-flag { color:#b44900; }
.icon-target { color:#0d5bd8; }
.icon-home { color:#0d5bd8; }
.icon-chart { color:#0d5bd8; }
.icon-medal { color:#d4a200; }
.icon-vo2 { color:#007b55; }
.icon-light { color:#ff8800; }
.icon-idea { color:#ffcc00; }
.icon-wrench { color:#666; }
.icon-link { color:#0d5bd8; }
.icon-pace { color:#7c3aed; }
.icon-weight { color:#ea580c; }
.icon-fire { color:#ef4444; }
.icon-heart { color:#dc2626; }
.icon-heart { color:#dc2626; }
.icon-chevron { color:#64748b; }
