/* Dan's Auto — pages générées côté serveur (stock, fiche d'un véhicule, page introuvable).
   S'appuie sur fonts.css et site.css (mêmes couleurs, mêmes polices, même navigation, même pied de page). */

/* Les liens qui ont l'aspect d'un bouton */
a.btn-primary { display: inline-block; text-align: center; text-decoration: none; }

/* ═══ Liste du stock ═══
   Les cartes (.car-card) et la rangée des « autres véhicules » (.stock-rail) sont décrites dans site.css : ce sont celles de l'accueil. */
/* Trois cartes par ligne au plus, comme sur l'accueil : plus étroites, les cartes feraient passer titres et prix sur plusieurs lignes. */
#stock-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  max-width: 1360px; margin-inline: auto;
}

.stock-empty {
  grid-column: 1 / -1; text-align: center;
  max-width: 640px; margin: 0 auto; padding: 36px 8px;
}
.stock-empty h2 {
  font-family: 'Cormorant Garamond', serif; font-weight: 400;
  font-size: clamp(28px, 3vw, 36px); margin-bottom: 14px;
}
.stock-empty p { color: var(--dark-gray); font-weight: 300; line-height: 1.8; margin-bottom: 26px; }

.stock-no-result { text-align: center; padding: 0 20px 52px; color: var(--gray); font-size: 14px; }

.stock-note {
  max-width: 860px; margin: 0 auto;
  padding: 36px clamp(20px, 4vw, 60px) 84px;
}
.stock-note h2 {
  font-family: 'Cormorant Garamond', serif; font-weight: 400;
  font-size: clamp(26px, 3vw, 34px); margin-bottom: 16px;
}
.stock-note p { font-size: 15px; line-height: 1.85; color: var(--dark-gray); font-weight: 300; margin-bottom: 14px; }
.stock-note a { color: var(--gold-ink); }

/* ═══ Fiche d'un véhicule ═══
   Une colonne de lecture à gauche (galerie, description, options, caractéristiques) et, à droite, le panneau prix + contact qui reste à l'écran
   pendant la lecture. Sur tablette et téléphone, tout passe en une colonne : galerie, panneau, texte. */
/* Bandeau sombre en haut de la fiche : la barre de navigation est transparente tant que l'on n'a pas défilé (comme sur l'accueil et le stock),
   il lui faut donc un fond sombre derrière elle. Même dégradé que le bandeau de la liste du stock (.catalogue-hero, site.css). Sa hauteur est
   celle de la barre non défilée (104 / 92 / 82 / 78 px, site.css) : tout en haut, la fiche ressemble à ce qu'elle était avec une barre pleine. */
.vehicle-band {
  --vehicle-band: 104px;
  position: relative; height: var(--vehicle-band); overflow: hidden;
  background:
    linear-gradient(135deg, rgba(15,14,12,0.96) 0%, rgba(26,23,19,0.98) 42%, rgba(58,45,28,0.94) 100%),
    radial-gradient(circle at 16% 20%, rgba(226,201,126,0.18) 0%, transparent 34%),
    radial-gradient(circle at 82% 76%, rgba(160,120,48,0.22) 0%, transparent 38%),
    var(--black);
}
.vehicle-band::before {
  content: ''; position: absolute; top: 0; right: 0; bottom: 0; left: 0; /* « inset » n'existe pas avant Safari 14.1 */
  background: repeating-linear-gradient(135deg, rgba(255,255,255,0.089) 0 1px, transparent 1px 62px);
  opacity: 0.42; pointer-events: none;
}
@media (max-width: 1024px) { .vehicle-band { --vehicle-band: 92px; } }
@media (max-width: 900px) { .vehicle-band { --vehicle-band: 82px; } }
@media (max-width: 480px) { .vehicle-band { --vehicle-band: 78px; } }

.vehicle-page {
  --vehicle-nav: 82px; /* hauteur de la barre de navigation une fois la page défilée (site.css) : le panneau collant se place juste dessous */
  max-width: 1320px; margin: 0 auto;
  padding: 28px clamp(20px, 4vw, 60px) 80px; /* le haut de la fiche est sous le bandeau .vehicle-band : plus besoin de réserver la place de la barre */
  overflow-x: clip; /* la rangée « autres véhicules » va jusqu'aux bords de l'écran sur tablette et téléphone : ce débordement ne doit pas élargir la page. clip (et non hidden) ne crée pas de zone de défilement : le panneau collant fonctionne. */
}
/* Navigateur sans « overflow: clip » (Safari avant la version 16) : « hidden » évite la même largeur de page en trop ; le panneau ne colle alors plus, il défile avec la page. */
@supports not (overflow: clip) { .vehicle-page { overflow-x: hidden; } }
@media (max-width: 1024px) { .vehicle-page { --vehicle-nav: 74px; } }
body.subpage-vehicle { background: var(--off-white); } /* fond crème : le panneau et les photos s'en détachent sans cadre supplémentaire (classe posée par la fiche : « :has() » n'existe pas avant Safari 15.4) */

