/* ==========================================================================
   Diesel Entretien HM — Page d'atterrissage
   Maquette Figma : 1920px de large · zone de contenu 1508px (conteneur 1532px, gouttières incluses)
   Toutes les valeurs en px ci-dessous proviennent du fichier Figma.
   ========================================================================== */

/* Variables (jetons de design) */
:root {
  --brand: #b1cd44;
  --brand-hover: #9fba35;
  --brand-active: #8ea62c;
  --brand-text: #96b90a;
  --brand-a13: rgba(177, 205, 68, .13);
  --brand-a20: rgba(177, 205, 68, .2);
  --brand-a30: rgba(177, 205, 68, .3);
  --brand-a40: rgba(177, 205, 68, .4);

  --ink: #000;
  --surface-light: #e7ebf0;
  --surface-dark: #111;
  --surface-darker: #0a0a0a;
  --input-bg: #f7f7fc;
  --input-text: #6e7191;

  /* Titres : Inter, comme dans le Figma (ExtraBold 800 pour les sections, Black 900 pour le hero) */
  --font-title: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  /* Le Figma utilise Avenir (police sous licence, absente de la plupart des appareils) ; Nunito Sans est l'équivalent gratuit le plus proche */
  --font-form: "Nunito Sans", var(--font-body);

  --header-h: 100px;
  --radius: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --transition: .25s var(--ease);

  --bs-body-font-family: var(--font-body);
  --bs-body-color: var(--ink);
}

/* Base */
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  background: #fff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, p {
  margin: 0;
}

h1, h2, .section-title {
  font-family: var(--font-title);
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2000;
  padding: 8px 16px;
  background: var(--brand);
  color: var(--ink);
  font-weight: 600;
}

/* Contenu de 1508px + 2 × 12px de gouttière Bootstrap */
@media (min-width: 1400px) {
  .container {
    max-width: 1532px;
  }
}

/* Commun : sections */
.section-py {
  padding-top: 64px;
  padding-bottom: 64px;
}

.section-tag {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 54px;
  background: var(--brand-a20);
  color: var(--brand-text);
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
}

.section-title {
  font-size: 40px;
  font-weight: 800;
  line-height: 48px;
  letter-spacing: -1.4px;
  color: var(--ink);
}

/* Commun : boutons */
.btn {
  --bs-btn-border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  line-height: 19.5px;
  letter-spacing: .325px;
  transition: background-color var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.btn:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  box-shadow: none;
}

.btn:active {
  transform: scale(.98);
}

.btn:disabled,
.btn.disabled {
  opacity: .55;
  pointer-events: none;
}

.btn .btn-arrow {
  transition: transform var(--transition);
}

.btn:hover .btn-arrow {
  transform: translateX(3px);
}

.btn-brand {
  padding: 15px;
  background: var(--brand);
  border: 1px solid var(--brand);
  color: var(--ink);
}

.btn-brand:hover {
  background: var(--brand-hover);
  border-color: var(--brand-hover);
  color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -10px rgba(177, 205, 68, .8);
}

.btn-brand:active,
.btn-brand.active {
  background: var(--brand-active) !important;
  border-color: var(--brand-active) !important;
  color: var(--ink) !important;
}

.btn-lg-brand {
  min-height: 54px;
  padding: 16px;
}

.btn-ghost-light {
  background: rgba(255, 255, 255, .2);
  border: 1px solid #fff;
  color: #fff;
}

.btn-ghost-light:hover {
  background: rgba(255, 255, 255, .3);
  border-color: #fff;
  color: #fff;
  transform: translateY(-2px);
}

.btn-ghost-light:active {
  background: rgba(255, 255, 255, .35) !important;
  border-color: #fff !important;
  color: #fff !important;
}

/* Animation d'apparition (activée par js/script.js) */
.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}

.reveal-ready [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* En-tête */
#header {
  background: #fff;
  transition: box-shadow var(--transition);
}

#header.is-scrolled {
  box-shadow: 0 6px 24px rgba(0, 0, 0, .08);
}

