/* Page Pro (page détail) : styles sortis du gabarit entreprise_detail.html */
  @media (min-width: 768px) {
    main.entreprise-detail-main-wrap {
      padding-top: 65px !important;
    }
  }
  @media (max-width: 767px) {
    main.entreprise-detail-main-wrap {
      padding-top: 0 !important;
      margin-top: 0 !important;
    }
  }
  :root {
    --ep-pink: #E71D72;
    --ep-pink-dark: #c4155f;
    --ep-pink-soft: #FDE7F0;
    --ep-teal: #17627C;
    --ep-teal-dark: #124e64;
    --ep-ink: #1B1B2F;
    --ep-muted: #8A8A98;
    --ep-body: #4A4A5A;
    --ep-line: #E8E4EC;
    --ep-bg: #EDF3F5;
    --brand: var(--ep-pink);
    --brand-dark: var(--ep-pink-dark);
    /* Fond si média clair (logo / bannière blancs) */
    --ep-media-dark: #003b54;
  }

  .ep-page {
    font-family: "Instrument Sans", system-ui, sans-serif;
    color: var(--ep-ink);
    background: var(--ep-bg);
    min-height: auto;
    padding: 0 0 24px;
    line-height: 1.55;
    overflow-x: hidden;
  }

  /* ── Navigation (carte sidebar) ── */
  .ep-nav-list {
    display: flex; flex-direction: column; gap: 8px;
  }
  .ep-nav-link {
    display: flex; align-items: center; gap: 10px;
    width: 100%; box-sizing: border-box;
    padding: 11px 14px; border-radius: 12px;
    background: #F7F6F9; border: 1px solid var(--ep-line);
    font-size: 14px; font-weight: 700; color: var(--ep-ink);
    text-decoration: none; font-family: inherit; cursor: pointer;
    text-align: left; transition: background .15s, border-color .15s, color .15s;
  }
  .ep-nav-link:hover {
    background: var(--ep-pink-soft); border-color: #F5C0D6; color: var(--ep-pink);
  }
  .ep-nav-link.is-back { color: var(--ep-teal); }
  .ep-nav-link__icon { width: 16px; height: 16px; flex-shrink: 0; }

  /* Desktop : carte Navigation dans la sidebar */
  .ep-nav-card--desktop { display: none; }
  @media (min-width: 768px) {
    .ep-nav-card--desktop { display: block; }
  }

  .ep-nav-sheet {
    position: fixed; inset: 0; z-index: 10001;
    display: flex; align-items: flex-end; justify-content: center;
    background: rgba(27, 27, 47, .45);
  }
  .ep-nav-sheet[hidden] { display: none !important; }
  .ep-nav-sheet__panel {
    width: 100%;
    max-width: 480px;
    max-height: min(78vh, 560px);
    background: #fff;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -12px 40px rgba(27, 27, 47, .18);
    display: flex; flex-direction: column;
    overflow: hidden;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    font-family: "Instrument Sans", system-ui, sans-serif;
    animation: epNavSheetIn .22s ease-out;
  }
  @keyframes epNavSheetIn {
    from { transform: translateY(24px); opacity: .6; }
    to { transform: translateY(0); opacity: 1; }
  }
  .ep-nav-sheet__head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; padding: 16px 18px 12px;
    border-bottom: 1px solid var(--ep-line);
    background: var(--ep-pink-soft);
  }
  .ep-nav-sheet__head h2,
  .ep-nav-sheet__head .ep-nav-sheet__name {
    font-size: 16px; font-weight: 800; margin: 0; color: var(--ep-ink);
  }
  .ep-nav-sheet__head .ep-nav-sheet__name {
    margin-top: 2px;
  }
  .ep-nav-sheet__close {
    width: 36px; height: 36px; border: none; border-radius: 10px;
    background: #fff; color: var(--ep-muted); cursor: pointer; font-size: 18px;
    flex-shrink: 0;
  }
  .ep-nav-sheet__body {
    padding: 14px 16px 22px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .ep-nav-sheet__body .ep-nav-list { gap: 10px; }
  .ep-nav-sheet__body .ep-nav-link { padding: 13px 14px; font-size: 15px; }

  .ep-ann-interest-meta {
    font-size: 11px; font-weight: 800; color: var(--ep-muted);
    margin: 0 0 10px; letter-spacing: .04em; text-transform: uppercase;
  }
  .ep-ann-interest-ann-title {
    font-size: 18px; font-weight: 800; color: var(--ep-ink);
    margin: 0 0 10px; line-height: 1.3; letter-spacing: -0.02em;
    word-break: break-word; overflow-wrap: break-word;
  }
  .ep-ann-interest-resume {
    font-size: 14.5px; color: var(--ep-body); line-height: 1.6; margin: 0;
    word-break: break-word; overflow-wrap: break-word;
  }
  .ep-ann-interest-card {
    background: #F8F7FA;
    border: 1px solid var(--ep-line);
    border-radius: 14px;
    padding: 16px 18px;
  }
  .ep-ann-interest-actions {
    display: flex; flex-direction: column; gap: 10px; width: 100%;
  }
  .ep-ann-interest-actions .ep-pp-modal__btn {
    width: 100%; text-align: center; text-decoration: none;
    box-sizing: border-box;
  }
  #ep-ann-interest-modal .ep-pp-modal__dialog { max-width: 440px; }
  #ep-ann-interest-modal .ep-pp-modal__head {
    padding: 18px 20px 14px;
    background: #FDE7F0;
    border-bottom: none;
  }
  #ep-ann-interest-modal .ep-pp-modal__head h2 {
    font-size: 17px; letter-spacing: -0.02em;
  }
  #ep-ann-interest-modal .ep-pp-modal__head p {
    font-size: 13px; font-weight: 700; color: var(--ep-ink);
  }
  #ep-ann-interest-modal .ep-pp-modal__body {
    padding: 8px 18px 8px;
  }
  #ep-ann-interest-modal .ep-pp-modal__foot {
    border-top: none;
    padding: 8px 18px 20px;
  }

  /* Fenêtre « Envoyer un message » : styles partagés (_ep_pp_contact_modal_styles.html), seul le niveau d'empilement change ici. */
  .ep-pp-modal { z-index: 10001; box-sizing: border-box; }


/* ═══════════════════════════════════════════════════════════════
   Page Pro (détail) : en-tête, essentiel, cartes, barre d'actions
   Palette : pétrole #073A50, bleu #006289, rose Contacto en accent.
   ═══════════════════════════════════════════════════════════════ */
