/* ==========================================================================
   BatiSpace — Landing Page Officielle
   Charte Graphique : Bleu Marine (#07324D / #17354A) & Orange BTP (#F47115)
   ========================================================================== */

:root {
  --bs-navy-950: #052338;
  --bs-navy-900: #072d46;
  --bs-navy-800: #0a3958;
  --bs-navy-700: #12486d;
  --bs-text-dark: #071c34;
  --bs-text-body: #253648;
  --bs-text-muted: #5a6b7c;
  --bs-orange-600: #e55c05;
  --bs-orange-500: #f46e12;
  --bs-orange-400: #ff8528;
  --bs-bg-page: #f2f6f9;
  --bs-bg-white: #ffffff;
  --bs-border-light: #dce5ee;
  --bs-radius-sm: 8px;
  --bs-radius-md: 14px;
  --bs-radius-lg: 18px;
  --bs-radius-pill: 999px;
  --bs-shadow-card: 0 8px 24px rgba(7, 35, 58, 0.07), 0 2px 6px rgba(7, 35, 58, 0.04);
  --bs-shadow-card-hover: 0 14px 32px rgba(7, 35, 58, 0.12), 0 4px 10px rgba(244, 110, 18, 0.08);
  --bs-shadow-btn: 0 6px 18px rgba(244, 110, 18, 0.35);
  --bs-container: 1200px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--bs-text-body);
  background-color: var(--bs-bg-page);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

button,
input {
  font-family: inherit;
}

.bs-container {
  width: 100%;
  max-width: var(--bs-container);
  margin: 0 auto;
  padding: 0 28px;
}

/* ==========================================================================
   1. HEADER & NAVIGATION
   ========================================================================== */

.bs-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  padding: 16px 0;
  transition: background-color 0.25s ease, box-shadow 0.25s ease, padding 0.25s ease;
}

.bs-header.is-scrolled {
  position: fixed;
  background: rgba(6, 40, 63, 0.96);
  backdrop-filter: blur(10px);
  padding: 12px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.22);
}

.bs-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Logo BatiSpace */
.bs-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.bs-logo__icon {
  width: 58px;
  height: 40px;
  flex-shrink: 0;
}

.bs-logo__text-group {
  display: flex;
  flex-direction: column;
}

.bs-logo__brand {
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.bs-logo__brand span {
  color: var(--bs-orange-500);
}

.bs-logo__tagline {
  font-size: 0.69rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.01em;
  margin-top: 2px;
}

/* Navigation */
.bs-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.bs-nav__link {
  position: relative;
  font-size: 0.86rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  padding: 6px 2px;
}

.bs-nav__link:hover,
.bs-nav__link.is-active {
  color: #ffffff;
}

.bs-nav__link.is-active::after,
.bs-nav__link:hover::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2.5px;
  background: var(--bs-orange-500);
  border-radius: 2px;
}

/* Bouton Header "Je suis un professionnel" */
.bs-btn-header {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(180deg, var(--bs-orange-400) 0%, var(--bs-orange-600) 100%);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: var(--bs-radius-pill);
  box-shadow: 0 4px 14px rgba(244, 110, 18, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
  white-space: nowrap;
  cursor: pointer;
}

.bs-btn-header:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(244, 110, 18, 0.55);
}

.bs-btn-header svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.bs-mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  border-radius: 8px;
  padding: 7px;
  cursor: pointer;
}

/* ==========================================================================
   2. HERO SECTION & SLIDER FADE + KEN BURNS ZOOM (5 SLIDES)
   ========================================================================== */

.bs-hero {
  position: relative;
  background-color: var(--bs-navy-900);
  color: #ffffff;
  overflow: hidden;
  min-height: clamp(520px, 42vw, 610px);
}

.bs-slider {
  position: relative;
  width: 100%;
  min-height: clamp(520px, 42vw, 610px);
}

.bs-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 100px 0 82px;
  display: flex;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  overflow: hidden;
  transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.9s ease;
  z-index: 1;
}