.crumbs ol {
  list-style: none; display: flex; flex-wrap: wrap; gap: 8px;
  font-size: 12px; color: var(--gray); margin-bottom: 26px;
}
.crumbs li + li::before { content: '›'; margin-right: 8px; opacity: 0.6; }
.crumbs a { color: var(--dark-gray); text-decoration: none; }
.crumbs a:hover { color: var(--gold-ink); }
.crumbs [aria-current] { color: var(--black); }

.vehicle-layout {
  display: grid; align-items: start;
  grid-template-columns: minmax(0, 1fr) clamp(340px, 34vw, 410px); /* le panneau se resserre sur les écrans de 900 à 1200 px : la galerie garde plus de la moitié de la largeur */
  grid-template-areas: "gallery summary" "body summary";
  column-gap: clamp(32px, 4vw, 64px);
}
.vehicle-layout > .vehicle-gallery { grid-area: gallery; }

/* Galerie : une grande photo (flèches et compteur par-dessus), puis la rangée de miniatures. */
.vehicle-gallery { min-width: 0; } /* la galerie peut être plus étroite que sa rangée de miniatures, qui défile alors sur elle-même */
.vehicle-gallery-stage { position: relative; }
.vehicle-gallery-main {
  display: block; position: relative; overflow: hidden;
  aspect-ratio: 4 / 3; background: var(--black); /* les photos de Dan sont en 4/3 : elles remplissent le cadre */
  touch-action: pan-y pinch-zoom; /* un glissement horizontal du doigt change de photo (pages.js) ; le défilement vertical et le pincement restent au navigateur */
}
.vehicle-gallery-main img { display: block; width: 100%; height: 100%; object-fit: contain; } /* une photo verticale n'est pas rognée : bandes noires de chaque côté */
.vehicle-gallery--empty .vehicle-gallery-main {
  display: grid; place-items: center; background: var(--off-white);
  color: var(--gray); font-size: 14px; letter-spacing: 0.1em;
}
.vehicle-gallery-btn {
  position: absolute; top: 50%; z-index: 2; transform: translateY(-50%);
  width: 46px; height: 56px; display: grid; place-items: center;
  border: 0; padding: 0; cursor: pointer;
  background: rgba(15,14,12,0.62); color: var(--white);
  transition: background 0.25s ease, color 0.25s ease;
}
.vehicle-gallery-btn:hover { background: var(--gold); color: var(--black); }
.vehicle-gallery-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: -4px; }
.vehicle-gallery-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.vehicle-gallery-btn--prev { left: 0; }
.vehicle-gallery-btn--next { right: 0; }
.vehicle-gallery-count {
  position: absolute; right: 12px; bottom: 12px; z-index: 2; pointer-events: none;
  margin: 0; padding: 5px 10px; font-size: 12px; letter-spacing: 0.06em;
  background: rgba(15,14,12,0.78); color: var(--white);
}