.ep-page {
  --ep-ink: #0D2B3A;
  --ep-muted: #5B7684;
  --ep-body: #3A5260;
  --ep-line: #DCE6EA;
  --ep-teal: #073A50;
  --ep-teal-dark: #052C3D;
  /* Palette personnalisable (core/services/pp_theme.py pose les variables en style en ligne ; sinon : couleurs Contacto) */
  --pp-primary: #073A50; --pp-on-primary: #fff; --pp-primary-ink: #073A50; --pp-primary-dark: #052C3D;
  --pp-secondary: #006289; --pp-soft: #EEF6F9;
  --pp-accent: #E71D72; --pp-on-accent: #fff; --pp-accent-dark: #c4155f; --pp-accent-text: #c4155f;
  --pp-hero: #073A50; --pp-hero-light: #0B5675; --pp-hero-dark: #052C3D; --pp-on-hero: #fff;
  --pp-titles: #0D2B3A; --pp-bg: #EDF3F5;
  --pp-r-lg: 22px; --pp-r-md: 20px; --pp-r-sm: 18px;
  --pp-petrol: var(--pp-primary);
  --pp-blue: var(--pp-secondary);
  --ep-pink: var(--pp-accent);
  --ep-pink-dark: var(--pp-accent-dark);
  --ep-bg: var(--pp-bg);
  --pp-shadow: 0 1px 2px rgba(7, 58, 80, .05), 0 14px 34px -20px rgba(7, 58, 80, .28);
  overflow-x: clip;
  padding-bottom: 24px;
}
.ep-page a:focus-visible,
.ep-page button:focus-visible,
.ep-page .pp-more__chk:focus-visible ~ .pp-more__btn {
  outline: 2px solid var(--pp-blue);
  outline-offset: 2px;
}

/* ── Gabarit ── */
.ep-shell {
  width: 100%; max-width: 1440px; margin: 0 auto; box-sizing: border-box;
  padding: 12px 16px 40px;
  display: flex; flex-direction: column; gap: 14px;
}
@media (min-width: 768px) {
  .ep-shell { padding: 20px clamp(20px, 3vw, 40px) 56px; gap: 20px; }
}
.pp-sections { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
@media (min-width: 768px) { .pp-sections { gap: 20px; } }

/* ── En-tête (texte + visuel) ── */
.pp-hero {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--ep-line); border-radius: var(--pp-r-lg);
  overflow: hidden; box-shadow: var(--pp-shadow);
}
.pp-hero__visual { position: relative; order: -1; min-width: 0; }
.ep-hero {
  position: relative; overflow: hidden; height: 176px; background: var(--pp-hero);
}
.ep-hero.is-light-media { background: var(--ep-media-dark); }
.ep-hero.is-dark-media { background: #fff; }
/* Image et <picture> posés en absolu : la hauteur du cadre ne dépend jamais des dimensions de l'image (aucun saut) */
.ep-hero picture { position: absolute; inset: 0; display: block; z-index: 1; }
.ep-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pp-hero-pos-m, 50% 50%); display: block; z-index: 1; }
/* Couverture : jamais plus de rognage que nécessaire. Le ratio d'affichage vient de l'image réelle
   (pp_theme.ratios_couverture : ordinateur 3:1 à 4:1, mobile 16:9 à 4:1) ; object-fit: cover ne rogne que l'excédent. */
.ep-hero { height: auto; aspect-ratio: var(--pp-hero-ar-m, 16 / 9); }
.ep-hero.is-empty { aspect-ratio: auto; height: 128px; }
@media (min-width: 900px) {
  .ep-hero { aspect-ratio: var(--pp-hero-ar-d, 3 / 1); }
  .ep-hero.is-empty { aspect-ratio: auto; height: clamp(120px, 11vw, 190px); }
  .ep-hero img { object-position: var(--pp-hero-pos-d, 50% 50%); }
}
.ep-hero__pattern {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(135deg, var(--pp-hero-light) 0%, var(--pp-hero) 55%, var(--pp-hero-dark) 100%);
}
.ep-hero__pattern::after {
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, .06) 0 2px, transparent 2px 24px);
}
.ep-logo {
  position: absolute; left: 18px; bottom: -52px; z-index: 2;
  width: 64px; height: 64px; border-radius: 17px; box-sizing: border-box;
  background: #fff; border: 4px solid #fff; overflow: hidden;
  box-shadow: 0 10px 24px -10px rgba(7, 58, 80, .55);
  display: flex; align-items: center; justify-content: center;
}
.ep-logo.is-on-color { background: var(--pp-primary); }
.ep-logo.is-on-color .ep-logo__initial { color: var(--pp-on-primary); }
/* Logo : jamais coupé ni déformé (contain avec marge) */
.ep-logo img { width: 100%; height: 100%; object-fit: contain; object-position: center; padding: 9%; box-sizing: border-box; display: block; }
.ep-logo__initial { font: 700 28px/1 "Newsreader", Georgia, serif; color: var(--pp-primary-ink); }

.pp-hero__text { padding: 68px 18px 20px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.pp-hero__kicker {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0 0 8px;
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ep-muted);
}
.pp-hero__kicker > span:not(.pp-badge)::before { content: "·"; margin-right: 8px; opacity: .6; }
.pp-badge {
  background: var(--pp-primary); color: var(--pp-on-primary); padding: 4px 10px; border-radius: 999px;
  font-size: 11px; letter-spacing: .1em;
}
.ep-name {
  margin: 0 0 8px; font-size: clamp(28px, 7.4vw, 56px); line-height: 1.08; letter-spacing: -.02em;
  color: var(--pp-titles); overflow-wrap: anywhere;
}
.ep-secteur { margin: 0; font-size: 16px; font-weight: 600; color: var(--pp-secondary); overflow-wrap: anywhere; }
@media (min-width: 768px) { .ep-secteur { font-size: 19px; } }