.bs-slide.is-active {
  position: relative;
  min-height: clamp(520px, 42vw, 610px);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 2;
}

/* Calque d'arrière-plan dédié pour le cadrage optimal + Animation Ken Burns Zoom */
.bs-slide__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-repeat: no-repeat;
  z-index: 1;
  transform: scale(1) translateZ(0);
  transform-origin: 72% 55%;
  will-change: transform;
  transition: transform 1.2s ease-out;
}

.bs-slide.is-active .bs-slide__bg {
  animation: bsKenBurnsZoom 6.2s ease-out forwards;
}

@keyframes bsKenBurnsZoom {
  0% {
    transform: scale(1) translateZ(0);
  }
  100% {
    transform: scale(1.065) translateZ(0);
  }
}

/* Animation d'apparition douce du texte et des boutons à chaque slide (pilotée par GSAP avec fallback CSS) */
.bs-slide .bs-hero__content {
  opacity: 1;
}

.bs-slide-rubrique-title span {
  display: inline-block;
  color: var(--bs-orange-500);
}

.bs-section-title-bar {
  transform-origin: center center;
}

/* Fonds et points focaux (cadrage) des 5 slides (LTR) */
.bs-slide--1 .bs-slide__bg {
  background-image: url('../assets/hero-bg.png');
  background-position: right 38%;
}
.bs-slide--2 .bs-slide__bg {
  background-image: url('../assets/slide-2-materiaux.webp');
  background-position: right 64%;
}
.bs-slide--3 .bs-slide__bg {
  background-image: url('../assets/slide-3-fabricants.webp');
  background-position: right 52%;
}
.bs-slide--4 .bs-slide__bg {
  background-image: url('../assets/slide-4-bet.webp');
  background-position: right 58%;
}
.bs-slide--5 .bs-slide__bg {
  background-image: url('../assets/slide-5-realisation.webp');
  background-position: right 50%;
}

/* En-tête des slides métiers (Icône carrée orange + Titre 2 couleurs comme sur les maquettes) */
.bs-slide-rubrique-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.bs-slide-rubrique-icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  background: linear-gradient(180deg, #ff8829 0%, #e55b04 100%);
  box-shadow: 0 8px 22px rgba(244, 110, 18, 0.42), inset 0 1px 1px rgba(255, 255, 255, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #ffffff;
}

.bs-slide-rubrique-icon svg {
  width: 40px;
  height: 40px;
}

.bs-slide-rubrique-title {
  font-size: 3.1rem;
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.025em;
  color: #ffffff;
}

.bs-slide-rubrique-title span {
  color: var(--bs-orange-500);
}

/* Contrôles du Slider : Flèches Gauche/Droite, Points Indicateurs & Compteur */
.bs-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(6, 38, 60, 0.58);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.bs-slider-arrow:hover {
  background: var(--bs-orange-500);
  border-color: var(--bs-orange-500);
  transform: translateY(-50%) scale(1.06);
}

.bs-slider-arrow--prev {
  left: 16px;
}

.bs-slider-arrow--next {
  right: 16px;
}

.bs-slider-arrow svg {
  width: 20px;
  height: 20px;
}

/* Barre inférieure d'indicateurs (Dots + Compteur 1/5) */
.bs-slider-nav {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(5, 31, 49, 0.52);
  backdrop-filter: blur(6px);
  padding: 6px 14px;
  border-radius: var(--bs-radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.bs-slider-dots {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.bs-slider-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.82);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.bs-slider-dot:hover {
  background: #ffffff;
  transform: scale(1.15);
}

.bs-slider-dot.is-active {
  width: 13px;
  height: 13px;
  background: var(--bs-orange-500);
  box-shadow: 0 0 0 3px rgba(244, 110, 18, 0.32);
}

.bs-slider-counter {
  font-size: 0.75rem;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(180deg, var(--bs-orange-400) 0%, var(--bs-orange-600) 100%);
  padding: 2px 10px;
  border-radius: var(--bs-radius-pill);
  letter-spacing: 0.03em;
  line-height: 1.35;
}

/* Forme courbe/chevron en bas du Hero fidèle à la maquette */
.bs-hero__bottom-curve {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 36px;
  z-index: 3;
  pointer-events: none;
}

.bs-hero__bottom-curve svg {
  width: 100%;
  height: 100%;
  display: block;
}

.bs-hero__content {
  position: relative;
  z-index: 4;
  max-width: 610px;
}

.bs-hero__title {
  font-size: 3.05rem;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: #ffffff;
  margin-bottom: 16px;
}

.bs-hero__title-highlight {
  position: relative;
  display: inline-block;
  color: var(--bs-orange-500);
}

.bs-hero__title-underline {
  position: absolute;
  left: 0;
  bottom: -9px;
  width: 100%;
  height: 11px;
}

.bs-hero__subtitle {
  font-size: 1.04rem;
  font-weight: 400;
  line-height: 1.48;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 22px;
  max-width: 540px;
}

/* 3 Badges icônes dans le Hero */
.bs-hero__badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: 26px;
}

.bs-hero__badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-right: 18px;
  margin-right: 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.24);
}

