/* RIADA AUTO, démo B « Maison de négoce » · CREATIVE DZ
   Noir pour l'ouverture et le pied de page, blanc de galerie pour le reste,
   rouge réservé au filet de titre, aux statuts et au bouton principal. */

:root {
  --noir: #000000;
  --galerie: #ffffff;
  --pierre: #ecece8;
  --pierre-clair: #f5f5f3;
  --encre: #151515;
  --graphite: #5f5f5b;
  --filet: #d4d4cf;
  --rouge: #e10600;
  --rouge-fonce: #b80500;

  --serif: "Instrument Serif", "Times New Roman", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --arabe: "Markazi Text", "Times New Roman", serif;
  --sans-arabe: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;

  --gouttiere: clamp(16px, 4.4vw, 64px);
  --entete: 72px;
  --max: 1360px;

  --t-xs: 0.78rem;   /* 12.5 */
  --t-s: 0.875rem;   /* 14 */
  --t-m: 1.0625rem;  /* 17 */
  --t-l: 1.3125rem;  /* 21 */
  --t-xl: clamp(1.75rem, 1.2rem + 1.6vw, 2.25rem);
  --t-2xl: clamp(2.5rem, 1.4rem + 3.8vw, 4.5rem);
  --t-3xl: clamp(3.1rem, 1.2rem + 6.4vw, 7.5rem);

  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
/* version arabe : la page attend la traduction avant de s'afficher (voir assets/js/i18n.js) */
html.i18n-attente body { visibility: hidden; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--galerie);
  color: var(--encre);
  font-family: var(--sans);
  font-size: var(--t-m);
  line-height: 1.55;
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  animation: entree-page .55s var(--ease) both;
}
body.sortie { opacity: 0; transition: opacity .28s ease; }
@keyframes entree-page { from { opacity: 0; } to { opacity: 1; } }

