/* Our own stylesheet. It is deliberately tiny, and it will stay that way.
 *
 * S10.1 of the build spec is a list of the reference project's attempts to
 * hand-write CSS that imitated the original -- a grid instead of their flex
 * row, aspect-ratio instead of their minmax, a rail typed from memory --
 * every one of which was reverted, and the fix was always to delete a rule
 * rather than add one. So this file does not lay anything out, size
 * anything, or restate a single value that their stylesheet already sets.
 *
 * It contains only things their stylesheet cannot give us:
 *   1. touch targets, which S10.4 says to extend with a transparent
 *      pseudo-element rather than by drawing their control larger
 *   2. our wordmark, which replaces their logo image
 *
 * Every rule below names the measurement that justifies it. If you are
 * about to add a pixel value you did not just measure, stop.
 */

/* ---------------------------------------------------------- touch targets
 * This block once also covered the numbered pagination links, which
 * measured 23-26 x 40 at 375px. That turned out not to be a tap-target
 * problem at all: the builder was giving them a class combination the
 * original never uses (sr-pagination-button on a page NUMBER, which only
 * previous and next carry). With the classes corrected, their own CSS
 * takes over and the measurements match the original exactly --
 *
 *     page number @ 1265px   theirs 49x40   ours 49x40
 *     page number @ 375px    theirs absent  ours display:none
 *
 * -- so the rules were deleted. S10.1: the fix is almost always to delete
 * something, not to add a rule. What is left here is the one control that
 * is genuinely ours.
 *
 * The spec-sheet link is a CTA the builder adds, and it measures 164x21.
 * S10.4 says to extend the area a thumb can hit rather than draw the
 * control larger, so the pseudo-element is absolutely positioned and adds
 * nothing to layout.
 */
/* The controls below are the original's own, and they are under the 32px
 * the audit asks for: the location link (138x18), the Carfax link
 * (216x24), "Voir plus" (327x28), the dealer website link (327x24) and
 * the price badge (107x24). §10.4 is explicit about the remedy -- extend
 * the area a thumb can hit with a transparent pseudo-element, rather than
 * drawing the control larger than theirs. The visible box stays exactly
 * as their stylesheet draws it; only the touch target grows.
 */
.sr-spec-sheet a,
.image-gallery-thumbnail,
[class*="WrapperButton_action__"],
[class*="BackButton_link__"],
.hfo-footer__to-top__link,
.hf-search-mask-nav__trigger,
.partner-logo,
[class*="CarFaxWithoutLogo_link__"],
[class*="DealerLink_link__"],
[class*="LocationWithPin_locationItem__"],
[class*="PriceLabelWrapper_priceCategoryContainer__"],
.sr-button--ghost-accent {
  position: relative;
}

.sr-spec-sheet a::after,
.image-gallery-thumbnail::after,
[class*="WrapperButton_action__"]::after,
[class*="BackButton_link__"]::after,
.hfo-footer__to-top__link::after,
.hf-search-mask-nav__trigger::after,
.partner-logo::after,
[class*="CarFaxWithoutLogo_link__"]::after,
[class*="DealerLink_link__"]::after,
[class*="LocationWithPin_locationItem__"]::after,
[class*="PriceLabelWrapper_priceCategoryContainer__"]::after,
.sr-button--ghost-accent::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  min-width: 44px;
  min-height: 44px;
  width: 100%;
  height: 100%;
}

/* -------------------------------------------------------- photo fallback
 * Photographs are served from R2 at /photos/<stock>/<n>.jpg (§6.2). Until
 * they are uploaded every one of them 404s, and a handful of real listings
 * have no photograph at all.
 *
 * MEASURED: with nothing behind it, a failed gallery image collapsed the
 * detail page's stage from 1060x747 to 1060x577 and reported the slide as
 * a 16px-tall tap target. The fix is in two halves, and neither of them
 * overrides one of their layout rules:
 *
 *   1. every <img> the builder writes carries width and height, so the
 *      browser reserves the right box from the markup, before the request
 *      resolves and whether or not it ever does. Their own card markup
 *      does the same thing (width="360" height="270").
 *   2. this placeholder sits behind the image. If the photo loads it
 *      covers it; if it does not, the reader gets a grey car rather than
 *      a broken-image icon.
 *
 * §10.1 note: this sets no width, height or aspect-ratio of its own. It
 * paints a background on boxes their stylesheet has already sized.
 */