.pp-status {
  display: inline-flex; align-items: center; gap: 8px; margin: 14px 0 0;
  padding: 6px 13px 6px 11px; border-radius: 999px; font-size: 13.5px; font-weight: 700; line-height: 1.3;
}
.pp-status__dot { width: 9px; height: 9px; border-radius: 50%; background: currentColor; flex: none; }
.pp-status.is-open { background: #E2F4EA; color: #14673B; }
.pp-status.is-closed { background: #FBEBEA; color: #9B2C2C; }

.ep-actions { display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; margin-top: 18px; max-width: 100%; }
.ep-actions > * { min-width: 0; flex: 0 0 auto; }
.ep-page .ep-actions > .partager { order: 0; flex: 0 0 auto; width: auto; grid-column: auto; justify-content: flex-start; }
.ep-lbl-short { display: none; }
.pp-desk-only { display: none !important; }
/* Paramètres : libellé court partout, pour tenir sur une ligne */
.ep-actions .ep-lbl-full { display: none; }
.ep-actions .ep-lbl-short { display: inline; }
@media (min-width: 768px) {
  .pp-desk-only { display: inline-flex !important; }
  /* Une seule ligne : boutons compacts, Paramètres en icône seule (le lien existe aussi dans la Navigation rapide) */
  .ep-actions { flex-wrap: nowrap; gap: 8px; margin-top: 24px; }
  .ep-actions .ep-btn { min-height: 44px; padding: 0 16px; font-size: 14px; }
  .ep-actions .ep-btn--settings { width: 44px; padding: 0; }
  .ep-actions .ep-btn--settings .ep-lbl-short { display: none; }
  .ep-actions .partager__btn { padding: 0 8px; }
}

/* Ordinateur : mise en page « profil » (couverture pleine largeur, logo en pastille à cheval, texte dessous) */
@media (min-width: 900px) {
  .pp-hero__text { padding: 100px clamp(28px, 3vw, 48px) clamp(26px, 2.6vw, 40px); }
  .ep-logo { left: clamp(28px, 3vw, 48px); bottom: -86px; width: 120px; height: 120px; border-radius: 26px; border-width: 5px; }
  .ep-logo__initial { font-size: 48px; }
}

/* ── Boutons ── */
.ep-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border-radius: 999px; box-sizing: border-box; max-width: 100%;
  font-family: inherit; font-weight: 700; font-size: 14.5px; line-height: 1.2; text-decoration: none; text-align: center; white-space: nowrap;
  border: 1.5px solid transparent; cursor: pointer; transition: background .15s, color .15s, transform .15s, border-color .15s;
}
.ep-btn svg { width: 17px; height: 17px; flex: none; }
.ep-btn--primary { background: var(--pp-accent); color: var(--pp-on-accent); }
.ep-btn--primary:hover { background: var(--pp-accent-dark); color: var(--pp-on-accent); transform: translateY(-1px); }
.ep-btn--outline { background: #fff; color: var(--pp-primary-ink); border-color: #B9CDD6; }
.ep-btn--outline:hover { background: var(--pp-soft); border-color: var(--pp-secondary); color: var(--pp-primary-ink); }
.ep-btn--settings { background: var(--pp-primary); color: var(--pp-on-primary); }
.ep-btn--settings:hover { background: var(--pp-primary-dark); color: var(--pp-on-primary); }
.ep-actions .partager__btn { min-height: 46px; padding: 0 12px; font-size: 14.5px; font-weight: 700; color: var(--pp-primary-ink); }

/* ── Barre collante (apparaît quand l'en-tête sort de l'écran) ── */
.pp-sticky {
  position: fixed; left: 0; right: 0; z-index: 40;
  /* Mobile : exactement sous la bande opaque de l'appli iPhone (--pwa-offset, 0 dans Safari). La bande « Revenir à l'événement »
     défile avec la page (hors flux fixe) : elle ne compte pas ici, sinon un vide laisse voir le contenu au-dessus de la barre. */
  top: var(--pwa-offset, 0px);
  background: #fff; border-bottom: 1px solid var(--ep-line);
  box-shadow: 0 8px 22px -14px rgba(7, 58, 80, .45);
  transform: translateY(-110%); visibility: hidden;
  transition: transform .25s ease, visibility 0s linear .25s;
}
.pp-sticky.is-on { transform: none; visibility: visible; transition: transform .25s ease; }
/* Ordinateur : sous l'en-tête fixe du site (et sous la bande « Revenir à l'événement » quand elle est fixée) */
@media (min-width: 768px) { .pp-sticky { top: calc(73px + var(--bande-evt-h, 0px)); } }
.pp-sticky__in {
  max-width: 1440px; margin: 0 auto; box-sizing: border-box;
  display: flex; align-items: center; gap: 12px; padding: 8px 16px; min-height: 52px;
}
@media (min-width: 768px) { .pp-sticky__in { padding: 8px clamp(20px, 3vw, 40px); } }
.pp-sticky__logo {
  width: 36px; height: 36px; border-radius: 10px; flex: none; overflow: hidden;
  background: var(--pp-soft); color: var(--pp-primary-ink); border: 1px solid var(--ep-line);
  display: flex; align-items: center; justify-content: center; font: 700 17px/1 "Newsreader", Georgia, serif;
}
.pp-sticky__logo img { width: 100%; height: 100%; object-fit: contain; padding: 12%; box-sizing: border-box; }
.pp-sticky__logo.is-on-color { background: var(--pp-primary); color: var(--pp-on-primary); }
.pp-sticky__name {
  font: 700 17px/1.2 "Newsreader", Georgia, serif; color: var(--pp-titles);
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1 1 auto;
}
.pp-sticky__nav { display: none; }
.pp-sticky__cta { display: none !important; }
@media (min-width: 768px) {
  .pp-sticky__name { flex: 0 1 auto; max-width: 28vw; }
  .pp-sticky__nav { display: flex; flex: 1 1 auto; gap: 2px; margin-left: 12px; }
  .pp-sticky__nav a {
    padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600;
    color: var(--pp-primary-ink); text-decoration: none; white-space: nowrap;
  }
  .pp-sticky__nav a:hover { background: var(--pp-soft); }
  .pp-sticky__cta { display: inline-flex !important; min-height: 40px; padding: 0 18px; margin-left: auto; }
}
.pp-sticky ~ .ep-shell [id], .ep-shell [id] { scroll-margin-top: 130px; }

/* ── Bloc « essentiel » ── */
.pp-essentiel { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 640px) { .pp-essentiel { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 16px; } }
.pp-tile {
  display: flex; flex-direction: column; gap: 10px; box-sizing: border-box; min-width: 0;
  background: #fff; border: 1px solid var(--ep-line); border-radius: var(--pp-r-sm); padding: 18px 20px;
  box-shadow: 0 1px 2px rgba(7, 58, 80, .04);
}
.pp-tile__head { display: flex; align-items: center; gap: 10px; }
.pp-tile__icon {
  width: 36px; height: 36px; border-radius: 11px; flex: none;
  background: var(--pp-soft); color: var(--pp-secondary); display: grid; place-items: center;
}
.pp-tile__title { margin: 0; font-size: 18px; line-height: 1.2; color: var(--pp-titles); }
.pp-tile__text { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ep-body); overflow-wrap: anywhere; }
.pp-tile__text--site { font-weight: 700; color: var(--ep-ink); }
.pp-tile__link {
  margin-top: auto; padding-top: 4px; display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  font-size: 14.5px; font-weight: 700; color: var(--pp-secondary); text-decoration: none; min-height: 40px;
}
.pp-tile__link:hover { color: var(--pp-primary-ink); text-decoration: underline; }
.pp-tile .pp-status { margin: 0; align-self: flex-start; }
.pp-hours { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.pp-hours__row {
  display: flex; justify-content: space-between; gap: 12px; padding: 6px 10px; border-radius: 10px;
  font-size: 14.5px; color: var(--ep-body);
}
.pp-hours__row.is-closed { color: var(--ep-muted); }
.pp-hours__row.is-today { background: var(--pp-soft); color: var(--ep-ink); font-weight: 700; }
.pp-hours__time { white-space: nowrap; }

.pp-stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; min-width: 0; }
@media (min-width: 640px) {
  .pp-stack { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 16px; }
  .pp-essentiel--h { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
  .pp-essentiel--h .pp-stack { grid-template-columns: minmax(0, 1fr); grid-auto-rows: 1fr; }
  .pp-essentiel:not(.pp-essentiel--h) { display: block; }
}
@media (min-width: 1000px) { .pp-essentiel--h .pp-stack { grid-template-columns: minmax(0, 1fr); } }

/* ── Cartes de section ── */
.ep-card {
  background: #fff; border: 1px solid var(--ep-line); border-radius: var(--pp-r-md); box-sizing: border-box;
  padding: 20px 18px; box-shadow: 0 1px 2px rgba(7, 58, 80, .04); min-width: 0;
}
@media (min-width: 768px) { .ep-card { padding: 28px 32px; } }
.ep-card__title { margin: 0 0 14px; font-size: 22px; line-height: 1.2; color: var(--pp-titles); }
@media (min-width: 768px) { .ep-card__title { font-size: 27px; } }
.ep-card__title--sm { font-size: 16px !important; margin-bottom: 10px; }
.ep-card__body { margin: 0; font-size: 15.5px; line-height: 1.7; color: var(--ep-body); white-space: pre-line; overflow-wrap: anywhere; }
@media (min-width: 768px) { .ep-card__body { font-size: 16.5px; } }
.ep-card-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.ep-card-head .ep-card__title { margin: 0; }

.pp-more { position: relative; max-width: 78ch; }
.pp-more__chk { position: absolute; width: 1px; height: 1px; opacity: 0; margin: 0; }
.pp-more__text.is-clamped { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; line-clamp: 5; overflow: hidden; }
.pp-more__chk:checked ~ .pp-more__text.is-clamped { display: block; -webkit-line-clamp: unset; line-clamp: unset; }
.pp-more__btn { display: inline-block; margin-top: 10px; font-weight: 700; font-size: 14.5px; color: var(--pp-secondary); cursor: pointer; border-radius: 6px; }
.pp-more__close { display: none; }
.pp-more__chk:checked ~ .pp-more__btn .pp-more__open { display: none; }
.pp-more__chk:checked ~ .pp-more__btn .pp-more__close { display: inline; }

/* ── Navigation rapide (membres de la page) ── */
.ep-nav-card--desktop { display: none; }
@media (min-width: 768px) {
  .ep-nav-card--desktop { display: block; padding: 18px 24px; }
  .ep-nav-card--desktop .ep-nav-list { flex-direction: row; flex-wrap: wrap; gap: 10px; }
  .ep-nav-card--desktop .ep-nav-link { width: auto; }
}

/* ── Cartes (actualités, annonces) ── */
.pp-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
@media (min-width: 640px) { .pp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1100px) { .pp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
.pp-card {
  display: flex; flex-direction: column; min-width: 0; box-sizing: border-box;
  background: #fff; border: 1px solid var(--ep-line); border-radius: var(--pp-r-sm); overflow: hidden;
  color: inherit; text-decoration: none; transition: box-shadow .2s, transform .2s, border-color .2s;
}
a.pp-card:hover, .pp-card.ep-tl-item--interest:hover, .pp-card.ep-tl-item--interest:focus-visible {
  box-shadow: 0 16px 32px -20px rgba(7, 58, 80, .5); transform: translateY(-2px); border-color: #BFD3DB; outline: none;
}
.pp-card__media { position: relative; aspect-ratio: 16 / 10; background: var(--pp-soft); overflow: hidden; }
/* L'image ne dicte jamais la hauteur de la carte : elle remplit le cadre (format imposé), quelle que soit sa taille d'origine. */
.pp-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; display: block; }
.pp-card__date {
  position: absolute; left: 12px; top: 12px; padding: 5px 11px; border-radius: 999px;
  background: #fff; color: var(--pp-primary-ink); font-size: 12.5px; font-weight: 800; box-shadow: 0 4px 12px -4px rgba(7, 58, 80, .4);
}
.pp-card__body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; flex: 1 1 auto; min-width: 0; }
.pp-card__eyebrow { font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--pp-accent-text); }
.pp-card__title { margin: 0; font-size: 19px; line-height: 1.25; color: var(--pp-titles); overflow-wrap: anywhere; }
.pp-card__text {
  margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--ep-body); overflow-wrap: anywhere;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden;
}
.pp-card__foot { margin-top: auto; padding-top: 10px; font-size: 13px; color: var(--ep-muted); font-weight: 600; }
.pp-card__foot--link { color: var(--pp-secondary); font-weight: 700; }
.pp-card--une { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .pp-card--une { flex-direction: row; }
  .pp-card--une .pp-card__media { flex: 0 0 52%; aspect-ratio: 16 / 10; min-height: 0; align-self: center; }
  .pp-card--une .pp-card__body { padding: 32px 36px; justify-content: center; gap: 10px; }
  .pp-card--une .pp-card__title { font-size: 30px; }
  .pp-card--une .pp-card__text { font-size: 16.5px; -webkit-line-clamp: 4; line-clamp: 4; }
  .pp-card--une .pp-card__foot { margin-top: 0; padding-top: 12px; }
}
.pp-card--ann { border-left: 4px solid var(--pp-blue); }
.pp-card--ann.is-recherche { border-left-color: var(--ep-pink); }
.pp-card--ann .pp-card__body { padding: 16px 18px; }
.pp-card--ann.ep-tl-item--interest { cursor: pointer; }
.pp-more-link { text-align: center; margin: 20px 0 0; }

