/* =====================================================================
   Passe premium 2026 — contenus et pages publiques (groupe 2)
   Détail d'un post / d'une annonce, Contacter l'annonceur, annuaire des Pages Pro,
   participants d'un événement, assistants IA, fil public.
   Chaque bloc est limité à une classe racine (p24-*), rien ne touche les autres pages.
   Échelle d'espacement : 4/8/12/16/24/32/48/64. Fond #F4F7F8, filet #E3EBEE, rayon 16.
   ===================================================================== */

:root {
  --p24-ink: #0D2B3A;
  --p24-text: #2B4553;
  --p24-muted: #5B7684;
  --p24-line: #E3EBEE;
  --p24-petrol: #073A50;
  --p24-brand: #006289;
  --p24-pink: #E71D72;
  --p24-bg: #F4F7F8;
  --p24-shadow: 0 1px 2px rgba(13, 43, 58, .05);
}

/* ---------------------------------------------------------------------
   1. Bandeau des pages de détail (post, annonce) : fil d'Ariane, étiquettes, titre
   --------------------------------------------------------------------- */
html body .cab-pagehead.cab-pagehead--band.p24-band {
  padding: 14px 0 24px !important;
  margin-bottom: 24px !important;
}
/* Fil d'Ariane + type + pastilles sur UNE ligne, le titre dessous sur toute la largeur */
.p24-band .cab-pagehead__in.p24-band__in {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px;
  width: min(1104px, calc(100% - 2rem));
  max-width: none;
  margin: 0 auto;
  padding: 0 !important;
}
.p24-band .pd-crumb { min-height: 0; padding: 0; margin: 0; gap: 8px; flex: 0 0 auto; }
.p24-band .pd-crumb a { color: #fff; opacity: .92; min-height: 40px; }
.p24-band .pd-crumb a:hover { color: #fff; opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.p24-band .pd-crumb__sep { color: rgba(255, 255, 255, .55); font-size: 0; }
.p24-band .pd-crumb__sep::before { content: "·"; font-size: 14px; font-weight: 700; }
.p24-band .pd-crumb__here { color: #C5DCE5; }
.p24-band .pd-kicker { margin: 0; gap: 0 8px; flex: 1 1 auto; min-width: 0; }
/* Métadonnées en simple texte séparé par « · » (plus de capsules) ; le type est déjà dans le fil d'Ariane */
.p24-band .pd-type { display: none; }
.p24-band .pd-chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 0; padding: 0; border: 0; border-radius: 0;
  background: transparent; font-size: 14px; font-weight: 500; line-height: 1.4; color: #C5DCE5;
}
.p24-band .pd-chip::before { content: "·"; color: rgba(255, 255, 255, .55); font-weight: 700; }
.p24-band .pd-chip--cat { background: transparent; border: 0; color: #fff; font-weight: 600; }
.p24-band a.pd-chip:hover { background: transparent; color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.p24-band .pd-chip--urgent { background: transparent; border: 0; color: #FFC2D6; font-weight: 700; }
html body .p24-band .p24-band__title {
  margin: 6px 0 0 !important;
  flex: 1 1 100%;
  max-width: 100% !important;
  padding: 0 !important;
  font-family: 'Newsreader', Georgia, serif !important;
  font-weight: 500 !important;
  font-size: clamp(1.625rem, 1.2rem + 1.3vw, 2.375rem) !important;
  line-height: 1.1 !important;
  letter-spacing: -.02em !important;
  color: #fff !important;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
@media (min-width: 900px) { html body .p24-band .p24-band__title { max-width: 60rem !important; } }
html body .p24-band .p24-band__title.pd-title--masked { color: #C5DCE5 !important; font-style: italic; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem) !important; }
@media (max-width: 767.98px) {
  html body .cab-pagehead.cab-pagehead--band.p24-band { padding: 6px 0 18px !important; margin-bottom: 16px !important; }
  .p24-band .cab-pagehead__in.p24-band__in { width: calc(100% - 44px); gap: 0 12px; }
  /* mobile : le type est déjà dans le fil d'Ariane, on garde les pastilles sur la ligne suivante */
  .p24-band .pd-kicker { flex: 1 1 100%; margin-bottom: 0; }
  .p24-band .pd-kicker > .pd-type + .pd-chip::before { display: none; }
}
/* Fiche annonce : fil d'Ariane + rubrique + sens sur UNE seule ligne (retour à la ligne propre si trop étroit) */
@media (max-width: 767.98px) {
  .p24-band--ligne .cab-pagehead__in.p24-band__in { gap: 0 6px; }
  .p24-band--ligne .pd-crumb { gap: 6px; }
  .p24-band--ligne .pd-kicker { flex: 0 1 auto; gap: 0 6px; }
  .p24-band--ligne .pd-chip { gap: 6px; font-size: 13px; }
  .p24-band--ligne .pd-crumb a, .p24-band--ligne .pd-crumb__here { font-size: 13px; }
}
/* Fil d'Ariane aligné (3.0.1069) : éléments serrés à gauche (plus de « space-between » qui creusait un trou
   entre « Annonce » et la rubrique), même point « · » de 14 px partout, et chevron « ‹ » calé sur la marge du titre
   (le tracé commence à 6 px dans son carré de 18 px) avec 6 px jusqu'au texte, comme les séparateurs. */
.p24-band .cab-pagehead__in.p24-band__in { justify-content: flex-start; }
.p24-band .pd-chip::before, .p24-band .pd-crumb__sep::before { font-size: 14px; line-height: 1; }
.p24-band .pd-crumb__sep { display: inline-flex; align-items: center; line-height: 1; }
.p24-band .pd-crumb svg { margin-left: -6px; margin-right: -8px; }
/* Fiche annonce (3.0.1070) : le point « · » est posé au milieu de l'écart de 14 px (6 + point + 6) AVANT chaque
   rubrique/type ; le bandeau coupe tout ce qui dépasse à gauche (overflow-x: clip), donc un élément renvoyé
   en début de ligne n'affiche jamais de point initial. */
.p24-band--ligne .cab-pagehead__in.p24-band__in { overflow-x: clip; column-gap: 14px; }
.p24-band--ligne .pd-kicker { column-gap: 14px; }
.p24-band--ligne .pd-chip { position: relative; gap: 0; }
.p24-band--ligne .pd-chip::before {
  position: absolute; left: -10px; top: 50%; width: 6px; transform: translateY(-50%);
  text-align: center; pointer-events: none;
}

/* Corps de page */
.p24-pd.pd-page { background: var(--p24-bg); padding-bottom: 64px; }
.p24-pd .pd-shell { width: min(1104px, calc(100% - 2rem)); }
@media (max-width: 767.98px) { .p24-pd .pd-shell { width: calc(100% - 32px); } }
.p24-pd .pd-live { margin-bottom: 24px; }
.p24-pd .pd-layout { gap: 24px; }
@media (min-width: 1024px) {
  .p24-pd .pd-layout { grid-template-columns: minmax(0, 1fr) 328px; gap: 32px; }
  .p24-pd .pd-rail { top: 97px; }
}
.p24-pd .pd-article,
.p24-pd .pd-card {
  border-color: var(--p24-line);
  border-radius: 16px;
  box-shadow: var(--p24-shadow);
}
.p24-pd .pd-article { padding: 24px 20px 16px; }
@media (min-width: 768px) { .p24-pd .pd-article { padding: 32px 48px 20px; } }
.p24-pd .pd-card { padding: 24px; }
@media (max-width: 767.98px) { .p24-pd .pd-card { padding: 20px; } }
.p24-pd .pd-byline { padding-bottom: 24px; margin-bottom: 24px; border-bottom-color: var(--p24-line); }
.p24-pd .pd-byline__name { font-size: 15px; }
.p24-pd .pd-byline__meta { font-size: 13.5px; color: var(--p24-muted); }
.p24-pd .pd-lead { font-size: 1.1875rem; line-height: 1.6; color: var(--p24-ink); margin-bottom: 20px; }
.p24-pd .pd-body { font-size: 1.0625rem; line-height: 1.75; color: var(--p24-text); }
.p24-pd .pd-body:first-child { margin-top: 0; }
.p24-pd .pd-facts { margin-top: 32px; padding: 20px 24px; background: #F4F7F8; border: 1px solid var(--p24-line); border-radius: 14px; }
.p24-pd .pd-fact dt { font-size: 12px; letter-spacing: .04em; text-transform: uppercase; font-weight: 600; color: var(--p24-muted); }
.p24-pd .pd-fact dd { font-size: 15.5px; }
.p24-pd .pd-fact__icon { border: 1px solid var(--p24-line); }
.p24-pd .pd-foot { margin-top: 32px; border-top-color: var(--p24-line); }
.p24-pd .pd-card__label { font-size: 11.5px; letter-spacing: .12em; margin-bottom: 16px; }
.p24-pd .pd-who { margin-bottom: 24px; }
.p24-pd .pd-actions { gap: 12px; }
.p24-pd .pd-btn { min-height: 44px; border-radius: 12px; }
.p24-pd .pd-more { margin-top: 16px; }
.p24-pd .pd-rail { gap: 16px; }
.p24-pd .pd-back { border-radius: 16px; }
.p24-pd .pd-icon-btn { height: 44px; }

/* ---------------------------------------------------------------------
   2. Primitives communes (bandeau de page, cartes, boutons, étiquettes)
   --------------------------------------------------------------------- */
body main.p24-main { padding-top: 73px !important; }
@media (max-width: 767.98px) { body main.p24-main { padding-top: 0 !important; margin-top: 0 !important; } }

html body .cab-pagehead.cab-pagehead--band.p24-pagehead {
  padding: 26px 0 24px !important;
  margin-bottom: 24px !important;
}
.p24-pagehead .cab-pagehead__in { align-items: flex-end; }
.p24-pagehead .cab-pagehead__title { font-size: clamp(1.625rem, 1.2rem + 1.3vw, 2.375rem) !important; line-height: 1.1 !important; letter-spacing: -.02em; }
.p24-pagehead .cab-pagehead__sub { margin-top: 4px !important; font-size: 15px; line-height: 1.45; }
.p24-pagehead .cab-pagehead__sub > span { max-width: 96ch; }
@media (max-width: 767.98px) {
  html body .cab-pagehead.cab-pagehead--band.p24-pagehead { padding: 18px 0 18px !important; margin-bottom: 14px !important; }
  .p24-pagehead .cab-pagehead__sub { margin-top: 4px !important; font-size: 14px; }
  .p24-pagehead .p24-count-pill { order: 2; flex: 0 0 auto; font-size: 13.5px; }
}

.p24-card {
  background: #fff;
  border: 1px solid var(--p24-line);
  border-radius: 16px;
  box-shadow: var(--p24-shadow);
  padding: 28px 32px;
  min-width: 0;
}
@media (max-width: 767.98px) { .p24-card { padding: 20px; } }
.p24-eyebrow {
  margin: 0 0 12px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--p24-muted);
}
.p24-h2 {
  margin: 0 0 8px;
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 500; font-size: 1.375rem; line-height: 1.25; letter-spacing: -.01em;
  color: var(--p24-ink);
}
.p24-help { margin: 0 0 16px; font-size: 13.5px; line-height: 1.5; color: var(--p24-muted); }
.p24-label { font-size: 14px; font-weight: 600; color: var(--p24-ink); line-height: 1.4; }

.p24-pill {
  display: inline-flex; align-items: center; min-height: 26px; padding: 2px 12px;
  border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .02em;
}
.p24-pill--ask { background: #E6F2F7; color: #073A50; }
.p24-pill--offer { background: #E3F4EA; color: #14532D; }
.p24-ia { display: inline-block; vertical-align: 3px; padding: 1px 8px; border-radius: 999px; background: #E3F4EA; color: #14532D; font-family: 'Instrument Sans', system-ui, sans-serif; font-size: 11px; font-weight: 700; }

.p24-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 22px; border-radius: 12px;
  border: 1px solid transparent; font: inherit; font-size: 15px; font-weight: 600; line-height: 1.2;
  text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, box-shadow .15s;
}
.p24-btn:focus-visible { outline: 3px solid rgba(0, 98, 137, .35); outline-offset: 2px; }
.p24-btn--primary { background: var(--p24-brand); color: #fff !important; }
.p24-btn--primary:hover { background: var(--p24-petrol); }
.p24-btn--send { background: var(--p24-pink); color: #fff !important; box-shadow: none; }
.p24-btn--send:hover { background: #C9135F; }
.p24-btn--ghost { background: #fff; color: var(--p24-petrol) !important; border-color: #CBD9DF; }
.p24-btn--ghost:hover { border-color: var(--p24-brand); color: var(--p24-brand) !important; }
.p24-alert { margin: 0 0 16px; padding: 16px 20px; border-radius: 14px; font-size: 14.5px; line-height: 1.5; }
.p24-alert--warn { background: #FFF8E6; border: 1px solid #F3DFA2; color: #5C4410; }
.p24-alert--err { background: #FDF1F4; border: 1px solid #F4C6D2; color: #8A1C3A; }
.p24-alert ul { margin: 0; padding-left: 18px; }

/* ---------------------------------------------------------------------
   3. Contacter l'annonceur / Détail de l'annonce (affichage_annonce.html)
   --------------------------------------------------------------------- */
.p24-aff { width: min(69rem, calc(100% - 3rem)); margin: 0 auto; padding: 0 0 64px; }
@media (max-width: 767.98px) { .p24-aff { width: calc(100% - 32px); padding-bottom: 48px; } }
.p24-aff > .info-volet, .p24-aff > div[x-data] { margin-bottom: 24px; }
.p24-aff__grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); align-items: start; }
.p24-aff__side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.p24-aff__main { min-width: 0; }
@media (min-width: 1024px) {
  .p24-aff__grid { grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; grid-template-areas: "main side"; }
  .p24-aff__main { grid-area: main; }
  .p24-aff__side { grid-area: side; position: sticky; top: 97px; }
}
.p24-aff__side .p24-card { padding: 24px; }
.p24-fiche-title {
  margin: 0 0 16px;
  font-family: 'Newsreader', Georgia, serif; font-weight: 500; font-size: 1.375rem; line-height: 1.25; letter-spacing: -.01em;
  color: var(--p24-ink); overflow-wrap: anywhere;
}
.p24-masked { font-style: italic; color: var(--p24-muted); }
.p24-fiche { margin: 0; display: grid; gap: 12px; }
.p24-fiche > div { display: grid; gap: 2px; }
.p24-fiche dt { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--p24-muted); }
.p24-fiche dd { margin: 0; font-size: 15px; font-weight: 500; color: var(--p24-ink); }
.p24-stars { display: inline-flex; gap: 2px; font-size: 17px; line-height: 1; color: #D5E0E5; }
.p24-stars .is-on { color: #F2B01E; }
.p24-fiche-more { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--p24-line); }
.p24-fiche-more__label { margin: 0 0 8px; font-size: 14px; font-weight: 600; color: var(--p24-ink); }
.p24-quote { margin: 0; padding: 12px 16px; border-radius: 12px; background: #F4F7F8; font-size: 14.5px; line-height: 1.6; color: var(--p24-text); white-space: pre-line; overflow-wrap: anywhere; }
.p24-line { margin: 0 0 4px; font-size: 14.5px; line-height: 1.5; color: var(--p24-ink); overflow-wrap: anywhere; }
.p24-line span { display: block; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--p24-muted); }
.p24-line a { color: var(--p24-brand); font-weight: 600; }

.p24-card--form { padding: 32px; }
@media (max-width: 767.98px) { .p24-card--form { padding: 20px; } }
.p24-group + .p24-group { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--p24-line); }
.p24-checks { display: grid; gap: 8px; }
.p24-check {
  display: flex; align-items: flex-start; gap: 12px;
  min-height: 56px; padding: 16px; border: 1px solid var(--p24-line); border-radius: 12px; background: #fff;
  transition: background .15s, border-color .15s;
}
.p24-check:hover { background: #F8FAFB; }
.p24-check:has(input:checked) { background: #F0F7FA; border-color: #BCD9E5; }
.p24-check > label { flex: 1; font-size: 14.5px; font-weight: 500; line-height: 1.5; color: var(--p24-ink); cursor: pointer; padding: 0; margin: 0; }
.p24-check > input[type=checkbox] { margin-top: 1px; flex-shrink: 0; }
.p24-msg-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 8px; }
.p24-count { font-size: 13px; color: var(--p24-muted); font-variant-numeric: tabular-nums; }
.p24-textarea { display: block; width: 100%; min-height: 140px; resize: vertical; }
.p24-actions { margin-top: 32px; display: grid; gap: 16px; }
.p24-actions > .p24-btn--primary { justify-self: start; }
.p24-preview { padding-top: 24px; border-top: 1px solid var(--p24-line); }
.p24-preview__box { padding: 20px; background: #F4F7F8; border: 1px solid var(--p24-line); border-radius: 14px; color: var(--p24-ink); font-size: 15px; line-height: 1.6; max-width: none; }
.p24-preview__actions { margin-top: 16px; display: flex; gap: 12px; flex-wrap: wrap; }
.p24-back { padding-top: 8px; }
.p24-back .btn { min-height: 44px; border-radius: 12px; font-size: 15px; font-weight: 600; }
.p24-card--empty { text-align: center; padding: 48px 32px; }
.p24-empty__icon { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; margin-bottom: 16px; border-radius: 50%; background: #E6F2F7; color: var(--p24-brand); }
.p24-empty__icon svg { width: 26px; height: 26px; }
.p24-card--empty .p24-help { max-width: 44ch; margin: 0 auto 24px; font-size: 15px; }
.p24-empty__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
@media (max-width: 767.98px) {
  .p24-actions > .p24-btn--primary, .p24-preview__actions > .p24-btn { width: 100%; justify-self: stretch; }
  .p24-empty__actions > * { width: 100%; }
}

/* ---------------------------------------------------------------------
   4. Annuaire des Pages Pro (entreprise_public_list.html)
   Les styles de base viennent des gabarits partagés _mpp_*.html (aussi utilisés par
   « Mes pages pro ») : tout est donc surchargé ici sous .p24-dir, jamais ailleurs.
   --------------------------------------------------------------------- */
.p24-pagehead .cab-pagehead__in { gap: 8px 32px; }
.p24-count-pill {
  margin: 0; display: inline-flex; align-items: center; gap: 6px; min-height: 0; padding: 0;
  border-radius: 0; background: transparent; border: 0;
  color: #C5DCE5; font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums;
}
.p24-count-pill strong { font-weight: 700; color: #fff; }
.p24-count-pill__sep { margin: 0 4px; opacity: .55; }

.p24-dir { width: min(69rem, calc(100% - 3rem)); margin: 0 auto; padding: 0 0 64px; }
@media (max-width: 767.98px) { .p24-dir { width: calc(100% - 32px); padding-bottom: 48px; } }
.p24-dir > .info-volet { margin-bottom: 24px; }

/* Bandeau « Voir ma liste » : une ligne calme, sans dégradé */
body .p24-dir .pp-mes-pages-cta {
  margin: 0 0 24px; padding: 16px 24px; border-radius: 16px; gap: 16px 24px;
  background: #fff !important; background-image: none !important;
  border: 1px solid var(--p24-line); box-shadow: var(--p24-shadow);
}
.p24-dir .pp-mes-pages-cta__text { font-size: 14.5px; line-height: 1.55; color: var(--p24-text); font-weight: 400; }
.p24-dir .pp-mes-pages-cta__text strong { color: var(--p24-ink); font-weight: 600; }
body .p24-dir .pp-mes-pages-cta__btn {
  min-height: 44px; padding: 0 20px; border-radius: 12px; font-size: 14.5px; font-weight: 600;
  background: #fff; color: var(--p24-petrol); border: 1px solid #CBD9DF; box-shadow: none; transform: none;
}
body .p24-dir .pp-mes-pages-cta__btn:hover { background: #F4F7F8; border-color: var(--p24-brand); color: var(--p24-brand); transform: none; box-shadow: none; }

/* Recherche : un seul champ, loupe intégrée, même hauteur que le bouton */
.p24-dir .mpp-search-form { margin: 0 0 16px; }
.p24-dir .mpp-search-form__inner {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 12px;
  background: #fff; border: 1px solid var(--p24-line); border-radius: 16px; box-shadow: var(--p24-shadow);
}
.p24-dir .mpp-search-form__icon { position: absolute; left: 30px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--p24-muted); pointer-events: none; z-index: 1; }
body .p24-dir .mpp-search-form__input {
  flex: 1; min-width: 0; height: 44px; padding: 0 16px 0 44px; font-size: 15px;
  border: 1px solid #CBD9DF; border-radius: 12px; background: #fff; color: var(--p24-ink); box-shadow: none;
}
body .p24-dir .mpp-search-form__input:focus { outline: none; border-color: var(--p24-brand); box-shadow: 0 0 0 3px rgba(0, 98, 137, .16); }
body .p24-dir .mpp-search-form__btn {
  height: 44px; padding: 0 24px; border-radius: 12px; border: 0; font-size: 15px; font-weight: 600;
  background: var(--p24-brand); color: #fff; cursor: pointer;
}
body .p24-dir .mpp-search-form__btn:hover { background: var(--p24-petrol); }
body .p24-dir .mpp-search-form__clear { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; }
@media (max-width: 767.98px) {
  .p24-dir .mpp-search-form__inner { padding: 8px; gap: 8px; }
  .p24-dir .mpp-search-form__icon { left: 22px; }
  body .p24-dir .mpp-search-form__btn { padding: 0 16px; }
}

/* Filtres (carte sur ordinateur, tiroir sur mobile : le tiroir reste celui du gabarit) */
@media (min-width: 768px) {
  body .p24-dir .ppf-card { padding: 28px 32px; margin: 0 0 24px; border: 1px solid var(--p24-line); border-radius: 16px !important; box-shadow: var(--p24-shadow); }
}
body .p24-dir .ppf-card-title {
  margin: 0 0 16px !important; font-size: 11.5px !important; font-weight: 700 !important; letter-spacing: .12em !important;
  text-transform: uppercase; color: var(--p24-muted) !important; font-family: 'Instrument Sans', system-ui, sans-serif !important;
}
.p24-dir .ppf-card [role="group"][aria-label="Filtrer par votre rôle"] { gap: 8px !important; margin-bottom: 24px !important; }
body .p24-dir .ppf-role-btn {
  min-height: 40px; padding: 0 16px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  background: #fff; border: 1px solid #CBD9DF; color: var(--p24-text);
}
body .p24-dir .ppf-role-btn:hover { background: #F4F7F8; border-color: var(--p24-brand); color: var(--p24-brand); }
body .p24-dir .ppf-role-btn.is-active { background: var(--p24-petrol); border-color: var(--p24-petrol); color: #fff; }
.p24-dir .ppf-card .label-base { display: block; margin: 0 0 8px; font-size: 14px; font-weight: 600; color: var(--p24-ink); }
body .p24-dir .ppf-card select { height: 44px; padding: 0 40px 0 14px; border-radius: 12px; border: 1px solid #CBD9DF; font-size: 15px; color: var(--p24-ink); background-color: #fff; }
.p24-dir .ppf-card fieldset .grid { gap: 16px 24px !important; }
body .p24-dir #reset-selects {
  margin-top: 24px !important; min-height: 40px; padding: 0 16px !important; border-radius: 12px !important;
  background: #fff !important; border: 1px solid #CBD9DF !important; color: var(--p24-petrol) !important; font-size: 14px !important; font-weight: 600 !important;
}
body .p24-dir #reset-selects:hover { border-color: var(--p24-brand) !important; color: var(--p24-brand) !important; }
body .p24-dir .ppf-role-active-banner { border-radius: 12px; background: #F0F7FA; border-color: #BCD9E5; }
body .p24-dir .ppf-trigger { background: var(--p24-petrol); border-color: var(--p24-petrol); border-radius: 14px; min-height: 48px; }

/* Pagination */
body .p24-dir .mpp-pagination { padding: 12px 16px; border: 1px solid var(--p24-line); border-radius: 16px; box-shadow: var(--p24-shadow); }
.p24-dir .mpp-pagination--top { margin-bottom: 24px; }
.p24-dir .mpp-pagination--bottom { margin-top: 32px; }

/* Bascule cartes / liste : remontée au-dessus des résultats, alignée à droite */
.p24-dir__wrap { display: flex; flex-direction: column; }
.p24-dir__wrap > .pagespro-view-root { order: 2; }
body .p24-dir__wrap > .mpp-toolbar {
  order: 1; flex-direction: row; justify-content: space-between; align-items: center; flex-wrap: wrap;
  margin: 0 0 16px; padding: 0; border-top: 0; gap: 12px;
}
.p24-dir .mpp-toolbar-hint { order: 0; font-size: 13px; color: var(--p24-muted); }
.p24-dir .mpp-toolbar-hint kbd { font-size: 11px; border-radius: 6px; background: #fff; border: 1px solid #CBD9DF; color: var(--p24-text); }
.p24-dir .mpp-toggle-group { display: inline-flex; padding: 4px; gap: 4px; background: #fff; border: 1px solid var(--p24-line); border-radius: 12px; }
body .p24-dir .mpp-toggle-group button { min-height: 36px; padding: 0 14px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--p24-muted); background: transparent; border: 0; }
body .p24-dir .mpp-toggle-group button.is-active { background: var(--p24-petrol); color: #fff; }
@media (max-width: 767.98px) {
  .p24-dir .mpp-toolbar-hint { display: none; }
  .p24-dir .mpp-view-switcher { width: 100%; }
  .p24-dir .mpp-toggle-group { width: 100%; }
  body .p24-dir .mpp-toggle-group button { flex: 1; min-height: 40px; }
}

/* Cartes : même rythme que le reste du site */
body .p24-dir .mpp-grid { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
@media (max-width: 767.98px) { body .p24-dir .mpp-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; } }
body .p24-dir .mpp-card { border: 1px solid var(--p24-line); border-radius: 16px !important; box-shadow: var(--p24-shadow); cursor: pointer; overflow: hidden; }
body .p24-dir .mpp-card:hover { transform: none; box-shadow: 0 8px 24px -12px rgba(13, 43, 58, .18); border-color: #CBD9DF; }
body .p24-dir .mpp-hero-wrap { height: 112px; border-radius: 0 !important; }
.p24-dir .mpp-body { padding: 0 24px 24px; }
.p24-dir .mpp-logo-row { margin-top: -28px; margin-bottom: 16px; }
body .p24-dir .mpp-logo { box-shadow: 0 0 0 1px var(--p24-line); border-radius: 14px; }
.p24-dir .p24-dir-logo--empty { background: var(--p24-petrol); }
.p24-dir .p24-dir-logo--empty .mpp-logo-initial { color: #fff; }
body .p24-dir .mpp-name { margin: 0 0 4px; font-family: 'Newsreader', Georgia, serif; font-size: 1.3125rem; font-weight: 500; line-height: 1.25; letter-spacing: -.01em; color: var(--p24-ink); overflow-wrap: anywhere; }
body .p24-dir .mpp-sector { margin: 0 0 12px; font-size: 14px; color: var(--p24-muted); }
.p24-dir .p24-dir-muted { font-style: normal; color: #8AA0AB; }
.p24-dir .p24-dir-desc { margin: 0 0 16px; font-size: 14.5px; line-height: 1.55; color: var(--p24-text); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.p24-dir .mpp-meta { gap: 6px 16px; margin-bottom: 24px; }
body .p24-dir .mpp-meta-item { font-size: 13.5px; color: var(--p24-muted); }
body .p24-dir .mpp-meta-item svg { width: 14px; height: 14px; color: #8AA0AB; }
.p24-dir .p24-dir-actions { margin-top: auto; display: flex; gap: 8px; }
body .p24-dir .p24-dir-view {
  flex: 1; min-height: 44px; padding: 0 16px; border-radius: 12px; font-size: 15px; font-weight: 600;
  background: #fff; color: var(--p24-petrol); border: 1px solid #CBD9DF;
}
body .p24-dir .p24-dir-view:hover { background: #F4F7F8; border-color: var(--p24-brand); color: var(--p24-brand); }
.p24-dir .p24-dir-view svg { width: 16px; height: 16px; }
.p24-dir .p24-dir-settings {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 16px;
  border-radius: 12px; border: 1px solid #CBD9DF; background: #fff; color: var(--p24-petrol);
  font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.p24-dir .p24-dir-settings:hover { background: #F4F7F8; border-color: var(--p24-brand); color: var(--p24-brand); }
.p24-dir .p24-dir-settings svg { width: 16px; height: 16px; }
body .p24-dir .mpp-role-tag { min-height: 24px; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }

/* États vides */
body .p24-dir .mpp-empty { padding: 48px 24px; }
body .p24-dir .mpp-empty-icon { width: 56px; height: 56px; border-radius: 50%; background: #E6F2F7; }
body .p24-dir .mpp-empty-icon svg { width: 26px; height: 26px; }
.p24-dir .p24-dir-empty__title { margin: 0 0 8px; font-family: 'Newsreader', Georgia, serif; font-size: 1.25rem; font-weight: 500; color: var(--p24-ink); }
.p24-dir .p24-dir-empty__text { margin: 0; max-width: 40ch; font-size: 15px; line-height: 1.55; color: var(--p24-muted); }

/* Vue liste (tableau) */
body .p24-dir .mpp-table-wrap { border: 1px solid var(--p24-line); border-radius: 16px; box-shadow: var(--p24-shadow); }
body .p24-dir .mpp-table-wrap thead { background: #F4F7F8; }
body .p24-dir .mpp-table-wrap th { padding: 14px 20px; font-size: 11.5px; letter-spacing: .1em; color: var(--p24-muted); border-bottom: 1px solid var(--p24-line); }
body .p24-dir .mpp-table-wrap td { padding: 16px 20px; font-size: 14.5px; color: var(--p24-text); border-bottom: 1px solid #EEF3F5; }
body .p24-dir .mpp-table-wrap td:first-child > div:first-child { font-size: 15px; color: var(--p24-ink); }
body .p24-dir .mpp-table-wrap tbody tr:hover { background: #F8FAFB; }
body .p24-dir .mpp-table-actions a { min-height: 40px; padding: 0 14px; border-radius: 10px; font-size: 14px; font-weight: 600; }
body .p24-dir .mpp-table-actions a.primary { background: #fff; color: var(--p24-petrol); border: 1px solid #CBD9DF; }
body .p24-dir .mpp-table-actions a.primary:hover { background: #F4F7F8; color: var(--p24-brand); border-color: var(--p24-brand); }

/* ---------------------------------------------------------------------
   5. Contacts présents d'un événement (evenement_participants.html)
   --------------------------------------------------------------------- */
.p24-part { padding-bottom: 64px; }
.p24-part__body { width: min(69rem, calc(100% - 3rem)); margin: 0 auto; }
@media (max-width: 767.98px) { .p24-part__body { width: calc(100% - 32px); } .p24-part { padding-bottom: 48px; } }
.p24-toolbar { background: #fff; border: 1px solid var(--p24-line); border-radius: 16px; box-shadow: var(--p24-shadow); padding: 16px; }
.p24-toolbar__row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.p24-search { position: relative; flex: 1 1 320px; min-width: 0; }
.p24-search__icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--p24-muted); pointer-events: none; }
body .p24-search .p24-search__input {
  display: block; width: 100%; height: 44px; padding: 0 44px 0 44px; font-size: 15px; color: var(--p24-ink);
  border: 1px solid #CBD9DF; border-radius: 12px; background: #fff; box-shadow: none;
}
body .p24-search .p24-search__input:focus { outline: none; border-color: var(--p24-brand); box-shadow: 0 0 0 3px rgba(0, 98, 137, .16); }
.p24-search__clear { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; background: none; color: var(--p24-muted); font-size: 22px; line-height: 1; cursor: pointer; border-radius: 10px; }
.p24-search__clear:hover { background: #F4F7F8; color: var(--p24-ink); }
.p24-toolbar__btns { display: flex; gap: 8px; flex-wrap: wrap; }
.p24-toolbar__btns .p24-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.p24-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--p24-petrol); color: #fff; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
@media (max-width: 767.98px) {
  .p24-toolbar { padding: 12px; }
  .p24-search { flex-basis: 100%; }
  .p24-toolbar__btns { width: 100%; }
  .p24-toolbar__btns .p24-btn { flex: 1; padding: 0 12px; }
}
.p24-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--p24-line); }
.p24-chips__label { font-size: 13px; font-weight: 600; color: var(--p24-muted); margin-right: 4px; }
.p24-chip { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; padding: 0 4px 0 12px; border-radius: 999px; background: #E6F2F7; color: var(--p24-petrol); font-size: 13.5px; font-weight: 600; }
.p24-chip a { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; color: var(--p24-petrol); text-decoration: none; font-size: 16px; }
.p24-chip a:hover { background: rgba(7, 58, 80, .1); }
.p24-chips__reset { font-size: 13.5px; font-weight: 600; color: var(--p24-brand); text-decoration: underline; text-underline-offset: 3px; min-height: 32px; display: inline-flex; align-items: center; }

.p24-part__list { margin-top: 48px; }
.p24-part__list > .p24-h2 { margin-bottom: 24px; }
.p24-people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
@media (max-width: 767.98px) { .p24-people { grid-template-columns: minmax(0, 1fr); } }
.p24-person { background: #fff; border: 1px solid var(--p24-line); border-radius: 16px; box-shadow: var(--p24-shadow); padding: 24px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
@media (max-width: 767.98px) { .p24-person { padding: 20px; } }
.p24-person__top { display: flex; gap: 16px; align-items: flex-start; min-width: 0; }
.p24-person__avatar { position: relative; flex: 0 0 56px; width: 56px; height: 56px; border-radius: 14px; background: var(--p24-petrol); color: #fff; display: flex; align-items: center; justify-content: center; font-family: 'Newsreader', Georgia, serif; font-size: 1.25rem; font-weight: 500; }
.p24-person__avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; display: block; }
.p24-person__flag { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 1px solid var(--p24-line); display: flex; align-items: center; justify-content: center; color: #B4234A; }
.p24-person__flag svg { width: 12px; height: 12px; }
.p24-person__id { min-width: 0; flex: 1; }
.p24-person__name { margin: 0; font-size: 1.0625rem; font-weight: 700; line-height: 1.3; color: var(--p24-ink); overflow-wrap: anywhere; }
.p24-person__company { margin: 2px 0 0; font-size: 14.5px; font-weight: 600; color: var(--p24-brand); overflow-wrap: anywhere; }
.p24-person__meta { margin: 2px 0 0; font-size: 13.5px; color: var(--p24-muted); overflow-wrap: anywhere; }
.p24-person__note { margin: 0; padding: 8px 12px; border-radius: 10px; background: #FFF8E6; color: #5C4410; font-size: 13.5px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.p24-person__actions { margin-top: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding-top: 16px; border-top: 1px solid var(--p24-line); }
.p24-person__actions .p24-btn { min-width: 0; padding: 0 8px; font-size: 14.5px; }
.p24-btn--off { background: #F4F7F8; color: #8AA0AB; border-color: transparent; cursor: default; }

/* ---------------------------------------------------------------------
   6. Assistants IA (chatbot_annonce.html, aide-ia.html)
   Principes : l'état vide et la saisie guident (capacité de l'assistant dite dans le bandeau),
   bulles lisibles (interlocuteur à gauche en gris clair, vous à droite en pétrole),
   saisie fixe en bas de la zone, envoi par un bouton rond avec libellé accessible.
   --------------------------------------------------------------------- */
.p24-btn.hidden, .p24-msg.hidden { display: none; }
.p24-chat { width: min(69rem, calc(100% - 3rem)); margin: 0 auto; padding: 0 0 64px; }
.p24-chat--narrow { width: min(53rem, calc(100% - 3rem)); }
@media (max-width: 767.98px) { .p24-chat, .p24-chat--narrow { width: calc(100% - 32px); padding-bottom: 48px; } }
.p24-chat > .info-volet, .p24-chat > div[x-data] { margin-bottom: 24px; }
.p24-chat__panel { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--p24-line); border-radius: 16px; box-shadow: var(--p24-shadow); overflow: hidden; }
.p24-chat__bar { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 20px 24px; border-bottom: 1px solid var(--p24-line); }
.p24-chat__model { display: grid; gap: 6px; min-width: 0; flex: 1 1 260px; max-width: 420px; }
body .p24-chat__model select { height: 44px; padding: 0 40px 0 14px; border-radius: 12px; border: 1px solid #CBD9DF; font-size: 15px; background-color: #fff; color: var(--p24-ink); width: 100%; }
.p24-btn--danger { color: #8A1C3A !important; }
.p24-btn--danger:hover { border-color: #B4234A; color: #B4234A !important; }
.p24-btn--danger svg { width: 16px; height: 16px; flex-shrink: 0; }
.p24-btn--danger[disabled] { opacity: .5; cursor: default; }
.p24-chat__messages { display: flex; flex-direction: column; gap: 16px; min-height: 320px; max-height: 60vh; overflow-y: auto; padding: 24px; background: #fff; }
.p24-chat--narrow .p24-chat__messages { min-height: 280px; }
.p24-msg { display: flex; }
.p24-msg--user { justify-content: flex-end; }
.p24-msg__bubble { max-width: min(42rem, 88%); padding: 12px 16px; border-radius: 16px; font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; }
.p24-msg__bubble p { margin: 0; }
.p24-msg__bubble p + p, .p24-msg__bubble > * + * { margin-top: .6em; }
.p24-msg__bubble ul, .p24-msg__bubble ol { margin: .5em 0 0; padding-left: 1.25em; }
.p24-msg__bubble a { color: var(--p24-brand); text-decoration: underline; }
.p24-msg--ia .p24-msg__bubble { background: #F4F7F8; color: var(--p24-ink); border-bottom-left-radius: 6px; }
.p24-msg--user .p24-msg__bubble { background: var(--p24-brand); color: #fff; border-bottom-right-radius: 6px; white-space: pre-line; }
.p24-msg--err .p24-msg__bubble { background: #FDF1F4; color: #8A1C3A; border: 1px solid #F4C6D2; }
.p24-msg__bubble .dot, .p24-dot { display: inline-block; width: 7px; height: 7px; margin: 0 2px; border-radius: 50%; background: var(--p24-muted); animation: p24-bounce 1.4s infinite ease-in-out both; }
.p24-msg__bubble .dot:nth-child(1), .p24-dot:nth-child(1) { animation-delay: -.32s; }
.p24-msg__bubble .dot:nth-child(2), .p24-dot:nth-child(2) { animation-delay: -.16s; }
@keyframes p24-bounce { 0%, 80%, 100% { transform: scale(0); } 40% { transform: scale(1); } }
.p24-chat__composer { padding: 16px 24px 20px; border-top: 1px solid var(--p24-line); background: #fff; }
.p24-composer { display: flex; align-items: flex-end; gap: 12px; }
body .p24-composer textarea {
  flex: 1; min-width: 0; min-height: 48px; max-height: 160px; padding: 12px 16px; resize: none; font-size: 15px; line-height: 1.5;
  border: 1px solid #CBD9DF; border-radius: 16px; background: #fff; color: var(--p24-ink); box-shadow: none; overflow-y: auto;
}
body .p24-composer textarea:focus { outline: none; border-color: var(--p24-brand); box-shadow: 0 0 0 3px rgba(0, 98, 137, .16); }
.p24-composer__send { flex: 0 0 48px; width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: var(--p24-brand); color: #fff; cursor: pointer; transition: background .15s; }
.p24-composer__send:hover { background: var(--p24-petrol); }
.p24-composer__send:focus-visible { outline: 3px solid rgba(0, 98, 137, .35); outline-offset: 2px; }
.p24-composer__send[disabled] { opacity: .45; cursor: default; }
.p24-composer__send svg { width: 22px; height: 22px; }
.p24-chat__foot { margin-top: 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
@media (max-width: 767.98px) {
  .p24-chat__bar { padding: 16px; }
  .p24-chat__model { flex-basis: 100%; max-width: none; }
  .p24-chat__bar .p24-btn { width: 100%; }
  .p24-chat__messages { padding: 16px; min-height: 260px; max-height: 55vh; }
  .p24-chat__composer { padding: 12px 16px 16px; }
  .p24-msg__bubble { max-width: 92%; }
  .p24-chat__foot { flex-wrap: nowrap; }
  .p24-chat__foot > * { flex: 1 1 0; min-width: 0; min-height: 44px; text-align: center; line-height: 1.15; padding-left: 10px; padding-right: 10px; }
}

/* ---------------------------------------------------------------------
   7. Ajustements de cibles tactiles et d'accents (détail, annuaire, fil public)
   --------------------------------------------------------------------- */

body .p24-dir .ppf-drawer-close { width: 40px; height: 40px; }
body .p24-dir .mpp-toggle-group button { min-height: 40px; }
/* Fil public : un seul rose par écran (le bandeau garde « Publier gratuitement ») */
.fil-page .fil-card--petrol .acc-btn--pink { background: #fff !important; color: #073A50 !important; border-color: #fff !important; box-shadow: none; }
.fil-page .fil-card--petrol .acc-btn--pink:hover { background: #E6F2F7 !important; color: #073A50 !important; }
.fil-page .af-home-feed__filter { min-height: 40px; }
.fil-page .af-post__cta { display: inline-flex; align-items: center; min-height: 40px; }

.fil-page .fil-card__link { display: inline-flex; align-items: center; min-height: 40px; }

/* Contacts présents (21/11) : bouton « Rechercher » collé au champ (.ct-search-go), la croix d'effacement
   se place juste avant lui. */
.p24-search .ct-search-go { position: relative; --ct-go-r: 12px; }
html body .p24-search .ct-search-go > .ct-search-go__btn { min-height: 44px; }
.p24-search .ct-search-go .p24-search__clear { right: 48px; }
@container (min-width: 420px) { .p24-search .ct-search-go .p24-search__clear { right: 138px; } }
