/* ============================================
   ATB Site Vitrine — Design System
   Industrial Premium Aesthetic
   ============================================ */

/* --- Font Faces --- */
@font-face {
  font-family: 'Zalando Sans Expanded';
  src: url('../fonts/ZalandoSansExpanded-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Zalando Sans Expanded';
  src: url('../fonts/ZalandoSansExpanded-Medium.ttf') format('truetype');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Zalando Sans Expanded';
  src: url('../fonts/ZalandoSansExpanded-Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Zalando Sans Expanded';
  src: url('../fonts/ZalandoSansExpanded-Black.ttf') format('truetype');
  font-weight: 900;
  font-display: swap;
}
@font-face {
  font-family: 'Lexend';
  src: url('../fonts/Lexend-Light.ttf') format('truetype');
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: 'Lexend';
  src: url('../fonts/Lexend-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Lexend';
  src: url('../fonts/Lexend-Medium.ttf') format('truetype');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Lexend';
  src: url('../fonts/Lexend-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Lexend';
  src: url('../fonts/Lexend-Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}

/* --- Base --- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Lexend', sans-serif;
  font-weight: 400;
  color: #0d0d0f;
  background-color: #f9f7f2;
  line-height: 1.7;
  overflow-x: hidden;
}

/* --- Red Line Motif --- */
.red-line {
  display: block;
  width: 60px;
  height: 4px;
  background-color: #cd2c24;
  border-radius: 2px;
}
.red-line--center { margin-left: auto; margin-right: auto; }
.red-line--lg { width: 80px; }

/* --- Section Headings --- */
.section-label {
  font-family: 'Lexend', sans-serif;
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #cd2c24;
}

.section-title {
  font-family: 'Zalando Sans Expanded', sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

/* --- Header --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 80px;
  transition: background-color 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

.site-header--transparent {
  background-color: transparent;
}

.site-header--solid,
.site-header.scrolled {
  background-color: rgba(13, 13, 15, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.site-header .nav-link {
  font-family: 'Lexend', sans-serif;
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.3s ease;
}

.site-header .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #cd2c24;
  transition: width 0.3s ease;
}

.site-header .nav-link:hover,
.site-header .nav-link.active {
  color: #ffffff;
}

.site-header .nav-link:hover::after,
.site-header .nav-link.active::after {
  width: 100%;
}

/* --- Nav Dropdown --- */
.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.site-header .nav-dropdown__trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: none;
  border: none;
  margin: 0;
  padding: 0.5rem 0;
  cursor: pointer;
  font-family: 'Lexend', sans-serif;
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  line-height: inherit;
  transition: color 0.3s ease;
}

.site-header .nav-dropdown__trigger:hover {
  color: #ffffff;
}

.site-header .nav-dropdown__trigger::after {
  display: none;
}

.nav-dropdown__trigger svg {
  transition: transform 0.3s ease;
}

.nav-dropdown.open .nav-dropdown__trigger svg {
  transform: rotate(180deg);
}

.nav-dropdown__menu {
  position: absolute;
  top: calc(100% + 0.75rem);
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  background-color: rgba(13, 13, 15, 0.97);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
  transform: translateX(-50%) translateY(6px);
  z-index: 100;
}

.nav-dropdown__menu::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid rgba(13, 13, 15, 0.97);
}

.nav-dropdown.open .nav-dropdown__menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-family: 'Lexend', sans-serif;
  font-weight: 400;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease;
  white-space: nowrap;
}

.nav-dropdown__item:hover {
  color: #ffffff;
  background-color: rgba(205, 44, 36, 0.15);
}

.nav-dropdown__divider {
  height: 1px;
  background-color: rgba(255,255,255,0.08);
  margin: 0.375rem 0;
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  background-color: rgba(13, 13, 15, 0.98);
  backdrop-filter: blur(20px);
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu a {
  font-family: 'Zalando Sans Expanded', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  text-transform: uppercase;
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.mobile-menu a:hover {
  color: #cd2c24;
}

.mobile-menu__group {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mobile-menu__trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Zalando Sans Expanded', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  text-transform: uppercase;
  color: #ffffff;
  transition: color 0.3s ease;
}

.mobile-menu__trigger:hover {
  color: #cd2c24;
}

.mobile-menu__trigger svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.mobile-menu__group.open .mobile-menu__trigger svg {
  transform: rotate(180deg);
}

.mobile-menu__submenu {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.mobile-menu__group.open .mobile-menu__submenu {
  max-height: 200px;
  padding-top: 0.75rem;
}

.mobile-menu__submenu a {
  font-size: 1.125rem !important;
  font-weight: 500 !important;
  color: rgba(255,255,255,0.7) !important;
}

.mobile-menu__submenu a:hover {
  color: #cd2c24 !important;
}

/* Hamburger */
.mobile-header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 1001;
}

.mobile-phone-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #cd2c24;
  color: #ffffff;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.mobile-phone-btn:hover {
  background-color: #e04039;
}

.mobile-phone-btn:active {
  transform: scale(0.92);
}

.mobile-phone-btn svg {
  width: 18px;
  height: 18px;
}

.hamburger {
  width: 28px;
  height: 20px;
  position: relative;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #ffffff;
  position: absolute;
  left: 0;
  transition: all 0.3s ease;
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 9px; }
.hamburger span:nth-child(3) { top: 18px; }

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 9px;
}
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg);
  top: 9px;
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(13, 13, 15, 0.55) 0%,
    rgba(13, 13, 15, 0.45) 40%,
    rgba(13, 13, 15, 0.55) 80%,
    rgba(13, 13, 15, 0.7) 100%
  );
  z-index: 1;
}

.hero__logo-wrap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  pointer-events: none;
}