.bs-hero__badge:last-child {
  border-right: none;
  padding-right: 0;
  margin-right: 0;
}

.bs-hero__badge-icon {
  width: 28px;
  height: 28px;
  color: #ffffff;
  flex-shrink: 0;
}

.bs-hero__badge-text {
  font-size: 0.78rem;
  line-height: 1.28;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
}

.bs-hero__badge-text small {
  display: block;
  font-size: 0.71rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.8);
}

/* Boutons Hero */
.bs-hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.bs-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(180deg, var(--bs-orange-400) 0%, var(--bs-orange-600) 100%);
  color: #ffffff;
  font-size: 0.94rem;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 10px;
  border: none;
  box-shadow: var(--bs-shadow-btn);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bs-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(244, 110, 18, 0.48);
}

.bs-btn-primary svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.bs-btn-outline-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(6, 37, 58, 0.55);
  color: #ffffff;
  font-size: 0.94rem;
  font-weight: 600;
  padding: 11px 22px;
  border-radius: 10px;
  border: 1.5px solid rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.bs-btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
}

.bs-btn-outline-light svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
}

/* ==========================================================================
   3. SECTION ÉCOSYSTÈME BTP (4 RUBRIQUES)
   ========================================================================== */

.bs-ecosystem {
  position: relative;
  padding: 12px 0 34px;
  background: linear-gradient(180deg, #f3f7fa 0%, #e9eff5 100%);
}

.bs-section-header {
  text-align: center;
  margin-bottom: 36px;
}

.bs-section-title {
  font-size: 1.68rem;
  font-weight: 800;
  color: var(--bs-text-dark);
  letter-spacing: -0.02em;
}

.bs-section-title-bar {
  width: 68px;
  height: 5px;
  background: var(--bs-orange-500);
  border-radius: var(--bs-radius-pill);
  margin: 10px auto 0;
}

.bs-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.bs-card {
  position: relative;
  background: var(--bs-bg-white);
  border-radius: var(--bs-radius-md);
  padding: 66px 18px 20px 18px;
  box-shadow: var(--bs-shadow-card);
  border: 1px solid rgba(220, 229, 238, 0.85);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 204px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
}

.bs-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--bs-shadow-card-hover);
  border-color: rgba(244, 110, 18, 0.35);
}

.bs-card__illustration {
  position: absolute;
  top: -26px;
  right: 10px;
  height: 112px;
  width: auto;
  max-width: 158px;
  object-fit: contain;
  pointer-events: none;
  z-index: 2;
  filter: drop-shadow(0 6px 12px rgba(7, 35, 58, 0.1));
}

