/* =============================================================
   CarGo Auto DZ — feuille de style unique (accueil + fiche véhicule)

   Identité : claire, lumineuse et sobre. Le bleu est moyen et doux, jamais
   marine ; les photos des voitures portent l'émotion, l'interface reste en
   retrait. Tous les composants utilisent les jetons de la section 1.

   Sommaire
     1. Jetons (couleurs, typo, espacements, rayons, ombres, mouvements)
     2. Base
     3. Mise en page
     4. Boutons, liens, champs
     5. En-tête et navigation
     6. Haut de page et vitrine de véhicules
     7. Catalogue : recherche, filtres, cartes, états
     8. Sur commande, devis, services, contact
     9. Pied de page, boutons flottants, notifications
    10. Fiche véhicule : galerie, informations, visionneuse
    11. Adaptations (tablette, mobile)
    12. Mouvement réduit, impression
   ============================================================= */

/* ---------- 1. Jetons ---------- */
:root {
  /* Bleu de marque : #4A90E2 pour les accents, icônes et focus ; une nuance plus
     soutenue (#2F72C4, contraste 4,9:1 sur blanc) pour le texte et les boutons. */
  --blue-50: #F3F8FE;
  --blue-100: #EAF3FF;
  --blue-200: #D4E6FB;
  --blue-300: #A9CBF3;
  --blue-500: #4A90E2;
  --blue-600: #2F72C4;
  --blue-700: #255EA6;

  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --surface-2: #F1F5F9;
  --text: #263445;
  --text-2: #5A6B80;           /* 5,4:1 sur blanc */
  --text-3: #66768A;           /* textes indicatifs, 4,6:1 */
  --border: #E2E8F0;
  --border-2: #CBD5E1;
  --control: #7D8DA3;          /* bord des champs : contraste ≥ 3:1 */

  --ok: #17794D;    --ok-bg: #E7F6EE;
  --warn: #9A5B00;  --warn-bg: #FFF3DC;
  --bad: #B42318;   --bad-bg: #FDECEA;
  --info: var(--blue-700); --info-bg: var(--blue-100);
  --wa: #12803F;               /* vert WhatsApp assombri : texte blanc à 5:1 */

  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-ar: 'IBM Plex Sans Arabic', 'Plus Jakarta Sans', system-ui, sans-serif;

  --fs-xs: 0.8125rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.3125rem;
  --fs-xl: clamp(1.5rem, 1.2rem + 1.1vw, 1.875rem);
  --fs-2xl: clamp(1.75rem, 1.35rem + 1.7vw, 2.5rem);
  --fs-3xl: clamp(2rem, 1.45rem + 2.1vw, 3.05rem);

  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px;
  --sp-6: 32px; --sp-7: 48px; --sp-8: 64px; --sp-9: 96px;
  --section: clamp(56px, 5vw + 32px, 104px);

  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 24px; --r-pill: 999px;

  --sh-1: 0 1px 2px rgba(38, 52, 69, .06), 0 1px 1px rgba(38, 52, 69, .04);
  --sh-2: 0 6px 18px -6px rgba(38, 52, 69, .12), 0 2px 4px -2px rgba(38, 52, 69, .06);
  --sh-3: 0 22px 48px -18px rgba(38, 52, 69, .24);

  --t-fast: 150ms ease;
  --t: 240ms cubic-bezier(.2, .7, .2, 1);

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 68px;
}
:root[lang="ar"] { --font: var(--font-ar); }

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--text);
  font: 400 var(--fs-base)/1.6 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
svg { flex: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; font-weight: 700; letter-spacing: -0.015em; color: var(--text); }
:root[lang="ar"] :is(h1, h2, h3, h4) { letter-spacing: 0; line-height: 1.4; }
h1 { font-size: var(--fs-3xl); font-weight: 800; letter-spacing: -0.025em; }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-md); font-weight: 650; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--blue-500); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--blue-200); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ltr { direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] .flip-rtl { transform: scaleX(-1); }
.muted { color: var(--text-2); }
.no-scroll { overflow: hidden; }

.skip-link {
  position: absolute; inset-inline-start: 12px; top: -60px; z-index: 1000; padding: 10px 16px; border-radius: var(--r-sm);
  background: var(--blue-600); color: #fff; font-weight: 600; text-decoration: none; transition: top var(--t-fast);
}
.skip-link:focus { top: 12px; }

/* ---------- 3. Mise en page ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section-tint { background: var(--surface); border-block: 1px solid var(--border); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--sp-4) var(--sp-6); margin-bottom: var(--sp-6); }
.section-head > p { color: var(--text-2); max-width: 60ch; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: var(--sp-3);
  font-size: var(--fs-sm); font-weight: 650; letter-spacing: .02em; color: var(--blue-600);
}
.eyebrow::before { content: ''; width: 18px; height: 2px; border-radius: 2px; background: var(--blue-500); }
.lead { font-size: var(--fs-md); color: var(--text-2); max-width: 58ch; }

/* ---------- 4. Boutons, liens, champs ---------- */
.btn {
  --btn-bg: var(--surface); --btn-fg: var(--text); --btn-bd: var(--border-2);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border: 1px solid var(--btn-bd); border-radius: var(--r-md);
  background: var(--btn-bg); color: var(--btn-fg); font-size: var(--fs-base); font-weight: 650; line-height: 1.1;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color var(--t-fast), border-color var(--t-fast), color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast);
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn:active { transform: translateY(1px); }
.btn-primary { --btn-bg: var(--blue-600); --btn-fg: #fff; --btn-bd: var(--blue-600); box-shadow: 0 8px 18px -10px rgba(47, 114, 196, .8); }
.btn-primary:hover { --btn-bg: var(--blue-700); --btn-bd: var(--blue-700); }
.btn-secondary:hover { --btn-bd: var(--blue-500); --btn-fg: var(--blue-700); }
.btn-soft { --btn-bg: var(--blue-100); --btn-fg: var(--blue-700); --btn-bd: transparent; }
.btn-soft:hover { --btn-bg: var(--blue-200); }
.btn-wa { --btn-bg: var(--wa); --btn-fg: #fff; --btn-bd: var(--wa); }
.btn-wa:hover { --btn-bg: #0E6B34; --btn-bd: #0E6B34; }
.btn-wa svg { fill: currentColor; stroke: none; }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: var(--fs-sm); border-radius: 10px; }
.btn-lg { min-height: 52px; padding: 0 24px; font-size: 1.0625rem; }
.btn-block { width: 100%; }
.btn.is-loading { color: transparent !important; pointer-events: none; }
.btn.is-loading svg { opacity: 0; }
.btn.is-loading::after {
  content: ''; position: absolute; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--btn-fg); border-right-color: transparent; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); }

