/* ===============================
 *  BADGE BULLE (dans boutons)
=============================== */
.btn-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2em;
    height: 2em;
    padding: 0;
    margin-left: .4em;
    font-size: .75em;
    font-weight: var(--fw-bold);
    line-height: 1;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, .25);
    color: inherit;
}

/* ===============================
 *  TÉMOIGNAGE / CITATION
=============================== */

.temoignage {
    position: relative;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
}

.temoignage::before {
    content: "\201C";
    position: absolute;
    top: -.25em;
    left: -.05em;
    font-size: 9rem;
    line-height: 1;
    color: var(--primary-x-light);
    pointer-events: none;
}

.temoignage p {
    position: relative;
    z-index: 1;
    font-style: italic;
    margin-bottom: .75rem;
    line-height: 1.7;
    padding-left: 1.5rem;
    text-wrap: balance;
}

.temoignage .fs-4 {
    font-size: 1.5rem;
    line-height: 1.4;
}

.temoignage footer {
    font-weight: var(--fw-bold);
    color: var(--primary-dark);
    font-style: normal;
    padding-left: 1.5rem;
}

/* ===============================
 *  SERVICE CARDS
=============================== */

@media (min-width: 992px) {
    .service-cards {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: auto 1fr;
        gap: 1.5rem;
    }

    .service-cards > div {
        display: grid;
        grid-template-rows: subgrid;
        grid-row: span 2;
    }

    .service-cards .service-card {
        grid-template-rows: subgrid;
        grid-row: span 2;
    }
}

.service-cards .service-card {
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: 0 2px 12px rgb(0 0 0 / 8%);
    height: 100%;
    display: grid;
    grid-template-rows: auto 1fr;
}

.service-cards .service-card-header {
    padding: 1.5rem;
    text-align: center;
    color: #FFF;
}

.service-cards .service-card-header h3 {
    color: #FFF;
    margin-bottom: 0;
    text-transform: uppercase;
}

.service-cards .service-icon {
    display: block;
    width: 64px;
    height: 64px;
    margin: 0 auto .5rem;
}

.service-cards .service-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.service-cards .service-card-body ul {
    padding-left: 0;
    list-style: none;
    margin-bottom: 1.5rem;
}

.service-cards .service-card-body ul li {
    padding: .5rem 0;
    border-bottom: 1px solid var(--neutral-light);
}

.service-cards .service-card-body ul li:last-child {
    border-bottom: 0;
}

/* ===============================
 *  CHIFFRES CLÉS
=============================== */

.chiffres-cles .chiffre-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: .5rem;
    padding: 1.25rem 1rem;
    background: var(--primary-2x-light);
    border-radius: var(--radius-sm);
}

.chiffres-cles .chiffre-valeur {
    display: block;
    font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem);
    font-weight: var(--fw-bolder);
    color: var(--primary-dark);
    line-height: 1.2;
}

.chiffres-cles .chiffre-label {
    display: block;
    font-size: .813rem;
    margin-top: .25rem;
}

/* ===============================
 *  CERTIFICATIONS
=============================== */