#header .navbar {
  min-height: var(--header-h);
  padding: 10px 0;
}

#header .header-logo {
  width: 177px;
  height: 80px;
  object-fit: contain;
}

#header .header-menu {
  gap: 20px;
}

#header .header-menu .nav-link {
  position: relative;
  padding: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 28px;
  color: var(--ink);
}

#header .header-menu .nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

#header .header-menu .nav-link:hover::after,
#header .header-menu .nav-link.active::after {
  transform: scaleX(1);
}

#header .header-menu .nav-link:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 4px;
  border-radius: 2px;
}

#header .btn-phone {
  height: 52px;
  padding: 15px;
  background: var(--brand-a13);
  border: 1px solid var(--brand);
  color: var(--ink);
  line-height: 20px;
  letter-spacing: .35px;
}

#header .btn-phone:hover {
  background: var(--brand-a30);
  transform: translateY(-2px);
}

#header .header-actions .btn-brand {
  height: 52px;
  padding: 16px;
}

#header .header-toggler {
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  padding: 12px;
  border: 1px solid var(--brand);
  border-radius: var(--radius);
  background: var(--brand-a13);
}

#header .header-toggler:focus {
  box-shadow: 0 0 0 3px rgba(177, 205, 68, .45);
}

#header .header-toggler-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

#header .header-toggler[aria-expanded="true"] .header-toggler-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

#header .header-toggler[aria-expanded="true"] .header-toggler-bar:nth-child(2) {
  opacity: 0;
}

#header .header-toggler[aria-expanded="true"] .header-toggler-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero (bannière principale) */
#hero {
  position: relative;
  overflow: hidden;
  min-height: 841px;
  padding: 220px 0 187px;
  background: #050505;
  color: #fff;
  isolation: isolate;
}

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

/* Ellipse sombre floutée du Figma (« Ellipse 41 »), positionnée comme dans la maquette de 1920px */
#hero .hero-shadow {
  position: absolute;
  top: -810px;
  left: -1056px;
  z-index: -1;
  width: 2526px;
  max-width: none;
  height: auto;
  pointer-events: none;
}

#hero .hero-content {
  max-width: 842px;
}

#hero .hero-badge {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid var(--brand);
  border-radius: 54px;
  background: rgba(177, 205, 68, .22);
  color: var(--brand);
  font-size: 11px;
  font-weight: 700;
  line-height: 16.5px;
  letter-spacing: 3.85px;
  text-transform: uppercase;
}

#hero .hero-title {
  font-size: 60px;
  font-weight: 900;
  line-height: 73px;
  letter-spacing: -1.4px;
}

#hero .hero-lead {
  margin-bottom: 54px;
  font-size: 18px;
  font-weight: 500;
  line-height: 24px;
  color: rgba(255, 255, 255, .8);
}

#hero .hero-actions {
  gap: 16px !important;
}

#hero .btn-ghost-light {
  padding: 16px;
}

/* Points forts */
#highlights {
  background: var(--surface-darker);
  color: #fff;
}

#highlights .highlights-item {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 132px;
  padding: 44px 33px 44px 32px;
  border-right: 1px solid rgba(255, 255, 255, .05);
}

#highlights .highlights-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--brand-a30);
  transition: background-color var(--transition), transform var(--transition);
}

#highlights .highlights-item:hover .highlights-icon {
  background: rgba(177, 205, 68, .45);
  transform: translateY(-2px);
}

#highlights .highlights-title {
  display: block;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
}

#highlights .highlights-text {
  display: block;
  font-size: 14px;
  line-height: 20px;
  color: rgba(255, 255, 255, .6);
}

/* À propos */
#about .about-media {
  position: relative;
  border-radius: var(--radius-md);
  background: var(--surface-light);
  overflow: hidden;
}

#about .about-image {
  display: block;
  width: 100%;
  height: 751px;
  object-fit: cover;
  transition: transform .8s var(--ease);
}

#about .about-media:hover .about-image {
  transform: scale(1.04);
}