.hero__logo {
  position: absolute;
  top: 100px;
  right: 0;
  height: 360px;
  width: auto;
  pointer-events: auto;
}

@media (max-width: 1024px) {
  .hero__logo {
    height: 280px;
    top: 90px;
  }
}

@media (max-width: 640px) {
  .hero__logo {
    display: none;
  }
}

.hero__content {
  position: relative;
  z-index: 2;
}

.hero__title {
  font-family: 'Zalando Sans Expanded', sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.hero__title .accent {
  color: #cd2c24;
}

/* Page hero (shorter, for inner pages) */
.page-hero {
  position: relative;
  padding-top: 80px;
  min-height: 45vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: #0d0d0f;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
}

.page-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: bounce 2s ease infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* --- Diagonal Section Separator --- */
.section--angled {
  position: relative;
  z-index: 1;
}

.section--angled::before {
  content: '';
  position: absolute;
  top: -40px;
  left: 0;
  right: 0;
  height: 80px;
  background: inherit;
  transform: skewY(-2deg);
  z-index: -1;
}

/* --- Dark Section Grain Texture --- */
.section--dark {
  position: relative;
  background-color: #0d0d0f;
  color: #ffffff;
}

.section--dark::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  pointer-events: none;
  z-index: 0;
}

.section--dark > * {
  position: relative;
  z-index: 1;
}

/* --- Stats Counter --- */
.stat-number {
  font-family: 'Zalando Sans Expanded', sans-serif;
  font-weight: 900;
  line-height: 1;
  color: #cd2c24;
}

.stat-label {
  font-family: 'Lexend', sans-serif;
  font-weight: 400;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
  margin-top: 0.5rem;
}

/* --- Service Cards --- */
.service-card {
  background: #ffffff;
  border-radius: 0;
  border: 1px solid #dfdbda;
  border-bottom: 4px solid transparent;
  padding: 1.25rem 1rem;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  flex: 1 1 auto;
}

@media (min-width: 768px) {
  .service-card {
    padding: 2.5rem 2rem;
  }
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: #cd2c24;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.service-card:hover {
  border-bottom-color: #cd2c24;
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(13, 13, 15, 0.08);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card__icon {
  width: 32px;
  height: 32px;
  color: #cd2c24;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-card__title {
  font-family: 'Zalando Sans Expanded', sans-serif;
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  line-height: 1.3;
  overflow-wrap: break-word;
  word-break: break-word;
}

@media (min-width: 768px) {
  .service-card__icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1.5rem;
  }
  .service-card__title {
    font-size: 1.125rem;
    margin-bottom: 1rem;
  }
}

/* --- Service Card Compact (Services associés) --- */
.service-card--compact {
  display: block;
  background: #ffffff;
  border: 1px solid #dfdbda;
  border-bottom: 4px solid transparent;
  padding: 1.25rem 1rem;
  text-align: center;
  text-decoration: none;
  color: #0d0d0f;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .service-card--compact {
    padding: 2rem 1.5rem;
  }
}

.service-card--compact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: #cd2c24;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.service-card--compact:hover {
  border-bottom-color: #cd2c24;
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(13, 13, 15, 0.08);
}

.service-card--compact:hover::before {
  transform: scaleX(1);
}

