:root {
  --tri-primary: #2D2B74;
  --tri-secondary: #00B1EC;
  --tri-accent: #EB028B;
  --tri-bg: #f5f7fb;
  --tri-surface: #ffffff;
  --tri-text: #111827;
  --tri-muted: #6b7280;
}

:root {
  --tri-primary: #2D2B74;
  --tri-secondary: #00B1EC;
  --tri-accent: #EB028B;

  /* 🔥 Rose plus flash (aligné logo) */
  --tri-accent-flash: #ff1fa6;

  --tri-bg: #f5f7fb;
  --tri-surface: #ffffff;
  --tri-text: #111827;
  --tri-muted: #6b7280;
}


*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: var(--tri-bg);
  color: var(--tri-text);
}

/* =========================
   NAVBAR
========================= */

.navbar {
  position: relative;
  z-index: 10;
  background-color: #ffffff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.navbar-brand {
  display: flex;
  align-items: center;
  height: 56px;
  overflow: visible;
  position: relative;
  z-index: 20;
}

.navbar-brand img {
  height: 160px;
  transform: translateY(40px);
}

@media (max-width: 576px) {
  .navbar-brand img {
    height: 110px;
    transform: translateY(24px);
  }
}

.nav-link.active {
  font-weight: 600;
  color: var(--tri-primary) !important;
}

/* =========================
   HERO (ROSE → BLEU)
========================= */

.hero-tri {
  position: relative;
  overflow: hidden;
  background: linear-gradient(
          135deg,
          rgba(255, 31, 166, 1), /* ROSE */
          rgba(0, 177, 236, 1)  /* BLEU */
  );
  color: #ffffff;
  padding: 5.5rem 0 4.5rem;
}

.hero-tri h1 span {
  color: var(--tri-primary);
}

.hero-tri .lead {
  color: rgba(255, 255, 255, 0.92);
}

.hero-badges .badge {
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.16);
  color: #f9fafb;
  font-size: 0.75rem;
  font-weight: 500;
}

/* =========================
   HERO CAROUSEL (CADRE FIXE)
========================= */

.hero-carousel-wrapper {
  max-width: 460px;
  margin-left: auto;
}

.hero-carousel {
  height: 290px;
  border-radius: 1.6rem;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.45);
}

.hero-carousel .carousel-inner,
.hero-carousel .carousel-item {
  height: 100%;
}

.hero-carousel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 992px) {
  .hero-carousel {
    height: 360px;
  }
}

/* =========================
   CARDS & SECTIONS
========================= */

.card-tri {
  border-radius: 1.5rem;
  border: none;
  color: #ffffff;

  /* 🎯 Même gradient que le bouton */
  background: linear-gradient(
          135deg,
          rgba(255, 31, 166, 1),  /* tri-accent flash */
          rgba(0, 177, 236, 1)  /* tri-secondary */

  );

  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
}


.section-title {
  border-left: 5px solid var(--tri-primary);
  padding-left: 0.75rem;
  margin-bottom: 0.25rem;
}

.section-title-without-border {
  padding-left: 0.75rem;
  margin-bottom: 0.25rem;
}

.discipline-icon {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  overflow: hidden;
  flex-shrink: 0;
}

.discipline-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-tri h1 span,
.section-title,
.section-title-without-border,
.nav-contact a i,
.footer-tri i {
  color: var(--tri-primary);
}


/* =========================
   SPONSORS BAND (ROSE → BLEU)
========================= */

.sponsors-band h2 {
  letter-spacing: 0.12em;
  color: var(--tri-muted);
}

.sponsor-logo {
  max-height: 64px;
  width: 100%;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.75;
  transition: all 0.3s ease;
}

.sponsor-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.05);
}

/* =========================
   FOOTER
========================= */

.footer-tri {
  background-color: #0b1120;
  color: rgba(241, 245, 249, 0.9);
  font-size: 0.85rem;
}

.footer-tri a {
  color: #e0f2fe;
  text-decoration: none;
}

.footer-tri a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-tri i {
  color: var(--tri-accent);
}

/* =========================
   BUTTONS
========================= */

.btn {
  border-radius: 999px;
  padding: 0.55rem 1.4rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.btn-primary,
.btn-outline-primary,
.btn-light {
  background-color: #ffffff;
  color: var(--tri-primary);
  border-color: var(--tri-primary);
}

.btn-primary:hover,
.btn-outline-primary:hover,
.btn-light:hover,
.btn-primary:focus-visible,
.btn-outline-primary:focus-visible,
.btn-light:focus-visible {
  background: linear-gradient(
          135deg,
          var(--tri-secondary),
          var(--tri-accent)
  );
  color: #ffffff;
  border-color: transparent;
}

.btn-outline-light {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.85);
}

