/* ========================================
   PROFIL ENTREPRISE — infofiche-v2.css
   Prefix: pe- to avoid conflicts
======================================== */

.pe-page { background: #D5E2FB; }

/* ═══════════════════════════════════════════════════════
   GALERIE PHOTOS — static (1-3) + slider infini (4-5)
═══════════════════════════════════════════════════════ */

/* ── Section commune — écrase le padding: 80px 0 de styles.css ── */
.pe-gallery {
  position: relative;
  background: #13294B;
  overflow: hidden;
  user-select: none;
  padding: 0 !important;
}

/* ── Static : 1-3 images côte à côte, ratio naturel ── */
.pe-gallery--static {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 16px;
  min-height: 200px;
}
.pe-gallery__img-wrap {
  flex: 0 1 auto;
  cursor: pointer;
  overflow: hidden;
  border-radius: 6px;
  max-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pe-gallery--n1 .pe-gallery__img-wrap { flex: 0 1 100%; }
.pe-gallery--n2 .pe-gallery__img-wrap { flex: 0 1 calc(50% - 3px); }
.pe-gallery--n3 .pe-gallery__img-wrap { flex: 0 1 calc(33.33% - 4px); }
.pe-gallery__img-wrap img {
  display: block;
  max-height: 360px;
  width: 100%;
  object-fit: contain;
  transition: transform .3s ease;
}
.pe-gallery__img-wrap:hover img { transform: scale(1.03); }

/* ── Emplacement de couverture encore vide : icône « storefront » ──
   La galerie garde toujours ses 5 emplacements + 2 publicités, donc ces
   vignettes occupent la même place qu'une vraie photo dans le slider. */
.pif-gallery-ph {
  cursor: default;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #EAF1FA 0%, #DCE7F5 100%);
  color: #7C94B6;
  border: 1px dashed rgba(24,66,128,.18);
}
.pif-gallery-ph ion-icon { font-size: 72px; width: 1em; height: 1em; }
@media (max-width: 576px) {
  .pif-gallery-ph ion-icon { font-size: 54px; }
}

/* ── Vignette publicitaire (gérée par l'admin, par Maison) ── */
.pif-gallery-ad { position: relative; }
.pif-gallery-ad__tag {
  position: absolute; top: 8px; left: 8px; z-index: 2;
  font-family: 'Jost', sans-serif; font-size: 10px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  color: #fff; background: rgba(19,41,75,.72);
  padding: 3px 8px; border-radius: 999px;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}

/* ── Slider infini : 5 emplacements photo + 2 publicités ── */
.pe-gallery--marquee {
  height: 530px;
  /* L'en-tête du site est fixe et flotte au-dessus de la galerie : on descend
     les vignettes de ~5 % pour qu'elles restent entièrement visibles.
     (padding en % = 5 % de la largeur, soit ~80px sur un écran de 1600px,
     ce qui correspond à la hauteur de l'en-tête.) */
  /* max() : ~5 % sur grand écran, mais jamais moins que la hauteur de l'en-tête
     (sinon les vignettes repassaient dessous entre 680 et 1024px). */
  padding-top: max(5%, 84px) !important;   /* !important : .pe-gallery pose padding:0 !important */
  box-sizing: border-box;
  /* dans le flux normal, z-index neutre */
  position: relative;
  z-index: 0;
}
/* Fondu sur les bords gauche/droite (5 % / 95 %) */
.pe-marquee {
  width: 100%;
  height: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
/* Piste ×2 — translateX(calc(-50% - 8px)) compense le gap de 16px */
.pe-marquee__track {
  display: flex;
  gap: 16px;
  width: max-content;
  height: 100%;
  animation: pe-marquee-scroll var(--marquee-dur, 24s) linear infinite;
}
/* Pause au survol */
.pe-gallery--marquee:hover .pe-marquee__track {
  animation-play-state: paused;
}
/* Vignette à taille FIXE — hauteur du container moins 18px de chaque côté */
.pe-marquee__slide {
  flex: 0 0 clamp(280px, 38vw, 440px);
  height: calc(100% - 36px);
  margin: 18px 0;
  border-radius: 24px;
  overflow: hidden;
  cursor: pointer;
}
.pe-marquee__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
@keyframes pe-marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-50% - 8px)); }
}
/* prefers-reduced-motion : défilement manuel */
@media (prefers-reduced-motion: reduce) {
  .pe-marquee__track { animation: none !important; }
  .pe-marquee {
    overflow-x: auto;
    -webkit-mask-image: none;
            mask-image: none;
    scrollbar-width: thin;
  }
}

/* ── Bouton "Voir toutes les photos" (commun) ── */
.pe-gallery__all-btn {
  position: absolute;
  bottom: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  background: rgba(255,255,255,.90);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: none;
  border-radius: 999px;
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #0F2A4F;
  cursor: pointer;
  box-shadow: 0 2px 16px rgba(0,0,0,.30);
  transition: background .15s, transform .15s;
  z-index: 4;
}
.pe-gallery__all-btn:hover { background: #fff; transform: scale(1.03); }

/* ═══════════════════════════════════════════════════════
   LIGHTBOX
═══════════════════════════════════════════════════════ */
.pe-lb {
  position: fixed;
  inset: 0;
  z-index: 9500;
  background: rgba(0,0,0,.96);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  opacity: 0;
  transition: opacity .22s;
}
.pe-lb.is-open { opacity: 1; }
.pe-lb[hidden] { display: none !important; }

/* Barre supérieure : compteur + fermer */
.pe-lb__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  flex: 0 0 auto;
}
.pe-lb__counter {
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,.70);
}
.pe-lb__close {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.08);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .14s;
  flex-shrink: 0;
}
.pe-lb__close:hover { background: rgba(255,255,255,.18); }
.pe-lb__close svg { width: 18px; height: 18px; stroke: currentColor; }

/* Zone centrale : image + flèches */
.pe-lb__stage {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0 64px;
  min-height: 0;
}
.pe-lb__img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 6px;
  transition: opacity .18s ease;
  display: block;
}
.pe-lb__img.is-fading { opacity: 0; }

.pe-lb__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(255,255,255,.10);
  border: 1.5px solid rgba(255,255,255,.20);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .14s, transform .2s;
  z-index: 2;
}
.pe-lb__nav:hover { background: rgba(255,255,255,.22); transform: translateY(-50%) scale(1.07); }
.pe-lb__nav svg { width: 20px; height: 20px; stroke: currentColor; }
.pe-lb__nav--prev { left: 10px; }
.pe-lb__nav--next { right: 10px; }
.pe-lb__nav[disabled] { opacity: .28; pointer-events: none; }

/* Strip de thumbnails */
.pe-lb__thumbs {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  overflow-x: auto;
  scrollbar-width: none;
  justify-content: center;
}
.pe-lb__thumbs::-webkit-scrollbar { display: none; }
.pe-lb__thumb {
  flex: 0 0 auto;
  width: 54px; height: 54px;
  border-radius: 8px;
  overflow: hidden;
  border: 2.5px solid transparent;
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: border-color .16s, transform .16s;
}
.pe-lb__thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.pe-lb__thumb.is-active {
  border-color: #F5B935;
  transform: scale(1.08);
}

/* ─ Responsive ─ */
@media (max-width: 680px) {
  .pe-gallery--static { padding: 10px; gap: 4px; min-height: 150px; }
  .pe-gallery__img-wrap { max-height: 240px; }
  .pe-gallery__img-wrap img { max-height: 240px; }
  /* 3 images sur mobile : affiche seulement 2 */
  .pe-gallery--n3 .pe-gallery__img-wrap:nth-child(3) { display: none; }
  .pe-gallery--n3 .pe-gallery__img-wrap { flex: 0 1 calc(50% - 2px); }
  /* L'en-tête fixe flotte au-dessus de la galerie : sur mobile les vignettes
     sont trop basses pour l'absorber, on les décale sous l'en-tête. */
  .pe-gallery--marquee { height: 290px; }
  .pe-marquee__slide { border-radius: 16px; }
  .pe-lb__stage { padding: 0 48px; }
  .pe-lb__thumb { width: 44px; height: 44px; }
  .pe-gallery__all-btn { font-size: 12px; padding: 7px 12px; }
}
@media (max-width: 400px) {
  .pe-gallery--static { min-height: 120px; }
  .pe-gallery__img-wrap { max-height: 180px; }
  .pe-gallery__img-wrap img { max-height: 180px; }
  /* Très petit écran : 1 seule image */
  .pe-gallery--n2 .pe-gallery__img-wrap:nth-child(n+2),
  .pe-gallery--n3 .pe-gallery__img-wrap:nth-child(n+2) { display: none; }
  .pe-gallery--n2 .pe-gallery__img-wrap,
  .pe-gallery--n3 .pe-gallery__img-wrap { flex: 0 1 100%; }
  .pe-gallery--marquee { height: 250px; }
  .pe-marquee__slide img { max-width: 240px; }
}

