/* ==========================================================================
   FICHE ANNONCE — style 1 (views/car-manager/car-detail/styles/style-1.blade.php)
   Même identité que le reste du site : police du thème (Manrope), vert du site, fond blanc,
   cartes blanches à 16 px d'arrondi avec bordure et ombre légère, titres en 800. Un seul arrondi et une seule ombre.
   ========================================================================== */
.cd {
    --cd-brand: var(--primary-color, #98bc2a);
    --cd-brand-soft: rgba(var(--primary-color-rgb, 152, 188, 42), .12);
    --cd-brand-ink: #56730b; /* vert du site, plus foncé : lisible sur blanc */
    --cd-dark: #0f172a;
    --cd-text: #374151;
    --cd-muted: #6b7280;
    --cd-line: #e3e6e5; /* filets et bordures de l'accueil */
    --cd-soft: #f6f8f7; /* fond alterné de l'accueil */
    --cd-bg: #fff;
    --cd-card: #fff;
    --cd-radius: 16px;
    --cd-shadow: 0 4px 20px rgba(15, 23, 42, .05);
    --cd-font: var(--primary-font, "Manrope"), -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--cd-bg);
    color: var(--cd-text);
    font-family: var(--cd-font);
    padding-bottom: 64px;
}

.cd button,
.cd input,
.cd textarea,
.cd select {
    font-family: var(--cd-font);
}

/* Le thème fixe couleur et taille sur tous les éléments (* { color; font-size }) :
   dans nos blocs, tout hérite. Les sections partagées (.cd-card--legacy) gardent les styles du thème. */
.cd-crumbs *,
.cd-gallery *,
.cd-head *,
.cd-seller *,
.cd-safety *,
.cd-inquiry *,
.cd-mbar * {
    color: inherit;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

.cd svg {
    flex-shrink: 0;
}

.cd a {
    text-decoration: none;
}

/* Largeur du site, comme l'en-tête, les pages liste et « Vous aimerez peut-être aussi » */
.cd__wrap {
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    padding: 24px clamp(16px, 3vw, 32px) 0;
}

/* ---------- Fil d'Ariane ---------- */
/* Toujours sur une ligne (défilement horizontal si trop long) : quand la police arrive,
   un retour à la ligne poussait toute la fiche de 24 px vers le bas (CLS 0.37 sur mobile) */
.cd-crumbs ol {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    white-space: nowrap;
    align-items: center;
    gap: 6px;
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
    color: var(--cd-muted);
    font-size: .85rem;
    line-height: 1.4;
}

.cd-crumbs li {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.cd-crumbs ol::-webkit-scrollbar {
    display: none;
}

.cd-crumbs a:hover {
    color: var(--cd-brand);
}

.cd-crumbs svg {
    width: 14px;
    height: 14px;
    opacity: .5;
}

.cd-crumbs [aria-current] {
    overflow: hidden;
    color: var(--cd-dark);
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ---------- Mise en page ---------- */
.cd-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(360px, 24vw, 420px);
    gap: clamp(24px, 2vw, 32px);
    align-items: start;
}

.cd-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

/* Colonne de contact fixe au défilement (ordinateur) :
   - la colonne prend toute la hauteur de la fiche, sinon le bloc n'a pas de place pour rester en place ;
   - le thème met overflow: hidden sur <main>, ce qui désactive tout sticky : clip coupe pareil sans le désactiver. */
main:has(.cd) {
    overflow: clip;
}

.cd-side {
    align-self: stretch;
}

.cd-side__sticky {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Écran peu haut (ordinateur portable) : la colonne ne dépasse pas l'écran, elle défile à l'intérieur */
@media (min-width: 1100px) {
    .cd-side__sticky {
        max-height: calc(100vh - 116px);
        margin: -8px;
        padding: 8px; /* place pour les ombres des cartes, coupées sinon par le défilement */
        overflow-y: auto;
        overscroll-behavior: contain;
        scrollbar-width: thin;
    }

    /* Les cartes gardent leur hauteur : c'est la colonne qui défile */
    .cd-side__sticky > * {
        flex-shrink: 0;
    }
}

.cd-card {
    padding: 28px 32px;
    border: 1px solid var(--cd-line);
    border-radius: var(--cd-radius);
    background: var(--cd-card);
    box-shadow: var(--cd-shadow);
}

.cd .cd-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--cd-line);
    color: var(--cd-dark);
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -.01em;
    line-height: 1.3;
}

.cd .cd-title::before {
    content: "";
    width: 4px;
    height: 22px;
    border-radius: 2px;
    background: var(--cd-brand);
}

/* ---------- Galerie ---------- */
.cd-gallery {
    overflow: hidden;
    border: 1px solid var(--cd-line);
    border-radius: var(--cd-radius);
    background: var(--cd-card);
    box-shadow: var(--cd-shadow);
}

.cd-gallery__main {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #fff;
    cursor: zoom-in;
}

.cd-gallery__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .45s ease, visibility .45s;
}

.cd-gallery__slide.is-active {
    opacity: 1;
    visibility: visible;
}

/* Photo entière (portrait ou paysage) sur un fond flouté tiré de la même photo
   (--cd-slide-bg posé dans la vue pour la 1re photo, par js/components/car-detail.js pour les autres) */
.cd-gallery__slide {
    overflow: hidden;
    background: #1d211f;
}

.cd-gallery__slide::before {
    content: "";
    position: absolute;
    inset: -40px;
    background: var(--cd-slide-bg, none) center / cover no-repeat;
    filter: blur(28px) brightness(.85);
    transform: scale(1.1);
}

