/* Accueil (index) — page-specific */
/* --------------------------------------------------------------------------
   Hero slide
   -------------------------------------------------------------------------- */

.hero-slide {
  position: relative;
  min-height: 90vh;
  min-height: 90dvh;
  overflow: hidden;
  background-color: var(--bitcrew-bg);
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
      90deg,
      var(--bitcrew-bg) 0%,
      rgba(5, 10, 16, 0.85) 42%,
      rgba(5, 10, 16, 0.35) 100%
    ),
    var(--bitcrew-overlay);
}

/* Slightly lighter on the right so the cyber video / shield read better */
.hero-overlay--cyber {
  background: linear-gradient(
      90deg,
      var(--bitcrew-bg) 0%,
      rgba(5, 10, 16, 0.78) 48%,
      rgba(5, 10, 16, 0.45) 100%
    ),
    rgba(5, 10, 16, 0.65);
}

/* Balances busier / warmer footage (e.g. network + data overlays) */
.hero-overlay--capacity {
  background: linear-gradient(
      90deg,
      var(--bitcrew-bg) 0%,
      rgba(5, 10, 16, 0.84) 44%,
      rgba(5, 10, 16, 0.42) 100%
    ),
    rgba(5, 10, 16, 0.7);
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-content > .row {
  min-height: 90vh;
  min-height: 90dvh;
}

.hero-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--bitcrew-text);
  margin-bottom: 1rem;
}

.hero-lead {
  font-size: clamp(1rem, 2vw, 1.125rem);
  font-weight: 400;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 1rem;
  max-width: 32rem;
}

.hero-subtitle {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 2vw, 1.125rem);
  font-weight: 700;
  line-height: 1.45;
  color: var(--bitcrew-text);
  margin-bottom: 0.75rem;
  max-width: 32rem;
}

.hero-highlight {
  font-family: var(--font-heading);
  font-size: clamp(1.125rem, 2.2vw, 1.35rem);
  font-weight: 600;
  line-height: 1.45;
  color: var(--bitcrew-primary);
  margin-bottom: 2rem;
  max-width: 36rem;
}

.hero-actions {
  margin-top: 0.25rem;
}

/* --------------------------------------------------------------------------
   Buttons — single source of truth (size + radius)
   -------------------------------------------------------------------------- */

.btn-bitcrew {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--btn-min-height);
  padding: var(--btn-padding-y) var(--btn-padding-x);
  font-family: var(--font-body);
  font-size: var(--btn-font-size);
  font-weight: var(--btn-font-weight);
  line-height: 1.2;
  border-radius: var(--btn-radius);
  border-width: 2px;
  border-style: solid;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease,
    box-shadow 0.2s ease, transform 0.15s ease;
}

.btn-bitcrew:focus-visible {
  outline: 2px solid var(--bitcrew-primary);
  outline-offset: 3px;
}

.btn-bitcrew-primary {
  color: var(--bitcrew-text);
  background-color: var(--bitcrew-primary);
  border-color: var(--bitcrew-primary);
}

.btn-bitcrew-primary:hover {
  color: var(--bitcrew-text);
  background-color: #3a6b92;
  border-color: #3a6b92;
}

.btn-bitcrew-outline {
  color: var(--bitcrew-text);
  background-color: transparent;
  border-color: rgba(255, 255, 255, 0.85);
}

.btn-bitcrew-outline:hover {
  color: var(--bitcrew-text);
  background-color: rgba(255, 255, 255, 0.08);
  border-color: #ffffff;
}

/* --------------------------------------------------------------------------
   Carousel — hero prev / next (edges)
   -------------------------------------------------------------------------- */

#heroCarousel .carousel-inner,
#heroCarousel .carousel-item {
  min-height: 90vh;
  min-height: 90dvh;
}

.hero-carousel-prev,
.hero-carousel-next {
  width: 48px;
  height: 48px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 1;
  z-index: 3;
}

.hero-carousel-prev {
  left: 1.25rem;
  right: auto;
}

.hero-carousel-next {
  right: 1.25rem;
  left: auto;
}

.hero-carousel-prev-inner,
.hero-carousel-next-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--bitcrew-text);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.hero-carousel-prev:hover .hero-carousel-prev-inner,
.hero-carousel-next:hover .hero-carousel-next-inner {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.45);
}

.hero-carousel-prev:focus,
.hero-carousel-next:focus {
  box-shadow: none;
}

.hero-carousel-mobile__btn {
  padding: 0;
  margin: 0;
  border: none;
  background: none;
  cursor: pointer;
  line-height: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero-carousel-mobile__btn:focus {
  box-shadow: none;
}

.hero-carousel-mobile__btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 3px;
  border-radius: 50%;
}

@media (max-width: 575.98px) {
  .hero-carousel-prev {
    left: 0.75rem;
  }

  .hero-carousel-next {
    right: 0.75rem;
  }
}

/* --------------------------------------------------------------------------
   About — talent & innovation block
   -------------------------------------------------------------------------- */