.icon-btn {
  display: inline-grid; place-items: center; width: 46px; height: 46px; padding: 0; border: 1px solid var(--border-2); border-radius: var(--r-md);
  background: var(--surface); color: var(--text); transition: border-color var(--t-fast), color var(--t-fast), background-color var(--t-fast);
}
.icon-btn:hover { border-color: var(--blue-500); color: var(--blue-700); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; color: var(--blue-600); text-decoration: none; }
.link-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--t-fast); }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 3px; }

.input, select {
  width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--control); border-radius: var(--r-md);
  background-color: var(--surface); color: var(--text); font-size: var(--fs-base); line-height: 1.4;
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background-color var(--t-fast);
}
textarea.input { min-height: 104px; resize: vertical; }
.input::placeholder { color: var(--text-3); }
.input:hover, select:hover { border-color: var(--text-2); }
.input:focus, select:focus { outline: none; border-color: var(--blue-600); box-shadow: 0 0 0 4px rgba(74, 144, 226, .24); }
select {
  appearance: none; padding-inline-end: 42px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235A6B80' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: 18px; background-position: right 12px center;
}
[dir="rtl"] select { background-position: left 12px center; }
select.is-set { border-color: var(--blue-600); background-color: var(--blue-50); font-weight: 600; }

.field { display: grid; gap: 6px; align-content: start; }
.field-label, .field > label { font-size: var(--fs-sm); font-weight: 650; color: var(--text); }
.field .opt { font-weight: 400; color: var(--text-2); }
.field-error { display: none; align-items: center; gap: 6px; font-size: var(--fs-sm); font-weight: 550; color: var(--bad); }
.field-error::before { content: '!'; flex: none; display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--bad); color: #fff; font-size: 11px; font-weight: 800; }
.field.invalid .input { border-color: var(--bad); }
.field.invalid .input:focus { box-shadow: 0 0 0 4px rgba(180, 35, 24, .16); }
.field.invalid .field-error { display: flex; }

/* ---------- 5. En-tête et navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: rgba(255, 255, 255, .9); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--border); transition: box-shadow var(--t);
}
.site-header.scrolled { box-shadow: 0 10px 26px -24px rgba(38, 52, 69, .7); }
.header-in { height: 100%; display: flex; align-items: center; gap: var(--sp-5); }
.brand { display: inline-flex; align-items: center; gap: 10px; margin-inline-end: auto; text-decoration: none; min-width: 0; border-radius: var(--r-sm); }
.brand-mark {
  flex: none; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px;
  background: linear-gradient(145deg, var(--blue-500), var(--blue-600)); color: #fff; font-weight: 800; font-size: 19px; line-height: 1;
}
.brand-name { font-weight: 750; font-size: 1.0625rem; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.main-nav { display: flex; align-items: center; gap: 2px; }
.main-nav > a {
  position: relative; padding: 10px 12px; border-radius: 10px; font-weight: 550; font-size: .9375rem; color: var(--text-2);
  text-decoration: none; transition: color var(--t-fast), background-color var(--t-fast);
}
.main-nav > a:hover { color: var(--text); background: var(--surface-2); }
.main-nav > a.active { color: var(--blue-700); }
.main-nav > a.active::after { content: ''; position: absolute; inset-inline: 12px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--blue-500); }
.nav-extra { display: none; }
.header-actions { display: flex; align-items: center; gap: var(--sp-2); }
.menu-toggle { display: none; color: var(--text); }

.lang-switch { display: inline-flex; padding: 3px; border-radius: 11px; background: var(--surface-2); border: 1px solid var(--border); }
.lang-switch button {
  min-width: 38px; height: 34px; padding: 0 8px; border: 0; border-radius: 8px; background: transparent;
  font-size: var(--fs-xs); font-weight: 700; color: var(--text-2); transition: background-color var(--t-fast), color var(--t-fast);
}
.lang-switch button[lang="ar"] { font-family: var(--font-ar); font-size: 15px; }
.lang-switch button:hover { color: var(--text); }
.lang-switch button.active { background: var(--surface); color: var(--blue-700); box-shadow: var(--sh-1); }

/* ---------- 6. Haut de page ---------- */
.hero { padding-block: clamp(28px, 4vw, 64px) clamp(44px, 5vw, 80px); background: linear-gradient(180deg, var(--blue-100) 0%, var(--bg) 100%); }
.hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); align-items: center; gap: clamp(28px, 4vw, 64px); }
.hero-copy h1 { max-width: 18ch; }
.hero-lead { margin-top: var(--sp-4); font-size: var(--fs-md); color: var(--text-2); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-6); }
.hero-facts { display: flex; flex-wrap: wrap; gap: var(--sp-4) var(--sp-6); margin-top: var(--sp-6); padding-top: var(--sp-5); border-top: 1px solid var(--blue-200); list-style: none; }
.hero-facts li { display: grid; gap: 2px; }
.hero-facts strong { font-size: var(--fs-lg); font-weight: 750; color: var(--text); }
.hero-facts span { font-size: var(--fs-sm); color: var(--text-2); }