.btn-outline-light:hover,
.btn-outline-light:focus-visible {
  background-color: #ffffff;
  color: var(--tri-primary);
}

/* =========================
   NAV CONTACT
========================= */

.nav-contact a {
  color: var(--tri-primary);
  font-weight: 500;
}

.nav-contact a i {
  color: var(--tri-accent);
}

.nav-contact a:hover {
  color: var(--tri-accent);
}

/* Carousel "Une année avec Tri4Phil" – cadre fixe */

.year-carousel {
  margin-left: auto;
}

/* Cadre verrouillé */
.year-carousel .carousel-inner {
  height: 260px;
  border-radius: 1.25rem;
  overflow: hidden;
}

/* Chaque slide prend toute la hauteur */
.year-carousel .carousel-item {
  height: 100%;
}

/* Image toujours contenue sans déformation */
.year-carousel img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* clé absolue */
}

/* Desktop : un peu plus haut */
@media (min-width: 992px) {
  .year-carousel .carousel-inner {
    height: 320px;
  }
}

/* Carte "Une année avec Tri4Phil" : colonnes de même hauteur */

.card-tri .row.align-items-center {
  align-items: stretch; /* clé du problème */
}

/* Colonne droite : structure verticale maîtrisée */

.card-tri .col-lg-6:last-child {
  display: flex;
  flex-direction: column;
}

/* Carousel : garde sa hauteur fixe */
.year-carousel {
  flex-shrink: 0;
}

/* Bloc droit : image + texte = même hauteur visuelle */

.year-visual-block { /* même hauteur que le carousel desktop */
  display: flex;
  flex-direction: column;
}

.year-visual-block .year-carousel {
  flex: 1 1 auto;
}

.year-visual-block p {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  line-height: 1.4;
  max-width: 100%;
}

@media (max-width: 991px) {
  .year-visual-block {
    height: auto;
  }

  .year-visual-block p {
    max-height: none;
  }
}

/* =========================
   PAGE HERO – OFFSET LOGO
========================= */

.page-hero {
  position: relative;
  color: #ffffff;
  margin-top: 4.5rem; /* compense le débordement du logo */
  background: linear-gradient(
          135deg,
          rgba(255, 31, 166, 1),
          rgba(0, 177, 236, 1)
  );
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

/* Mobile : logo moins bas, offset réduit */
@media (max-width: 576px) {
  .page-hero {
    margin-top: 3rem;
  }
}

/* =========================
   BREADCRUMB – HERO
========================= */

.page-hero .breadcrumb,
.page-hero .breadcrumb a,
.page-hero .breadcrumb-item.active {
  color: #ffffff;
}

.page-hero .breadcrumb a {
  text-decoration: none;
  opacity: 0.9;
}

.page-hero .breadcrumb a:hover {
  text-decoration: underline;
  opacity: 1;
}

/* Séparateur "/" en blanc aussi */
.page-hero .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.75);
}

/* =========================
   PAGE HERO – DÉCOLLAGE TEXTE
========================= */

.page-hero {
  position: relative;
  background: linear-gradient(
          135deg,
          rgba(255, 31, 166, 1),
          rgba(0, 177, 236, 1)
  );
}

/* Décale UNIQUEMENT le contenu, pas le fond */
.page-hero .container {
  padding-top: 3.5rem;
  padding-bottom: 2.5rem;
}

/* Mobile : logo moins envahissant */
@media (max-width: 576px) {
  .page-hero .container {
    padding-top: 2.5rem;
  }
}

/* =========================
   PAGE HERO – ALIGNEMENT LOGO
========================= */

.page-hero {
  position: relative;
  margin-top: -3.5rem; /* remonte sous le logo */
  padding-top: 0;
  background: linear-gradient(
          135deg,
          rgba(255, 31, 166, 1),
          rgba(0, 177, 236, 1)
  );
}
.page-hero .container {
  padding-top: 8rem; /* espace de sécurité sous le logo */
  padding-bottom: 1rem;
}

/* =========================
   COACHS
========================= */

.coach-card img {
  border-radius: 999px;
}

.card ul {
  padding-left: 1.1rem;
}

.card ul li {
  margin-bottom: 0.35rem;
}