/* MEASURED at 1265px with no photos on disk: the detail page's gallery
 * column came out 598x99 and the image itself 16x16, because their
 * stylesheet sizes .image-gallery-image from the loaded file and there is
 * no loaded file. width/height attributes on the <img> are not enough --
 * their CSS wins.
 *
 * So the SLIDE gets the box instead. 4:3 is their own ratio, not a number
 * invented here: their card images are 360x270 and their search-row images
 * 250x188, both 4:3. When the photographs are uploaded they fill exactly
 * this box, so the layout does not move. */
/* SPECIFICITY NOTE. Every selector below is scoped by an ancestor rather
 * than written as a bare class. That is not style: measured in Chromium,
 * the single-class versions lost to their own rules, and the result was a
 * gallery slide with the right 4:3 box and no placeholder in it, and a
 * thumbnail strip rendering #333 black rectangles. Ours load last, so
 * matching their specificity is enough to win; no !important is needed.
 */
.image-gallery .image-gallery-slide {
  /* 13:10, measured on their live listing page at 1265px: their slide is
   * 598x460. 4:3 put ours at 598x448, twelve pixels short. The real
   * photographs will be cover-fitted into this box, so it is worth being
   * their ratio rather than a tidy one. */
  aspect-ratio: 13 / 10;
}

.image-gallery .image-gallery-image,
[class*="NewGallery_item__"] picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-gallery .image-gallery-slide,
.image-gallery .image-gallery-image,
.sr-listing-card__container .sr-listing-card-image__image,
.sr-listing-card__container .sr-listing-card-image__placeholder,
[class*="NewGallery_slider__"] [class*="NewGallery_item__"] {
  background-image: url("/img/vehicle-placeholder.svg");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  background-color: #eceef0;
}

/* The thumbnail strip is small enough that the "Photo à venir" caption in
 * the placeholder is unreadable; a flat tone reads better at that size.
 * Theirs paints #333 here, which is why unloaded thumbnails came out as a
 * row of black rectangles. */
.image-gallery-thumbnails .image-gallery-thumbnail-image,
.image-gallery-thumbnails .image-gallery-thumbnail {
  background-color: #eceef0;
}

.image-gallery-thumbnails .image-gallery-thumbnail-image {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* A broken <img> renders its alt text over whatever is behind it, so the
 * placeholder came up with "2024 Nissan Pathfinder S 4WD" printed across
 * it in body copy. Transparent text hides that rendering WITHOUT removing
 * the alt attribute, so assistive technology still announces the vehicle —
 * which an empty alt would not. */
.sr-listing-card-image__image img,
.image-gallery-image,
.image-gallery-thumbnail-image,
[class*="NewGallery_item__"] img {
  color: transparent;
  font-size: 0;
}

/* ----------------------------------------------------------- our wordmark
 * chrome.rebrand() removes their logo image and puts our name in the same
 * anchor. These rules only make that text legible inside a header sized
 * for an image; they set no dimension of the header itself.
 */
.site-wordmark {
  font-weight: 800;
  font-size: 1.375rem;
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
  /* Their logo anchor is a link, so currentColor made this render as blue
   * link text on the red bar -- it looked like a broken string rather
   * than a wordmark. The header is red; the mark on it is white. */
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  height: 100%;
}

a:hover > .site-wordmark,
a:focus > .site-wordmark {
  color: #fff;
  text-decoration: none;
}

/* --------------------------------------------------------- dark-mode net
 * S3.3: a visitor whose phone is in dark mode otherwise gets the captured
 * stylesheet's dark rules over our light markup, which renders
 * black-on-black. chrome.force_light() sets color-scheme and a background
 * on every page; this is the belt to that braces, scoped so it cannot
 * affect a light-mode visitor.
 */
@media (prefers-color-scheme: dark) {
  html,
  body {
    background: #fff;
    color: #111;
  }
}

/* ------------------------------------------------------------- 404 page
 * The only page on the site with no captured equivalent, so it is the one
 * place with layout of its own. Kept to spacing and type scale; it inherits
 * the header, footer and button styles from their stylesheet.
 */
.nf-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 16px 72px;
}

.nf-title {
  font-size: 2rem;
  line-height: 1.2;
  margin: 0 0 12px;
}