.cd-gallery__slide img {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cd-gallery__badges {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cd .cd-badge {
    padding: 6px 12px;
    border-radius: 8px;
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .05em;
    line-height: 1.2;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
}

.cd-badge--condition {
    background: var(--cd-brand);
}

.cd-badge--featured {
    background: #e8a317;
}

.cd .cd-gallery__counter {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    background: rgba(0, 0, 0, .62);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: .82rem;
    font-weight: 600;
    line-height: 1.2;
}

.cd-gallery__counter svg {
    width: 16px;
    height: 16px;
}

.cd .cd-gallery__nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .95);
    box-shadow: 0 4px 16px rgba(0, 0, 0, .14);
    color: var(--cd-dark);
    cursor: pointer;
    opacity: 0;
    transform: translateY(-50%);
    transition: opacity .2s ease, background .2s ease, color .2s ease, transform .2s ease;
}

.cd-gallery__main:hover .cd-gallery__nav,
.cd-gallery__nav:focus-visible {
    opacity: 1;
}

.cd .cd-gallery__nav:hover {
    background: var(--cd-brand);
    color: #fff;
    transform: translateY(-50%) scale(1.06);
}

.cd-gallery__nav--prev {
    left: 16px;
}

.cd-gallery__nav--next {
    right: 16px;
}

.cd-gallery__nav svg {
    width: 22px;
    height: 22px;
}

.cd-gallery__tools {
    position: absolute;
    right: 16px;
    bottom: 16px;
    z-index: 2;
    display: flex;
    gap: 8px;
}

.cd .cd-gallery__tool {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, .95);
    box-shadow: 0 4px 16px rgba(0, 0, 0, .14);
    color: var(--cd-dark);
    font-size: .82rem;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}

.cd .cd-gallery__tool:hover {
    background: var(--cd-brand);
    color: #fff;
}

.cd-gallery__tool svg {
    width: 17px;
    height: 17px;
}

.cd-gallery__thumbs {
    display: flex;
    gap: 8px;
    padding: 12px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.cd .cd-gallery__thumb {
    position: relative;
    flex-shrink: 0;
    width: 96px;
    height: 72px;
    padding: 0;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 10px;
    background: #e9ebe7;
    cursor: pointer;
    opacity: .7;
    transition: opacity .2s ease, border-color .2s ease;
}

.cd-gallery__thumb:hover,
.cd-gallery__thumb.is-active {
    opacity: 1;
}

.cd-gallery__thumb.is-active {
    border-color: var(--cd-brand);
}

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

/* ---------- Mosaïque (tablette et ordinateur) : grande photo + photos moyennes à côté ----------
   Sur mobile, les photos moyennes sont masquées : slider + miniatures comme avant. */
.cd-gallery__tiles {
    display: none;
}

.cd .cd-gallery__tile {
    position: relative;
    min-height: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 10px;
    background: var(--cd-soft);
    cursor: zoom-in;
}

/* En position absolue : la taille de l'image ne change pas la hauteur de la grille */
.cd-gallery__tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease, filter .4s ease;
}

.cd-gallery__tile:hover img {
    filter: brightness(.9);
    transform: scale(1.05);
}

.cd-gallery__tile:focus-visible {
    outline: 3px solid var(--cd-brand);
    outline-offset: -3px;
}

.cd .cd-gallery__more {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(15, 23, 42, .55);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.cd-gallery__more svg {
    width: 20px;
    height: 20px;
    color: #fff;
}

@media (min-width: 768px) {
    /* Moitié / moitié : avec la grande photo en 4:3, les photos moyennes sont aussi en paysage (≈ 4:3) */
    .cd-gallery--mosaic {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        padding: 8px;
    }

    .cd-gallery--mosaic .cd-gallery__main {
        aspect-ratio: 4 / 3;
        max-height: min(720px, 78vh);
        width: 100%;
        border-radius: 10px;
    }

    .cd-gallery--mosaic .cd-gallery__thumbs {
        display: none;
    }

    .cd-gallery--mosaic .cd-gallery__tiles {
        display: grid;
        grid-template-rows: repeat(2, minmax(0, 1fr));
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        min-height: 0;
    }

    .cd-gallery__tiles--2 {
        grid-template-columns: minmax(0, 1fr);
    }

    .cd-gallery__tiles--3 .cd-gallery__tile:last-child {
        grid-column: span 2;
    }
}

/* ---------- En-tête (maquette index.html) : titre + état, lieu · date · réf.,
   puis ligne du prix sous un filet. Police du site, titres en 800, vert du site en accent ---------- */
.cd .cd-head {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: visible; /* le menu « Partager » dépasse de la carte */
    padding: 28px;
}

/* État (Occasion / Neuf), à côté du titre */
.cd .cd-head__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--cd-soft);
    color: var(--cd-dark);
    font-size: .75rem;
    font-weight: 700;
    line-height: 1.3;
}

.cd .cd-head__badge::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--cd-muted);
}

.cd .cd-head__badge--new {
    background: var(--cd-brand-soft);
    color: var(--cd-brand-ink);
}

.cd .cd-head__badge--new::before {
    background: var(--cd-brand);
}

/* Titre + badge Occasion / Neuf à côté (passe sous le titre s'il manque de place) */
.cd-head__heading {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
}

.cd .cd-head__title {
    margin: 0;
    color: var(--cd-dark);
    font-size: clamp(1.5rem, 2.2vw, 1.9rem);
    font-weight: 800;
    letter-spacing: -.025em;
    line-height: 1.15;
    text-transform: none;
}

/* Lieu · date · réf. : texte simple gris, comme .ad-meta de la maquette */
.cd .cd-head__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
    margin: 0 0 8px;
    padding: 0;
    list-style: none;
}

.cd .cd-head__meta li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--cd-muted);
    font-size: .875rem;
    font-weight: 500;
    line-height: 1.4;
}

.cd-head__meta svg {
    width: 15px;
    height: 15px;
    color: var(--cd-brand-ink);
}

.cd-head__rating {
    margin-top: 2px;
}

/* Ligne du prix, sous un filet : prix à gauche, Comparer / Partager à droite (.ad-price-row de la maquette) */
.cd-head__price-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-top: 18px;
    border-top: 1px solid var(--cd-line);
}

