/* ============================================================
   Fiche prestataire — répertoire services
   DA PropulseCar : bleu #034AAA, navy, League Spartan
   ============================================================ */

.sv-modal.sv-fiche {
  --fiche-navy: #0B1F3A;
  --fiche-blue: #034AAA;
  --fiche-blue-lift: #1D6BE0;
  --fiche-open: #0E9F6E;
  --fiche-closed: #B4405A;
  --fiche-muted: #64708A;
  --fiche-line: #E4E8EF;
  --fiche-wash: #F5F7FA;
  --fiche-paper: #FFFFFF;
  --fiche-display: "League Spartan", "Montserrat", system-ui, sans-serif;
  --fiche-shadow: 0 30px 70px -30px rgba(11, 31, 58, 0.38);
  --fiche-pad: 32px;

  position: relative;
  width: min(520px, calc(100% - 24px));
  max-width: 520px;
  height: auto !important;
  max-height: min(calc(100% - 24px), 860px) !important;
  flex: 0 1 auto;
  align-self: center;
  border-radius: 24px;
  background: var(--fiche-paper);
  box-shadow: var(--fiche-shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: var(--fiche-navy);
}

.sv-modal.sv-fiche::before {
  display: none;
}

.sv-overlay.open:has(.sv-fiche) {
  padding: 24px 16px;
  align-items: center;
  justify-content: center;
}

.sv-fiche-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(11, 31, 58, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.18s;
}
.sv-fiche-close:hover {
  background: rgba(11, 31, 58, 0.82);
}

/* Galerie */
.sv-fiche-gal {
  position: relative;
  background: var(--fiche-navy);
  flex: 0 0 auto;
  overflow: hidden;
}
.sv-fiche-gal-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.sv-fiche-gal-track::-webkit-scrollbar { display: none; }
.sv-fiche-gal-shot {
  flex: 0 0 100%;
  scroll-snap-align: center;
  aspect-ratio: 16 / 9;
  width: 100%;
  height: auto;
  max-height: min(42vh, 360px);
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  background: linear-gradient(155deg, #16305C 0%, #0B1F3A 55%, #16305C 100%);
  overflow: hidden;
}
.sv-fiche-gal-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.sv-fiche-gal-shot--empty {
  align-items: center;
  justify-content: center;
}
.sv-fiche-gal-shot--empty span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
}
.sv-fiche-gal-count {
  position: absolute;
  right: 16px;
  left: auto;
  bottom: 14px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: rgba(11, 31, 58, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 4px 9px;
  border-radius: 6px;
  letter-spacing: 0.04em;
}
.sv-fiche-gal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.92);
  color: var(--fiche-navy);
  font-size: 18px;
  line-height: 1;
  opacity: 0;
  transition: opacity 0.2s;
  box-shadow: 0 4px 14px rgba(11, 31, 58, 0.25);
  display: grid;
  place-items: center;
}
.sv-fiche-gal:hover .sv-fiche-gal-nav,
.sv-fiche-gal-nav:focus-visible { opacity: 1; }
.sv-fiche-gal-nav--p { left: 14px; }
.sv-fiche-gal-nav--n { right: 14px; }
.sv-fiche-gal-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 12px 8px;
  font-size: 9px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.92);
  background: linear-gradient(transparent, rgba(11, 31, 58, 0.82));
  pointer-events: none;
}