.hero-visual { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-xl); overflow: hidden; background: var(--blue-50); box-shadow: var(--sh-3); }
.hero-visual > img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual:not(.has-photo):not(.showcase) > img { object-fit: contain; padding: 14%; opacity: .5; }

/* Vitrine : un véhicule à la fois, fondu enchaîné, légende lisible. */
.sc-slide { position: absolute; inset: 0; display: block; opacity: 0; visibility: hidden; color: #fff; text-decoration: none; transition: opacity 600ms ease, visibility 0s 600ms; }
.sc-slide.on { opacity: 1; visibility: visible; transition: opacity 600ms ease; }
.sc-slide img { width: 100%; height: 100%; object-fit: cover; background: var(--blue-100); }
.sc-slide::after { content: ''; position: absolute; inset: 40% 0 0; background: linear-gradient(180deg, rgba(17, 26, 38, 0), rgba(17, 26, 38, .78)); pointer-events: none; }
.sc-cap { position: absolute; inset-inline: 0; bottom: 0; z-index: 1; display: grid; gap: 8px; padding: 22px 24px 76px; }
.sc-cap .status { justify-self: start; }
.sc-cap strong { font-size: var(--fs-xl); font-weight: 750; line-height: 1.15; color: #fff; }
.sc-cap strong span { font-weight: 500; opacity: .85; }
.sc-price { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; font-weight: 650; }
.sc-price em { font-style: normal; font-size: var(--fs-sm); text-decoration: underline; text-underline-offset: 3px; }
.sc-bar { position: absolute; inset-inline: 16px; bottom: 16px; z-index: 2; display: flex; align-items: center; gap: 8px; }
.sc-dots { display: flex; flex: 1; min-width: 0; overflow: hidden; margin-inline-end: auto; }
.sc-dot { flex: none; width: 30px; height: 30px; padding: 0; border: 0; background: none; display: grid; place-items: center; }
.sc-dot span { width: 8px; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .6); transition: width var(--t), background-color var(--t); }
.sc-dot[aria-selected="true"] span { width: 22px; background: #fff; }
.sc-btn {
  flex: none; width: 40px; height: 40px; display: grid; place-items: center; padding: 0; border: 1px solid rgba(255, 255, 255, .5); border-radius: 50%;
  background: rgba(17, 26, 38, .35); color: #fff; backdrop-filter: blur(6px); transition: background-color var(--t-fast), color var(--t-fast);
}
.sc-btn:hover { background: #fff; color: var(--text); }
.sc-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.sc-pause .i-play, .sc-pause[aria-pressed="true"] .i-pause { display: none; }
.sc-pause[aria-pressed="true"] .i-play { display: block; }
.showcase :focus-visible { outline-color: #fff; }

/* ---------- 7. Catalogue ---------- */
.result-count { color: var(--text-2); }
.result-count strong { color: var(--text); font-weight: 750; }

.catalog-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--sp-3); align-items: end; }
.catalog-tools { display: flex; gap: var(--sp-2); align-items: end; }
.search { position: relative; }
.search > svg { position: absolute; inset-inline-start: 16px; top: 50%; width: 20px; height: 20px; translate: 0 -50%; fill: none; stroke: var(--text-2); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.search .input { min-height: 54px; padding-inline: 48px; border-radius: var(--r-lg); font-size: 1.0625rem; border-color: var(--border-2); box-shadow: var(--sh-1); }
.search .input:hover { border-color: var(--control); }
.search .input::-webkit-search-cancel-button { display: none; }
.search-clear {
  position: absolute; inset-inline-end: 8px; top: 50%; translate: 0 -50%; width: 38px; height: 38px; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: var(--surface-2); color: var(--text-2); font-size: 20px; line-height: 1;
}
.search-clear:hover { background: var(--border); color: var(--text); }
.sort { min-width: 220px; }
.filters-toggle { display: none; }
.filters-toggle .count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: var(--r-pill); background: var(--blue-600); color: #fff; font-size: var(--fs-xs); display: inline-grid; place-items: center; }

.brand-chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-5); }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 1px solid var(--border-2); border-radius: var(--r-pill);
  background: var(--surface); font-size: var(--fs-sm); font-weight: 600; color: var(--text); white-space: nowrap;
  transition: border-color var(--t-fast), background-color var(--t-fast), color var(--t-fast);
}
.chip .n { min-width: 22px; padding: 1px 6px; border-radius: var(--r-pill); background: var(--surface-2); color: var(--text-2); font-size: var(--fs-xs); text-align: center; }
.chip:hover:not(:disabled) { border-color: var(--blue-500); color: var(--blue-700); }
.chip.active { border-color: var(--blue-600); background: var(--blue-600); color: #fff; }
.chip.active .n { background: rgba(255, 255, 255, .22); color: #fff; }
.chip:disabled { opacity: .45; cursor: not-allowed; }

.filters-panel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-3); margin-top: var(--sp-4); }
.fp-head, .fp-foot, .filters-backdrop { display: none; }

