/* Polices hébergées sur le site : aucune requête vers Google, donc aucune
   adresse IP de visiteur transmise à un tiers (RGPD). */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/archivo-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/archivo-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 800; font-display: swap; src: url("/assets/fonts/archivo-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }

/* ==========================================================================
   Truck Solution — feuille de style principale
   Palette dérivée du logo officiel : noir atelier, rouge de marque, blanc.
   Toutes les couleurs, polices et espacements sont pilotés par les variables
   ci-dessous : changer une valeur ici la change sur tout le site.
   ========================================================================== */

:root {
  /* Couleurs — reprises du logo (rouge #CC0000, noir, blanc) */
  --ink:        #0C0C0E;   /* fond général */
  --surface:    #141519;   /* bandeaux et cartes */
  --surface-2:  #1B1D22;   /* survols et champs */
  --line:       #2A2D34;   /* filets et contours */
  --fg:         #F2F3F5;   /* texte principal */
  --muted:      #9AA1AB;   /* texte secondaire */
  --red:        #CC0000;   /* rouge de marque */
  --red-bright: #E31B1B;   /* survol */
  --red-ink:    #FFFFFF;   /* texte sur rouge */
  --wa:         #25D366;   /* vert WhatsApp officiel */
  --wa-dark:    #1EBE5A;

  /* Polices */
  --font-display: Archivo, "Arial Narrow", system-ui, sans-serif;
  --font-sans:    Inter, system-ui, -apple-system, sans-serif;
  --font-tech:    "IBM Plex Mono", ui-monospace, monospace;

  /* Mise en page */
  --container: 1180px;
  --gutter: 24px;
  --section-y: 84px;
  --header-h: 74px;
}

/* --- Base ---------------------------------------------------------------- */

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

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

a { color: inherit; text-decoration: none; }

/* Visible au clavier uniquement : l'accessibilité sans bruit visuel. */
:focus-visible { outline: 2px solid var(--red-bright); outline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin: 0;
}

h1 { font-size: clamp(34px, 5.4vw, 54px); font-weight: 800; }
h2 { font-size: clamp(25px, 3.5vw, 34px); }
h3 { font-size: 19px; line-height: 1.25; }

p { margin: 0; }

/* Lien d'évitement pour la navigation au clavier et les lecteurs d'écran. */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--red); color: #fff; padding: 12px 18px; font-weight: 600;
}
.skip:focus { left: 0; }

/* --- Utilitaires --------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }

.band {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

/* Petit label technique en majuscules espacées */
.eyebrow {
  font-family: var(--font-tech);
  font-size: 12px;
  line-height: 1.35;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red-bright);
}

.lead {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.4;
  color: #DCDEE2;
}

.muted { color: var(--muted); }

/* Filet de section : court trait rouge puis ligne neutre. */
.rule {
  height: 3px;
  border: 0;
  margin: 20px 0 40px;
  background:
    linear-gradient(to right, var(--red) 0 72px, var(--line) 72px 100%);
}

/* --- Boutons ------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--red);
  border-color: var(--red);
  color: var(--red-ink);
}
.btn-primary:hover { background: var(--red-bright); border-color: var(--red-bright); }

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--fg);
}
.btn-ghost:hover { border-color: var(--red); color: #fff; background: var(--surface-2); }

.btn-wa {
  background: var(--wa);
  border-color: var(--wa);
  color: #06301A;
}
.btn-wa:hover { background: var(--wa-dark); border-color: var(--wa-dark); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* --- En-tête ------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(12, 12, 14, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}
.logo img { height: 40px; width: auto; }

.logo-text { display: flex; flex-direction: column; gap: 1px; }

.logo-word {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  font-style: italic;
  letter-spacing: -0.02em;
  line-height: 1;
  white-space: nowrap;
}
.logo-word span { color: var(--red-bright); }

.logo-place {
  font-family: var(--font-tech);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

/* La navigation ne se replie jamais sur deux lignes : chaque élément garde
   son texte d'un seul tenant et le menu passe en tiroir avant d'être à
   l'étroit. C'est ce qui cassait l'alignement de la version néerlandaise,
   dont les intitulés sont plus longs. */
