* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #d62020;
  --primary-dark: #aa1111;
  --dark: #111111;
  --dark-soft: #1d1d1d;
  --text: #1e1e1e;
  --muted: #666666;
  --light: #ffffff;
  --bg: #f5f5f5;
  --border: #e5e5e5;
  --shadow: 0 15px 40px rgba(0, 0, 0, 0.10);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
}

.container {
  width: min(1180px, 92%);
  margin: 0 auto;
}

/* PROGRESS BAR */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 0%;
  background: var(--primary);
  z-index: 2000;
  transition: width 0.1s linear;
}

/* HEADER */
.topbar {
  position: sticky;
  top: 0;
  z-index: 1500;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.logo-bcd {
  height: 62px;
  width: auto;
}

.logo-qualibat {
  height: 68px;
  width: auto;
}

.nav {
  display: flex;
  gap: 22px;
}

.nav a {
  color: var(--dark);
  font-weight: 700;
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: 0.3s ease;
}

.nav a:hover::after {
  width: 100%;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  border: none;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  width: 28px;
  height: 3px;
  background: var(--dark);
  border-radius: 5px;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 12px 20px 20px;
}

.mobile-menu.active {
  display: flex;
}

.mobile-menu a {
  padding: 10px 0;
  color: var(--dark);
  font-weight: 700;
  border-bottom: 1px solid #efefef;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 12px;
  font-weight: 700;
  transition: 0.25s ease;
  cursor: pointer;
  text-align: center;
  border: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--light);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}

.btn-secondary {
  background: var(--dark);
  color: var(--light);
}

.btn-secondary:hover {
  background: #000;
  transform: translateY(-3px);
}

.btn-outline {
  border: 2px solid var(--dark);
  color: var(--dark);
  background: transparent;
}

.btn-outline:hover {
  background: var(--dark);
  color: #fff;
}

/* HERO */
.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(0,0,0,0.75), rgba(0,0,0,0.35)),
    url("images/service-menuiserie.jpg") center/cover no-repeat;
  color: #fff;
  padding: 95px 0 85px;
}

.hero-bg-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
  opacity: 0.18;
  animation: floatShape 7s ease-in-out infinite;
}

.hero-shape-1 {
  width: 240px;
  height: 240px;
  background: #ff2e2e;
  top: 40px;
  left: -60px;
}

.hero-shape-2 {
  width: 200px;
  height: 200px;
  background: #ffffff;
  right: -40px;
  bottom: 40px;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.eyebrow,
.section-kicker {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #fd0000;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-description {
  font-size: 1.08rem;
  max-width: 700px;
  margin-bottom: 28px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-card {
  background: rgba(255,255,255,0.08);
  padding: 16px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: var(--shadow);
  transform: perspective(1000px) rotateY(-5deg);
  transition: 0.4s ease;
}

.hero-card:hover {
  transform: perspective(1000px) rotateY(0deg) translateY(-8px);
}

.hero-card img {
  border-radius: 16px;
}

/* STATS */
.stats {
  background: var(--bg);
  padding: 40px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.stat-card {
  background: #fff;
  border-radius: 18px;
  padding: 30px;
  text-align: center;
  box-shadow: var(--shadow);
}

.stat-card span {
  display: block;
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--primary);
}

.stat-card p {
  color: var(--muted);
  font-weight: 700;
}

/* SECTIONS */
section {
  padding: 80px 0;
}

.section-heading {
  margin-bottom: 36px;
  text-align: center;
}

.section-heading h2 {
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.2;
}

.section-kicker {
  color: #e30613;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* CARDS */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow);
  transition: 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(214,32,32,0.06), transparent);
  opacity: 0;
  transition: 0.3s ease;
}

.card:hover::before {
  opacity: 1;
}

.card:hover {
  transform: translateY(-8px);
}

.card h3 {
  margin-bottom: 12px;
  color: var(--dark);
}

.card p {
  color: var(--muted);
}

/* TRUST */
.trust {
  background: #fff;
}

.trust-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
}

.trust-box {
  background: var(--bg);
  border-radius: 22px;
  padding: 34px;
  box-shadow: var(--shadow);
}

.trust-box h2 {
  margin-bottom: 16px;
}

.check-list {
  list-style: none;
  margin-top: 18px;
}

.check-list li {
  padding: 10px 0 10px 28px;
  position: relative;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 10px;
  color: var(--primary);
  font-weight: 800;
}

.trust-badges {
  display: grid;
  gap: 20px;
}