.active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); margin-top: var(--sp-4); }
.pill {
  display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding-block: 0; padding-inline: 12px 6px; border: 0; border-radius: var(--r-pill);
  background: var(--blue-100); color: var(--blue-700); font-size: var(--fs-sm); font-weight: 650;
}
.pill > span[aria-hidden] { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; font-size: 17px; line-height: 1; transition: background-color var(--t-fast); }
.pill:hover > span[aria-hidden] { background: var(--blue-200); }
.clear-all { min-height: 34px; padding: 0 8px; border: 0; background: none; color: var(--text-2); font-size: var(--fs-sm); font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
.clear-all:hover { color: var(--text); }

.catalog-meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--sp-3); margin: var(--sp-5) 0 var(--sp-4); }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-5); }

/* Carte véhicule : toute la carte est un seul lien (aucun élément cliquable imbriqué). */
.card {
  position: relative; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--border); border-radius: var(--r-lg);
  background: var(--surface); text-decoration: none; color: inherit; box-shadow: var(--sh-1);
  transition: box-shadow var(--t), transform var(--t), border-color var(--t);
}
.card:hover { box-shadow: var(--sh-2); transform: translateY(-3px); border-color: var(--border-2); }
.card:focus-visible { outline-offset: 3px; border-radius: var(--r-lg); }
.card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms cubic-bezier(.2, .7, .2, 1); }
.card-media img[src$=".svg"] { object-fit: contain; padding: 16%; opacity: .5; }
.card:hover .card-media img { transform: scale(1.035); }
.card-media .status { position: absolute; top: 12px; inset-inline-start: 12px; }
.photos-n {
  position: absolute; bottom: 12px; inset-inline-end: 12px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: var(--r-pill);
  background: rgba(17, 26, 38, .64); color: #fff; font-size: var(--fs-xs); font-weight: 650; backdrop-filter: blur(4px);
}
.photos-n svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.card-body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 18px 20px 20px; }
.card-meta { display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: var(--fs-sm); color: var(--text-2); }
.card-meta bdi { font-weight: 700; color: var(--blue-600); }
.card-meta > * + *::before { content: '·'; margin-inline-end: 8px; color: var(--text-3); }
.card-title { font-size: 1.25rem; font-weight: 700; line-height: 1.25; }
.card-title .yr { font-weight: 500; color: var(--text-2); }
.card-specs { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; }
.card-specs li { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: var(--r-sm); background: var(--surface-2); font-size: var(--fs-sm); color: var(--text-2); }
.card-specs svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border); }
.card-price { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.01em; color: var(--text); }
.card-price.on-request { font-size: var(--fs-base); font-weight: 650; color: var(--text-2); }
.card-cta { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-sm); font-weight: 650; color: var(--blue-600); white-space: nowrap; }
.card-cta svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* Statut : texte + pastille de forme différente, jamais la couleur seule. */
.status {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px 5px 9px; border-radius: var(--r-pill);
  font-size: var(--fs-xs); font-weight: 700; line-height: 1.2; box-shadow: var(--sh-1);
}
[dir="rtl"] .status { padding: 5px 9px 5px 11px; }
.status::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status-stock { color: var(--ok); background: var(--ok-bg); }
.status-arrivage { color: var(--warn); background: var(--warn-bg); }
.status-arrivage::before { width: 7px; height: 7px; border-radius: 1px; transform: rotate(45deg); }
.status-commande { color: var(--info); background: var(--info-bg); }
.status-commande::before { background: transparent; border: 2px solid currentColor; }
.status-vendu { color: var(--bad); background: var(--bad-bg); }
.status-vendu::before { width: 10px; height: 2px; border-radius: 1px; }
.tag { display: inline-flex; align-items: center; padding: 5px 11px; border-radius: var(--r-pill); background: var(--surface-2); font-size: var(--fs-xs); font-weight: 700; color: var(--text); box-shadow: var(--sh-1); }

/* Chargement, vide, erreur, « afficher plus » */
.skeleton { border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); overflow: hidden; animation: pulse 1.4s ease-in-out infinite; }
.skeleton::before { content: ''; display: block; aspect-ratio: 4 / 3; background: var(--surface-2); }
.skeleton::after {
  content: ''; display: block; height: 130px; margin: 18px 20px 20px;
  background: linear-gradient(var(--surface-2) 0 0) 0 0 / 38% 14px no-repeat, linear-gradient(var(--surface-2) 0 0) 0 28px / 72% 22px no-repeat,
              linear-gradient(var(--surface-2) 0 0) 0 66px / 60% 26px no-repeat, linear-gradient(var(--surface-2) 0 0) 0 110px / 44% 20px no-repeat;
}
.skeleton-detail { height: min(70vh, 560px); border-radius: var(--r-xl); background: var(--surface-2); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .55; } }
.state-box { display: grid; justify-items: center; gap: var(--sp-3); padding: var(--sp-7) var(--sp-5); border: 1px dashed var(--border-2); border-radius: var(--r-lg); background: var(--surface); text-align: center; }
.state-box :is(h1, h2, h3) { font-size: var(--fs-lg); }
.state-box p { color: var(--text-2); max-width: 50ch; }
.state-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: var(--blue-100); color: var(--blue-600); }
.state-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.state-box.is-error .state-icon { background: var(--bad-bg); color: var(--bad); }
.state-box .btn-row { justify-content: center; margin-top: var(--sp-2); }
.more { display: grid; justify-items: center; gap: var(--sp-3); margin-top: var(--sp-6); }
.progress { width: min(240px, 60%); height: 4px; border-radius: 4px; background: var(--border); overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--blue-500); border-radius: 4px; transition: width var(--t); }
.more small { color: var(--text-2); font-size: var(--fs-sm); }

