/*
 * Recherche annuaire — [hc_recherche] et [hc_recherche_accueil].
 *
 * Le dessin reprend celui de la page Divi d'origine : cartes blanches aux
 * coins inégaux (20 / 50 px), photo carrée aux mêmes coins, nom en rouge et
 * en gras, départements en pied de carte, filtres dans un panneau à gauche.
 * La police vient du thème.
 */

.hc-rech {
    --hc-rech-rouge: #8b2d2d;
    --hc-rech-rouge-fonce: #6e2222;
    --hc-rech-rose: #f7eded;
    --hc-rech-texte: #404040;
    --hc-rech-gris: #6b6b6b;
    --hc-rech-trait: #e6dcdc;
    --hc-rech-coins: 20px 50px;
    --hc-rech-coins-photo: 16px 46px;
    color: var(--hc-rech-texte);
}

.hc-rech *,
.hc-rech *::before,
.hc-rech *::after { box-sizing: border-box; }

.hc-rech .screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}

/* ── La page : filtres à gauche, profils à droite ─────────────────────────── */

.hc-rech--page {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 32px;
    align-items: start;
}

/* ── Les champs, communs aux deux formulaires ─────────────────────────────── */

.hc-rech-form {
    background: #fff;
    border-radius: var(--hc-rech-coins);
    box-shadow: 0 3px 9px -6px var(--hc-rech-rouge);
}

.hc-rech-champ { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.hc-rech-champ > span { font-size: 14px; font-weight: 700; }
.hc-rech-champ em { font-style: normal; font-weight: 400; color: var(--hc-rech-gris); }

/*
 * Les champs. Divi pose sa propre règle sur input[type="text"] et select
 * (bordure grise, 2 px de marge intérieure), chargée après la nôtre : on la
 * passe en spécificité, et on écrit chaque propriété, pour que la commune,
 * les mots-clés et le département se ressemblent quoi que fasse le thème.
 */
.hc-rech .hc-rech-champ select,
.hc-rech .hc-rech-champ input[type="text"],
.hc-rech .hc-rech-champ input[type="search"] {
    display: block;
    width: 100%;
    height: 42px;
    margin: 0;
    padding: 0 12px;
    border: 1px solid var(--hc-rech-trait);
    border-radius: 10px;
    background-color: #fff;
    box-shadow: none;
    font: inherit;
    font-size: 14px;
    line-height: 40px;
    color: var(--hc-rech-texte);
    -webkit-appearance: none;
    appearance: none;
}
.hc-rech .hc-rech-champ input::placeholder { color: #9a9a9a; opacity: 1; }
/* La liste d'origine, remplacée par sa recherche (JS) : elle reste dans le formulaire, cachée. */
.hc-rech .hc-rech-champ select[hidden] { display: none; }
/* La liste : un chevron dessiné, le même que celui des tiroirs, plutôt que celui du système. */
.hc-rech .hc-rech-champ select {
    padding-right: 34px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23404040' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 13px center;
    background-size: 12px 8px;
    cursor: pointer;
}
.hc-rech .hc-rech-champ select:focus,
.hc-rech .hc-rech-champ input[type="text"]:focus,
.hc-rech .hc-rech-champ input[type="search"]:focus { outline: 2px solid var(--hc-rech-rouge); outline-offset: 1px; border-color: transparent; }
.hc-rech input[type="search"]::-webkit-search-decoration,
.hc-rech input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }

.hc-rech-bouton {
    min-height: 42px;
    padding: 0 24px;
    border: 0;
    border-radius: 999px;
    background: var(--hc-rech-rouge);
    color: #fff;
    font: inherit;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}
.hc-rech-bouton:hover,
.hc-rech-bouton:focus-visible { background: var(--hc-rech-rouge-fonce); }

.hc-rech-compte[hidden] { display: none; }
.hc-rech-compte {
    display: inline-block;
    min-width: 20px;
    padding: 0 6px;
    margin-left: 4px;
    border-radius: 999px;
    background: var(--hc-rech-rouge);
    color: #fff;
    font-size: 12px;
    line-height: 20px;
    text-align: center;
}

/* ── Le panneau des filtres ───────────────────────────────────────────────── */

.hc-rech-form--filtres {
    display: flex;
    flex-direction: column;
    gap: 26px;
    padding: 28px 20px 26px;
}

/* Les trois questions : un titre net, ce qu'on y répond juste dessous. */
.hc-rech-question { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.hc-rech .hc-rech-question-titre {
    display: block;
    margin: 0;
    padding: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--hc-rech-rouge);
}
.hc-rech-publics legend.hc-rech-question-titre { margin: 0 0 10px; }
.hc-rech-champ--ou { gap: 10px; }
.hc-rech-form--accueil .hc-rech-question-titre { font-size: 14px; color: inherit; letter-spacing: 0; }

/* « Plus de critères » : les filtres plus rares, repliés. */
.hc-rech-criteres { border-top: 1px solid var(--hc-rech-trait); margin-top: -6px; }
.hc-rech-criteres > summary {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 16px 22px 4px 0;
    position: relative;
    list-style: none;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}
.hc-rech-criteres > summary::-webkit-details-marker { display: none; }
.hc-rech-criteres > summary::after {
    content: "";
    position: absolute;
    right: 4px;
    top: calc(50% + 6px);
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-70%) rotate(45deg);
    transition: transform 0.15s;
}
.hc-rech-criteres[open] > summary::after { transform: translateY(-30%) rotate(-135deg); }
.hc-rech-criteres > summary:hover { color: var(--hc-rech-rouge); }
.hc-rech-criteres[open] > summary { padding-bottom: 8px; }
.hc-rech-criteres .hc-rech-tiroirs { padding-left: 2px; }
.hc-rech-criteres .hc-rech-tiroir:last-child { border-bottom: 0; }
.hc-rech-criteres .hc-rech-tiroir > summary { font-weight: 600; }