.nf-lead {
  font-size: 1.0625rem;
  line-height: 1.5;
  margin: 0 0 28px;
  max-width: 52ch;
}

.nf-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin: 0 0 40px;
}

.nf-secondary {
  white-space: nowrap;
}

.nf-subtitle {
  font-size: 1.125rem;
  margin: 0 0 12px;
}

.nf-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px 24px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.nf-links a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  min-height: 44px;
  align-items: center;
}

.nf-count {
  color: #6b7279;
  font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------------- legal pages
 * Generated from our own text rather than captured, so like the 404 they
 * carry their own typography. Measured against nothing: this is prose, and
 * the only requirements are a readable measure and a tappable link.
 */
.lg-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 16px 72px;
}

.lg-title {
  font-size: 1.875rem;
  line-height: 1.2;
  margin: 0 0 8px;
}

.lg-updated {
  color: #6b7279;
  margin: 0 0 32px;
}

.lg-section {
  margin: 0 0 32px;
}

.lg-section h2 {
  font-size: 1.1875rem;
  line-height: 1.3;
  margin: 0 0 10px;
}

.lg-section p {
  margin: 0 0 14px;
  line-height: 1.6;
  max-width: 68ch;
}

.lg-list {
  margin: 0 0 14px;
  padding-left: 20px;
  line-height: 1.6;
  max-width: 68ch;
}

.lg-list li {
  margin: 0 0 8px;
}

.lg-page a {
  text-decoration: underline;
}

/* ------------------------------------------------------- the filter rail
 * The rows themselves are theirs: FilterListItem_filterItem__ gives the
 * 220x56 box, the icon column and the type. Measured against their live
 * site at 1024px, their rows are 220x56 and ours now are too.
 *
 * What is ours is the disclosure. Their rail opens a React drill-down
 * modal; we ship no such thing, so each row is a native <details> whose
 * open state reveals that filter's values as links. That works with
 * JavaScript blocked, which is the whole reason for choosing <details>
 * over a scripted panel.
 *
 * These rules do two jobs only: stop the browser drawing its own
 * disclosure triangle on top of their row, and lay out the list of links
 * the row reveals.
 */
.ahq-filter > summary {
  cursor: pointer;
  list-style: none;
}

.ahq-filter > summary::-webkit-details-marker,
.ahq-filter > summary::marker {
  display: none;
  content: "";
}

/* Their chevron points right when closed; turn it down when open, as a
 * disclosure control should. Scoped to the summary's own last svg so it
 * cannot reach the icon in the left-hand column. */
.ahq-filter > summary > svg:last-of-type {
  transition: transform 0.15s ease;
}

.ahq-filter[open] > summary > svg:last-of-type {
  transform: rotate(90deg);
}

.ahq-filter-options {
  display: flex;
  flex-direction: column;
  padding: 0 0 8px 56px;
}

.ahq-filter-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 4px 16px 4px 0;
  color: inherit;
  text-decoration: none;
  font-size: 0.9375rem;
  line-height: 1.3;
}

.ahq-filter-option:hover .ahq-filter-option__label,
.ahq-filter-option:focus-visible .ahq-filter-option__label {
  text-decoration: underline;
}

.ahq-filter-option.is-current .ahq-filter-option__label {
  font-weight: 700;
}

.ahq-filter-option__count {
  color: #6b7279;
  font-variant-numeric: tabular-nums;
  flex: none;
}

/* ---------------------------------------------------------- description
 * The dealer's own text, in a section cloned from one of theirs. Only the
 * paragraph rhythm is ours; the heading, icon and section spacing come
 * from their stylesheet.
 */
.ahq-description p {
  margin: 0 0 12px;
  line-height: 1.6;
  max-width: 68ch;
}

.ahq-description p:last-child {
  margin-bottom: 0;
}

/* ------------------------------------------------- mobile filter sheet
 * The sheet itself is theirs; only the way out of it is ours. §10.3 lists
 * "no close control in the header" as one of the five faults behind a
 * single bug report, so the control is deliberately a real 44px target
 * rather than a decorative glyph.
 */
.ahq-filter-close {
  /* Pinned to the sheet, not placed in its header: the header lives
   * inside LocationValidationOverlay, which swallows pointer events. */
  display: none;
  position: fixed;
  top: 8px;
  right: 8px;
  z-index: 10000;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: none;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  color: inherit;
}