.vehicle-thumbs {
  list-style: none; display: flex; gap: 8px; margin-top: 10px;
  overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none;
}
.vehicle-thumbs::-webkit-scrollbar { display: none; }
.vehicle-thumbs li { flex: 0 0 auto; }
.vehicle-thumbs a {
  display: block; width: 96px; aspect-ratio: 4 / 3; overflow: hidden;
  border: 2px solid transparent; opacity: 0.65; transition: opacity 0.25s ease, border-color 0.25s ease;
}
.vehicle-thumbs a:hover, .vehicle-thumbs a.active { opacity: 1; border-color: var(--gold); }
.vehicle-thumbs img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Panneau du véhicule : statut, titre, prix, quatre repères, contact. Collant sur ordinateur : il reste sous la barre de navigation pendant la lecture, puis repart avec la colonne. */
.vehicle-summary {
  grid-area: summary; align-self: start;
  position: sticky; top: calc(var(--vehicle-nav) + 24px);
  padding: 30px 32px 26px;
  background: var(--white); border-top: 2px solid var(--gold);
  box-shadow: var(--shadow-card);
}
.vehicle-status {
  display: inline-block; margin-bottom: 14px; padding: 5px 12px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark)); color: var(--black);
  font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
}
.vehicle-title {
  font-family: 'Cormorant Garamond', serif; font-weight: 400;
  font-size: clamp(32px, 3vw, 42px); line-height: 1.1; color: var(--black);
}
.vehicle-title span { color: var(--gold-ink); font-style: italic; margin-left: 4px; }
.vehicle-price {
  font-family: 'Cormorant Garamond', serif; font-weight: 600; line-height: 1;
  font-size: clamp(46px, 4vw, 56px); margin: 14px 0 22px;
}
/* Quatre repères sur deux colonnes, séparés par des filets : pas de cases grises dans le panneau. */
.vehicle-facts {
  list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 26px; border-top: 1px solid var(--light-gray);
}
.vehicle-facts li {
  display: flex; flex-direction: column; gap: 2px;
  padding: 14px 0; border-bottom: 1px solid var(--light-gray);
}
.vehicle-facts li:nth-child(odd) { padding-right: 16px; border-right: 1px solid var(--light-gray); }
.vehicle-facts li:nth-child(even) { padding-left: 22px; }
.vehicle-fact-label { font-size: 12px; letter-spacing: 0.02em; color: var(--gray); }
.vehicle-facts strong { font-size: 17px; font-weight: 500; line-height: 1.3; color: var(--black); overflow-wrap: anywhere; }
.vehicle-cta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.vehicle-cta .btn-primary { grid-column: 1 / -1; width: auto; margin: 0; } /* site.css limite .btn-primary à 320 px et le centre sur téléphone : ici il prend toute la largeur du panneau */
.vehicle-cta .btn-outline-dark { padding-inline: 10px; }
.vehicle-where {
  margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--light-gray);
  font-size: 13px; line-height: 1.7; color: var(--gray);
}
.vehicle-where a { color: var(--gold-ink); }
/* Écran trop bas pour contenir le panneau en entier : un panneau collant dont le bas resterait hors de l'écran cacherait les boutons. Il défile alors avec la page. */
@media (max-height: 700px) { .vehicle-summary { position: static; } }

/* Texte, options et caractéristiques : une seule colonne de lecture sous la galerie, sections séparées par un filet. */
.vehicle-body { grid-area: body; margin-top: 44px; min-width: 0; }
.vehicle-block + .vehicle-block { margin-top: 38px; padding-top: 34px; border-top: 1px solid var(--light-gray); }
.vehicle-block h2 {
  font-family: 'Cormorant Garamond', serif; font-weight: 400; font-size: 28px;
  margin-bottom: 16px;
}
.vehicle-block--text p { font-size: 15px; line-height: 1.9; color: var(--dark-gray); font-weight: 300; max-width: 74ch; }
.vehicle-specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
.vehicle-specs div {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 12px 0; border-bottom: 1px solid var(--light-gray); font-size: 14px;
}
.vehicle-specs dt { color: var(--gray); }
.vehicle-specs dd { font-weight: 500; text-align: right; }
.option-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.vehicle-page .option-tag { background: var(--white); } /* sur le fond crème de la fiche, les étiquettes sont blanches */

.vehicle-others { --rail-gutter: clamp(20px, 4vw, 60px); margin-top: 88px; text-align: center; } /* même marge que la page : la rangée de cartes la reprend (site.css, .stock-rail) */
.vehicle-others .stock-rail { margin-top: 40px; text-align: left; }
.vehicle-others-more { margin-top: 40px; }
@media (max-width: 1023px) { .vehicle-others-more { margin-top: 8px; } } /* la rangée défilante a déjà sa marge du bas */

/* Pied de page : adresse */
.footer-address {
  font-style: normal; margin-top: 16px; padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 12px; line-height: 1.9; color: rgba(255,255,255,0.6);
}
.footer-address a { color: inherit; text-decoration: none; }
.footer-address a:hover { color: var(--gold); }

/* ═══ Pages de service (dépôt-vente, vendre sa voiture) ═══
   Structure : bandeau sombre (titre à gauche, coordonnées à droite) · phrase d'accroche · quatre points · étapes en frise · liste à préparer ·
   questions fréquentes · bandeau final · pages liées. Les cartes de contact du bandeau sont celles de l'accueil (.contact-method, site.css). */
a.btn-outline { display: inline-block; text-align: center; text-decoration: none; }

