/* =========================
   Base / Globals
========================= */

:root {
  --hu-accent: #cdd447;
  --hu-display-font: "Pathway", Impact, "Arial Narrow", sans-serif;
  --hu-body-font: Georgia, "Times New Roman", serif;
}

html {
  background-color: #181818;
  min-height: 100%;
}

body {
  background-color: #181818 !important;
  background-image: url("../img/bg2-y7a4SbZ.jpg");
  background-position: top center;
  background-repeat: repeat-x;
  color: #ddd;
  font-family: var(--hu-body-font);
  min-height: 100%;
}

body.bg-body-tertiary {
  background-color: #181818 !important;
}

a {
  text-decoration: none;
  color: inherit;
}

footer {
  background: #000;
  color: #fff;
}

footer a {
  color: #ccc;
}

.placeholder-img {
  background: #333;
  width: 100%;
  height: 219px;
  display: block;
  object-fit: cover;
  color: #777;
}

.section-title {
  border-left: 5px solid var(--hu-accent);
  font-family: var(--hu-display-font);
  padding-left: 10px;
  margin-bottom: 1rem;
  text-transform: uppercase;
  font-weight: bold;
  letter-spacing: 1px;
}

.card {
  background: #1a1a1a;
  border: none;
  color: #ddd;
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.home-sidebar {
  position: sticky;
  top: 88px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: invert(1);
}

/* =========================
   Header HU
========================= */
.hu-header {
  color: #fff;
  position: relative;
}

/* Topbar */
.hu-topbar {
  background: #2b2b2b;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  z-index: 30;
}

.hu-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}

.hu-toplogo img {
  height: 32px;
  width: auto;
  display: block;
  opacity: 0.95;
}

.hu-social {
  display: flex;
  gap: 0;
}

.hu-social-btn {
  width: 54px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.15);
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  color: #e6e6e6;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.hu-social-btn:hover {
  background: rgba(0, 0, 0, 0.28);
  color: #cdd447;
}

.hu-social-btn svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  display: block;
}

/* Hero */
.hu-hero {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  z-index: 20;
  height: 95px;
  /* IMPORTANT : vraie hauteur */
  overflow: visible;
}

.hu-hero-inner {
  position: relative;
  height: 120px;
  /* IMPORTANT : même hauteur */
  display: flex;
  justify-content: center;
  overflow: visible;
}

/* Grand logo dans le hero, dépasse uniquement vers le bas */
.hu-hero-logo {
  position: absolute;
  left: 50%;
  bottom: -70px;
  /* le fait mordre dans la nav */
  transform: translateX(-50%);
  z-index: 25;
  /* au-dessus de la nav, sous la topbar */
  display: inline-block;
}

.hu-hero-logo img {
  height: 185px;
  width: auto;
  display: block;
  filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.55));
}

/* Nav */
.hu-nav {
  background: rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  z-index: 10;
}

.hu-nav-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: flex-end;
  column-gap: 18px;
  padding: 14px 0 12px;
}

/* Search */
.hu-search-floating {
  position: absolute;
  top: 7px;
  left: 160px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  z-index: 40;
}

body.hu-sticky .hu-search-floating {
  display: none;
}

.hu-search-icon {
  font-size: 22px;
  line-height: 1;
  opacity: 0.9;
}

/* Menus */
.hu-menu {
  display: flex;
  align-items: flex-end;
  gap: 28px;
  white-space: nowrap;
  min-width: 0;
}

.hu-menu a {
  color: #fff;
  font-family: var(--hu-display-font);
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 16px;
  position: relative;
  padding: 6px 0;
  opacity: 0.92;
  white-space: nowrap;
}

.hu-menu a:hover {
  opacity: 1;
}

.hu-menu a.is-active::after,
.hu-menu a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -12px;
  height: 6px;
  background: var(--hu-accent);
}

.hu-menu-left {
  grid-column: 1;
  justify-content: flex-end;
  padding-right: 145px;
}

.hu-menu-right {
  grid-column: 2;
  justify-content: flex-start;
  padding-left: 145px;
}

/* Petit logo dans la nav, caché au repos */
.hu-nav-logo {
  position: absolute;
  left: 50%;
  bottom: 2px;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  align-items: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 30;
}

.hu-nav-logo img {
  height: 44px;
  width: auto;
  display: block;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.45));
}

/* Responsive */
@media (max-width: 992px) {
  .hu-menu {
    gap: 14px;
  }

  .hu-menu a {
    font-size: 14px;
  }

  .hu-menu-left {
    padding-right: 95px;
  }

  .hu-menu-right {
    padding-left: 95px;
  }

  .hu-hero {
    height: 100px;
  }

  .hu-hero-inner {
    height: 100px;
  }

  .hu-hero-logo {
    bottom: -42px;
  }

  .hu-hero-logo img {
    height: 115px;
  }
}

@media (max-width: 768px) {
  .hu-menu-left {
    padding-right: 70px;
  }

  .hu-menu-right {
    padding-left: 70px;
  }

  .hu-hero {
    height: 90px;
  }

  .hu-hero-inner {
    height: 90px;
  }

  .hu-hero-logo {
    bottom: -35px;
  }

  .hu-hero-logo img {
    height: 95px;
  }
}