/* ---------- 8. Sur commande, devis, services, contact ---------- */
.order-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.order-intro .lead { margin-top: var(--sp-4); }
.order-fact { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: var(--sp-5) 0; padding: 14px 18px; border-radius: var(--r-md); background: var(--blue-50); border: 1px solid var(--blue-200); }
.order-fact strong { font-size: var(--fs-lg); color: var(--blue-700); }
.order-fact span { color: var(--text-2); font-size: var(--fs-sm); }
.steps { list-style: none; display: grid; gap: var(--sp-3); }
.step { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 2px var(--sp-4); padding: 18px 20px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--bg); }
.step-n { grid-row: span 2; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--blue-100); color: var(--blue-700); font-weight: 750; }
.step p { color: var(--text-2); font-size: .9375rem; }
.origins { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-3); }
.origin { padding: 18px 20px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); }
.origin strong { display: block; font-size: var(--fs-md); }
.origin small { display: inline-block; margin: 6px 0 8px; padding: 2px 9px; border-radius: var(--r-pill); background: var(--blue-100); color: var(--blue-700); font-size: var(--fs-xs); font-weight: 650; }
.origin p { font-size: var(--fs-sm); color: var(--text-2); }

.quote { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 56px); margin-top: var(--sp-8); padding: clamp(22px, 3.5vw, 44px); border-radius: var(--r-xl); background: var(--bg); border: 1px solid var(--border); }
.quote h3 { font-size: var(--fs-xl); }
.quote-intro > p { margin-top: var(--sp-3); color: var(--text-2); }
.checklist { list-style: none; display: grid; gap: 12px; margin-top: var(--sp-5); }
.checklist li { position: relative; padding-inline-start: 32px; font-weight: 550; }
.checklist li::before { content: ''; position: absolute; inset-inline-start: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%; background: var(--ok-bg); }
.checklist li::after { content: ''; position: absolute; inset-inline-start: 7px; top: 9px; width: 9px; height: 5px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4); }
.form-grid .full { grid-column: 1 / -1; }
.form-foot { display: grid; gap: 10px; justify-items: start; }
.form-foot small { color: var(--text-2); font-size: var(--fs-sm); }

.services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-4); }
.service { padding: 24px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); }
.service-icon { width: 46px; height: 46px; display: grid; place-items: center; margin-bottom: var(--sp-4); border-radius: var(--r-md); background: var(--blue-100); color: var(--blue-600); }
.service-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.service p { margin-top: 6px; color: var(--text-2); font-size: .9375rem; }

.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(24px, 4vw, 56px); align-items: stretch; }
.contact-list { list-style: none; display: grid; margin: var(--sp-5) 0 var(--sp-6); }
.contact-list li { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--border); }
.contact-list li:first-child { border-top: 1px solid var(--border); }
.ci { width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--r-md); background: var(--blue-100); color: var(--blue-600); }
.ci svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.contact-list small { display: block; font-size: var(--fs-xs); font-weight: 650; color: var(--text-2); letter-spacing: .02em; }
.contact-list strong, .contact-list a { font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--blue-700); text-decoration: underline; }
.copy-btn { min-height: 36px; padding: 0 12px; border: 1px solid var(--border-2); border-radius: var(--r-sm); background: var(--surface); font-size: var(--fs-xs); font-weight: 650; color: var(--text-2); }
.copy-btn:hover { border-color: var(--blue-500); color: var(--blue-700); }
.copy-btn.done { border-color: var(--ok); color: var(--ok); }
.open-badge { display: inline-flex; align-items: center; gap: 7px; margin-top: 4px; font-size: var(--fs-sm); font-weight: 650; }
.open-badge::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.open-badge.open { color: var(--ok); }
.open-badge.open::before { box-shadow: 0 0 0 4px var(--ok-bg); }
.open-badge.closed { color: var(--bad); }
.open-badge.closed::before { width: 10px; height: 2px; border-radius: 1px; }
.map { position: relative; min-height: 380px; border-radius: var(--r-xl); overflow: hidden; background: var(--blue-50); border: 1px solid var(--border); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-fallback {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: var(--sp-4); padding: var(--sp-6); text-align: center;
  background: radial-gradient(circle at 50% 40%, var(--blue-100), transparent 62%),
              repeating-linear-gradient(0deg, transparent 0 39px, rgba(74, 144, 226, .11) 39px 40px),
              repeating-linear-gradient(90deg, transparent 0 39px, rgba(74, 144, 226, .11) 39px 40px), var(--blue-50);
}
.map-fallback .pin { width: 46px; height: 46px; border-radius: 50% 50% 50% 0; rotate: -45deg; background: var(--blue-600); box-shadow: 0 10px 20px -8px rgba(47, 114, 196, .7); }
.map-fallback .pin::after { content: ''; display: block; width: 16px; height: 16px; margin: 15px; border-radius: 50%; background: #fff; }
.map-fallback p { color: var(--text-2); }
.map-fallback strong { color: var(--text); }
.map-fallback .btn { --btn-bg: var(--blue-600); --btn-fg: #fff; --btn-bd: var(--blue-600); }

/* ---------- 9. Pied de page, flottants, notifications ---------- */
.site-footer { padding-top: var(--sp-8); background: var(--surface); border-top: 1px solid var(--border); font-size: .9375rem; }
.footer-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr 1.25fr; gap: var(--sp-6); padding-bottom: var(--sp-7); }
.footer-grid .footer-title { margin-bottom: var(--sp-4); font-size: var(--fs-sm); font-weight: 750; letter-spacing: 0; }
.footer-grid ul { list-style: none; display: grid; gap: 4px; }
.footer-grid li a { display: inline-block; padding-block: 4px; }
.footer-grid a { color: var(--text-2); text-decoration: none; }
.footer-grid a:hover { color: var(--blue-700); text-decoration: underline; }
.footer-grid p { color: var(--text-2); }
.footer-brand p { margin-top: var(--sp-3); max-width: 34ch; }
.footer-visit p + p { margin-top: 10px; }
.socials { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-4); }
.socials a { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: var(--r-md); border: 1px solid var(--border-2); color: var(--text-2); }
.socials a:hover { border-color: var(--blue-500); color: var(--blue-700); }
.socials svg { width: 19px; height: 19px; fill: currentColor; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--sp-3); padding-block: var(--sp-5); border-top: 1px solid var(--border); color: var(--text-2); font-size: var(--fs-sm); }

