/* ═══ BUREAU D'ÉTUDES — PAGE-SPECIFIC STYLES ═══ */
/* Hero, cards, sections, grids → use shared offre-* classes from offre.css */

/* ── BIM DASHBOARD PANELS ────────────────────── */

.bim-panel {
  position: absolute;
  z-index: 10;
  padding: 14px 16px;
  border: 1px solid rgba(184, 150, 90, 0.4);
  border-radius: 8px;
  background: rgba(10, 10, 12, 0.92);
  backdrop-filter: blur(12px);
  font-family: "SF Mono", "Fira Code", monospace;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.85);
  pointer-events: none;
  opacity: 0;
  animation: bim-fade-in 0.6s ease-out forwards;
  max-width: 190px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

@keyframes bim-fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.bim-panel--prix {
  top: 2%;
  left: 0%;
  animation-delay: 1.2s;
}

.bim-panel--carbone {
  top: 5%;
  right: 0%;
  animation-delay: 1.6s;
}

.bim-panel--cctp {
  bottom: 2%;
  left: 0%;
  animation-delay: 2s;
}

.bim-panel__header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.2px;
  color: var(--accent); /* WCAG AA 6.24:1 sur fond sombre */
  margin-bottom: 8px;
  text-transform: uppercase;
}

.bim-panel__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brume);
  box-shadow: 0 0 6px rgba(184, 150, 90, 0.6);
  animation: bim-dot-pulse 2s ease-in-out infinite;
}

@keyframes bim-dot-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.bim-panel__value {
  font-size: 18px;
  font-weight: 700;
  color: var(--blanc);
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

/* ── Bar chart (prix) ── */

.bim-panel__bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bim-panel__bar-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.bim-panel__bar-label {
  width: 28px;
  font-size: 8px;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.5);
  flex-shrink: 0;
}

.bim-panel__bar {
  height: 5px;
  border-radius: 2px;
  background: rgba(184, 150, 90, 0.55);
  flex-shrink: 0;
}

.bim-panel__bar[data-width="82"] { width: 82px; }
.bim-panel__bar[data-width="45"] { width: 45px; }
.bim-panel__bar[data-width="30"] { width: 30px; }

.bim-panel__bar-val {
  font-size: 8px;
  color: var(--accent); /* WCAG AA 6.24:1 sur fond sombre */
}

/* ── Gauge (carbone) ── */

.bim-panel__gauge {
  margin-bottom: 6px;
}

.bim-panel__gauge-track {
  height: 5px;
  border-radius: 2px;
  background: rgba(184, 150, 90, 0.15);
  overflow: hidden;
  margin-bottom: 4px;
}

.bim-panel__gauge-fill {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(184, 150, 90, 0.8), rgba(184, 150, 90, 0.4));
}

.bim-panel__gauge-fill[data-width="62"] { width: 62%; }

.bim-panel__gauge-labels {
  display: flex;
  justify-content: space-between;
  font-size: 7px;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.5px;
}

.bim-panel__mini-rows {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.bim-panel__mini-row {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.65);
}

/* ── Checklist (CCTP) ── */

.bim-panel__checklist {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 8px;
}

.bim-panel__check {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.3);
  padding-left: 16px;
  position: relative;
}

.bim-panel__check::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 9px;
  height: 9px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 2px;
}

.bim-panel__check--done {
  color: rgba(255, 255, 255, 0.75);
}

.bim-panel__check--done::before {
  background: rgba(184, 150, 90, 0.35);
  border-color: rgba(184, 150, 90, 0.6);
}

.bim-panel__check--done::after {
  content: "";
  position: absolute;
  left: 2px;
  top: 3px;
  width: 4px;
  height: 2px;
  border-left: 1.5px solid var(--brume);
  border-bottom: 1.5px solid var(--brume);
  transform: rotate(-45deg);
}

.bim-panel__check--active {
  color: var(--brume);
}

.bim-panel__check--active::before {
  border-color: var(--brume);
  box-shadow: 0 0 4px rgba(184, 150, 90, 0.3);
}

.bim-panel__progress-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.bim-panel__progress-track {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: rgba(184, 150, 90, 0.15);
  overflow: hidden;
}

.bim-panel__progress-fill {
  height: 100%;
  border-radius: 2px;
  background: var(--brume);
}

.bim-panel__progress-fill[data-width="60"] { width: 60%; }

.bim-panel__progress-pct {
  font-size: 10px;
  font-weight: 700;
  color: var(--accent);
}

/* ── Connectors (lignes vers le bâtiment) ── */

.bim-panel__connector {
  position: absolute;
  background: rgba(184, 150, 90, 0.15);
}

