/* 12/11 : blog. Appels à l'action façon magazine K3 (carte au milieu, bandeau noir en fin d'article),
   bloc « Qui vous reçoit » en tête d'article, photos du cabinet dans le texte. Propriétés logiques (arabe). */

/* Boutons communs */
.bl-cta-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:0 20px;border-radius:999px;border:1px solid transparent;font:500 14px/1 'Poppins',Arial,sans-serif;text-decoration:none;white-space:nowrap;transition:background .2s,border-color .2s,color .2s}
.bl-cta-btn svg{width:17px;height:17px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
.bl-cta-btn.is-wa svg{fill:#25d366;stroke:none}
.bl-cta-btn.is-dark{background:#111;color:#fff;border-color:#111}
.bl-cta-btn.is-dark:hover{background:#333}
.bl-cta-btn.is-wa{background:#fff;color:#111;border-color:#d9d9d9}
.bl-cta-btn.is-wa:hover{border-color:#111}
.bl-cta-btn.is-light{background:#fff;color:#111;border-color:#fff}
.bl-cta-btn.is-light:hover{background:#ececec}
.bl-cta-btn.is-ghost{background:transparent;color:#fff;border-color:rgba(255,255,255,.45)}
.bl-cta-btn.is-ghost:hover{border-color:#fff}
.bl-cta-btn.is-ghost svg{fill:currentColor;stroke:none}
.bl-cta-btn.is-ghost-dark{background:#fff;color:#111;border-color:#d9d9d9}
.bl-cta-btn.is-ghost-dark:hover{border-color:#111}
.bl-cta-btn:focus-visible{outline:2px solid #111;outline-offset:3px}
.bl-ctab .bl-cta-btn:focus-visible{outline-color:#fff}

/* Carte au milieu de l'article */
.bl-cta{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px 24px;margin:34px 0;padding:22px 24px;background:#fff;border:1px solid #e6e6e6;border-radius:18px;box-shadow:var(--card-shadow,0 10px 30px -18px rgba(0,0,0,.35))}
.bl-cta-copy{flex:1 1 320px;min-width:0}
.bl-cta-kicker{margin:0 0 4px;font:600 18px/1.3 'Outfit',Arial,sans-serif;letter-spacing:-.01em;color:#111}
.bl-cta-text{margin:0;font-size:14px;line-height:1.55;color:#444}
.bl-cta-actions{display:flex;flex-wrap:wrap;gap:10px}

/* Bandeau de fin (photo réelle du cabinet en fond, assombrie) */
.bl-ctab{position:relative;overflow:hidden;margin:40px 0 8px;border-radius:22px;background:#0b0b0b;color:#fff;isolation:isolate}
.bl-ctab-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.32;z-index:-1}
.bl-ctab::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,rgba(0,0,0,.85),rgba(0,0,0,.45))}
html[dir="rtl"] .bl-ctab::after{background:linear-gradient(270deg,rgba(0,0,0,.85),rgba(0,0,0,.45))}
.bl-ctab-inner{padding:clamp(28px,4vw,48px) clamp(22px,4vw,48px);max-width:640px}
.bl-ctab-kicker{margin:0 0 8px;font-size:12px;letter-spacing:.18em;text-transform:uppercase;color:#d8d8d8}
html[dir="rtl"] .bl-ctab-kicker{letter-spacing:0}
.bl-ctab h2{margin:0 0 10px;color:#fff;font-size:clamp(24px,2.4vw,32px);line-height:1.15}
.bl-ctab-text{margin:0 0 20px;font-size:14.5px;line-height:1.6;color:#e6e6e6}
.bl-ctab-actions{display:flex;flex-wrap:wrap;gap:10px}

/* Photos dans le texte */
.bl-photo{margin:28px 0;border-radius:16px;overflow:hidden;background:#111}
.bl-photo img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover}
.bl-photo.is-generated img{aspect-ratio:3/2}
.bl-photo figcaption{padding:10px 14px;background:#fff;font-size:12.5px;color:#555;border:1px solid #ececec;border-top:0;border-radius:0 0 16px 16px}

/* « Qui vous reçoit » en tête d'article (styles du bloc dans service-doctor.css) */
.bl-doctor{padding-block:clamp(28px,4vw,48px) 0}
.bl-doctor .sv-doctor{grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr)}
.bl-doctor .about-copy h2{font-size:clamp(24px,2.4vw,32px)}
.bl-doctor-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:4px}

@media(max-width:1100px){.bl-doctor .sv-doctor{grid-template-columns:minmax(0,1fr)}.bl-doctor .about-visual{max-width:440px}}
@media(max-width:600px){
 .bl-cta{padding:18px 16px}
 .bl-cta-actions,.bl-ctab-actions,.bl-doctor-actions{width:100%}
 .bl-cta-actions .bl-cta-btn,.bl-ctab-actions .bl-cta-btn,.bl-doctor-actions .bl-cta-btn{flex:1 1 auto}
}
@media(prefers-reduced-motion:reduce){.bl-cta-btn{transition:none}}

/* 12/11 : la carte du milieu est dans le texte de l'article : les styles de lien du texte (couleur, soulignement)
   ne doivent pas s'appliquer aux boutons (texte noir sur fond noir signalé par Aymane). */
body:not(#_) a.bl-cta-btn{text-decoration:none;border-bottom-width:1px}
body:not(#_) a.bl-cta-btn.is-dark,body:not(#_) a.bl-cta-btn.is-dark:hover{color:#fff;background:#111;border-color:#111}
body:not(#_) a.bl-cta-btn.is-dark:hover{background:#333}
body:not(#_) a.bl-cta-btn.is-wa,body:not(#_) a.bl-cta-btn.is-ghost-dark{color:#111;background:#fff}
body:not(#_) a.bl-cta-btn.is-light{color:#111;background:#fff}
body:not(#_) a.bl-cta-btn.is-ghost{color:#fff;background:transparent}

/* 12/11 : un cas réel avant / après dans l'article (partials/blog-case.php). */
.bl-case{margin:30px 0;padding:12px;background:#fff;border:1px solid #ececec;border-radius:18px;box-shadow:var(--card-shadow,0 10px 30px -18px rgba(0,0,0,.35))}
.bl-case-ba{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.bl-case-ba div{position:relative;border-radius:10px;overflow:hidden;background:#111}
.bl-case-ba img{display:block;width:100%;height:auto}
.bl-case-ba span{position:absolute;top:10px;inset-inline-start:10px;padding:4px 9px;border-radius:999px;background:#111;color:#fff;font-size:11px;letter-spacing:.12em;text-transform:uppercase}
html[dir="rtl"] .bl-case-ba span{letter-spacing:0}
.bl-case .bl-case-cap{padding:12px 6px 4px;font-size:13px;line-height:1.5;color:#444}
.bl-case .bl-case-cap b{color:#111;font-weight:600}
body:not(#_) .bl-case .bl-case-cap a{color:#111;text-decoration:underline;text-underline-offset:3px}

/* 12/11 : « Sources et repères » en bas de page (après les articles liés). */
.bl-sources-end{padding-block:8px clamp(36px,5vw,64px);max-width:860px}
.bl-sources-end .bl-article-sources,.bl-sources-end .blb-sources{margin:0;padding-top:24px;border-top:1px solid #e6e6e6}

/* 12/11 : photos du cabinet en petit carrousel dans les articles (1,5 photo visible). */
.bl-cab-rail-wrap{margin:28px 0;position:relative}
body:not(#_) .bl-cab-rail{display:flex;gap:10px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;border-radius:16px}
.bl-cab-rail::-webkit-scrollbar{display:none}
.bl-cab-rail img{flex:0 0 calc((100% - 10px) / 1.5);height:340px;object-fit:cover;border-radius:16px;scroll-snap-align:start;background:#111}
.bl-cab-ctrl{justify-content:flex-end;margin-top:10px}
@media(max-width:640px){.bl-cab-rail img{flex-basis:calc((100% - 10px) / 1.25);height:260px}}
/* 13/11 (Aymane) : articles sur téléphone : praticienne en carte compacte dépliable, une seule fin d'article. */
.bl-doc-toggle{display:none}
@media(max-width:760px){
  html body:not(#_) .bl-doctor{padding-block:14px 0}
  html body:not(#_) .bl-doc-toggle{display:grid;grid-template-columns:48px minmax(0,1fr) auto;grid-template-areas:"av id g" "av more more";align-items:center;column-gap:12px;row-gap:4px;width:100%;padding:12px 14px;border:1px solid #ececec;border-radius:16px;background:#fff;box-shadow:var(--card-shadow);text-align:start;font:inherit;color:#111;cursor:pointer}
  html body:not(#_) .bl-doc-toggle img{grid-area:av;width:48px;height:48px;border-radius:50%;object-fit:cover}
  html body:not(#_) .bl-doc-id{grid-area:id;display:flex;flex-direction:column;line-height:1.3;min-width:0}
  html body:not(#_) .bl-doc-id b{font-size:15px;font-weight:600}
  html body:not(#_) .bl-doc-id small{font-size:12.5px;color:#666}
  html body:not(#_) .bl-doc-g{grid-area:g;display:inline-flex;align-items:center;gap:5px;font-size:13px;padding:5px 9px;border:1px solid #ececec;border-radius:999px}
  html body:not(#_) .bl-doc-g svg{width:15px;height:15px}
  html body:not(#_) .bl-doc-more{grid-area:more;display:inline-flex;align-items:center;gap:4px;font-size:13.5px;font-weight:500;color:#111}
  html body:not(#_) .bl-doc-more svg{width:16px;height:16px;transition:transform .2s}
  html body:not(#_) .bl-doctor.is-open .bl-doc-more svg{transform:rotate(180deg)}
  html body:not(#_) .bl-doctor .bl-doc-full{display:none}
  html body:not(#_) .bl-doctor.is-open .bl-doc-full{display:grid;margin-top:18px}
  /* fin d'article : plus de colonne latérale ni de carte auteur ; une seule invitation à prendre rendez-vous */
  html body:not(#_) .bl-article .bl-side,html body:not(#_) .bl-article .bl-author{display:none}
  html body:not(#_):has(.quickbook) .bl-ctab{display:none}
  /* « À lire aussi » en carrousel */
  html body:not(#_) .bl-section .bl-grid{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:12px;padding-bottom:6px;scrollbar-width:none}
  html body:not(#_) .bl-section .bl-grid::-webkit-scrollbar{display:none}
  html body:not(#_) .bl-section .bl-grid>*{flex:0 0 80%;scroll-snap-align:start}
}
@media(max-width:760px) and (prefers-reduced-motion:reduce){html body:not(#_) .bl-doc-more svg{transition:none}}