#about .about-badge {
  position: absolute;
  right: 17px;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 240px;
  height: 162px;
  padding: 12px;
  border-radius: var(--radius);
  background: var(--brand);
  box-shadow: 0 4.8px 6px rgba(0, 0, 0, .04);
  color: #fff;
  text-align: center;
}

#about .about-badge-number {
  font-size: 78.235px;
  font-weight: 700;
  line-height: 74px;
}

#about .about-badge-label {
  font-size: 19.176px;
  line-height: 28.763px;
}

#about .about-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 29px;
  max-width: 788px;
}

#about .about-text p {
  font-size: 16px;
  line-height: 28.8px;
}

#about .about-text p + p {
  margin-top: 28.8px;
}

/* Carrosserie */
#bodywork {
  position: relative;
  overflow: hidden;
  min-height: 805px;
  background: var(--surface-light);
}

/* Positions reprises de la maquette Figma de 1920px, exprimées par rapport à la largeur de l'écran */
#bodywork .bodywork-visual {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

#bodywork .bodywork-shape {
  position: absolute;
  top: 38px;
  bottom: 0;
  left: 54.74%;
  width: 56.25%;
  height: calc(100% - 38px);
  max-width: none;
}

#bodywork .bodywork-image {
  position: absolute;
  bottom: -10.73vw;
  left: 36.67%;
  width: 91.61%;
  max-width: none;
  height: auto;
}

#bodywork .bodywork-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 25px;
  max-width: 610px;
}

#bodywork .bodywork-text {
  font-size: 16px;
  line-height: 24px;
}

#bodywork .bodywork-list-title {
  margin-bottom: 8px;
  padding-bottom: 12px; /* 12 + 1px de bordure = le contour intérieur de 13px du Figma */
  border-bottom: 1px solid var(--brand);
  font-size: 16px;
  line-height: 24px;
}

#bodywork .bodywork-list {
  display: grid;
  gap: 20px;
}

#bodywork .bodywork-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

#bodywork .bodywork-item-title {
  margin-bottom: 6px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  line-height: 20px;
}

#bodywork .bodywork-item-text {
  font-size: 16px;
  line-height: 20px;
  color: rgba(0, 0, 0, .6);
}

/* Services */
#services {
  position: relative;
  overflow: hidden;
  background: var(--surface-dark);
  color: #fff;
  isolation: isolate;
}

/* Exportée du Figma avec son voile rgba(17,17,17,.95) déjà intégré */
#services .services-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#services .services-header {
  max-width: 1002px;
  margin-bottom: 48px;
}

#services .services-lead {
  max-width: 784px;
  margin-top: 15px;
  font-size: 16px;
  line-height: 24px;
  color: #fff;
}

#services .services-tabs-wrap {
  margin-bottom: 48px;
}

#services .services-tabs {
  flex-wrap: nowrap;
  gap: 24px;
  margin-bottom: 24px;
  overflow-x: auto;
  scrollbar-width: none;
}

#services .services-tabs::-webkit-scrollbar {
  display: none;
}

#services .services-tab {
  width: 100%;
  padding: 16px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  background: transparent;
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  line-height: 26px;
  text-align: left;
  white-space: nowrap;
  transition: background-color var(--transition), border-color var(--transition);
}

#services .services-tab span {
  margin-right: 3px;
  color: var(--brand);
}

#services .services-tab:hover {
  border-color: rgba(177, 205, 68, .45);
}

#services .services-tab.active {
  border-color: var(--brand);
  background: var(--brand-a13);
  backdrop-filter: blur(10px);
}

#services .services-tab:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

#services .services-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 164px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, .36);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, .1);
  backdrop-filter: blur(10px);
  text-align: center;
  transition: transform var(--transition), border-color var(--transition), background-color var(--transition);
}

#services .services-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand);
  background: rgba(177, 205, 68, .12);
}

#services .services-card-title {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
  line-height: 26px;
  color: #fff;
}

/* Onglet 03 : titres sur deux lignes dans le Figma, pour aligner les six icônes */
#services #pane-hydraulics .services-card-title {
  min-height: 52px;
}