.nav {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 18px;
  margin-left: auto;
  font-size: 14px;
  font-weight: 500;
}
.nav-links { display: flex; align-items: center; flex-wrap: nowrap; gap: 20px; }
.nav-links a {
  color: var(--muted);
  white-space: nowrap;
  padding-block: 6px;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.nav-links a:hover { color: var(--fg); }
.nav-links a[aria-current="page"] { color: var(--fg); border-bottom-color: var(--red); }

.lang {
  display: flex;
  gap: 2px;
  flex-shrink: 0;
  font-family: var(--font-tech);
  font-size: 11px;
  text-transform: uppercase;
}
.lang a { color: var(--muted); padding: 4px 6px; border: 1px solid transparent; }
.lang a:hover { color: var(--fg); }
.lang a[aria-current="true"] { color: #fff; border-color: var(--line); background: var(--surface-2); }

.nav-phone { flex-shrink: 0; padding: 12px 18px; }
.nav-wa { flex-shrink: 0; padding: 12px 14px; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--fg);
  padding: 9px;
  border-radius: 2px;
  cursor: pointer;
  flex-shrink: 0;
}

/* --- Hero ---------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 86dvh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

/* Dégradé sombre : garde le texte lisible sur la photo */
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(12, 12, 14, 0.97) 0%,
    rgba(12, 12, 14, 0.82) 36%,
    rgba(12, 12, 14, 0.42) 70%,
    rgba(12, 12, 14, 0.62) 100%
  );
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding-block: 60px;
  max-width: 820px;
}

.hero h1 { margin-top: 16px; }
.hero h1 em { font-style: normal; color: var(--red-bright); }
.hero .lead { margin-top: 18px; }
.hero-text { margin-top: 18px; color: var(--muted); max-width: 640px; }

/* --- Bandeau d'informations pratiques ------------------------------------ */

.infobar .container {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 40px;
  padding-block: 18px;
}

.infobar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
}
.infobar-item a:hover { color: var(--fg); }
.infobar-item svg { color: var(--red-bright); flex-shrink: 0; }
.infobar-item.is-tech { font-family: var(--font-tech); font-size: 12px; }

/* --- Grilles et cartes ---------------------------------------------------- */

.grid {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative;
  background: var(--ink);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background-color .18s ease;
}
/* Liseré rouge révélé au survol : rappelle le logo sans alourdir la carte. */
.card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  height: 3px; width: 0;
  background: var(--red);
  transition: width .22s ease;
}
a.card:hover { background: var(--surface); }
a.card:hover::before { width: 100%; }

.card-num {
  font-family: var(--font-tech);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--red-bright);
}

.card p { font-size: 14.5px; color: var(--muted); }

.card-link {
  margin-top: auto;
  padding-top: 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--red-bright);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.card-link svg { transition: transform .18s ease; }
a.card:hover .card-link svg, .card-link:hover svg { transform: translateX(4px); }

/* --- Bandeau d'appel à l'action ------------------------------------------ */

.cta { text-align: center; }
.cta p { margin-top: 12px; color: var(--muted); }
.cta .btn-row { justify-content: center; align-items: center; }

.cta-phone {
  font-family: var(--font-tech);
  font-size: 14px;
  color: var(--fg);
  padding: 14px 8px;
}
.cta-phone:hover { color: var(--red-bright); }

/* --- Pied de page -------------------------------------------------------- */

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding-block: 56px 28px;
}

.footer-logo { height: 62px; width: auto; margin-bottom: 14px; }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}

.footer-grid h2 {
  font-size: 12px;
  font-family: var(--font-tech);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg);
  margin-bottom: 16px;
}

.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-grid li, .footer-grid p { font-size: 14px; color: var(--muted); }
.footer-grid a:hover { color: var(--red-bright); }

.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
}
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-bottom a:hover { color: var(--red-bright); }

/* --- En-tête des pages intérieures --------------------------------------- */