img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3, h4, p, dl, dd, ol, ul, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--rouge); outline-offset: 3px; }
.sur-noir :focus-visible, .pied :focus-visible, .ouverture :focus-visible { outline-color: #fff; }

.visuellement-cache {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.lien-evitement {
  position: fixed; inset-inline-start: 12px; top: -60px; z-index: 100;
  background: var(--encre); color: #fff; padding: 10px 16px; text-decoration: none;
}
.lien-evitement:focus { top: 12px; }

.conteneur { width: 100%; padding-inline: max(var(--gouttiere), calc((100% - 1312px) / 2)); }

/* ---------- Typographie ---------- */
.titre-section {
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--t-2xl);
  line-height: 1.02;
  letter-spacing: -0.012em;
}
.titre-section::after {
  content: "";
  display: block;
  width: 48px;
  height: 2px;
  margin-top: 22px;
  background: var(--rouge);
}
.titre-section--sans-filet::after { display: none; }
.chapo { font-size: var(--t-l); line-height: 1.5; color: var(--graphite); max-width: 36em; }
.texte-court { max-width: 34em; color: var(--graphite); }
.mono { font-family: var(--mono); font-feature-settings: "tnum"; }

/* mots révélés */
.mot { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.mot__in { display: inline-block; will-change: transform; }
.anim [data-mots] .mot__in { transform: translateY(108%); }

/* rideau : la photo s'ouvre depuis le centre */
.anim [data-rideau] { clip-path: inset(0 50% 0 50%); }
[data-rideau] { overflow: hidden; }

/* ---------- Boutons et liens ---------- */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border: 1px solid currentColor; border-radius: 0;
  background: transparent; color: inherit;
  font-family: var(--sans); font-size: 0.95rem; font-weight: 500; letter-spacing: .01em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
.bouton svg { width: 18px; height: 18px; flex: none; }
.bouton--plein { background: var(--rouge); border-color: var(--rouge); color: #fff; }
.bouton--plein:hover { background: var(--rouge-fonce); border-color: var(--rouge-fonce); }
.bouton--noir { background: var(--encre); border-color: var(--encre); color: #fff; }
.bouton--noir:hover { background: #000; }
.bouton--contour:hover { background: var(--encre); color: #fff; border-color: var(--encre); }
.sur-noir .bouton--contour:hover, .ouverture .bouton--contour:hover { background: #fff; color: #000; border-color: #fff; }
.bouton--large { width: 100%; }

.lien {
  display: inline-block;
  font-weight: 500; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding-bottom: 3px; transition: background-size .35s var(--ease);
}
.lien:hover { background-size: 0 1px; background-position: 100% 100%; }

/* ---------- En-tête ---------- */
.entete {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--entete);
  display: flex; align-items: center; gap: 28px;
  padding-inline: max(var(--gouttiere), calc((100% - 1312px) / 2));
  background: #fff;   /* opaque : aucun titre ni prix ne transparaît derrière la navigation */
  border-bottom: 1px solid rgba(0, 0, 0, .08);
  transition: background-color .4s ease, border-color .4s ease, color .4s ease;
}
.entete__logo { position: relative; display: block; width: 196px; height: 44px; flex: none; }
.entete__logo img { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .4s ease; }
.entete__logo .logo-clair { opacity: 0; }
.entete__nav { display: flex; gap: 30px; margin-inline-start: auto; }
.entete__nav a {
  text-decoration: none; font-size: 0.95rem; font-weight: 500;
  padding: 6px 0; background: linear-gradient(var(--rouge), var(--rouge)) 0 100% / 0 2px no-repeat;
  transition: background-size .35s var(--ease);
}
.entete__nav a:hover, .entete__nav a[aria-current="page"] { background-size: 100% 2px; }
.entete__whatsapp { min-height: 42px; padding: 0 16px; }
/* bouton de langue : « العربية » en français, « Français » en arabe */
.entete__langue {
  display: inline-flex; align-items: center; min-height: 42px; padding-inline: 16px 0;
  border-inline-start: 1px solid currentColor; border-color: rgba(127, 127, 127, .35);
  text-decoration: none; font-size: 1rem; font-weight: 500; white-space: nowrap;
}
.entete__langue:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.entete__langue:lang(ar), .menu-mobile__langue:lang(ar) { font-family: var(--sans-arabe); font-size: 1.06rem; }
.menu-mobile__langue {
  align-self: flex-start; margin-top: 18px; padding: 8px 0;
  font-size: 1.15rem; font-weight: 500; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px;
}
.entete__menu {
  display: none; margin-inline-start: auto;
  min-height: 44px; min-width: 44px; padding: 0 12px;
  background: none; border: 1px solid currentColor; cursor: pointer; font-weight: 500;
}
.entete--sur-noir { background: transparent; border-color: transparent; color: #fff; }
.entete--sur-noir .logo-clair { opacity: 1; }
.entete--sur-noir .logo-fonce { opacity: 0; }

.menu-mobile {
  position: fixed; inset: 0; z-index: 60;
  background: var(--galerie); color: var(--encre);
  padding: calc(var(--entete) + 24px) var(--gouttiere) 32px;
  display: flex; flex-direction: column; gap: 6px;
}
.menu-mobile[hidden] { display: none; }
.menu-mobile a.menu-mobile__lien {
  font-family: var(--serif); font-size: 2.6rem; line-height: 1.15; text-decoration: none;
  padding: 6px 0; border-bottom: 1px solid var(--filet);
}
.menu-mobile__fermer {
  position: absolute; top: 14px; inset-inline-end: var(--gouttiere);
  min-height: 44px; padding: 0 14px; background: none; border: 1px solid currentColor; cursor: pointer;
}
.menu-mobile .bouton { margin-top: 24px; }

@media (max-width: 960px) {
  .entete__nav, .entete__whatsapp { display: none; }
  .entete__menu { display: inline-flex; align-items: center; margin-inline-start: 0; }
  .entete__logo { width: 156px; height: 35px; }
  .entete { gap: 14px; }
  .entete__langue { margin-inline-start: auto; padding-inline: 0; border: 0; min-height: 44px; }
}

/* ---------- Ouverture (accueil) ---------- */
.ouverture { position: relative; background: var(--galerie); }
.ouverture__scene {
  position: relative; height: 100vh; height: 100svh; min-height: 560px;
  overflow: hidden; color: #fff;
  background: var(--noir);
}
.js-sequence .ouverture__scene { background: transparent; }
.ouverture__poster {
  position: absolute; inset: 0; background: var(--noir);
}
.js-sequence .ouverture__poster { display: none; }
.ouverture__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ouverture__texte {
  position: absolute; inset-inline-start: max(var(--gouttiere), calc((100% - 1312px) / 2)); inset-inline-end: var(--gouttiere);
  bottom: calc(12vh + 72px);
  max-width: 980px;
}
.ouverture__titre {
  font-family: var(--serif); font-weight: 400;
  font-size: var(--t-3xl); line-height: .98; letter-spacing: -0.018em;
}
.ouverture__sous {
  margin-top: 22px; max-width: 34em;
  font-size: var(--t-l); line-height: 1.45; color: rgba(255, 255, 255, .78);
}
.ouverture__actions {
  position: absolute; inset-inline-start: max(var(--gouttiere), calc((100% - 1312px) / 2)); bottom: 10vh;
  display: flex; flex-wrap: wrap; gap: 12px;
}
.ouverture__progression {
  position: absolute; left: max(var(--gouttiere), calc((100% - 1312px) / 2)); right: max(var(--gouttiere), calc((100% - 1312px) / 2)); bottom: 4.5vh;
  height: 1px; background: rgba(255, 255, 255, .18);
}
.ouverture__progression span { display: block; height: 100%; width: 100%; background: #fff; transform-origin: 0 50%; transform: scaleX(0); }
.ouverture__defiler {
  position: absolute; inset-inline-end: max(var(--gouttiere), calc((100% - 1312px) / 2)); bottom: calc(4.5vh + 14px);
  font-family: var(--mono); font-size: var(--t-xs); color: rgba(255, 255, 255, .6);
}

/* le cartel de galerie qui accompagne le tirage final */
.cartel { color: var(--encre); }
.cartel__marque { font-size: var(--t-s); font-weight: 600; letter-spacing: .02em; }
.cartel__titre { font-family: var(--serif); font-weight: 400; font-size: var(--t-xl); line-height: 1.08; margin-top: 4px; }
.cartel__titre em, .lot__titre em, .index__modele em, .fiche__titre em { font-style: italic; }
.cartel__meta { margin-top: 10px; font-family: var(--mono); font-size: var(--t-xs); color: var(--graphite); }
.cartel__texte { margin-top: 14px; font-size: var(--t-s); color: var(--graphite); max-width: 26em; }
.cartel__prix { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--filet); display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.cartel__prix .prix-millions { font-size: 1.5rem; }
.cartel__lien { margin-top: 18px; }
.cartel__note { margin-top: 10px; font-size: var(--t-xs); color: var(--graphite); }
.cartel--ouverture {
  position: absolute; width: min(340px, calc(100% - 2 * var(--gouttiere)));
  visibility: hidden; opacity: 0;
}

/* ---------- Prix ---------- */
.prix-millions { font-family: var(--mono); font-weight: 400; letter-spacing: -0.02em; white-space: nowrap; font-feature-settings: "tnum"; }
/* import sans dédouanement publié : « Total sur devis » écrit, pas un montant */
.prix-millions--texte { font-family: var(--serif); letter-spacing: 0; white-space: normal; }
.prix-da { font-family: var(--mono); font-size: var(--t-xs); color: var(--graphite); white-space: nowrap; }
.prix-nature { font-size: var(--t-xs); font-weight: 600; letter-spacing: .02em; color: var(--encre); white-space: nowrap; }
.prix-ligne { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }

/* ---------- Sections de l'accueil ---------- */
.section { padding-block: clamp(88px, 11vw, 168px); }
.section--pierre { background: var(--pierre); }
.tete-section { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; margin-bottom: clamp(40px, 6vw, 72px); }

.manifeste { padding-top: clamp(56px, 8vw, 120px); }
.manifeste__grille { display: grid; grid-template-columns: repeat(12, 1fr); gap: 32px; }
.manifeste__phrase {
  grid-column: 1 / span 10;
  font-family: var(--serif); font-size: var(--t-2xl); line-height: 1.04; letter-spacing: -0.012em;
}
.manifeste__arabe {
  grid-column: 1 / span 12; justify-self: start;
  font-family: var(--arabe); font-weight: 500; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem);
  color: var(--graphite); line-height: 1.4;
}
.manifeste__faits { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: clamp(24px, 4vw, 56px); }
.manifeste__faits div { border-top: 1px solid var(--encre); padding-top: 18px; }
.manifeste__faits dt { font-family: var(--serif); font-size: var(--t-xl); line-height: 1.1; }
.manifeste__faits dd { margin-top: 8px; color: var(--graphite); max-width: 24em; }

/* recherche rapide */
.recherche__boite { border: 1px solid var(--encre); padding: clamp(24px, 4vw, 48px); background: var(--galerie); }
.recherche__titre { font-family: var(--serif); font-size: var(--t-xl); line-height: 1.1; margin-bottom: 26px; }
.etats { border: 0; padding: 0; margin: 0 0 30px; display: flex; flex-wrap: wrap; gap: 8px 28px; }
.etats legend { padding: 0; margin-bottom: 12px; font-size: var(--t-s); color: var(--graphite); }
.etat-choix { position: relative; cursor: pointer; }
.etat-choix input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.etat-choix span {
  display: inline-flex; align-items: baseline; gap: 6px;
  font-family: var(--serif); font-size: clamp(1.7rem, 1.2rem + 1.5vw, 2.5rem); line-height: 1.15;
  color: #9a9a95; padding-bottom: 4px; border-bottom: 2px solid transparent;
  transition: color .25s ease, border-color .25s ease;
}
.etat-choix span sup { font-family: var(--mono); font-size: var(--t-xs); top: -1.2em; }
.etat-choix input:checked + span { color: var(--encre); border-color: var(--rouge); }
.etat-choix:hover span { color: var(--encre); }
.etat-choix input:focus-visible + span { outline: 2px solid var(--rouge); outline-offset: 4px; }
.recherche__champs { display: grid; grid-template-columns: 1fr 1fr auto; gap: 16px; align-items: end; }
.champ { display: flex; flex-direction: column; gap: 8px; font-size: var(--t-s); color: var(--graphite); }
.champ select, .champ input {
  min-height: 52px; width: 100%; padding: 0 14px;
  border: 1px solid var(--filet); border-radius: 0; background: var(--galerie);
  color: var(--encre); font-size: var(--t-m);
}
.champ select {
  appearance: none; -webkit-appearance: none; padding-inline-end: 40px;
  background-image: linear-gradient(45deg, transparent 50%, var(--encre) 50%), linear-gradient(135deg, var(--encre) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
}
.champ select:hover, .champ input:hover { border-color: var(--encre); }
.recherche__champs .bouton { min-height: 52px; }

/* sélection : index de catalogue */
.index { border-top: 1px solid var(--encre); }
.index__ligne { border-bottom: 1px solid var(--filet); }
.index__lien {
  display: grid; grid-template-columns: 44px 176px minmax(0, 1fr) 170px 220px;
  align-items: center; gap: 32px; padding: 22px 0;
  text-decoration: none; transition: background-color .3s ease;
}
.index__num { font-family: var(--mono); font-size: var(--t-s); color: var(--graphite); font-feature-settings: "tnum"; align-self: start; padding-top: 6px; }
.index__lien:hover .index__num { color: var(--rouge); }
.index__etat { display: flex; flex-direction: column; gap: 2px; }
.index__etat-detail { font-size: var(--t-s); color: var(--graphite); }
.index__prix .prix-ligne { justify-content: flex-end; }
.index__lien:hover { background: var(--pierre-clair); }
.index__vignette { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--pierre); }
.index__vignette img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.index__lien:hover .index__vignette img { transform: scale(1.06); }
.index__marque { display: block; font-size: var(--t-s); font-weight: 600; letter-spacing: .02em; }
.index__modele { display: block; font-family: var(--serif); font-size: clamp(1.6rem, 1.1rem + 1.4vw, 2.4rem); line-height: 1.08; }
.index__meta { display: block; margin-top: 8px; font-family: var(--mono); font-size: var(--t-xs); color: var(--graphite); }
.index__etat { font-size: var(--t-s); }
.index__prix { text-align: end; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.index__prix .prix-millions { font-size: 1.35rem; }

/* trois façons d'acheter */
.metiers__grille { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.metier { display: flex; flex-direction: column; }
.metier__photo { aspect-ratio: 16 / 10; background: #000; margin-bottom: 24px; }
/* même format que les vitrines (16:10) : la voiture n'est jamais rognée, marge de parallaxe de 8 % */
.metier__photo img { width: 100%; height: 108%; object-fit: cover; margin-top: -4%; transition: transform 1.4s var(--ease); }
.metier:hover .metier__photo img { transform: scale(1.04); }
.metier__titre { font-family: var(--serif); font-weight: 400; font-size: var(--t-xl); line-height: 1.1; display: flex; align-items: baseline; gap: 10px; }
.metier__titre sup { font-family: var(--mono); font-size: var(--t-xs); color: var(--graphite); top: -1em; }
.metier p { margin-top: 12px; color: var(--graphite); max-width: 28em; flex: 1; }
.metier .lien { margin-top: 20px; align-self: flex-start; }

/* import en 6 étapes */
.import__tete { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px 64px; align-items: end; margin-bottom: clamp(48px, 7vw, 96px); }
.import__chiffres { display: grid; grid-template-columns: repeat(3, auto); gap: 16px 36px; justify-content: start; margin-top: 28px; }
.import__chiffres dt { font-family: var(--mono); font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem); letter-spacing: -0.03em; }
.import__chiffres dd { font-size: var(--t-s); color: var(--graphite); max-width: 13em; }
.etapes { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; counter-reset: etape; position: relative; }
.etape { position: relative; padding: 30px 0 0; padding-inline-end: 22px; border-top: 1px solid var(--encre); }
.etape::before {
  content: ""; position: absolute; top: -5px; inset-inline-start: 0; width: 9px; height: 9px; border-radius: 50%;
  background: var(--pierre); border: 1px solid var(--encre);
}
.etape:first-child::before { background: var(--rouge); border-color: var(--rouge); }
.etape__num { font-family: var(--mono); font-size: var(--t-xs); color: var(--graphite); }
.etape__titre { font-family: var(--serif); font-weight: 400; font-size: 1.55rem; line-height: 1.1; margin-top: 10px; }
.etape p { margin-top: 10px; font-size: var(--t-s); color: var(--graphite); }
.import__pied { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; margin-top: clamp(48px, 6vw, 80px); padding-top: 28px; border-top: 1px solid var(--filet); }
.mention { font-size: var(--t-s); color: var(--graphite); max-width: 46em; }

/* showroom */
.showroom__grille { display: grid; grid-template-columns: repeat(12, 1fr); gap: 32px; align-items: end; }
.showroom__titre {
  grid-column: 1 / span 8;
  font-family: var(--serif); font-weight: 400; font-size: clamp(4rem, 1rem + 11vw, 12rem); line-height: .9; letter-spacing: -0.03em;
}
.showroom__date { display: block; font-family: var(--mono); font-size: var(--t-s); line-height: 1.5; letter-spacing: 0; margin-top: 18px; color: var(--graphite); }
.showroom__texte { grid-column: 9 / span 4; display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.showroom__texte p { color: var(--graphite); }
.showroom__bande { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: clamp(40px, 6vw, 80px); padding-top: 24px; border-top: 1px solid var(--encre); }
.showroom__bande dt { font-size: var(--t-s); color: var(--graphite); }
.showroom__bande dd { font-family: var(--serif); font-size: var(--t-xl); line-height: 1.15; margin-top: 4px; }

/* contact */
.contact__grille { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px 72px; }
.contact__canaux { border-top: 1px solid var(--encre); }
.contact__canaux li { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--filet); align-items: baseline; }
.contact__canaux .libelle { font-size: var(--t-s); color: var(--graphite); }
.contact__canaux .valeur { font-family: var(--serif); font-size: var(--t-xl); line-height: 1.15; }
.contact__canaux .valeur a { text-decoration: none; }
.contact__canaux .valeur a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.reseaux { display: flex; flex-wrap: wrap; gap: 10px 24px; font-family: var(--sans); font-size: var(--t-m); }
.reseaux a { text-decoration: none; font-weight: 500; }
.reseaux a:hover { text-decoration: underline; text-underline-offset: 4px; }
.contact__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.note { font-size: var(--t-xs); color: var(--graphite); margin-top: 16px; }
.contact__principal { display: flex; flex-direction: column; }
.contact__adresse { font-style: normal; display: block; }
.valeur--attente { color: var(--graphite); }

/* plan d'accès (Google Maps) : tirage en noir et blanc, posé sur un fond de remplacement */
.plan { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 32px; align-items: end; margin-top: clamp(48px, 6vw, 88px); }
.plan__carte {
  position: relative; height: clamp(300px, 34vw, 480px); overflow: hidden;
  border: 1px solid var(--encre); background: var(--pierre);
}
.plan__repli {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 28px;
  background:
    linear-gradient(var(--pierre), rgba(236, 236, 232, 0) 30%),
    repeating-linear-gradient(0deg, transparent 0 47px, rgba(21, 21, 21, .07) 47px 48px),
    repeating-linear-gradient(90deg, transparent 0 47px, rgba(21, 21, 21, .07) 47px 48px),
    var(--pierre);
}
.plan__repli::before {
  content: ""; position: absolute; left: 50%; top: 46%; width: 14px; height: 14px; margin: -7px 0 0 -7px;
  border-radius: 50%; background: var(--rouge); box-shadow: 0 0 0 10px rgba(225, 6, 0, .12);
}
.plan__repli-lieu { font-family: var(--serif); font-size: var(--t-xl); line-height: 1; }
.plan__repli-repere { font-family: var(--mono); font-size: var(--t-xs); color: var(--graphite); }
.plan__iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block;
  filter: grayscale(1) contrast(1.06) brightness(1.02);
  transition: opacity .8s ease;
}
.js .plan__iframe { opacity: 0; }
.js .plan__carte--chargee .plan__iframe { opacity: 1; }
.plan__infos { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; padding-bottom: 4px; }
.plan__adresse { font-style: normal; font-family: var(--serif); font-size: var(--t-xl); line-height: 1.15; }
.plan__infos .bouton svg, .contact__actions .bouton svg, .fiche__actions .bouton svg { width: 18px; height: 18px; }
.repere { display: block; font-size: var(--t-xs); color: var(--graphite); margin-top: 6px; font-family: var(--sans); }
.plan__infos .repere { margin-top: -8px; }
.plan--compact { display: block; margin-top: 32px; }
.plan--compact .plan__carte { height: 240px; }
.plan--compact .plan__repli { padding: 20px; }

/* ---------- Pied de page ---------- */
.pied { background: var(--noir); color: #fff; padding: clamp(64px, 8vw, 112px) 0 40px; }
.pied a { text-decoration: none; }
.pied a:hover { text-decoration: underline; text-underline-offset: 4px; }
.pied__grille { display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2fr)); gap: 40px; }
.pied__logo { width: 250px; height: auto; margin-block: -30px; margin-inline: -29px 0; }
.pied__adresse { font-style: normal; margin-top: 18px; max-width: 22em; color: rgba(255, 255, 255, .82); font-size: var(--t-s); }
.pied__itineraire { display: inline-block; margin-top: 8px; font-size: var(--t-s); text-decoration: underline !important; text-underline-offset: 4px; }
.pied__titre { font-size: var(--t-s); color: rgba(255, 255, 255, .55); margin-bottom: 14px; }
.pied__liste { display: flex; flex-direction: column; gap: 8px; }
.pied__mentions { margin-top: clamp(48px, 6vw, 80px); padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .16); display: grid; gap: 10px; font-size: var(--t-s); color: rgba(255, 255, 255, .62); }
.pied__bas { margin-top: 0; }
.pied__mentions p { max-width: 62em; }
.pied__mentions a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.pied__agence { color: rgba(255, 255, 255, .62) !important; }
.pied__agence:hover { color: #fff !important; }

/* ---------- Pages intérieures ---------- */
.page { padding-top: var(--entete); }
.tete-page { padding: clamp(40px, 6vw, 88px) 0 clamp(28px, 3vw, 40px); }
.fil { display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: var(--t-s); color: var(--graphite); margin-bottom: 26px; }
.fil a { text-decoration: none; }
.fil a:hover { text-decoration: underline; }
.fil li + li::before { content: "/"; margin-inline-end: 10px; color: var(--filet); }
.tete-page__titre { font-family: var(--serif); font-weight: 400; font-size: var(--t-3xl); line-height: .96; letter-spacing: -0.018em; }
.tete-page__ligne { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 16px 32px; }
.compteur { font-family: var(--mono); font-size: var(--t-s); color: var(--graphite); }

/* catalogue : onglets d'état */
.onglets { display: flex; gap: 6px 34px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--filet); margin-top: 28px; }
.onglets::-webkit-scrollbar { display: none; }
.onglet { flex: none; white-space: nowrap; }
.onglet {
  position: relative; background: none; border: 0; padding: 12px 0 14px; cursor: pointer;
  font-family: var(--serif); font-size: clamp(1.35rem, 1.1rem + .9vw, 1.9rem); line-height: 1.1; color: #8f8f8a;
  display: inline-flex; align-items: baseline; gap: 6px;
}
.onglet sup { font-family: var(--mono); font-size: var(--t-xs); top: -1em; }
.onglet::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--rouge); transform: scaleX(0); transform-origin: 0 50%; transition: transform .4s var(--ease); }
.onglet:hover { color: var(--encre); }
.onglet[aria-selected="true"] { color: var(--encre); }
.onglet[aria-selected="true"]::after { transform: scaleX(1); }
.onglets__aide { margin-top: 14px; font-size: var(--t-s); color: var(--graphite); min-height: 1.6em; }

.barre-outils {
  position: sticky; top: var(--entete); z-index: 20;
  background: #fff;
  border-bottom: 1px solid var(--filet);
  margin-top: 24px;
}
.barre-outils__in { display: flex; align-items: center; gap: 14px; min-height: 68px; flex-wrap: wrap; padding-block: 10px; }
.puces { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; min-width: 0; }
.puce {
  display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px;
  border: 1px solid var(--filet); background: var(--galerie); cursor: pointer; font-size: var(--t-s);
}
.puce:hover { border-color: var(--encre); }
.puce svg { width: 12px; height: 12px; }
.puce--effacer { border-color: transparent; text-decoration: underline; text-underline-offset: 3px; }
.tri { display: flex; align-items: center; gap: 10px; font-size: var(--t-s); color: var(--graphite); margin-inline-start: auto; }
.tri select { min-height: 44px; padding-block: 0; padding-inline: 12px 36px; border: 1px solid var(--filet); background: var(--galerie); appearance: none; -webkit-appearance: none; color: var(--encre);
  background-image: linear-gradient(45deg, transparent 50%, var(--encre) 50%), linear-gradient(135deg, var(--encre) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }

/* grille des lots */
.grille-lots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(48px, 5vw, 72px) clamp(24px, 3.4vw, 48px); padding: clamp(40px, 5vw, 64px) 0 clamp(64px, 8vw, 120px); }
.grille-lots--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0; gap: 40px 28px; }
.lot { display: flex; flex-direction: column; min-width: 0; }
.lot__media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--pierre); }
.lot__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease); }
.lot:hover .lot__media img { transform: scale(1.045); }
.badge {
  position: absolute; top: 14px; inset-inline-start: 14px;
  display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px;
  background: var(--galerie); color: var(--encre); font-size: var(--t-xs); font-weight: 600; letter-spacing: .02em;
}
.badge--import { background: var(--encre); color: #fff; }
.lot__photo-note { position: absolute; right: 10px; bottom: 10px; padding: 3px 8px; font-size: 0.7rem; color: #fff; background: rgba(0, 0, 0, .58); }
.lot__cartel { padding-top: 20px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 0; }
.lot__marque { grid-column: 1 / -1; font-size: var(--t-s); font-weight: 600; letter-spacing: .02em; }
.lot__titre { grid-column: 1 / -1; font-family: var(--serif); font-weight: 400; font-size: clamp(1.6rem, 1.2rem + 1vw, 2.15rem); line-height: 1.08; }
.lot__titre a { text-decoration: none; }
.lot__titre a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.lot__meta { grid-column: 1 / -1; margin-top: 6px; font-family: var(--mono); font-size: var(--t-xs); color: var(--graphite); }
.lot__commande { grid-column: 1 / -1; margin-top: 12px; padding: 10px 12px; background: var(--pierre); font-size: var(--t-s); }
.lot__prix { grid-column: 1 / 2; margin-top: 16px; padding-top: 14px; padding-inline-end: 20px; border-top: 1px solid var(--filet); display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; }
.lot__prix .prix-millions { font-size: clamp(1.45rem, 1.2rem + .7vw, 1.85rem); }
.lot__prix .prix-ligne { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.lot__statut { grid-column: 2 / 3; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--filet); font-size: var(--t-s); text-align: end; }
.statut { display: inline-flex; align-items: center; gap: 8px; color: var(--rouge); font-weight: 500; }
.statut::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.statut--commande { color: var(--encre); }
.statut--commande::before { background: transparent; border: 1px solid currentColor; }
.lot__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; margin-top: 18px; }
.lot--compact .lot__titre { font-size: 1.6rem; }
.lot--compact .lot__actions { display: none; }
.lot--compact .lot__cartel { grid-template-columns: 1fr; }
.lot--compact .lot__prix { padding-inline-end: 0; }
.lot--compact .lot__statut { grid-column: 1 / -1; text-align: start; margin-top: 0; padding-top: 6px; border-top: 0; }

.vide { padding: 72px 0 120px; max-width: 40em; }
.vide h2 { font-family: var(--serif); font-weight: 400; font-size: var(--t-xl); }
.vide p { margin-top: 12px; color: var(--graphite); }
.vide .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.note-catalogue { padding-bottom: 48px; font-size: var(--t-s); color: var(--graphite); }

/* tiroir de filtres */
.voile { position: fixed; inset: 0; z-index: 70; background: rgba(0, 0, 0, .38); opacity: 0; transition: opacity .35s ease; }
.voile.ouvert { opacity: 1; }
.tiroir {
  position: fixed; top: 0; inset-inline-end: 0; bottom: 0; z-index: 71;
  width: min(460px, 100%); background: var(--galerie);
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .45s var(--ease);
}
.tiroir.ouvert { transform: translateX(0); }
.tiroir[hidden], .voile[hidden] { display: none; }
.tiroir__tete { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; border-bottom: 1px solid var(--filet); }
.tiroir__tete h2 { font-family: var(--serif); font-weight: 400; font-size: 1.9rem; }
.tiroir__fermer { min-height: 44px; padding: 0 14px; background: none; border: 1px solid var(--encre); cursor: pointer; }
.tiroir__corps { flex: 1; overflow-y: auto; padding: 8px 24px 24px; }
.tiroir__pied { display: grid; grid-template-columns: auto 1fr; gap: 12px; padding: 16px 24px; border-top: 1px solid var(--filet); }
.filtre { border: 0; margin: 0; padding: 22px 0; border-bottom: 1px solid var(--filet); }
.filtre legend { float: left; width: 100%; padding: 0; margin-bottom: 14px; font-family: var(--serif); font-size: 1.45rem; }
.filtre legend + * { clear: both; }
.filtre__aide { font-size: var(--t-xs); color: var(--graphite); margin: -6px 0 12px; clear: both; }
.options { display: flex; flex-wrap: wrap; gap: 8px; }
.option { position: relative; }
.option input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.option span {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px;
  border: 1px solid var(--filet); font-size: var(--t-s); cursor: pointer; transition: border-color .2s, background-color .2s, color .2s;
}
.option span small { font-family: var(--mono); color: var(--graphite); font-size: 0.72rem; }
.option input:checked + span { background: var(--encre); color: #fff; border-color: var(--encre); }
.option input:checked + span small { color: rgba(255, 255, 255, .7); }
.option input:focus-visible + span { outline: 2px solid var(--rouge); outline-offset: 2px; }
.option input:disabled + span { opacity: .4; cursor: not-allowed; }
.option:hover input:not(:disabled) + span { border-color: var(--encre); }
.budget { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.budget .champ input { min-height: 46px; }

/* ---------- Fiche véhicule ---------- */
.fiche { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(28px, 4vw, 64px); align-items: start; padding-bottom: clamp(64px, 8vw, 112px); }
.galerie { min-width: 0; }
.galerie__cadre { position: relative; background: var(--pierre); }
.galerie__piste { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.galerie__piste::-webkit-scrollbar { display: none; }
.galerie__vue { flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: 16 / 10; position: relative; margin: 0; }
.galerie__vue img { width: 100%; height: 100%; object-fit: cover; }
.galerie__vue button { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.galerie__commandes { display: flex; align-items: center; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.galerie__btn { min-height: 44px; min-width: 44px; padding: 0 12px; background: var(--galerie); border: 1px solid var(--filet); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: var(--t-s); }
.galerie__btn:hover { border-color: var(--encre); }
.galerie__btn svg { width: 16px; height: 16px; }
.galerie__compte { font-family: var(--mono); font-size: var(--t-s); color: var(--graphite); margin-inline-start: auto; }
.galerie__vignettes {
  /* une seule rangée, défilante : jamais de vignette orpheline, quel que soit le nombre de photos */
  position: relative; display: flex; gap: 10px; margin-top: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-padding-inline: 0; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.galerie__vignettes::-webkit-scrollbar { display: none; }
.galerie__vignette { flex: 0 0 calc((100% - 40px) / 5); scroll-snap-align: start; padding: 0; border: 1px solid transparent; background: var(--pierre); cursor: pointer; aspect-ratio: 16 / 10; overflow: hidden; opacity: .55; transition: opacity .25s, border-color .25s; }
.galerie__vignette img { width: 100%; height: 100%; object-fit: cover; }
.galerie__vignette[aria-current="true"] { opacity: 1; border-color: var(--encre); }
.galerie__vignette:hover { opacity: 1; }
.galerie__note { margin-top: 12px; font-size: var(--t-xs); color: var(--graphite); }

.colonne-prix { position: sticky; top: calc(var(--entete) + 24px); }
.fiche__marque { font-size: var(--t-s); font-weight: 600; letter-spacing: .02em; display: flex; align-items: center; gap: 12px; }
.fiche__marque .badge { position: static; border: 1px solid var(--encre); }
.fiche__titre { font-family: var(--serif); font-weight: 400; font-size: clamp(2.3rem, 1.6rem + 2vw, 3.4rem); line-height: 1.02; margin-top: 12px; letter-spacing: -0.012em; }
.fiche__meta { margin-top: 14px; font-family: var(--mono); font-size: var(--t-s); color: var(--graphite); }
.fiche__statut { margin-top: 16px; font-size: var(--t-s); }
.fiche__prix { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--encre); }
.fiche__prix .prix-millions { font-size: clamp(2.2rem, 1.7rem + 1.6vw, 3rem); display: block; line-height: 1.1; }
.fiche__prix .prix-ligne { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; align-items: baseline; }
.decompte { margin-top: 16px; border-top: 1px solid var(--filet); }
.decompte li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--filet); font-size: var(--t-s); }
.decompte li span:last-child { font-family: var(--mono); text-align: end; }
.fiche__actions { display: grid; gap: 10px; margin-top: 24px; }
.fiche__adresse { font-style: normal; margin-top: 18px; padding: 16px 0 0; border-top: 1px solid var(--filet); font-size: var(--t-s); display: grid; gap: 2px; }
.fiche__adresse-titre { font-family: var(--serif); font-size: 1.35rem; line-height: 1.15; margin-bottom: 4px; }
.fiche__mentions { margin-top: 18px; font-size: var(--t-xs); color: var(--graphite); display: grid; gap: 4px; }

.fiche-bloc { padding-block: clamp(56px, 7vw, 96px); border-top: 1px solid var(--filet); }
.fiche-bloc__titre { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 1.5rem + 1.6vw, 3rem); line-height: 1.05; margin-bottom: clamp(28px, 4vw, 48px); }
.tuiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border-top: 1px solid var(--encre); }
.tuile { padding-block: 22px; padding-inline: 0 20px; border-bottom: 1px solid var(--filet); }
.tuile dt { font-size: var(--t-s); color: var(--graphite); }
.tuile dd { font-family: var(--serif); font-size: clamp(1.7rem, 1.3rem + 1vw, 2.3rem); line-height: 1.1; margin-top: 6px; }
.caracteristiques { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; margin-top: 40px; }
.caracteristiques div { display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--filet); font-size: var(--t-s); }
.caracteristiques dt { color: var(--graphite); }
.bloc-categorie { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px 64px; }
/* neuf et occasion : texte puis bouton, alignés sur la même colonne */
.bloc-categorie--simple { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.bloc-categorie--simple .bouton { align-self: flex-start; }
.mini-etapes { counter-reset: e; border-top: 1px solid var(--encre); }
.mini-etapes li { display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--filet); }
.mini-etapes li span { font-family: var(--mono); font-size: var(--t-xs); color: var(--graphite); padding-top: 3px; }
.credits-fiche { font-size: var(--t-xs); color: var(--graphite); margin-top: 28px; display: grid; gap: 4px; }
.credits-fiche a { color: inherit; }

.barre-mobile { display: none; }

.visionneuse { padding: 0; border: 0; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; background: rgba(0, 0, 0, .94); color: #fff; }
.visionneuse::backdrop { background: rgba(0, 0, 0, .9); }
.visionneuse img { width: 100%; height: 100%; object-fit: contain; padding: 64px 16px; }
.visionneuse__fermer { position: absolute; top: 16px; inset-inline-end: 16px; min-height: 44px; padding: 0 14px; background: none; border: 1px solid #fff; color: #fff; cursor: pointer; }

/* ---------- Crédits ---------- */
.table-credits { width: 100%; border-collapse: collapse; font-size: var(--t-s); }
.table-credits th, .table-credits td { text-align: start; padding-block: 12px; padding-inline: 0 16px; border-bottom: 1px solid var(--filet); vertical-align: top; }
.table-credits th { font-weight: 600; border-bottom-color: var(--encre); }
.table-credits td:first-child { width: 112px; }
.table-credits img { width: 96px; aspect-ratio: 16 / 10; object-fit: cover; }
.credits-texte { max-width: 46em; color: var(--graphite); display: grid; gap: 12px; margin-bottom: 40px; }
.defile-x { overflow-x: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .index__lien { grid-template-columns: 40px 150px minmax(0, 1fr) 210px; row-gap: 6px; }
  .index__num, .index__vignette, .index__nom { grid-row: span 2; }
  .index__prix { grid-column: 4; grid-row: 1; align-self: end; }
  .index__etat { grid-column: 4; grid-row: 2; align-self: start; align-items: flex-end; text-align: end; }
  .etapes { grid-template-columns: repeat(3, 1fr); row-gap: 48px; }
}
@media (max-width: 960px) {
  .manifeste__faits, .metiers__grille, .showroom__bande { grid-template-columns: 1fr; }
  .manifeste__phrase { grid-column: 1 / -1; }
  .recherche__champs { grid-template-columns: 1fr 1fr; }
  .recherche__champs .bouton { grid-column: 1 / -1; }
  .import__tete, .contact__grille, .bloc-categorie { grid-template-columns: 1fr; }
  .showroom__titre, .showroom__texte { grid-column: 1 / -1; }
  .pied__grille { grid-template-columns: 1fr 1fr; }
  .pied__grille > :first-child { grid-column: 1 / -1; }
  .fiche { grid-template-columns: 1fr; }
  .colonne-prix { position: static; }
  .grille-lots--3 { grid-template-columns: 1fr 1fr; }
  .caracteristiques { grid-template-columns: 1fr; }
  .plan { grid-template-columns: 1fr; align-items: start; gap: 24px; }
}
@media (max-width: 760px) {
  :root { --entete: 64px; }
  .ouverture__texte { bottom: calc(10vh + 132px); }
  .ouverture__actions { bottom: 8vh; inset-inline-end: var(--gouttiere); }
  .ouverture__actions .bouton { flex: 1 1 auto; }
  .ouverture__defiler { display: none; }
  .grille-lots { grid-template-columns: 1fr; }
  .grille-lots--3 { grid-template-columns: 1fr; }
  .index__lien { grid-template-columns: 26px 104px minmax(0, 1fr); gap: 4px 14px; padding: 18px 0; align-items: start; }
  .index__num { grid-row: span 3; padding-top: 2px; font-size: var(--t-xs); }
  .index__vignette { grid-column: 2; grid-row: span 3; }
  .index__nom { grid-column: 3; grid-row: 1; }
  .index__prix { grid-column: 3; grid-row: 2; align-self: start; align-items: flex-start; text-align: start; margin-top: 6px; }
  .index__prix .prix-ligne { justify-content: flex-start; gap: 2px 10px; }
  .index__etat { grid-column: 3; grid-row: 3; align-items: flex-start; text-align: start; flex-direction: row; flex-wrap: wrap; gap: 2px 10px; }
  .index__etat .statut, .index__etat-detail { font-size: var(--t-xs); }
  .index__meta { margin-top: 4px; }
  .index__prix .prix-millions { font-size: 1.1rem; }
  .index__modele { font-size: 1.45rem; }
  .onglets { gap: 6px 18px; margin-inline: calc(-1 * var(--gouttiere)); padding-inline: var(--gouttiere); }
  .onglet { font-size: 1.16rem; }
  .plan__carte { height: 300px; }
  .plan__repli { padding: 20px; }
  .plan__adresse { font-size: 1.6rem; }
  .etapes { grid-template-columns: 1fr; row-gap: 0; }
  .etape { padding-block: 22px; padding-inline: 30px 0; border-top: 0; border-inline-start: 1px solid var(--encre); }
  .etape::before { top: 28px; inset-inline-start: -5px; }
  .import__chiffres { grid-template-columns: 1fr 1fr; }
  .contact__canaux li { grid-template-columns: 1fr; gap: 4px; }
  .recherche__champs { grid-template-columns: 1fr; }
  .tri span { display: none; }
  /* pastilles de filtres actives : rangée pleine largeur sous le bouton Filtres et le tri */
  .puces { order: 3; flex: 1 1 100%; }
  .puces:empty { display: none; }
  .caracteristiques div { grid-template-columns: 130px 1fr; }
  .galerie__vignettes { gap: 6px; margin-inline: calc(-1 * var(--gouttiere)); padding-inline: var(--gouttiere); scroll-padding-inline: var(--gouttiere); }
  .galerie__vignette { flex-basis: 27%; }
  .fiche { padding-bottom: 96px; }
  .barre-mobile {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    align-items: center; gap: 12px; padding: 10px var(--gouttiere) calc(10px + env(safe-area-inset-bottom));
    background: var(--galerie); border-top: 1px solid var(--filet);
  }
  .barre-mobile .prix-millions { font-size: 1.15rem; display: block; line-height: 1.2; }
  .barre-mobile .prix-ligne { gap: 2px 8px; }
  .barre-mobile .bouton { margin-inline-start: auto; }
  .pied { padding-bottom: 32px; }
  .page--fiche .pied { padding-bottom: 104px; }
  .table-credits thead { display: none; }
  .table-credits, .table-credits tbody { display: block; }
  .table-credits tr { display: grid; grid-template-columns: 88px 1fr; column-gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--filet); }
  .table-credits td { display: block; padding: 2px 0; border: 0; }
  .table-credits td:first-child { grid-row: span 5; width: auto; }
  .table-credits img { width: 88px; }
}
@media (max-width: 420px) {
  .pied__grille { grid-template-columns: 1fr; }
  .lot__cartel { grid-template-columns: 1fr; }
  .lot__statut { grid-column: 1 / -1; text-align: start; margin-top: 0; padding-top: 4px; border-top: 0; }
}

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

/* ==========================================================================
   Version arabe (html[lang="ar"][dir="rtl"])
   Titres : Markazi Text (serif arabe, en écho à Instrument Serif) ; texte : IBM Plex Sans Arabic.
   Les noms latins (marques, modèles) gardent Instrument Serif et Hanken Grotesk.
   Pas d'italique ni d'espacement de lettres sur l'arabe, interlignage plus généreux.
   ========================================================================== */
html[lang="ar"] {
  --serif: "Instrument Serif", "Markazi Text", "Times New Roman", serif;
  --sans: "Hanken Grotesk", "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  /* chiffres et unités en arabe : IBM Plex Sans Arabic à chiffres tabulaires (pas d'espaces à chasse fixe entre les mots) */
  --mono: "IBM Plex Sans Arabic", "Hanken Grotesk", sans-serif;
}
html[lang="ar"] .prix-millions, html[lang="ar"] .prix-da, html[lang="ar"] .compteur, html[lang="ar"] .import__chiffres dt { font-variant-numeric: tabular-nums; }
html[lang="ar"] .prix-millions { font-weight: 500; }
html[dir="rtl"] .pied__logo { margin-inline: -20px 0; }
html[lang="ar"] body { line-height: 1.85; }
html[lang="ar"] *, html[lang="ar"] *::before, html[lang="ar"] *::after { letter-spacing: 0 !important; }
html[lang="ar"] em, html[lang="ar"] i { font-style: normal; }
html[lang="ar"] .manifeste__arabe { display: none; }

/* la serif arabe est plus petite à corps égal : titres légèrement agrandis, lignes aérées */
html[lang="ar"] .ouverture__titre { font-size: calc(var(--t-3xl) * 1.06); line-height: 1.25; font-weight: 400; }
html[lang="ar"] .titre-section,
html[lang="ar"] .manifeste__phrase { font-size: calc(var(--t-2xl) * 1.06); line-height: 1.28; font-weight: 400; }
html[lang="ar"] .tete-page__titre { line-height: 1.25; font-weight: 400; }
html[lang="ar"] .showroom__titre { line-height: 1.15; font-weight: 400; }
html[lang="ar"] .manifeste__faits dt,
html[lang="ar"] .recherche__titre,
html[lang="ar"] .metier__titre,
html[lang="ar"] .etape__titre,
html[lang="ar"] .showroom__bande dd,
html[lang="ar"] .contact__canaux .valeur,
html[lang="ar"] .plan__adresse,
html[lang="ar"] .plan__repli-lieu,
html[lang="ar"] .fiche-bloc__titre,
html[lang="ar"] .fiche__adresse-titre,
html[lang="ar"] .tiroir__tete h2,
html[lang="ar"] .filtre legend,
html[lang="ar"] .vide h2,
html[lang="ar"] .tuile dt,
html[lang="ar"] .onglet,
html[lang="ar"] .etat-choix span,
html[lang="ar"] .menu-mobile a.menu-mobile__lien { line-height: 1.45; font-weight: 500; }
html[lang="ar"] .chapo, html[lang="ar"] .ouverture__sous { line-height: 1.75; }
html[lang="ar"] .titre-section::after { margin-top: 18px; }
/* mots révélés : marge verticale plus large pour les lettres arabes hautes et basses */
html[lang="ar"] .mot { padding-block: .12em .22em; margin-block: -.12em -.22em; }
html[lang="ar"] .prix-millions--texte { font-family: var(--serif); font-weight: 500; }
html[lang="ar"] .statut, html[lang="ar"] .lot__commande, html[lang="ar"] .fiche__statut { line-height: 1.6; }
html[lang="ar"] .prix-nature, html[lang="ar"] .badge, html[lang="ar"] .index__marque { font-weight: 600; }
html[lang="ar"] .lien-evitement { inset-inline-start: 12px; }

/* miroir des éléments directionnels */
html[dir="rtl"] .entete__nav a { background-position: 100% 100%; }
html[dir="rtl"] .lien { background-position: 100% 100%; }
html[dir="rtl"] .lien:hover { background-position: 0 100%; }
html[dir="rtl"] .ouverture__progression span { transform-origin: 100% 50%; }
html[dir="rtl"] .onglet::after { transform-origin: 100% 50%; }
html[dir="rtl"] .champ select { background-position: 15px 50%, 20px 50%; }
html[dir="rtl"] .tri select { background-position: 13px 50%, 18px 50%; }
html[dir="rtl"] .tiroir { transform: translateX(-100%); }
html[dir="rtl"] .tiroir.ouvert { transform: translateX(0); }
html[dir="rtl"] .galerie__btn--fleche svg { transform: scaleX(-1); }
html[dir="rtl"] .galerie__compte, html[dir="rtl"] .compteur { unicode-bidi: isolate; }