.bs-card--materiaux .bs-card__illustration {
  height: 112px;
  top: -24px;
  right: 10px;
}

.bs-card--fabricants .bs-card__illustration {
  height: 114px;
  top: -26px;
  right: 8px;
}

.bs-card--etudes .bs-card__illustration {
  height: 116px;
  top: -26px;
  right: 8px;
}

.bs-card--realisation .bs-card__illustration {
  height: 118px;
  top: -28px;
  right: 8px;
}

.bs-card__body {
  position: relative;
  z-index: 3;
}

.bs-card__title {
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--bs-text-dark);
  margin-bottom: 8px;
  max-width: 170px;
}

.bs-card__desc {
  font-size: 0.82rem;
  line-height: 1.42;
  color: var(--bs-text-body);
  padding-right: 32px;
}

.bs-card__arrow {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--bs-orange-500);
  color: var(--bs-orange-500);
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.bs-card:hover .bs-card__arrow {
  background: var(--bs-orange-500);
  color: #ffffff;
  transform: translateX(2px);
}

.bs-card__arrow svg {
  width: 14px;
  height: 14px;
}

/* ==========================================================================
   4. SECTION PROFESSIONNELS DU BÂTIMENT
   ========================================================================== */

.bs-pro-section {
  padding: 28px 0 30px;
  background: linear-gradient(180deg, #f7f9fb 0%, #f1f5f9 100%);
  border-top: 1px solid #e1e8f0;
  border-bottom: 1px solid #e1e8f0;
}

.bs-pro-grid {
  display: grid;
  grid-template-columns: 42% 58%;
  align-items: center;
  gap: 28px;
}

.bs-pro-mockup {
  display: flex;
  justify-content: center;
  align-items: center;
}

.bs-pro-mockup img {
  width: 100%;
  max-width: 460px;
  border-radius: 8px;
}

.bs-pro-content {
  padding-right: 10px;
}

.bs-heading-accent {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.bs-heading-accent__bar {
  width: 6px;
  height: 32px;
  background: var(--bs-orange-500);
  border-radius: 4px;
  flex-shrink: 0;
}

.bs-heading-accent__title {
  font-size: 1.56rem;
  font-weight: 800;
  color: var(--bs-text-dark);
  letter-spacing: -0.02em;
}

.bs-pro-subtitle {
  font-size: 0.94rem;
  color: var(--bs-text-body);
  margin-bottom: 18px;
  padding-left: 18px;
  max-width: 520px;
}

.bs-pro-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}

.bs-pro-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.bs-pro-feature__icon {
  width: 34px;
  height: 34px;
  color: var(--bs-orange-500);
  flex-shrink: 0;
  margin-top: 2px;
}

.bs-pro-feature__text {
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--bs-text-dark);
  font-weight: 500;
}

.bs-btn-pro-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(180deg, var(--bs-orange-400) 0%, var(--bs-orange-600) 100%);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 12px 26px;
  border-radius: 10px;
  border: none;
  box-shadow: var(--bs-shadow-btn);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bs-btn-pro-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(244, 110, 18, 0.48);
}

.bs-btn-pro-cta svg {
  width: 19px;
  height: 19px;
}

/* ==========================================================================
   5. SECTION BASSE : AVANTAGES + FORMULAIRE D'INSCRIPTION
   ========================================================================== */

.bs-bottom-section {
  padding: 26px 0 34px;
  background: #f5f8fa;
}

.bs-bottom-grid {
  display: grid;
  grid-template-columns: 49% 51%;
  align-items: center;
  gap: 24px;
}

/* Colonne Gauche : Les avantages BatiSpace */
.bs-advantages__header {
  margin-bottom: 22px;
}

.bs-advantages__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.bs-advantage-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 6px 10px;
  border-right: 1px solid #dce5ee;
}

.bs-advantage-item:last-child {
  border-right: none;
}

.bs-advantage-item__icon {
  width: 38px;
  height: 38px;
  color: var(--bs-orange-500);
  margin-bottom: 12px;
}

