/* Rôle : haut de page « trois formats », boutons de filtre mobiles et leur fenêtre, bandeau « Pas de créneau », barre
   fixe mobile et encart interne nº 2 des pages villes et thématiques.
   Domaine : annuaire public. Couleurs : variables du thème uniquement. Guide : src/templates/README.md. */
:root{--fc-deep:var(--theme-texte-principal);--fc-accent:var(--theme-vitrine-accent);--fc-survol:color-mix(in oklab,var(--theme-texte-principal) 55%,var(--theme-vitrine-accent));--fc-teinte:var(--theme-surface-action);--fc-ligne:var(--theme-bordure);--fc-mute:var(--theme-texte-secondaire);--fc-ink:color-mix(in oklab,var(--theme-texte-principal) 78%,var(--theme-surface));--fc-blanc:var(--theme-surface);--fc-vert:var(--theme-fond-succes);--fc-sombre:var(--theme-fond-inverse);--fc-halo:color-mix(in oklab,var(--theme-vitrine-accent) 55%,transparent)}

/* ── Haut de page ── */
section.hero.hero-formats{background:linear-gradient(180deg,var(--fc-blanc) 0%,var(--theme-page) 100%);padding:44px 0 36px}
.hf-grille{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr);gap:40px;align-items:center}
.hf-dispo{display:inline-flex;align-items:center;gap:8px;background:var(--fc-teinte);color:var(--fc-deep);font-weight:600;font-size:13.5px;padding:7px 14px;border-radius:var(--theme-rayon-pilule);margin:0 0 18px}
.hf-point{flex:none;width:8px;height:8px;border-radius:50%;background:var(--fc-vert)}
section.hero.hero-formats h1{font-size:clamp(30px,4vw,48px);line-height:1.06;letter-spacing:-.02em;color:var(--fc-deep);margin:0 0 14px;font-weight:800}
section.hero.hero-formats .hero-intro{font-size:17px;line-height:1.55;color:var(--fc-ink);margin:0 0 26px;max-width:580px}
section.hero.hero-formats .hero-intro b{color:var(--fc-deep)}
.fc-modes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0 0 22px}
.fc-mode{position:relative;display:flex;flex-direction:column;padding:16px 14px 14px;border:1.5px solid var(--fc-ligne);border-radius:16px;background:var(--fc-blanc);color:var(--fc-deep);text-decoration:none;transition:border-color .15s,transform .15s}
.fc-mode:hover{border-color:var(--fc-accent);transform:translateY(-2px);color:var(--fc-deep)}
.fc-mode-message{border-color:var(--fc-accent);background:linear-gradient(180deg,var(--fc-teinte),var(--fc-blanc));box-shadow:0 12px 26px -16px var(--fc-halo)}
.fc-badge{position:absolute;top:-10px;left:14px;background:var(--fc-accent);color:var(--fc-blanc);font-size:11px;font-weight:700;padding:3px 9px;border-radius:var(--theme-rayon-pilule)}
.fc-ico{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;background:var(--fc-teinte);color:var(--fc-accent);margin-bottom:10px;flex:none}
.fc-ico svg{width:19px;height:19px}
.fc-corps{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}
.fc-titre{font-weight:700;font-size:15.5px}
.fc-prix{font-weight:700;font-size:14px;color:var(--fc-accent)}
.fc-sous{font-size:13px;color:var(--fc-mute);line-height:1.35}
.fc-go{display:inline-flex;align-items:center;gap:5px;margin-top:10px;font-size:13px;font-weight:700;color:var(--fc-accent)}
.fc-go svg{width:14px;height:14px}
.hf-confiance{display:flex;flex-wrap:wrap;gap:6px 20px;margin:4px 0 0;padding:0;list-style:none;font-size:13.5px;color:var(--fc-ink)}
.hf-confiance li{display:inline-flex;align-items:center;gap:6px}
.hf-confiance svg{width:16px;height:16px;color:var(--fc-accent)}
/* Téléphone d'illustration (ordinateur seulement) */
.hf-visuel{position:relative;display:flex;justify-content:center;padding:8px 0;container-type:inline-size}
.hf-scene{position:relative;width:290px}
.hf-tel{width:290px;height:560px;border-radius:44px;background:var(--fc-sombre);padding:10px;box-sizing:border-box;box-shadow:0 40px 80px -34px var(--theme-ombre)}
.hf-ecran{height:100%;border-radius:35px;background:var(--fc-blanc);overflow:hidden;display:flex;flex-direction:column}
.hf-statut{display:flex;justify-content:space-between;align-items:center;padding:12px 22px 6px;font-size:13px;font-weight:700;color:var(--fc-sombre)}
.hf-ilot{width:80px;height:22px;border-radius:12px;background:var(--fc-sombre)}
.hf-bat{width:20px;height:10px;border:1.5px solid var(--fc-sombre);border-radius:3px}
.hf-entete{display:flex;align-items:center;gap:10px;padding:8px 14px 12px;border-bottom:1px solid var(--fc-ligne)}
.hf-ident{display:flex;flex-direction:column}
.fc-av{flex:none;width:38px;height:38px;border-radius:50%;background:var(--fc-teinte) center/cover no-repeat}
.fc-av-init{display:grid;place-items:center;color:var(--fc-accent);font-weight:800}
.hf-nom{font-weight:700;font-size:14.5px;color:var(--fc-sombre)}
.hf-enligne{white-space:nowrap;font-size:11px;color:var(--fc-vert);font-weight:600}
.hf-puce{margin-left:auto;font-size:11.5px;font-weight:700;color:var(--fc-deep);background:var(--fc-teinte);padding:5px 10px;border-radius:var(--theme-rayon-pilule)}
.hf-fil{flex:1;padding:12px;display:flex;flex-direction:column;gap:10px;background:var(--theme-vitrine-fond-doux)}
.hf-jour{align-self:center;font-size:10.5px;font-weight:700;letter-spacing:.08em;color:var(--fc-mute);text-transform:uppercase}
.hf-bulle{margin:0;max-width:86%;padding:10px 12px;border-radius:16px;font-size:12.5px;line-height:1.45}
.hf-moi{align-self:flex-end;background:var(--fc-accent);color:var(--fc-blanc);border-bottom-right-radius:5px}
.hf-psy{align-self:flex-start;background:var(--fc-blanc);color:var(--fc-ink);border:1px solid var(--fc-ligne);border-bottom-left-radius:5px}
.hf-heure{display:block;text-align:right;font-size:10px;opacity:.7;margin-top:4px}
.hf-vocal{margin:0;align-self:flex-end;display:flex;align-items:center;gap:8px;background:var(--fc-accent);color:var(--fc-blanc);padding:8px 12px;border-radius:var(--theme-rayon-pilule);font-size:12px;font-weight:700}
.hf-lecture{width:20px;height:20px;border-radius:50%;background:color-mix(in oklab,var(--fc-blanc) 25%,transparent);display:grid;place-items:center;font-size:8px}
.hf-ondes{display:flex;align-items:center;gap:2px}
.hf-ondes i{display:block;width:2px;border-radius:2px;background:var(--fc-blanc);height:6px}
.hf-ondes i:nth-child(2n){height:12px}.hf-ondes i:nth-child(3n){height:16px}.hf-ondes i:nth-child(5n){height:9px}
.hf-saisie{margin:10px 12px 14px;display:flex;align-items:center;justify-content:space-between;border:1px solid var(--fc-ligne);border-radius:var(--theme-rayon-pilule);padding:7px 7px 7px 14px;font-size:12px;color:var(--fc-mute)}
.hf-micro{width:30px;height:30px;border-radius:50%;background:var(--fc-accent);display:grid;place-items:center;color:var(--fc-blanc)}
.hf-micro svg{width:15px;height:15px}
.hf-flottant{position:absolute;background:var(--fc-blanc);border-radius:16px;box-shadow:var(--theme-ombre-carte);padding:12px 14px;font-size:12.5px;color:var(--fc-sombre);display:flex;flex-direction:column;gap:2px;white-space:nowrap}
.hf-flottant span{color:var(--fc-mute)}
.hf-f-sur{font-size:10.5px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--fc-accent)}
.hf-f1,.hf-f2{--hf-marge:calc((100cqw - 290px) / 2 + 16px)}
/* Ancrés à droite : ils dépassent du téléphone au plus de la marge de la colonne, jamais au-delà de l'écran (défilement
   horizontal constaté par Alexandre le 10/11/2026 en réduisant la fenêtre). */