/* Icônes dorées des services : un fichier SVG sert de masque, la couleur vient du dégradé doré. Sans « mask », l'icône est simplement absente. */
.ico { display: none; }
@supports ((-webkit-mask-image: url(a.svg)) or (mask-image: url(a.svg))) {
  .ico {
    display: block; flex-shrink: 0; width: 46px; height: 46px;
    background: var(--gold); /* une seule teinte (l'or du site) : les originaux sont tantôt noirs, tantôt dorés */
    -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
    -webkit-mask-position: center; mask-position: center;
    -webkit-mask-size: contain; mask-size: contain;
  }
  .ico-vente { -webkit-mask-image: url(/assets/img/service-vente.svg); mask-image: url(/assets/img/service-vente.svg); }
  .ico-controle { -webkit-mask-image: url(/assets/img/service-controle.svg); mask-image: url(/assets/img/service-controle.svg); }
  .ico-depot-vente { -webkit-mask-image: url(/assets/img/service-depot-vente.svg); mask-image: url(/assets/img/service-depot-vente.svg); }
  .ico-achat { -webkit-mask-image: url(/assets/img/service-achat.svg); mask-image: url(/assets/img/service-achat.svg); }
  .ico-administratif { -webkit-mask-image: url(/assets/img/service-administratif.svg); mask-image: url(/assets/img/service-administratif.svg); }
  .ico-conseil { -webkit-mask-image: url(/assets/img/service-conseil.svg); mask-image: url(/assets/img/service-conseil.svg); }
}

/* ── Bandeau ── */
.service-hero { text-align: left; padding-bottom: 84px; }
.service-hero-inner {
  max-width: 1160px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr);
  gap: clamp(36px, 6vw, 84px); align-items: center;
}
.service-hero .section-eyebrow { margin-bottom: 18px; color: var(--gold); } /* fond noir : l'or clair (le « .section-eyebrow » de base est en or foncé, pour les fonds clairs) */
.service-hero .section-eyebrow::before { content: none; }
.service-hero .section-eyebrow::after {
  content: ''; display: inline-block; vertical-align: middle;
  width: 44px; height: 1px; margin: 0 0 1px 18px; background: var(--gold); opacity: 0.5;
}
.service-hero .section-title { font-size: clamp(38px, 4.6vw, 64px); font-weight: 300; line-height: 1.04; text-wrap: balance; }
.service-hero .section-title em { display: block; }
.service-hero .catalogue-subtitle { margin-top: 20px; font-size: 16px; line-height: 1.6; color: rgba(255,255,255,0.62); }

.service-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.service-chips li {
  position: relative; padding: 8px 16px 8px 38px;
  border: 1px solid rgba(201,168,76,0.38); background: rgba(255,255,255,0.04);
  font-size: 13px; letter-spacing: 0.02em; color: rgba(255,255,255,0.88);
}
.service-chips li::before { /* coche dorée dessinée en CSS */
  content: ''; position: absolute; left: 16px; top: 50%; width: 9px; height: 5px; margin-top: -4px;
  border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg);
}

.service-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.service-hero-actions .btn-primary, .service-hero-actions .btn-outline { padding-top: 15px; padding-bottom: 15px; }
.service-hero-card { width: 100%; }

/* ── Corps ── */
.service-page {
  max-width: 1160px; margin: 0 auto;
  padding: 34px clamp(20px, 4vw, 60px) 96px;
}
.service-page .crumbs ol { margin-bottom: clamp(40px, 4.2vw, 58px); } /* air entre le fil d'Ariane et l'introduction (34 px avant le 19/11/2026) */
.service-page a { color: var(--gold-ink); }
.service-page .btn-primary { color: var(--black); }
.service-page .btn-outline { color: var(--white); }
.service-page .btn-outline:hover { color: var(--gold); }

/* L'accroche : un grand paragraphe en caractères à empattement, filet doré à gauche. */
.service-lead { max-width: 820px; padding-left: clamp(18px, 3vw, 32px); border-left: 2px solid var(--gold); }
.service-lead p {
  font-family: 'Cormorant Garamond', serif; font-weight: 400; color: var(--black);
  font-size: clamp(24px, 2.7vw, 33px); line-height: 1.38; letter-spacing: -0.005em;
}

.service-block { margin-top: clamp(64px, 8vw, 96px); }
.service-block h2, .service-related h2 {
  text-wrap: balance;
  font-family: 'Cormorant Garamond', serif; font-weight: 400;
  font-size: clamp(30px, 3.2vw, 42px); line-height: 1.12;
  margin-bottom: 30px;
}
.service-block h2::after, .service-related h2::after { /* petit filet doré sous chaque titre de section */
  content: ''; display: block; width: 56px; height: 2px; margin-top: 16px;
  background: linear-gradient(to right, var(--gold), var(--gold-dark));
}
.service-block > p { font-size: 15px; line-height: 1.85; color: var(--dark-gray); font-weight: 300; max-width: 74ch; margin-bottom: 12px; }

/* ── Points : quatre cartes avec icône ── */
.service-points {
  list-style: none; display: grid; gap: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.service-points li {
  display: flex; flex-direction: column;
  padding: 28px 24px 30px; background: var(--off-white);
  border: 1px solid var(--light-gray);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.service-points li:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); border-color: rgba(201,168,76,0.55); }