html.ahq-sheet-open .ahq-filter-close {
  display: inline-flex;
}

/* The open state of the mobile filter sheet.
 *
 * !important is used here and almost nowhere else in this file, for a
 * reason worth writing down: their rules keep this panel off-canvas with
 * their own !important plus a transition that re-asserts the hidden
 * state, and the code that was supposed to lift it lives in the bundle we
 * strip. Setting the properties inline from JavaScript lost to them --
 * measured, the sheet settled at left:-18 still invisible. Our stylesheet
 * loads last, so one class here wins cleanly.
 *
 * This does not restyle their sheet. It only makes a hidden panel visible.
 */
html.ahq-sheet-open [class*="FilterLayout_filtersWrapper__"] {
  transform: none !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: fixed !important;
  inset: 0 !important;
  width: auto !important;
  max-width: none !important;
  z-index: 9999 !important;
  background: #fff;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
}

html.ahq-sheet-open {
  overflow: hidden;
}

/* The sheet's header stays put while its filters scroll under it. */
html.ahq-sheet-open [class*="FilterHeader_filtersTitle__"] {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #fff;
}

/* ------------------------------------------------------- brand tiles
 * Their brand rail is eight makes they chose; ours is the twelve we
 * actually stock, and six of those have no logo file on their CDN. The
 * initial stands in for the image so the card keeps the 96x116 box the
 * logoed cards have -- measured, a text-only tile collapsed to 75x40.
 */
.ahq-brand-initial {
  display: flex;
  align-items: center;
  justify-content: center;
  /* 96x60 is the box their logo images occupy on these cards, measured.
   * Without an explicit width the card shrinks to the width of the make
   * name -- 75px for Nissan against 96px for Audi beside it. */
  width: 96px;
  height: 60px;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
  color: #6b7279;
  background: #f3f4f6;
  border-radius: 8px;
}

@media (max-width: 768px) {
  .ahq-brand-initial {
    width: 84px;
    height: 51px;
    font-size: 1.5rem;
  }
}

/* The one filter row that carries a chosen value stacked its label and
 * chip at phone widths and came out 84px tall, where theirs is 56 -- the
 * same 56 ours already matches on desktop. Their content column is
 * flex-direction: column, which only shows at this width. Putting the two
 * on one line restores their row height without touching the row itself.
 */