.cd-head__price {
    min-width: 0;
}

.cd .cd-head__price-label {
    margin: 0 0 4px;
    color: var(--cd-muted);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .08em;
    line-height: 1.3;
    text-transform: uppercase;
}

.cd .cd-head__price-main {
    margin: 0;
    color: var(--cd-brand-ink);
    font-size: clamp(1.75rem, 2.6vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.1;
    white-space: nowrap;
}

/* « Prix sur demande » : plus petit, foncé, avec un lien vers le vendeur */
.cd .cd-head__price--text .cd-head__price-main {
    color: var(--cd-dark);
    font-size: 1.5rem;
    line-height: 1.25;
}

.cd .cd-head__price-hint {
    display: inline-block;
    margin-top: 4px;
    color: var(--cd-brand-ink);
    font-size: .82rem;
    font-weight: 700;
}

.cd .cd-head__price-hint:hover {
    text-decoration: underline;
}

.cd-head__actions {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cd .cd-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 8px 14px;
    border: 1px solid var(--cd-line);
    border-radius: 10px;
    background: #fff;
    color: var(--cd-dark);
    font-size: .85rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease, color .2s ease;
}

.cd .cd-chip:hover,
.cd .cd-chip.active {
    border-color: var(--cd-brand);
    background: var(--cd-brand-soft);
    color: var(--cd-brand-ink);
}

.cd-chip svg {
    width: 17px;
    height: 17px;
}

/* Dernier élément de l'en-tête : pas d'espace sous lui */
.cd .cd-head > :last-child {
    margin-bottom: 0;
}

/* Menu « Partager » */
.cd-share {
    position: relative;
}

.cd-head .share-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 100;
    min-width: max-content;
    padding: 10px;
    border: 1px solid var(--cd-line);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(15, 23, 42, .12);
}

.cd-head .bb-social-sharing {
    display: inline-flex;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cd-head .bb-social-sharing .bb-social-sharing__item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--cd-line);
    border-radius: 10px;
    background: #fff;
    transition: border-color .2s ease, background .2s ease;
}

.cd-head .bb-social-sharing .bb-social-sharing__item a,
.cd-head .bb-social-sharing .bb-social-sharing__item button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--cd-muted);
    line-height: 1;
    cursor: pointer;
    transition: color .2s ease;
}

.cd-head .bb-social-sharing .bb-social-sharing__item:hover {
    border-color: var(--cd-brand);
    background: var(--cd-brand);
}

.cd-head .bb-social-sharing .bb-social-sharing__item:hover a,
.cd-head .bb-social-sharing .bb-social-sharing__item:hover button {
    color: #fff;
}

.cd-head .bb-social-sharing svg {
    width: 16px;
    height: 16px;
}

.cd-head .bb-social-sharing-text {
    display: none;
}

@media (max-width: 768px) {
    .cd .cd-head {
        padding: 20px 18px;
    }

    .cd .cd-head__meta {
        gap: 4px 14px;
    }

    .cd .cd-head__meta li {
        font-size: .8rem;
    }

    .cd .cd-chip {
        padding: 8px 10px;
    }

    .cd-chip span {
        display: none;
    }
}

/* ---------- Description ---------- */
.cd .cd-text,
.cd .cd-text * {
    color: var(--cd-text);
}

.cd .cd-text {
    font-size: .95rem;
    line-height: 1.75;
}

.cd .cd-text p:not(:last-child) {
    margin-bottom: 12px;
}

.cd .cd-text strong,
.cd .cd-text b {
    color: var(--cd-dark);
    font-weight: 700;
}

/* Listes de la description (« Équipements principaux : ») : 2 colonnes avec coches vertes (maquette deep.html) */
.cd .cd-text ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 20px;
    margin: 12px 0;
    padding-left: 0;
    list-style: none;
}

.cd .cd-text ul li {
    position: relative;
    margin: 0;
    padding-left: 26px;
    font-size: .92rem;
    line-height: 1.6;
    list-style: none;
}

.cd .cd-text ul li::before {
    content: "✓";
    position: absolute;
    top: 3px;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--cd-brand);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.cd .cd-text ul:last-child {
    margin-bottom: 0;
}

/* Caractéristiques : un seul cadre découpé en cases par de fins filets.
   Case = icône en haut, valeur en gros, libellé dessous, le tout centré. */
.cd .cd-specpanel {
    overflow: hidden;
    border: 1px solid var(--cd-line);
    border-radius: 14px;
    background: var(--cd-soft); /* visible dans les cases vides de la dernière ligne */
}

/* Filets à droite et en bas de chaque case ; ceux du bord sont cachés par le cadre (marges -1px) */
.cd .cd-specpanel dl {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    margin: 0 -1px -1px 0;
}

.cd .cd-specpanel__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 0;
    padding: 20px 12px 18px;
    border-right: 1px solid var(--cd-line);
    border-bottom: 1px solid var(--cd-line);
    text-align: center;
    transition: background .2s ease;
}

.cd .cd-specpanel__item {
    background: #fff;
}

.cd-specpanel__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 6px;
    border-radius: 50%;
    background: var(--cd-brand-soft);
    color: var(--cd-brand-ink);
}

.cd-specpanel__icon svg {
    width: 22px;
    height: 22px;
}

.cd .cd-specpanel dd {
    max-width: 100%;
    margin: 0;
    color: var(--cd-dark);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.3;
    word-break: break-word;
}

.cd .cd-specpanel dt {
    order: 1; /* sous la valeur à l'écran, avant elle dans le code (lecteurs d'écran) */
    color: var(--cd-muted);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .04em;
    line-height: 1.3;
    text-transform: uppercase;
}