.wa-float {
  position: fixed; inset-inline-end: 20px; bottom: 20px; z-index: 90; display: inline-flex; align-items: center; gap: 4px;
  height: 54px; padding-inline: 18px 8px; border-radius: var(--r-pill); background: var(--wa); color: #fff; text-decoration: none; font-weight: 650; font-size: .9375rem;
  box-shadow: 0 14px 30px -12px rgba(16, 120, 60, .7); transition: transform var(--t-fast);
}
.wa-float:hover { transform: translateY(-2px); }
.wa-float svg { width: 40px; height: 40px; padding: 8px; fill: currentColor; }
.to-top {
  position: fixed; inset-inline-end: 24px; bottom: 88px; z-index: 89; width: 46px; height: 46px; display: grid; place-items: center; padding: 0;
  border: 1px solid var(--border-2); border-radius: 50%; background: var(--surface); color: var(--text); box-shadow: var(--sh-2);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity var(--t), transform var(--t), visibility 0s var(--t);
}
.to-top.show { opacity: 1; visibility: visible; transform: none; transition: opacity var(--t), transform var(--t); }
.to-top svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.toasts { position: fixed; left: 50%; bottom: 24px; translate: -50% 0; z-index: 1100; display: grid; gap: 8px; width: min(440px, calc(100% - 32px)); pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-radius: var(--r-md); background: var(--text); color: #fff;
  font-size: .9375rem; font-weight: 550; box-shadow: var(--sh-3); pointer-events: auto; animation: toast-in .25s ease;
}
.toast::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; background: #6FD9A8; }
.toast.error { background: var(--bad); }
.toast.error::before { background: #fff; width: 10px; height: 2px; border-radius: 1px; }
.toast.out { animation: toast-out .25s ease forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(6px); } }