.bim-panel__connector--left {
  top: 50%;
  right: -30px;
  width: 30px;
  height: 1px;
}

.bim-panel__connector--right {
  top: 50%;
  left: -30px;
  width: 30px;
  height: 1px;
}

.bim-panel__connector--bottom {
  top: -20px;
  left: 50%;
  width: 1px;
  height: 20px;
}

/* ── Responsive: masquer sur mobile ── */

@media (max-width: 767px) {
  .offre-hero--split {
    padding: 80px 16px 48px;
    overflow-x: hidden;
  }

  .offre-hero__title {
    max-width: none;
    font-size: clamp(1.5rem, 8vw, 2rem);
    word-break: break-word;
  }

  .offre-hero__sub {
    max-width: none;
    font-size: 14px;
  }

  .offre-hero__cta-row {
    max-width: 100%;
  }

  .offre-hero__model {
    position: relative;
    height: 320px;
    width: 100%;
  }

  .offre-hero__model model-viewer,
  .offre-hero__viewer {
    height: 100%;
  }

  .bim-panel {
    opacity: 1;
    animation: none;
    pointer-events: auto;
    transform: scale(0.55);
    transform-origin: top left;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
  }

  .bim-panel--prix {
    bottom: 5px;
    left: 0;
    right: auto;
    top: auto;
    transform-origin: bottom left;
  }

  .bim-panel--carbone {
    top: 5px;
    right: 0;
    left: auto;
    transform-origin: top right;
  }

  .bim-panel--cctp {
    bottom: 5px;
    right: 0;
    left: auto;
    top: auto;
    transform-origin: bottom right;
  }

  .bim-panel__connector {
    display: none;
  }

  .offre-hero__grid-bg {
    mask-image: radial-gradient(ellipse 120% 80% at 50% 40%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 120% 80% at 50% 40%, black 20%, transparent 70%);
  }
}

/* ── MARQUEE ──────────────────────────────────── */

.be-marquee {
  background: var(--noir-bg);
  border-top: 1px solid rgba(184, 150, 90, 0.1);
  border-bottom: 1px solid rgba(184, 150, 90, 0.1);
  padding: 20px 0;
  overflow: hidden;
}

.be-marquee__track {
  display: flex;
  gap: 40px;
  width: max-content;
  animation: be-marquee-scroll 30s linear infinite;
}

@keyframes be-marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.be-marquee__item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.be-marquee__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brume);
  opacity: 0.5;
}

/* ── PROBLEMS ─────────────────────────────────── */

.be-problems {
  background: var(--noir-bg);
  padding: 80px 20px;
}

.be-problems__content {
  max-width: 960px;
  margin: 0 auto;
}

.be-problems__header {
  text-align: center;
  margin-bottom: 48px;
}

.be-problems__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -1px;
  line-height: 1.2;
  color: var(--text-dark);
  margin-top: 16px;
}

.be-problems__title em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: var(--accent-text);
}

.be-problems__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 48px;
}

.be-problems__card {
  padding: 24px;
  border: 1px solid rgba(184, 150, 90, 0.1);
  border-radius: 12px;
  background: rgba(184, 150, 90, 0.03);
  transition: border-color 0.3s ease, background 0.3s ease;
}

.be-problems__card:hover {
  border-color: rgba(184, 150, 90, 0.25);
  background: rgba(184, 150, 90, 0.06);
}

.be-problems__icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(184, 150, 90, 0.08);
  color: var(--brume);
  margin-bottom: 16px;
}