.certifications {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.certification-badge {
    background: var(--primary-x-light);
    padding: .5rem 1.25rem;
    border-radius: var(--radius-lg);
    font-size: .9rem;
    font-weight: var(--fw-bold);
    color: var(--primary-x-dark);
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}

/* ===============================
 *  FAQ
=============================== */

.faq-section .accordion-item {
    border: 0;
    border-radius: var(--radius-sm) !important;
    margin-bottom: .75rem;
    overflow: hidden;
    box-shadow: none;
}

.faq-section .accordion-button {
    font-weight: var(--fw-bold);
    color: var(--primary-x-dark);
    background: var(--neutral-x-light);
    padding: 1.25rem;
    box-shadow: none;
}

.faq-section .accordion-button::after {
    content: "";
    background-image: none;
    -webkit-mask-image: url("../img/ic_plus.svg");
    mask-image: url("../img/ic_plus.svg");
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    background-color: var(--primary-x-dark);
    width: 1.25rem;
    height: 1.25rem;
    transition: transform .3s ease;
}

.faq-section .accordion-button:not(.collapsed)::after {
    transform: rotate(45deg);
}

.faq-section .accordion-button:not(.collapsed) {
    background: var(--primary-x-light);
    color: var(--primary-x-dark);
}

.faq-section .accordion-body {
    padding: 1.25rem;
    line-height: 1.7;
}

/* ===============================
 *  LISTING ANNONCES
=============================== */

@media screen and (min-width: 992px) {
    .listingAnnonces .one .carousel {
        min-height: 26vmin;
    }
}

/* ===============================
 *  SERVICES (accueil) - sommaire éditorial
 *  Les 3 services visibles d'emblée, filets fins, grands numéros.
 *  Mobile : numéro | contenu empilé. Desktop : numéro | accroche | texte.
=============================== */

.services-index__list {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: service;
    border-top: 1px solid var(--primary-x-dark);
}

.services-index__item {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: var(--space-4);
    padding: var(--space-4) var(--space-3);
    border-bottom: 1px solid var(--secondary-light);
    counter-increment: service;
}

/* Grand numéro fin, décoratif : l'ordre est déjà donné par la liste numérotée */
.services-index__item::before {
    content: counter(service, decimal-leading-zero);
    content: counter(service, decimal-leading-zero) / "";
    grid-row: span 2;
    font-size: clamp(2.5rem, 1.5rem + 4vw, 5.5rem);
    font-weight: var(--fw-normal);
    line-height: .85;
    color: var(--primary-main);
    font-variant-numeric: tabular-nums;
}

.services-index__head,
.services-index__body {
    grid-column: 2;
}

/* Public visé : petite capitale espacée, couleur d'accent */
.services-index__audience {
    margin-bottom: var(--space-2);
    font-size: .813rem;
    font-weight: var(--fw-bold);
    letter-spacing: .12em;
    color: var(--focus-main);
}

.services-index__question {
    margin-bottom: var(--space-3);
    font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem);
    font-weight: var(--fw-bold);
    line-height: 1.25;
    letter-spacing: 0;
    color: var(--primary-x-dark);
    text-wrap: balance;
}

.services-index__body p {
    max-width: 62ch;
    margin-bottom: var(--space-3);
}

/* :link, :visited… pour passer devant les liens verts de base.css (a:link) */
.services-index__link:link,
.services-index__link:visited,
.services-index__link:hover,
.services-index__link:focus {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: .813rem;
    font-weight: var(--fw-bold);
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--primary-x-dark);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: .35em;
}

.services-index__arrow {
    width: 12px;
    transition: transform var(--transition-base) var(--ease-out);
}

/* Toute la ligne est cliquable */
.services-index__link::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* Fond de survol, glissé sous le contenu */
.services-index__link::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--primary-x-light);
    opacity: 0;
    transition: opacity var(--transition-base) var(--ease-out);
}

.services-index__item:hover .services-index__link::before,
.services-index__item:focus-within .services-index__link::before {
    opacity: 1;
}

.services-index__item:hover .services-index__arrow,
.services-index__item:focus-within .services-index__arrow {
    transform: translateX(4px);
}

/* Focus clavier dessiné sur toute la ligne, en ombre intérieure du fond de survol :
   base.css supprime tous les outline (* { outline: none !important }) */
.services-index__link:focus-visible::before {
    box-shadow: inset 0 0 0 2px var(--focus-main);
}

@media screen and (min-width: 992px) {
    .services-index__item {
        grid-template-columns: 7rem minmax(0, 5fr) minmax(0, 7fr);
        column-gap: var(--space-5);
        padding-block: var(--space-5);
    }

    .services-index__item::before {
        grid-row: auto;
    }

    .services-index__body {
        grid-column: 3;
    }

    .services-index__question {
        margin-bottom: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .services-index__link::before,
    .services-index__arrow {
        transition: none;
    }
}

/* ===============================
 *  CHECKMARKS
=============================== */

.checkmarks .checkmark-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: .5rem;
    padding: 1.25rem 1rem;
    background: var(--primary-2x-light);
    border-radius: var(--radius-sm);
}

.checkmarks .checkmark-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
}

/* ===============================
 *  CTA
=============================== */

.cta-final-section .cta-block {
    padding: 1.5rem;
    background: var(--neutral-x-light);
    border-radius: var(--radius-sm);
}

.cta-final-section .cta-block p {
    font-size: 1.1rem;
}

/* ===============================
 *  LISTING CARD (composant partagé ville / agence)
=============================== */
.listing-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #FFF;
    box-shadow: 0 2px 12px rgb(0 0 0 / 8%);
    text-decoration: none;
    color: inherit;
    transition: transform .25s ease, box-shadow .25s ease;
}

.listing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgb(0 0 0 / 12%);
    color: inherit;
}