.service-points .ico { margin-bottom: 22px; }
.service-points .ico-achat { transform: scale(1.4); transform-origin: left center; } /* la voiture est un dessin large et bas : agrandie, elle pèse autant que les autres icônes */
.service-points h3, .service-steps h3 {
  font-family: 'Cormorant Garamond', serif; font-weight: 600;
  font-size: 24px; line-height: 1.18; margin-bottom: 10px; text-wrap: balance;
}
.service-points p, .service-steps p { font-size: 14.5px; line-height: 1.75; color: var(--dark-gray); font-weight: 300; }

/* ── Étapes : une frise (horizontale sur ordinateur, verticale sur téléphone) ── */
.service-steps { list-style: none; counter-reset: step; display: grid; gap: 30px; position: relative; }
.service-steps--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.service-steps--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.service-steps--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.service-steps li { counter-increment: step; position: relative; padding-top: 74px; }
.service-steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0; z-index: 1;
  width: 52px; height: 52px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark)); color: var(--black);
  font-family: 'Cormorant Garamond', serif; font-weight: 600; font-size: 27px; line-height: 1;
  font-variant-numeric: lining-nums; /* chiffres de même hauteur que les capitales : les chiffres « anciens » de la police descendent sous la ligne et paraissent décalés */
  font-feature-settings: 'lnum' 1;
}
.service-steps li:not(:last-child)::after { /* le trait qui relie une étape à la suivante */
  content: ''; position: absolute; top: 26px; left: 64px; right: -18px; height: 1px;
  background: linear-gradient(to right, var(--gold), rgba(201,168,76,0.25));
}

/* ── À préparer : un encadré avec une liste à cocher ── */
.service-prepare {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr);
  gap: clamp(28px, 5vw, 64px); align-items: start;
  padding: clamp(28px, 4.5vw, 52px); background: var(--off-white);
  border: 1px solid var(--light-gray); border-left: 3px solid var(--gold);
}
.service-prepare-head h2 { margin-bottom: 0; }
.service-prepare-head p { margin-top: 22px; font-size: 15px; line-height: 1.8; color: var(--dark-gray); font-weight: 300; }
.service-list { list-style: none; margin: 0; }
.service-list li {
  position: relative; padding: 0 0 0 40px; margin-bottom: 16px;
  font-size: 15.5px; line-height: 1.7; color: var(--dark-gray); font-weight: 300;
}
.service-list li:last-child { margin-bottom: 0; }
.service-list li::before { /* disque doré … */
  content: ''; position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 50%;
  border: 1px solid var(--gold); background: var(--white);
}
.service-list li::after { /* … et sa coche : un dessin dont le centre est celui du disque (même boîte de 24 × 24), donc toujours centré */
  content: ''; position: absolute; left: 0; top: 1px; width: 24px; height: 24px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.5 12.375l3.75 3.75 7.25-8.25' fill='none' stroke='%23A07830' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

/* ── Questions fréquentes : titre collant à gauche, cartes à droite ── */
.service-faq { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.7fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.service-faq-head { position: sticky; top: 110px; }
.service-faq-head h2 { margin-bottom: 0; }
.service-faq-head p { margin-top: 22px; font-size: 14.5px; line-height: 1.8; color: var(--dark-gray); font-weight: 300; }
.faq-item { background: var(--white); border: 1px solid var(--light-gray); margin-bottom: 10px; transition: border-color 0.3s ease, box-shadow 0.3s ease; }
.faq-item:hover { border-color: rgba(201,168,76,0.55); }
.faq-item[open] { border-color: var(--gold); box-shadow: var(--shadow-card); }
/* Pendant la fermeture animée (pages.js) la carte est encore « ouverte » pour le navigateur : on lui rend tout de suite l'aspect d'une carte fermée. */
.faq-item.is-closing { border-color: var(--light-gray); box-shadow: none; }
.faq-item.is-closing:hover { border-color: rgba(201,168,76,0.55); }
.faq-item summary {
  position: relative; cursor: pointer; list-style: none;
  padding: 20px 64px 20px 24px; font-size: 16px; font-weight: 500; line-height: 1.45;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; position: absolute; right: 20px; top: 50%; margin-top: -15px;
  width: 30px; height: 30px; display: grid; place-items: center;
  border: 1px solid var(--gold); border-radius: 50%;
  color: var(--gold-ink); font-size: 20px; font-weight: 300; line-height: 1;
  transition: background 0.25s ease, color 0.25s ease;
}
.faq-item[open] summary::after { content: '\2212'; background: var(--gold); color: var(--black); }
.faq-item.is-closing summary::after { content: '+'; background: transparent; color: var(--gold-ink); }
.faq-item summary:hover { color: var(--gold-ink); }
.faq-item summary:focus-visible { outline: 2px solid var(--gold-ink); outline-offset: -2px; }
.faq-answer { padding: 0 24px 22px; max-width: 74ch; }
.faq-answer p { font-size: 15px; line-height: 1.8; color: var(--dark-gray); font-weight: 300; margin-bottom: 10px; }

/* ── Bandeau final : même habillage que « Disponible pour vous » de l'accueil ── */
.service-cta {
  position: relative; overflow: hidden;
  margin-top: clamp(72px, 9vw, 108px); padding: clamp(40px, 6vw, 72px) clamp(24px, 5vw, 64px); text-align: center;
  background:
    linear-gradient(135deg, rgba(15,14,12,0.97) 0%, rgba(26,23,19,0.98) 48%, rgba(58,45,28,0.95) 100%),
    radial-gradient(circle at 16% 20%, rgba(226,201,126,0.18) 0%, transparent 34%),
    radial-gradient(circle at 82% 76%, rgba(160,120,48,0.22) 0%, transparent 38%),
    var(--black);
}
.service-cta::before { /* traits diagonaux */
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0.42;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,0.089) 0 1px, transparent 1px 62px);
}
.service-cta::after { /* cadre doré */
  content: ''; position: absolute; inset: 14px; pointer-events: none;
  border: 1px solid rgba(201,168,76,0.16);
}
.service-cta > * { position: relative; z-index: 1; }
.service-cta h2 {
  text-wrap: balance;
  font-family: 'Cormorant Garamond', serif; font-weight: 400;
  font-size: clamp(32px, 4vw, 52px); line-height: 1.1; color: var(--white); margin-bottom: 16px;
}
.service-cta h2::after { content: none; }
.service-cta > p { font-size: 16px; line-height: 1.8; color: rgba(255,255,255,0.72); font-weight: 300; max-width: 52ch; margin: 0 auto; }
.service-cta-buttons { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 30px; }
.service-cta address { text-wrap: balance; margin-top: 30px; padding-top: 26px; border-top: 1px solid rgba(201,168,76,0.2); font-style: normal; font-size: 13.5px; line-height: 1.9; color: rgba(255,255,255,0.55); }
.service-cta address strong { font-weight: 500; color: rgba(255,255,255,0.8); }
.service-cta address a { color: rgba(255,255,255,0.75); text-decoration: none; }
.service-cta address a:hover { color: var(--gold); }