/* Pourquoi nous choisir */
#why-us {
  position: relative;
  min-height: 809px;
  background: #fff;
}

#why-us .why-us-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 48px;
  max-width: 680px;
}

#why-us .why-us-list {
  display: grid;
  gap: 16px;
}

#why-us .why-us-item-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  line-height: 22.5px;
}

#why-us .why-us-item-text {
  padding-left: 32px;
  font-size: 16px;
  line-height: 28.8px;
}

#why-us .why-us-image {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 51.3%;
  height: 100%;
  object-fit: cover;
}

/* Processus */
#process {
  background: var(--surface-light);
}

#process .process-header .section-tag {
  margin-bottom: 4px;
}

#process .process-header {
  margin-bottom: 48px;
}

#process .process-steps {
  --bs-gutter-x: 32px;
  --bs-gutter-y: 24px;
  max-width: 1248px;
  margin-bottom: 64px;
}

#process .process-steps > li {
  position: relative;
}

/* Trait de liaison entre les cartes (« Horizontal Divider ») */
#process .process-steps > li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 64px;
  right: -16px;
  width: 32px;
  height: 2px;
  background: var(--brand-a30);
}

#process .process-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  height: 100%;
  min-height: 223px;
  padding: 16px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .67);
  backdrop-filter: blur(4px);
  transition: transform var(--transition), box-shadow var(--transition);
}

#process .process-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px -18px rgba(0, 0, 0, .25);
}

#process .process-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#process .process-icon {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border-radius: 3px;
  background: var(--brand);
}

#process .process-number {
  font-size: 40px;
  font-weight: 700;
  line-height: 48px;
  color: var(--brand-a40);
}

#process .process-title {
  font-family: var(--font-body);
  font-size: 19.5px;
  font-weight: 700;
  line-height: 28px;
}

#process .process-text {
  font-size: 15px;
  line-height: 24px;
  color: rgba(0, 0, 0, .7);
}

/* Témoignages */
#testimonials {
  background: var(--surface-dark);
  color: #fff;
}

#testimonials .testimonials-header {
  margin-bottom: 48px;
}

#testimonials .testimonials-rating {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 17px;
  padding: 12px 24px;
  border: 1px solid rgba(255, 255, 255, .07);
  background: #161616;
}

#testimonials .testimonials-stars {
  display: inline-flex;
}

#testimonials .testimonials-score {
  font-size: 16px;
  font-weight: 900;
  line-height: 24px;
}

#testimonials .testimonials-count {
  font-size: 14px;
  line-height: 20px;
  color: #6b7280;
}

/* Widget d'avis Google Elfsight : espace réservé pour limiter le décalage de mise en page pendant son chargement */
#testimonials .testimonials-widget {
  min-height: 200px;
}

/* Éléments injectés par Elfsight à masquer (barre d'outils et styles globaux du widget) */
.global-styles,
.eapps-widget-toolbar {
  display: none !important;
}

/* Contact */
#contact {
  background: var(--surface-light);
}

#contact .contact-intro {
  max-width: 750px;
  margin-bottom: 17px;
}

#contact .contact-lead {
  margin-top: 16px;
  font-size: 16px;
  line-height: 24px;
}

#contact .contact-info {
  display: grid;
  gap: 24px;
}

#contact .contact-info li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

#contact .contact-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  margin-top: 2px;
  background: var(--brand);
}

#contact .contact-label {
  display: block;
  padding-bottom: 2px;
  font-size: 10px;
  line-height: 15px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(0, 0, 0, .3);
}

#contact .contact-value {
  display: block;
  font-size: 14px;
  font-weight: 600;
  line-height: 21px;
  color: var(--ink);
  text-decoration: none;
}

#contact a.contact-value:hover {
  color: #6f8a10;
}

#contact .contact-form {
  max-width: 644px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: 0 6px 5px rgba(0, 0, 0, .08);
}

#contact .contact-form-grid {
  --bs-gutter-x: 12px;
  --bs-gutter-y: 16px;
}