.listing-card__photo {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: var(--neutral-light);
}

.listing-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.listing-card:hover .listing-card__photo img {
    transform: scale(1.05);
}

.listing-card__no-photo {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neutral-main);
}

.listing-card__body {
    padding: 1rem 1.25rem 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.listing-card__name {
    font-size: clamp(16px, 1.2vw, 20px);
    margin-bottom: .25rem;
    color: var(--primary-x-dark);
    text-transform: none;
}

.listing-card__location {
    font-size: .813rem;
    color: var(--neutral-dark);
    margin-bottom: .75rem;
}

.listing-card__link {
    position: absolute;
    inset: 0;
    z-index: 2;
}

/* ===============================
 *  BOUTON COPIER (tel / email - modal négociateur)
 *  Visibilité (desktop only) gérée par les utilitaires Bootstrap
 *  d-none / d-lg-inline-flex, donc on ne fixe pas `display` ici.
=============================== */
.btn-copy {
    align-items: center;
    justify-content: center;
    padding: .4rem;
    border: 1px solid var(--neutral-light);
    border-radius: var(--radius-xs);
    background-color: #fff;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.btn-copy:hover,
.btn-copy:focus-visible {
    border-color: var(--focus-main);
    background-color: var(--focus-x-light);
    outline: none;
}

/* Bulle de confirmation "Copié !" affichée au clic (data-copied) */
.btn-copy.is-copied::after {
    content: attr(data-copied);
    position: absolute;
    bottom: calc(100% + .4rem);
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    background-color: var(--neutral-dark);
    color: #fff;
    font-size: .7rem;
    line-height: 1;
    padding: .25rem .45rem;
    border-radius: var(--radius-xs);
    pointer-events: none;
}


/* ===============================
 *  BANDEAU D'ACCUEIL (point 21)
 *  La recherche se lit comme une phrase : les mots en gras soulignés sont des menus.
 *  La phrase est dans un encart vert ; à droite, 4 vignettes de biens en 2 colonnes (slider sur mobile).
=============================== */
.hero-patio {
    row-gap: var(--space-5);
}

.hero-patio__titre {
    margin-bottom: var(--space-4);
}

/* Encart sur le titre, la phrase et ses boutons, sur toute la largeur de la colonne et à la hauteur de son
   contenu, marge intérieure de 24 à 32 px (--space-4) (Cédric, 26/11). Fond blanc et contour du vert de la
   charte : l'encart vert clair était jugé « moins contemporain » (Florian, 26/11). Soulignements en vert foncé
   (13:1 sur le blanc). */
.hero-patio__encart {
    padding: var(--space-4);
    background-color: #fff;
    border: 2px solid var(--primary-main);
    border-radius: var(--radius-sm);
}

/* Version précédente, fond vert clair (11,4:1 pour les soulignements), montrée dessous sur le site de test
   pour comparer (Cédric, 26/11) */
.hero-patio--vert .hero-patio__encart {
    background-color: var(--primary-light);
    border-color: transparent;
}

/* Titre de la comparaison : bien détaché du bandeau du dessus par un très grand espace et un filet (Cédric, 26/11,
   espace doublé à sa demande) */
.hero-comparaison {
    margin: calc(var(--space-8) * 2) 0 var(--space-5);
    padding-top: var(--space-6);
    border-top: 1px solid var(--neutral-main);
    font-size: 1rem;
    font-weight: var(--fw-bold);
    color: var(--neutral-black);
}

.hero-patio__texte {
    font-family: var(--ff-headline);
    /* 24 à 40 px (52 px au départ, jugée trop grosse par Florian, puis 32 px, un peu petite pour Cédric, 26/11) */
    font-size: clamp(1.5rem, 1rem + 1.6vw, 2.5rem);
    font-weight: var(--fw-normal);
    line-height: 1.6; /* interligne aéré entre les 3 lignes (Cédric, 26/11) */
    letter-spacing: -.01em;
    margin-bottom: var(--space-4);
}

.hero-patio__choix {
    appearance: none;
    field-sizing: content;
    max-width: 100%;
    margin: 0 .05em;
    padding: 0 .7em 0 0;
    font: inherit;
    font-weight: var(--fw-bold);
    line-height: 1.1;
    color: var(--primary-x-dark);
    background: transparent url("/assets/img/ic_angle-down.svg") no-repeat right .05em center / .45em;
    border: 0;
    border-bottom: .07em solid var(--primary-x-dark);
    border-radius: 0;
    cursor: pointer;
}

.hero-patio__choix:hover {
    border-bottom-color: var(--neutral-black);
}

/* Liste déroulante native en texte courant : ne sert que si Tom Select ne se charge pas (voir plus bas) */
.hero-patio__choix option {
    font-family: var(--ff-body);
    font-size: 1rem;
    font-weight: var(--fw-normal);
    color: var(--neutral-black);
}

/* Menus « maison » de la phrase (Tom Select, déjà chargé par le listing ; sa feuille de style n'est pas
   chargée ici, seules ces règles servent). La liste native était énorme et sans limite de hauteur
   (Florian, 26/11) : texte courant, 18 rem de haut au plus, défilante ; champ de recherche pour les villes.
   Tom Select reprend la classe du menu (.hero-patio__choix) sur son enveloppe. */
.hero-patio .ts-hidden-accessible {
    position: absolute !important;
    width: 1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.hero-patio__texte {
    position: relative; /* mobile : les listes s'ouvrent sous la phrase, sur sa largeur */
}

/* « Je souhaite » / « acheter un bien » / « à … » : une ligne chacun, sur tous les écrans */
.hero-patio__ligne {
    display: block;
}

.hero-patio .ts-wrapper {
    display: inline-block;
}

/* Tom Select n'écoute les clics que sur .ts-control : la flèche et le soulignement, laissés sur l'enveloppe,
   étaient hors de cette zone (un clic sur la flèche n'ouvrait rien). Tout le menu est donc dessiné ici. */
.hero-patio .ts-wrapper.hero-patio__choix {
    padding: 0;
    background: none;
    border-bottom: 0;
}

.hero-patio .ts-control {
    display: inline-block;
    padding: 0 .7em 0 0;
    background: url("/assets/img/ic_angle-down.svg") no-repeat right .05em center / .45em;
    border-bottom: .07em solid var(--primary-x-dark);
    cursor: pointer;
}

.hero-patio .ts-wrapper:hover .ts-control {
    border-bottom-color: var(--neutral-black);
}

.hero-patio .ts-control > .item {
    display: inline;
}

/* Au clavier : fond blanc sur le vert, comme le menu natif (le contour de focus est retiré partout) */
.hero-patio .ts-wrapper:has(:focus-visible) .ts-control {
    background-color: #fff;
}

.hero-patio .ts-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 30;
    width: 100%;
    max-width: 24rem;
    margin-top: .5rem;
    font-family: var(--ff-body);
    font-size: 1rem;
    font-weight: var(--fw-normal);
    line-height: 1.4;
    letter-spacing: normal;
    color: var(--neutral-black);
    background-color: #fff;
    border: 1px solid var(--neutral-main);
    border-radius: var(--radius-sm);
    box-shadow: 0 8px 24px rgb(0 0 0 / .12);
}

/* Ordinateur : la liste s'ouvre sous le mot choisi */
@media screen and (min-width: 992px) {
    .hero-patio .ts-wrapper {
        position: relative;
    }

    .hero-patio .ts-dropdown {
        width: max-content;
        min-width: 15rem;
    }

}

.hero-patio .ts-dropdown-content {
    max-height: 18rem;
    padding: .25rem 0;
    overflow: hidden auto;
    overscroll-behavior: contain;
}

.hero-patio .ts-dropdown .option {
    padding: .5rem 1rem;
    cursor: pointer;
}

.hero-patio .ts-dropdown .option.selected {
    font-weight: var(--fw-bold);
}

.hero-patio .ts-dropdown .option.active {
    color: var(--primary-x-dark);
    background-color: var(--primary-x-light);
}

/* Villes de la phrase (point 33, 30/11/2026) : plusieurs villes à cocher, par nom ou code postal, avec « Valider »
   toujours visible sous la liste. La 1re ville se lit dans la phrase, les autres dessous, en cartouches. */
.hero-patio__ligne--villes {
    position: relative; /* la liste s'ouvre sous la ligne ; les cartouches, dessous, ne la font pas descendre */
}

/* Le mot souligné et sa croix dans la même case de grille : la croix se pose devant la flèche */
.hero-patio__mot {
    display: inline-grid;
    max-width: 100%;
}

.hero-patio__mot > * {
    grid-area: 1 / 1;
}

.hero-patio__mot summary {
    display: inline-block;
    list-style: none;
}

.hero-patio__mot summary::-webkit-details-marker {
    display: none;
}

.hero-patio .a-une-ville summary {
    padding-right: calc(.9em + max(.7em, 24px));
}

.hero-patio__croix,
.hero-patio__autres button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: none;
    border: 0;
    border-radius: var(--radius-xs);
    cursor: pointer;
}

.hero-patio__croix {
    place-self: center end;
    width: max(.7em, 24px);
    height: max(.7em, 24px);
    margin-right: .7em;
}

.hero-patio__croix[hidden] {
    display: none;
}

.hero-patio__croix img {
    width: 100%;
    height: 100%;
}

.hero-patio__croix:hover,
.hero-patio__autres button:hover {
    background-color: var(--primary-light);
}

/* Le contour de focus est retiré partout (base.css) : filet vert foncé à la place, au clavier */
.hero-patio__croix:focus-visible,
.hero-patio__autres button:focus-visible,
.hero-patio__effacer:focus-visible {
    box-shadow: 0 0 0 2px var(--primary-x-dark);
}

.hero-patio__autres {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin: .75rem 0 0;
    padding: 0;
    list-style: none;
    font-family: var(--ff-body);
    font-size: 1rem;
    line-height: 1.4;
    letter-spacing: normal;
}

.hero-patio__autres[hidden] {
    display: none;
}

/* Vert foncé sur vert très clair : 12:1 */
.hero-patio__autres li {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    padding: .2rem .25rem .2rem .75rem;
    color: var(--primary-x-dark);
    background-color: var(--primary-x-light);
    border-radius: var(--radius-sm);
}

.hero-patio--vert .hero-patio__autres li {
    background-color: #fff;
}

.hero-patio__autres button,
.hero-patio__autres img {
    width: 24px;
    height: 24px;
}

.hero-patio__panneau {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 30;
    width: 100%;
    max-width: 24rem;
    margin-top: .5rem;
    font-family: var(--ff-body);
    font-size: 1rem;
    font-weight: var(--fw-normal);
    line-height: 1.4;
    letter-spacing: normal;
    color: var(--neutral-black);
    background-color: #fff;
    border: 1px solid var(--neutral-main);
    border-radius: var(--radius-sm);
    box-shadow: 0 8px 24px rgb(0 0 0 / .12);
}

.hero-patio__recherche {
    padding: .5rem;
}

/* Champ de recherche : bordure gris foncé, 4,9:1 */
.hero-patio__recherche input {
    width: 100%;
    padding: .5rem .75rem;
    font: inherit;
    color: var(--neutral-black);
    background-color: #fff;
    border: 1px solid var(--neutral-dark);
    border-radius: var(--radius-xs);
}

.hero-patio__recherche input:focus {
    border-color: var(--primary-x-dark);
    box-shadow: 0 0 0 1px var(--primary-x-dark);
}

.hero-patio__recherche input::placeholder {
    color: var(--neutral-dark);
}

/* « Autour : Aucun 5 km 10 km 15 km 20 km », sur une ligne ; sur un écran étroit, les choix passent ensemble
   sous « Autour ». La légende devient un élément flex (float). Filet sous la rangée, qui suit toujours la recherche */
.hero-patio__rayon {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .25rem .5rem;
    min-width: 0;
    margin: 0;
    padding: .5rem;
    font-size: .875rem;
    border: 0;
    border-bottom: 1px solid var(--neutral-light);
}

.hero-patio__recherche:not([hidden]) + .hero-patio__rayon {
    padding-top: 0;
}

/* Grisée tant qu'aucune ville n'est cochée (script) */
.hero-patio__rayon:disabled {
    opacity: .5;
}

.hero-patio__rayon legend {
    float: left;
    width: auto;
    margin: 0;
    padding: 0;
    font-size: inherit;
    color: var(--neutral-black);
}

/* À 320 px, les choix passent sur deux lignes au lieu de sortir du panneau */
.hero-patio__rayons {
    display: flex;
    flex-wrap: wrap;
    gap: .2rem;
}

.hero-patio__rayon label {
    position: relative;
    flex: none;
    cursor: pointer;
}

.hero-patio__rayon:disabled label {
    cursor: default;
}

/* Bouton radio masqué mais focalisable (Tab, flèches) : c'est le libellé qui se dessine en bouton */
.hero-patio__rayon input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: inherit;
}