.hf-f1{right:calc(-1 * min(179px, var(--hf-marge)));top:112px}
.hf-f2{right:calc(-1 * min(113px, var(--hf-marge)));bottom:118px;flex-direction:row;align-items:center;gap:10px}
.hf-f2>span:last-child{display:flex;flex-direction:column}

/* ── Boutons de filtre mobiles et leur fenêtre (le bandeau reste sur ordinateur) ── */
.ff-barre{display:none}
.ff-voile{position:fixed;inset:0;background:color-mix(in oklab,var(--fc-sombre) 45%,transparent);z-index:9500}
.ff-feuille{position:fixed;left:0;right:0;bottom:0;max-height:86vh;display:flex;flex-direction:column;background:var(--fc-blanc);border-radius:22px 22px 0 0;z-index:9600;color:var(--fc-deep);max-width:560px;margin:0 auto}
.ff-voile[hidden],.ff-feuille[hidden]{display:none}
html.ff-ouverte body{overflow:hidden}
.ff-tete{display:grid;grid-template-columns:40px 1fr 40px;align-items:center;padding:10px 10px 6px}
.ff-titre{margin:0;text-align:center;font-size:17px;font-weight:800}
.ff-fermer{width:40px;height:40px;border:0;background:none;color:var(--fc-deep);display:grid;place-items:center;padding:0;cursor:pointer}
.ff-fermer svg{width:22px;height:22px}
.ff-corps{overflow:auto;padding:4px 18px 14px}
.ff-section[hidden]{display:none}
.ff-sous-titre{margin:14px 0 8px;font-size:15px;font-weight:800}
.ff-ville{display:flex;align-items:center;gap:10px;margin:0;border:1.5px solid var(--fc-ligne);border-radius:12px;padding:12px 14px;font-size:16px}
.ff-ville svg{width:18px;height:18px;color:var(--fc-accent);flex:none}
.ff-note{margin:10px 0 6px;font-size:12.5px;color:var(--fc-mute)}
.ff-villes{display:flex;flex-wrap:wrap;gap:6px}
.ff-villes a{font-size:13px;padding:6px 11px;border-radius:var(--theme-rayon-pilule);background:var(--fc-teinte);color:var(--fc-deep);text-decoration:none}
.ff-cases{display:grid;grid-template-columns:1fr 1fr;gap:12px 10px;padding:4px 2px}
.ff-cases label{display:flex;align-items:center;gap:9px;font-size:14.5px;cursor:pointer}
.ff-cases input,.ff-option input{width:20px;height:20px;margin:0;flex:none;accent-color:var(--fc-accent)}
.ff-liste{border:1.5px solid var(--fc-ligne);border-radius:14px;overflow:hidden;margin-top:6px}
.ff-option{display:flex;align-items:center;gap:14px;padding:15px 14px;border-top:1.5px solid var(--fc-ligne);cursor:pointer;font-size:15.5px;font-weight:600}
.ff-option:first-child{border-top:0}
.ff-pied{padding:12px 18px calc(12px + env(safe-area-inset-bottom));border-top:1px solid var(--fc-ligne);display:flex;flex-direction:column;gap:4px}
.ff-ok{background:var(--fc-accent);color:var(--fc-blanc);border:0;border-radius:12px;padding:15px;font:inherit;font-weight:800;font-size:15.5px;cursor:pointer}
.ff-effacer{background:none;border:0;color:var(--fc-accent);font:inherit;font-weight:700;font-size:14px;padding:10px;cursor:pointer}
/* Filtre Prix : fiches hors tranche masquées */
#listGrid>article.pcard.prix-masque{display:none}