.ep-ann-block + .ep-ann-block { margin-top: 26px; }
.ep-ann-block__title {
  display: flex; align-items: center; gap: 12px; margin: 0 0 14px;
  font: 800 12.5px/1.2 "Instrument Sans", system-ui, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--pp-secondary);
}
.ep-ann-block__title::after { content: ""; flex: 1; height: 1px; background: var(--ep-line); }
.ep-jematche, .ep-jematche:visited {
  display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 18px; border-radius: 999px;
  background: var(--pp-accent); color: var(--pp-on-accent); font-weight: 700; font-size: 14px; text-decoration: none; white-space: nowrap;
}
.ep-jematche:hover { background: var(--pp-accent-dark); color: var(--pp-on-accent); }

/* Annonces : « Nous proposons » et « Nous recherchons » côte à côte sur ordinateur */
@media (min-width: 900px) {
  .pp-ann-cols.is-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; align-items: start; }
  .pp-ann-cols.is-two .ep-ann-block + .ep-ann-block { margin-top: 0; }
  .pp-ann-cols.is-two .pp-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ── Bandeau final ── */
.pp-cta {
  display: flex; flex-direction: column; align-items: stretch; gap: 16px;
  background: linear-gradient(135deg, var(--pp-hero-light) 0%, var(--pp-hero) 60%); color: var(--pp-on-hero); border-radius: var(--pp-r-lg); padding: 26px 22px;
}
.pp-cta__title { margin: 0; font-size: 24px; line-height: 1.2; color: var(--pp-on-hero); }
@media (min-width: 768px) {
  .pp-cta { flex-direction: row; align-items: center; justify-content: space-between; padding: 34px 40px; }
  .pp-cta__title { font-size: 30px; }
}