.hero-patio__rayon span {
    display: block;
    padding: .3rem .35rem;
    white-space: nowrap;
    border: 1px solid var(--neutral-main);
    border-radius: var(--radius-xs);
}

/* Survol seulement sur la rangée active */
.hero-patio__rayon:not(:disabled) label:hover :not(:checked) + span {
    background-color: var(--primary-x-light);
}

/* Choix coché : vert foncé sur le vert de la charte, 7:1 */
.hero-patio__rayon :checked + span {
    font-weight: var(--fw-bold);
    color: var(--primary-x-dark);
    background-color: var(--primary-main);
    border-color: var(--primary-main);
}

/* Le contour de focus est retiré partout (base.css) : fond changé et filet vert foncé à la place, au clavier */
.hero-patio__rayon :focus-visible + span {
    background-color: var(--primary-x-light);
    box-shadow: inset 0 0 0 2px var(--primary-x-dark);
}

.hero-patio__rayon :checked:focus-visible + span {
    background-color: var(--primary-light);
}

/* 18 rem de haut au plus, défilante : « Valider » reste visible dessous */
.hero-patio__liste {
    max-height: min(18rem, 100dvh - 19rem); /* petits écrans : place pour la barre du bas */
    overflow: hidden auto;
    overscroll-behavior: contain;
}

