:root {
  --french-blue: #0f1c3f;
  --french-red: #dc314e;
  --text-color: #333;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
}

@font-face {
  font-family: "canalplus";
  src: url("/fonts/canal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "canalplus";
  src: url("/fonts/canalplus.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "canalplus";
  src: url("/fonts/canalplus_bi.woff2") format("woff2");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "canalplus-fallback";
  src: local("Arial");
  ascent-override: 102.15%;
  descent-override: 27.88%;
  line-gap-override: 0%;
  size-adjust: 95.45%;
}

@font-face {
  font-family: "Hind Regular";
  font-style: normal;
  font-weight: normal;
  src:
    local("Hind Regular"),
    url("/fonts/Hind-Regular.woff") format("woff");
}

@font-face {
  font-family: "Hind Light";
  font-style: normal;
  font-weight: normal;
  src:
    local("Hind Light"),
    url("/fonts/ind-Light.woff") format("woff");
}

@font-face {
  font-family: "Hind Medium";
  font-style: normal;
  font-weight: normal;
  src:
    local("Hind Medium"),
    url("/fonts/Hind-Medium.woff") format("woff");
}

@font-face {
  font-family: "Hind SemiBold";
  font-style: normal;
  font-weight: normal;
  src:
    local("Hind SemiBold"),
    url("/fonts/Hind-SemiBold.woff") format("woff");
}

.canal-font {
  font-family: "canalplus", "canalplus-fallback", sans-serif;
}

body {
  position: relative;
  font-family: "Hind Regular";
  color: var(--text-color);
  line-height: 1.6;
  background-color: #fff;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  font-family: "canalplus";
  font-weight: 700;
  color: var(--french-blue);
}

a {
  text-decoration: none;
  transition: 0.3s;
}

.rouge {
  color: var(--french-red);
}

/* --- UI COMPONENTS --- */
.btn {
  display: inline-block;
  padding: 15px 30px;
  background-color: var(--french-red);
  color: white;
  font-family: "canalplus";
  font-weight: 700;
  border-radius: 5px;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn:hover {
  background-color: #c1121f;
  transform: translateY(-2px);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- HEADER --- */
header {
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  width: 100%;
  padding: 10px 0;
  position: fixed;
  top: 0;
  z-index: 100;
}

.nav-container {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.logo {
  font-family: "canalplus";
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--french-blue);
}

.logo span {
  color: var(--french-red);
}

.le-bouquet-francais {
  font-family: 'Hind semibold';
  text-align: center;
  font-size: 1.6rem;
}

.le-bouquet-francais .le-bouquet {
  color: var(--french-blue);
  line-height: 1em;
}

.le-bouquet-francais .francais {
  color: var(--french-red);
  line-height: 1em;
}

.le-bouquet-francais .bayadere {
  display: flex;
  margin: 5px auto 0 auto;
  width: 80%;
}

.le-bouquet-francais .bayadere .bleu {
  background-color: var(--french-blue);
  height: 4px;
  flex: 0 0 33%;
}

.le-bouquet-francais .bayadere .blanc {
  background-color: #eee;
  height: 4px;
  flex: 0 0 33%;
}

.le-bouquet-francais .bayadere .rouge {
  background-color: var(--french-red);
  height: 4px;
  flex: 0 0 33%;
}

.xfinity {
  flex: 1 1 auto;
  padding-top: 8px;
  padding-left: 40px;
  font-size: 1.4rem;
}

.desktop {
  display: block;
}

.mobile {
  display: none;
}

.rogers {
  color: #da291c;
}

/* --- HERO SECTION --- */
/* --- HERO WITH FULLSCREEN VIDEO BACKGROUND --- */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
  color: white;
  text-align: center;
}

.video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
}

.video-background iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 100vh;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  border: none;
}

.lang-button {
  background-color: #f8f8f8;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin-left: 15px;
  padding: 8px;
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.lang-button:hover {
  background-color: #e0e0e0;
}

.lang-button:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 20px;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 28, 63, 0.5);
  z-index: 1;
}

.hero h1 {
  font-family: "canalplus";
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  color: white;
  font-size: 2.5rem;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0.9;
  margin-left: auto;
  margin-right: auto;
}