/* Identité : logo puis titre en pleine largeur */
.sv-fiche-id {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 16px var(--fiche-pad) 0;
}
.sv-fiche-mark {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  position: static;
  margin: 0;
  border-radius: 14px;
  background: var(--fiche-paper);
  border: 1px solid var(--fiche-line);
  box-shadow: none;
  display: grid;
  place-items: center;
  overflow: visible;
  font-family: var(--fiche-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--fiche-blue);
  letter-spacing: -0.02em;
}
.sv-fiche-mark--logo {
  width: auto;
  max-width: 100%;
  height: auto;
  min-height: 0;
  align-self: flex-start;
  padding: 10px 14px;
  border: 1px solid var(--fiche-line);
  border-radius: 14px;
  background: #fff;
  justify-items: start;
  overflow: visible;
}
.sv-fiche-mark--logo.sv-logo-bg-black {
  background: #111827;
  border-color: #111827;
}
.sv-fiche-mark img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 80px;
  object-fit: contain;
  object-position: left center;
  display: block;
}
.sv-fiche-id-body {
  min-width: 0;
  width: 100%;
  padding-top: 0;
  flex: 0 0 auto;
}
.sv-fiche-eyebrow {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0 0 7px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fiche-blue);
}
.sv-fiche-eyebrow svg {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
}
.sv-fiche-name {
  margin: 0;
  font-family: var(--fiche-display);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.14;
  letter-spacing: -0.018em;
  color: var(--fiche-navy);
  overflow-wrap: anywhere;
}
.sv-fiche-meta {
  margin: 7px 0 0;
  font-size: 13px;
  color: var(--fiche-muted);
}
.sv-fiche-meta b {
  color: var(--fiche-navy);
  font-weight: 600;
}

.sv-fiche-notes {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-top: 10px;
}
.sv-fiche-note {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  font-size: 12.5px;
  color: var(--fiche-muted);
}
.sv-fiche-note svg,
.sv-fiche-note i {
  width: 12px;
  font-size: 12px;
  align-self: center;
  flex: 0 0 auto;
  color: var(--fiche-blue);
}
.sv-fiche-note--ext .sv-g-logo,
.sv-fiche-note--pc .sv-pc-logo {
  width: 14px;
  height: 14px;
  color: unset;
  object-fit: contain;
  border-radius: 50%;
}
.sv-fiche-note--ext svg:not(.sv-g-logo),
.sv-fiche-note--ext i { color: #8C99AF; }
.sv-fiche-note b {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--fiche-navy);
  font-variant-numeric: tabular-nums;
}
.sv-fiche-note a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--fiche-line);
}
.sv-fiche-note a:hover {
  color: var(--fiche-blue);
  border-color: currentColor;
}
.sv-fiche-notes-sep {
  width: 1px;
  height: 13px;
  background: var(--fiche-line);
}

.sv-fiche-reviews {
  width: 100%;
  margin-top: 10px;
}
.sv-fiche-reviews:empty {
  display: none;
  margin: 0;
}
.sv-fiche-note--pc {
  color: var(--fiche-navy);
}
.sv-fiche-note--pc .sv-star-pc,
.sv-fiche-review-top .sv-star-pc {
  color: var(--fiche-blue);
  font-size: 12px;
}
.sv-fiche-review-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}
.sv-fiche-review {
  padding-top: 10px;
  border-top: 1px solid var(--fiche-line);
}
.sv-fiche-review:first-child { border-top: 0; padding-top: 0; }
.sv-fiche-review-identity {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.sv-fiche-review-who {
  min-width: 0;
  flex: 1;
}
.sv-fiche-review-who .pc-rank-badge {
  font-size: 13px;
}
.sv-fiche-review-who .pc-rank-badge-author {
  color: var(--fiche-navy);
}
.sv-fiche-review-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
}
.sv-fiche-review-author {
  font-size: 13px;
  font-weight: 600;
  color: var(--fiche-navy);
}
.sv-fiche-review-date {
  font-size: 11px;
  color: var(--fiche-muted);
  margin-left: auto;
}
.sv-fiche-review-text {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: #2B3548;
}
.sv-fiche-review-form {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--fiche-line);
}
.sv-fiche-review-form-t {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fiche-navy);
}
.sv-fiche-star-pick {
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
}
.sv-fiche-star-btn {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--fiche-blue);
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
}
.sv-fiche-star-btn.is-on { color: var(--fiche-blue); }
.sv-fiche-star-btn:hover { color: var(--fiche-blue-lift); }
.sv-fiche-review-form textarea {
  width: 100%;
  border: 1.5px solid var(--fiche-line);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  font-size: 13.5px;
  color: var(--fiche-navy);
  resize: vertical;
  min-height: 72px;
  box-sizing: border-box;
}
.sv-fiche-review-form textarea:focus {
  outline: 2px solid var(--fiche-blue);
  outline-offset: 1px;
  border-color: var(--fiche-blue);
}
.sv-fiche-review-err {
  margin: 8px 0 0;
  font-size: 12.5px;
  color: var(--fiche-closed);
}
.sv-fiche-btn--review {
  flex: 0 0 auto;
  width: auto;
  min-height: 40px;
  height: 40px;
  margin-top: 10px;
  padding: 0 16px;
}
.sv-fiche-review-login,
.sv-fiche-review-done {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  color: var(--fiche-blue);
  text-decoration: none;
  font-weight: 600;
}
.sv-fiche-review-done {
  color: var(--fiche-muted);
  font-weight: 500;
}
.sv-fiche-review-delete {
  display: inline-flex;
  align-items: center;
  margin-top: 8px;
  margin-left: 10px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--fiche-closed);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.sv-fiche-review-delete:hover {
  text-decoration: underline;
}
.sv-fiche-review-login:hover { text-decoration: underline; }