.hero-patio__departement {
    min-width: 0;
    margin: 0;
    padding: 0 0 .25rem;
    border: 0;
}

/* Départements : gris foncé sur blanc, 4,9:1 */
.hero-patio__departement legend {
    float: none;
    width: 100%;
    margin: 0;
    padding: .75rem 1rem .25rem;
    font-size: .8rem;
    font-weight: var(--fw-bold);
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--neutral-dark);
}

.hero-patio__option {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .5rem 1rem;
    cursor: pointer;
}

.hero-patio__option[hidden] {
    display: none;
}

.hero-patio__option input {
    flex: none;
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--primary-x-dark);
}

.hero-patio__option:hover,
.hero-patio__option:has(:focus-visible) {
    color: var(--primary-x-dark);
    background-color: var(--primary-x-light);
}

.hero-patio__option:has(:checked) {
    font-weight: var(--fw-bold);
}

/* Au clavier : filet vert foncé, en plus du fond */
.hero-patio__option:has(:focus-visible) {
    box-shadow: inset 0 0 0 2px var(--primary-x-dark);
}

.hero-patio__cp {
    margin-left: auto;
    font-size: .875rem;
    color: var(--neutral-dark);
}

.hero-patio__option:hover .hero-patio__cp,
.hero-patio__option:has(:focus-visible) .hero-patio__cp {
    color: inherit;
}