/* Apparition au défilement (activée par common.js, jamais en mouvement réduit) */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 500ms ease, transform 500ms cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 10. Fiche véhicule ---------- */
.detail-page { padding-block: var(--sp-5) var(--section); }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: var(--sp-5); list-style: none; font-size: var(--fs-sm); color: var(--text-2); }
.crumbs li { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.crumbs li + li::before { content: '/'; color: var(--text-3); }
.crumbs a { color: var(--text-2); text-decoration: none; }
.crumbs a:hover { color: var(--blue-700); text-decoration: underline; }
.crumbs [aria-current] { color: var(--text); font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60vw; }

.detail { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(24px, 3.5vw, 48px); align-items: start; }
.gallery { display: grid; gap: var(--sp-3); min-width: 0; }
.gallery-main { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-xl); overflow: hidden; background: var(--surface-2); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: opacity 220ms ease; }
.gallery-main img.fading { opacity: .35; }
.gallery-main.no-photo { cursor: default; }
.gallery-main.no-photo img { object-fit: contain; padding: 14%; opacity: .5; }
.gallery-nav {
  position: absolute; top: 50%; translate: 0 -50%; width: 46px; height: 46px; display: grid; place-items: center; padding: 0;
  border: 0; border-radius: 50%; background: rgba(255, 255, 255, .94); color: var(--text); box-shadow: var(--sh-2); transition: background-color var(--t-fast), transform var(--t-fast);
}
.gallery-nav:hover { background: #fff; transform: scale(1.06); }
.gallery-nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.gallery-nav.prev { inset-inline-start: 14px; }
.gallery-nav.next { inset-inline-end: 14px; }
.gallery-chip {
  position: absolute; bottom: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--r-pill);
  background: rgba(17, 26, 38, .64); color: #fff; font-size: var(--fs-xs); font-weight: 650; backdrop-filter: blur(4px); pointer-events: none;
}
.gallery-count { inset-inline-start: 14px; }
.gallery-zoom { inset-inline-end: 14px; min-height: 36px; border: 0; pointer-events: auto; cursor: pointer; font: inherit; font-size: var(--fs-xs); font-weight: 650; transition: background-color var(--t-fast); }
.gallery-zoom:hover { background: rgba(17, 26, 38, .85); }
.gallery-main img { cursor: zoom-in; }
.gallery-main.no-photo img { cursor: default; }
.gallery-zoom svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.thumbs { display: flex; gap: 10px; overflow-x: auto; padding: 3px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.thumb {
  flex: none; width: 98px; aspect-ratio: 4 / 3; padding: 0; border: 2px solid transparent; border-radius: var(--r-md); overflow: hidden;
  background: var(--surface-2); scroll-snap-align: start; opacity: .72; transition: opacity var(--t-fast), border-color var(--t-fast);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:hover { opacity: 1; }
.thumb.active { opacity: 1; border-color: var(--blue-500); }

.info { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: var(--sp-5); padding: clamp(20px, 2.5vw, 28px); border: 1px solid var(--border); border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--sh-2); }
.info-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.info-head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--sp-3); }
.info-head h1 { font-size: var(--fs-2xl); letter-spacing: -0.02em; overflow-wrap: anywhere; }
.info-head h1 .yr { font-weight: 500; color: var(--text-2); }
.info-head .meta { margin-top: 8px; color: var(--text-2); font-size: .9375rem; }
.info-head .meta bdi { font-weight: 650; color: var(--blue-600); }
.price-block { padding: 16px 18px; border-radius: var(--r-md); background: var(--blue-50); border: 1px solid var(--blue-200); }
.price-block .price { font-size: var(--fs-2xl); font-weight: 800; letter-spacing: -0.02em; color: var(--text); line-height: 1.15; }
.price-block .price.on-request { font-size: var(--fs-xl); }
.price-block small { display: block; margin-top: 4px; color: var(--text-2); font-size: var(--fs-sm); }
.cta-stack { display: grid; gap: var(--sp-2); }
.key-specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-2); list-style: none; }
.key-specs li { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: var(--r-md); background: var(--surface-2); min-width: 0; }
.key-specs svg { width: 20px; height: 20px; fill: none; stroke: var(--blue-600); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.key-specs small { display: block; font-size: var(--fs-xs); color: var(--text-2); }
.key-specs strong { display: block; font-size: .9375rem; font-weight: 650; overflow-wrap: anywhere; }

.detail-body { display: grid; gap: var(--sp-7); margin-top: var(--sp-7); max-width: 840px; }
.detail-block h2 { font-size: var(--fs-xl); margin-bottom: var(--sp-4); }
.spec-table { margin: 0; border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.spec-table div { display: grid; grid-template-columns: minmax(120px, 38%) minmax(0, 1fr); gap: var(--sp-4); padding: 13px 18px; }
.spec-table div + div { border-top: 1px solid var(--border); }
.spec-table dt { color: var(--text-2); }
.spec-table dd { margin: 0; font-weight: 650; overflow-wrap: anywhere; }
.desc { max-width: 68ch; font-size: 1.0625rem; line-height: 1.75; }
.equip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px var(--sp-5); list-style: none; }
.equip li { position: relative; padding-inline-start: 32px; }
.equip li::before { content: ''; position: absolute; inset-inline-start: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%; background: var(--blue-100); }
.equip li::after { content: ''; position: absolute; inset-inline-start: 7px; top: 9px; width: 9px; height: 5px; border-left: 2px solid var(--blue-600); border-bottom: 2px solid var(--blue-600); transform: rotate(-45deg); }
.contact-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-4); padding: 24px; border-radius: var(--r-lg); background: var(--blue-100); }
.contact-card h2 { font-size: var(--fs-lg); margin: 0; }
.contact-card p { margin-top: 4px; color: var(--text-2); max-width: 52ch; }
.sold-note { display: flex; align-items: flex-start; gap: 10px; padding: 14px 16px; border-radius: var(--r-md); background: var(--bad-bg); color: var(--bad); font-weight: 600; }
.sold-note svg { width: 20px; height: 20px; margin-top: 2px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.similar { margin-top: var(--section); }
.similar .section-head { margin-bottom: var(--sp-5); }
.similar h2 { font-size: var(--fs-xl); }

.mobile-cta { display: none; }

.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(12, 18, 27, .97); color: #fff; }
.lightbox::backdrop { background: rgba(12, 18, 27, .9); }
.lightbox[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; font-weight: 600; }
.lightbox .icon-btn { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .22); color: #fff; }
.lightbox .icon-btn:hover { background: #fff; color: var(--text); }
.lightbox :focus-visible { outline-color: #fff; }
.lb-stage { position: relative; display: grid; place-items: center; padding: 0 76px; min-height: 0; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--r-md); transition: opacity 200ms ease; }
.lb-stage img.fading { opacity: .3; }
.lb-prev, .lb-next { position: absolute; top: 50%; translate: 0 -50%; }
.lb-prev { inset-inline-start: 16px; }
.lb-next { inset-inline-end: 16px; }
.lb-thumbs { display: flex; justify-content: center; gap: 8px; padding: 14px; overflow-x: auto; }
.lb-thumbs .thumb { width: 74px; }

/* ---------- 11. Adaptations ---------- */
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .order-grid { grid-template-columns: minmax(0, 1fr); }
  .order-intro { max-width: 720px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  :root { --header-h: 62px; }
  .menu-toggle { display: inline-grid; }
  .menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { display: block; width: 20px; height: 2px; border-radius: 2px; background: currentColor; transition: transform var(--t-fast), background-color var(--t-fast); }
  .menu-toggle span { position: relative; }
  .menu-toggle span::before, .menu-toggle span::after { content: ''; position: absolute; left: 0; }
  .menu-toggle span::before { top: -6px; }
  .menu-toggle span::after { top: 6px; }
  .menu-toggle[aria-expanded="true"] span { background: transparent; }
  .menu-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; z-index: 99; flex-direction: column; align-items: stretch; gap: 0;
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto; padding: 8px var(--gutter) 24px; background: var(--surface);
    border-bottom: 1px solid var(--border); box-shadow: 0 24px 40px -24px rgba(38, 52, 69, .35);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity var(--t), transform var(--t), visibility 0s var(--t);
  }
  .main-nav.open { opacity: 1; visibility: visible; transform: none; transition: opacity var(--t), transform var(--t); }
  .main-nav > a { padding: 15px 4px; font-size: var(--fs-md); color: var(--text); border-bottom: 1px solid var(--border); border-radius: 0; }
  .main-nav > a.active::after { inset-inline: auto 0; top: 50%; bottom: auto; width: 8px; height: 8px; translate: 0 -50%; border-radius: 50%; }
  .nav-extra { display: grid; gap: var(--sp-2); margin-top: var(--sp-5); }
  .nav-extra .lang-switch { justify-self: start; margin-top: var(--sp-2); }
  .header-actions .call-btn { display: none; }
  .hero-in { grid-template-columns: minmax(0, 1fr); }
  .hero-copy h1 { max-width: 22ch; }
  .order-grid, .quote, .contact, .detail { grid-template-columns: minmax(0, 1fr); }
  .info { position: static; }
  .map { min-height: 300px; }
}

@media (max-width: 900px) {
  .catalog-bar { grid-template-columns: minmax(0, 1fr); }
  .catalog-tools { display: grid; grid-template-columns: auto minmax(0, 1fr); }
  .sort { min-width: 0; }
  .sort .field-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .filters-toggle { display: inline-flex; }
  .brand-chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter) 6px; scroll-padding-inline: var(--gutter); scrollbar-width: none; scroll-snap-type: x proximity; }
  .brand-chips::-webkit-scrollbar { display: none; }
  .chip { scroll-snap-align: start; }
  .filters-panel {
    position: fixed; inset: auto 0 0 0; z-index: 210; margin: 0; grid-template-columns: 1fr; gap: var(--sp-4);
    max-height: 86dvh; overflow-y: auto; padding: 0 var(--gutter) calc(20px + env(safe-area-inset-bottom)); border-radius: var(--r-xl) var(--r-xl) 0 0;
    background: var(--surface); box-shadow: 0 -20px 50px -20px rgba(38, 52, 69, .45);
    transform: translateY(105%); visibility: hidden; transition: transform var(--t), visibility 0s var(--t);
  }
  .filters-panel.open { transform: none; visibility: visible; transition: transform var(--t); }
  .fp-head { display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 1; padding: 22px 0 8px; background: var(--surface); }
  .fp-head::before { content: ''; position: absolute; top: 8px; left: 50%; width: 40px; height: 4px; translate: -50% 0; border-radius: 4px; background: var(--border-2); }
  .fp-head h3 { font-size: var(--fs-lg); }
  .fp-foot { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--sp-2); position: sticky; bottom: 0; padding-top: var(--sp-2); background: var(--surface); }
  .filters-backdrop { display: block; position: fixed; inset: 0; z-index: 205; background: rgba(17, 26, 38, .45); opacity: 0; visibility: hidden; transition: opacity var(--t), visibility 0s var(--t); }
  .filters-backdrop.open { opacity: 1; visibility: visible; transition: opacity var(--t); }
}