.section-about {
  background-color: #eef3f8;
  overflow-x: clip;
}

@media (max-width: 991.98px) {
  .section-about {
    background: linear-gradient(180deg, #e3eef8 0%, #eef3f8 45%, #f2f6fb 100%);
  }
}

.section-about .about-container {
  max-width: 1200px;
}

/* Left (card) + right (image), flex overlap */
.about-overlap {
  position: relative;
  width: 100%;
}

.about-overlap__inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
  position: relative;
  width: 100%;
}

.about-overlap__card-wrap {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  width: 100%;
  text-align: left;
}

.about-overlap__visual-wrap {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
}

/* Blue panel behind image only */
.about-visual-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: 8px;
  background: linear-gradient(145deg, #dbeaf5 0%, #e8f4fc 50%, #d4e8f5 100%);
  pointer-events: none;
}

.about-visual {
  position: relative;
  z-index: 1;
  padding: clamp(1rem, 3vw, 1.75rem);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 280px;
}

.about-visual__img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: right center;
}

@media (min-width: 992px) {
  /* Image first in DOM → row-reverse keeps card left, image right */
  .about-overlap__inner {
    flex-direction: row-reverse;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 0;
  }

  .about-overlap__card-wrap {
    flex: 1 1 50%;
    max-width: 50%;
    margin-right: -120px;
  }

  .about-overlap__visual-wrap {
    flex: 0 0 50%;
    width: 50%;
    max-width: 50%;
  }

  .about-visual {
    min-height: min(440px, 58vh);
    border-radius: 4px 8px 8px 4px;
  }

  .about-visual-bg {
    border-radius: 4px 8px 8px 4px;
  }

  .about-visual__img {
    max-height: none;
  }
}

@media (max-width: 991.98px) {
  .about-overlap__inner {
    gap: 0;
  }

  .about-overlap__visual-wrap {
    width: 100%;
    max-width: 100%;
    z-index: 1;
  }

  .about-visual {
    justify-content: center;
    min-height: 240px;
    padding: 1rem 1rem 2.5rem;
    border-radius: 18px 18px 0 0;
  }

  .about-visual-bg {
    border-radius: 18px 18px 0 0;
  }

  .about-visual__img {
    max-height: min(320px, 52vh);
    object-position: center center;
  }

  .about-overlap__card-wrap {
    margin-right: 0;
    margin-top: -2.5rem;
    max-width: 100%;
    z-index: 2;
    padding: 0 0.25rem;
  }
}

@media (max-width: 991.98px) {
  .section-about .about-card {
    border-radius: 22px 22px 14px 14px;
    box-shadow:
      0 -6px 28px rgba(5, 10, 16, 0.06),
      0 16px 40px rgba(5, 10, 16, 0.1);
    padding: 1.5rem 1.35rem;
  }
}

/* --------------------------------------------------------------------------
   Services — Nos Services
   -------------------------------------------------------------------------- */

.section-services {
  background-color: #3d6d95;
  color: #ffffff;
}

.section-services__heading {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  color: #ffffff;
  margin-bottom: 2.5rem;
  letter-spacing: -0.02em;
}

.service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
  padding: clamp(1.75rem, 4vw, 2.25rem);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(5, 10, 16, 0.12);
}

.service-card__icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  min-height: 7.5rem;
  width: 100%;
}

.service-card__icon {
  display: block;
  max-width: 100%;
  width: auto;
  height: auto;
  max-height: 7rem;
  object-fit: contain;
}

.service-card__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.35;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.service-card__desc {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.service-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--btn-min-height);
  padding: var(--btn-padding-y) var(--btn-padding-x);
  font-family: var(--font-body);
  font-size: var(--btn-font-size);
  font-weight: var(--btn-font-weight);
  line-height: 1.2;
  border-radius: var(--btn-radius);
  border: 2px solid transparent;
  color: #ffffff;
  background-color: #254a66;
  text-decoration: none;
  margin-top: auto;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.service-card__btn:hover {
  color: #ffffff;
  background-color: #1e3d54;
}

.service-card__btn:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Trust — Pourquoi nous faire confiance
   -------------------------------------------------------------------------- */

.section-trust {
  background-color: #ffffff;
  color: #1a1f26;
}

.section-trust__heading {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  color: var(--bitcrew-primary);
  margin-bottom: 2.5rem;
  letter-spacing: -0.02em;
}

.trust-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
  padding: clamp(1.5rem, 3vw, 2rem);
  background-color: #5a9fd4;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(5, 10, 16, 0.08);
}

.trust-card__icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  min-height: 5.5rem;
  width: 100%;
}

.trust-card__icon {
  display: block;
  max-width: 100%;
  width: auto;
  height: auto;
  max-height: 5.5rem;
  object-fit: contain;
}

.trust-card__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.3;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.trust-card__text {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 0;
}