/* « 40700 : toutes les communes » */
.hero-patio__option--cp {
    border-bottom: 1px solid var(--neutral-light);
}

.hero-patio__vide {
    margin: 0;
    padding: .75rem 1rem;
    color: var(--neutral-dark);
}

.hero-patio__vide:empty {
    display: none;
}

.hero-patio__pied-liste {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .75rem;
    padding: .5rem;
    border-top: 1px solid var(--neutral-main);
}

.hero-patio__pied-liste[hidden] {
    display: none;
}

.hero-patio__effacer {
    margin-right: auto;
    padding: .5rem;
    color: var(--neutral-black);
    background: none;
    border: 0;
    border-radius: var(--radius-xs);
    text-decoration: underline;
    text-underline-offset: .2em;
}

.hero-patio__effacer[hidden] {
    display: none;
}

/* Blanc sur vert foncé, 13:1 : le rose reste à « Voir les biens », qui lance la recherche */
.hero-patio__valider {
    flex: 0 1 auto;
    padding: .6rem 1.5rem;
    font-weight: var(--fw-bold);
    color: #fff;
    background-color: var(--primary-x-dark);
    border: 0;
    border-radius: var(--radius-xs);
    transition: background-color .2s;
}

.hero-patio__valider:only-child,
.hero-patio__effacer[hidden] + .hero-patio__valider {
    flex-grow: 1;
}

.hero-patio__valider:hover {
    background-color: var(--neutral-black);
}

.hero-patio__valider:focus-visible {
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--primary-x-dark);
}

/* Ordinateur : liste sur une largeur fixe, sous le mot choisi */
@media screen and (min-width: 992px) {
    .hero-patio__panneau {
        width: 23rem;
    }
}

/* Le contour de focus est retiré partout (base.css) : fond blanc sur le vert à la place, au clavier */
.hero-patio__choix:focus-visible {
    background-color: #fff;
}