/* Équipements : liste cochée (✓ vert) en colonnes */
.cd .cd-equip {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 10px 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cd .cd-equip li {
    position: relative;
    margin: 0;
    padding-left: 26px;
    color: var(--cd-text);
    font-size: .95rem;
    line-height: 1.6;
}

.cd .cd-equip li::before {
    content: "✓";
    position: absolute;
    top: 0;
    left: 0;
    color: var(--cd-brand-ink);
    font-weight: 800;
}

/* Description longue repliée (bouton ajouté par le JS) */
.cd .cd-text.is-collapsed {
    position: relative;
    max-height: 220px;
    overflow: hidden;
}

.cd .cd-text.is-collapsed::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 80px;
    background: linear-gradient(rgba(255, 255, 255, 0), #fff);
    pointer-events: none;
}

.cd .cd-more {
    margin-top: 12px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--cd-brand);
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer;
}

.cd .cd-more:hover {
    text-decoration: underline;
}

/* ---------- Sections partagées (vidéo, carte, FAQ, avis, widgets) ---------- */
.cd-card--legacy > .divider,
.cd-card--legacy .divider {
    display: none;
}

.cd-card--legacy > :last-child,
.cd-card--legacy .mb-40:last-child {
    margin-bottom: 0 !important;
}

.cd .cd-card--legacy .h4:first-of-type,
.cd .cd-card--legacy > p.h4 {
    color: var(--cd-dark);
    font-family: var(--cd-font);
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -.01em;
    line-height: 1.3;
}

/* Le thème met une majuscule à chaque mot (« Écrire Un Avis ») : on garde le texte tel quel */
.cd .cd-card--legacy .capitalize,
.cd .cd-card--legacy .btn {
    text-transform: none;
}

/* ---------- Avis des clients (views/car-manager/car-detail/styles/style-1-reviews.blade.php) ---------- */
.cd-reviews * {
    color: inherit;
    font-family: inherit;
}

.cd-reviews__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--cd-line);
}

/* Le filet est porté par l'en-tête de section (titre + bouton) */
.cd .cd-reviews__head .cd-title {
    margin: 0;
    padding: 0;
    border: 0;
}

.cd .cd-reviews__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 26px;
    padding: 0 8px;
    border-radius: 999px;
    background: var(--cd-soft);
    color: var(--cd-muted);
    font-size: .8rem;
    font-weight: 700;
}

/* Étoiles : 5 étoiles grises, la part remplie en ambre (--cd-stars : 0 à 100 %) */
.cd .cd-stars {
    position: relative;
    display: inline-block;
    color: #e2e5e3;
    font-size: 1.1rem;
    letter-spacing: 2px;
    line-height: 1;
    white-space: nowrap;
}

.cd .cd-stars::before {
    content: "★★★★★";
}

.cd .cd-stars::after {
    content: "★★★★★";
    position: absolute;
    top: 0;
    left: 0;
    width: var(--cd-stars, 0%);
    overflow: hidden;
    color: #f59e0b;
}

.cd .cd-stars--sm {
    font-size: .9rem;
    letter-spacing: 1px;
}

/* Résumé : note moyenne | répartition */
.cd-reviews__summary {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 28px;
    align-items: center;
    margin-bottom: 24px;
    padding: 20px 24px;
    border-radius: 12px;
    background: var(--cd-soft);
}

.cd-reviews__score {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding-right: 28px;
    border-right: 1px solid var(--cd-line);
    text-align: center;
}

.cd .cd-reviews__score strong {
    color: var(--cd-dark);
    font-size: 2.6rem;
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1;
}

.cd .cd-reviews__total {
    color: var(--cd-muted);
    font-size: .82rem;
    font-weight: 600;
}

.cd-reviews__bars {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cd-reviews__bars li {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 44px;
    align-items: center;
    gap: 10px;
    font-size: .82rem;
    line-height: 1.2;
}

.cd .cd-reviews__bar-label {
    color: var(--cd-dark);
    font-weight: 700;
    white-space: nowrap;
}

.cd-reviews__bar {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #e6eae8;
}

.cd-reviews__bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--cd-brand);
}

.cd .cd-reviews__bar-percent {
    color: var(--cd-muted);
    font-weight: 600;
    text-align: right;
}

/* Liste des avis */
.cd-reviews__list {
    display: grid;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cd-review {
    padding: 18px 0;
}

.cd-review + .cd-review {
    border-top: 1px solid var(--cd-line);
}

.cd-review:first-child {
    padding-top: 0;
}

.cd-review__head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cd-review__avatar {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 50%;
    object-fit: cover;
}

.cd .cd-review__avatar--initials {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--cd-brand-soft);
    color: var(--cd-brand-ink);
    font-size: .9rem;
    font-weight: 800;
}

.cd-review__who {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}

.cd .cd-review__name {
    color: var(--cd-dark);
    font-size: .95rem;
    font-weight: 700;
    line-height: 1.3;
}

.cd .cd-review__date {
    color: var(--cd-muted);
    font-size: .78rem;
    line-height: 1.4;
}

.cd .cd-review__text {
    margin: 10px 0 0 52px;
    color: var(--cd-text);
    font-size: .92rem;
    line-height: 1.65;
}

.cd-reviews__pagination {
    margin-top: 8px;
}

/* Aucun avis : bandeau compact */
.cd-reviews__empty {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    border: 1px dashed var(--cd-line);
    border-radius: 12px;
    background: var(--cd-soft);
}

.cd-reviews__empty-icon {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .06);
    color: var(--cd-brand-ink);
}

.cd-reviews__empty-icon svg {
    width: 22px;
    height: 22px;
}

.cd .cd-reviews__empty p {
    margin: 0;
    color: var(--cd-muted);
    font-size: .88rem;
    line-height: 1.5;
}

.cd .cd-reviews__empty .cd-reviews__empty-title {
    color: var(--cd-dark);
    font-size: .98rem;
    font-weight: 700;
}

/* Formulaire */
.cd-reviews__form {
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid var(--cd-line);
    scroll-margin-top: 110px;
}

.cd .cd-reviews__form-title {
    margin: 0 0 2px;
    color: var(--cd-dark);
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.3;
}