.tagline {
  font-family: "Hind Medium";
  font-size: 1.5rem;
  margin-bottom: 40px;
  display: block;
  color: #a8dadc;
}

/* --- CHANNELS GRID --- */
.channels {
  padding: 80px 0;
}

.section-title {
  font-family: "canalplus";
  text-transform: uppercase;
  text-align: center;
  font-size: 2rem;
  margin-bottom: 50px;
}

.section-title span {
  border-bottom: 3px solid var(--french-red);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}

.channel-card {
  background: white;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 30px 20px;
  text-align: center;
  transition: 0.3s;
  cursor: pointer;
}

.channel-card:hover {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  border-color: var(--french-blue);
}

.channel-icon {
  font-size: 2rem;
  margin-bottom: 15px;
  color: var(--french-blue);
  display: block;
  /* Remplacer par <img> pour les vrais logos */
  height: 60px;
  /* Espace réservé logo */
  background: #f0f0f0;
  line-height: 60px;
  width: 60px;
  margin: 0 auto 15px;
  border-radius: 50%;
}

.channel-cat {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--french-red);
  font-weight: 400;
  margin-bottom: 5px;
}

.channel-name {
  font-weight: 600;
  font-size: 1.1rem;
}

/* --- FEATURES --- */
.features {
  background-color: var(--french-blue);
  color: white;
  padding: 60px 0;
}

.features-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  text-align: center;
}

.feature-item {
  flex: 1;
  min-width: 250px;
  padding: 20px;
}

.feature-item h3 {
  color: white;
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.gallery {
  background-color: var(--french-blue);
  color: white;
}

.gallery-container {
  width: 100%;
  background-color: #0f1c3f;
  margin: 0 auto;
  overflow: hidden;
}

#partenaires {
  background-color: #878d9f;
}

.partenaires {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 40px;
}

.partenaire-container {
  width: 200px;
  height: 200px;
  background-color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

.partenaire-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  padding: 30px;
}

.image-track {
  display: flex;
  height: 550px;
  transition: height 0.4s ease;
  user-select: none;
}

.image-item {
  flex: 0 0 12.5%;
  height: 100%;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  background: #222;
}

.image-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.image-item:hover {
  flex: 0 0 50%;
  z-index: 10;
}

.image-track:has(.image-item:hover) .image-item:not(:hover) {
  flex: 0 0 7.14%;
}

.image-item:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.ch-logo {
  position: absolute;
  bottom: 5%;
  left: 50%;
  width: 80%;
  max-width: 200px;
  height: auto;
  transform: translatex(-50%);
}

.ch-logo img {
  width: 100%;
  height: auto;
  border: none;
  display: block;
  transform: rotate(0deg);

}

.image-item:hover .ch-logo {
  right: 2.5%;
  left: auto;
  width: 100px;
  transform: translatex(0);
}

.image-shd {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 150px;
  background: linear-gradient(0deg, rgba(15, 28, 63, 1) 0%, rgba(15, 28, 63, 0.58) 30%, rgba(0, 0, 0, 0) 50%);
}

/* --- FOOTER --- */
footer {
  background: #0a1229;
  color: #aaa;
  padding: 40px 0;
  text-align: center;
  font-size: 0.9rem;
}

footer a {
  color: white;
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: none;
  z-index: 10000;
}

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  border-left: 8px solid #fff;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  z-index: 10001;
  display: none;
  width: 80%;
  max-width: 900px;
  height: 95%;
}

.modal-close {
  position: absolute;
  top: -15px;
  right: -15px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: var(--french-red);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close::before,
.modal-close::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 2px;
  background-color: white;
}

.modal-close::before {
  transform: rotate(45deg);
}

.modal-close::after {
  transform: rotate(-45deg);
}

.modal iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  header {
    padding: 8px 0;
  }

  .logo {
    font-size: 1.2rem;
    line-height: 1.2rem;
  }

  .le-bouquet-francais {
    font-size: 1.2rem;
  }

  .xfinity {
    padding: 0;
    font-size: 0.70rem;
    font-weight: normal;
  }

  .hero h1 {
    font-size: 1.6rem;
    padding-top: 30px;
  }

  .grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-title {
    font-size: 2.3rem;
  }

  .desktop {
    display: none;
  }

  /*.mobile {
    display: block;
  }*/
  .lang-button {
    margin-left: 0
  }

  ;

  .image-track {
    height: 240px;
  }

  .ch-logo {
    width: 180%;
  }

  .ch-logo img {
    width: 100%;
    max-width: 200px;
    height: auto;
    transform: rotate(-90deg);
  }

  .image-item:hover .ch-logo {
    right: auto;
    width: 80%;
    left: 50%;
    transform: translatex(-50%);
  }

  .image-item:hover .ch-logo img {
    transform: rotate(0deg);
  }

}

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

  .nav-container {
    gap: 10px;
  }
}