.page-head {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  padding-block: 64px 48px;
}
.page-head h1 { margin-top: 14px; max-width: 920px; }
.page-head .lead { margin-top: 16px; max-width: 780px; color: var(--muted); }

/* --- Texte courant (à propos, pages juridiques) -------------------------- */

.prose { display: grid; gap: 18px; max-width: 760px; }
.prose p { color: var(--muted); font-size: 16px; line-height: 1.7; }

.narrow { max-width: 780px; }

/* --- Formulaires --------------------------------------------------------- */

.form { display: grid; gap: 16px; margin-top: 28px; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.field { display: grid; gap: 8px; }
.field > span {
  font-family: var(--font-tech);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 14px;
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 15px;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(204, 0, 0, 0.16);
}

.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--muted);
}
.check input { margin-top: 3px; accent-color: var(--red); }

/* Champ anti-robot : invisible pour les visiteurs, rempli par les automates */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.form .btn { justify-self: start; }

.form-status { font-size: 14px; min-height: 1em; }
.form-status.is-ok { color: var(--wa); }
.form-status.is-fail { color: #FF6B6B; }

/* --- Badges de disponibilité --------------------------------------------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-tech);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.badge::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: currentColor;
}
.badge.is-on { color: var(--wa); }
.badge.is-off { color: var(--muted); }

/* --- Cartes camion et pièce ---------------------------------------------- */

.truck, .part {
  background: var(--ink);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.part[hidden], .truck[hidden] { display: none; }

.media {
  margin: -26px -26px 14px;
  aspect-ratio: 4 / 3;
  background: var(--surface-2);
  overflow: hidden;
}
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.truck:hover .media img, .part:hover .media img { transform: scale(1.04); }
/* Image absente : un aplat discret plutôt qu'un cadre vide. */
.media.is-empty {
  display: grid; place-items: center;
  color: var(--line);
}

.part-cat {
  font-family: var(--font-tech);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.specs { margin: 8px 0 0; display: grid; gap: 8px; }
.specs > div { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px dotted var(--line); padding-bottom: 6px; }
.specs dt { font-family: var(--font-tech); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.specs dd { margin: 0; font-size: 14px; font-family: var(--font-tech); text-align: right; }

.price {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin-top: 8px;
}
.price small { font-family: var(--font-tech); font-size: 11px; font-weight: 400; color: var(--muted); letter-spacing: 0.1em; }

.part-actions, .truck-actions { margin-top: auto; padding-top: 16px; display: grid; gap: 8px; }
.part .add.is-added { border-color: var(--wa); color: var(--wa); }

/* --- Barre de filtres ----------------------------------------------------- */

.filters {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}
.filters input, .filters select {
  padding: 13px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 14px;
}
.filters input:focus, .filters select:focus { outline: none; border-color: var(--red); }

#count { margin-bottom: 16px; }

.empty-state { padding: 48px 0; color: var(--muted); }

/* --- Panier de devis ------------------------------------------------------ */

.cart { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.cart li { background: var(--ink); padding: 16px 18px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.cart .price { margin: 0; font-size: 16px; margin-left: auto; }

.link-btn {
  background: none;
  border: 0;
  color: var(--muted);
  font-family: var(--font-tech);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 6px;
}
.link-btn:hover { color: var(--red-bright); }

/* --- Galerie -------------------------------------------------------------- */

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery figure { margin: 0; display: grid; gap: 10px; }
.gallery img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border: 1px solid var(--line);
  cursor: zoom-in;
  transition: border-color .2s ease, opacity .2s ease;
}
.gallery img:hover { border-color: var(--red); opacity: .92; }
.gallery figcaption { font-size: 13px; color: var(--muted); display: flex; gap: 8px; }

/* Visionneuse plein écran de la galerie */
.lightbox {
  position: fixed; inset: 0; z-index: 90;
  display: none; place-items: center;
  background: rgba(6, 6, 8, .94);
  padding: 24px;
}
.lightbox.is-open { display: grid; }
.lightbox img { max-width: min(1100px, 94vw); max-height: 86vh; object-fit: contain; }
.lightbox-close {
  position: absolute; top: 18px; right: 18px;
  background: none; border: 1px solid var(--line); color: #fff;
  width: 44px; height: 44px; font-size: 22px; cursor: pointer; border-radius: 2px;
}
.lightbox-close:hover { border-color: var(--red); }

/* --- Page contact --------------------------------------------------------- */

.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: start; }
.contact-info { display: grid; gap: 6px; }
.contact-info h2 {
  font-family: var(--font-tech);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red-bright);
  margin-top: 22px;
}
.contact-info h2:first-child { margin-top: 0; }
.contact-info p { font-size: 15px; line-height: 1.6; }
.contact-info .is-tech { font-family: var(--font-tech); font-size: 12px; color: var(--muted); }

.map-frame {
  margin-top: 28px;
  border: 1px solid var(--line);
  width: 100%;
  aspect-ratio: 16 / 9;
  filter: grayscale(1) contrast(1.05) invert(.92) hue-rotate(180deg);
}

/* --- WhatsApp : bulle flottante ------------------------------------------- */

.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--wa);
  color: #fff;
  box-shadow: 0 8px 26px rgba(0, 0, 0, .45);
  transition: transform .2s ease, background-color .2s ease;
}
.wa-float:hover { background: var(--wa-dark); transform: scale(1.06); }
.wa-float span {
  position: absolute; right: 68px;
  background: var(--surface); border: 1px solid var(--line);
  color: var(--fg); font-size: 13px; font-weight: 500;
  padding: 8px 12px; border-radius: 2px; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .2s ease;
}
.wa-float:hover span { opacity: 1; }

/* --- Barre d'action mobile ------------------------------------------------ */
/* Appeler, écrire sur WhatsApp ou prendre rendez-vous : les trois gestes
   utiles d'un client pressé, toujours à portée de pouce. */
.action-bar {
  display: none;
  position: fixed;
  inset: auto 0 0 0;
  z-index: 70;
  background: rgba(12, 12, 14, .97);
  border-top: 1px solid var(--line);
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.action-bar a {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 7px 4px;
  font-size: 11px; font-weight: 600;
  color: var(--muted);
  border-radius: 2px;
}
.action-bar a svg { width: 19px; height: 19px; }
.action-bar .is-call { color: var(--fg); }
.action-bar .is-wa { color: var(--wa); }
.action-bar .is-book { color: var(--red-bright); }

/* --- Responsive ---------------------------------------------------------- */

/* Trois paliers, calés sur le néerlandais dont les intitulés sont les plus
   longs : numéro complet, puis icône seule, puis menu en tiroir. La barre
   tient ainsi toujours sur une ligne, quelle que soit la langue. */
@media (max-width: 1420px) {
  .nav { gap: 14px; }
  .nav-links { gap: 16px; }
  .nav-phone span { display: none; }
  .nav-phone { padding: 12px 14px; }
}

@media (max-width: 1150px) {
  /* Les intitulés néerlandais sont les plus longs : le tiroir s'ouvre tôt
     pour que la barre reste sur une seule ligne dans les trois langues. */
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-links.is-open {
    display: flex;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--ink);
    border-bottom: 1px solid var(--line);
    padding: 4px var(--gutter) 14px;
  }
  .nav-links.is-open a { padding: 13px 0; border-bottom: 1px solid var(--line); border-left: 2px solid transparent; }
  .nav-links.is-open a[aria-current="page"] { border-bottom-color: var(--line); border-left-color: var(--red); padding-left: 12px; }
  .nav-links.is-open a:last-child { border-bottom: 0; }
}

@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .filters { grid-template-columns: 1fr 1fr; }
  .filters input { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .logo-place { display: none; }
  .nav-phone { display: none; }   /* repris par la barre d'action en bas */
  .action-bar { display: grid; }
  .wa-float { display: none; }
  body { padding-bottom: 68px; }
}

@media (max-width: 580px) {
  /* WhatsApp est déjà dans la barre d'action en bas : inutile de le doubler
     dans un en-tête où chaque pixel compte. */
  .nav-wa { display: none; }
  .nav { gap: 10px; }
  .lang a { padding: 4px 5px; }
  .logo { gap: 8px; }
  .logo img { height: 30px; }
}

@media (max-width: 640px) {
  :root { --section-y: 58px; --gutter: 18px; }
  .grid-2, .grid-3, .grid-4, .footer-grid { grid-template-columns: 1fr; }
  .hero { min-height: 76dvh; }
  .gallery { grid-template-columns: 1fr; }
  .field-row, .filters { grid-template-columns: 1fr; }
  .page-head { padding-block: 44px 36px; }
  .logo img { height: 30px; }
  .logo-word { font-size: 16px; }
  .btn-row .btn { flex: 1 1 auto; }
}

@media print {
  .site-header, .action-bar, .wa-float, .site-footer nav { display: none; }
  body { background: #fff; color: #000; }
}

/* Très petits écrans (iPhone SE et assimilés) : on resserre juste assez
   pour que l'en-tête tienne sans défilement horizontal. */
@media (max-width: 400px) {
  :root { --gutter: 14px; }
  .logo-word { font-size: 15px; }
  .lang { font-size: 10px; }
}

/* « Prix sur demande » : présent mais discret, l'appel à l'action reste le bouton. */
.price.is-request { font-family: var(--font-tech); font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* Grille de 3 avec un nombre d'éléments qui laisse un trou : la dernière carte s'étire. */
@media (min-width: 961px) {
  .grid-3 > :last-child:nth-child(3n+2) { grid-column: span 2; }
  .grid-3 > :last-child:nth-child(3n+1) { grid-column: span 3; }
}

/* Titres dans les pages juridiques */
.prose h2 { font-size: 20px; margin-top: 18px; }
.prose a { color: var(--fg); text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 3px; }
.prose strong { color: var(--fg); font-weight: 600; }

@media (min-width: 641px) and (max-width: 960px) {
  .grid-3 > :last-child:nth-child(2n+1) { grid-column: span 2; }
}

/* --- Menu Onderhoud : sous-menu des services ------------------------------ */
.nav-group { position: relative; display: flex; align-items: center; }
.nav-parent::after {
  content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 7px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
}
.nav-group.is-active > .nav-parent { color: var(--fg); border-bottom-color: var(--red); }
.nav-sub {
  position: absolute; top: 100%; left: -14px; z-index: 60;
  min-width: 230px; padding: 6px 0;
  display: none; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 14px 30px rgba(0,0,0,.45);
}
.nav-sub a { padding: 10px 16px !important; border-bottom: 0 !important; border-left: 2px solid transparent; }
.nav-sub a:hover { background: var(--surface-2); }
.nav-sub a[aria-current="page"] { color: var(--fg); border-left-color: var(--red); }
.nav-group:hover .nav-sub, .nav-group:focus-within .nav-sub { display: flex; }

@media (max-width: 1150px) {
  .nav-links.is-open .nav-group { flex-direction: column; align-items: stretch; }
  .nav-links.is-open .nav-parent { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .nav-links.is-open .nav-parent::after { display: none; }
  .nav-links.is-open .nav-sub {
    position: static; display: flex; min-width: 0; padding: 0;
    background: none; border: 0; box-shadow: none;
  }
  .nav-links.is-open .nav-sub a { padding: 11px 0 11px 18px !important; border-bottom: 1px solid var(--line) !important; font-size: 13.5px; }
}

/* Étapes numérotées des pages de service */
.steps { counter-reset: st; list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; max-width: 760px; }
.steps li { counter-increment: st; position: relative; padding: 4px 0 4px 52px; color: var(--muted); line-height: 1.6; }
.steps li::before {
  content: counter(st, decimal-leading-zero);
  position: absolute; left: 0; top: 2px;
  font-family: var(--font-tech); font-size: 13px; color: var(--red-bright);
  border: 1px solid var(--line); padding: 3px 7px;
}