.bs-advantage-item__text {
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--bs-text-body);
}

.bs-advantage-item__text strong {
  display: block;
  color: var(--bs-text-dark);
  font-weight: 800;
  margin-bottom: 2px;
}

/* Colonne Droite : Carte Formulaire "Soyez parmi les premiers !" */
.bs-lead-card {
  position: relative;
  background: linear-gradient(125deg, #0b3d5e 0%, #062b44 70%);
  border-radius: var(--bs-radius-md);
  padding: 22px 24px;
  color: #ffffff;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(5, 35, 56, 0.2);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.bs-lead-card.is-highlighted {
  box-shadow: 0 0 0 3px var(--bs-orange-500), 0 18px 40px rgba(244, 110, 18, 0.3);
}

.bs-lead-card__crane {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 165px;
  object-fit: cover;
  object-position: right center;
  pointer-events: none;
  z-index: 1;
}

.bs-lead-card__content {
  position: relative;
  z-index: 2;
  max-width: calc(100% - 135px);
}

.bs-lead-card__title {
  font-size: 1.42rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 4px;
}

.bs-lead-card__subtitle {
  font-size: 0.78rem;
  line-height: 1.38;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 12px;
}

/* Badge dynamique de qualification (ex: Professionnel, Rubrique...) */
.bs-source-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(244, 110, 18, 0.22);
  border: 1px solid rgba(244, 110, 18, 0.65);
  color: #ffd7ba;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--bs-radius-pill);
  margin-bottom: 10px;
}

.bs-source-badge[hidden] {
  display: none !important;
}

.bs-source-badge__reset {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 0.85rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
  opacity: 0.8;
}

.bs-source-badge__reset:hover {
  opacity: 1;
}

/* Formulaire */
.bs-lead-form {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.bs-form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.bs-input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.bs-input-group__icon {
  position: absolute;
  left: 12px;
  width: 15px;
  height: 15px;
  color: #7c8d9e;
  pointer-events: none;
}

.bs-input {
  width: 100%;
  background: #ffffff;
  border: 1.5px solid transparent;
  border-radius: 8px;
  padding: 9px 12px 9px 35px;
  font-size: 0.82rem;
  color: var(--bs-text-dark);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.bs-input::placeholder {
  color: #7c8d9e;
}

.bs-input:focus {
  border-color: var(--bs-orange-500);
  box-shadow: 0 0 0 3px rgba(244, 110, 18, 0.22);
}

/* Honeypot anti-spam caché */
.bs-hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.bs-btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: linear-gradient(180deg, var(--bs-orange-400) 0%, var(--bs-orange-600) 100%);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 8px;
  border: none;
  box-shadow: 0 4px 14px rgba(244, 110, 18, 0.4);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  margin-top: 2px;
}

.bs-btn-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(244, 110, 18, 0.55);
}

.bs-btn-submit:disabled {
  opacity: 0.75;
  cursor: wait;
}

.bs-btn-submit svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Message de retour formulaire */
.bs-form-feedback {
  font-size: 0.78rem;
  line-height: 1.35;
  padding: 8px 12px;
  border-radius: 8px;
  margin-top: 4px;
  font-weight: 600;
}

.bs-form-feedback[hidden] {
  display: none !important;
}

.bs-form-feedback.is-success {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(52, 211, 153, 0.6);
  color: #d1fae5;
}

.bs-form-feedback.is-error {
  background: rgba(239, 68, 68, 0.22);
  border: 1px solid rgba(248, 113, 113, 0.65);
  color: #fee2e2;
}

/* Case à cocher & Lien Loi 18-07 sous le formulaire */
.bs-consent-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.74rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.88);
  margin: 2px 0;
}

.bs-consent-checkbox {
  width: 15px;
  height: 15px;
  margin-top: 2px;
  accent-color: var(--bs-orange-500);
  cursor: pointer;
  flex-shrink: 0;
}