.hc-rech-tiroirs { border-top: 1px solid var(--hc-rech-trait); }
.hc-rech-tiroir { border-bottom: 1px solid var(--hc-rech-trait); }
.hc-rech-tiroir > summary {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 12px 22px 12px 0;
    position: relative;
    list-style: none;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}
.hc-rech-tiroir > summary::-webkit-details-marker { display: none; }
.hc-rech-tiroir > summary::after {
    content: "";
    position: absolute;
    right: 4px;
    top: 50%;
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-70%) rotate(45deg);
    transition: transform 0.15s;
}
.hc-rech-tiroir[open] > summary::after { transform: translateY(-30%) rotate(-135deg); }
.hc-rech-tiroir > summary:hover { color: var(--hc-rech-rouge); }

.hc-rech-groupe { border: 0; margin: 0; padding: 0 0 12px; min-width: 0; }
.hc-rech-groupe label { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; margin: 0 0 7px; line-height: 1.35; cursor: pointer; }
.hc-rech-groupe input { margin-top: 2px; accent-color: var(--hc-rech-rouge); }

.hc-rech-form--filtres .hc-rech-bouton { width: 100%; margin-top: -6px; }
/* La liste suit chaque changement (le script le dit) : sur ordinateur, plus besoin du bouton. */
@media (min-width: 981px) {
    .hc-rech-form--vivant .hc-rech-bouton { display: none; }
}
.hc-rech-effacer {
    align-self: center;
    padding: 4px 20px;
    border-radius: 999px;
    border: 1px solid var(--hc-rech-rouge);
    color: var(--hc-rech-rouge);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}