/* Blanc sur le rose : 5,1:1 (6,4:1 au survol), comme le bouton « Chercher » du listing */
.hero-patio__envoi {
    padding: .9rem 2rem;
    font-weight: var(--fw-bold);
    color: #fff;
    background-color: var(--focus-main);
    border: 0;
    border-radius: var(--radius-xs);
    transition: background-color .2s;
}

.hero-patio__envoi:hover {
    background-color: var(--focus-dark);
}

.hero-patio__envoi:focus-visible {
    box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--focus-main);
}

/* « Voir sur la carte » à droite de « Voir les biens » (Cédric, 26/11) ; dessous s'il manque la place */
.hero-patio__boutons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2) var(--space-4);
}

/* Bouton simple, à côté de « Voir les biens » : la même recherche ouverte sur la carte */
.hero-patio__carte {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .6rem 1rem .6rem 0;
    font-weight: var(--fw-bold);
    color: var(--neutral-black);
    background: none;
    border: 0;
    text-decoration: underline;
    text-decoration-color: var(--primary-x-dark);
    text-decoration-thickness: 2px;
    text-underline-offset: .3em;
}

.hero-patio__carte:hover {
    text-decoration-color: var(--neutral-black);
}

.hero-patio__carte:focus-visible {
    background-color: #fff;
}

.hero-patio__carte img {
    width: 18px;
    height: 18px;
}

.hero-patio__proprio {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2) var(--space-4);
    margin: var(--space-5) 0 0;
    font-size: 1.125rem; /* 18 px : rapproche les liens de la phrase */
}

/* Ordinateur : « Propriétaire ? » calé en bas de la colonne, au niveau du bas des vignettes */
@media screen and (min-width: 992px) {
    .hero-patio__proprio {
        margin-top: auto;
        padding-top: var(--space-5);
    }
}

.hero-patio__proprio a,
.hero-patio__proprio a:link,
.hero-patio__proprio a:visited {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: var(--neutral-black);
    text-decoration: underline;
    text-decoration-color: var(--primary-main);
    text-decoration-thickness: 2px;
    text-underline-offset: .3em;
}

.hero-patio__proprio a:hover,
.hero-patio__proprio a:focus-visible {
    text-decoration-color: var(--neutral-black);
}

.hero-patio__proprio img {
    width: 24px;
    height: 24px;
}

/* « 248 biens à la vente » au-dessus des vignettes : vert foncé de la charte, comme les choix de la phrase
   (le vert principal de l'ancien bandeau était à 2:1 sur le blanc) */
.hero-patio__compte {
    width: auto; /* base.css met les titres à 100 % : le bouton passait dessous */
    margin: 0;
    font-weight: var(--fw-bold);
    color: var(--primary-x-dark);
}

/* Colonne des vignettes : compteur et « Voir nos biens » sur une ligne, au-dessus des vignettes sur mobile,
   dessous sur ordinateur, compteur à gauche et bouton à droite (Cédric, 26/11) */
.hero-patio__droite {
    display: flex;
    flex-direction: column;
}

.hero-patio__pied {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2) var(--space-3);
    margin-bottom: var(--space-3);
}

@media screen and (min-width: 992px) {
    .hero-patio__pied {
        order: 1;
        margin: var(--space-3) 0 0;
    }
}

/* Petit bouton, blanc sur le rose comme « Voir les biens » : 5,1:1 (6,4:1 au survol) */
.hero-patio__voir,
.hero-patio__voir:link,
.hero-patio__voir:visited {
    padding: .45rem .9rem;
    font-size: .875rem;
    font-weight: var(--fw-bold);
    line-height: 1.2;
    color: #fff;
    text-decoration: none;
    background-color: var(--focus-main);
    border-radius: var(--radius-xs);
    transition: background-color .2s;
}

.hero-patio__voir:hover {
    color: #fff;
    background-color: var(--focus-dark);
}

.hero-patio__voir:focus-visible {
    box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--focus-main);
}

/* 4 vignettes du listing (annonce/_card.html.twig, styles dans annonce-listing.css) en 2 colonnes (Cédric,
   26/11 ; avant, une grande et deux petites). Sélecteurs à double classe : annonce-listing.css est chargé
   après ce fichier. Slider sur mobile (plus bas). */
.listingAnnonces.hero-patio__biens {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4) var(--space-3);
}

.listingAnnonces.hero-patio__biens > .one {
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;
}