/* ── Barre d'actions mobile : 2 à 4 boutons, toujours sur une seule ligne ── */
.pp-actionbar { display: none; }
@media (max-width: 767.98px) {
  .pp-actionbar {
    display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px;
    position: fixed; left: 12px; right: 12px; z-index: 160; box-sizing: border-box;
    bottom: calc(76px + env(safe-area-inset-bottom, 0px));
    background: #fff; border: 1px solid var(--ep-line); border-radius: var(--pp-r-sm); padding: 6px;
    box-shadow: 0 12px 30px -10px rgba(7, 58, 80, .45);
  }
  .pp-actionbar__btn {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    min-height: 54px; min-width: 0; padding: 4px; border: 0; border-radius: 13px; background: transparent;
    color: var(--pp-primary-ink); font: 700 12.5px/1.1 "Instrument Sans", system-ui, sans-serif; text-decoration: none; cursor: pointer;
  }
  .pp-actionbar__btn svg { width: 22px; height: 22px; flex: none; }
  .pp-actionbar__btn--main { background: var(--pp-accent); color: var(--pp-on-accent); }
  .ep-page--bar { padding-bottom: calc(150px + env(safe-area-inset-bottom, 0px)); }
}

@media (prefers-reduced-motion: reduce) {
  .pp-card, .pp-sticky, .ep-btn { transition: none; }
}


/* ── Chiffres clés : membre depuis, actualités, annonces ── */
.pp-facts { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 14px 0 0; padding: 0; list-style: none; font-size: 13.5px; color: var(--ep-muted); }
.pp-facts li { display: inline-flex; align-items: baseline; gap: 5px; min-width: 0; }
.pp-facts strong { color: var(--pp-primary-ink); font-weight: 800; font-size: 15px; }
.pp-facts a { color: inherit; text-decoration: none; }
.pp-facts a:hover strong { text-decoration: underline; }

.ep-btn--icon { width: 46px; padding: 0; }
.ep-actions .ep-btn--icon { width: 44px; }