/* ── Bandeau « Pas de créneau qui vous convient ? » entre deux fiches ── */
.bc-bandeau{grid-column:1/-1;display:flex;align-items:center;gap:18px;padding:18px 10px;border-top:1px solid var(--fc-ligne);border-bottom:1px solid var(--fc-ligne)}
.bc-avatars{display:flex;flex:none;padding-left:10px}
.bc-av{width:38px;height:38px;margin-left:-10px;border-radius:50%;border:2px solid var(--fc-blanc);box-shadow:0 0 0 1px var(--fc-ligne);background:var(--fc-teinte) center/cover no-repeat}
.bc-av-init{display:grid;place-items:center;color:var(--fc-accent);font-weight:800;font-size:14px}
.bc-texte{flex:1;min-width:0;margin:0;font-size:15.5px;line-height:1.55;color:var(--fc-ink)}
.bc-texte b{color:var(--fc-deep);font-weight:700}
.bc-mobile{display:none}
.bc-note{white-space:nowrap}
.bc-etoile{color:var(--star)}
.bc-bouton{flex:none;display:inline-flex;align-items:center;gap:10px;background:var(--fc-accent);color:var(--fc-blanc);font-weight:700;font-size:15.5px;padding:14px 22px;border-radius:var(--theme-rayon-pilule);text-decoration:none;white-space:nowrap;transition:background .18s}
.bc-bouton:hover{background:var(--fc-survol);color:var(--fc-blanc)}
.bc-bouton svg{width:16px;height:16px}