.service-card--compact__title {
  font-family: 'Zalando Sans Expanded', sans-serif;
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.service-card--compact__desc {
  font-size: 0.75rem;
  color: #6b7178;
  line-height: 1.5;
}

@media (min-width: 768px) {
  .service-card--compact__title {
    font-size: 1rem;
    margin-bottom: 0.75rem;
  }
  .service-card--compact__desc {
    font-size: 0.8125rem;
  }
}

/* --- USP Items --- */
.usp-item {
  text-align: center;
  padding: 1rem 0.5rem;
}

.usp-icon {
  width: 32px;
  height: 32px;
  margin: 0 auto 0.75rem;
  color: #cd2c24;
}

.usp-title {
  font-family: 'Zalando Sans Expanded', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  letter-spacing: 0.03em;
}

@media (min-width: 768px) {
  .usp-item {
    padding: 2rem 1.5rem;
  }
  .usp-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1.25rem;
  }
  .usp-title {
    font-size: 1rem;
    margin-bottom: 0.75rem;
  }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Lexend', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.875rem 2rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn--primary {
  background-color: #cd2c24;
  color: #ffffff;
}
.btn--primary:hover {
  background-color: #a82319;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(205, 44, 36, 0.3);
}

.btn--outline {
  background-color: transparent;
  color: #cd2c24;
  border: 2px solid #cd2c24;
}
.btn--outline:hover {
  background-color: #cd2c24;
  color: #ffffff;
}

.btn--white {
  background-color: #ffffff;
  color: #0d0d0f;
}
.btn--white:hover {
  background-color: #f9f7f2;
  transform: translateY(-2px);
}

.btn--dark {
  background-color: #0d0d0f;
  color: #ffffff;
}
.btn--dark:hover {
  background-color: #252423;
  transform: translateY(-2px);
}

.btn--hero {
  background-color: #ffffff;
  color: #0d0d0f;
}
.btn--hero:hover {
  background-color: #cd2c24;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(205, 44, 36, 0.3);
}

.btn--sm {
  padding: 0.625rem 1.25rem;
  font-size: 0.8125rem;
}

.btn--lg {
  padding: 1.125rem 2.5rem;
  font-size: 1rem;
}

/* --- Testimonials --- */
.testimonial-card {
  background: #ffffff;
  padding: 2.5rem;
  border-left: 4px solid #cd2c24;
  position: relative;
}

.testimonial-card::before {
  content: '\201C';
  font-family: 'Zalando Sans Expanded', sans-serif;
  font-size: 4rem;
  font-weight: 900;
  color: #cd2c24;
  opacity: 0.2;
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  line-height: 1;
}

/* --- FAQ Accordion --- */
.faq-item {
  border-bottom: 1px solid #dfdbda;
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: 'Lexend', sans-serif;
  font-weight: 600;
  font-size: 0.8125rem;
  color: #0d0d0f;
  transition: color 0.3s ease;
}

.faq-question:hover { color: #cd2c24; }

.faq-question svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
  color: #cd2c24;
}

@media (min-width: 768px) {
  .faq-question {
    padding: 1.5rem 0;
    font-size: 1rem;
    gap: 1rem;
  }
  .faq-question svg {
    width: 20px;
    height: 20px;
  }
}

.faq-item.open .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.open .faq-answer {
  max-height: 500px;
  padding-bottom: 1.5rem;
}

.faq-answer p {
  color: #6b7178;
  line-height: 1.7;
}

/* --- Process Steps --- */
.process-step {
  position: relative;
  padding-left: 4rem;
}

.process-step__number {
  position: absolute;
  left: 0;
  top: 0;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #cd2c24;
  color: #ffffff;
  font-family: 'Zalando Sans Expanded', sans-serif;
  font-weight: 900;
  font-size: 1.125rem;
}

.process-step__line {
  position: absolute;
  left: 1.5rem;
  top: 3rem;
  width: 2px;
  height: calc(100% - 3rem);
  background-color: #dfdbda;
}

/* --- Partners --- */
.partner-logo {
  height: 40px;
  width: auto;
  transition: all 0.4s ease;
}

.partner-logo:hover {
  opacity: 0.8;
}

