/* ==========================================================================
   CHEL 2027 – pages de service en fiches
   ========================================================================== */
:root { --hdr-h: 120px; --pp-h: 0px; }
html { scroll-padding-top: calc(var(--hdr-h) + var(--pp-h) + 16px); }

/* Bandeau */
.svc-hero { background: var(--navy); color: #fff; overflow: hidden; }
.svc-hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: stretch; min-height: 340px; }
.svc-hero-text { padding: 44px 48px 48px 0; display: flex; flex-direction: column; gap: 16px; justify-content: center; }
.svc-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: .9rem; color: #b9cdd3; }
.svc-crumbs li + li::before { content: "›"; margin-right: 6px; opacity: .7; }
.svc-crumbs a { color: #dbe7ea; text-decoration: none; }
.svc-crumbs a:hover { color: #fff; text-decoration: underline; }
.svc-crumbs [aria-current] { color: #fff; font-weight: 700; }
.svc-hero h1 { margin: 0; color: #fff; font-size: clamp(2.2rem, 4.4vw, 3.5rem); line-height: 1.05; font-weight: 800; }
.svc-lead { margin: 0; font-size: 1.15rem; line-height: 1.6; color: #dbe7ea; max-width: 56ch; }
.svc-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.btn-svc { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 12px; font-weight: 800; text-decoration: none !important; transition: transform .15s, background .15s; }
.btn-svc svg { width: 20px; height: 20px; }
.btn-svc.primary { background: var(--green); color: var(--navy) !important; }
.btn-svc.primary:hover { background: #b8d763; transform: translateY(-1px); }
.btn-svc.ghost { border: 2px solid rgba(255,255,255,.35); color: #fff !important; }
.btn-svc.ghost:hover { border-color: #fff; }
.svc-hero-media { position: relative; margin-right: calc(50% - 50vw); background: linear-gradient(160deg, var(--teal), #0f5f66); min-height: 260px; }
.svc-hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Menu de page épinglé (sous le menu principal) */
.page-parts { position: sticky; top: var(--hdr-h); z-index: 85; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 6px 18px rgba(31,55,66,.08); }
body.admin-bar .page-parts { top: calc(var(--hdr-h) + 32px); }
@media (max-width: 782px) { body.admin-bar .page-parts { top: var(--hdr-h); } }
.page-parts-inner { display: flex; align-items: stretch; gap: 6px; }
.pp-label { align-self: center; flex: none; max-width: 220px; padding-right: 14px; margin-right: 4px; border-right: 1px solid var(--line); font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.page-parts ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; flex: 1 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.page-parts ul::-webkit-scrollbar { display: none; }
.page-parts li { flex: none; }
.page-parts li a { display: flex; align-items: center; gap: 10px; height: 100%; min-height: 58px; padding: 0 14px; border-bottom: 3px solid transparent; color: #4b5d65; font-weight: 700; text-decoration: none; white-space: nowrap; }
.page-parts li a:hover { color: var(--navy); background: var(--bg-soft); }
.page-parts li a[aria-current="true"] { color: var(--navy); font-weight: 800; border-bottom-color: var(--teal); }
.pp-num { flex: none; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-size: .82rem; font-weight: 800; color: #fff; background: var(--teal); }
.pp-num.t1 { background: var(--green); color: var(--navy); }
.pp-num.t2 { background: var(--navy); }
.page-parts.many .pp-label { display: none; }
.page-parts.many .pp-txt { max-width: 190px; }
.pp-txt { max-width: 280px; overflow: hidden; text-overflow: ellipsis; }
.pp-rdv { align-self: center; flex: none; padding: 10px 16px; border-radius: 10px; background: var(--green); color: var(--navy) !important; font-weight: 800; font-size: .9rem; text-decoration: none !important; }
.pp-rdv:hover { background: #b8d763; }

/* Chiffres clés */
.svc-figures { background: var(--teal-50); }
.svc-figures-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; padding-top: 22px; padding-bottom: 22px; }
.svc-fig { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 14px; background: #fff; color: var(--navy) !important; text-decoration: none !important; transition: box-shadow .15s; }
.svc-fig:hover { box-shadow: var(--shadow-sm); }
.svc-fig strong { font-size: 2.4rem; font-weight: 800; line-height: 1; color: var(--teal-2); }
.svc-fig.t1 strong { color: #5f7d1c; }
.svc-fig.t2 strong { color: var(--navy); }
.svc-fig span { display: flex; flex-direction: column; font-size: .9rem; color: var(--muted); line-height: 1.35; }
.svc-fig b { color: var(--navy); font-size: 1rem; }

/* Contenu */
.svc-content { padding-top: 48px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 56px; }
.page-content.fiches { display: flex; flex-direction: column; gap: 64px; max-width: none; }
.page-content.fiches > .content-block { margin: 0; }

/* Fiche */
.fiche { --tone: var(--teal); --tone-ink: var(--teal-2); --tone-soft: var(--teal-50); display: flex; flex-direction: column; gap: 30px; }
.fiche-green { --tone: var(--green); --tone-ink: #5f7d1c; --tone-soft: var(--green-50); }
.fiche-navy { --tone: var(--navy); --tone-ink: var(--navy); --tone-soft: #eef2f4; }
.fiche-head { display: flex; align-items: center; gap: 14px 16px; flex-wrap: wrap; padding-bottom: 16px; border-bottom: 3px solid var(--tone); }
.fiche-num { padding: 6px 12px; border-radius: 999px; background: var(--tone); color: #fff; font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.fiche-green .fiche-num { color: var(--navy); }
.fiche-head h2 { margin: 0; font-size: clamp(1.6rem, 2.8vw, 2.25rem); color: var(--navy); line-height: 1.15; }
.fiche-chiffre { margin-left: auto; font-size: .95rem; color: var(--muted); }
.fiche-chiffre strong { color: var(--navy); font-size: 1.15rem; }
.fiche-body { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.fiche-body.no-side { grid-template-columns: minmax(0, 1fr); }
.fiche-text { font-size: 1.04rem; line-height: 1.75; min-width: 0; }
.fiche-text > :first-child { margin-top: 0; }
.fiche-text h3 { color: var(--navy); font-size: 1.2rem; margin: 1.6em 0 .5em; }
.fiche-text h3.practical-information { text-transform: none; }
.fiche-side { display: flex; flex-direction: column; gap: 16px; }
.fiche-card { border-radius: 16px; padding: 22px; background: var(--bg-soft); border: 1px solid var(--line); }
.fiche-card h3 { margin: 0 0 10px; font-size: 1.02rem; color: var(--navy); text-transform: none; letter-spacing: 0; }
.fiche-contact { background: var(--navy); border-color: var(--navy); color: #dbe7ea; }
.fiche-contact h3 { color: #fff; }
.fiche-phone { display: block; font-size: 1.6rem; font-weight: 800; color: var(--green) !important; text-decoration: none !important; line-height: 1.25; }
.fiche-phone:hover { color: #c8e27c !important; }
.fc-entry + .fc-entry { margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.15); }
.fiche-contact p { margin: 8px 0 0; font-size: .92rem; line-height: 1.6; }
.fiche-contact.rich a { color: var(--green); }
.fiche-loc ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.fiche-loc li { display: flex; gap: 10px; align-items: center; font-size: .95rem; line-height: 1.4; }
.loc-badge { flex: none; width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center; font-weight: 800; font-size: .85rem; background: #fff; color: var(--navy); border: 1px solid var(--line); }
.loc-badge svg { width: 16px; height: 16px; }
.loc-badge.park { background: #15aff7; border-color: #15aff7; color: #fff; }
.loc-badge.bat { background: var(--green); border-color: var(--green); color: var(--navy); }
.fiche-plan { display: block; margin-top: 14px; padding: 11px 14px; border-radius: 10px; background: #fff; border: 2px solid var(--teal); color: var(--teal-2) !important; font-weight: 800; text-align: center; text-decoration: none !important; }
.fiche-plan:hover { background: var(--teal); color: #fff !important; }
.fiche-info { font-size: .95rem; }
.fiche-info > :first-child { margin-top: 0; }

/* Équipe d'une fiche */
.fiche-team { display: flex; flex-direction: column; gap: 16px; }
.fiche-team-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 8px 20px; flex-wrap: wrap; }
.fiche-team-head h3 { margin: 0; font-size: 1.35rem; color: var(--navy); text-transform: none; letter-spacing: 0; }
.fiche-team-head p { margin: 0; color: var(--muted); font-size: .95rem; }
.fiche-team-head p strong { color: var(--navy); }
.fiche-team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; align-items: start; }
.team-group h4 { margin: 0 0 12px; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: var(--tone-ink, var(--teal-2)); }
.team-group ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.team-group li { display: flex; gap: 12px; align-items: center; line-height: 1.3; }
.team-group li > span:last-child { display: flex; flex-direction: column; }
.team-group strong { color: var(--navy); font-size: .97rem; }
.team-group small { color: var(--muted); font-size: .82rem; }
.team-group.wide { grid-column: span 2; }
.team-group.wide ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; }
@media (max-width: 640px) { .team-group.wide { grid-column: auto; } .team-group.wide ul { grid-template-columns: 1fr; } }
.team-group .ini { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); color: var(--navy); font-size: .8rem; font-weight: 800; }
.fiche-team-grid > .team-card:only-child, .fiche-team-grid > .team-group:only-child { grid-column: 1 / -1; }
.fiche-team-grid > .team-card:only-child ul, .fiche-team-grid > .team-group:only-child ul { display: block; columns: 3 230px; column-gap: 28px; }
.fiche-team-grid > .team-card:only-child li, .fiche-team-grid > .team-group:only-child li { break-inside: avoid; margin-bottom: 10px; }
.fiche-team-grid .team-card { margin: 0; border-radius: 16px; background: var(--bg-soft); border: 1px solid var(--line); box-shadow: none; }

/* Fin de page */
.svc-extra { padding: 22px 24px; border-radius: 16px; background: var(--bg-soft); border: 1px solid var(--line); }
.svc-related h2 { margin: 0 0 14px; font-size: 1.2rem; color: var(--navy); }
.svc-related ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.svc-related a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); color: var(--navy); font-weight: 700; text-decoration: none; }
.svc-related a:hover { border-color: var(--teal); background: var(--teal-50); }
.svc-related a span { color: var(--teal); }

@media (max-width: 1000px) {
  .svc-hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .svc-hero-text { padding: 32px 0; }
  .svc-hero-media { margin: 0 calc(50% - 50vw); min-height: 200px; }
  .fiche-body { grid-template-columns: minmax(0, 1fr); }
  .pp-label, .pp-rdv { display: none; }
}
@media (max-width: 600px) {
  .svc-figures-grid { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; padding-top: 14px; padding-bottom: 14px; }
  .svc-fig { flex-direction: column; align-items: flex-start; gap: 4px; padding: 10px 12px; }
  .svc-fig strong { font-size: 1.7rem; }
  .svc-fig span { font-size: .78rem; }
  .svc-fig span b { font-size: .9rem; }
  .svc-hero-media { min-height: 150px; }
  .page-parts li a { min-height: 50px; padding: 0 10px; }
  .pp-txt { max-width: 200px; }
  .fiche-chiffre { margin-left: 0; }
}
@media print {
  .page-parts, .svc-figures, .svc-hero-media, .svc-actions, .fiche-plan { display: none !important; }
  .svc-hero { background: none; color: inherit; }
  .svc-hero h1 { color: var(--navy); }
  .fiche-contact { background: none; color: inherit; }
  .fiche-body { grid-template-columns: 1fr; }
}

/* ==========================================================================
   CHEL 2027 – pages pratiques et administratives
   ========================================================================== */
.px-hero { background: var(--teal-50); }
.px-hero-inner { display: flex; gap: 26px; align-items: center; padding-top: 38px; padding-bottom: 36px; }
.px-hero-ico { flex: none; width: 76px; height: 76px; border-radius: 20px; background: var(--teal); color: #fff; display: grid; place-items: center; }
.px-hero-ico svg { width: 38px; height: 38px; stroke-width: 1.8; }
.px-hero-text { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.px-hero .svc-crumbs ol { color: var(--muted); }
.px-hero .svc-crumbs a { color: #4b5d65; }
.px-hero .svc-crumbs a:hover { color: var(--navy); }
.px-hero .svc-crumbs [aria-current] { color: var(--navy); }
.px-hero h1 { margin: 0; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.08; font-weight: 800; color: var(--navy); }
.px-lead { margin: 0; font-size: 1.12rem; line-height: 1.6; color: #4b5d65; max-width: 62ch; }
.page-parts.plain li a { min-height: 56px; }

.px-content { padding-top: 44px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 48px; }
.page-content.pratique { max-width: none; display: flex; flex-direction: column; gap: 56px; }
.page-content.pratique > .content-block { margin: 0; padding: 0; border: 0; }
.page-content.pratique .block-title { display: flex; align-items: center; gap: 14px; background: none; color: var(--navy); text-transform: none; letter-spacing: 0; padding: 0; border-radius: 0; font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 0 0 20px; }
.page-content.pratique .block-title::before { content: ""; flex: none; width: 6px; height: 1.1em; border-radius: 3px; background: var(--teal); }
.page-content.pratique > .content-block:nth-of-type(3n+2) .block-title::before { background: var(--green); }
.page-content.pratique > .content-block:nth-of-type(3n) .block-title::before { background: var(--navy); }
.page-content.pratique .rich > p, .page-content.pratique > p { font-size: 1.04rem; line-height: 1.75; }
.page-content.pratique .block-aside .info-card { background: var(--navy); color: #dbe7ea; border: 0; }
.page-content.pratique .block-aside .info-card h3, .page-content.pratique .block-aside .info-card strong { color: #fff; }
.page-content.pratique .block-aside .info-card a { color: var(--green); }

.px-end { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 18px; align-items: start; }
.px-question { padding: 24px; border-radius: 16px; background: var(--navy); color: #dbe7ea; display: flex; flex-direction: column; gap: 6px; }
.px-question h2 { margin: 0; color: #fff; font-size: 1.2rem; }
.px-question p { margin: 0; }
.px-question-phone { font-size: 1.6rem; font-weight: 800; color: var(--green) !important; text-decoration: none !important; }
.px-question-link { color: #fff !important; font-weight: 700; text-decoration: none !important; }
.px-question-link:hover { text-decoration: underline !important; }
.px-extra { padding: 22px 24px; border-radius: 16px; background: var(--bg-soft); border: 1px solid var(--line); }
.px-rubrique { padding: 22px 24px; border-radius: 16px; border: 1px solid var(--line); }
.px-rubrique h2 { margin: 0 0 10px; font-size: 1.15rem; color: var(--navy); }
.px-rubrique ul { list-style: none; margin: 0; padding: 0; }
.px-rubrique li { margin: 0; border-top: 1px solid var(--line); }
.px-rubrique li:first-child { border-top: 0; }
.px-rubrique a { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; color: var(--navy); font-weight: 700; text-decoration: none; }
.px-rubrique a:hover { color: var(--teal-2); }
.px-rubrique a span { color: var(--teal); }
.px-rubrique.many { grid-column: 1 / -1; }
.px-rubrique.many ul { columns: 3 260px; column-gap: 32px; }
.px-rubrique.many li { break-inside: avoid; border-top: 0; border-bottom: 1px solid var(--line); }

@media (max-width: 700px) {
  .px-hero-inner { flex-direction: column; align-items: flex-start; gap: 14px; padding-top: 26px; padding-bottom: 24px; }
  .px-hero-ico { width: 56px; height: 56px; border-radius: 14px; }
  .px-hero-ico svg { width: 28px; height: 28px; }
}
.quick-links { z-index: 96; } /* « En 1 clic ! » au-dessus du menu de page épinglé */

/* Lien « Professionnels de santé » (en-tête et menu mobile) */
.icon-btn.pro .ico { background: var(--teal); }
.icon-btn.pro .txt { max-width: 120px; line-height: 1.15; font-size: .88rem; }
@media (max-width: 1300px) { .icon-btn.pro .txt { display: none; } }
.mobile-pro-link { display: none; }
@media (max-width: 1000px) {
  .mobile-pro-link { display: flex; align-items: center; gap: 10px; margin: 12px 0 18px; padding: 14px 16px; border-radius: 12px; background: var(--teal-50); color: var(--teal-2); font-weight: 800; text-decoration: none; }
  .mobile-pro-link svg { width: 22px; height: 22px; }
}