.cd .cd-reviews__form-note {
    margin: 0 0 14px;
    color: var(--cd-muted);
    font-size: .85rem;
}

/* Visiteur : invitation à se connecter */
.cd-reviews__login {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.cd .cd-reviews__login p {
    margin: 0;
    color: var(--cd-muted);
    font-size: .88rem;
}

.cd .cd-reviews__login .cd-reviews__form-title {
    color: var(--cd-dark);
    font-size: 1.05rem;
}

.cd .cd-reviews__login .cd-btn {
    width: auto;
}

/* Déjà noté */
.cd .cd-reviews__thanks {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 12px;
    background: var(--cd-brand-soft);
}

.cd-reviews__thanks svg {
    width: 22px;
    height: 22px;
    color: var(--cd-brand-ink);
}

.cd .cd-reviews__thanks p {
    margin: 0;
    color: var(--cd-text);
    font-size: .88rem;
}

.cd .cd-reviews__thanks strong {
    display: block;
    color: var(--cd-dark);
}

/* Champs du formulaire du plugin, au style de la fiche */
.cd .cd-reviews form .row {
    --bs-gutter-x: 0;
    row-gap: 12px;
    margin: 0;
}

.cd .cd-reviews form .form-label {
    margin-bottom: 6px;
    color: var(--cd-dark);
    font-size: .85rem;
    font-weight: 700;
}

.cd .cd-reviews form .mb-3 {
    margin-bottom: 0 !important;
}

.cd .cd-reviews form textarea.form-control {
    min-height: 110px;
    padding: 12px 14px;
    border: 1px solid var(--cd-line);
    border-radius: 12px;
    background: var(--cd-soft);
    color: var(--cd-dark);
    font-size: .92rem;
    box-shadow: none;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.cd .cd-reviews form textarea.form-control:focus {
    border-color: var(--cd-brand);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(var(--primary-color-rgb, 152, 188, 42), .15);
    outline: none;
}

.cd .cd-reviews .form-rating-stars label {
    color: #d5dad7;
    cursor: pointer;
}

.cd .cd-reviews .form-rating-stars svg {
    width: 28px;
    height: 28px;
}

.cd .cd-reviews form button[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 10px 22px;
    border: 0;
    border-radius: 12px;
    background: var(--cd-brand);
    color: #fff;
    font-size: .92rem;
    font-weight: 700;
    text-transform: none;
    transition: background .2s ease;
}

.cd .cd-reviews form button[type="submit"]:hover {
    background: var(--cd-brand-ink);
}

@media (max-width: 767px) {
    .cd-reviews__summary {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
        padding: 16px;
    }

    .cd-reviews__score {
        padding: 0 0 14px;
        border-right: 0;
        border-bottom: 1px solid var(--cd-line);
    }

    .cd .cd-review__text {
        margin-left: 0;
    }

    .cd .cd-reviews__login .cd-btn {
        width: 100%;
    }

    .cd-reviews__head .cd-chip span {
        display: inline;
    }
}

/* ---------- Colonne de droite : contacter le vendeur (barre à gauche, couleur du site) ---------- */
.cd .cd-seller {
    position: relative;
    overflow: hidden;
    padding: 18px 20px;
}

/* Rappel du prix en haut de la carte vendeur (colonne fixe) */
.cd .cd-seller__price {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--cd-line);
}

.cd .cd-seller__price span {
    color: var(--cd-muted);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    line-height: 1.3;
    text-transform: uppercase;
}

.cd .cd-seller__price strong {
    color: var(--cd-brand-ink);
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.15;
}

/* « Prix sur demande » : plus petit et foncé, comme dans l'en-tête */
.cd .cd-seller__price--text strong {
    color: var(--cd-dark);
    font-size: 1.2rem;
}

/* En-tête vendeur : photo + nom + type */
.cd-seller__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.cd-seller__avatar {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--cd-soft);
    object-fit: cover;
}

.cd-seller__who {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.cd .cd-seller__name {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    overflow: hidden;
    color: var(--cd-dark);
    font-size: 1.06rem;
    font-weight: 800;
    letter-spacing: -.01em;
    line-height: 1.3;
}

.cd .cd-seller__verified {
    display: inline-flex;
    color: var(--cd-brand-ink);
}

.cd-seller__verified svg {
    width: 18px;
    height: 18px;
}

.cd .cd-seller__type {
    color: var(--cd-muted);
    font-size: .8rem;
    line-height: 1.4;
}

/* Adresse, séparée des boutons par un filet */
.cd .cd-seller__block {
    margin: 14px 0 0;
    padding-top: 12px;
    border-top: 1px solid var(--cd-line);
}

.cd .cd-seller__address {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: .9rem;
    line-height: 1.5;
}

.cd .cd-seller__address strong {
    color: var(--cd-dark);
    font-weight: 700;
}

/* Mini-carte : aperçu non cliquable (iframe chargée par le JS), un clic ouvre la carte complète */
.cd .cd-minimap {
    position: relative;
    display: block;
    width: 100%;
    height: 120px;
    margin: 6px 0 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--cd-line);
    border-radius: 12px;
    background: var(--cd-soft);
    cursor: zoom-in;
}

.cd-minimap__frame,
.cd-minimap__frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    pointer-events: none;
}

/* Plus haute que le cadre et centrée : masque l'encart de Google en haut de l'aperçu */
.cd-minimap__frame iframe {
    top: -60px;
    bottom: auto;
    height: calc(100% + 120px);
}

/* Repère affiché tant que la carte n'est pas chargée */
.cd .cd-minimap__pin {
    position: absolute;
    top: 50%;
    left: 50%;
    display: none;
    color: var(--cd-brand-ink);
    transform: translate(-50%, -50%);
}

.cd-minimap__frame:empty + .cd-minimap__pin {
    display: inline-flex;
}

.cd-minimap__pin svg {
    width: 30px;
    height: 30px;
}