/* Partner logo swap effect: original → ATB colors on hover */
.partner-swap {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.partner-swap__original,
.partner-swap__atb {
  display: block;
  width: auto;
  transition: opacity 0.5s ease;
}

.partner-swap__atb {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

.partner-swap:hover .partner-swap__original {
  opacity: 0;
}

.partner-swap:hover .partner-swap__atb {
  opacity: 1;
}

/* --- Footer --- */
.site-footer {
  background-color: #0d0d0f;
  color: rgba(255,255,255,0.7);
}

.site-footer a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.3s ease;
}

.site-footer a:hover {
  color: #cd2c24;
}

.footer-heading {
  font-family: 'Zalando Sans Expanded', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #ffffff;
  margin-bottom: 1.25rem;
}

/* --- Scroll Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal--left {
  transform: translateX(-30px);
}

.reveal--right {
  transform: translateX(30px);
}

.reveal.visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* Staggered children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.2s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.3s; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.35s; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.4s; }

.reveal-stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* --- Comparison Table --- */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
  padding: 1rem 1.5rem;
  text-align: left;
  border-bottom: 1px solid #dfdbda;
}

.comparison-table th {
  font-family: 'Zalando Sans Expanded', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  background-color: #0d0d0f;
  color: #ffffff;
}

.comparison-table td:last-child {
  color: #cd2c24;
  font-weight: 600;
}

@media (max-width: 640px) {
  .comparison-table,
  .comparison-table thead,
  .comparison-table tbody,
  .comparison-table tr,
  .comparison-table th,
  .comparison-table td {
    display: block;
  }
  .comparison-table thead {
    display: none;
  }
  .comparison-table tr {
    margin-bottom: 0.75rem;
    border: 1px solid #dfdbda;
  }
  .comparison-table td {
    padding: 0.5rem 0.75rem;
    border-bottom: none;
    font-size: 0.8125rem;
    line-height: 1.5;
  }
  .comparison-table td:first-child {
    background-color: #0d0d0f;
    color: #ffffff;
    font-family: 'Zalando Sans Expanded', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }
  .comparison-table td:nth-child(2) {
    color: #6b7178;
  }
  .comparison-table td:nth-child(2)::before {
    content: 'Neuf : ';
    font-weight: 600;
    color: #0d0d0f;
  }
  .comparison-table td:last-child::before {
    content: 'ATB : ';
    font-weight: 600;
  }
}

/* --- Form Styles --- */
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  color: #0d0d0f;
}

.form-input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid #dfdbda;
  background-color: #ffffff;
  font-family: 'Lexend', sans-serif;
  font-size: 0.9375rem;
  color: #0d0d0f;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: #cd2c24;
  box-shadow: 0 0 0 3px rgba(205, 44, 36, 0.1);
}

.form-input::placeholder {
  color: #9a9695;
}

textarea.form-input {
  resize: vertical;
  min-height: 150px;
}

/* --- Legal Pages --- */
.legal-content h2 {
  font-family: 'Zalando Sans Expanded', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  text-transform: uppercase;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #cd2c24;
}

.legal-content h3 {
  font-weight: 600;
  font-size: 1.0625rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.legal-content h4 {
  font-weight: 600;
  font-size: 1rem;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

.legal-content p {
  margin-bottom: 1rem;
  color: #504d4c;
  line-height: 1.8;
}

.legal-content ul,
.legal-content ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  color: #504d4c;
}

.legal-content li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.legal-content strong {
  color: #0d0d0f;
}

/* --- Timeline --- */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0.5rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, #cd2c24, #dfdbda);
}

.timeline-item {
  position: relative;
  padding-bottom: 2.5rem;
  padding-left: 2rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.65rem;
  top: 0.35rem;
  width: 12px;
  height: 12px;
  background-color: #cd2c24;
  border: 3px solid #f9f7f2;
  border-radius: 50%;
}

.timeline-year {
  font-family: 'Zalando Sans Expanded', sans-serif;
  font-weight: 900;
  font-size: 1.125rem;
  color: #cd2c24;
}

/* --- Guarantee Badge --- */
.guarantee-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  padding: 1rem 0.625rem;
  border: 1px solid #dfdbda;
  background: #ffffff;
  transition: border-color 0.3s ease;
}

.guarantee-badge:hover {
  border-color: #cd2c24;
}

.guarantee-badge__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: #cd2c24;
}

@media (min-width: 768px) {
  .guarantee-badge {
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
  }
  .guarantee-badge__icon {
    width: 40px;
    height: 40px;
  }
}

/* --- Utility --- */
.text-balance { text-wrap: balance; }

/* Map container */
.map-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.map-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(80%);
  transition: filter 0.4s ease;
}

.map-container:hover iframe {
  filter: grayscale(20%);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .hero__title {
    font-size: 2.25rem !important;
  }

  .section-title {
    font-size: 1.5rem !important;
  }

  .section-label {
    font-size: 0.6875rem;
  }

  .process-step {
    padding-left: 3.5rem;
  }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: 1.5rem !important;
  }

  .section-title {
    font-size: 1.25rem !important;
  }
}