.hc-rech-effacer:hover { background: var(--hc-rech-rouge); color: #fff; }

/* ── « Pour qui ? » : des pastilles à cocher ───────────────────────────────── */

.hc-rech-publics { border: 0; margin: 0; padding: 0; min-width: 0; }
.hc-rech-publics legend { font-size: 14px; font-weight: 700; margin: 0 0 8px; padding: 0; }
.hc-rech-publics-choix { display: flex; flex-wrap: wrap; gap: 6px; }
.hc-rech-public { position: relative; margin: 0; cursor: pointer; }
.hc-rech-public input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.hc-rech-public span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border: 1px solid var(--hc-rech-trait);
    border-radius: 999px;
    background: #fff;
    font-size: 13px;
    line-height: 1.35;
    transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.hc-rech-public:hover span { border-color: var(--hc-rech-rouge); }
.hc-rech-public input:checked + span { background: var(--hc-rech-rouge); border-color: var(--hc-rech-rouge); color: #fff; }
.hc-rech-public input:focus-visible + span { outline: 2px solid var(--hc-rech-rouge); outline-offset: 2px; }
.hc-rech-public .hc-rech-icone { width: 15px; height: 15px; }

/* ── Le département : une liste où l'on cherche (assets/recherche.js) ─────── */

.hc-rech-choix { position: relative; z-index: 30; }
.hc-rech .hc-rech-choix-saisie {
    display: block;
    width: 100%;
    height: 42px;
    margin: 0;
    padding: 0 34px 0 12px;
    border: 1px solid var(--hc-rech-trait);
    border-radius: 10px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23404040' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 13px center / 12px 8px;
    box-shadow: none;
    font: inherit;
    font-size: 14px;
    line-height: 40px;
    color: var(--hc-rech-texte);
    text-overflow: ellipsis;
}
.hc-rech .hc-rech-choix-saisie::placeholder { color: var(--hc-rech-texte); opacity: 1; }
.hc-rech .hc-rech-choix-saisie:focus { outline: 2px solid var(--hc-rech-rouge); outline-offset: 1px; border-color: transparent; }
.hc-rech .hc-rech-choix-saisie:focus::placeholder { color: #9a9a9a; }
/* Divi met des puces, un retrait et un interligne de 26 px à toutes les listes du contenu : on les reprend. */
.hc-rech ul.hc-rech-choix-liste {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 20;
    max-height: 280px;
    margin: 0;
    padding: 6px;
    overflow-y: auto;
    list-style: none !important;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14), 0 0 0 1px var(--hc-rech-trait);
}
.hc-rech ul.hc-rech-choix-liste > li {
    display: block;
    margin: 0;
    padding: 8px 10px;
    list-style: none !important;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.35;
    text-align: left;
    cursor: pointer;
}
.hc-rech ul.hc-rech-choix-liste > li::before,
.hc-rech ul.hc-rech-choix-liste > li::marker { content: none; }
.hc-rech ul.hc-rech-choix-liste > li:hover,
.hc-rech ul.hc-rech-choix-liste > li.hc-rech-choix-actif { background: var(--hc-rech-rose); color: var(--hc-rech-rouge-fonce); }
.hc-rech ul.hc-rech-choix-liste > li[aria-selected="true"] { font-weight: 700; }
.hc-rech ul.hc-rech-choix-liste > li.hc-rech-choix-vide { color: var(--hc-rech-gris); cursor: default; background: none; }

/* ── Les mots-clés en étiquettes ────────────────────────────────────────────── */

.hc-rech-champ--cles > label { font-size: 14px; font-weight: 700; margin: 0; }
.hc-rech-cles { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.hc-rech-cles:empty { display: none; }
.hc-rech-cle {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 3px 4px 3px 10px;
    border-radius: 999px;
    background: var(--hc-rech-rose);
    color: var(--hc-rech-rouge-fonce);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}
.hc-rech-croix { display: block; }
.hc-rech .hc-rech-cle-retirer {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
}
.hc-rech .hc-rech-cle-retirer:hover,
.hc-rech .hc-rech-cle-retirer:focus-visible { background: var(--hc-rech-rouge); color: #fff; outline: none; }
.hc-rech .hc-rech-aide { font-size: 12px; font-weight: 400; color: var(--hc-rech-gris); }

/* Sur la carte : ce que la fiche a, et ce qui lui manque. */
.hc-rech-cles-trouvees { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 8px 0 0; padding: 0; font-size: 13px; line-height: 1.35; }
.hc-rech-cle-trouvee { display: inline-flex; align-items: center; gap: 3px; }
.hc-rech-cle-trouvee .hc-rech-icone { width: 14px; height: 14px; flex: none; }
.hc-rech-cle-trouvee--oui { color: #2f6b45; }
.hc-rech-cle-trouvee--non { color: #9a9a9a; text-decoration: line-through; }

/* ── Le formulaire de l'accueil : une ligne ───────────────────────────────── */

/* Sur l'accueil, des coins réguliers : les coins irréguliers de la charte vont aux cartes, pas à ce bandeau. */
.hc-rech-form--accueil { padding: 20px; border-radius: 20px; }
/* Au-dessus des sections Divi qui suivent : la liste des départements déborde du formulaire. */
.hc-rech--accueil { position: relative; z-index: 50; }
/* Une ligne : les champs, puis le bouton, à droite, aligné sur eux. */
.hc-rech-ligne {
    display: grid;
    grid-template-columns: repeat(var(--hc-rech-champs, 4), minmax(0, 1fr)) auto;
    gap: 14px;
    align-items: end;
}

/* ── Les filtres actifs, la synthèse, les pistes ──────────────────────────── */

.hc-rech-actifs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 12px; }
.hc-rech .hc-rech-actif,
.hc-rech .hc-rech-piste {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 6px 4px 12px;
    border-radius: 999px;
    background: #fff;
    box-shadow: inset 0 0 0 1px var(--hc-rech-trait);
    color: var(--hc-rech-texte);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    text-decoration: none;
}
.hc-rech-actif-croix {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    color: var(--hc-rech-rouge);
    font-size: 15px;
    line-height: 1;
}
.hc-rech .hc-rech-actif:hover,
.hc-rech .hc-rech-actif:focus-visible { box-shadow: inset 0 0 0 1px var(--hc-rech-rouge); }
.hc-rech .hc-rech-actif:hover .hc-rech-actif-croix { background: var(--hc-rech-rouge); color: #fff; }
.hc-rech .hc-rech-actif-tout { margin-left: 4px; font-size: 13px; color: var(--hc-rech-gris); }

.hc-rech .hc-rech-resultats p.hc-rech-synthese { margin: 0 0 20px; padding: 0; font-size: 15px; color: var(--hc-rech-gris); }

.hc-rech-pistes { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -8px 0 24px; }
.hc-rech-pistes-titre { font-size: 14px; font-weight: 700; margin-right: 2px; }
.hc-rech .hc-rech-piste { padding: 6px 12px; color: var(--hc-rech-rouge-fonce); background: var(--hc-rech-rose); box-shadow: none; }
.hc-rech .hc-rech-piste:hover { background: var(--hc-rech-rouge); color: #fff; }
.hc-rech .hc-rech-piste:hover .hc-rech-piste-nombre { color: #fff; }
.hc-rech-piste-nombre { font-weight: 400; color: var(--hc-rech-gris); }

/* ── « Voir les N autres » ───────────────────────────────────────────────── */

.hc-rech .hc-rech-resultats p.hc-rech-plus { margin: 26px 0 0; padding: 0; text-align: center; }
.hc-rech .hc-rech-bouton--clair {
    display: inline-flex;
    align-items: center;
    background: #fff;
    color: var(--hc-rech-rouge);
    box-shadow: inset 0 0 0 1.5px var(--hc-rech-rouge);
    text-decoration: none;
}
.hc-rech .hc-rech-bouton--clair:hover { background: var(--hc-rech-rouge); color: #fff; }

/* ── Les résultats ────────────────────────────────────────────────────────── */

.hc-rech-resultats { min-width: 0; }
.hc-rech-section { margin-bottom: 40px; }
.hc-rech-section:last-child { margin-bottom: 0; }

.hc-rech-titre {
    margin: 0 0 18px;
    padding: 0;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--hc-rech-rouge);
}
.hc-rech-nombre,
.hc-rech-depuis { margin-left: 6px; font-size: 15px; font-weight: 400; color: var(--hc-rech-gris); }

/* Divi retire la marge du bas du dernier paragraphe (p:last-of-type) : on la lui reprend. */
.hc-rech .hc-rech-resultats p.hc-rech-avis {
    margin: 0 0 24px;
    padding: 14px 18px;
    line-height: 1.5;
    background: #fff;
    border-left: 4px solid var(--hc-rech-rouge);
    border-radius: 10px;
    font-size: 15px;
}
.hc-rech .hc-rech-resultats p.hc-rech-avis a { color: var(--hc-rech-rouge); font-weight: 600; }

.hc-rech-grille {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}

/* ── Une carte ────────────────────────────────────────────────────────────── */

.hc-rech-carte {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: var(--hc-rech-coins);
    box-shadow: 0 0 9px -1px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    /* Le retour à plat, en douceur, quand la souris s'en va. */
    transition: box-shadow 0.2s, transform 0.45s ease;
}
.hc-rech-carte:hover,
.hc-rech-carte:focus-within { box-shadow: 0 6px 18px -4px rgba(139, 45, 45, 0.4); }
/* L'inclinaison au survol (assets/recherche.js) : elle suit la souris de près. */
.hc-rech-carte--incline { transition: box-shadow 0.2s, transform 0.08s linear; will-change: transform; }

/* Les photos sont carrées : on les montre carrées, en entier. Les coins sont
   sur l'image (pas de overflow: hidden sur le cadre), pour que la bulle d'une
   icône puisse déborder de la photo. */
.hc-rech-photo {
    position: relative;
    margin: 6px 6px 0;
    aspect-ratio: 1 / 1;
    border-radius: var(--hc-rech-coins-photo);
    background: var(--hc-rech-rose);
}
.hc-rech-photo img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: var(--hc-rech-coins-photo); }
.hc-rech-initiales {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 52px;
    font-weight: 700;
    color: var(--hc-rech-rouge);
}

.hc-rech-corps { display: flex; flex-direction: column; flex: 1; padding: 14px 16px 16px; }

.hc-rech-nom { margin: 0 0 8px; padding: 0; font-size: 21px; font-weight: 700; line-height: 1.15; letter-spacing: -0.03em; }
.hc-rech-nom a { color: var(--hc-rech-rouge); text-decoration: none; }
/* Le lien du nom couvre toute la carte. */
.hc-rech-nom a::after { content: ""; position: absolute; inset: 0; border-radius: var(--hc-rech-coins); }
.hc-rech-nom a:focus-visible { outline: none; }
.hc-rech-nom a:focus-visible::after { outline: 2px solid var(--hc-rech-rouge); outline-offset: 3px; }

.hc-rech-profession { margin: 0; padding: 0; font-size: 14px; font-weight: 600; line-height: 1.3; color: var(--hc-rech-texte); }

/*
 * Les lieux d'exercice, posés dans la photo en bas à gauche : de petits
 * disques blancs, sans contour, l'icône seule en rouge. Discrets au repos —
 * la photo doit passer d'abord —, nets et sur fond blanc plein quand on
 * survole la carte. Le libellé
 * vit dans une bulle au survol de l'icône. Elles passent au-dessus du lien
 * qui couvre la carte, sinon le survol ne les atteindrait jamais ; un clic
 * dessus suit ce lien (JS).
 */
.hc-rech-lieux {
    position: absolute;
    left: 16px;
    bottom: 14px;
    z-index: 1;
    display: flex;
    gap: 4px;
    margin: 0;
    padding: 0;
    opacity: 0.8;
    transition: opacity 0.2s;
}
.hc-rech-carte:hover .hc-rech-lieux { opacity: 1; }
.hc-rech-lieu {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.86);
    color: var(--hc-rech-rouge);
    cursor: pointer;
    transition: background-color 0.2s;
}
/* Au survol de la carte, les disques passent au blanc plein. */
.hc-rech-carte:hover .hc-rech-lieu { background: #fff; }
.hc-rech-lieu .hc-rech-icone { width: 14px; height: 14px; }
/* Trop loin pour ce visiteur : l'icône en gris, la visio seule reste rouge. */
.hc-rech-lieu--muet { color: #9a9a9a; background: rgba(255, 255, 255, 0.7); }

.hc-rech-bulle {
    position: absolute;
    bottom: calc(100% + 8px);
    left: -4px; /* ancrée à gauche de l'icône : elle ne sort jamais de l'écran par la gauche */
    z-index: 2;
    width: max-content;
    max-width: 200px;
    padding: 6px 10px;
    border-radius: 8px;
    background: #2c2c2c;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
    text-align: center;
    white-space: normal;
    pointer-events: none;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.15s, transform 0.15s;
}
.hc-rech-bulle::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 14px;
    border: 5px solid transparent;
    border-top-color: #2c2c2c;
}
.hc-rech-lieu:hover .hc-rech-bulle { opacity: 1; transform: translateY(0); }

.hc-rech-pourquoi { display: flex; gap: 5px; align-items: flex-start; margin: 8px 0 0; padding: 0; font-size: 13px; line-height: 1.35; color: #2f6b45; }
.hc-rech-pourquoi .hc-rech-icone { flex: none; width: 14px; height: 14px; margin-top: 1px; }

.hc-rech-pied { margin-top: auto; padding-top: 14px; text-align: right; }
.hc-rech-distance {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 4px;
    margin: 0 0 4px;
    padding: 0;
    font-size: 13px;
    line-height: 1.35;
    color: #2f6b45;
}
.hc-rech-distance .hc-rech-icone { flex: none; width: 14px; height: 14px; }
.hc-rech-departements {
    margin: 0;
    padding: 0;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.3;
    color: #2c2c2c;
}

/* ── L'arrivée des cartes, l'une après l'autre ──────────────────────────────── */

/* « backwards » et non « both » : l'animation finie, elle rend la main à l'inclinaison. */
.hc-rech-carte { animation: hc-rech-arrivee 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) backwards; animation-delay: calc(var(--hc-rech-rang, 0) * 90ms); }
@keyframes hc-rech-arrivee {
    from { opacity: 0; transform: translateY(18px); }
}
/* Les cartes qui attendent « Voir les N autres » : notre display: flex passerait devant [hidden]. */
.hc-rech .hc-rech-carte[hidden] { display: none; }

/* ── Le chargement : des cartes fantômes, à la forme des vraies ────────────── */

.hc-rech-carte--fantome { cursor: default; animation: none; box-shadow: 0 0 9px -1px rgba(0, 0, 0, 0.15); }
.hc-rech-carte--fantome .hc-rech-photo,
.hc-rech-trait {
    background: linear-gradient(90deg, #f3ebeb 0%, #fbf7f7 45%, #f3ebeb 90%);
    background-size: 220% 100%;
    animation: hc-rech-reflet 1.3s ease-in-out infinite;
}
.hc-rech-trait { display: block; height: 12px; width: 70%; margin: 0 0 10px; border-radius: 6px; }
.hc-rech-trait--nom { height: 20px; width: 80%; margin-bottom: 12px; }
.hc-rech-trait--court { width: 45%; margin: auto 0 0 auto; }
.hc-rech-trait--titre { height: 22px; width: 260px; max-width: 60%; margin-bottom: 18px; }
@keyframes hc-rech-reflet {
    from { background-position: 100% 0; }
    to { background-position: -120% 0; }
}
.hc-rech-resultats[aria-busy="true"] { min-height: 420px; }

@media (prefers-reduced-motion: reduce) {
    .hc-rech-carte { animation: none; }
    .hc-rech-carte--fantome .hc-rech-photo,
    .hc-rech-trait { animation: none; }
}

/* ── Ordinateur : le panneau suit le défilement ──────────────────────────── */

@media (min-width: 981px) {
    /* Sous l'en-tête de Divi, seulement quand il tient dans l'écran (le script en juge) : sinon il
       défile avec la page, sans barre de défilement à lui. */
    .hc-rech-filtres--collant { position: sticky; top: 110px; }
}

/* ── Téléphone et tablette : le panneau replié derrière « Filtres » (JS) ── */

.hc-rech .hc-rech-ouvrir {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 46px;
    border: 0;
    border-radius: 999px;
    background: var(--hc-rech-rouge);
    color: #fff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}
.hc-rech .hc-rech-ouvrir .hc-rech-compte { background: #fff; color: var(--hc-rech-rouge); margin: 0; }
.hc-rech .hc-rech-ouvrir .hc-rech-compte[hidden] { display: none; }
.hc-rech--repliable .hc-rech-ouvrir { display: inline-flex; }
.hc-rech--repliable:not(.hc-rech--ouvert) .hc-rech-filtres { display: none; }

/* ── Tablette : les filtres passent au-dessus ─────────────────────────────── */

@media (max-width: 980px) {
    .hc-rech-ligne { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hc-rech-ligne > .hc-rech-bouton { grid-column: 1 / -1; }
    .hc-rech--page { grid-template-columns: 1fr; gap: 24px; }
    .hc-rech-form--filtres { padding: 24px 20px; }
    .hc-rech-tiroirs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; align-items: start; }
    .hc-rech-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ── Téléphone ────────────────────────────────────────────────────────────── */

@media (max-width: 600px) {
    .hc-rech-ligne { grid-template-columns: 1fr; }
    .hc-rech-form--filtres { grid-template-columns: 1fr; }
    .hc-rech-tiroirs { grid-template-columns: 1fr; }
    .hc-rech-grille { grid-template-columns: minmax(0, 340px); justify-content: center; gap: 20px; }
    .hc-rech-titre { font-size: 20px; }
}