/* === HEADER STRIP === */
.pe-header-strip {
  display: grid;
  grid-template-columns: minmax(240px,1fr) minmax(0,2fr);
  align-items: center;
  gap: 28px;
  padding: 0 56px 32px;
  max-width: 1480px;
  margin: 0 auto;
}
.pe-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: -72px;
  z-index: 2;
  position: relative;
}
.pe-brand__mark {
  width: 100px; height: 100px;
  border-radius: 14px;
  flex: 0 0 auto;
  background: #184280;
  box-shadow: 0 10px 22px rgba(20,30,55,.25);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-size: 42px;
  font-weight: 700;
  color: #fff;
  font-family: 'Jost', sans-serif;
}
.pe-brand__mark img { width: 100%; height: 100%; object-fit: cover; }
.pe-brand__text { display: flex; flex-direction: column; }
.pe-brand__name { color: #184280; font-size: 26px; font-weight: 700; line-height: 1.15; }
.pe-brand__tag  { color: #184280; font-size: 12px; font-weight: 400; letter-spacing: .2em; text-transform: uppercase; margin-top: 5px; }

/* Topbar */
.pe-topbar {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 12px;
  margin-top: -16px;
}
.pe-pill {
  background: #fff;
  border: 1px solid #E6EAF0;
  border-radius: 12px;
  height: 60px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #1a1a1a;
  font-size: 13px;
  font-weight: 500;
  font-family: 'Jost', sans-serif;
  cursor: pointer;
  text-decoration: none;
  transition: border-color .16s, box-shadow .16s, transform .16s;
  white-space: nowrap;
}
.pe-pill:hover { border-color: #B9C7DE; box-shadow: 0 6px 16px -10px rgba(24,66,128,.35); text-decoration: none; color: #1a1a1a; transform: translateY(-1px); }
.pe-pill svg { width: 18px; height: 18px; color: #184280; flex: 0 0 auto; }
.pe-pill__lbl { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; overflow: hidden; }
.pe-pill__kicker { font-size: 10px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: #6b7280; }
.pe-pill__val   { font-size: 13px; color: #184280; font-weight: 600; overflow: hidden; text-overflow: ellipsis; }

/* === MAIN CARD === */
.pe-main { max-width: 1480px; margin: 0 auto; padding: 0 56px 80px; }
.pe-card {
  background: #fff;
  border-radius: 14px;
  padding: 44px 52px 52px;
  display: grid;
  grid-template-columns: minmax(0,1.55fr) minmax(0,1fr);
  gap: 60px;
  align-items: start;
}

/* === TIMELINE === */
.pe-timeline { display: flex; flex-direction: column; gap: 22px; }
.pe-tl-panel { border-radius: 14px; padding: 20px 24px 22px; position: relative; }
.pe-tl-panel--histoire { background: #E6E2FF; }
.pe-tl-panel--avis     { background: #F6E2EE; }
.pe-tl-panel--doleance { background: #F8DDE4; }
.pe-tl-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 18px;
  border-radius: 999px;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 12px;
  box-shadow: 0 6px 14px rgba(0,0,0,.08);
}
.pe-tl-pill--green  { background: #1FBE5A; }
.pe-tl-pill--purple { background: #6F66E0; }
.pe-tl-text { margin: 0; font-size: 14px; line-height: 1.6; color: #1a1a1a; }
.pe-tl-text--muted { color: #6b7280; font-style: italic; }
.pe-tl-empty { margin: 0; font-size: 13px; color: #9ca3af; font-style: italic; }
.pe-tl-dot {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #6F66E0;
  align-self: flex-end;
  margin: -6px 52px -6px 0;
  box-shadow: 0 4px 10px rgba(111,102,224,.45);
}

/* === REVIEWS === */
.pe-reviews {
  background: #D9D9D9;
  border-radius: 12px;
  padding: 22px 26px 26px;
  margin-top: 8px;
}
.pe-reviews__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.pe-reviews__title { margin: 0; color: #184280; font-size: 16px; font-weight: 600; }
.pe-review-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 0;
  background: #184280;
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .14s, transform .14s;
  font-family: 'Jost', sans-serif;
}
.pe-review-cta:hover { background: #122f5f; transform: translateY(-1px); }
.pe-review-cta svg { width: 14px; height: 14px; }
.pe-stars { display: inline-flex; gap: 2px; color: #C8C8C8; vertical-align: middle; }
.pe-stars svg { width: 17px; height: 17px; }
.pe-stars svg.on { color: #F5BB1F; }
.pe-reviews__summary {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 15px;
  font-weight: 500;
  color: #1a1a1a;
}
.pe-reviews__count { color: #6b7280; font-size: 13px; font-weight: 400; }
.pe-reviews__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 32px;
}
.pe-reviews__col h4 { margin: 0 0 10px; color: #184280; font-size: 13px; font-weight: 600; }
.pe-dist-row {
  display: grid;
  grid-template-columns: 65px minmax(0,1fr) 28px;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #1a1a1a;
  margin-bottom: 8px;
}
.pe-dist-bar { height: 5px; border-radius: 999px; background: rgba(24,66,128,.15); overflow: hidden; }
.pe-dist-bar__fill { height: 100%; background: #184280; border-radius: inherit; }
.pe-dist-row__cnt { color: #184280; text-align: right; font-size: 11px; }
.pe-crit-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.pe-crit-list li { display: flex; align-items: center; gap: 7px; font-size: 13px; color: #184280; }
.pe-crit-list li::before {
  content: "";
  width: 0; height: 0;
  border-left: 6px solid #184280;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
}

/* === INFO SIDEBAR === */
.pe-info { display: flex; flex-direction: column; gap: 14px; }
/* Pill icon — shared by pe-contact-cta and pe-fab */
.pe-icon-pill {
  width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.35);
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.pe-icon-pill svg { width: 14px; height: 14px; }

.pe-contact-cta {
  display: inline-flex; align-items: center; gap: 10px;
  width: 100%; height: 42px; border: 0; border-radius: 24px;
  background: #184280; color: #fff;
  padding: 0 20px 0 6px;
  font-family: 'Jost', sans-serif; font-size: 14px; font-weight: 500;
  cursor: pointer; text-decoration: none;
  transition: background-color 140ms ease; margin-bottom: 4px;
}
.pe-contact-cta:hover { background: #122f5f; color: #fff; text-decoration: none; }

/* Bouton "Alerter" dans la ligne de profil — auto-width, collé à droite */
.pif-alert-top {
  width: auto;
  flex-shrink: 0;
  margin-left: auto;
  margin-bottom: 0;
  white-space: nowrap;
}
.pe-info__row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #fff;
  border: 1px solid #E6EAF0;
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 500;
  color: #184280;
  word-break: break-word;
}
.pe-info__row svg { width: 18px; height: 18px; flex: 0 0 auto; color: #184280; margin-top: 1px; }
.pe-info__row a { color: #184280; text-decoration: none; }
.pe-info__row a:hover { text-decoration: underline; }
.pe-social-row {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  padding: 12px 18px;
  background: #fff;
  border: 1px solid #E6EAF0;
  border-radius: 10px;
}
.pe-social-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: #184280;
  color: #fff;
  font-size: 17px;
  text-decoration: none;
  transition: background .15s, transform .15s;
}
.pe-social-row a:hover { background: #122f5f; transform: scale(1.1); }

/* Share pills */
.pe-share-wrap { display: flex; gap: 8px; flex-wrap: wrap; padding: 12px 18px; background: #fff; border: 1px solid #E6EAF0; border-radius: 10px; }
.pe-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  font-family: 'Jost', sans-serif;
  transition: opacity .15s, transform .15s;
}
.pe-share-btn:hover { opacity: .88; transform: scale(1.04); text-decoration: none; }
.pe-share-btn ion-icon { font-size: 14px; }
.pe-share-fb { background: #1877F2; color: #fff; }
.pe-share-wa { background: #25D366; color: #fff; }
.pe-share-tw { background: #1DA1F2; color: #fff; }
.pe-share-li { background: #0A66C2; color: #fff; }
.pe-share-tg { background: #26A5E4; color: #fff; }

/* Claim link */
.pe-claim-link { font-size: 13px; color: #6b7280; text-align: center; text-decoration: underline; cursor: pointer; }
.pe-claim-link:hover { color: #184280; }

/* === FAB === */
.pe-fab {
  position: fixed; right: 22px; bottom: 22px;
  height: 42px; padding: 0 20px 0 6px;
  border-radius: 24px; border: 0;
  background: #f59e0b; color: #fff;
  font-family: 'Jost', sans-serif; font-size: 14px; font-weight: 500;
  cursor: pointer; display: inline-flex; align-items: center; gap: 10px;
  box-shadow: 0 4px 16px rgba(245,158,11,.5); z-index: 40;
  text-decoration: none; transition: background-color 140ms ease;
}
.pe-fab:hover { background: #d97706; color: #fff; text-decoration: none; }

/* === MODALS === */
.pe-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 1100;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s;
}
.pe-modal-overlay.is-open { opacity: 1; pointer-events: auto; }
.pe-modal {
  background: #fff;
  border-radius: 18px;
  width: 100%;
  max-width: 540px;
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 40px 80px -20px rgba(15,23,42,.45);
  transform: translateY(20px) scale(.98);
  transition: transform .28s cubic-bezier(.22,.61,.36,1);
}
.pe-modal-overlay.is-open .pe-modal { transform: translateY(0) scale(1); }
.pe-modal__head { padding: 20px 24px 0; flex: 0 0 auto; }
.pe-modal__head-row { display: flex; align-items: center; gap: 12px; }
.pe-modal__back, .pe-modal__close {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 0;
  background: #F2F4F8;
  color: #1a1a1a;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  transition: background .14s;
}
.pe-modal__back:hover, .pe-modal__close:hover { background: #E4E8EE; }
.pe-modal__back svg, .pe-modal__close svg { width: 16px; height: 16px; }
.pe-modal__back[hidden] { display: none; }
.pe-modal__titles { min-width: 0; flex: 1; }
.pe-modal__kicker { font-size: 11px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; color: #6b7280; margin: 0 0 2px; }
.pe-modal__title  { margin: 0; font-size: 18px; font-weight: 700; color: #184280; }
.pe-modal__progress { margin: 14px 0 0; height: 4px; border-radius: 999px; background: #F2F4F8; overflow: hidden; }
.pe-modal__prog-fill { height: 100%; width: 50%; background: #184280; border-radius: inherit; transition: width .32s cubic-bezier(.22,.61,.36,1); }
.pe-modal__body { padding: 18px 24px 8px; overflow-y: auto; flex: 1; scrollbar-width: thin; }
.pe-step { display: none; }
.pe-step.is-active { display: block; animation: peStepIn .28s ease; }
@keyframes peStepIn { from { opacity: 0; transform: translateX(8px); } to { opacity: 1; transform: translateX(0); } }

/* Fields */
.pe-field { margin-bottom: 14px; }
.pe-field__label { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 0 0 6px; font-size: 13px; font-weight: 600; color: #1a1a1a; }
.pe-field__hint  { font-weight: 400; font-size: 11px; color: #6b7280; }
.pe-field__help  { margin: 4px 0 0; font-size: 11px; color: #6b7280; line-height: 1.4; }
.pe-field__error { margin: 4px 0 0; font-size: 11px; color: #C44343; line-height: 1.4; display: none; }
.pe-field.has-error .pe-field__error { display: block; }
.pe-field.has-error .pe-input,
.pe-field.has-error .pe-textarea { border-color: #E0A7A7; background: #FBF3F3; }
.pe-input, .pe-textarea {
  width: 100%; border: 1.5px solid #DDE2EA; background: #fff;
  border-radius: 12px; padding: 11px 13px; font: inherit; font-family: 'Jost', sans-serif;
  font-size: 14px; color: #1a1a1a; transition: border-color .14s, box-shadow .14s; -webkit-appearance: none; box-sizing: border-box;
}
.pe-input:focus, .pe-textarea:focus { outline: none; border-color: #184280; box-shadow: 0 0 0 4px rgba(24,66,128,.12); }
.pe-textarea { min-height: 85px; resize: vertical; line-height: 1.5; }
.pe-input-group {
  display: flex; align-items: stretch; border: 1.5px solid #DDE2EA;
  border-radius: 12px; overflow: hidden; background: #fff; transition: border-color .14s, box-shadow .14s;
}
.pe-input-group:focus-within { border-color: #184280; box-shadow: 0 0 0 4px rgba(24,66,128,.12); }
.pe-input-group__prefix {
  display: inline-flex; align-items: center; gap: 6px; padding: 0 12px;
  background: #F1F5FB; color: #184280; font-weight: 600; font-size: 13px; border-right: 1.5px solid #DDE2EA;
}
.pe-wa-dot { width: 7px; height: 7px; border-radius: 50%; background: #25D366; }
.pe-input-group .pe-input { border: 0; border-radius: 0; flex: 1; }
.pe-input-group .pe-input:focus { box-shadow: none; }

.pe-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pe-chip {
  border: 1.5px solid #DDE2EA; background: #fff; color: #1a1a1a;
  border-radius: 999px; padding: 7px 13px; font: inherit; font-family: 'Jost', sans-serif;
  font-size: 12px; font-weight: 500; cursor: pointer; transition: all .14s;
}
.pe-chip:hover { border-color: #184280; color: #184280; }
.pe-chip.is-selected { background: #184280; border-color: #184280; color: #fff; }

.pe-seg { display: grid; grid-template-columns: repeat(2,1fr); gap: 5px; padding: 4px; background: #F2F4F8; border-radius: 12px; }
.pe-seg__opt {
  border: 0; background: transparent; color: #1a1a1a; padding: 10px 12px;
  border-radius: 9px; font: inherit; font-family: 'Jost', sans-serif; font-size: 13px; font-weight: 500;
  cursor: pointer; transition: all .14s; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
}
.pe-seg__opt svg { width: 14px; height: 14px; }
.pe-seg__opt.is-selected { background: #fff; color: #184280; box-shadow: 0 1px 0 rgba(20,30,55,.04), 0 4px 10px -4px rgba(20,30,55,.18); font-weight: 600; }

.pe-conditional { overflow: hidden; max-height: 0; opacity: 0; transition: max-height .32s cubic-bezier(.22,.61,.36,1), opacity .22s, margin-top .32s; margin-top: 0; }
.pe-conditional.is-open { max-height: 180px; opacity: 1; margin-top: 12px; }

.pe-check {
  display: flex; align-items: flex-start; gap: 10px; padding: 11px 12px;
  border-radius: 12px; background: #F2F4F8; cursor: pointer; user-select: none;
}
.pe-check input { position: absolute; opacity: 0; pointer-events: none; }
.pe-check__box {
  width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid #C2CAD6; background: #fff;
  flex: 0 0 auto; margin-top: 1px; display: inline-flex; align-items: center; justify-content: center; color: #fff;
  transition: background .14s, border-color .14s;
}
.pe-check__box svg { width: 12px; height: 12px; opacity: 0; transition: opacity .14s; }
.pe-check input:checked + .pe-check__box { background: #184280; border-color: #184280; }
.pe-check input:checked + .pe-check__box svg { opacity: 1; }
.pe-check__text { font-size: 12px; line-height: 1.5; color: #1a1a1a; }
.pe-check__text a { color: #184280; }

.pe-recap { background: #F2F4F8; border-radius: 12px; padding: 11px 14px; margin-bottom: 14px; font-size: 12px; color: #6b7280; line-height: 1.5; }
.pe-recap strong { color: #1a1a1a; font-weight: 600; }

.pe-modal__foot {
  padding: 12px 24px 18px; border-top: 1px solid #EEF1F5; background: #fff;
  flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.pe-autosave { font-size: 11px; color: #6b7280; display: inline-flex; align-items: center; gap: 5px; }
.pe-autosave .dot { width: 5px; height: 5px; border-radius: 50%; background: #1FBE5A; }
.pe-btn {
  height: 44px; padding: 0 20px; border: 0; border-radius: 12px; font: inherit; font-family: 'Jost', sans-serif;
  font-size: 14px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  transition: background .14s, transform .14s, opacity .14s;
}
.pe-btn--primary { background: #184280; color: #fff; min-width: 148px; }
.pe-btn--primary:hover { background: #122f5f; }
.pe-btn--primary:disabled { opacity: .45; cursor: not-allowed; }
.pe-btn--primary svg { width: 15px; height: 15px; }

.pe-success { display: none; flex-direction: column; align-items: center; text-align: center; padding: 34px 26px 42px; }
.pe-success.is-active { display: flex; animation: peStepIn .32s ease; }
.pe-success__icon { width: 60px; height: 60px; border-radius: 50%; background: rgba(31,190,90,.12); color: #1FBE5A; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.pe-success__icon svg { width: 30px; height: 30px; }
.pe-success__title { margin: 0 0 7px; font-size: 19px; font-weight: 700; color: #184280; }
.pe-success__text { margin: 0 0 20px; font-size: 13px; line-height: 1.55; color: #6b7280; max-width: 300px; }

/* Review modal */
.pe-type-toggle { display: grid; grid-template-columns: repeat(2,1fr); gap: 5px; padding: 4px; background: #F2F4F8; border-radius: 14px; margin-bottom: 18px; }
.pe-type-opt {
  border: 0; background: transparent; color: #6b7280; padding: 11px 10px; border-radius: 10px; font: inherit; font-family: 'Jost', sans-serif;
  font-size: 13px; font-weight: 600; cursor: pointer; transition: all .16s; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
}
.pe-type-opt svg { width: 15px; height: 15px; }
.pe-type-opt.is-selected { background: #fff; color: #184280; box-shadow: 0 1px 0 rgba(20,30,55,.04), 0 6px 14px -6px rgba(20,30,55,.2); }
.pe-type-opt[data-value="doleance"].is-selected { color: #6F66E0; }

.pe-rating-grid { display: flex; flex-direction: column; gap: 8px; background: #F2F4F8; border-radius: 12px; padding: 11px 14px; }
.pe-rating-row { display: grid; grid-template-columns: 90px auto 1fr; align-items: center; gap: 12px; }
.pe-rating-row__label { font-size: 12px; font-weight: 600; color: #1a1a1a; }
.pe-dots { display: inline-flex; gap: 5px; }
.pe-dot-btn { width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%; background: #D8DEE8; cursor: pointer; transition: background .14s, transform .12s; position: relative; }
.pe-dot-btn:hover { transform: scale(1.15); }
.pe-dot-btn::after { content: ""; position: absolute; inset: -6px; }
.pe-dots[data-value="1"] .pe-dot-btn[data-v="1"],
.pe-dots[data-value="2"] .pe-dot-btn[data-v="1"],
.pe-dots[data-value="2"] .pe-dot-btn[data-v="2"] { background: #E68A3A; }
.pe-dots[data-value="3"] .pe-dot-btn[data-v="1"],
.pe-dots[data-value="3"] .pe-dot-btn[data-v="2"],
.pe-dots[data-value="3"] .pe-dot-btn[data-v="3"] { background: #D7A521; }
.pe-dots[data-value="4"] .pe-dot-btn[data-v="1"],
.pe-dots[data-value="4"] .pe-dot-btn[data-v="2"],
.pe-dots[data-value="4"] .pe-dot-btn[data-v="3"],
.pe-dots[data-value="4"] .pe-dot-btn[data-v="4"],
.pe-dots[data-value="5"] .pe-dot-btn[data-v="1"],
.pe-dots[data-value="5"] .pe-dot-btn[data-v="2"],
.pe-dots[data-value="5"] .pe-dot-btn[data-v="3"],
.pe-dots[data-value="5"] .pe-dot-btn[data-v="4"],
.pe-dots[data-value="5"] .pe-dot-btn[data-v="5"] { background: #1F8A5B; }
.pe-score-cap { font-size: 12px; font-weight: 600; color: #6b7280; white-space: nowrap; }
.pe-score-cap.is-set { color: #1a1a1a; }
.pe-gravity-row .pe-chip[data-value="basse"].is-selected   { background: #E3F4E8; border-color: #B7E0C2; color: #1F8A40; }
.pe-gravity-row .pe-chip[data-value="moyenne"].is-selected { background: #FFF1DA; border-color: #F2CD8C; color: #A56A11; }
.pe-gravity-row .pe-chip[data-value="haute"].is-selected   { background: #FCE3E3; border-color: #ECB1B1; color: #B43838; }

.pe-reveal { overflow: hidden; max-height: 400px; opacity: 1; transition: max-height .32s cubic-bezier(.22,.61,.36,1), opacity .22s; }
.pe-reveal[hidden] { display: block !important; max-height: 0; opacity: 0; margin: 0; }

/* Alerts */
.pe-alert { padding: 13px 16px; border-radius: 10px; margin: 0 0 16px; font-family: 'Jost', system-ui, sans-serif; font-size: 14px; font-weight: 500; line-height: 1.5; }
.pe-alert--success { background: #E3F4E8; color: #1F8A40; border: 1px solid #B7E0C2; }
.pe-alert--info    { background: #E6F0FF; color: #184280; border: 1px solid #B9CFF8; }

/* === RELATED === */
.pe-related { max-width: 1480px; margin: 0 auto; padding: 0 56px 56px; }
.pe-related__title { font-size: 21px; font-weight: 700; color: #184280; margin: 0 0 22px; }

/* === RESPONSIVE === */

/* ── Tablet ≤ 1100px ─────────────────────────────────────────── */
@media (max-width: 1100px) {
  .pe-header-strip {
    padding: 0 20px 20px;
    grid-template-columns: 1fr;
  }
  .pe-brand    { margin-top: -50px; }
  .pe-topbar   { grid-template-columns: repeat(2, 1fr); margin-top: 10px; }
  .pe-topbar--4 { grid-template-columns: repeat(2, 1fr); }
  .pe-main     { padding: 0 20px 56px; }
  .pe-card     { grid-template-columns: 1fr; gap: 26px; padding: 26px 20px; }
  .pe-related  { padding: 0 20px 44px; }
}

/* ── Mobile ≤ 680px ──────────────────────────────────────────── */
@media (max-width: 680px) {
  /* Hauteur mobile : 50vh pour tous les modes */
  .pe-carousel { height: 50vh; }

  /* Galerie statique (≤3 images) : scroll horizontal CSS snap */
  .pe-carousel:not(.pe-carousel--slider) {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .pe-carousel:not(.pe-carousel--slider)::-webkit-scrollbar { display: none; }
  .pe-carousel:not(.pe-carousel--slider) .pe-carousel__track {
    grid-template-columns: repeat(var(--slides, 2), min(calc(100vw - 48px), 320px));
    gap: 10px;
    padding: 0 16px;
  }
  .pe-carousel:not(.pe-carousel--slider) .pe-slide { scroll-snap-align: start; }

  /* Marquee (>3 images) : réduit le padding sur mobile */
  .pe-carousel--slider .pe-carousel__track { padding: 8px 10px; gap: 10px; }
}

/* ── Mobile ≤ 640px ──────────────────────────────────────────── */
@media (max-width: 640px) {
  /* Header */
  .pe-header-strip { padding: 0 14px 16px; gap: 16px; }
  .pe-brand        { margin-top: -40px; gap: 12px; }
  .pe-brand__mark  { width: 76px; height: 76px; border-radius: 10px; font-size: 32px; }
  .pe-brand__name  { font-size: 20px; }
  .pe-brand__tag   { font-size: 11px; }

  /* Topbar pills */
  .pe-topbar       { grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 6px; }
  .pe-pill         { height: 52px; padding: 0 10px; font-size: 12px; }
  .pe-pill svg     { width: 16px; height: 16px; }
  .pe-pill__val    { font-size: 12px; }

  /* Main card */
  .pe-main         { padding: 0 12px 48px; }
  .pe-card         { padding: 20px 16px; gap: 20px; border-radius: 12px; }

  /* Timeline */
  .pe-tl-panel     { padding: 16px 16px 18px; }

  /* Reviews */
  .pe-reviews      { padding: 16px 14px 18px; }
  .pe-reviews__grid { grid-template-columns: 1fr; gap: 18px; }
  .pe-reviews__head { flex-direction: column; align-items: flex-start; gap: 8px; }

  /* Info sidebar */
  .pe-info__row    { padding: 12px 14px; font-size: 13px; }

  /* Related */
  .pe-related      { padding: 0 12px 36px; }
  .pe-related__title { font-size: 18px; }

  /* FAB */
  .pe-fab          { right: 14px; bottom: 14px; height: 38px; font-size: 13px; }

  /* Modals */
  .pe-modal-overlay { padding: 0; align-items: flex-end; }
  .pe-modal         { max-width: none; max-height: 92vh; border-radius: 18px 18px 0 0; transform: translateY(40px); }
  .pe-rating-row    { grid-template-columns: 80px auto 1fr; gap: 8px; }
}

/* ── Mobile ≤ 400px ──────────────────────────────────────────── */
@media (max-width: 400px) {
  .pe-topbar       { grid-template-columns: 1fr; }
  .pe-pill__kicker { display: none; }
  .pe-fab          { display: none; }
  .pe-brand__name  { font-size: 18px; }

  /* Galerie statique */
  .pe-carousel:not(.pe-carousel--slider) { padding: 12px; }
  .pe-carousel:not(.pe-carousel--slider) .pe-carousel__track {
    grid-template-columns: repeat(var(--slides, 2), min(calc(100vw - 48px), 240px));
  }

  /* Marquee */
  .pe-carousel--slider .pe-carousel__track { padding: 6px 8px; gap: 8px; }
}

/* ═══════════════════════════════════════════════════════
   PIF-* — Nouveau design infofiche (v2)
   Préfixe pif- pour éviter les conflits avec pe-
═══════════════════════════════════════════════════════ */

/* ── Container principal ── */
.pif-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 20px 72px;
}

/* ── Section profil intro ── */
.pif-profile {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 26px;
  padding: 0 !important;
}

/* Logo / tile de marque */
.pif-brand-tile {
  width: 92px;
  height: 92px;
  flex-shrink: 0;
  border-radius: 22px;
  background: linear-gradient(150deg, #1F3A6B, #0F2240);
  display: grid;
  place-items: center;
  box-shadow: 0 10px 28px rgba(19,41,75,.35);
  overflow: hidden;
  position: relative;
  margin-top: 5px;
  border: 4px solid #D5E2FB;
}

.pif-brand-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pif-brand-tile__initial {
  font-family: 'Jost', system-ui, sans-serif;
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.pif-brand-tile__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.52);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  transition: opacity .18s;
}

.pif-brand-tile:hover .pif-brand-tile__overlay { opacity: 1; }

/* PID — nom + catégorie */
.pif-pid { flex: 1; min-width: 0; }

.pif-pid__name {
  font-family: 'Jost', system-ui, sans-serif;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: #13294B;
  margin: 0;
  line-height: 1.1;
}

.pif-pid__sub {
  font-family: 'Jost', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #6B7A90;
  margin-top: 5px;
}

/* Bouton Modifier */
.pif-edit-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1.8px solid #184280;
  background: #fff;
  color: #184280;
  font-family: 'Jost', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .16s, color .16s;
  white-space: nowrap;
  flex-shrink: 0;
}
.pif-edit-btn.is-editing { background: #184280; color: #fff; }
.pif-edit-btn:hover:not(.is-editing) { background: #EEF2F8; }

/* ── Grille 2 colonnes ── */
.pif-cards-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  margin-bottom: 26px;
  padding: 0 !important;
}

@media (min-width: 680px) {
  .pif-cards-row { grid-template-columns: .82fr 1.18fr; }
}

/* ── Panel générique ── */
.pif-panel {
  background: #EDF1F7;
  border-radius: 24px;
  padding: 28px 26px 30px;
}

.pif-panel-title {
  font-family: 'Jost', system-ui, sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #13294B;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: 0 0 16px;
}

/* ── DL — liste coordonnées ── */
.pif-dl {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pif-dl__row dt {
  font-family: 'Jost', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #6B7A90;
  margin-bottom: 2px;
}

.pif-dl__row dd {
  font-family: 'Jost', system-ui, sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #13294B;
  margin: 0;
  word-break: break-word;
}

.pif-dl__row dd a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.pif-dl__row dd a:hover { color: #184280; }

.pif-dl__empty {
  font-size: 13px;
  color: #6B7A90;
  font-style: italic;
}

/* ── Édition en ligne (clic direct sur la valeur) ── */
.pif-input,
.pif-textarea {
  display: none;
  width: 100%;
  box-sizing: border-box;
  border: 1.5px solid #C8D4E8;
  background: #fff;
  border-radius: 10px;
  padding: 10px 12px;
  font-family: 'Jost', system-ui, sans-serif;
  font-size: 14px;
  color: #13294B;
  transition: border-color .15s, box-shadow .15s;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.pif-input:focus,
.pif-textarea:focus {
  border-color: #184280;
  box-shadow: 0 0 0 3px rgba(24,66,128,.15);
}

.pif-textarea { resize: vertical; min-height: 120px; }

.pif-editable__ph {
  font-style: italic;
  color: #9AA5B1;
  font-weight: 500;
}

.pe-page.is-editing .pif-editable__view { display: none; }
.pe-page.is-editing .pif-editable__input { display: block; }

.pe-page.is-editing .pif-editable {
  border-radius: 8px;
  transition: background-color .15s;
}
.pe-page.is-editing .pif-dl__row.pif-editable { padding: 4px 8px; margin: -4px -8px; }
.pe-page.is-editing .pif-editable:focus-within { background: rgba(24,66,128,.05); }

/* ── Panel Histoire ── */
.pif-histoire-text {
  font-family: 'Jost', system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.65;
  color: #374151;
  margin: 0 0 16px;
  white-space: pre-line;
}

.pif-histoire-empty {
  font-size: 13px;
  color: #6B7A90;
  font-style: italic;
  margin: 0 0 16px;
}

/* ── Derniers avis / doléances ── */
.pif-recent { border-top: 1px solid rgba(19,41,75,.1); padding-top: 16px; margin-top: 16px; }

.pif-recent-item + .pif-recent-item { margin-top: 14px; border-top: 1px solid rgba(19,41,75,.06); padding-top: 14px; }

.pif-recent-pill {
  display: inline-block;
  font-family: 'Jost', system-ui, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  margin-bottom: 6px;
}
.pif-recent-pill--avis     { background: #D1FAE5; color: #065F46; }
.pif-recent-pill--doleance { background: #FEF3C7; color: #92400E; }

.pif-recent-text {
  font-family: 'Jost', system-ui, sans-serif;
  font-size: 13px;
  color: #374151;
  line-height: 1.5;
  margin: 0 0 4px;
  font-style: italic;
}

.pif-recent-author {
  font-family: 'Jost', system-ui, sans-serif;
  font-size: 12px;
  color: #6B7A90;
  margin: 0;
}

/* ── CTA visiteur ── */
.pif-alert-block {
  display: flex;
  justify-content: flex-start;
  margin: 0 0 26px;
}

/* ── Section Avis ── */
.pif-reviews-section { margin-bottom: 22px; padding: 0 !important; }

.pif-reviews-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.pif-reviews-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #fff;
  display: grid;
  place-items: center;
  color: #13294B;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(19,41,75,.08);
}

.pif-reviews-title {
  font-family: 'Jost', system-ui, sans-serif;
  font-size: 22px;
  font-weight: 800;
  font-style: italic;
  color: #13294B;
  margin: 0;
  flex: 1;
}

/* Carte avis individuelle */
.pif-review {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid rgba(19,41,75,.08);
}

.pif-review:first-of-type { border-top: none; }

.pif-review__av {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 10px;
  background: #fff;
  display: grid;
  place-items: center;
  color: #13294B;
  box-shadow: 0 2px 8px rgba(19,41,75,.1);
  font-family: 'Jost', system-ui, sans-serif;
  font-size: 20px;
  font-weight: 700;
  overflow: hidden;
}

.pif-review__av img { width: 100%; height: 100%; object-fit: cover; }

.pif-review__body { flex: 1; min-width: 0; }

.pif-review__name {
  font-family: 'Jost', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 700;
  font-style: italic;
  color: #13294B;
  margin: 0 0 4px;
}

.pif-review__text {
  font-family: 'Jost', system-ui, sans-serif;
  font-size: 13px;
  color: #374151;
  line-height: 1.5;
  margin: 6px 0 0;
}

/* ── Distribution des notes ── */
.pif-allrev-section { 
  margin-bottom: 26px; 
  padding: 0 !important; 
  width: 50%;
}

.pif-allrev-title {
  font-family: 'Jost', system-ui, sans-serif;
  font-size: 20px;
  font-weight: 800;
  font-style: italic;
  color: #13294B;
  margin: 0 0 12px;
}

.pif-bars {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.pif-bar-row {
  display: grid;
  grid-template-columns: 80px 1fr 44px;
  align-items: center;
  gap: 12px;
}

.pif-bar-label {
  font-family: 'Jost', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #6B7A90;
  white-space: nowrap;
}

.pif-bar-track {
  height: 14px;
  border-radius: 999px;
  background: #DBE1EB;
  overflow: hidden;
}

.pif-bar-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: #F5B935;
  transition: width .4s ease;
}

.pif-bar-pct {
  font-family: 'Jost', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #6B7A90;
  text-align: right;
}

/* ── Champ lien d'image (visible en mode édition) ── */
.pif-img-link-wrap {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 6px 8px;
  background: rgba(19,41,75,.72);
  display: none;
}
.pe-page.is-editing .pif-img-link-wrap { display: block; }

.pif-img-link-input {
  width: 100%;
  box-sizing: border-box;
  border: 1.5px solid rgba(255,255,255,.4);
  border-radius: 7px;
  background: rgba(255,255,255,.15);
  color: #fff;
  font-family: 'Jost', system-ui, sans-serif;
  font-size: 12px;
  padding: 5px 9px;
  outline: none;
  transition: border-color .15s, background .15s;
}
.pif-img-link-input::placeholder { color: rgba(255,255,255,.55); }
.pif-img-link-input:focus { border-color: #F5B935; background: rgba(255,255,255,.25); }

/* ── Boutons du slider gallery — supprimer ── */
.pif-img-del {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(200,0,0,.82);
  border: 0;
  color: #fff;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10;
  padding: 0;
}

.pif-img-del svg { width: 14px; height: 14px; }

.pe-page.is-editing .pif-img-del { display: flex; }

/* ── Slot ajout photo ── */
.pif-add-photo-slot { display: none !important; }

.pe-page.is-editing .pif-add-photo-slot { display: flex !important; }

.pif-add-photo-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  width: 100%;
  height: 100%;
  min-height: 100px;
  background: rgba(24,66,128,.08);
  color: #184280;
  border: 2px dashed rgba(24,66,128,.3);
  border-radius: 6px;
  font-family: 'Jost', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 600;
  transition: background .15s;
}
.pif-add-photo-label:hover { background: rgba(24,66,128,.14); }
.pif-add-photo-label--empty {
  min-height: 160px;
  border-radius: 0;
  font-size: 14px;
}

.pif-add-photo-marquee {
  display: none;
  position: absolute;
  right: 60px;
  bottom: 14px;
  align-items: center;
  gap: 8px;
  background: rgba(24,66,128,.9);
  color: #fff;
  border: 1.5px dashed rgba(255,255,255,.5);
  border-radius: 10px;
  padding: 10px 16px;
  font-family: 'Jost', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  z-index: 10;
}

.pif-gallery-empty-owner {
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Barre d'édition fixe en bas ── */
.pif-edit-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99;
  background: #13294B;
  transform: translateY(100%);
  transition: transform .3s cubic-bezier(.22,.61,.36,1);
}

.pif-edit-bar.is-visible { transform: translateY(0); }

.pif-edit-bar__inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.pif-edit-bar__hint {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: 'Jost', system-ui, sans-serif;
  font-size: 13px;
  color: rgba(255,255,255,.7);
}

.pif-edit-bar__btns {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pif-edit-bar__save {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  border: 0;
  background: #F5B935;
  color: #13294B;
  font-family: 'Jost', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s;
}
.pif-edit-bar__save:hover { background: #E5A91A; }
.pif-edit-bar__save:disabled { opacity: .6; cursor: not-allowed; }

/* ── Responsive pif-* ── */
@media (max-width: 680px) {
  .pif-brand-tile {
    width: 74px;
    height: 74px;
    margin-top: -46px;
    border-radius: 16px;
  }
  .pif-brand-tile__initial { font-size: 28px; }
  .pif-pid__name  { font-size: 20px; }
  .pif-panel { padding: 20px 18px 22px; border-radius: 14px; }
  .pif-reviews-title { font-size: 18px; }
  .pif-bar-row { grid-template-columns: 68px 1fr 36px; gap: 8px; }
  .pif-edit-bar__hint { display: none; }
}

@media (max-width: 400px) {
  .pif-container { padding: 0 12px 72px; }
  .pif-profile { gap: 12px; }
  .pif-brand-tile { margin-top: -38px; }
}

/* ── Réseaux sociaux — icônes toujours affichées ── */
.pe-social-placeholder {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  width: 34px;
  color: #C8D0DC;
  font-size: 17px;
  cursor: default;
  text-align: center;
}
.pe-social-placeholder ion-icon { font-size: 17px; }
.pe-social-lbl {
  font-size: 8px;
  font-family: 'Jost', sans-serif;
  font-weight: 500;
  color: #C8D0DC;
  white-space: nowrap;
  letter-spacing: .02em;
}

/* ── Bloc unifié Avis récents + Laisser un avis ── */
.pif-reviews-panel { padding: 26px 26px 28px; }

.pif-reviews-divider {
  border: none;
  border-top: 1px solid rgba(19,41,75,.12);
  margin: 20px 0 22px;
}

/* ── Section Laisser un avis (bottom du bloc unifié) ── */
.pif-quickreview { /* hérite de pif-reviews-panel, plus de panel propre */ }
.pif-quickreview__title {
  font-family: 'Jost', system-ui, sans-serif;
  font-size: 15px;
  font-weight: 700;
  font-style: italic;
  color: #13294B;
  margin: 0 0 12px;
}
.pif-qr-stars {
  display: flex;
  gap: 5px;
  margin-bottom: 12px;
}
.pif-qr-star {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: #D1DCEC;
  font-size: 26px;
  line-height: 1;
  transition: color .12s, transform .1s;
}
.pif-qr-star:hover,
.pif-qr-star.is-on { color: #F5BB1F; transform: scale(1.12); }

/* Wrapper position: relative pour contenir le bouton absolu */
.pif-qr-input-wrap {
  position: relative;
}

.pif-qr-text {
  width: 100%;
  box-sizing: border-box;
  border: 1.5px solid #D1DCEC;
  border-radius: 12px;
  padding: 12px 52px 12px 14px; /* droit laisse la place au bouton */
  font-family: 'Jost', system-ui, sans-serif;
  font-size: 14px;
  color: #13294B;
  background: #fff;
  resize: vertical;
  min-height: 80px;
  outline: none;
  transition: border-color .15s;
  display: block;
}
.pif-qr-text:focus { border-color: #184280; }

/* Bouton envoyer — icône only, positionné dans le textarea */
.pif-qr-send {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 0;
  background: #EDF1F7;
  color: #184280;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .15s, color .15s;
  padding: 0;
  flex-shrink: 0;
}
.pif-qr-send:hover { background: #184280; color: #fff; }

/* ── Bouton "Voir tous les avis" — dans la tête du panel ── */
.pif-allrev-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1.8px solid #184280;
  background: transparent;
  color: #184280;
  font-family: 'Jost', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background .14s, color .14s;
  margin-left: auto;
  white-space: nowrap;
  flex-shrink: 0;
}
.pif-allrev-btn:hover { background: #184280; color: #fff; }

/* ── Modal "Tous les avis" ── */
.pe-allrev-modal .pe-modal { max-height: 90vh; overflow-y: auto; }
.pe-allrev-list { display: flex; flex-direction: column; gap: 0; }


/* ═══════════════════════════════════════════════════════
   PIF v3 — En-tête compact + layout 2 colonnes
   (contenu principal à gauche, contact / coordonnées /
    publicité à droite)
═══════════════════════════════════════════════════════ */

.pif-container { max-width: 1180px; }

/* ── En-tête : carte blanche logo + identité + note/actions ── */
.pif-profile {
  background: #fff;
  border-radius: 20px;
  padding: 16px 22px !important;
  box-shadow: 0 8px 24px -16px rgba(19,41,75,.35);
  align-items: center;
  gap: 16px;
}
/* Photo de profil agrandie d'un tiers (76 → 101px) */
.pif-profile .pif-brand-tile { width: 101px; height: 101px; border-radius: 21px; margin-top: 0; }
.pif-profile .pif-brand-tile__initial { font-size: 40px; }
.pif-profile .pif-pid__name { font-size: 24px; }
.pif-profile .pif-pid__sub {
  font-size: 11px; letter-spacing: .14em; margin-top: 3px; color: #8A97AB;
}

.pif-pid__meta { display: flex; flex-direction: column; gap: 3px; margin-top: 8px; }
.pif-pid__meta-line {
  display: flex; align-items: flex-start; gap: 7px;
  font-family: 'Jost', system-ui, sans-serif; font-size: 13px;
  color: #4A5B72; line-height: 1.35; overflow-wrap: anywhere;
}
.pif-pid__meta-line svg { width: 15px; height: 15px; flex: 0 0 auto; margin-top: 1px; color: #184280; }
.pif-pid__meta-line a { color: inherit; text-decoration: none; }
.pif-pid__meta-line a:hover { color: #184280; text-decoration: underline; }

.pif-profile__aside {
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
  margin-left: auto; flex-shrink: 0;
}
.pif-pid__rating {
  display: flex; align-items: center; gap: 8px;
  font-family: 'Jost', system-ui, sans-serif; font-size: 13px; color: #6B7A90;
}
.pif-pid__rating-val { font-size: 15px; font-weight: 700; color: #13294B; }
.pif-pid__rating-count { font-weight: 600; color: #13294B; }
.pif-profile__actions { display: flex; align-items: center; gap: 8px; }

/* Bouton d'alerte vert « WhatsApp » */
.pif-alert-btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 18px 0 6px;
  border: 0; border-radius: 999px;
  background: #22B14C; color: #fff;
  font-family: 'Jost', system-ui, sans-serif; font-size: 14px; font-weight: 600;
  cursor: pointer; white-space: nowrap;
  transition: background .16s, box-shadow .16s;
}
.pif-alert-btn:hover { background: #1c9840; color: #fff; box-shadow: 0 6px 16px -6px rgba(29,169,79,.6); }
.pif-alert-btn__icon {
  width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.28);
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.pif-alert-btn__icon svg { width: 14px; height: 14px; }
.pif-alert-btn--block { width: 100%; justify-content: center; height: 44px; padding: 0 18px; }

/* Bouton de partage rond */
.pif-share-round {
  width: 40px; height: 40px; flex-shrink: 0;
  border: 0; border-radius: 50%;
  background: #184280; color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .16s, transform .16s;
}
.pif-share-round:hover { background: #122f5f; transform: translateY(-1px); }
.pif-share-round.is-copied { background: #22B14C; }

@media (max-width: 720px) {
  .pif-profile { padding: 14px 16px !important; }
  /* La photo et l'identité restent sur la MÊME ligne : seul le bloc note/actions
     passe en dessous (avant, .pif-pid { flex-basis:100% } cassait la ligne et la
     pastille se retrouvait seule au-dessus du nom). */
  .pif-profile { align-items: center; }
  .pif-profile .pif-brand-tile { flex: 0 0 auto; }
  .pif-profile .pif-pid { flex: 1 1 0; flex-basis: 0; min-width: 0; }
  .pif-profile__aside {
    align-items: flex-start; margin-left: 0;
    flex: 1 1 100%; width: 100%;
  }
}

/* ── Layout 2 colonnes ── */
.pif-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 22px;
  align-items: start;
}
.pif-main { min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.pif-side {
  display: flex; flex-direction: column; gap: 16px;
  position: sticky; top: 92px;
  max-height: calc(100vh - 110px); overflow-y: auto;
  scrollbar-width: thin; scrollbar-color: rgba(24,66,128,.25) transparent;
}
.pif-side::-webkit-scrollbar { width: 8px; }
.pif-side::-webkit-scrollbar-thumb { background: rgba(24,66,128,.25); border-radius: 999px; }

@media (max-width: 980px) {
  .pif-layout { grid-template-columns: 1fr; }
  .pif-side { position: static; max-height: none; overflow: visible; }
}

/* ── Rangée Note moyenne + Laisser un avis ── */
.pif-rating-row {
  display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 22px; padding: 0 !important; margin: 0 !important;
}
@media (max-width: 760px) { .pif-rating-row { grid-template-columns: 1fr; } }

/* Ces sections ne pilotent plus la largeur : le layout s'en charge */
.pif-allrev-section { width: auto; margin-bottom: 0; }
.pif-reviews-section { margin-bottom: 0; }
.pif-cards-row { margin-bottom: 0; }

.pif-quickreview-panel .pif-quickreview { margin-top: 0; padding-top: 0; border-top: 0; }

/* ── Carte de contact latérale ── */
.pif-contact-card { padding: 20px 20px 22px; background: #EFF7F1; }
.pif-contact-card__kicker {
  font-family: 'Jost', system-ui, sans-serif; font-size: 11px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: #6B7A90; margin: 0 0 4px;
}
.pif-contact-card__title {
  font-family: 'Jost', system-ui, sans-serif; font-size: 16px; font-weight: 700;
  color: #22B14C; margin: 0 0 14px; padding-bottom: 10px;
  border-bottom: 2px solid rgba(34,177,76,.25);
}
.pif-contact-card__text,
.pif-contact-card__input {
  width: 100% !important; display: block;
  border: 1.5px solid rgba(34,177,76,.35) !important;
  border-radius: 12px !important;
  background: #fff !important; color: #13294B !important;
  font-family: 'Jost', system-ui, sans-serif !important; font-size: 14px !important;
  padding: 10px 12px !important; margin: 0 0 10px !important;
  resize: vertical !important; height: auto !important;
}
.pif-contact-card__text:focus,
.pif-contact-card__input:focus {
  outline: none; border-color: #22B14C !important;
  box-shadow: 0 0 0 3px rgba(34,177,76,.15) !important;
}
.pif-contact-card__text::placeholder,
.pif-contact-card__input::placeholder { color: #9AA8BA !important; opacity: 1; }

/* Libellés + bouton « Auto-remplir » + groupe préfixe +509 (comme le modal) */
.pif-contact-card__label-row {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px;
}
.pif-contact-card__label {
  display: block; margin: 0 0 6px;
  font-family: 'Jost', system-ui, sans-serif; font-size: 12px; font-weight: 600;
  color: #4A5B72; letter-spacing: .02em;
}
.pif-contact-card__label-row .pif-contact-card__label { margin: 0; }
.pif-contact-card__group {
  width: 100%; margin: 0 0 4px;
  border-color: rgba(34,177,76,.35) !important;
}
.pif-contact-card__group:focus-within {
  border-color: #22B14C !important; box-shadow: 0 0 0 3px rgba(34,177,76,.15) !important;
}
.pif-contact-card__group .pe-input {
  margin: 0 !important; border: 0 !important; box-shadow: none !important;
  min-width: 0; background: transparent !important;
}
.pif-contact-card__help {
  font-family: 'Jost', system-ui, sans-serif; font-size: 11.5px; color: #7C8A9E;
  margin: 0 0 10px;
}

/* ── Espace publicitaire (géré depuis /my-admin) ── */
.pif-ads { display: flex; flex-direction: column; gap: 10px; }
.pif-ads__label {
  font-family: 'Jost', system-ui, sans-serif; font-size: 11px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: #8A97AB;
}
.pif-ad {
  display: block; border-radius: 16px; overflow: hidden;
  background: #EDF1F7; border: 1px solid rgba(24,66,128,.08); line-height: 0;
  transition: box-shadow .2s ease, transform .2s ease;
}
a.pif-ad:hover { box-shadow: 0 14px 28px -18px rgba(24,66,128,.5); transform: translateY(-2px); }
.pif-ad img, .pif-ad video { width: 100%; height: auto; display: block; }

/* ═══════════════════════════════════════════════════════
   PIF v4 — Largeur 90 %, coordonnées dans l'en-tête,
   « Note moyenne » repliable sur mobile
═══════════════════════════════════════════════════════ */

/* Même largeur que l'en-tête du site (90 % sur grand écran) */
.pif-container {
  width: 90%;
  max-width: none;
  margin: 0 auto;
  padding: 0 0 72px;
}
@media (max-width: 900px) {
  .pif-container { width: 100%; padding: 0 16px 72px; }
}

/* Coordonnées de l'en-tête : édition en ligne du propriétaire */
.pif-pid__meta { gap: 5px; }
.pif-pid__meta-line .pif-editable__view { min-width: 0; overflow-wrap: anywhere; }
.pif-pid__meta-line .pif-editable__input {
  display: none;
  height: 30px !important;
  padding: 3px 8px !important;
  margin: 0 !important;
  font-size: 13px !important;
  max-width: 320px;
}
.pe-page.is-editing .pif-pid__meta-line { align-items: center; }
.pe-page.is-editing .pif-pid__meta-line .pif-editable__input { display: block; }

/* Panneau d'édition propriétaire : masqué hors mode édition */
.pif-owner-fields { display: none; }
.pe-page.is-editing .pif-owner-fields { display: block; }

.pif-share-panel { padding: 18px 20px 20px; }
.pif-share-panel .pe-share-wrap { margin: 0 0 10px; }

/* ── « Note moyenne » repliable sur mobile ── */
.pif-panel-toggle {
  display: none;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-family: 'Jost', system-ui, sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #13294B;
  text-align: left;
}
.pif-panel-toggle__chev {
  flex: 0 0 auto;
  transition: transform .22s ease;
}
.pif-panel-toggle[aria-expanded="true"] .pif-panel-toggle__chev { transform: rotate(180deg); }

/* Rapproche le titre « Note moyenne » de son contenu */
.pif-allrev-panel > .pif-panel-title { margin-bottom: 6px; }

/* Résumé de la note : hors du repliable, visible en permanence */
.pif-note-summary {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  margin-bottom: 4px;
}
.pif-note-summary__val {
  font-family: 'Jost', system-ui, sans-serif;
  font-size: 22px; font-weight: 700; color: #13294B; line-height: 1;
}

@media (max-width: 760px) {
  /* Le titre statique cède la place au bouton dépliant */
  .pif-allrev-panel > .pif-panel-title { display: none; }
  .pif-allrev-panel .pif-panel-toggle  { display: flex; }
  .pif-allrev-panel .pif-collapse {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .28s ease, margin-top .28s ease;
    margin-top: 0;
  }
  .pif-allrev-panel .pif-collapse > * { overflow: hidden; min-height: 0; }
  .pif-allrev-panel .pif-collapse.is-open {
    grid-template-rows: 1fr;
    margin-top: 14px;
  }
  /* Le résumé (note, étoiles, nombre d'avis) reste affiché sous le bouton,
     même panneau replié — c'est l'information la plus consultée. */
  .pif-allrev-panel .pif-note-summary { margin-top: 12px; margin-bottom: 0; }
}

/* ═══════════════════════════════════════════════════════
   Modal « Alerter mon besoin » — thème vert WhatsApp
   Portée : #pe-contact-overlay uniquement, pour que le modal
   d'avis (#pe-review-overlay) et le reste du site gardent le bleu.
═══════════════════════════════════════════════════════ */
#pe-contact-overlay {
  --pe-wa:       #22B14C;
  --pe-wa-dark:  #1c9840;
  --pe-wa-soft:  rgba(34,177,76,.12);
}

#pe-contact-overlay .pe-modal__title      { color: var(--pe-wa-dark); }
#pe-contact-overlay .pe-modal__prog-fill  { background: var(--pe-wa); }

#pe-contact-overlay .pe-input:focus,
#pe-contact-overlay .pe-textarea:focus,
#pe-contact-overlay .pe-input-group:focus-within {
  border-color: var(--pe-wa);
  box-shadow: 0 0 0 4px var(--pe-wa-soft);
}

#pe-contact-overlay .pe-chip:hover        { border-color: var(--pe-wa); color: var(--pe-wa-dark); }
#pe-contact-overlay .pe-chip.is-selected  { background: var(--pe-wa); border-color: var(--pe-wa); color: #fff; }
#pe-contact-overlay .pe-seg__opt.is-selected { color: var(--pe-wa-dark); }

#pe-contact-overlay .pe-check input:checked + .pe-check__box {
  background: var(--pe-wa); border-color: var(--pe-wa);
}
#pe-contact-overlay .pe-check__text a     { color: var(--pe-wa-dark); }

#pe-contact-overlay .pe-btn--primary        { background: var(--pe-wa); }
#pe-contact-overlay .pe-btn--primary:hover  { background: var(--pe-wa-dark); }

#pe-contact-overlay .pe-success__title    { color: var(--pe-wa-dark); }
#pe-contact-overlay .pe-success__icon     { background: var(--pe-wa-soft); color: var(--pe-wa); }

#pe-contact-overlay .pe-step-intro        { background: #EFF9F2; color: #2C4A38; }
#pe-contact-overlay .pe-step-link         { color: var(--pe-wa-dark); }
#pe-contact-overlay .pe-step-link:hover   { color: var(--pe-wa); }

#pe-contact-overlay .pe-autofill-btn      { border-color: #CDE9D6; background: #F1FAF4; color: var(--pe-wa-dark); }
#pe-contact-overlay .pe-autofill-btn:hover{ background: var(--pe-wa); color: #fff; border-color: var(--pe-wa); }

/* Le bouton flottant qui ouvre ce modal suit la même couleur */
.pe-fab {
  background: #22B14C;
  box-shadow: 0 4px 16px rgba(34,177,76,.45);
}
.pe-fab:hover { background: #1c9840; }

/* ═══════════════════════════════════════════════════════
   PIF v5 — Chevauchement galerie, popover de partage,
   proportions 2/3 – 1/3
═══════════════════════════════════════════════════════ */

/* La carte d'en-tête remonte de 12px sur la galerie (#pe-gallery) */
.pif-profile {
  position: relative;
  z-index: 3;
  margin-top: -12px;
}

/* ── Popover de partage (remplace l'ancien panneau latéral) ── */
.pif-share-wrap { position: relative; display: inline-flex; }

.pif-share-pop {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 60;
  width: 260px;
  max-width: 78vw;
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(24,66,128,.10);
  box-shadow: 0 18px 44px rgba(19,41,75,.22);
  padding: 14px;
  animation: pifSharePopIn .16s ease;
}
.pif-share-pop[hidden] { display: none; }
@keyframes pifSharePopIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.pif-share-pop::after {
  content: '';
  position: absolute;
  bottom: 100%;
  right: 14px;
  border: 7px solid transparent;
  border-bottom-color: #fff;
}
.pif-share-pop__title {
  margin: 0 0 10px;
  font-family: 'Jost', system-ui, sans-serif;
  font-size: 11px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: #8A97AB;
}
.pif-share-pop .pe-share-wrap {
  display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px;
}
.pif-share-pop .pe-claim-link {
  display: inline-block;
  font-family: 'Jost', system-ui, sans-serif;
  font-size: 12px; color: #6B7A90;
  text-decoration: underline; text-underline-offset: 3px;
}

@media (max-width: 720px) {
  /* En pile, l'ancrage à droite sortirait de l'écran */
  .pif-share-pop { right: auto; left: 0; }
  .pif-share-pop::after { right: auto; left: 14px; }
}

/* ── Proportions : contenu principal 2/3, colonne latérale 1/3 ── */
.pif-layout { grid-template-columns: 2fr 1fr; }
@media (max-width: 980px) { .pif-layout { grid-template-columns: 1fr; } }

/* Retour d'état du formulaire de contact latéral */
.pif-contact-card__msg {
  margin: 0 0 10px;
  font-family: 'Jost', system-ui, sans-serif;
  font-size: 12.5px;
  line-height: 1.45;
  border-radius: 10px;
  padding: 8px 10px;
}
.pif-contact-card__msg[hidden] { display: none; }
.pif-contact-card__msg.is-err { background: #FDECEA; color: #B3261E; }
.pif-contact-card__msg.is-ok  { background: #E7F7EE; color: #14803C; }

/* ═══════════════════════════════════════════════════════
   Responsive — galerie (photos de couverture + publicités)
   et photo de profil agrandie. Placé en fin de fichier pour
   passer après les règles de galerie plus haut.
═══════════════════════════════════════════════════════ */
@media (max-width: 480px) {
  /* Photo de profil agrandie, mais plafonnée pour ne pas écraser le nom */
  .pif-profile .pif-brand-tile { width: 84px; height: 84px; border-radius: 18px; }
  .pif-profile .pif-brand-tile__initial { font-size: 32px; }
}