/* Adresse écrite sur la carte, en haut (une ligne, « … » si trop longue) */
.cd .cd-minimap__label {
    position: absolute;
    top: 8px;
    left: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: calc(100% - 16px);
    padding: 7px 11px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 2px 8px rgba(15, 23, 42, .15);
    color: var(--cd-dark);
    font-size: .82rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: left;
}

.cd-minimap__label span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cd-minimap__label svg {
    width: 16px;
    height: 16px;
    color: var(--cd-brand-ink);
}

.cd .cd-minimap__hint {
    position: absolute;
    right: 8px;
    bottom: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .95);
    box-shadow: 0 2px 8px rgba(15, 23, 42, .15);
    color: var(--cd-dark);
    font-size: .78rem;
    font-weight: 700;
    line-height: 1.2;
    transition: background .2s ease, color .2s ease;
}

.cd-minimap__hint svg {
    width: 15px;
    height: 15px;
}

.cd .cd-minimap:hover .cd-minimap__hint {
    background: var(--cd-brand);
    color: #fff;
}

.cd .cd-minimap:focus-visible {
    outline: 3px solid rgba(var(--primary-color-rgb, 152, 188, 42), .45);
    outline-offset: 2px;
}

.cd .cd-seller__map {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    margin-top: 4px;
    color: var(--cd-brand-ink);
    font-size: .84rem;
    font-weight: 700;
}

.cd .cd-seller__map:hover {
    text-decoration: underline;
}

.cd-seller__map svg {
    width: 15px;
    height: 15px;
    transition: transform .2s ease;
}

.cd-seller__map:hover svg {
    transform: translateX(3px);
}

.cd .cd-seller__heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    color: var(--cd-dark);
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -.01em;
    line-height: 1.3;
}

/* Boutons de contact */
.cd-seller__buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cd .cd-seller__error {
    display: flex;
    align-items: center;
    gap: .4rem;
    margin: -.1rem 0 .15rem;
    padding: .5rem .7rem;
    border: 1px solid #fecaca;
    border-radius: 8px;
    background: #fef2f2;
    color: #dc2626;
    font-size: .78rem;
}

.cd .cd-seller__error::before {
    content: "!";
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #dc2626;
    color: #fff;
    font-size: .65rem;
    font-weight: 700;
}

.cd .cd-seller__error[hidden] {
    display: none;
}

.cd .cd-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    width: 100%;
    min-height: 42px;
    padding: 10px 16px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: .92rem;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
    transition: all .2s ease;
}

.cd .cd-btn:focus-visible {
    outline: 3px solid rgba(var(--primary-color-rgb, 152, 188, 42), .35);
    outline-offset: 2px;
}

.cd .cd-btn.is-loading {
    opacity: .7;
    pointer-events: none;
}

.cd-btn svg {
    width: 17px;
    height: 17px;
}

/* Primaire : couleur du site */
.cd .cd-btn--primary {
    background: var(--cd-brand);
    box-shadow: 0 4px 14px rgba(var(--primary-color-rgb, 152, 188, 42), .28);
    color: #fff;
}

.cd .cd-btn--primary:hover {
    background: var(--cd-brand-ink);
    box-shadow: 0 8px 22px rgba(var(--primary-color-rgb, 152, 188, 42), .28);
    color: #fff;
}

.cd .cd-btn--primary:active {
    box-shadow: 0 2px 8px rgba(var(--primary-color-rgb, 152, 188, 42), .28);
}

/* Numéro affiché : le bouton passe au vert « succès » */
.cd .cd-btn[data-cd-call].is-revealed {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    letter-spacing: .03em;
}

.cd .cd-btn--dark {
    background: var(--cd-dark);
    color: #fff;
}

.cd .cd-btn--dark:hover {
    background: #000;
    color: #fff;
}

/* WhatsApp : vert doux, plein au survol */
.cd .cd-btn--whatsapp {
    border-color: #a7f3d0;
    background: #ecfdf5;
    color: #059669;
}

.cd .cd-btn--whatsapp:hover {
    border-color: #10b981;
    background: #10b981;
    box-shadow: 0 6px 18px rgba(16, 185, 129, .3);
    color: #fff;
}

/* Contour (favoris, e-mail) */
.cd .cd-btn--outline {
    border-color: var(--cd-line);
    background: #fff;
    color: var(--cd-dark);
}

.cd .cd-btn--outline:hover,
.cd .cd-btn--fav.active {
    border-color: var(--cd-brand);
    background: var(--cd-brand-soft);
    color: var(--cd-brand-ink);
}

.cd-btn--fav.active svg {
    fill: currentColor;
    animation: cd-heartbeat .5s ease;
}

@keyframes cd-heartbeat {
    0% {
        transform: scale(1);
    }

    40% {
        transform: scale(1.3);
    }

    70% {
        transform: scale(.95);
    }

    100% {
        transform: scale(1);
    }
}

@media (max-width: 400px) {
    .cd .cd-seller {
        padding: 1rem;
    }

    .cd .cd-seller__heading {
        font-size: 1.05rem;
    }

    .cd .cd-btn {
        padding: .75rem 1rem;
        font-size: .82rem;
    }
}

/* Conseil de sécurité : bas de la carte vendeur, fond vert très clair, filet vert à gauche */
.cd .cd-safety {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 14px;
    padding: 10px 12px;
    border: 1px solid rgba(var(--primary-color-rgb, 152, 188, 42), .25);
    border-left: 3px solid var(--cd-brand);
    border-radius: 10px;
    background: rgba(var(--primary-color-rgb, 152, 188, 42), .06);
}

.cd-safety__icon {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .08);
    color: var(--cd-brand-ink);
}

.cd-safety__icon svg {
    width: 17px;
    height: 17px;
}

.cd .cd-safety p {
    margin: 0;
    color: var(--cd-muted);
    font-size: .78rem;
    line-height: 1.45;
}

