/* =========================================================
   Centres : liste avec carte ([cerefcoeur_centres])
   Annuaire interactif : grande carte, recherche et filtres. Dans un article (.mini) : petite carte.
   Framboise = sites du Centre de référence, menthe = centres de compétence.
   ========================================================= */

/* Filtres */
.reseau .filtres { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; background: var(--blanc); border: var(--bord); border-radius: var(--rayon-s); padding: 14px 16px; margin-bottom: 18px; }
.reseau .recherche { position: relative; flex: 1 1 260px; }
.reseau .recherche svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--gris); }
.reseau .recherche input { width: 100%; height: 44px; padding: 0 14px 0 42px; border-radius: 999px; border: 1px solid var(--ligne); background: var(--fond); font: 400 1rem var(--police); color: var(--encre); transition: border-color .3s var(--ressort), background .3s var(--ressort); }
.reseau .recherche input:focus { outline: none; border-color: var(--framboise); background: #fff; }
.reseau .groupe { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.reseau .groupe > span { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--framboise); margin-right: 4px; }
.reseau .puce { height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--ligne); background: #fff; color: var(--texte); font: 500 .875rem var(--police); cursor: pointer; transition: background .3s var(--ressort), border-color .3s var(--ressort), color .3s var(--ressort), transform .1s ease-out; }
.reseau .puce:hover { border-color: color-mix(in srgb, var(--framboise) 40%, transparent); }
.reseau .puce:active { transform: scale(.96); }
.reseau .puce[aria-pressed="true"] { background: var(--framboise); border-color: var(--framboise); color: #fff; }
.reseau .puce.vert[aria-pressed="true"] { background: var(--vert); border-color: var(--vert); }
.reseau .resume { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 12px; font-size: .9rem; color: var(--gris); }
.reseau .resume b { color: var(--encre); font-weight: 600; }
.reseau .ville-choisie { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 6px 0 12px; border-radius: 999px; background: var(--framboise-pale); color: var(--framboise-fonce); font: 600 .875rem var(--police); border: 0; cursor: pointer; transition: background .3s var(--ressort); }
.reseau .ville-choisie:hover { background: color-mix(in srgb, var(--framboise) 14%, white); }
.reseau .ville-choisie[hidden] { display: none; }
.reseau .ville-choisie i { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--framboise); color: #fff; font-style: normal; font-size: .75rem; }

/* Carte + liste */
.reseau .disposition { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(16px, 2.5vw, 28px); align-items: start; }
.reseau.mini .disposition { grid-template-columns: 300px minmax(0, 1fr); }
.reseau .carte { position: sticky; top: calc(var(--haut-menu) + 20px); background: var(--blanc); border: var(--bord); border-radius: var(--rayon); padding: 16px; }
.reseau.mini .carte { padding: 12px; }
.reseau .carte-france { width: 100%; height: auto; display: block; }
.reseau .france { fill: var(--framboise-pale); stroke: color-mix(in srgb, var(--framboise) 35%, transparent); stroke-width: 2; }
.reseau .pt { cursor: pointer; outline: none; transition: opacity .3s var(--ressort); }
.reseau .pt .rond { fill: var(--framboise); stroke: #fff; stroke-width: 4; transition: stroke-width .3s var(--ressort); }
.reseau .pt.competence .rond { fill: var(--vert); }
.reseau .pt text { fill: #fff; font: 700 26px var(--police); text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.reseau .pt .halo { fill: none; stroke: var(--framboise); stroke-width: 5; opacity: 0; transition: opacity .3s var(--ressort); }
.reseau .pt.competence .halo { stroke: var(--vert-titre); }
.reseau .pt:hover .rond, .reseau .pt:focus-visible .rond, .reseau .pt.actif .rond { stroke-width: 7; }
.reseau .pt.actif .halo, .reseau .pt:focus-visible .halo { opacity: 1; }
.reseau .pt.eteint { opacity: .22; }
/* Petite carte : des points plus gros pour rester visibles */
.reseau.mini .pt .rond { r: 24px; }
.reseau.mini .pt.groupe .rond { r: 40px; }
.reseau.mini .pt .halo { r: 50px; }
.reseau.mini .pt text { font-size: 38px; }
.reseau .encadre-om .cadre { fill: var(--framboise-pale); stroke: color-mix(in srgb, var(--framboise) 35%, transparent); stroke-width: 2; transition: stroke .3s var(--ressort); }
.reseau .encadre-om:hover .cadre, .reseau .encadre-om.actif .cadre { stroke: var(--vert); }
.reseau .encadre-om .nom-om { fill: var(--texte); font: 600 36px var(--police); text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.reseau.mini .encadre-om .nom-om { font-size: 50px; }
.reseau.mini .encadre-om .rond { r: 24px; }
.reseau .aide { display: flex; align-items: center; gap: 12px; margin: 16px 0 0; padding: 12px 14px; border-radius: var(--rayon-s); background: var(--vert-pale); font-size: .875rem; font-weight: 500; line-height: 1.4; color: var(--vert-fonce); text-align: left; }
.reseau .aide i { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; background: var(--vert); color: #fff; }
.reseau .aide svg { width: 20px; height: 20px; }
.reseau .legende { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; margin: 12px 0 0; font-size: .8rem; color: var(--gris); }
.reseau .legende:empty { display: none; }
.reseau .legende span { display: inline-flex; align-items: center; gap: 6px; }
.reseau .legende i { width: 10px; height: 10px; border-radius: 50%; background: var(--framboise); }
.reseau .legende .l-comp { background: var(--vert); }

/* Liste compacte : une ligne par centre */
.reseau .liste { display: grid; gap: 8px; }
.reseau .ligne { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; align-items: center; background: var(--blanc); border: var(--bord); border-left: 4px solid var(--framboise); border-radius: var(--rayon-s); padding: 14px 16px; transition: border-color .3s var(--ressort), background .3s var(--ressort); }
.reseau .ligne.competence { border-left-color: var(--vert); }
.reseau .ligne:hover, .reseau .ligne.actif { background: color-mix(in srgb, var(--framboise) 4%, white); border-color: color-mix(in srgb, var(--framboise) 30%, transparent); border-left-color: var(--framboise); }
.reseau .ligne.competence:hover, .reseau .ligne.competence.actif { background: color-mix(in srgb, var(--vert) 7%, white); border-color: color-mix(in srgb, var(--vert) 45%, transparent); border-left-color: var(--vert); }
.reseau .ligne[hidden] { display: none; }
.reseau .ligne h3 { font-family: var(--police-titre); font-weight: 500; font-size: 1.12rem; line-height: 1.25; color: var(--encre); margin: 0; letter-spacing: -0.01em; }
.reseau .ligne h3 small { font-family: var(--police); font-size: .875rem; font-weight: 400; color: var(--gris); letter-spacing: 0; }
.reseau .infos { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 6px; }
.reseau .type { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--framboise); }
.reseau .competence .type { color: var(--vert-titre); }
.reseau .pat { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .78rem; font-weight: 600; line-height: 1.6; background: var(--framboise-pale); color: var(--framboise-fonce); }
.reseau .pat.tr { background: var(--vert-pale); color: var(--vert-fonce); }
.reseau .medecin { margin: 6px 0 0; font-size: .9rem; line-height: 1.45; color: var(--texte); text-align: left; }
.reseau .medecin b { font-weight: 600; color: var(--encre); }
.reseau .actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.reseau .bouton { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 999px; font-size: .84rem; font-weight: 600; text-decoration: none !important; white-space: nowrap; transition: background .3s var(--ressort), transform .1s ease-out; }
.reseau .bouton::after { display: none !important; }
.reseau .bouton:active { transform: scale(.96); }
.reseau .bouton svg { width: 16px; height: 16px; flex-shrink: 0; }
.reseau .bouton.site { background: var(--vert-pale); color: var(--vert-fonce); }
.reseau .bouton.site:hover { background: color-mix(in srgb, var(--vert) 22%, white); }
.reseau .bouton.doc { background: var(--framboise-pale); color: var(--framboise-fonce); }
.reseau .bouton.doc:hover { background: color-mix(in srgb, var(--framboise) 14%, white); }
.reseau .vide { text-align: center; padding: 32px; color: var(--gris); background: var(--blanc); border: var(--bord); border-radius: var(--rayon-s); }
.reseau .vide a { color: var(--framboise); font-weight: 600; }
.reseau .mise-a-jour { margin: 14px 0 0; font-size: .8rem; color: var(--gris); text-align: center; }
.reseau .proche { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 999px; border: 0; background: var(--vert-pale); color: var(--vert-fonce); font: 600 .875rem var(--police); cursor: pointer; transition: background .3s var(--ressort), transform .1s ease-out; }
.reseau .proche:hover { background: color-mix(in srgb, var(--vert) 22%, white); }
.reseau .proche:active { transform: scale(.96); }
.reseau .proche svg { width: 16px; height: 16px; }
.reseau .km { font-size: .78rem; font-weight: 600; color: var(--gris); }
.reseau .vide[hidden] { display: none; }

@media (max-width: 900px) {
  .reseau .disposition, .reseau.mini .disposition { grid-template-columns: minmax(0, 1fr); }
  .reseau .carte { position: static; }
  .reseau .carte-france { max-height: 340px; }
  .reseau.mini .carte-france { max-height: 240px; }
}
@media (max-width: 560px) {
  .reseau .ligne { grid-template-columns: minmax(0, 1fr); }
  .reseau .actions { justify-content: flex-start; }
  .reseau .filtres { padding: 12px; }
}

/* Une page qui contient une liste de centres passe en pleine largeur */
.mise-en-page:has(.reseau) { grid-template-columns: minmax(0, 1fr); }
.mise-en-page:has(.reseau) > .colonne { display: none; }
.mise-en-page:has(.reseau) > .contenu { background: none; border: 0; padding: 0; }
.mise-en-page:has(.reseau) .chapo-article p { font-size: clamp(1.05rem, .95rem + .4vw, 1.2rem); line-height: 1.55; max-width: 62ch; color: var(--texte); margin-bottom: 8px; }
.mise-en-page:has(.reseau) .elementor-widget-heading h2.elementor-heading-title { margin-top: 1.2em; }
.mise-en-page:has(.reseau) .elementor-widget-text-editor { max-width: 72ch; }
