/* ===== GLOBAL ===== */
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: #000;
  color: #fff;
  padding-top: 0;
  padding-bottom: 100px;
}

/* ===== NAVBAR ===== */
.navbar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: #000;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-logo-container .logo{
  height: 44px;
  width: auto;
  display: block;
}

.nav-links{
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-links li a{
  text-decoration: none;
  color: #ffffff;
  font-weight: 600;
  padding: 8px 6px;
  border-radius: 4px;
}

.nav-links li a:hover{
  background: rgba(255,255,255,0.08);
}

.nav-upload-btn {
  background: #fff;
  color: #ff2b2b;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
  text-transform: uppercase;
  border: 2px solid #fff;
}

.nav-upload-btn:hover {
  background: #ff2b2b;
  color: #fff;
}

.menu-toggle{
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: #ffffff;
}

.hidden-menu {
  position: fixed;
  top: 60px;
  right: 20px;
  width: 250px;
  display: none;
  background: #111;
  border-radius: 8px;
  padding: 10px 0;
  z-index: 200;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

@media (max-width: 1024px) {
  .menu-toggle{
    display: block;
  }

  .nav-links{
    display: none;
    position: absolute;
    right: 16px;
    top: 64px;
    background: #000;
    flex-direction: column;
    padding: 10px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    border: 1px solid #1a1a1a;
    border-radius: 8px;
    min-width: 180px;
  }

  .nav-links.open{
    display: flex;
  }

  .nav-links li{
    width: 100%;
  }

  .nav-links li a{
    display: block;
    padding: 10px;
    color: #ffffff;
  }

}


/* ===== HERO ===== */
.hero-accueil {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  min-height: auto;
  padding: 20px 20px 40px;
}

/* Grille slogan + player */
.direct-grid {
  display: grid;
  grid-template-rows: auto auto auto;
  gap: 20px;
  justify-items: stretch; /* Changé de 'center' à 'stretch' */
  align-content: center;
  width: 100%;
  max-width: 1200px;
}

#hero-player-container {
  width: 100%;
  display: flex;
  justify-content: center;
}

/* Paragraphe */
.slogan-navbar {
  font-size: 50px;
  font-weight: bold;
  color: white;
  text-align: center;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  margin: 0;
  padding: 0;
  display: flex;
}

@media (max-width: 768px) {
  .slider-nav {
    display: none !important;
  }

  .slogan-navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    flex-wrap: nowrap;
    margin-top: 8px;
    min-height: 38px;
    color: #fff;
  }

  .slogan-navbar .word {
    font-size: 27px;
  }
}

@media (max-width: 640px) {
  .direct-grid {
    gap: 30px;
    max-width: 95%;
  }

  .slogan-navbar {
    font-size: 36px;
  }
}

/* ===== ANIMATIONS SLOGAN ===== */
.slogan-navbar .word {
  display: inline-block;
  opacity: 1;
  transform: translateY(0) scale(1);
  color: #ff2b2b;
  text-shadow: 0 0 0 transparent;
  animation: engagedWord 5.2s ease-in-out infinite;
}

.slogan-navbar .word:nth-child(1) {
  animation-delay: 0s;
}

.slogan-navbar .word:nth-child(2) {
  animation-delay: 1.2s;
  color: #ffffff;
}

.slogan-navbar .word:nth-child(3) {
  animation-delay: 2.4s;
}

@keyframes engagedWord {
  0%, 100% {
    transform: translateY(0) scale(1);
    text-shadow: 0 0 0 transparent;
  }
  22% {
    transform: translateY(-2px) scale(1.03);
    text-shadow: 0 0 16px rgba(255, 255, 255, 0.32);
  }
  50% {
    transform: translateY(0) scale(1);
    text-shadow: 0 0 0 transparent;
  }
}

@media (max-width: 768px) {
  .slogan-navbar .word {
    font-size: 27px;
  }
}


/* ===== HOME EMISSIONS ===== */
.home-emissions-section {
  padding: 0 0 40px;
}

.page-title-small {
  font-size: 28px;
  color: #fff;
  margin-bottom: 18px;
  text-align: left;
}

.home-emissions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  grid-auto-rows: 1fr;
  gap: 30px;
  align-items: start;
  justify-items: center;
}

.home-emission-card {
  background: #111;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  gap: 12px;
  cursor: pointer;
  padding: 10px;
  width: 100%;
  max-width: 720px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
  align-items: stretch;
  height: 100%;
}

.home-emission-cover {
  width: 180px;
  flex-shrink: 0;
}

.home-emission-cover.small {
  width: 80px;
}

.home-emission-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.home-emission-body {
  padding: 6px 4px;
  flex: 1 1 auto;
}

.home-emission-body.small {
  padding: 4px 4px;
}

.home-emission-badge {
  background: #28a745;
  color: #fff;
  display: inline-block;
  padding: 6px 8px;
  border-radius: 12px;
  font-weight: 700;
  margin-bottom: 6px;
  box-shadow: 0 6px 18px rgba(40,167,69,0.12);
}