.cd .cd-safety strong {
    display: block;
    margin-bottom: 1px;
    color: var(--cd-dark);
    font-size: .82rem;
    font-weight: 700;
}

/* ---------- Formulaire de message ---------- */
.cd .cd-main > .cd-card {
    margin: 0;
}

/* Fenêtre au centre de la page (<dialog>), ouverte par « Envoyer un message » (js/components/car-detail.js) */
.cd .cd-modal {
    width: min(520px, calc(100vw - 32px));
    max-width: none;
    max-height: calc(100dvh - 32px);
    margin: auto;
    padding: 0;
    overflow: visible;
    border: 0;
    background: transparent;
}

.cd .cd-modal::backdrop {
    background: rgba(15, 23, 42, .55);
    backdrop-filter: blur(3px);
}

.cd .cd-modal[open] {
    animation: cd-modal-in .22s ease;
}

.cd .cd-modal[open]::backdrop {
    animation: cd-fade-in .22s ease;
}

.cd .cd-modal.is-closing {
    animation: cd-modal-out .18s ease forwards;
}

.cd .cd-modal.is-closing::backdrop {
    animation: cd-fade-in .18s ease reverse forwards;
}

@keyframes cd-modal-in {
    from {
        opacity: 0;
        transform: translateY(16px) scale(.98);
    }
}

@keyframes cd-modal-out {
    to {
        opacity: 0;
        transform: translateY(16px) scale(.98);
    }
}

@keyframes cd-fade-in {
    from {
        opacity: 0;
    }
}

/* Fenêtre de la carte : plus large que celle du message */
.cd .cd-modal--map {
    width: min(960px, calc(100vw - 32px));
}

.cd .cd-mapbox {
    position: relative;
    display: flex;
    flex-direction: column;
    max-height: calc(100dvh - 32px);
    padding: 24px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .25);
}

.cd .cd-mapbox .cd-inquiry__title {
    margin-bottom: 4px;
    padding-right: 44px;
}

.cd .cd-mapbox__address {
    margin: 0 0 14px;
    color: var(--cd-muted);
    font-size: .9rem;
}

.cd-mapbox__frame {
    position: relative;
    height: min(560px, calc(100dvh - 260px));
    min-height: 260px;
    overflow: hidden;
    border-radius: 12px;
    background: var(--cd-soft);
}

.cd-mapbox__frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.cd .cd-mapbox__directions {
    align-self: flex-start;
    width: auto;
    margin-top: 14px;
}

/* Page figée derrière la fenêtre */
html.cd-modal-open {
    overflow: hidden;
}

.cd .cd-modal .cd-inquiry {
    position: relative;
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .25);
}

.cd .cd-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid var(--cd-line);
    border-radius: 10px;
    background: #fff;
    color: var(--cd-muted);
    cursor: pointer;
    transition: border-color .2s ease, color .2s ease;
}

.cd .cd-modal__close:hover {
    border-color: var(--cd-brand);
    color: var(--cd-brand-ink);
}

.cd-modal__close svg {
    width: 18px;
    height: 18px;
}

.cd .cd-inquiry {
    padding: 28px;
}

.cd .cd-modal .cd-inquiry__title {
    padding-right: 44px; /* place pour la croix */
}

.cd .cd-inquiry__title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    color: var(--cd-dark);
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -.01em;
    line-height: 1.3;
}

/* Pastille ronde devant les titres « Contacter le vendeur » et « Envoyer un message » */
.cd-inquiry__icon {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--cd-brand-soft);
    color: var(--cd-brand-ink);
}

.cd-inquiry__icon svg {
    width: 16px;
    height: 16px;
}

.cd-inquiry form {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
}

.cd-inquiry form > * {
    margin: 0 !important;
}

