/* GLOBAL STYLES
-------------------------------------------------- */


/* CUSTOMIZE THE CAROUSEL
-------------------------------------------------- */

/* Keep Bootstrap visibility logic */
#myCarousel .carousel-item {
  position: relative;
  background: rgba(0, 0, 0, 0.85)
}

/* Stack video + caption WITHOUT breaking carousel */
#myCarousel .carousel-item > .video-wrapper,
#myCarousel .carousel-item > .caption-bar {
  width: 100%;
}

/* S'assurer que les flèches restent cliquables, même si d'autres overlays existent */
#myCarousel { position: relative; }
#myCarousel .carousel-control-prev,
#myCarousel .carousel-control-next {
  z-index: 1;
  pointer-events: auto;
}

/* Video section */
#myCarousel .video-wrapper {

  /* width: 100%; */
  aspect-ratio: 16 / 9;
  max-height: 70vh;
  /* height: clamp(320px, 70vh, 820px);   */
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #000;   /* fills empty space nicely */
}

#myCarousel .video-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.2),
    rgba(0,0,0,0.8)
  );
}

/* Video behaves like background */
#myCarousel .carousel-video {
  width: 100%;
  height: 100%;
  object-fit: fill;  
  pointer-events: none;
  
}


/* --- Réinitialisation : captions sous la vidéo, pas d'overlay --- */
#myCarousel .caption-bar {
  position: relative;      /* on la remet dans le flux normal */
  margin-top: .75rem;    /* espace entre la vidéo et la carte */
  z-index: 2;              
}

#myCarousel .caption-panel {
  color: #fff;
  background: linear-gradient(
    180deg,
    rgba(20, 22, 25, 0.88),
    rgba(15, 17, 20, 0.88)
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: .9rem;
  padding: 1rem 1.25rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  backdrop-filter: saturate(120%) blur(6px); /* joli mais safe si non supporté */
}

#myCarousel .caption-panel h1 {
  font-size: clamp(1.25rem, 1.8vw + .6rem, 2rem);
  margin: 0 0 .35rem 0;
  letter-spacing: .2px;
}

#myCarousel .caption-panel p {
  margin: 0 0 .5rem 0;
  color: rgba(255, 255, 255, 0.9);
}

#myCarousel .caption-panel .btn {
  border-radius: .65rem;
  box-shadow: 0 10px 22px rgba(13, 110, 253, 0.25);
  transition: transform 140ms ease, box-shadow 140ms ease;
}
#myCarousel .caption-panel .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(13, 110, 253, 0.32);
}

/* Alignements responsives */
@media (min-width: 768px) {
  #myCarousel .caption-panel { padding: 1.25rem 1.5rem; }
}
@media (min-width: 992px) {
  #myCarousel .caption-panel { border-radius: 1rem; }
}

/* Disable Bootstrap absolute caption */
.carousel-caption {
  position: sticky;
  color: #fff;
}

/* MARKETING CONTENT
-------------------------------------------------- */

/* Center align the text within the three columns below the carousel */
.marketing .col-lg-4 {
  color: white;
  margin-bottom: 1.5rem;
  text-align: center;
}
.marketing h2 {
  font-weight: 400;
}
/* rtl:begin:ignore */
.marketing .col-lg-4 p {
  margin-right: .75rem;
  margin-left: .75rem;
}
/* rtl:end:ignore */


/* Featurettes
------------------------- */

.featurette-divider {
  color: bisque;
  margin: 5rem 0; /* Space out the Bootstrap <hr> more */
}

/* Thin out the marketing headings */
.featurette-heading {
  color:white;
  font-weight: 300;
  line-height: 1;
  /* rtl:remove */
  letter-spacing: -.05rem;
}

.featurette p {
  color: #adb5bd; /* example: soft gray */
}

/* --- Modern dark / glassy modal --- */
.modern-modal {
  /* Gentle dark glass gradient with subtle transparency */
  background: linear-gradient(
      180deg,
      rgba(33, 37, 41, 0.96),
      rgba(18, 20, 23, 0.96)
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem; /* rounded-3 equivalent */
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  overflow: hidden; /* crisp edges */
}

.modern-modal .modal-header,
.modern-modal .modal-footer {
  border: 0 !important;
}

.modern-modal .modal-title {
  letter-spacing: 0.2px;
}

/* --- Step list: clean vertical timeline with dots --- */
.step-list {
  position: relative;
  margin: 0;
  padding-left: 0.25rem;
}

.step-list li {
  position: relative;
  padding-left: 1.75rem; /* space for dot/line */
  line-height: 1.45;
}

/* Dot */
.step-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--bs-primary);
  box-shadow: 0 0 0 6px rgba(var(--bs-primary-rgb, 13, 110, 253), 0.15);
}

/* Vertical connector */
.step-list li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 0.24rem; /* center with the dot */
  top: 1.45rem;
  bottom: -0.7rem;
  width: 2px;
  background: rgba(255, 255, 255, 0.12);
}

/* Compact spacing between steps on small screens, a bit more on large */
@media (min-width: 992px) {
  .step-list li + li { margin-top: 0.25rem; }
}

/* --- Buttons: subtle elevation and motion --- */
.modern-modal .btn {
  border-radius: 0.65rem;
}

.modern-modal .cta-elevated {
  box-shadow: 0 10px 22px rgba(var(--bs-primary-rgb, 13, 110, 253), 0.25);
  transform: translateY(0);
  transition: transform 140ms ease, box-shadow 140ms ease, background-color 140ms ease, color 140ms ease;
}

.modern-modal .cta-elevated:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(var(--bs-primary-rgb, 13, 110, 253), 0.32);
}

/* Outline button hover readable on dark */
.modern-modal .btn-outline-light:hover {
  color: #111;
  background-color: #f8f9fa;
  border-color: #f8f9fa;
}

/* Focus ring that matches brand color */
.modern-modal .btn:focus-visible {
  box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb, 13, 110, 253), 0.35);
  outline: none;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .modern-modal .cta-elevated {
    transition: none;
  }
}


/* RESPONSIVE CSS
-------------------------------------------------- */
@media (min-width: 992px) {
  .caption-bar {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,.8), transparent);
  }
}


@media (max-width: 768px) {
    #myCarousel .carousel-control-prev,
    #myCarousel .carousel-control-next {
        display: none;
    }
}



@media (min-width: 40em) {
  /* Bump up size of carousel content */
  .carousel-caption p {
    margin-bottom: 1.25rem;
    font-size: 1.25rem;
    line-height: 1.4;
  }

  .featurette-heading {
    font-size: 50px;
  }
}

@media (min-width: 62em) {
  .featurette-heading {
    margin-top: 7rem;
  }
}