.be-problems__card-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.be-problems__card-desc {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.be-problems__bottom {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.be-problems__insight {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  color: var(--brume);
  margin-bottom: 16px;
  line-height: 1.4;
}

.be-problems__solution {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.be-problems__solution em {
  color: var(--text-dark);
  font-style: italic;
}

.be-problems__cta-text {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.be-problems__cta-text strong {
  color: var(--brume);
  font-weight: 600;
}

@media (min-width: 768px) {
  .be-problems__grid {
    grid-template-columns: 1fr 1fr;
  }

  .be-problems__title {
    font-size: 36px;
  }

  .be-problems {
    padding: 100px 40px;
  }
}

@media (min-width: 1024px) {
  .be-problems__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .be-problems__title {
    font-size: 40px;
  }

  .be-problems {
    padding: 120px 80px;
  }
}

/* ── STATS ────────────────────────────────────── */

.be-stats {
  background: var(--noir-bg);
  padding: 64px 20px;
}

.be-stats__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}

.be-stats__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  padding: 24px 16px;
  border-radius: 16px;
  background: rgba(184, 150, 90, 0.03);
  border: 1px solid rgba(184, 150, 90, 0.08);
  transition: border-color 0.3s, background 0.3s;
}

.be-stats__item:hover {
  border-color: rgba(184, 150, 90, 0.25);
  background: rgba(184, 150, 90, 0.06);
}

.be-stats__number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 36px;
  letter-spacing: -2px;
  background: linear-gradient(135deg, var(--brume) 0%, var(--brume-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.be-stats__unit {
  font-size: 24px;
  letter-spacing: 0;
}

.be-stats__label {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* ── SERVICES (cartes glow) ───────────────────── */

.be-services {
  background: var(--noir-bg);
  padding: 80px 20px;
}

.be-services__header {
  text-align: center;
  margin-bottom: 48px;
}

.be-services__tag {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--brume);
  display: block;
  margin-bottom: 16px;
}

.be-services__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -1.5px;
  line-height: 1.15;
  color: var(--text-dark);
}

.be-services__title em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: var(--accent-text);
}

.be-services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

/* Carte glassmorphism avec glow */
.be-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px 24px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(184, 150, 90, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.be-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 17px;
  background: linear-gradient(135deg, rgba(184, 150, 90, 0) 0%, rgba(184, 150, 90, 0.15) 50%, rgba(184, 150, 90, 0) 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: -1;
}

.be-card:hover {
  transform: translateY(-4px);
  border-color: rgba(184, 150, 90, 0.3);
  box-shadow: 0 8px 40px rgba(184, 150, 90, 0.1), 0 0 80px rgba(184, 150, 90, 0.05);
}

.be-card:hover::before {
  opacity: 1;
}

.be-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(184, 150, 90, 0.1);
  color: var(--brume);
  transition: background 0.3s, transform 0.3s;
}

.be-card:hover .be-card__icon {
  background: rgba(184, 150, 90, 0.2);
  transform: scale(1.1);
}

.be-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--text-dark);
}

.be-card__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.be-card__list li {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  padding-left: 18px;
  position: relative;
}

.be-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brume);
  opacity: 0.5;
}

/* ── WORKFLOW ─────────────────────────────────── */

.be-workflow {
  background: var(--noir-bg);
  padding: 80px 20px;
  border-top: 1px solid rgba(184, 150, 90, 0.06);
}

.be-workflow__header {
  text-align: center;
  margin-bottom: 56px;
}

.be-workflow__steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}

.be-workflow__step {
  position: relative;
  padding: 28px 24px 28px 24px;
  border-radius: 16px;
  background: rgba(184, 150, 90, 0.02);
  border: 1px solid rgba(184, 150, 90, 0.08);
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.be-workflow__step:hover {
  border-color: rgba(184, 150, 90, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 24px rgba(184, 150, 90, 0.06);
}

.be-workflow__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 32px;
  letter-spacing: -2px;
  background: linear-gradient(135deg, var(--brume) 0%, var(--brume-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 12px;
}

.be-workflow__line {
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--brume), transparent);
  margin-bottom: 16px;
  border-radius: 2px;
}

.be-workflow__step-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.be-workflow__step-desc {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ═══ RESPONSIVE ═══ */

@media (min-width: 768px) {
  .offre-hero--split {
    flex-direction: row;
    align-items: center;
    padding: 120px 48px 80px;
    gap: 48px;
    min-height: auto;
  }

  .offre-hero__content {
    flex: 1;
    align-items: flex-start;
    text-align: left;
  }

  .offre-hero__cta-row {
    flex-direction: row;
    width: auto;
    max-width: none;
  }

  .offre-hero__model {
    flex: 1;
    height: 500px;
  }

  .offre-hero__glow {
    width: 600px;
    height: 600px;
  }

  .be-stats { padding: 80px 48px; }
  .be-services { padding: 80px 48px; }
  .be-workflow { padding: 80px 48px; }

  .be-stats__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .be-stats__number { font-size: 42px; }

  .be-services__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .be-services__title { font-size: 36px; }

  .be-workflow__steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }
}

@media (min-width: 1024px) {
  .offre-hero--split {
    padding: 140px 120px 100px;
    gap: 64px;
  }

  .offre-hero__title { font-size: 48px; }
  .offre-hero__sub { font-size: 17px; }

  .offre-hero__model { height: 600px; }

  .be-stats { padding: 100px 120px; }
  .be-services { padding: 100px 120px; }
  .be-workflow { padding: 100px 120px; }

  .be-services__title { font-size: 40px; }
  .be-stats__number { font-size: 48px; }
}