.sv-fiche-rule {
  height: 1px;
  background: var(--fiche-line);
  margin: 20px var(--fiche-pad) 0;
  flex: 0 0 auto;
}

.sv-fiche-scroll {
  flex: 0 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Horaires */
.sv-fiche-hours {
  margin: 16px var(--fiche-pad) 0;
  border: 1px solid var(--fiche-line);
  border-radius: 14px;
  overflow: hidden;
}
.sv-fiche-hours-head {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 14px 18px;
  background: var(--fiche-paper);
  border: 0;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: background 0.15s;
}
.sv-fiche-hours-head:hover { background: var(--fiche-wash); }
.sv-fiche-hours-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: 0 0 auto;
}
.sv-fiche-hours.is-open .sv-fiche-hours-dot {
  background: var(--fiche-open);
  box-shadow: 0 0 0 3px rgba(14, 159, 110, 0.16);
}
.sv-fiche-hours.is-closed .sv-fiche-hours-dot {
  background: var(--fiche-closed);
  box-shadow: 0 0 0 3px rgba(180, 64, 90, 0.14);
}
.sv-fiche-hours-state { font-size: 14px; font-weight: 600; }
.sv-fiche-hours.is-open .sv-fiche-hours-state { color: var(--fiche-open); }
.sv-fiche-hours.is-closed .sv-fiche-hours-state { color: var(--fiche-closed); }
.sv-fiche-hours-next { font-size: 13px; color: var(--fiche-muted); }
.sv-fiche-hours-chev {
  margin-left: auto;
  color: var(--fiche-muted);
  font-size: 11px;
  transition: transform 0.22s;
}
.sv-fiche-hours-head[aria-expanded="true"] .sv-fiche-hours-chev {
  transform: rotate(180deg);
}
.sv-fiche-hours-week {
  display: none;
  padding: 2px 18px 14px;
  border-top: 1px solid var(--fiche-line);
  background: var(--fiche-wash);
}
.sv-fiche-hours-week.is-shown { display: block; }
.sv-fiche-hours-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  font-size: 12.5px;
  color: var(--fiche-muted);
}
.sv-fiche-hours-row--today {
  color: var(--fiche-navy);
  font-weight: 600;
}
.sv-fiche-hours-row--today .sv-fiche-hours-day::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 11px;
  background: var(--fiche-blue);
  border-radius: 2px;
  margin-right: 8px;
  vertical-align: -1px;
}