.home-emission-title {
  margin: 0;
  font-size: 18px;
  color: #fff;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}

.home-emission-meta {
  color: #ccc;
  font-size: 13px;
  margin-top: 6px;
}

.home-emission-schedule {
  color: #ff2b2b;
  font-weight: 700;
  margin-top: 6px;
  font-size: 13px;
}

.home-emissions-list {
  display: flex;
}

@media (max-width: 900px) {
  .home-emissions-grid {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .home-emission-cover {
    width: 120px;
  }
}


/* ===== PLAYER BUTTONS ===== */
.player-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 50px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}


/* ===== FOOTER ===== */
.footer {
  background: #111;
  color: #fff;
  padding: 40px 20px;
  margin-top: 80px;
}

.footer-tabs {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
}

.footer-tab {
  background: none;
  border: 2px solid #333;
  color: #ccc;
  padding: 10px 25px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 25px;
  transition: all 0.3s;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-tab:hover {
  border-color: #ff2b2b;
  color: #ff2b2b;
}

.footer-tab.active {
  background: #ff2b2b;
  border-color: #ff2b2b;
  color: #fff;
}

.footer-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.footer-section {
  display: none;
}

.footer-section.active {
  display: block;
}

.footer-section p {
  font-size: 14px;
  line-height: 1.8;
  color: #ccc;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li {
  margin: 10px 0;
}

.footer-section ul li a {
  color: #ccc;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
}

.footer-section ul li a:hover {
  color: #ff2b2b;
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #333;
}

.footer-bottom p {
  font-size: 13px;
  color: #777;
}

.footer-bottom a {
  color: #bbb;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.3s ease;
}

.footer-bottom a:hover {
  color: #ff2b2b;
}

/* ===== EQUIPE SLIDER (in Hero) ===== */
.equipe-slider-container {
  position: relative;
  width: 100%;
  max-width: 100%; /* Prend toute la largeur disponible (720px) */
  margin: 0 auto 20px;   /* Centre le slider et ajoute de l'espace en bas */
}

.equipe-slider {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 30px) / 3);
  gap: 15px;
  overflow-x: auto;
  scroll-snap-type: none;
  scroll-behavior: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  padding: 20px 0;
  position: relative;
  align-items: center;
}

.equipe-slider::-webkit-scrollbar {
  display: none; /* Safari and Chrome */
}

.equipe-slide {
  scroll-snap-align: none;
  position: relative;
  isolation: isolate;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: linear-gradient(180deg, rgba(18, 18, 18, 0.96) 0%, rgba(10, 10, 10, 1) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 38px rgba(0,0,0,0.22);
  transition: transform 0.42s ease, opacity 0.42s ease, border-color 0.42s ease, box-shadow 0.42s ease, filter 0.42s ease;
  transform: scale(0.9);
  opacity: 0.72;
  will-change: transform, opacity;
  filter: saturate(0.88);
}

.equipe-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.06) 0%, rgba(0, 0, 0, 0.36) 100%);
  pointer-events: none;
  z-index: 2;
}

.equipe-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  pointer-events: none;
  z-index: 3;
}

.equipe-slide.active {
  border-color: #ff2b2b;
  box-shadow: 0 28px 56px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,43,43,0.22), 0 2px 0 rgba(255,255,255,0.05) inset;
  z-index: 10;
  transform: scale(1.03);
  opacity: 1;
  filter: saturate(1.02);
}

.equipe-slide.click-bump {
  animation: equipe-center-click 0.18s ease;
}

.equipe-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.42s ease, filter 0.42s ease;
}

.equipe-slide.active img {
  transform: scale(1.06);
  filter: saturate(1.06) contrast(1.05);
}

@keyframes equipe-center-click {
  0% { transform: scale(1.03); }
  45% { transform: scale(1.07); }
  100% { transform: scale(1.03); }
}

.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(12, 12, 12, 0.78);
  backdrop-filter: blur(8px);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  width: 46px;
  height: 46px;
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 16px 28px rgba(0,0,0,0.35);
  transition: background 0.24s ease, border-color 0.24s ease, transform 0.24s ease;
}

.slider-nav:hover {
  background: rgba(22, 22, 22, 0.92);
  border-color: rgba(255, 43, 43, 0.4);
  transform: translateY(-50%) scale(1.04);
}
.slider-nav.prev { left: -20px; }
.slider-nav.next { right: -20px; }

@media (max-width: 768px) {
  .equipe-slider-container {
    max-width: 100%;
    overflow: hidden;
  }

  .equipe-slider {
    --mobile-slide-width: 72%;
    grid-auto-columns: var(--mobile-slide-width);
    gap: 10px;
    padding: 18px 0;
  }

  .equipe-slide {
    transform: scale(0.88);
    opacity: 0.76;
  }

  .equipe-slide.active {
    transform: scale(1.04);
    opacity: 1;
  }

  .slider-nav.prev { left: 5px; }
  .slider-nav.next { right: 5px; }
}

@media (max-width: 480px) {
  .equipe-slider {
    --mobile-slide-width: 74%;
    grid-auto-columns: var(--mobile-slide-width);
    gap: 8px;
    padding: 16px 0;
  }
}