/* ── Infos légales (SIREN) + badge « Entreprise vérifiée » ── */
.pp-verifiee {
  position: relative; display: inline-block; width: .74em; height: .74em; min-width: 20px; min-height: 20px;
  margin-left: .12em; vertical-align: -.01em; cursor: help; line-height: 1; white-space: nowrap;
  color: #006289; border-radius: 50%;
}
.pp-verifiee svg { display: block; width: 100%; height: 100%; overflow: visible; }
.pp-verifiee__seal { fill: currentColor; stroke: #fff; stroke-width: 1.2; stroke-linejoin: round; paint-order: stroke; }
.pp-verifiee__check { fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.pp-verifiee:focus-visible { outline: 2px solid var(--pp-secondary, #006289); outline-offset: 3px; }
/* Appui (mobile) ou clavier : bulle courte, car le title natif n'apparaît pas au toucher */
.pp-verifiee:focus::after {
  content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); right: -6px; z-index: 5;
  padding: 6px 10px; border-radius: 8px; background: #073A50; color: #fff; font: 600 13px/1.2 system-ui, sans-serif;
  letter-spacing: 0; white-space: nowrap; pointer-events: none;
}
.pp-infos__list { margin: 0; display: flex; flex-direction: column; }
.pp-infos__row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 12px; padding: 8px 0; border-top: 1px solid var(--ep-line, #E8EEF1); font-size: 14px; line-height: 1.4; }
.pp-infos__row:first-child { border-top: 0; padding-top: 0; }
.pp-infos__row dt { color: var(--ep-muted, #5B7684); font-weight: 600; }
.pp-infos__row dd { margin: 0; font-weight: 700; color: inherit; overflow-wrap: anywhere; }
.pp-infos__src { margin: 10px 0 0; font-size: 12px; color: var(--ep-muted, #5B7684); }
.pp-infos__src a { color: var(--pp-secondary); font-weight: 700; }
.pp-infos-invite { margin: 0; font-size: 13px; text-align: center; }
.pp-infos-invite a { color: var(--pp-secondary); font-weight: 600; }
/* formulaire d'édition */
.pp-siren__form { display: flex; flex-direction: column; gap: 10px; }
.pp-siren .pp-siren__input { width: 100% !important; max-width: none; box-sizing: border-box; min-height: 44px; }
.pp-siren__btns { display: flex; flex-wrap: nowrap; gap: 8px; }
.pp-siren__btns .apr-btn { flex: 1 1 0; min-width: 0; padding: 0 10px; }
.pp-siren__cands { list-style: none; margin: 12px 0 0; padding: 0; }
.pp-siren__cand { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid #E8EEF1; }
.pp-siren__cand-txt { min-width: 0; overflow-wrap: anywhere; font-size: 14px; }
.pp-siren__cand .apr-btn { flex: none; }
.pp-siren__badge { margin: 14px 0 0; padding: 10px 12px; border-radius: 12px; background: #F2F6F8; font-size: 13.5px; line-height: 1.45; }
.pp-siren__badge.is-ok { background: #E2F4EA; color: #14673B; font-weight: 700; }
.pp-siren__check { display: flex; align-items: center; gap: 8px; font-size: 14px; min-height: 36px; }

/* ── Produits et services (pp-services) ── */
.pp-services__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 768px) { .pp-services__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
.pp-services__item { display: flex; flex-direction: column; gap: 6px; box-sizing: border-box; padding: 16px 18px; background: var(--pp-soft); border: 1px solid var(--ep-line); border-radius: var(--pp-r-sm); min-width: 0; }
.pp-services__name { margin: 0; font-size: 16.5px; line-height: 1.3; color: var(--pp-titles); overflow-wrap: anywhere; }
.pp-services__desc { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--ep-body); overflow-wrap: anywhere; }
.pp-services__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.pp-services__tag { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; box-sizing: border-box; border-radius: 999px; background: var(--pp-soft); border: 1px solid var(--ep-line); color: var(--pp-primary-ink); font-size: 13px; font-weight: 600; max-width: 100%; overflow-wrap: anywhere; }
.pp-services__tag--zone { background: var(--pp-primary); border-color: var(--pp-primary); color: var(--pp-on-primary); }
.pp-services__zone { margin-top: 18px; }
.pp-services__zone-title { margin: 0; font-family: inherit; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--pp-accent-text); }
.pp-services__zone .pp-services__tags { margin-top: 8px; }
.pp-services-invite { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px; padding: 12px 16px; border: 1px dashed var(--ep-line); border-radius: var(--pp-r-sm); color: var(--ep-body); font-size: 14px; }
.pp-services-invite p { margin: 0; }
.pp-services-invite__link { font-weight: 700; color: var(--pp-secondary); text-decoration: underline; }
/* Formulaire d'édition (pps-) */
.pps-rows { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.pps-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: start; padding: 12px; border: 1px solid #DCE6EA; border-radius: 14px; background: #F7FAFB; }
.pps-row__fields { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.pps-row input, .pps-row textarea, .pps-input { width: 100%; box-sizing: border-box; border: 1px solid #CBD5E1; border-radius: 12px; padding: 9px 12px; font: inherit; font-size: 14.5px; background: #fff; color: #0D2B3A; }
.pps-row textarea { resize: vertical; min-height: 64px; }
.pps-row__tools { display: flex; flex-direction: column; gap: 6px; }
.pps-tool { width: 40px; height: 40px; border: 1px solid #CBD5E1; border-radius: 10px; background: #fff; color: #073A50; font-size: 16px; line-height: 1; cursor: pointer; }
.pps-tool:disabled { opacity: .35; cursor: default; }
.pps-count { margin: 8px 0 0; font-size: 13px; color: #3A5260; }
.pps-errors { margin: 0 0 14px; padding: 12px 16px; border-radius: 14px; background: #FDECEF; color: #8B1E3F; font-size: 14px; }
.pps-errors ul { margin: 0; padding-left: 18px; }
.pps-add { margin-top: 12px; }


/* ── Boutons d'action : Appeler, Devis, Rendez-vous, Plus, bloc de contact (agent C) ── */
.pp-bt { flex: 0 0 auto; }
.pp-plus { position: relative; display: inline-flex; min-width: 0; flex: 0 0 auto; }
.pp-plus__btn svg { width: 15px; height: 15px; transition: transform .15s; }
.pp-plus__btn[aria-expanded="true"] svg { transform: rotate(180deg); }
/* Le menu s'ouvre vers le HAUT : la carte de l'en-tête (coins arrondis, overflow caché) couperait un menu qui descend. */
.pp-plus .pp-plus__menu { left: 0; top: auto; bottom: calc(100% + 6px); min-width: 15.5rem; }
.pp-plus .pp-plus__menu.partager__menu--droite { left: auto; right: 0; }
.pp-plus__item { gap: 10px; white-space: nowrap; width: 100%; box-sizing: border-box; color: var(--pp-primary-ink); font-family: inherit; }
.pp-plus__item svg { width: 17px; height: 17px; flex: none; }
.pp-sticky__second { margin-left: 0 !important; background: #fff; }
.pp-actionbar__btn[data-pp-btn] span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Bloc de contact du bas de page : « Écrire » + « Demander un devis » sur UNE seule ligne */
.pp-cta__btns { display: flex; flex-wrap: nowrap; gap: 10px; min-width: 0; }
.pp-cta__btns > * { flex: 1 1 0; min-width: 0; }
.pp-cta__btns .ep-btn { width: 100%; padding: 0 14px; }
.pp-cta .ep-lbl-short { display: inline; }
.pp-cta .ep-lbl-full { display: none; }
.ep-btn--outline-on-hero { background: transparent; color: var(--pp-on-hero); border-color: color-mix(in srgb, var(--pp-on-hero) 55%, transparent); }
.ep-btn--outline-on-hero:hover { background: color-mix(in srgb, var(--pp-on-hero) 14%, transparent); color: var(--pp-on-hero); }
@media (min-width: 768px) {
  .pp-cta__btns > * { flex: 0 0 auto; }
  .pp-cta__btns .ep-btn { width: auto; padding: 0 20px; }
  .pp-cta__title { flex: 1 1 auto; min-width: 0; }
  .pp-cta__btns { flex: 0 0 auto; }
  .ep-actions .partager__btn { min-height: 44px; }  /* même hauteur que les autres boutons de la rangée */
  .pp-cta .ep-lbl-short { display: inline; }  /* tablette : libellés courts, la rangée tient */
  .pp-cta .ep-lbl-full { display: none; }
}
@media (min-width: 1100px) {
  .pp-cta__btns .ep-btn { min-width: 200px; padding: 0 22px; }
  .pp-cta .ep-lbl-short { display: none; }
  .pp-cta .ep-lbl-full { display: inline; }
}

/* ═══ Preuves : carte « Sur Contacto » (préfixe pp-sc) ═══ */
.pp-sc { display: flex; flex-direction: column; gap: 14px; }
.pp-sc .ep-card__title { margin-bottom: 0; }
.pp-sc__tiles { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; }
@media (min-width: 768px) { .pp-sc__tiles { gap: 16px; } }
.pp-sc__tile { flex: 1 1 0; display: flex; flex-direction: column; justify-content: center; gap: 4px; min-width: 0; box-sizing: border-box; padding: 14px 12px; border-radius: 14px; background: var(--pp-soft); text-align: center; }
.pp-sc__num { font-size: 30px; line-height: 1; color: var(--pp-primary-ink); font-variant-numeric: tabular-nums; }
.pp-sc__lbl { font-size: 13px; line-height: 1.3; color: var(--ep-body); overflow-wrap: anywhere; }
.pp-sc__salons { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 32px; }
@media (min-width: 768px) { .pp-sc__salons { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pp-sc__salon { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; min-height: 44px; padding: 10px 0; border-top: 1px solid var(--ep-line); font-size: 14.5px; min-width: 0; }
.pp-sc__salons .pp-sc__salon:first-child { border-top: 0; }
@media (min-width: 768px) { .pp-sc__salons .pp-sc__salon:nth-child(2) { border-top: 0; } }
.pp-sc__salon-name { min-width: 0; overflow-wrap: anywhere; font-weight: 600; color: var(--ep-ink); }
.pp-sc__salon-lieu { font-weight: 400; color: var(--ep-muted); }
.pp-sc__salon-date { flex: none; font-size: 13px; color: var(--ep-muted); text-align: right; font-variant-numeric: tabular-nums; }
.pp-sc__more { margin: -6px 0 0; font-size: 13px; color: var(--ep-muted); }

/* ═══ Preuves : recommandations entre membres (préfixe pp-reco) ═══ */
.pp-reco__head .pp-reco__open { min-height: 44px; padding: 0 16px; font-size: 14px; }
.pp-reco__lbl-short { display: none; }
@media (max-width: 560px) { .pp-reco__lbl-full { display: none; } .pp-reco__lbl-short { display: inline; } }
@media (max-width: 480px) { .pp-reco__head { flex-wrap: nowrap; } .pp-reco__head .ep-card__title { font-size: 20px; } .pp-reco__head .pp-reco__open { padding: 0 12px; font-size: 13px; } }
.pp-reco__notice { margin: 0 0 14px; padding: 10px 14px; border-radius: 12px; background: var(--pp-soft); color: var(--ep-ink); font-size: 14px; line-height: 1.5; }
.pp-reco__notice a { color: var(--pp-secondary); font-weight: 700; }
.pp-reco__empty { margin: 0; padding: 14px 16px; border: 1px dashed #B9CDD6; border-radius: 14px; font-size: 14.5px; line-height: 1.55; color: var(--ep-muted); }
.pp-reco__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-items: stretch; }
@media (min-width: 640px) { .pp-reco__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1100px) { .pp-reco__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
.pp-reco__card { display: flex; flex-direction: column; gap: 12px; min-width: 0; box-sizing: border-box; padding: 16px 18px; background: #fff; border: 1px solid var(--ep-line); border-radius: var(--pp-r-sm); }
.pp-reco__who { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.pp-reco__avatar { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--pp-soft); color: var(--pp-secondary); font-weight: 800; font-size: 17px; }
.pp-reco__avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pp-reco__id { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.pp-reco__name { font-weight: 700; font-size: 15px; color: var(--ep-ink); overflow-wrap: anywhere; text-decoration: none; }
a.pp-reco__name:hover { color: var(--pp-secondary); text-decoration: underline; }
.pp-reco__soc { font-size: 13px; color: var(--ep-muted); overflow-wrap: anywhere; }
.pp-reco__rel { align-self: start; padding: 3px 10px; border-radius: 999px; background: var(--pp-soft); color: var(--pp-primary-ink); font-size: 12px; font-weight: 800; white-space: nowrap; }
.pp-reco__text { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ep-body); white-space: pre-line; overflow-wrap: anywhere; }
.pp-reco__rep { margin-top: auto; padding: 10px 12px; border-left: 3px solid var(--pp-secondary); border-radius: 0 10px 10px 0; background: var(--pp-soft); font-size: 14px; line-height: 1.5; color: var(--ep-body); }
.pp-reco__rep strong { display: block; margin-bottom: 2px; font-size: 12.5px; color: var(--ep-ink); }
.pp-reco__rep p { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.pp-reco__foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; color: var(--ep-muted); }
.pp-reco__rep + .pp-reco__foot { margin-top: 0; }
.pp-reco__sig { min-height: 40px; padding: 0 4px; border: 0; background: none; font: inherit; font-size: 13px; color: var(--ep-muted); cursor: pointer; }
.pp-reco__sig:hover { color: #B91C1C; }
.pp-reco__more { display: flex; justify-content: center; margin-top: 16px; }
.pp-reco__more .ep-btn { min-width: 200px; }
.pp-reco__veil { position: fixed; inset: 0; z-index: 10002; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(7, 58, 80, .55); }
.pp-reco__box { width: min(480px, 100%); max-height: calc(100dvh - 32px); overflow: auto; padding: 22px; border-radius: 16px; background: #fff; color: #0D2B3A; box-shadow: 0 24px 60px rgba(7, 58, 80, .35); box-sizing: border-box; }
.pp-reco__box-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.pp-reco__box-head h2 { margin: 0; font-size: 18px; line-height: 1.3; }
.pp-reco__x { width: 40px; height: 40px; margin: -6px -8px 0 0; border: 0; border-radius: 10px; background: none; font-size: 26px; line-height: 1; color: #5B7684; cursor: pointer; }
.pp-reco__form { display: grid; gap: 8px; }
.pp-reco__form label { font-size: 13px; font-weight: 700; }
.pp-reco__form select, .pp-reco__form textarea { width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid #C9D8DE; border-radius: 10px; font: inherit; font-size: 14px; background: #fff; color: #0D2B3A; }
.pp-reco__form select { min-height: 44px; }
.pp-reco__form textarea { resize: vertical; }
.pp-reco__count { margin: 0; font-size: 12.5px; color: var(--ep-muted); font-variant-numeric: tabular-nums; }
.pp-reco__count.is-bad { color: #B91C1C; }
.pp-reco__hint { margin: 0; font-size: 13px; line-height: 1.5; color: #3A5260; }
.pp-reco__err { margin: 0; font-size: 13px; font-weight: 600; color: #B91C1C; }
.pp-reco__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
.pp-reco__actions .ep-btn { width: 100%; min-height: 44px; }


/* ══ Réalisations + L'équipe (lot 2, agent E) ══ */
.pp-invite { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; box-sizing: border-box; padding: 12px 16px; border: 1px dashed var(--ep-line); border-radius: var(--pp-r-sm); background: transparent; }
.pp-invite__txt { margin: 0; flex: 1 1 240px; font-size: 14px; line-height: 1.45; color: var(--ep-body); }
.pp-invite__lien { font-weight: 700; font-size: 14px; color: var(--pp-secondary); text-decoration: none; min-height: 40px; line-height: 40px; }
.pp-invite__lien:hover { text-decoration: underline; }

.pp-rea__grid, .pp-equipe__grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 600px) { .pp-rea__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .pp-rea__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* Équipe : rangées centrées, cartes de 220 à 300 px, jamais de trou à droite */
.pp-equipe__grid { display: flex; flex-wrap: wrap; justify-content: center; }
.pp-equipe__item { flex: 1 1 220px; max-width: 300px; }
@media (max-width: 599px) { .pp-equipe__item { max-width: none; } }
.pp-rea--texte .pp-rea__card { border-left: 4px solid var(--pp-primary); }
.pp-rea__card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--ep-line); border-radius: var(--pp-r-sm); background: #fff; }
.pp-rea__img { aspect-ratio: 4 / 3; width: 100%; background: var(--pp-soft); overflow: hidden; }
.pp-rea__img.is-vide { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--pp-hero-light) 0%, var(--pp-primary) 100%); color: var(--pp-on-primary); }
.pp-rea__img.is-vide svg { width: 44px; height: 44px; opacity: .85; }
.pp-rea__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pp-rea__body { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; min-width: 0; flex: 1 1 auto; }
.pp-rea__titre { margin: 0; font-size: 17px; line-height: 1.25; color: var(--pp-titles); overflow-wrap: anywhere; }
.pp-rea__meta { margin: 0; font-size: 13.5px; font-weight: 600; color: var(--pp-secondary); overflow-wrap: anywhere; }
.pp-rea__res { margin: 2px 0 0; font-size: 14.5px; line-height: 1.5; color: var(--ep-body); overflow-wrap: anywhere; }

.pp-equipe__item { display: flex; min-width: 0; }
.pp-equipe__card { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 100%; box-sizing: border-box; padding: 18px 12px; text-align: center; text-decoration: none; border: 1px solid var(--ep-line); border-radius: var(--pp-r-sm); background: #fff; color: inherit; min-width: 0; }
.pp-equipe__card:hover { border-color: var(--pp-secondary); }
.pp-equipe__card:focus-visible { outline: 2px solid var(--pp-secondary); outline-offset: 2px; }
.pp-equipe__photo { display: flex; align-items: center; justify-content: center; flex: none; width: 88px; height: 88px; margin-bottom: 6px; border-radius: 50%; overflow: hidden; background: var(--pp-primary); color: var(--pp-on-primary); font: 700 28px/1 "Newsreader", Georgia, serif; }
.pp-equipe__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pp-equipe__nom { font-weight: 700; font-size: 16px; line-height: 1.25; color: var(--pp-titles); overflow-wrap: anywhere; }
.pp-equipe__role { font-size: 14px; line-height: 1.4; color: var(--ep-body); overflow-wrap: anywhere; }

/* Pages d'édition (Réalisations, L'équipe, mes invitations) */
.pp-eq-adm__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.pp-eq-adm__row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px 0; border-top: 1px solid #DCE6EA; min-width: 0; }
.pp-eq-adm__row:first-child { border-top: 0; }
.pp-eq-adm__who { display: flex; flex-direction: column; gap: 2px; flex: 1 1 200px; min-width: 0; overflow-wrap: anywhere; }
.pp-eq-adm__who span { font-size: 13.5px; color: #3A5260; }
.pp-eq-adm__btns { display: flex; flex-wrap: nowrap; gap: 8px; }
.pp-eq-adm__role { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; flex: 1 1 260px; min-width: 0; }
.pp-eq-adm__lbl { display: block; font-weight: 700; font-size: 13.5px; color: #0D2B3A; margin-bottom: 4px; }
.pp-eq-adm__role .pp-eq-adm__lbl { margin: 0; }
.pp-eq-adm__input { width: 100%; max-width: 100%; box-sizing: border-box; min-height: 44px; padding: 8px 12px; border: 1px solid #B8C8CF; border-radius: 12px; background: #fff; color: #0D2B3A; font-size: 16px; }
.pp-eq-adm__role .pp-eq-adm__input { flex: 1 1 160px; width: auto; min-width: 0; }
.pp-eq-adm__add { display: grid; gap: 14px; max-width: 560px; }
.pp-eq-adm__field { position: relative; min-width: 0; }
.pp-eq-adm__field--court { max-width: 160px; }
.pp-eq-adm__check { display: flex; align-items: center; gap: 8px; font-size: 14.5px; color: #0D2B3A; min-height: 40px; }
.pp-eq-adm__res { list-style: none; margin: 4px 0 0; padding: 4px; border: 1px solid #B8C8CF; border-radius: 12px; background: #fff; }
.pp-eq-adm__res[hidden], .pp-eq-adm__choisi[hidden] { display: none; }
.pp-eq-adm__res li { padding: 2px; font-size: 14px; color: #3A5260; }
.pp-eq-adm__res button { width: 100%; text-align: left; min-height: 40px; padding: 6px 10px; border: 0; border-radius: 8px; background: transparent; color: #0D2B3A; cursor: pointer; overflow-wrap: anywhere; }
.pp-eq-adm__res button:hover { background: #EEF6F9; }
.pp-eq-adm__choisi { margin: 6px 0 0; font-size: 13.5px; font-weight: 600; color: #006289; }
.pp-eq-adm__err { margin: 4px 0 0; font-size: 13.5px; color: #B00020; }
.pp-eq-adm__note { margin: 12px 0 0; font-size: 13.5px; color: #3A5260; }
.pp-eq-adm--suite { margin-top: 16px; }
.pp-rea-adm__thumb { flex: none; width: 96px; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: #EEF6F9; display: flex; align-items: center; justify-content: center; font-size: 12px; color: #3A5260; text-align: center; }
.pp-rea-adm__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pp-rea-adm__edit { flex: 1 1 100%; }
.pp-rea-adm__edit > summary { display: inline-flex; align-items: center; cursor: pointer; list-style: none; }
.pp-rea-adm__edit[open] > summary { margin-bottom: 12px; }
.pp-rea-adm__edit > summary::-webkit-details-marker { display: none; }

/* ── Vitrine publique (visiteur non connecté) : deux boutons sur UNE seule ligne, libellés courts sur mobile, jamais d'ellipse ── */
.pv-actions, .pv-cta__btns { display: flex; flex-wrap: nowrap; gap: 8px; max-width: 100%; min-width: 0; }
.pv-actions { margin-top: 18px; }
.pv-actions > .ep-btn, .pv-cta__btns > .ep-btn { min-width: 0; min-height: 46px; padding: 0 8px; justify-content: center; text-align: center; font-size: 13.5px; white-space: nowrap; width: auto; }
.pv-actions > .ep-btn:first-child, .pv-cta__btns > .ep-btn:first-child { flex: 1.5 1 0; }
.pv-actions > .ep-btn:last-child, .pv-cta__btns > .ep-btn:last-child { flex: 1 1 0; }
.pv-full { display: none; }
.pv-short { display: inline; }
@media (min-width: 900px) {
  .pv-actions { margin-top: 24px; }
  .pv-actions > .ep-btn { flex: 0 0 auto !important; padding: 0 20px; font-size: 14px; }
  .pv-actions .pv-full { display: inline; }
  .pv-actions .pv-short { display: none; }
}
@media (min-width: 1100px) {
  .pv-cta__btns > .ep-btn { flex: 0 0 auto !important; padding: 0 20px; font-size: 14px; }
  .pv-cta__btns .pv-full { display: inline; }
  .pv-cta__btns .pv-short { display: none; }
}
/* Image de remplacement : dégradé de la couleur principale quand une réalisation n'a pas d'image */
.pp-vitrine .pp-rea__img { background: linear-gradient(135deg, var(--pp-hero-light) 0%, var(--pp-primary) 100%); }
/* Page d'une actualité publique */
.pv-back { margin: 18px 0 10px; font-size: 14px; font-weight: 700; }
.pv-back a { color: var(--pp-secondary); text-decoration: none; }
.pv-actu { max-width: 820px; margin: 0 auto 20px; padding: 24px 22px; }
.pv-actu__title { margin: 4px 0 6px; font-size: 28px; line-height: 1.2; color: var(--pp-titles); overflow-wrap: anywhere; }
.pv-actu__meta { margin: 0 0 16px; font-size: 13px; font-weight: 600; color: var(--ep-muted); }
.pv-actu__img { aspect-ratio: 16 / 10; overflow: hidden; border-radius: 14px; margin: 0 0 16px; background: var(--pp-soft); }
.pv-actu__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pv-actu__resume { margin: 0 0 12px; font-size: 17px; font-weight: 600; line-height: 1.5; }
.pv-actu__text { font-size: 16px; line-height: 1.65; overflow-wrap: anywhere; }
.pv-actu__lieu { margin: 14px 0 0; font-size: 15px; }