#contact .contact-input {
  height: 46px;
  padding: 16px;
  border: 0;
  border-radius: var(--radius);
  background-color: var(--input-bg);
  font-family: var(--font-form);
  font-size: 14px;
  line-height: 14px;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px transparent;
  transition: box-shadow var(--transition);
}

#contact .contact-input::placeholder {
  color: var(--input-text);
  opacity: 1;
}

#contact select.contact-input {
  padding-right: 40px;
  background-image: url("../assets/icons/chevron-down.svg");
  background-position: right 20px center;
  background-size: 10px 6px;
}

#contact select.contact-input:invalid {
  color: var(--input-text);
}

#contact .contact-input:focus {
  box-shadow: inset 0 0 0 1px var(--brand), 0 0 0 3px rgba(177, 205, 68, .25);
}

/* État d'erreur appliqué par js/formulaire.js (.champ-erreur sur le champ) */
#contact .contact-input.champ-erreur {
  box-shadow: inset 0 0 0 1px #dc3545;
}

#contact .contact-input.champ-erreur:focus {
  box-shadow: inset 0 0 0 1px #dc3545, 0 0 0 3px rgba(220, 53, 69, .2);
}

#contact .message-erreur {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  line-height: 16px;
  color: #b02a37;
  text-align: left;
}

#contact .contact-textarea {
  height: 138px;
  resize: vertical;
}

#contact .contact-submit {
  min-height: 46px;
  padding: 16px;
  border: 0;
  font-family: var(--font-form);
  font-weight: 500;
  line-height: 14px;
  letter-spacing: 0;
}

/* Ligne de statut (erreur serveur ou réseau), injectée par js/formulaire.js sous le bouton */
#contact .formulaire-statut {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 20px;
}

#contact .formulaire-statut:empty {
  display: none;
}

#contact .formulaire-statut.is-error {
  color: #b02a37;
  font-weight: 600;
}

/* Points animés de « Envoi en cours… » */
#contact .points-attente::after {
  content: "";
  display: inline-block;
  width: 1.2em;
  text-align: left;
  animation: points-attente 1.2s steps(4, end) infinite;
}

@keyframes points-attente {
  0%   { content: ""; }
  25%  { content: "."; }
  50%  { content: ".."; }
  75%  { content: "..."; }
}

/* Pied de page */
#footer {
  padding: 64px 0;
  background: #000;
  color: #fff;
}

#footer .footer-top {
  min-height: 227px;
}

#footer .footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

#footer .footer-logo {
  width: 177px;
  height: 80px;
  object-fit: contain;
}

#footer .footer-text {
  max-width: 313px;
  font-size: 13px;
  line-height: 21.125px;
  color: rgba(255, 255, 255, .8);
}

#footer .footer-social {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, .2);
  transition: background-color var(--transition);
}

#footer .footer-social:hover {
  background: var(--brand);
}

#footer .footer-heading {
  margin: 0;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  line-height: 15px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
}

#footer .footer-links {
  margin-top: 20px;
}

#footer .footer-links li {
  line-height: 19.5px;
}

#footer .footer-links li + li {
  margin-top: 12.5px; /* Pas de 32px entre les lignes, comme dans le Figma */
}

#footer a {
  font-size: 13px;
  line-height: 19.5px;
  color: rgba(255, 255, 255, .8);
  text-decoration: none;
  transition: color var(--transition);
}

#footer .footer-links a:hover,
#footer .footer-contact a:hover {
  color: var(--brand);
}

#footer .footer-contact {
  margin-top: 20px;
}

#footer .footer-contact dt {
  margin: 16px 0 4px;
  font-size: 10px;
  font-weight: 400;
  line-height: 15px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .4);
}

#footer .footer-contact dt:first-child {
  margin-top: 0;
}

#footer .footer-contact dd {
  height: 24px;
  margin: 0;
  padding-top: 2px;
  line-height: 19.5px;
  word-break: break-word;
}

#footer .footer-bottom {
  height: 53px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, .2);
}

