/* Onglet Photos des fiches entreprises */
body.jb-fiche #photos .jb-galerie-publique {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(10px, 1.5vw, 20px);
    margin: 0;
    padding: 0;
    list-style: none;
}
body.jb-fiche #photos .jb-galerie-publique > li {
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    min-width: 0;
}
body.jb-fiche #photos .jb-galerie-publique figure {
    position: relative;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    margin: 0;
    border: 1px solid #dce4ed;
    border-radius: 12px;
    background: white;
}
body.jb-fiche #photos .jb-galerie-publique figure picture,
body.jb-fiche #photos .jb-galerie-publique figure img {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: contain;
    object-position: center;
}
body.jb-fiche #photos .jb-galerie-publique figure figcaption {
    inset: 0;
    width: 100%;
    height: 100%;
    transform: none;
    visibility: visible;
    opacity: 1;
    background: transparent;
    border-radius: inherit;
}
body.jb-fiche #photos .jb-galerie-publique figcaption a {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
}
body.jb-fiche #photos .jb-galerie-publique figcaption i { opacity: 0; }
body.jb-fiche #photos .jb-galerie-publique figure:hover figcaption i,
body.jb-fiche #photos .jb-galerie-publique figure:focus-within figcaption i { opacity: 1; }
body.jb-fiche #photos .jb-galerie-publique figure:focus-within {
    outline: 3px solid #087f82;
    outline-offset: -3px;
}
@media (max-width: 900px) {
    body.jb-fiche #photos .jb-galerie-publique { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    body.jb-fiche #photos .jb-galerie-publique { grid-template-columns: minmax(0, 1fr); }
}