@media (min-aspect-ratio: 16/9) {
  .video-background iframe {
    height: 56.25vw;
    /* 9/16 * 100 */
  }
}

@media (max-aspect-ratio: 16/9) {
  .video-background iframe {
    width: 177.78vh;
    /* 16/9 * 100 */
  }
}

/* --- CONTENEUR HORIZONTAL --- */
.horizontal-container {
  max-width: 1000px;
  /* Plus large pour le format horizontal */
  width: 100%;
  margin: 0 auto;
}

/* --- LA LISTE FLEXIBLE --- */
.steps-horizontal {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: space-between;
  position: relative;
  gap: 20px;
  /* Espace entre les blocs */
}

/* --- L'UNITÉ D'ÉTAPE --- */
.h-step-item {
  flex: 1;
  /* Chaque étape prend une largeur égale */
  text-align: center;
  position: relative;
  z-index: 1;
}

/* --- LA LIGNE DE CONNEXION --- */
/* On utilise un pseudo-élément pour dessiner la ligne derrière les cercles */
.h-step-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 25px;
  /* Au milieu de la hauteur du cercle (50px/2) */
  left: 50%;
  /* Commence au milieu de l'élément actuel */
  width: 100%;
  /* S'étend jusqu'au milieu de l'élément suivant */
  height: 3px;
  background-color: #D1D5DB;
  ;
  z-index: -1;
  /* Derrière le cercle */
  transition: background-color 0.3s ease;
}

/* Effet au survol : la ligne vers la droite s'active */
.h-step-item:hover::after {
  background-color: #DA291C;
}


/* --- LE CERCLE NUMÉROTÉ --- */
.h-step-number {
  width: 50px;
  height: 50px;
  margin: 0 auto 25px auto;
  /* Centré horizontalement, marge en bas */
  background-color: #F3F4F6;
  border: 3px solid #D1D5DB;
  ;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 800;
  font-size: 1.3rem;
  color: #6B7280;
  transition: all 0.3s ease;
  position: relative;
  /* Pour le z-index */
  z-index: 2;
}

/* Effet au survol du cercle */
.h-step-item:hover .h-step-number {
  border-color: #DA291C;
  color: #DA291C;
  background-color: #FFFFFF;
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(218, 41, 28, 0.2);
}

/* --- LE CONTENU (CARTE SOUS LE CERCLE) --- */
.h-step-content {
  background-color: #FFFFFF;
  padding: 25px 20px;
  border-radius: 16px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  border: 1px solid #E5E7EB;
  transition: all 0.3s ease;
  height: 80%;
  display: flex;
  flex-direction: column;
}

.h-step-item:hover .h-step-content {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.1);
  border-color: #e5e7eb;
}

.step-title {
  margin: 0 0 12px 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: #374151;
}

.step-text {
  margin: 0;
  font-size: 0.95rem;
  color: #6B7280;
  line-height: 1.6;
  flex-grow: 1;
  /* Permet au texte de remplir l'espace */
}

/* --- ÉLÉMENTS TEXTUELS (IDENTIQUES) --- */
.highlight {
  font-weight: 600;
  color: #111827;
}

.brand-name {
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* --- RESPONSIVE --- */
/* Sur mobile, on repasse en vertical pour la lisibilité */
@media (max-width: 768px) {
  .steps-horizontal {
    flex-direction: column;
    gap: 40px;
  }

  .h-step-item::after {
    display: none;
    /* On cache les lignes horizontales sur mobile */
  }

  .h-step-item {
    display: flex;
    text-align: left;
    align-items: flex-start;
  }

  .h-step-number {
    margin: 0 20px 0 0;
    flex-shrink: 0;
  }

  .header-title {
    margin-bottom: 40px;
  }
}