.cd .cd-inquiry .form-label {
    /* Masqué à l'écran (les champs ont un texte d'exemple), lu par les lecteurs d'écran */
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.cd .cd-inquiry .form-control {
    min-height: 46px;
    padding: 10px 14px;
    border: 1px solid var(--cd-line);
    border-radius: 10px;
    background: var(--cd-soft);
    color: var(--cd-dark);
    font-size: .88rem;
    box-shadow: none;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.cd .cd-inquiry .form-control::placeholder {
    color: #94a3b8;
}

.cd .cd-inquiry .form-control:hover {
    border-color: #cbd5e1;
}

.cd .cd-inquiry .form-control:focus {
    border-color: var(--cd-brand);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(var(--primary-color-rgb, 152, 188, 42), .15);
    outline: none;
}

/* Champ « Annonce » (lecture seule) */
.cd .cd-inquiry .form-control:disabled {
    border-color: var(--cd-line);
    background: var(--cd-soft);
    color: var(--cd-muted);
    cursor: default;
}

.cd .cd-inquiry .form-control.is-invalid {
    border-color: #dc2626;
    background: #fef2f2;
}

.cd .cd-inquiry textarea.form-control {
    height: 84px;
    min-height: 64px;
    resize: vertical;
}

.cd .cd-inquiry button[type="submit"] {
    justify-self: stretch;
    width: 100%;
    margin-top: 0;
}

.cd .cd-inquiry button[type="submit"].is-loading {
    opacity: .7;
    pointer-events: none;
}

/* Message envoyé / erreur */
.cd .cd-inquiry__alert {
    margin: 0 0 14px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: .9rem;
    font-weight: 600;
    line-height: 1.45;
}

.cd .cd-inquiry__alert[hidden] {
    display: none;
}

.cd .cd-inquiry__alert--success {
    background: var(--cd-brand-soft);
    color: #3f5a12;
}

.cd .cd-inquiry__alert--error {
    background: #fdecea;
    color: #a12a1c;
}

/* ---------- Barre de contact mobile ---------- */
.cd-mbar {
    display: none;
}

/* ==========================================================================
   Tablette
   ========================================================================== */
@media (max-width: 1099px) {
    .cd-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .cd-side__sticky {
        position: static;
    }

    /* Une colonne : la carte vendeur (contact) remonte juste sous l'en-tête au lieu d'arriver
       après les avis. Les deux colonnes s'effacent (display: contents) et leurs blocs sont réordonnés. */
    .cd-layout {
        row-gap: 20px;
    }

    .cd-main,
    .cd-side,
    .cd-side__sticky {
        display: contents;
    }

    .cd-gallery {
        order: 1;
    }

    .cd .cd-head {
        order: 2;
    }

    .cd-side__sticky > * {
        order: 3;
    }

    .cd-main > :not(.cd-gallery):not(.cd-head) {
        order: 4;
    }

    /* Le prix est juste au-dessus, dans l'en-tête */
    .cd .cd-seller__price {
        display: none;
    }
}

/* Tablette : carte vendeur pleine largeur, boutons de contact sur 2 colonnes au lieu de 4 lignes étirées */
@media (min-width: 768px) and (max-width: 1099px) {
    .cd-seller__buttons {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* Erreur et autres numéros : toute la largeur, sous le bouton d'appel */
    .cd-seller__buttons > .cd-seller__error,
    .cd-seller__buttons > .cd-seller__phones {
        grid-column: 1 / -1;
    }
}

/* ==========================================================================
   Mobile
   ========================================================================== */
@media (max-width: 767px) {
    .cd {
        padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
    }

    .cd__wrap {
        padding-top: 16px;
        padding-inline: 12px;
    }

    .cd-crumbs ol {
        margin-bottom: 12px;
        font-size: .8rem;
    }

    .cd-main,
    .cd-side__sticky {
        gap: 14px;
    }

    .cd-layout {
        gap: 14px;
    }

    .cd-card {
        padding: 20px 18px;
    }

    .cd-gallery__main {
        aspect-ratio: 4 / 3;
    }

    .cd .cd-gallery__nav {
        width: 38px;
        height: 38px;
        opacity: 1;
    }

    .cd-gallery__nav--prev {
        left: 10px;
    }

    .cd-gallery__nav--next {
        right: 10px;
    }

    .cd-gallery__badges,
    .cd .cd-gallery__counter {
        top: 10px;
    }

    .cd-gallery__badges {
        left: 10px;
    }

    .cd .cd-gallery__counter {
        right: 10px;
    }

    .cd-gallery__tools {
        right: 10px;
        bottom: 10px;
    }

    .cd-gallery__tool span {
        display: none;
    }

    .cd .cd-gallery__thumb {
        width: 72px;
        height: 54px;
    }

    .cd .cd-text ul,
    .cd .cd-equip {
        grid-template-columns: minmax(0, 1fr);
    }

    /* Mobile : 2 cases par ligne, un peu plus serrées */
    .cd .cd-specpanel dl {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cd .cd-specpanel__item {
        padding: 16px 10px 14px;
    }

    .cd-specpanel__icon {
        width: 38px;
        height: 38px;
    }

    /* Barre fixe : prix + appel / WhatsApp / message */
    .cd-mbar {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 90;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
        border-top: 1px solid var(--cd-line);
        background: rgba(255, 255, 255, .97);
        backdrop-filter: blur(10px);
        box-shadow: 0 -6px 20px rgba(15, 23, 42, .08);
    }

    .cd-mbar__price {
        display: flex;
        flex-direction: column;
        min-width: 0;
    }

    .cd .cd-mbar__label {
        color: var(--cd-muted);
        font-size: .7rem;
        font-weight: 600;
        letter-spacing: .05em;
        line-height: 1.2;
        text-transform: uppercase;
    }

    .cd .cd-mbar__price strong {
        overflow: hidden;
        color: var(--cd-dark);
        font-size: 1.05rem;
        font-weight: 700;
        line-height: 1.3;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .cd-mbar__actions {
        display: flex;
        flex-shrink: 0;
        gap: 8px;
    }

    .cd .cd-mbar .cd-btn {
        width: auto;
        min-width: 46px;
        min-height: 46px;
        padding: 0 14px;
        box-shadow: none;
    }

    /* Masquée quand la carte vendeur, le formulaire ou le footer sont visibles */
    .cd-mbar {
        transition: transform .25s ease;
    }

    .cd-mbar.is-hidden {
        transform: translateY(110%);
    }

    .cd .cd-inquiry,
    .cd .cd-seller {
        padding: 20px 18px;
    }

    /* Mobile : la fenêtre monte du bas de l'écran */
    .cd .cd-modal {
        width: 100%;
        max-height: 92dvh;
        margin: auto 0 0;
    }

    .cd .cd-mapbox {
        max-height: 92dvh;
        padding: 20px 18px calc(20px + env(safe-area-inset-bottom, 0px));
        border-radius: var(--cd-radius) var(--cd-radius) 0 0;
    }

    .cd-mapbox__frame {
        height: 55dvh;
    }

    .cd .cd-mapbox__directions {
        width: 100%;
    }

    .cd .cd-modal .cd-inquiry {
        max-height: 92dvh;
        border-radius: var(--cd-radius) var(--cd-radius) 0 0;
        padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    }
}

@media (prefers-reduced-motion: reduce) {
    .cd *,
    .cd *::before,
    .cd *::after {
        transition: none !important;
        animation: none !important;
    }
}

/* Autres numéros de l'annonce (fixe), affichés avec le premier */
.cd .cd-seller__phones {
    display: grid;
    gap: .4rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cd .cd-seller__phones[hidden] {
    display: none;
}

.cd .cd-seller__phones li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .55rem .8rem;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}

.cd .cd-seller__phones span {
    color: #6b7280;
    font-size: .85rem;
    font-weight: 600;
}

.cd .cd-seller__phones a {
    color: #111827;
    font-weight: 700;
    text-decoration: none;
}

.cd .cd-seller__phones a:hover {
    color: var(--primary-color, #98bc2a);
}