/* Aperçu de l’onglet Vidéos des fiches entreprises */
body.jb-fiche #video .jb-video-publique {
    width: 100%;
    max-width: 640px;
    margin-inline: auto;
}
body.jb-fiche #video .jb-video-publique .video__wrapper {
    display: block;
    position: relative;
    width: 100%;
    min-height: 0;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 12px;
    background: #fff;
}
body.jb-fiche #video .jb-video-publique .video__wrapper picture,
body.jb-fiche #video .jb-video-publique .video__wrapper img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* En-tête et informations de la fiche entreprise */
.jb-fiche .listing-details-wrapper .bg_author_agency.listing-gradient {background:#fff!important; color:#172b50}
.jb-fiche .bg_author_agency .directorist-listing-single-quickinfo,
.jb-fiche .bg_author_agency .directorist-listing-single-quickinfo a {color:#283a69}
.jb-fiche .bg_author_agency, .jb-fiche .auther_agency_main {min-height:0; padding-block:12px}
.jb-fiche .listing-details-wrapper .jb-entete {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px 18px;
    text-align: start;
    font-family: "Poppins", Arial, sans-serif;
}
.jb-fiche .jb-entete:has(> .jb-logo) { grid-template-columns: auto minmax(0, 1fr) auto; }
.jb-fiche .jb-identite { min-width: 0; }
.jb-fiche .jb-logo {
    box-sizing: border-box;
    width: clamp(72px, 9vw, 128px);
    height: clamp(72px, 9vw, 128px);
    padding: 4px;
    object-fit: contain;
    border: 1px solid #dce4ed;
    border-radius: 12px;
    background: white;
}
.jb-fiche .jb-logo + .jb-identite { padding-inline-start: 18px; border-inline-start: 1px solid #dbe3ed; }
.jb-fiche .jb-entete .jb-identite > h3 {
    display: inline;
    vertical-align: middle;
    margin: 0;
    color: #172b50 !important;
    font: 750 clamp(24px, 2.4vw, 36px)/1.12 "Poppins", Arial, sans-serif;
    text-transform: none;
    overflow-wrap: anywhere;
}
.jb-fiche .jb-identite > :is(.jb-membre, .jb-nouveau, .jb-populaire) {
    display: inline-block;
    vertical-align: middle;
    margin-inline-start: clamp(8px, 1.6vw, 24px);
    padding: 4px 9px;
    border-radius: 6px;
    font: 700 12px/1.4 "Poppins", Arial, sans-serif;
    max-width: 100%;
}
.jb-fiche .jb-membre { background:#c9efeb; color:#07545b; }
.jb-fiche .jb-nouveau { background:#fff4c7; color:#604810; }
.jb-fiche .jb-populaire { background:#fce4ec; color:#8b214d; }
.jb-fiche .jb-sous-titre {
    margin-block-start: 6px;
    color: #283a69;
    font: 400 15px/1.45 "Poppins", Arial, sans-serif;
    overflow-wrap: anywhere;
}
.jb-fiche .jb-sous-titre > .directorist-info-item,
.jb-fiche .jb-sous-titre a { display: inline; padding: 0; margin: 0; color: inherit; font: inherit; }
.jb-fiche .jb-sous-titre .directorist-icon-mask { display: none; }
.jb-fiche .jb-sous-titre > .directorist-info-item::after { content: none; }
.jb-fiche .jb-sous-titre > .directorist-info-item + .directorist-info-item::before { content: " · "; }
.jb-fiche .jb-sous-titre a:is(:focus-visible, :hover) { text-decoration: underline; }
@media (max-width: 1050px) {
    .jb-fiche .listing-details-wrapper .jb-entete { grid-template-columns: minmax(0, 1fr); }
    .jb-fiche .jb-entete:has(> .jb-logo) { grid-template-columns: auto minmax(0, 1fr); }
    .jb-fiche .jb-entete .jb-boutons { grid-column: 1 / -1; }
}
@media (max-width: 540px) {
    .jb-fiche .listing-details-wrapper .jb-entete { column-gap: 10px; }
    .jb-fiche .jb-logo + .jb-identite { padding-inline-start: 10px; }
}
.jb-fiche .jb-boutons {display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.jb-fiche .jb-boutons a,.jb-fiche .jb-boutons button {font-family:inherit;font-size:15px;line-height:1.35;font-weight:650;border:1px solid #283a69;border-radius:8px;padding:9px 14px;background:#283a69;color:#fff;cursor:pointer}
.jb-fiche .jb-boutons .jb-secondaire {background:#fff;color:#283a69}
.jb-fiche .jb-intro {display:grid;gap:18px;margin:10px 0 18px;color:#172b50}
.jb-fiche .jb-bande-photos {display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:10px}
.jb-fiche .jb-bande-photos img {width:100%;height:clamp(140px,19vw,315px);object-fit:contain;background:#f5f8fb;border-radius:12px}
.jb-fiche .jb-resume {display:grid;grid-template-columns:minmax(0,1.9fr) minmax(0,1fr);gap:18px}
.jb-fiche .jb-resume > :only-child {grid-column:1/-1}
.jb-fiche .jb-infos,.jb-fiche .jb-promo,.jb-fiche .jb-cadre {border:1px solid #dce4ed;border-radius:16px;padding:clamp(16px,2vw,28px);min-width:0;margin:0}
.jb-fiche .jb-cadre h2 {display:flex;align-items:center;gap:12px;margin:0 0 12px;color:#283a69;font-size:clamp(20px,2vw,25px)}
.jb-fiche .jb-cadre h2::before {content:"";width:32px;height:4px;border-radius:3px;background:#19b7a5}
.jb-fiche .jb-promo {background:#d7f3ef;display:grid;gap:18px;align-items:center}
.jb-fiche .jb-promo:has(> img) {grid-template-columns:minmax(0,1.6fr) minmax(0,1fr)}
.jb-fiche .jb-promo strong {color:#06636b}
.jb-fiche .jb-promo h2 {font-size:clamp(24px,2.6vw,36px);color:#283a69;margin:8px 0}
.jb-fiche .jb-promo p {margin:6px 0}
.jb-fiche .jb-promo img {width:100%;height:auto;max-height:260px;object-fit:contain}
.jb-fiche .jb-cadre {margin-block:0 16px;background:white}
.jb-fiche .jb-cadre.jb-entreprise { background:#fff7e9; border-color:#efe1c8; }
.jb-fiche .jb-cadre.jb-infos {
    background:#fff; border-color:#dfe4ea; color:#172b50;
    padding:clamp(18px,2vw,26px); font:14px/1.45 system-ui,sans-serif; overflow-wrap:anywhere;
}
.jb-fiche .jb-infos h2 { margin-bottom:14px; font:800 22px/1.45 system-ui,sans-serif; }
.jb-fiche .jb-infos h2::before { width:clamp(24px,4vw,48px); flex-shrink:0; }
.jb-fiche .jb-adresse-titre, .jb-fiche .jb-infos summary { font:700 14px/1.45 system-ui,sans-serif; }
.jb-fiche .jb-infos .jb-adresse-valeur { margin:3px 0 0; font:inherit; color:inherit; }
.jb-fiche .jb-adresse-valeur + details { border-top:1px solid #dfe4ea; margin-top:12px; padding-top:10px; }
.jb-fiche .jb-infos summary { list-style:none; cursor:pointer; }
.jb-fiche .jb-infos summary::-webkit-details-marker { display:none; }
.jb-fiche .jb-adresse-titre::before, .jb-fiche .jb-infos summary::before {
    content:""; display:inline-block; width:16px; height:16px; vertical-align:-3px;
    margin-inline-end:9px; background:#087f82; mask:var(--jb-icone) center / contain no-repeat;
}
.jb-fiche .jb-adresse-titre { --jb-icone:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M12 1a8 8 0 0 0-8 8c0 6 8 14 8 14s8-8 8-14a8 8 0 0 0-8-8zm0 4a4 4 0 1 1 0 8 4 4 0 1 1 0-8z'/%3E%3C/svg%3E"); }
.jb-fiche .jb-infos summary { --jb-icone:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 5v7l4 3'/%3E%3C/svg%3E"); }
.jb-fiche .jb-infos .directorist-bh-schedule,
.jb-fiche .jb-infos .directorist-bh-schedule ul { margin:0; padding:0; font:inherit; list-style:none; }
.jb-fiche .jb-infos .directorist-bh-schedule__item { display:block; margin:3px 0 5px; padding:0; border:0; background:none; }
.jb-fiche .jb-infos .directorist-bh-schedule__item span,
.jb-fiche .jb-infos .directorist-bh-schedule__item .directorist-time-single {
    font:inherit !important; color:inherit !important; background:none;
}
.jb-fiche .jb-infos .directorist-bh-schedule__day::after { content:" · "; }
.jb-fiche .jb-infos .directorist-bh-schedule__time,
.jb-fiche .jb-infos .directorist-time-single,
.jb-fiche .jb-infos .directorist-bh-schedule__item__badge {
    display:inline; padding:0; height:auto; border:0; min-width:0;
}
.jb-fiche .jb-infos .directorist-time-single + .directorist-time-single::before { content:" / "; }
.jb-fiche .jb-infos .directorist-bh-schedule__day__badge,
.jb-fiche .jb-infos .directorist-bh-schedule__item--today::after { display:none; }
.jb-fiche .directorist-row > :is(.jb-col-presentation,.jb-col-infos) > .jb-cadre { margin:0; }
.jb-fiche :is(.jb-contact,.jb-entreprise) + .directorist-widget { margin-block-start: 16px; }
.jb-fiche .jb-entreprise .jb-champ-entreprise {
    display: block;
    margin: 0 0 14px;
    overflow-wrap: anywhere;
}
.jb-fiche .jb-entreprise .jb-activite:has(+ .jb-immatriculation) { margin-bottom: 5px; }
.jb-fiche .jb-entreprise .jb-champ-entreprise:last-child { margin-bottom:0; }
.jb-fiche .jb-champ-entreprise > :is(.directorist-single-info__label, .directorist-single-info__value) {
    display: inline;
    padding: 0;
    margin: 0;
}
.jb-fiche .jb-champ-entreprise .directorist-single-info__label-icon { display:none; }
.jb-fiche .jb-champ-entreprise .directorist-single-info__label__text { font-weight:650; }
.jb-fiche .jb-cadre.jb-contact {background:#f3f0fa;border-color:#ded8ec}
.jb-fiche-simple .jb-contact .directorist-social-links a {
    width:auto; height:auto; min-height:36px; padding:6px 12px; gap:6px;
    border-radius:8px; background:#fff; color:#283a69; font-weight:600;
}
.jb-fiche-simple .jb-contact .directorist-social-links a:hover,
.jb-fiche-simple .jb-contact .directorist-social-links a:focus-visible { color:#fff; background:#283a69; }
.jb-fiche-simple .jb-contact .directorist-social-links a .directorist-icon-mask::after { background-color:currentColor; }
.jb-fiche .jb-cadre.jb-video {background:#f0f6fa}
.jb-fiche .jb-cadre.jb-video iframe {display:block;width:min(100%,640px);height:auto;aspect-ratio:16/9;border:0;margin-inline:auto}
.jb-fiche .directorist-related-listing {border-radius:14px;background:#283a69;padding:clamp(16px,2vw,28px)}
.jb-fiche .directorist-related-listing-header__title {color:white}
.jb-fiche .directorist-related-listing .directorist-listing-single {background:white}
.jb-fiche .jb-liens-natifs {margin:0}
@media(max-width:720px){
    .jb-fiche .jb-resume,.jb-fiche .jb-promo:has(> img) {grid-template-columns:1fr}
    .jb-fiche .jb-boutons {width:100%}
}

.jb-fiche .jb-promo-contenu { min-width:0 }
.jb-fiche .jb-intro:empty { display:none }

.jb-fiche .auther_agency_main .jb-large,.jb-fiche .jb-liees {flex:0 0 100%;width:100%;max-width:100%}
.jb-fiche .jb-liees {margin-block-start:18px}

/* Fiches sans offre membre : les horaires et l’adresse restent dans la description. */
.jb-fiche .listing-details-wrapper .jb-doublon,
.jb-fiche .listing-details-wrapper .directorist-info-item-badges:has(> .jb-doublon):not(:has(> :not(.jb-doublon))),
.jb-fiche-simple .jb-doublon,
.jb-fiche-simple .directorist-listing-actions:not(:has(> :not(.jb-doublon))),
.jb-fiche-simple .directorist-info-item-badges:not(:has(> :not(.jb-doublon))),
.jb-fiche-simple .edit-back-btn:not(:has(a, button, input, form)),
.jb-fiche-simple .jb-contact .directorist-single-info__label-icon:empty {
    display: none !important;
}


.jb-fiche-simple .jb-liens-natifs .directorist-single-listing-action { text-transform: none; }
body.jb-fiche-simple:has(.directorist-single-list-ad-before-header img) .listing-details-wrapper.style_2 {
    margin-top: 0 !important;
}
body.jb-fiche-simple:has(.directorist-single-list-ad-before-header img) .listing-details-wrapper .bg_author_agency {
    min-height: 0;
    padding-top: clamp(12px, 2vw, 24px) !important;
}
.jb-fiche-simple .listing-details-wrapper .edit-back-btn:not(:has(a,button,input,[role="button"])) { display:none; }
.jb-fiche-simple .listing-details-wrapper .bg_author_agency { padding-block:14px !important; }
.jb-fiche-simple .listing-details-wrapper .auther_agency_main { padding-block:0; }
.jb-fiche-simple .listing-details-wrapper .author-agency { padding:clamp(14px,2vw,25px); }
.jb-fiche-simple .jb-identite { min-width:0; }