@media (max-width: 720px) {
  .hero { padding-top: 20px; }
  .hero-actions .btn { flex: 1 1 200px; }
  .sc-cap { padding: 16px 16px 66px; }
  .sc-cap strong { font-size: var(--fs-lg); }
  .form-grid, .origins, .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--sp-5); }
  .equip { grid-template-columns: 1fr; }
  .wa-float { width: 56px; height: 56px; padding: 0; justify-content: center; }
  .wa-float .wa-label { display: none; }
  .wa-float svg { width: 44px; height: 44px; padding: 9px; }
  .has-mobile-cta .wa-float { display: none; }
  .mobile-cta {
    position: fixed; inset: auto 0 0 0; z-index: 95; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3);
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px);
    border-top: 1px solid var(--border); box-shadow: 0 -10px 30px -18px rgba(38, 52, 69, .5);
    transform: translateY(110%); transition: transform var(--t);
  }
  .mobile-cta.show { transform: none; }
  .mobile-cta div { min-width: 0; display: grid; }
  .mobile-cta strong { font-size: var(--fs-md); }
  .mobile-cta small { color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .has-mobile-cta .site-footer { padding-bottom: 76px; }
  .has-mobile-cta .to-top { bottom: 92px; }
  .gallery-main { margin-inline: calc(var(--gutter) * -1); border-radius: 0; }
  .gallery-zoom { width: 40px; height: 40px; padding: 0; justify-content: center; }
  .gallery-zoom span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .thumb { width: 84px; }
  .lb-stage { padding: 0 8px 64px; }
  .lb-prev, .lb-next { top: auto; bottom: 8px; translate: none; }
  .lb-prev { inset-inline-start: calc(50% - 56px); }
  .lb-next { inset-inline-end: calc(50% - 56px); }
  .contact-card .btn { width: 100%; }
}

@media (max-width: 600px) {
  .grid { grid-template-columns: 1fr; gap: var(--sp-4); }
  .hero-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-3); margin-top: var(--sp-5); padding-top: var(--sp-4); }
  .hero-facts strong { font-size: 1.0625rem; }
  .hero-facts span { font-size: .75rem; line-height: 1.35; }
  .services { grid-template-columns: 1fr; }
  .section-head { margin-bottom: var(--sp-5); }
  .contact-list li { grid-template-columns: 40px minmax(0, 1fr); }
  .contact-list .copy-btn { grid-column: 2; justify-self: start; }
  .spec-table div { grid-template-columns: 1fr; gap: 2px; }
  .quote { margin-inline: calc(var(--gutter) * -1); border-radius: 0; border-inline: 0; }
}

@media (max-width: 480px) {
  .header-actions > .lang-switch { display: none; }
  .btn { white-space: normal; text-align: center; }
  .form-foot .btn { width: 100%; }
  .sc-dot { width: 22px; }
}

@media (max-width: 360px) {
  .brand-mark { width: 34px; height: 34px; font-size: 17px; }
  .brand-name { font-size: .9375rem; }
  .card-body { padding: 16px; }
  .key-specs { grid-template-columns: 1fr; }
}

/* ---------- 12. Mouvement réduit, impression ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .reveal { opacity: 1; transform: none; }
  .card:hover, .card:hover .card-media img { transform: none; }
}

@media print {
  .site-header, .wa-float, .to-top, .mobile-cta, .filters-toggle, .sc-bar, .similar, .gallery-nav { display: none !important; }
  body { background: #fff; }
  .info { position: static; box-shadow: none; }
}