/* Spacer anti saut */
#huNavSpacer {
  height: 0;
}

/* Sticky */
body.hu-sticky .hu-topbar,
body.hu-sticky .hu-hero {
  display: none;
}

body.hu-sticky .hu-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.78);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45);
}

body.hu-sticky .hu-nav-inner {
  align-items: center;
  padding: 8px 0 10px;
}

body.hu-sticky .hu-search {
  width: 40px;
  height: 40px;
}

body.hu-sticky .hu-nav-logo {
  opacity: 1;
  pointer-events: auto;
}

/* =========================
   WebTV
========================= */
.hu-webtv-row {
  margin-top: 8px;
}

.webtv-wrapper {
  position: relative;
  overflow: hidden;
  background: #1a1a1a;
  border-radius: 4px;
  padding: 0.5rem 1.75rem;
}

.webtv-track {
  display: flex;
  transition: transform 0.3s ease;
}

.webtv-item {
  flex: 0 0 100%;
  padding: 0.25rem;
}

@media (min-width: 768px) {
  .webtv-item {
    flex: 0 0 calc(100% / 3);
  }
}

.webtv-link {
  display: block;
  color: inherit;
}

.webtv-card {
  position: relative;
  display: block;
  background: #222;
  border-radius: 3px;
  overflow: hidden;
  min-height: 246px;
  transition: transform 0.15s ease;
}

.webtv-link:hover .webtv-card {
  transform: translateY(-1px);
}

.webtv-link:hover .webtv-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--hu-accent);
}

.webtv-text {
  padding: 0.75rem;
}

.webtv-text h5 {
  font-family: var(--hu-display-font);
  margin: 0 0 0.25rem 0;
  font-size: 0.95rem;
}

.webtv-text p {
  margin: 0;
  font-size: 0.8rem;
  color: #aaa;
}

.webtv-img {
  height: 180px;
  background: #333;
}

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

.webtv-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  z-index: 5;
  background: transparent;
  border: none;
  padding: 0;
}

.webtv-arrow img {
  display: block;
  height: 34px;
  width: 29px;
}

.webtv-arrow-left {
  left: 2px;
}

.webtv-arrow-right {
  right: 2px;
}

.webtv-arrow:disabled {
  cursor: default;
  opacity: 0.35;
}

.badge-tv {
  display: inline-block;
  background: var(--hu-accent);
  color: #000;
  font-family: var(--hu-display-font);
  font-size: 0.7rem;
  text-transform: uppercase;
  padding: 0 0.35rem;
  margin-right: 0.35rem;
  border-radius: 2px;
  font-weight: 700;
}

/* =========================
   A la une
========================= */
/* À la une : agrandir sans casser le carousel Bootstrap */
#carouselALaUne .carousel-inner {
  min-height: 320px;
  /* monte à 380 ou 420 si besoin */
}

#carouselALaUne .carousel-item {
  min-height: 320px;
}

.featured-link {
  display: block;
  position: relative;
}

#carouselALaUne .placeholder-img {
  height: 320px;
}

.publication-card {
  color: inherit;
}

.carousel-caption h2,
.publication-card h3,
.partner-logo span {
  font-family: var(--hu-display-font);
}

.publication-card p {
  color: #aaa;
  margin-bottom: 0;
}

.partners-list {
  display: grid;
  gap: 14px;
}

.partner-logo {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.85);
  color: #111;
  display: flex;
  justify-content: center;
  min-height: 90px;
  overflow: hidden;
}

.partner-logo img {
  display: block;
  height: auto;
  width: 100%;
  object-fit: contain;
}

.partner-logo:hover {
  outline: 2px solid var(--hu-accent);
}

.partner-logo span {
  padding: 16px;
}

.l214-block {
  display: block;
}

.l214-block img {
  border: 1px solid rgba(255, 255, 255, 0.85);
  display: block;
  height: auto;
  width: 100%;
}

.facebook-placeholder {
  align-items: center;
  background: #222;
  color: #aaa;
  display: flex;
  height: 250px;
  justify-content: center;
}


/* =========================
   Dernieres chroniques
========================= */
/* Chroniques grille */
.chronique-item {
  display: block;
  text-align: center;
  color: inherit;
}

.chronique-item:hover {
  color: inherit;
}

.chronique-item:hover .chronique-img {
  outline: 2px solid var(--hu-accent);
}

.chronique-item:hover .chronique-title {
  color: var(--hu-accent);
}

.chronique-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #333;
  display: block;
  margin-bottom: 6px;
  object-fit: cover;
}

.chronique-title {
  font-family: var(--hu-display-font);
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
}

.chronique-sub {
  font-size: 0.75rem;
  color: #aaa;
}

/* Voir plus */
.see-more-wrap {
  display: flex;
  justify-content: flex-end;
  margin-top: 2rem;
}

.btn-see-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.15);
  color: #e6e6e6;
  font-family: var(--hu-display-font);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 10px 18px;
  border: none;
  transition: background 0.15s, color 0.15s;
}

.btn-see-more:hover {
  background: var(--hu-accent);
  color: #000;
}

@media (min-width: 1200px) {
  h2 {
    font-size: 1.29rem;
  }
}