#footer .footer-copy {
  font-size: 14px;
  line-height: 20px;
  color: rgba(255, 255, 255, .7);
}

/* Page de remerciement (merci.html) */
/* Maquette Figma : hero de 900px + barre de pied de page de 66px, contenu aligné sur une colonne de 1280px */
@media (min-width: 1400px) {
  .page-merci .container {
    max-width: 1304px;
  }
}

/* Le hero s'étire pour remplir l'écran au-dessus de la barre de pied de page */
.page-merci {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
}

#merci {
  display: flex;
  flex-direction: column;
  flex: 1 0 auto;
}

#merci-hero {
  position: relative;
  display: flex;
  flex: 1 0 auto;
  align-items: center;
  overflow: hidden;
  min-height: 900px;
  padding: 64px 0;
  background: #1a1a1a;
  isolation: isolate;
}

#merci-hero .merci-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#merci-hero .merci-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  width: 639px;
  max-width: 100%;
  min-height: 408px;
  padding: 24px;
  background: rgba(255, 255, 255, .09);
  backdrop-filter: blur(50px);
  -webkit-backdrop-filter: blur(50px);
  text-align: center;
}

#merci-hero .merci-logo {
  display: block;
  width: 177px;
  height: 80px;
  object-fit: contain;
  transition: transform var(--transition);
}

#merci-hero a:hover .merci-logo {
  transform: scale(1.04);
}

#merci-hero .merci-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  max-width: 531px;
}

#merci-hero .merci-title {
  font-size: 60px;
  font-weight: 900;
  line-height: 73px;
  letter-spacing: -1.4px;
  color: #fff;
}

#merci-hero .merci-lead {
  font-family: "Poppins", var(--font-body);
  font-size: 18px;
  line-height: 25.2px;
  color: rgba(255, 255, 255, .8);
}

#merci-hero .merci-phone {
  padding: 16px;
  border: 0;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: .35px;
  color: #fff;
}

#merci-hero .merci-phone:hover,
#merci-hero .merci-phone:active {
  color: #fff !important;
}

#merci-footer {
  display: flex;
  align-items: center;
  min-height: 66px;
  padding: 17px 0;
  background: var(--brand);
}

#merci-footer .merci-copy {
  font-size: 16px;
  font-weight: 300;
  color: rgba(0, 0, 0, .8);
}

@media (max-width: 991.98px) {
  #merci-hero {
    min-height: 0;
  }

  #merci-hero .merci-card {
    margin: 0 auto;
  }
}

@media (max-width: 575.98px) {
  #merci-hero {
    padding: 40px 0;
  }

  #merci-hero .merci-card {
    min-height: 0;
    padding: 32px 20px;
  }

  #merci-hero .merci-title {
    font-size: 44px;
    line-height: 52px;
  }

  #merci-hero .merci-lead {
    font-size: 16px;
    line-height: 24px;
  }

  #merci-hero .merci-phone {
    width: 100%;
  }

  #merci-footer .merci-copy {
    font-size: 14px;
  }
}

/* ==========================================================================
   Bureau ≥ 1400px — géométrie exacte des colonnes du Figma
   ========================================================================== */
@media (min-width: 1400px) {
  #about .row {
    --bs-gutter-x: 0;
  }

  #about .about-col-media {
    flex: 0 0 625px;
    width: 625px;
  }

  #about .about-col-content {
    flex: 1 0 0;
    width: auto;
    padding-left: 95px;
  }

  #services .services-tabs .nav-item:nth-child(1) {
    flex: 0 0 auto;
  }

  #services .services-tabs .nav-item:nth-child(2) {
    flex: 0 0 330px;
  }

  #services .services-tabs .nav-item:nth-child(3) {
    flex: 0 0 329px;
  }

  #services .services-tabs .nav-item:nth-child(4) {
    flex: 1 0 0;
  }

  #footer .footer-top {
    --bs-gutter-x: 0;
  }

  #footer .footer-brand {
    flex: 0 0 909px;
    width: 909px;
  }

  #footer .footer-nav {
    flex: 0 0 369.75px;
    width: 369.75px;
    margin-left: 0;
  }

  #footer .footer-contact-col {
    flex: 1 0 0;
    width: auto;
  }
}