/* ── Pages liées : deux cartes-liens ── */
.service-related { margin-top: clamp(56px, 7vw, 84px); }
.service-related h2 { font-size: clamp(26px, 2.6vw, 32px); margin-bottom: 24px; }
.service-related ul { list-style: none; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.service-related a {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 20px 24px; background: var(--off-white); border: 1px solid var(--light-gray);
  font-family: 'Cormorant Garamond', serif; font-weight: 600; font-size: 22px; line-height: 1.2; color: var(--black);
  text-decoration: none;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.service-related a::after { content: '\2192'; font-family: 'Outfit', sans-serif; font-weight: 400; font-size: 18px; color: var(--gold-ink); }
.service-related a:hover { transform: translateY(-2px); border-color: var(--gold); box-shadow: var(--shadow-card); }
.service-related a:focus-visible { outline: 2px solid var(--gold-ink); outline-offset: 3px; }

@media (max-width: 900px) {
  /* minmax(0, 1fr) et non 1fr : avec 1fr, la colonne ne peut pas être plus étroite que ses éléments, et la rangée de miniatures
     (une photo = une miniature, sans retour à la ligne) l'élargissait bien au-delà de l'écran du téléphone. */
  .vehicle-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "gallery" "summary" "body"; }
  .vehicle-summary { position: static; margin-top: 24px; }
  .vehicle-specs { grid-template-columns: minmax(0, 1fr); }
  .vehicle-body { margin-top: 40px; }
  .vehicle-others { margin-top: 72px; }
}
@media (max-width: 700px) {
  /* Téléphone : la grande photo va d'un bord à l'autre de l'écran, le panneau perd son cadre. */
  .vehicle-gallery-stage { margin-inline: calc(-1 * clamp(20px, 4vw, 60px)); }
  .vehicle-gallery-btn { width: 38px; height: 48px; }
  .vehicle-thumbs { margin-top: 8px; }
  .vehicle-thumbs a { width: 76px; }
  .vehicle-summary { margin-top: 0; padding: 22px 0 0; border-top: 0; background: none; box-shadow: none; }
}
@media (max-width: 600px) {
  .catalogue-filters .filter-btn { flex: 1 1 calc(33.33% - 10px); padding: 10px 6px; } /* trois par ligne : la liste commence plus haut */
}

@media (max-width: 1100px) {
  .service-points { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-steps--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 44px; }
  .service-steps--4 li:nth-child(2)::after { content: none; }
}
@media (max-width: 900px) {
  .service-hero-inner { grid-template-columns: minmax(0, 1fr); }
  .service-prepare, .service-faq { grid-template-columns: minmax(0, 1fr); }
  .service-faq-head { position: static; }
}
@media (max-width: 760px) {
  /* Frise verticale : le numéro à gauche, le texte à droite, un trait qui descend d'une étape à l'autre. */
  .service-steps--2, .service-steps--3, .service-steps--4 { grid-template-columns: minmax(0, 1fr); gap: 0; row-gap: 0; }
  .service-steps li { padding: 0 0 34px 72px; min-height: 52px; }
  .service-steps li:last-child { padding-bottom: 0; }
  .service-steps li:not(:last-child)::after, .service-steps--4 li:nth-child(2)::after {
    content: ''; top: 56px; bottom: 4px; left: 25px; right: auto; width: 1px; height: auto;
    background: linear-gradient(to bottom, var(--gold), rgba(201,168,76,0.25));
  }
}
@media (max-width: 700px) {
  .service-hero { padding-bottom: 56px; }
  .service-hero-actions .btn-primary, .service-hero-actions .btn-outline { flex: 1 1 100%; }
  .service-page { padding-top: 26px; }
  .service-points { grid-template-columns: 1fr; }
  .service-points li { padding: 24px 22px 26px; }
  .service-cta-buttons .btn-primary, .service-cta-buttons .btn-outline { flex: 1 1 100%; }
}

/* ═══ Pictos des boutons « Appeler » et « WhatsApp » (fiche d'un véhicule) ═══
   Les dessins sont dans un « sprite » en tête de vehicle.blade.php ; ils prennent la couleur du texte du bouton. Marge plutôt que « gap » :
   les anciens iPhone (avant iOS 14.1) ne connaissent pas « gap » sur les boîtes flex. */
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.btn-icon { width: 16px; height: 16px; flex: none; margin-right: 9px; fill: currentColor; }
.btn-has-icon, a.btn-has-icon { display: inline-flex; align-items: center; justify-content: center; }

/* Barre de contact de la fiche (téléphones seulement). Cachée tant que pages.js ne l'a pas fait apparaître : sans JavaScript, elle ne se montre jamais.
   z-index sous le menu mobile (990) et la barre de navigation (1000). */
.call-bar { display: none; }
@media (max-width: 700px) {
  .call-bar {
    display: flex; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(15,14,12,0.97);
    border-top: 1px solid rgba(201,168,76,0.28);
    transform: translateY(100%);
    visibility: hidden; /* retire aussi les boutons de l'ordre de tabulation et des lecteurs d'écran tant que la barre est cachée */
    transition: transform 0.3s ease, visibility 0s linear 0.3s;
  }
  .call-bar.is-visible {
    transform: translateY(0);
    visibility: visible;
    transition: transform 0.3s ease, visibility 0s;
  }
  .call-bar .btn-primary, .call-bar .btn-outline {
    flex: 1 1 0; min-height: 46px; padding: 0 8px;
    display: flex; align-items: center; justify-content: center;
    text-align: center; text-decoration: none; letter-spacing: 0.14em;
  }
  .call-bar .btn-primary:hover, .call-bar .btn-outline:hover { transform: none; }
  /* Une touche de tabulation ne doit jamais amener un élément sous la barre. */
  html:has(.call-bar) { scroll-padding-bottom: 80px; }
}
@media (prefers-reduced-motion: reduce) {
  .call-bar, .call-bar.is-visible { transition: none; }
}

/* ───── Zoom des photos de la fiche (lightbox.js) ─────
   Un clic sur la grande photo ouvre un diaporama plein écran : fond sombre et flouté (même verre dépoli que la barre de navigation), photo entière,
   flèches, compteur, fermeture. Le script crée ce bloc à la première ouverture ; sans lui, rien de tout ceci n'existe et la photo reste un lien. */
.vehicle-gallery-zoom {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 40px; height: 40px; padding: 0; border: 0; cursor: pointer;
  display: grid; place-items: center;
  background: rgba(15,14,12,0.62); color: var(--white);
  transition-property: background-color, color, scale; transition-duration: 0.15s; transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
  -webkit-tap-highlight-color: transparent;
}
.vehicle-gallery-zoom svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.vehicle-gallery-zoom:focus-visible { outline: 2px solid var(--gold); outline-offset: -4px; }
.vehicle-gallery-zoom:active { scale: 0.96; }
@media (hover: hover) {
  .vehicle-gallery-zoom:hover { background: var(--gold); color: var(--black); }
}
.vehicle-gallery.has-lightbox .vehicle-gallery-main { cursor: zoom-in; }

html.lightbox-open { overflow: hidden; }
html.lightbox-open body { padding-right: var(--scrollbar-gap, 0px); } /* la place de la barre de défilement reste réservée : la page derrière ne bouge pas */

.lightbox {
  position: fixed; inset: 0; z-index: 2000; /* au-dessus de la barre de navigation (1000) */
  background: rgba(15,14,12,0.74);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  opacity: 0; visibility: hidden; pointer-events: none;
  overscroll-behavior: contain; touch-action: none; outline: none;
  transition: opacity 0.15s cubic-bezier(0.2, 0, 0, 1), visibility 0s linear 0.15s; /* la fermeture est plus courte que l'ouverture */
}
.lightbox.is-open {
  opacity: 1; visibility: visible; pointer-events: auto;
  transition: opacity 0.25s cubic-bezier(0.2, 0, 0, 1), visibility 0s;
}
/* Navigateur sans flou d'arrière-plan : un fond à moitié transparent laisserait la page lisible derrière la photo. On revient à un fond presque plein. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .lightbox { background: rgba(15,14,12,0.95); }
}

.lightbox-track {
  position: absolute; inset: 0; display: flex;
  overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none;
  touch-action: pan-x pinch-zoom; /* le doigt fait glisser les photos ; le pincement agrandit ; rien ne fait défiler la page derrière */
}
.lightbox-track::-webkit-scrollbar { display: none; }
.lightbox-slide {
  flex: 0 0 100%; min-width: 0; height: 100%; box-sizing: border-box;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(68px, 10vh, 96px) clamp(14px, 7vw, 108px) clamp(16px, 4vh, 40px);
  scroll-snap-align: center; scroll-snap-stop: always; /* un geste rapide ne saute pas plusieurs photos d'un coup */
}
.lightbox-img {
  display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
  outline: 1px solid rgba(255,255,255,0.1); outline-offset: -1px; /* fin liseré clair : une photo sombre garde un bord net sur le fond sombre */
  -webkit-user-select: none; user-select: none; -webkit-user-drag: none;
}
@media (prefers-reduced-motion: no-preference) {
  .lightbox-track { transform: scale(0.985); transition: transform 0.15s cubic-bezier(0.2, 0, 0, 1); }
  .lightbox.is-open .lightbox-track { transform: none; transition-duration: 0.3s; }
}