.bs-consent-link {
  color: #ffb074;
  text-decoration: underline;
  font-weight: 700;
  background: none;
  border: none;
  padding: 0;
  font-size: inherit;
  cursor: pointer;
}

.bs-consent-link:hover {
  color: #ffffff;
}

/* ==========================================================================
   MODALE / POPUP LOI N° 18-07 (ALGÉRIE - PROTECTION DES DONNÉES)
   ========================================================================== */

.bs-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 22, 36, 0.78);
  backdrop-filter: blur(5px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.bs-modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.bs-modal {
  background: #ffffff;
  color: var(--bs-text-body);
  width: 100%;
  max-width: 580px;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(4, 22, 36, 0.45);
  overflow: hidden;
  transform: translateY(14px) scale(0.98);
  transition: transform 0.22s ease;
  border: 1px solid var(--bs-border-light);
}

.bs-modal-overlay.is-open .bs-modal {
  transform: translateY(0) scale(1);
}

.bs-modal__header {
  background: linear-gradient(135deg, var(--bs-navy-900) 0%, var(--bs-navy-800) 100%);
  color: #ffffff;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.bs-modal__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(244, 110, 18, 0.22);
  border: 1px solid rgba(244, 110, 18, 0.6);
  color: #ffcaa1;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.bs-modal__title {
  font-size: 1.12rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
}

.bs-modal__close {
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #ffffff;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s ease;
}

.bs-modal__close:hover {
  background: rgba(255, 255, 255, 0.24);
}

.bs-modal__body {
  padding: 20px 24px;
  max-height: 62vh;
  overflow-y: auto;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--bs-text-body);
}

.bs-modal__body p {
  margin-bottom: 12px;
}

.bs-modal__list {
  margin: 10px 0 14px;
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bs-modal__list li {
  background: #f5f8fb;
  border-left: 3px solid var(--bs-orange-500);
  padding: 8px 12px;
  border-radius: 0 8px 8px 0;
  font-size: 0.81rem;
}

.bs-modal__list li strong {
  color: var(--bs-text-dark);
}

.bs-modal__footer {
  padding: 14px 24px 18px;
  background: #f8fafc;
  border-top: 1px solid var(--bs-border-light);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.bs-btn-modal-cancel {
  background: #ffffff;
  color: var(--bs-text-body);
  border: 1px solid #cbd5e1;
  padding: 9px 16px;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
}

.bs-btn-modal-cancel:hover {
  background: #f1f5f9;
}

.bs-btn-modal-accept {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(180deg, var(--bs-orange-400) 0%, var(--bs-orange-600) 100%);
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(244, 110, 18, 0.35);
}

.bs-btn-modal-accept:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(244, 110, 18, 0.5);
}

/* ==========================================================================
   SÉLECTEUR DE LANGUE (FR / العربية)
   ========================================================================== */

.bs-lang-switch {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--bs-radius-pill);
  padding: 3px;
  gap: 2px;
}