/* ==========================================================================
   Adaptatif (responsive)
   ========================================================================== */

/* Portable < 1400px */
@media (max-width: 1399.98px) {
  #about .about-content {
    padding-left: 48px;
  }

  #services .services-tabs {
    justify-content: space-between;
  }

  #services .services-tab {
    font-size: 18px;
  }
}

/* Menu replié (le menu complet a besoin d'environ 1200px) */
@media (max-width: 1199.98px) {
  :root {
    --header-h: 84px;
  }

  #header .navbar {
    min-height: var(--header-h);
    padding: 6px 0;
  }

  #header .header-logo {
    width: 160px;
    height: 72px;
  }

  #header .header-toggler {
    display: inline-flex;
  }

  #header .header-menu {
    gap: 0;
  }

  #header .navbar-collapse {
    padding: 16px 0 20px;
  }

  #header .header-menu .nav-link {
    display: inline-block;
    padding: 10px 0;
  }

  #header .header-actions {
    margin-top: 12px;
  }

  #services .services-tab {
    font-size: 16px;
  }
}

/* Tablette ≤ 992px */
@media (max-width: 991.98px) {
  .section-py {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .section-title {
    font-size: 34px;
    line-height: 42px;
  }

  #hero {
    min-height: 0;
    padding: 120px 0 110px;
  }

  #hero .hero-title {
    font-size: 48px;
    line-height: 58px;
  }

  #hero .hero-lead {
    margin-bottom: 40px;
  }

  /* 2 colonnes : séparateur vertical seulement entre les colonnes,
     séparateur horizontal seulement entre les rangées */
  #highlights .highlights-item {
    min-height: 0;
    padding: 28px 24px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .05);
  }

  #highlights .highlights-item:nth-child(odd) {
    padding-left: 0;
    border-right: 1px solid rgba(255, 255, 255, .05);
  }

  #highlights .highlights-item:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  #about .about-image {
    height: 560px;
  }

  #about .about-content {
    max-width: none;
    padding-left: 0;
  }

  #bodywork {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding-bottom: 0;
  }

  #bodywork .bodywork-content {
    max-width: none;
  }

  #bodywork .bodywork-visual {
    position: relative;
    order: 2;
    height: 62vw;
    margin-top: 40px;
  }

  #bodywork .bodywork-shape {
    top: 0;
    left: 18%;
    width: 82%;
    height: 100%;
  }

  #bodywork .bodywork-image {
    bottom: -12vw;
    left: -4%;
    width: 108%;
  }

  #services .services-tabs {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 12px;
    overflow: visible;
  }

  #services .services-tab {
    width: auto;
  }

  #why-us {
    min-height: 0;
    padding-bottom: 0;
  }

  #why-us .why-us-content {
    max-width: none;
  }

  #why-us .why-us-image {
    position: static;
    display: block;
    width: 100%;
    height: 440px;
    margin-top: 56px;
  }

  #process .process-steps {
    margin-bottom: 48px;
  }

  #process .process-steps > li:nth-child(2)::after {
    display: none;
  }

  #contact .contact-form {
    max-width: none;
  }

  #footer .footer-top {
    min-height: 0;
  }
}