/* Carrousel à la proportion de la photo, au lieu de la hauteur d'écran du listing (30vmax) */
.listingAnnonces.hero-patio__biens .one .carousel {
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 3;
}

/* Ordinateur, colonne de droite : photos moins hautes d'un tiers ; ville et prix à 14 px au lieu de 16
   (Cédric, 26/11) */
@media screen and (min-width: 992px) {
    .listingAnnonces.hero-patio__biens .one .carousel {
        aspect-ratio: 2 / 1;
    }

    .listingAnnonces.hero-patio__biens .one .content-2 {
        font-size: .875rem;
    }
}

/* Étiquettes (Mandat Unique, Visite virtuelle…) réduites à 80 % sur ces petites vignettes, calées dans
   l'angle (Cédric, 26/11) ; blanc sur rose, 5,1:1 */
.listingAnnonces.hero-patio__biens .one .carousel .labels {
    transform: scale(.8);
    transform-origin: top left;
}

/* Mobile : « Propriétaire ? » sur sa ligne, les deux liens dessous ; « Voir les biens » et « Voir sur la
   carte » resserrés pour tenir sur une ligne (dès 375 px de large) */
@media screen and (max-width: 575.98px) {
    .hero-patio__proprio > span {
        flex-basis: 100%;
    }

    .hero-patio__boutons {
        column-gap: .5rem; /* le contour de l'encart prend 4 px : à 16 px d'écart, ils ne tenaient plus à 375 px */
    }

    .hero-patio__envoi {
        padding-inline: 1.25rem;
    }

    .hero-patio__carte {
        padding-right: 0;
    }
}

/* ===============================
 *  SLIDER MOBILE (accueil : vignettes du bandeau et « Découvrez nos biens et nos agences »)
 *  Sous 768 px, les vignettes passent côte à côte et défilent au doigt ; la suivante dépasse à droite pour
 *  inviter à glisser. Le slider va jusqu'aux bords de l'écran, la 1re vignette reste alignée sur le texte.
=============================== */
@media screen and (max-width: 767.98px) {
    .listingAnnonces .slider-mobile,
    .listingAnnonces.slider-mobile {
        display: flex;
        flex-wrap: nowrap;
        gap: var(--space-3);
        margin-inline: calc(var(--bs-gutter-x, 1.5rem) * -.5);
        padding-inline: calc(var(--bs-gutter-x, 1.5rem) * .5);
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: calc(var(--bs-gutter-x, 1.5rem) * .5);
        scrollbar-width: none;
    }

    .listingAnnonces .slider-mobile > .one,
    .listingAnnonces.slider-mobile > .one {
        flex: 0 0 82%;
        width: 82%;
        max-width: none;
        margin: 0;
        padding-inline: 0;
        scroll-snap-align: start;
    }

    /* Le glissé du doigt sur la photo fait défiler le slider (Bootstrap le réservait au changement de
       photo) ; les photos se changent avec les flèches */
    .slider-mobile .carousel.pointer-event {
        touch-action: auto;
    }
}

/* 5e vignette du slider du bandeau : lien vers tous les biens à la vente, dans le vert de l'encart de la
   phrase, à la hauteur des vignettes (Cédric, 26/11). Seulement dans le slider : la grille 2 × 2 n'en a pas
   la place. Vert foncé sur vert clair : 11,4:1. */
.hero-patio__tous {
    display: none;
}

@media screen and (max-width: 767.98px) {
    .listingAnnonces .hero-patio__tous {
        display: flex;
        flex: 0 0 60%;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        gap: var(--space-3);
        padding: var(--space-4);
        font-family: var(--ff-headline);
        font-size: 1.375rem;
        font-weight: var(--fw-bold);
        line-height: 1.25;
        text-decoration: none;
        background-color: var(--primary-light);
        border-radius: var(--radius-sm);
        scroll-snap-align: start;
    }

    .listingAnnonces .hero-patio__tous,
    .listingAnnonces .hero-patio__tous span {
        color: var(--primary-x-dark);
    }

    /* Le contour de focus est retiré partout : liseré intérieur vert foncé, au clavier */
    .listingAnnonces .hero-patio__tous:focus-visible {
        box-shadow: inset 0 0 0 3px var(--primary-x-dark);
    }

    /* Flèche dans une pastille blanche */
    .listingAnnonces .hero-patio__tous img {
        width: 2.5rem;
        height: 2.5rem;
        padding: .7rem;
        background-color: #fff;
        border-radius: 50%;
    }
}