.sv-fiche-quote {
  margin: 12px var(--fiche-pad) 0;
  padding-left: 14px;
  border-left: 1px solid var(--fiche-line);
}
.sv-fiche-quote p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: #2B3548;
}
.sv-fiche-quote footer {
  margin-top: 7px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--fiche-muted);
}
.sv-fiche-quote a {
  color: var(--fiche-blue);
  text-decoration: none;
  font-weight: 600;
}
.sv-fiche-quote a:hover { text-decoration: underline; }

.sv-fiche-sec { padding: 16px var(--fiche-pad) 0; }
.sv-fiche-scroll > .sv-fiche-sec:last-child { padding-bottom: 12px; }
.sv-fiche-sec-t {
  margin: 0 0 11px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fiche-muted);
}
.sv-fiche-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.sv-fiche-chip {
  font-size: 12.5px;
  font-weight: 500;
  background: var(--fiche-wash);
  border: 1px solid var(--fiche-line);
  padding: 6px 11px;
  border-radius: 8px;
}
.sv-fiche-rows { border-top: 1px solid var(--fiche-line); }
.sv-fiche-row {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--fiche-line);
}
.sv-fiche-row-l {
  flex: 0 0 84px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fiche-muted);
}
.sv-fiche-row-v {
  font-size: 13.5px;
  line-height: 1.5;
  text-align: right;
  word-break: break-word;
  color: var(--fiche-navy);
}
.sv-fiche-row-v a {
  color: var(--fiche-blue);
  text-decoration: none;
  font-weight: 500;
}
.sv-fiche-row-v a:hover { text-decoration: underline; }
.sv-fiche-tel-locked {
  filter: blur(3px);
  user-select: none;
  letter-spacing: 0.04em;
}

/* Actions */
.sv-fiche-act {
  position: sticky;
  bottom: 0;
  margin-top: 8px;
  padding: 16px var(--fiche-pad) 24px;
  display: flex;
  gap: 12px;
  background: linear-gradient(to top, var(--fiche-paper) 74%, rgba(255, 255, 255, 0));
  flex: 0 0 auto;
}
.sv-fiche-btn {
  flex: 1;
  min-height: 44px;
  height: 44px;
  border: 1.5px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  background: var(--fiche-blue);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  transition: background 0.16s, border-color 0.16s;
  box-shadow: none;
  padding: 0 18px;
}
.sv-fiche-btn i { font-size: 13px; }
.sv-fiche-btn:hover {
  background: var(--fiche-blue-lift);
  color: #fff;
}
.sv-fiche-btn:disabled,
.sv-fiche-btn.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.sv-fiche-btn--ghost {
  flex: 0 0 auto;
  width: 44px;
  min-height: 44px;
  height: 44px;
  padding: 0;
  background: var(--fiche-paper);
  color: var(--fiche-navy);
  border: 1.5px solid var(--fiche-line);
  box-shadow: none;
  font-size: 15px;
}
.sv-fiche-btn--ghost:hover {
  background: var(--fiche-wash);
  color: var(--fiche-blue);
  transform: none;
}
.sv-fiche-btn--locked {
  background: var(--fiche-navy);
  box-shadow: none;
  font-size: 13px;
}

.sv-fiche :focus-visible {
  outline: 2px solid var(--fiche-blue);
  outline-offset: 2px;
}

@media (max-width: 767.98px) {
  .sv-overlay.open:has(.sv-fiche) {
    padding: 0;
    align-items: flex-end;
    justify-content: stretch;
  }
  .sv-modal.sv-fiche {
    --fiche-pad: 24px;
    width: 100% !important;
    max-width: 100%;
    max-height: 88% !important;
    border-radius: 22px 22px 0 0;
    margin: 0;
  }
  .sv-fiche-gal-shot {
    height: auto;
    max-height: min(38vh, 300px);
  }
  .sv-fiche-act { padding-bottom: max(24px, env(safe-area-inset-bottom, 0px)); }
  .sv-fiche-name { font-size: 21px; }
  .sv-fiche-gal-nav { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .sv-fiche *,
  .sv-fiche *::before,
  .sv-fiche *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