/* Petite tablette ≤ 768px */
@media (max-width: 767.98px) {
  .section-py {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .section-title {
    font-size: 30px;
    line-height: 38px;
  }

  #hero {
    padding: 96px 0 88px;
    text-align: center;
  }

  #hero .hero-content {
    margin: 0 auto;
  }

  #hero .hero-title {
    font-size: 40px;
    line-height: 48px;
  }

  #hero .hero-badge {
    letter-spacing: 2.5px;
  }

  #hero .hero-actions {
    justify-content: center;
  }

  #about .about-image {
    height: 460px;
  }

  #about .about-badge {
    width: 190px;
    height: 128px;
  }

  #about .about-badge-number {
    font-size: 56px;
    line-height: 60px;
  }

  #about .about-badge-label {
    font-size: 16px;
    line-height: 24px;
  }

  #services .services-tab {
    padding: 11px 13px;
    font-size: 15px;
  }

  #services .services-card {
    height: 140px;
  }

  #services .services-card-title {
    font-size: 16px;
    line-height: 24px;
  }

  #why-us .why-us-content {
    gap: 36px;
  }

  #why-us .why-us-image {
    height: 340px;
  }

  #process .process-steps > li::after {
    display: none;
  }

  #testimonials .testimonials-rating {
    padding: 12px 16px;
  }

  #footer {
    text-align: center;
  }

  #footer .footer-brand {
    align-items: center;
  }

  #footer .footer-text {
    margin: 0 auto;
  }
}

/* Mobile ≤ 576px */
@media (max-width: 575.98px) {
  :root {
    --header-h: 76px;
  }

  .section-py {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .section-title {
    font-size: 26px;
    line-height: 32px;
  }

  .section-tag {
    font-size: 14px;
    padding: 6px 14px;
  }

  .btn-lg-brand,
  #header .header-actions .btn {
    width: 100%;
  }

  #header .header-logo {
    width: 140px;
    height: 64px;
  }

  #hero {
    padding: 64px 0;
  }

  #hero .hero-title {
    font-size: 32px;
    line-height: 40px;
  }

  #hero .hero-lead {
    margin-bottom: 32px;
    font-size: 16px;
  }

  #hero .hero-badge {
    padding: 8px 12px;
    font-size: 10px;
    letter-spacing: 1.5px;
  }

  /* 1 colonne : contenu aligné sur la gouttière de la page, sans bordure
     verticale ni séparateur sous le dernier élément */
  #highlights .highlights-item,
  #highlights .highlights-item:nth-child(odd) {
    padding: 20px 0;
    border-right: 0;
  }

  #highlights .highlights-item:nth-last-child(2) {
    border-bottom: 1px solid rgba(255, 255, 255, .05);
  }

  #highlights .highlights-item:last-child {
    border-bottom: 0;
  }

  #about .about-image {
    height: 380px;
  }

  #about .about-content {
    gap: 22px;
  }

  #about .about-badge {
    right: 12px;
    bottom: 12px;
    width: 150px;
    height: 104px;
  }

  #about .about-badge-number {
    font-size: 44px;
    line-height: 48px;
  }

  #about .about-badge-label {
    font-size: 14px;
    line-height: 20px;
  }

  #bodywork .bodywork-content {
    gap: 20px;
  }

  #services .services-header,
  #services .services-tabs-wrap {
    margin-bottom: 32px;
  }

  #services .services-tabs {
    flex-direction: column;
    gap: 8px;
    overflow: visible;
  }

  #services .services-tab {
    width: 100%;
    white-space: normal;
  }

  #services .tab-content .col-6 {
    width: 100%;
  }

  #services .services-card {
    flex-direction: row;
    justify-content: flex-start;
    height: auto;
    padding: 18px 20px;
    text-align: left;
  }

  /* Cartes en ligne sur mobile : pas de titre forcé sur deux lignes */
  #services #pane-hydraulics .services-card-title {
    min-height: 0;
  }

  #services .services-card-title br {
    display: none;
  }

  #why-us .why-us-item-text {
    font-size: 15px;
    line-height: 24px;
  }

  #why-us .why-us-image {
    height: 260px;
    margin-top: 40px;
  }

  #testimonials .testimonials-rating {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }

  #contact .contact-form {
    padding: 16px;
  }

  #footer .footer-links,
  #footer .footer-contact {
    text-align: center;
  }

  #footer .footer-nav,
  #footer .footer-contact-col {
    width: 100%;
  }

  #footer .footer-bottom {
    height: auto;
  }
}

/* Préférences de mouvement réduit */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  #contact .points-attente::after {
    content: "...";
    animation: none;
  }

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }

  .reveal-ready [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