.trust-section__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--btn-min-height);
  padding: var(--btn-padding-y) clamp(1.25rem, 3vw, 1.75rem);
  font-family: var(--font-body);
  font-size: var(--btn-font-size);
  font-weight: var(--btn-font-weight);
  line-height: 1.2;
  border-radius: var(--btn-radius);
  border: 2px solid transparent;
  color: #ffffff;
  background-color: #254a66;
  text-decoration: none;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.trust-section__cta:hover {
  color: #ffffff;
  background-color: #1e3d54;
}

.trust-section__cta:focus-visible {
  outline: 2px solid var(--bitcrew-primary);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Témoignages
   -------------------------------------------------------------------------- */

.section-testimonials {
  background: linear-gradient(180deg, #eef5f9 0%, #f6fafc 100%);
  color: #1a1f26;
}

.section-testimonials__heading {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  color: var(--bitcrew-primary);
  margin-bottom: 2.5rem;
  letter-spacing: -0.02em;
}

.testimonial-card {
  margin: 0;
  padding: clamp(1.5rem, 3vw, 2rem);
  background-color: #ffffff;
  border-radius: 12px;
  border-left: 4px solid var(--bitcrew-primary);
  box-shadow: 0 8px 28px rgba(5, 10, 16, 0.07);
  display: flex;
  flex-direction: column;
}

.testimonial-card__brand {
  margin-bottom: 1rem;
  min-height: 2rem;
  display: flex;
  align-items: center;
}

.testimonial-card__brand img {
  max-height: 34px;
  width: auto;
  max-width: min(160px, 100%);
  object-fit: contain;
  object-position: left center;
}

.testimonial-card__logo-svg {
  max-height: 32px;
}

.testimonial-card__body {
  flex-grow: 1;
}

.testimonial-card__body .testimonial-card__quote {
  margin-bottom: 0.85rem;
}

.testimonial-card__body .testimonial-card__quote:last-child {
  margin-bottom: 0;
}

.testimonial-card__quote {
  font-family: var(--font-body);
  font-size: 0.9875rem;
  font-weight: 400;
  font-style: normal;
  line-height: 1.65;
  color: #2c3844;
  margin: 0 0 1.25rem;
  flex-grow: 1;
}

.testimonial-card__footer {
  margin-top: auto;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(68, 124, 168, 0.15);
}

.testimonial-card__name {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  font-style: normal;
  color: #1a3a52;
  margin-bottom: 0.25rem;
}

.testimonial-card__role {
  display: block;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.45;
  color: #5a6b78;
}

/* --------------------------------------------------------------------------
   Contact — Restez en contact
   -------------------------------------------------------------------------- */

.section-contact {
  position: relative;
  background-color: #2d5a78;
  background-image: url("../images/90685-scaled.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.section-contact .container {
  z-index: 1;
}

.contact-band {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(5, 10, 16, 0.18);
}

.contact-form-card {
  background-color: #4b7da2;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  color: #ffffff;
}

.contact-form-card__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.5vw, 1.85rem);
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.contact-form-card__lead {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 1.75rem;
  max-width: 36rem;
}

.contact-form__label {
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 0.35rem;
}

.contact-form__required {
  color: #ffb3b3;
  font-weight: 700;
  margin-left: 0.15em;
}

.contact-form__input::placeholder,
.contact-form__textarea::placeholder {
  color: rgba(26, 31, 38, 0.45);
}

.contact-form__input {
  border: none;
  border-radius: 4px;
  padding: 0.55rem 0.75rem;
  font-size: 0.95rem;
  background-color: #ffffff;
  color: #1a1f26;
}

.contact-form__input:focus {
  box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.35);
}

.contact-form__textarea {
  min-height: 8rem;
  resize: vertical;
}

.contact-form__submit {
  --bs-btn-padding-x: 1.75rem;
  --bs-btn-padding-y: 0.65rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--btn-radius);
  color: #ffffff;
  background-color: #0a0a0a;
  border: 2px solid #0a0a0a;
}

.contact-form__submit:hover {
  color: #ffffff;
  background-color: #222222;
  border-color: #222222;
}

.contact-form__submit:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

.contact-info-panel {
  background-color: rgba(168, 214, 245, 0.92);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  color: #0a0a0a;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  text-align: left;
}

.contact-info-item__icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  color: #0a0a0a;
  line-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-info-item__icon svg {
  display: block;
}

.contact-info-item__icon--stroke {
  color: #0a0a0a;
}

.contact-info-item__label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.35rem;
  color: #0a0a0a;
}

.contact-info-item__text {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
  color: #1a1f26;
}

.contact-info-item__text a {
  color: #0a0a0a;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contact-info-item__text a:hover {
  color: #000000;
}

@media (max-width: 991.98px) {
  .contact-band {
    border-radius: 12px;
  }
}

/* Home: spacer between contact block and footer — was dark (body bg in footer margin) */
.page-home .site-footer {
  margin-top: 0;
  padding-top: clamp(2.5rem, 5vw, 4.5rem);
  background-color: #ffffff;
}