.lightbox-bar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  padding: max(12px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left));
  pointer-events: none; /* seuls le compteur et le bouton réagissent : le reste de la barre laisse passer le doigt */
}
.lightbox-count {
  margin: 0; padding: 7px 12px; font-size: 14px; letter-spacing: 0.06em; font-variant-numeric: tabular-nums;
  color: var(--white); background: rgba(15,14,12,0.55);
}
.lightbox-close, .lightbox-nav {
  padding: 0; border: 0; cursor: pointer; display: grid; place-items: center; pointer-events: auto;
  background: rgba(15,14,12,0.62); color: var(--white);
  transition-property: background-color, color, scale, opacity; transition-duration: 0.15s; transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
  -webkit-tap-highlight-color: transparent;
}
.lightbox-close { width: 44px; height: 44px; }
.lightbox-nav { position: absolute; top: 0; bottom: 0; z-index: 2; margin: auto 0; width: 48px; height: 64px; }
.lightbox-nav--prev { left: max(0px, env(safe-area-inset-left)); }
.lightbox-nav--next { right: max(0px, env(safe-area-inset-right)); }
.lightbox-nav:disabled { opacity: 0; pointer-events: none; } /* pas de flèche vers rien : première et dernière photo */
.lightbox-close svg, .lightbox-nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lightbox-close:focus-visible, .lightbox-nav:focus-visible { outline: 2px solid var(--gold); outline-offset: -4px; }
.lightbox-close:active, .lightbox-nav:not(:disabled):active { scale: 0.96; }
@media (hover: hover) {
  .lightbox-close:hover, .lightbox-nav:not(:disabled):hover { background: var(--gold); color: var(--black); }
}
@media (max-width: 700px) {
  .lightbox-nav { width: 40px; height: 56px; }
  .lightbox-slide { padding-left: 0; padding-right: 0; } /* sur téléphone la photo prend toute la largeur ; les flèches se posent dessus, comme sur la fiche */
}
