.afh-offers {
    --afh-red: #c70720;
    --afh-ink: #171717;
    --afh-muted: #555;
    --afh-line: #ddd;
    max-width: 1320px;
    margin: 0 auto;
    padding: clamp(32px, 6vw, 80px) clamp(16px, 4vw, 56px);
    background: #fff;
    color: var(--afh-ink);
    font-family: inherit;
}
.afh-offers *, .afh-offers *::before, .afh-offers *::after { box-sizing: border-box; }
.afh-heading { margin: 0 0 clamp(20px, 3.5vw, 40px); }
.afh-offers .afh-kicker {
    margin: 0 0 10px;
    color: var(--afh-red);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .11em;
    text-transform: uppercase;
}
.afh-offers h2, .afh-offers h3 {
    margin: 0;
    color: var(--afh-ink);
    font-size: clamp(1.8rem, 4vw, 3.1rem);
    line-height: 1.05;
    letter-spacing: -.035em;
    font-weight: 700;
    overflow-wrap: anywhere;
}
.afh-offers h3, .afh-view-modele .afh-card h2 { font-size: clamp(1.65rem, 3.4vw, 2.65rem); }
.afh-track {
    position: relative;
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}
.afh-track::-webkit-scrollbar { display: none; }
.afh-slide {
    flex: 0 0 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: start;
    background: #f6f6f6;
    border: 1px solid #e3e3e3;
    border-radius: 8px;
    overflow: hidden;
    scroll-snap-align: start;
}
.afh-slide .afh-visual { background: #e8e8e8; min-width: 0; align-self: stretch; }
.afh-slide .afh-visual img { display: block; width: 100%; height: 100%; min-height: 260px; object-fit: cover; }
.afh-slide .afh-card:only-child { grid-column: 1 / -1; }
.afh-offers .afh-card { padding: clamp(20px, 4vw, 44px); min-width: 0; }
.afh-offers .afh-card-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px clamp(8px, 1vw, 16px);
}
.afh-offers .afh-card-head > * { min-width: 0; }
.afh-offers .afh-card-head .afh-subtitle { margin: 0; color: var(--afh-muted); line-height: 1.4; overflow-wrap: anywhere; }
.afh-offers .afh-description, .afh-offers .afh-period {
    color: var(--afh-muted);
    line-height: 1.55;
    margin: 12px 0 0;
}
.afh-offers .afh-period { font-size: .9rem; }
.afh-prices { display: flex; flex-wrap: wrap; column-gap: 22px; row-gap: 12px; margin: 24px 0 0; }
.afh-price { border-left: 3px solid var(--afh-red); padding: 0 0 0 13px; }
.afh-price-prefix { color: var(--afh-muted); font-size: .83rem; margin-bottom: 3px; }
.afh-price-main { font-size: clamp(1.5rem, 2.8vw, 2.15rem); font-weight: 700; line-height: 1.1; }
.afh-price-main sup { font-size: .64em; }
.afh-price-suffix, .afh-price-details { font-size: .83rem; color: var(--afh-muted); }
.afh-price-details:not(:empty) { margin-top: 5px; }
.afh-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.afh-actions:not(:empty) { margin-top: 24px; }
.afh-offers .afh-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--afh-red);
    border-radius: 4px;
    min-height: 44px;
    padding: 10px 16px;
    color: var(--afh-red);
    text-decoration: none;
    font-size: .9rem;
    font-weight: 700;
    text-align: center;
}
.afh-offers .afh-primary, .afh-offers .afh-secondary:hover { background: var(--afh-red); color: #fff; }
.afh-offers .afh-primary:hover { background: #9e0419; }
.afh-legal { margin-top: 20px; padding-top: 12px; border-top: 1px solid var(--afh-line); color: var(--afh-muted); font-size: .85rem; overflow-wrap: anywhere; }
.afh-legal summary { cursor: pointer; text-decoration: underline; text-underline-offset: .16em; }
.afh-controls { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 18px; }
.afh-offers .afh-controls button { min-width: 44px; min-height: 44px; padding: 4px 10px; background: #fff; border: 1px solid var(--afh-line); border-radius: 4px; color: var(--afh-ink); cursor: pointer; font: inherit; }
.afh-offers .afh-controls .afh-prev, .afh-offers .afh-controls .afh-next { font-size: 1.55rem; line-height: 1; }
.afh-offers .afh-controls button:hover { border-color: var(--afh-red); color: var(--afh-red); }
.afh-offers :focus-visible { outline: 2px solid var(--afh-red); outline-offset: 3px; }
.afh-offers [hidden] { display: none; }
@media (max-width: 720px) {
    .afh-slide { grid-template-columns: minmax(0, 1fr); align-content: start; }
    .afh-slide .afh-visual img { aspect-ratio: 16 / 9; height: auto; min-height: 0; }
    .afh-offers .afh-button { flex: 1 1 auto; }
}

/* Accueil Autofactoria */
.afh-offers.afh-view-accueil {
    --afh-turquoise: #80fff1;
    --afh-panel: #303030;
    --afh-muted: #bcbcbc;
    --afh-ink: #fff;
    --afh-line: #ffffff1a;
    width: 100%;
    max-width: none;
    padding: clamp(40px, 5vw, 92px) clamp(16px, 3vw, 56px) clamp(32px, 5vw, 72px);
    background: #222121;
}
.afh-view-accueil .afh-heading {
    margin-bottom: clamp(26px, 3.6vw, 62px);
    text-align: center;
}
.afh-view-accueil .afh-heading .afh-kicker {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin: 0 0 clamp(12px, 1.8vw, 24px);
    color: var(--afh-turquoise);
    letter-spacing: .18em;
}
.afh-view-accueil .afh-heading .afh-kicker::before,
.afh-view-accueil .afh-heading .afh-kicker::after {
    content: '';
    width: clamp(14px, 2.3vw, 44px);
    height: 1px;
    background: var(--afh-line);
}
.afh-view-accueil .afh-heading h2 {
    font-size: clamp(1.8rem, 3.3vw, 3.55rem);
    letter-spacing: -.025em;
    text-transform: uppercase;
}
.afh-view-accueil .afh-slider { max-width: 1820px; margin-inline: auto; }
.afh-view-accueil .afh-slide {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
    gap: clamp(16px, 1.95vw, 34px);
    background: transparent;
    border: 0;
    border-radius: 0;
    overflow: visible;
}
.afh-view-accueil .afh-slide .afh-visual {
    position: relative;
    align-self: start;
    aspect-ratio: 2362 / 1329;
    overflow: hidden;
    border-radius: clamp(16px, 2vw, 34px);
    background: #292929;
}
.afh-view-accueil .afh-slide .afh-visual img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: contain;
    aspect-ratio: auto;
}
.afh-view-accueil .afh-card {
    padding: clamp(22px, 3.35vw, 60px);
    border: 1px solid var(--afh-line);
    border-radius: clamp(16px, 2vw, 34px);
    background: radial-gradient(ellipse at top left, #80fff109, transparent 55%), var(--afh-panel);
}
.afh-view-accueil .afh-card h3 {
    color: var(--afh-turquoise);
    font-size: clamp(1.55rem, 2.45vw, 2.85rem);
    letter-spacing: -.02em;
    text-transform: uppercase;
}
.afh-view-accueil .afh-card h3 + .afh-description { margin-top: clamp(14px, 2vw, 30px); }
.afh-view-accueil .afh-description { font-size: clamp(.99rem, 1.08vw, 1.22rem); line-height: 1.52; }
.afh-view-accueil .afh-prices { gap: 16px 32px; margin-top: clamp(20px, 2.35vw, 36px); }
.afh-view-accueil .afh-price { border: 0; padding: 0; }
.afh-view-accueil .afh-price-prefix { margin-bottom: 8px; font-size: clamp(1rem, 1.32vw, 1.35rem); }
.afh-view-accueil .afh-price-main {
    color: var(--afh-turquoise);
    font-size: clamp(2.5rem, 4vw, 4.5rem);
    letter-spacing: -.035em;
}
.afh-view-accueil .afh-price-currency { font-size: .47em; letter-spacing: normal; }
.afh-view-accueil .afh-price-suffix { font-size: .32em; letter-spacing: normal; }
.afh-view-accueil .afh-actions { gap: 12px 16px; }
.afh-view-accueil .afh-actions:not(:empty) { margin-top: clamp(20px, 2.9vw, 36px); }
.afh-view-accueil .afh-button {
    min-height: clamp(46px, 3.5vw, 62px);
    padding: 10px clamp(20px, 2.2vw, 38px);
    border-color: var(--afh-line);
    border-radius: 999px;
    background: #ffffff09;
    color: #fff;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}
.afh-view-accueil .afh-primary {
    border-color: var(--afh-turquoise);
    background: var(--afh-turquoise);
    color: #20292a;
}
.afh-view-accueil .afh-primary:hover { background: #b2fff7; color: #20292a; }
.afh-view-accueil .afh-secondary:hover { border-color: var(--afh-turquoise); background: #ffffff13; color: #fff; }
.afh-view-accueil .afh-legal { margin-top: 26px; padding-top: 18px; font-size: .82rem; line-height: 1.5; }
.afh-view-accueil .afh-legal p { margin: 0; }
.afh-view-accueil .afh-legal p + p { margin-top: 6px; }
.afh-view-accueil .afh-legal .afh-legal-label { color: #e0e0e0; font-weight: 700; text-transform: uppercase; }
.afh-view-accueil .afh-controls button {
    min-height: 44px;
    border-radius: 999px;
    background: #303030;
    color: #fff;
}
.afh-view-accueil .afh-controls button:hover { border-color: var(--afh-turquoise); color: var(--afh-turquoise); }
.afh-view-accueil :focus-visible { outline-color: var(--afh-turquoise); }

@media (min-width: 960px) {
    .afh-view-accueil .afh-slider-many {
        --afh-arrow: clamp(44px, 4vw, 66px);
        --afh-gap: clamp(22px, 3vw, 62px);
        --afh-peek: calc(var(--afh-gap) + clamp(10px, 1.8vw, 30px));
        position: relative;
        padding-inline: calc(var(--afh-arrow) + 18px);
    }
    .afh-view-accueil .afh-slider-many .afh-track { gap: var(--afh-gap); margin-inline-end: calc(-1 * var(--afh-peek)); }
    .afh-view-accueil .afh-slider-many .afh-slide { flex-basis: calc(100% - var(--afh-peek)); }
    .afh-view-accueil .afh-slider-many .afh-track::after { content: ''; flex: 0 0 calc(var(--afh-peek) - var(--afh-gap)); }
    .afh-view-accueil .afh-controls :is(.afh-prev, .afh-next) {
        position: absolute;
        top: 50%;
        z-index: 1;
        width: var(--afh-arrow);
        height: var(--afh-arrow);
        padding: 0 0 3px;
        transform: translateY(-50%);
        font-size: 1.8rem;
    }
    .afh-view-accueil .afh-controls .afh-prev { inset-inline-start: 0; }
    .afh-view-accueil .afh-controls .afh-next { inset-inline-end: 0; }
}
@media (max-width: 720px) {
    .afh-view-accueil .afh-slide { grid-template-columns: minmax(0, 1fr); }
}

/* Composition et navigation partagées, adaptées des gabarits Sud Motor. */
.afh-offers { scroll-margin-top: 100px; }
.afh-offers .afh-actions .afh-button { min-height: 44px; }
.afh-offers .afh-prev svg,
.afh-offers .afh-next svg {
    display: block;
    width: 20px;
    height: 20px;
    margin: auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.afh-offers .afh-controls .afh-prev, .afh-offers .afh-controls .afh-next { min-width: 44px; }
.afh-dots { display: flex; gap: 2px; }
.afh-offers .afh-dots button { min-width: 34px; border: 0; background: transparent; padding: 0; }
.afh-dots button span { display: block; width: 8px; height: 8px; border: 1px solid currentColor; border-radius: 50%; margin: auto; }
.afh-dots [aria-current="true"] span { background: var(--afh-red); border-color: var(--afh-red); }
.afh-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.afh-offers .afh-visual { position: relative; align-self: center; aspect-ratio: 2362 / 1329; overflow: hidden; }
.afh-offers .afh-slide .afh-visual img { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; object-fit: contain; aspect-ratio: auto; }
.afh-offers .afh-price-separator { color: var(--afh-muted); font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.afh-offers .afh-prices { align-items: center; }
.afh-offers .afh-highlights { margin: 12px 0 0; padding-inline-start: 1.2em; color: var(--afh-muted); }
.afh-offers .afh-legal summary { color: inherit; font-family: inherit; text-underline-offset: .22em; }
.afh-offers .afh-ref { font-size: .25em; vertical-align: super; line-height: 1; white-space: nowrap; }
.afh-offers .afh-price-main .afh-ref { font-size: clamp(.75rem, .34em, 1rem); }
.afh-offers .afh-ref a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.afh-offers .afh-ref a:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.afh-offers .afh-dialog {
    width: min(660px, calc(100% - 32px));
    max-height: 80vh;
    border: 1px solid var(--afh-line);
    border-radius: 20px;
    padding: clamp(18px, 4vw, 38px);
    background: #fff;
    color: #222;
    font: inherit;
}
.afh-offers .afh-dialog::backdrop { background: #000b; }
.afh-offers .afh-dialog-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.afh-offers .afh-dialog h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); color: inherit; }
.afh-offers .afh-dialog-close {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    padding: 0;
    border: 1px solid var(--afh-line);
    border-radius: 50%;
    color: inherit;
    background: transparent;
    cursor: pointer;
}
.afh-offers .afh-dialog-close::before,
.afh-offers .afh-dialog-close::after {
    content: '';
    grid-area: 1 / 1;
    width: 16px;
    height: 2px;
    border-radius: 1px;
    background: currentColor;
    transform: rotate(45deg);
}
.afh-offers .afh-dialog-close::after { transform: rotate(-45deg); }
.afh-offers .afh-legal-copy { font: inherit; font-size: .9rem; line-height: 1.65; text-align: start; overflow-wrap: anywhere; }
.afh-offers .afh-legal-copy :where(*) {
    color: inherit !important;
    font-family: inherit !important;
    font-size: inherit !important;
    line-height: inherit !important;
    background-color: transparent !important;
}
.afh-offers .afh-legal-copy > .afh-note { display: flex; align-items: baseline; gap: 8px; padding: 10px 8px; }
.afh-offers .afh-note-number { flex: none; white-space: nowrap; overflow-wrap: normal; word-break: normal; }
.afh-offers .afh-note-number + div { min-width: 0; }
.afh-offers .afh-note p { margin: 0 0 .5em; }
.afh-offers .afh-note p:last-child { margin-bottom: 0; }
.afh-offers .afh-note a { text-decoration: underline; }
.afh-offers .afh-legal-copy > .afh-note.is-target { outline: 1px solid currentColor; outline-offset: -1px; border-radius: 8px; }
.afh-view-accueil .afh-slide { align-items: center; }
.afh-view-accueil .afh-slide .afh-visual { align-self: center; }
.afh-view-accueil .afh-price-prefix { margin: clamp(18px, 2vw, 28px) 0 8px; }
.afh-view-accueil .afh-prices { margin-top: 0; gap: 9px 20px; }
.afh-view-accueil .afh-highlights li::marker { color: var(--afh-turquoise); }
.afh-view-accueil .afh-legal { margin-top: 22px; padding-top: 14px; color: #d1d1d1; }
.afh-view-accueil .afh-legal-copy > .afh-note { padding-inline: 0; }
.afh-view-accueil .afh-dialog { background: #303030; color: #ededed; }
.afh-view-accueil .afh-dialog h3 { color: var(--afh-turquoise); }

/* Bandeau rouge, panneau blanc, prix empilés et pastilles comme sur le gabarit Honda. */
.afh-offers.afh-view-marque .afh-heading { text-align: center; }
.afh-offers.afh-view-marque .afh-heading h2 { text-transform: uppercase; }
.afh-offers.afh-view-marque .afh-heading::after {
    content: ''; display: block; width: 50px; height: 3px; margin: 16px auto 0; background: var(--afh-red);
}
.afh-offers.afh-view-marque .afh-slide {
    grid-template-columns: minmax(0, 1.38fr) minmax(0, 1fr);
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-radius: 4px;
}
.afh-offers.afh-view-marque .afh-slide .afh-visual { background: #f5f5f5; }
.afh-view-marque .afh-slide[id] { scroll-margin-top: 100px; }
.afh-offers.afh-view-marque .afh-card {
    display: flex;
    flex-direction: column;
    text-align: center;
    padding: 0;
}
.afh-offers.afh-view-marque .afh-card-head { justify-content: center; padding: 14px 18px; background: var(--afh-red); }
.afh-offers.afh-view-marque .afh-card-head :is(h2,h3) { color: #fff; font-size: clamp(1.18rem, 1.85vw, 1.75rem); text-transform: uppercase; }
.afh-offers.afh-view-marque .afh-card-head .afh-subtitle { color: #fff; font-size: .82rem; }
.afh-offers.afh-view-marque .afh-card-body {
    display: flex;
    flex-direction: column;
    padding: 12px clamp(18px, 2.6vw, 36px) clamp(18px, 2.6vw, 36px);
}
.afh-offers.afh-view-marque .afh-description { margin: 0 0 14px; }
.afh-offers.afh-view-marque .afh-card .afh-description { font-size: .875rem; }
.afh-offers.afh-view-marque .afh-highlights { align-self: center; text-align: start; margin-bottom: 14px; }
.afh-offers.afh-view-marque .afh-price-prefix { margin: 8px 0; text-transform: uppercase; letter-spacing: .07em; }
.afh-offers.afh-view-marque .afh-prices { margin: 0; flex-direction: column; gap: 7px; }
.afh-offers.afh-view-marque .afh-price { border: 0; padding: 0; }
.afh-offers.afh-view-marque .afh-price-rent .afh-price-main { color: var(--afh-red); font-size: clamp(1.85rem, 3.2vw, 3rem); }
.afh-offers.afh-view-marque .afh-actions { justify-content: center; }
.afh-offers.afh-view-marque .afh-button { border-radius: 999px; text-transform: uppercase; font-size: .76rem; }
@media (max-width: 720px) {
    .afh-offers.afh-view-marque .afh-slide { grid-template-columns: minmax(0, 1fr); }
    .afh-view-accueil .afh-price-main { font-size: clamp(2rem, 9.5vw, 3rem); }
}

/* Fiches modèles, d’après le bloc d’offre de la Prelude. */
.afh-offers.afh-view-modele {
    --afh-red: #c00;
    --afh-ink: #fff;
    --afh-muted: #b6b6b6;
    --afh-line: #ffffff30;
    max-width: none;
    padding: 0;
    background: #0a0a0a;
    font-family: Montserrat, Arial, sans-serif;
}
.afh-view-modele .afh-heading { margin: 0; padding: 32px 24px 0; }
.afh-view-modele .afh-slide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: clamp(24px, 5.6vw, 72px);
    padding: clamp(32px, 6vw, 80px) clamp(20px, 3.2vw, 40px);
    border: 0;
    border-radius: 0;
    background: radial-gradient(ellipse at 30% 50%, #cc00002e, transparent 60%), #0a0a0a;
}
.afh-view-modele .afh-slide .afh-visual {
    align-self: center;
    width: 100%;
    border-radius: clamp(16px, 2vw, 24px);
    background: #121212;
    box-shadow: 0 32px 80px #0009;
}
.afh-offers.afh-view-modele .afh-card { padding: 0 clamp(0px, 1.9vw, 24px) 0 0; text-align: start; }
.afh-view-modele .afh-card .afh-kicker {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 12px;
    color: #ff5b62;
    font-size: .68rem;
    letter-spacing: .34em;
}
.afh-view-modele .afh-card .afh-kicker::after { content: ''; flex: 1; height: 1px; background: #c004; }
.afh-view-modele .afh-card-head { margin: 0 0 16px; }
.afh-view-modele .afh-card-head :is(h2, h3) {
    color: var(--afh-ink);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -.04em;
}
.afh-view-modele .afh-description, .afh-view-modele .afh-highlights { font-size: .875rem; }
.afh-view-modele .afh-price-prefix { margin: 12px 0 4px; font-size: .9rem; font-weight: 400; }
.afh-view-modele .afh-prices { flex-direction: column; align-items: start; gap: 8px; margin: 0; }
.afh-view-modele .afh-price { border: 0; padding: 0; min-width: 0; }
.afh-view-modele .afh-price-main {
    color: var(--afh-red);
    font-size: clamp(2.6rem, 5vw, 5rem);
    line-height: 1;
    overflow-wrap: anywhere;
}
.afh-view-modele .afh-price-currency { font-size: .48em; font-weight: 400; }
.afh-view-modele .afh-price-suffix { font-size: .32em; color: inherit; font-weight: 400; }
.afh-view-modele .afh-price-main .afh-ref { color: var(--afh-muted); }
.afh-view-modele .afh-actions:not(:empty) { margin-top: 24px; }
.afh-offers.afh-view-modele .afh-primary {
    padding: 16px clamp(18px, 3.2vw, 40px);
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.afh-offers.afh-view-modele .afh-primary:hover { background: #e60012; }
.afh-view-modele .afh-card .afh-legal { border: 0; margin: 24px 0 0; padding: 0; }
.afh-view-modele .afh-legal-title { margin: 0 0 6px; color: var(--afh-ink); font-size: .75rem; font-weight: 600; }
.afh-view-modele .afh-card .afh-legal-copy { font-size: .75rem; }
.afh-view-modele .afh-card .afh-note { padding: 4px 0; }
.afh-view-modele .afh-dialog { background: #191919; color: var(--afh-ink); }
.afh-offers.afh-view-modele .afh-dialog[open] {
    position: fixed;
    inset: 0;
    margin: auto;
    height: fit-content;
    max-height: min(80dvh, calc(100dvh - 32px));
    overflow: auto;
    overscroll-behavior: contain;
}
.afh-view-modele .afh-controls { padding: 0 16px 20px; margin: 0; }
.afh-offers.afh-view-modele .afh-controls button { background: transparent; color: var(--afh-ink); }
@media (max-width: 1024px) {
    .afh-view-modele .afh-slide { grid-template-columns: minmax(0, 1fr); }
    .afh-offers.afh-view-modele .afh-card { padding: 0; }
}