@media (max-width: 767px) {
  .ahq-filter > summary > [class*="FilterListItem_filterItemContent__"] {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    min-width: 0;
  }

  /* The chip container is greedy: left alone it took 262 of the row's
   * 295px and squeezed "État" onto two lines, which is where the extra
   * 24px came from. The label keeps its width; the chip gives way. */
  .ahq-filter > summary > [class*="FilterListItem_filterItemContent__"] > span {
    flex: none;
    white-space: nowrap;
  }

  .ahq-filter > summary [class*="FilterListItem_filterItemSelectedContainer__"] {
    margin: 0;
    overflow: hidden;
    flex: 0 1 auto;
    min-width: 0;
  }

  .ahq-filter > summary [class*="FilterListItem_chipDisplay__"] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* The search-row photo is a FIXED height on their phone layout, not a
 * ratio. Measured on autohebdo.net:
 *
 *     320px  102x144      414px  139x144
 *     375px  124x144      768px  234x174
 *
 * -- the width tracks the column, the height does not move. Ours tracked
 * the image's own 4:3 instead (107, 125, 138) and left every result row
 * 19px shorter than theirs. At 768 and above ours already matched at 174,
 * so this is scoped to the phone layout and nothing else.
 */
@media (max-width: 767px) {
  article [class*="Gallery_wrapper__"],
  article [class*="NewGallery_slider__"],
  article [class*="NewGallery_item__"] {
    height: 144px;
    min-height: 144px;
  }

  article [class*="NewGallery_item__"] picture,
  article [class*="NewGallery_item__"] picture img {
    height: 100%;
  }
}

/* ------------------------------------------------------- the hero banner
 * Their masthead is an ad slot with a brand-image fallback, and the
 * fallback is display:none until their ad code decides the slot failed.
 * We remove the ad slots, so nothing ever made that decision: the
 * container still reserved its 330px and the hero inside it stayed
 * hidden, which is the blank white band under the header.
 *
 * MEASURED: .unified-banner-container 1265x330 visible, .hf-masthead__
 * fallback 0x0 display:none, and the image itself loaded fine
 * (naturalWidth 1440x330, complete). Nothing was broken except that
 * nobody had told it to show.
 */
.hf-masthead__fallback {
  display: block !important;
  width: 100%;
  flex: 1 1 100%;
}

.hf-brandbox,
.hf-brandbox__full-width,
.hf-brandbox picture {
  display: block;
  width: 100%;
}

.hf-brandbox img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* The seller block under a home listing card, matching the lines their
 * own cards carry (seller type, name, town). */
.ahq-card-seller {
  display: flex;
  flex-direction: column;
  gap: 2px;
  /* Measured: with a 10px top margin the card came out 279x410 against
   * their 279x400. Their own cards put the seller straight under the
   * details row. */
  margin-top: 0;
  font-size: 0.8125rem;
  line-height: 1.35;
  color: #6b7279;
}

.ahq-card-seller span:nth-child(2) {
  color: #111;
  font-weight: 600;
}

/* ------------------------------------------------ gallery thumbnail strip
 * MEASURED: ours came out 598x203 against their 598x75, because thirteen
 * 100px thumbnails wrap onto three rows in a 598px column. Theirs is one
 * row that scrolls. That 128px is the whole difference between our detail
 * stage at 1060x867 and theirs at 1060x739.
 *
 * react-image-gallery normally does this with a transform driven by its
 * own JavaScript, which we do not ship; one scrolling row is the same
 * result without it, and it works with a thumb or a trackpad.
 */
.image-gallery-thumbnails {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

/* The buttons are direct children of .image-gallery-thumbnails in our
 * markup -- there is no inner container to target, which is why the first
 * attempt at this rule changed nothing. */
/* display stays THEIRS (block, and their rule outranks a bare class
 * selector -- measured: flex-wrap and overflow-x applied, display did
 * not). white-space does the job without fighting them: the thumbnails
 * are inline-block, so one nowrap line is all that is needed. */
.image-gallery-thumbnails-wrapper .image-gallery-thumbnails {
  white-space: nowrap;
  font-size: 0;
}

.image-gallery-thumbnails .image-gallery-thumbnail {
  flex: 0 0 auto;
  display: inline-block;
}

/* The description line under a search row's detail chips. Their live rows
 * carry one; the listing we captured happened not to, so this is our
 * element in their row. Two lines, clamped -- the dealer descriptions run
 * to a median of 652 characters and would otherwise set the row height.
 */
.ahq-row-description {
  margin: 8px 0 0;
  font-size: 0.875rem;
  line-height: 1.45;
  color: #3c4043;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ------------------------------------------------------ browse-link blocks
 * Their SeoLinks groups and home editorial columns, filled with our
 * facets. The group, heading and list classes are theirs and do the
 * layout; these rules only cover the count chip and the home grid, which
 * their markup has no equivalent of.
 */
.ahq-seo-count {
  color: #6b7279;
  font-variant-numeric: tabular-nums;
  margin-left: 6px;
  font-size: 0.875em;
}

.ahq-seo-home {
  padding: 32px 0 8px;
}

.ahq-seo-home h2 {
  font-size: 1.25rem;
  margin: 0 0 16px;
}

.ahq-seo-columns {
  display: grid;
  gap: 8px 32px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.ahq-seo-columns ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ahq-seo-columns li a {
  display: flex;
  align-items: center;
  min-height: 40px;
  text-decoration: none;
}

.ahq-seo-columns li a:hover {
  text-decoration: underline;
}

/* ------------------------------------------------------- the alert form
 * Replaces their account-bound "Sauvegarder ma recherche" with a signup
 * that posts to functions/api/subscribe.js, which already records consent
 * and sends the confirmation S6.3 requires.
 */
.ahq-alert-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.ahq-alert-input {
  flex: 1 1 220px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid #c3c8cd;
  border-radius: 6px;
  font-size: 1rem;
}

.ahq-alert-submit {
  min-height: 44px;
  padding: 0 20px;
  white-space: nowrap;
}

/* ---------------------------------------------------- the proposition
 * The line that makes this a dealer group's storefront rather than a
 * copy of a marketplace front page. cargurus.quebec -- the reference
 * build for this spec, the same inventory on CarGurus' design -- opens
 * with "Shop 1,411 used cars from Groupe Gabriel", and nothing else on
 * its home page does as much work.
 */
.ahq-proposition {
  max-width: 1240px;
  margin: 0 auto;
  padding: 36px 16px 8px;
  text-align: center;
}

.ahq-proposition h1 {
  font-size: clamp(1.75rem, 3.4vw, 2.75rem);
  line-height: 1.15;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}

.ahq-proposition p {
  margin: 0;
  font-size: 1.0625rem;
  color: #4a5159;
}

/* Dealer tiles reuse their brand-card markup; the initial stands in for
 * the logo a dealership does not have, exactly as it does for a make. */
.ahq-dealer-initial {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 60px;
  margin: 0 auto;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
  color: #6b7279;
  background: #f3f4f6;
  border-radius: 8px;
}

@media (max-width: 768px) {
  .ahq-dealer-initial {
    width: 84px;
    height: 51px;
    font-size: 1.5rem;
  }
}

.brandSearch__card .ahq-seo-count {
  display: block;
  margin: 2px 0 0;
  text-align: center;
}

/* "Voir tout (344)" under a shelf, so each themed shelf leads to its
 * facet page rather than being a dead end of eight cars. */
.ahq-shelf-more {
  margin: 12px 0 0;
}

.ahq-shelf-more a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
}

/* ------------------------------------------------- the enquiry form (VDP)
   Their "Envoyer courriel" opened a modal their JavaScript built, and we
   strip every script, so the primary CTA on 1,604 vehicle pages did
   nothing at all. vdp.fill_lead_form puts a real <form> under it. The
   look follows the sibling build's "Request information" card rather
   than inventing one: a bordered panel, two-up rows that stack on a
   phone, and a submit that spans the width. */
.ahq-lead {
  margin: 24px 0 8px;
  padding: 20px;
  border: 1px solid var(--color-border, #d9dce1);
  border-radius: 12px;
  background: var(--color-surface, #fff);
}
.ahq-lead__title { margin: 0 0 4px; font-size: 20px; font-weight: 700; }
.ahq-lead__sub { margin: 0 0 16px; font-size: 14px; opacity: .75; }
.ahq-lead__row { display: flex; gap: 12px; }
.ahq-lead__row > .ahq-field { flex: 1 1 0; min-width: 0; }
.ahq-field { margin-bottom: 12px; }
.ahq-field__label {
  display: block; margin-bottom: 4px; font-size: 13px; font-weight: 600;
}
.ahq-field__input {
  width: 100%; box-sizing: border-box;
  padding: 10px 12px; font: inherit; font-size: 15px;
  border: 1px solid var(--color-border, #c7ccd3); border-radius: 8px;
  background: #fff; color: inherit;
}
.ahq-field__input:focus-visible { outline: 2px solid #0b57d0; outline-offset: 1px; }
.ahq-field__area { resize: vertical; min-height: 72px; }
.ahq-lead__check {
  display: flex; gap: 8px; align-items: flex-start;
  margin: 4px 0 16px; font-size: 14px;
}
.ahq-lead__submit { width: 100%; padding: 12px 16px; font-size: 16px; }
.ahq-lead__legal { margin: 12px 0 0; font-size: 12px; line-height: 1.45; opacity: .7; }
/* The honeypot. Off-screen rather than display:none, because some bots
   skip hidden inputs but fill everything they can reach. */
.ahq-lead__hp {
  position: absolute; left: -9999px; width: 1px; height: 1px;
  overflow: hidden;
}
@media (max-width: 560px) {
  .ahq-lead__row { display: block; }
}

/* ------------------------------------------------- the featured vehicles
   The 34 cars Nissan Gabriel Anjou features on its own site. They were
   already flagged -- build_site writes data-featured="1" and a "Vedette"
   label -- but the label alone sat among the other detail chips and was
   invisible in a list of twenty rows.

   A corner ribbon, and only that: an inset red border was tried too, but
   their card paints its own background over it, and with 34 featured
   cars sorted to the front, every row on page 1 carries the flag --
   twenty red-bordered cards is noise, not emphasis. */
[data-featured="1"] { position: relative; }
[data-featured="1"]::before {
  content: "Vedette";
  position: absolute; top: 0; left: 0; z-index: 2;
  padding: 3px 10px;
  font-size: 11px; font-weight: 700; letter-spacing: .02em;
  color: #fff; background: #ed1c24;
  border-radius: 8px 0 8px 0;
}