.bs-lang-switch__item {
  font-size: 0.76rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  padding: 5px 11px;
  border-radius: var(--bs-radius-pill);
  line-height: 1.1;
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.bs-lang-switch__item:hover {
  color: #ffffff;
}

.bs-lang-switch__item.is-active {
  background: var(--bs-orange-500);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(244, 110, 18, 0.4);
}

/* ==========================================================================
   VERSION ARABE (RTL - RIGHT TO LEFT)
   ========================================================================== */

html[dir="rtl"] body {
  font-family: 'Cairo', 'Readex Pro', 'Plus Jakarta Sans', sans-serif;
  text-align: right;
}

html[dir="rtl"] .bs-slide__bg {
  transform-origin: 28% 55%;
}

html[dir="rtl"] .bs-slide--1 .bs-slide__bg {
  background-image: url('../assets/hero-bg-rtl.png');
  background-position: left 38%;
}
html[dir="rtl"] .bs-slide--2 .bs-slide__bg {
  background-image: url('../assets/slide-2-materiaux-rtl.webp');
  background-position: left 64%;
}
html[dir="rtl"] .bs-slide--3 .bs-slide__bg {
  background-image: url('../assets/slide-3-fabricants-rtl.webp');
  background-position: left 52%;
}
html[dir="rtl"] .bs-slide--4 .bs-slide__bg {
  background-image: url('../assets/slide-4-bet-rtl.webp');
  background-position: left 58%;
}
html[dir="rtl"] .bs-slide--5 .bs-slide__bg {
  background-image: url('../assets/slide-5-realisation-rtl.webp');
  background-position: left 50%;
}

html[dir="rtl"] .bs-slide-rubrique-title {
  line-height: 1.22;
  letter-spacing: 0;
}

html[dir="rtl"] .bs-slide .bs-btn-primary svg:last-child {
  transform: scaleX(-1);
}

html[dir="rtl"] .bs-hero__title {
  line-height: 1.25;
  letter-spacing: 0;
}

html[dir="rtl"] .bs-hero__badge {
  padding-right: 0;
  margin-right: 0;
  border-right: none;
  padding-left: 18px;
  margin-left: 18px;
  border-left: 1px solid rgba(255, 255, 255, 0.24);
}

html[dir="rtl"] .bs-hero__badge:last-child {
  padding-left: 0;
  margin-left: 0;
  border-left: none;
}

/* Cartes 4 rubriques en RTL : illustration en haut à gauche, flèche en bas à gauche */
html[dir="rtl"] .bs-card__illustration {
  right: auto;
  left: 10px;
}

html[dir="rtl"] .bs-card--materiaux .bs-card__illustration {
  right: auto;
  left: 12px;
}

html[dir="rtl"] .bs-card--fabricants .bs-card__illustration {
  right: auto;
  left: 6px;
}

html[dir="rtl"] .bs-card--etudes .bs-card__illustration {
  right: auto;
  left: 8px;
}

html[dir="rtl"] .bs-card--realisation .bs-card__illustration {
  right: auto;
  left: 4px;
}

html[dir="rtl"] .bs-card__desc {
  padding-right: 0;
  padding-left: 32px;
}

html[dir="rtl"] .bs-card__arrow {
  right: auto;
  left: 14px;
}

html[dir="rtl"] .bs-card__arrow svg,
html[dir="rtl"] .bs-btn-pro-cta svg:last-child {
  transform: scaleX(-1);
}

html[dir="rtl"] .bs-card:hover .bs-card__arrow {
  transform: translateX(-2px);
}

html[dir="rtl"] .bs-pro-content {
  padding-right: 0;
  padding-left: 10px;
}

html[dir="rtl"] .bs-pro-subtitle {
  padding-left: 0;
  padding-right: 18px;
}

html[dir="rtl"] .bs-advantage-item {
  border-right: none;
  border-left: 1px solid #dce5ee;
}

html[dir="rtl"] .bs-advantage-item:last-child {
  border-left: none;
}

/* Carte formulaire en RTL : grue à gauche, icônes des champs à droite */
html[dir="rtl"] .bs-lead-card {
  background: linear-gradient(235deg, #0b3d5e 0%, #062b44 70%);
}

html[dir="rtl"] .bs-lead-card__crane {
  right: auto;
  left: 0;
  object-position: left center;
}

html[dir="rtl"] .bs-lead-card__content {
  max-width: calc(100% - 135px);
}

html[dir="rtl"] .bs-input-group__icon {
  left: auto;
  right: 12px;
}

html[dir="rtl"] .bs-input {
  padding: 9px 35px 9px 12px;
}

html[dir="rtl"] .bs-modal__list li {
  border-left: none;
  border-right: 3px solid var(--bs-orange-500);
  border-radius: 8px 0 0 8px;
}

@media (max-width: 860px) {
  html[dir="rtl"] .bs-slide__bg {
    background-position: 28% 55% !important;
  }

  html[dir="rtl"] .bs-slide::before {
    background: linear-gradient(270deg, rgba(6, 43, 68, 0.92) 0%, rgba(6, 43, 68, 0.72) 100%);
  }

  html[dir="rtl"] .bs-advantage-item {
    border-left: none;
  }
}

@media (max-width: 560px) {
  html[dir="rtl"] .bs-lead-card__content {
    max-width: 100%;
  }

  html[dir="rtl"] .bs-hero__badge {
    border-left: none;
    padding-left: 0;
    margin-left: 0;
  }
}

/* ==========================================================================
   6. FOOTER
   ========================================================================== */

.bs-footer {
  background: var(--bs-navy-900);
  color: #ffffff;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.bs-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.bs-footer__left {
  display: flex;
  align-items: center;
  gap: 28px;
}

.bs-footer__divider {
  width: 1px;
  height: 36px;
  background: rgba(255, 255, 255, 0.22);
}

.bs-footer__Pitch {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 320px;
  line-height: 1.35;
}

.bs-footer__social {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bs-footer__social-label {
  font-size: 0.84rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  margin-right: 4px;
}

.bs-social-btn {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  background: #ffffff;
  color: var(--bs-navy-900);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.bs-social-btn:hover {
  transform: translateY(-2px);
  background: var(--bs-orange-500);
  color: #ffffff;
}

.bs-social-btn svg {
  width: 16px;
  height: 16px;
}

/* ==========================================================================
   7. RESPONSIVE DESIGN (TABLETTE & MOBILE)
   ========================================================================== */

@media (max-width: 1080px) {
  .bs-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 20px;
  }

  .bs-pro-grid,
  .bs-bottom-grid {
    grid-template-columns: 1fr;
  }

  .bs-pro-mockup {
    order: -1;
  }
}

@media (max-width: 860px) {
  .bs-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 16px;
    right: 16px;
    background: var(--bs-navy-950);
    flex-direction: column;
    padding: 18px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
    gap: 12px;
  }

  .bs-nav.is-open {
    display: flex;
  }

  .bs-mobile-toggle {
    display: inline-flex;
  }

  .bs-hero {
    min-height: 480px;
  }

  .bs-slide,
  .bs-slide.is-active {
    padding: 92px 0 76px;
    min-height: 480px;
  }

  .bs-slide__bg {
    background-position: 72% 55% !important;
  }

  .bs-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(6, 43, 68, 0.92) 0%, rgba(6, 43, 68, 0.72) 100%);
    z-index: 2;
  }

  .bs-hero__title,
  .bs-slide-rubrique-title {
    font-size: 2.2rem;
  }

  .bs-slide-rubrique-icon {
    width: 56px;
    height: 56px;
  }

  .bs-slide-rubrique-icon svg {
    width: 30px;
    height: 30px;
  }

  .bs-slider-arrow {
    width: 34px;
    height: 34px;
  }

  .bs-slider-arrow--prev {
    left: 6px;
  }

  .bs-slider-arrow--next {
    right: 6px;
  }

  .bs-pro-features {
    grid-template-columns: 1fr;
  }

  .bs-advantages__list {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .bs-advantage-item {
    border-right: none;
    background: #ffffff;
    border-radius: 10px;
    padding: 14px;
    box-shadow: var(--bs-shadow-card);
  }

  .bs-footer__inner,
  .bs-footer__left {
    flex-direction: column;
    text-align: center;
    gap: 14px;
  }

  .bs-footer__divider {
    display: none;
  }
}

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

  .bs-btn-header span {
    display: none;
  }

  .bs-hero__badges {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .bs-hero__badge {
    border-right: none;
    padding-right: 0;
    margin-right: 0;
  }

  .bs-lead-card__crane {
    opacity: 0.22;
  }

  .bs-lead-card__content {
    max-width: 100%;
  }

  .bs-form-row-2 {
    grid-template-columns: 1fr;
  }
}