/* ── Barre fixe mobile (à partir du 3e psychologue) ── */
.bf-barre{display:none}

/* ── Encart interne nº 2 : onglet Messages ouvert, plus d'air ; bouton habituel des cartes ── */
:is(#listGrid, .hero-equipe) article.pcard.equipe.encart-message .ppanel .eq-msg-titre{margin:10px 0 8px;font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--fc-accent)}
:is(#listGrid, .hero-equipe) article.pcard.equipe.encart-message .ppanel .eq-msg-accroche{margin:0 0 12px;font-size:20px;font-weight:800;line-height:1.2;color:var(--fc-deep)}
:is(#listGrid, .hero-equipe) article.pcard.equipe.encart-message .ppanel .eq-msg-intro{margin:0 0 18px;line-height:1.6}
:is(#listGrid, .hero-equipe) article.pcard.equipe.encart-message .ppanel .eq-msg-reperes{margin:0 0 20px}
:is(#listGrid, .hero-equipe) article.pcard.equipe.encart-message .ppanel .eq-msg-offre{margin:0 0 18px}
:is(#listGrid, .hero-equipe) article.pcard.equipe.encart-message .ppanel .eq-msg-actions{display:flex;gap:12px;align-items:stretch;flex-wrap:wrap}
:is(#listGrid, .hero-equipe) article.pcard.equipe.encart-message .ppanel .eq-msg-plus{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center}

/* Ordinateur : la liste démarre à distance du bandeau de filtre (masqué sur téléphone, où les boutons du haut de page le remplacent). */
@media (min-width:761px){.filtre-bandeau + :is(#psychologues,#liste-psys) #listGrid{margin-top:24px}}
@media (max-width:760px){
  section.hero.hero-formats{padding:16px 0 14px}
  .hf-grille{grid-template-columns:1fr;gap:0}
  .hf-visuel,.hf-confiance,.fc-sous,.fc-go{display:none}
  .hf-dispo{font-size:12.5px;padding:5px 11px;margin-bottom:10px}
  section.hero.hero-formats h1{font-size:29px;line-height:1.1;margin-bottom:10px}
  section.hero.hero-formats .hero-intro{font-size:15.5px;line-height:1.5;margin-bottom:14px}
  .fc-modes{gap:8px;margin:0}
  .fc-mode{align-items:center;text-align:center;padding:14px 6px 11px;border-radius:14px}
  .fc-mode:hover{transform:none}
  .fc-ico{margin:0 0 7px;width:32px;height:32px}
  .fc-corps{align-items:center}
  .fc-titre{font-size:13.5px}
  .fc-prix{font-size:11.5px;font-weight:500;color:var(--fc-mute);line-height:1.3;margin-top:3px}
  .fc-l1,.fc-l2{display:block}
  .fc-l2{font-weight:700;font-size:12px;color:var(--fc-deep)}
  .fc-mode-message{border-width:2px;background:var(--fc-teinte)}
  .fc-badge{top:-9px;left:50%;transform:translateX(-50%);font-size:9.5px;padding:2px 7px;white-space:nowrap}
  .filtre-bandeau{display:none}
  .ff-barre{display:block;background:var(--theme-page);padding:2px 0 14px}
  .ff-pilules{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none}
  .ff-pilule{display:inline-flex;align-items:center;gap:6px;flex:none;border:1px solid var(--fc-ligne);background:var(--fc-blanc);border-radius:var(--theme-rayon-pilule);padding:6px 12px;font:inherit;font-weight:600;font-size:13px;line-height:1.2;color:var(--fc-deep);cursor:pointer}
  .ff-pilule svg{width:14px;height:14px;color:var(--fc-accent)}
  .ff-pilule.active{border-color:var(--fc-accent);background:var(--fc-teinte)}
  .ff-nb{display:none;min-width:16px;height:16px;border-radius:8px;background:var(--fc-accent);color:var(--fc-blanc);font-size:11px;font-weight:700;place-items:center;padding:0 5px;box-sizing:border-box}
  .ff-pilule.active .ff-nb{display:inline-grid}
  .bc-bandeau{flex-wrap:wrap;gap:14px;padding:18px 4px}
  .bc-av{width:32px;height:32px}
  .bc-bureau{display:none}
  .bc-mobile{display:inline}
  .bc-texte b:first-child,.bc-note{display:block}
  .bc-texte{font-size:15px}
  .bc-bouton{width:100%;justify-content:center;padding:14px 18px}
  .bf-barre{display:flex;position:fixed;left:10px;right:10px;bottom:calc(22px + env(safe-area-inset-bottom, 0px));z-index:9000;align-items:center;gap:10px;background:var(--fc-sombre);color:var(--fc-blanc);border-radius:16px;padding:9px 9px 9px 14px;box-shadow:0 14px 30px -10px var(--theme-ombre);transform:translateY(140%);transition:transform .25s ease}
  .bf-barre.visible{transform:none}
  /* Remontée au-dessus des coins arrondis et de la barre d'accueil de l'iPhone ; croix pour la masquer (Alexandre, 10/11/2026). */
  .bf-barre.fermee{display:none}
  /* Safari iOS 26 ne dessine pas un élément fixe sous ses commandes repliées : la barre sortait du bas de l'écran de
     l'iPhone (Alexandre, 10/11/2026). Sur iOS seulement, elle reste au-dessus de la zone des barres de Safari (100lvh - 100svh). */
  @supports (-webkit-touch-callout:none){.bf-barre{bottom:max(calc(16px + env(safe-area-inset-bottom, 0px)), calc(100lvh - 100svh + 16px))}}
  .bf-fermer{position:absolute;top:-12px;right:-4px;width:26px;height:26px;display:grid;place-items:center;border:2px solid var(--fc-blanc);border-radius:50%;background:var(--fc-sombre);color:var(--fc-blanc);font:700 15px/1 inherit;cursor:pointer;padding:0}
  .bf-texte{display:flex;flex-direction:column;flex:1;min-width:0;font-size:12px;color:var(--fc-teinte);line-height:1.3}
  .bf-texte b{font-size:13.5px;color:var(--fc-blanc);white-space:nowrap}
  .bf-bouton{flex:none;white-space:nowrap;background:var(--fc-accent);color:var(--fc-blanc);font-weight:700;font-size:13.5px;padding:11px 14px;border-radius:12px;text-decoration:none}
  body.bf-active{padding-bottom:104px}
  :is(#listGrid, .hero-equipe) article.pcard.equipe.encart-message .ppanel .eq-msg-actions{flex-direction:column}
}