.badge-card {
  background: #fff;
  border-radius: 20px;
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow);
}

.badge-card img {
  height: 80px;
  width: auto;
  object-fit: contain;
  margin: 0 auto 12px;
}

.badge-card span {
  font-weight: 700;
}

/* CONTENT */
.content-block {
  background: var(--bg);
}

.content-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 28px;
  align-items: center;
}

.image-box img {
  width: 100%;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.text-box {
  background: #fff;
  padding: 34px;
  border-radius: 22px;
  box-shadow: var(--shadow);
}

/* FORM */
.quote-section {
  background: #fff;
}

.quote-wrapper {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: start;
}

.quote-info,
.quote-form {
  background: var(--bg);
  border-radius: 22px;
  padding: 30px;
  box-shadow: var(--shadow);
}

.quote-info h3 {
  margin-bottom: 14px;
}

.mini-contact-cards {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.mini-contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border-radius: 16px;
  padding: 18px;
}

.mini-icon {
  width: 52px;
  height: 52px;
  border: 1px solid #d2d2d2;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
}

.mini-contact-card span {
  display: block;
  color: var(--muted);
  margin-bottom: 5px;
}

.mini-contact-card a {
  color: var(--primary);
  font-size: 1.2rem;
  font-weight: 700;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  border: 1px solid #d9d9d9;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 1rem;
  font-family: Arial, Helvetica, sans-serif;
  transition: 0.25s ease;
  background: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(214, 32, 32, 0.10);
}

.btn-submit {
  width: 100%;
  font-size: 1rem;
}

.form-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.95rem;
  text-align: center;
}

/* CONTACT BAND */
.contact-band {
  background: #ececec;
  padding: 0;
}

.contact-band-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 40px 20px;
}

.contact-icon {
  width: 54px;
  height: 54px;
  min-width: 54px;
  border: 1px solid #aaa;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--primary);
  font-size: 1.4rem;
  background: #fff;
}

.contact-item p {
  color: #333;
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.contact-item a {
  color: var(--primary);
  font-size: 1.15rem;
  font-weight: 700;
  word-break: break-word;
}

/* FOOTER */
.footer {
  background: #101010;
  color: #fff;
  padding: 28px 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 20px;
  align-items: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-logo {
  height: 56px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a {
  color: #fff;
}

.footer-qualibat {
  height: 62px;
}

/* REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(45px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay {
  transition-delay: 0.2s;
}

/* BACK TO TOP */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: 0.3s ease;
  z-index: 1600;
}

.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
}

/* ANIMATIONS */
@keyframes floatShape {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(214, 32, 32, 0.45);
  }
  70% {
    box-shadow: 0 0 0 18px rgba(214, 32, 32, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(214, 32, 32, 0);
  }
}

.pulse-btn {
  animation: pulse 2s infinite;
}

.floating-card {
  animation: floatShape 5s ease-in-out infinite;
}

/* RESPONSIVE */
@media (max-width: 1100px) {
  .hero-content,
  .trust-grid,
  .content-grid,
  .quote-wrapper,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .footer-links,
  .footer-brand,
  .footer-badge {
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 900px) {
  .nav,
  .header-right {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .contact-band-grid,
  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  section {
    padding: 60px 0;
  }

  .hero {
    padding: 70px 0 60px;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .contact-item {
    padding: 26px 10px;
  }

  .contact-item a {
    font-size: 1rem;
  }

  .quote-info,
  .quote-form,
  .text-box,
  .trust-box {
    padding: 22px;
  }
}

.examples-section {
  background: #f7f7f7;
}

.example-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.example-card {
  background: #ffffff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  transition: 0.3s ease;
  border: 1px solid #ececec;
}

.example-card:hover {
  transform: translateY(-8px);
}

.example-image {
  height: 240px;
  overflow: hidden;
}

.example-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.4s ease;
}

.example-card:hover .example-image img {
  transform: scale(1.05);
}

.example-content {
  padding: 24px;
}

.example-content h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
  color: #111111;
}

.example-content p {
  color: #666666;
  margin-bottom: 20px;
}

.example-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-small {
  padding: 12px 18px;
  font-size: 0.95rem;
  border-radius: 10px;
}

.btn-light-outline {
  background: #ffffff;
  color: #111111;
  border: 2px solid #d9d9d9;
}

.btn-light-outline:hover {
  background: #111111;
  color: #ffffff;
  border-color: #111111;
}

@media (max-width: 1100px) {
  .example-grid {
    grid-template-columns: 1fr;
  }
}