/* =============================================================================
   SE RENSEIGNER — FICHE D'UNE VILLE OU D'UN QUARTIER (refonte v2)
   Pages : se_renseigner_ville_v2.php, se_renseigner_quartier_v2.php
           (gabarit commun : common/v2/se-renseigner-lieu-page.php)

   Chargé APRÈS /css/v2/home-refonte.css, dont il réutilise les variables
   (--hv3-*) et les composants (.hv3-btn, .hv3-stars, .hv3-donut, .hv3-faq,
   .hv3-affinity-list, .hv3-cta-band…). Les classes propres à la fiche
   utilisent le préfixe .srl-.

   SOMMAIRE
   1.  Réglages de page
   2.  En-tête (fil d'Ariane, titre, note globale, chiffres clés, actions)
   3.  Photos
   4.  Sommaire collant
   5.  En bref (notes par thème, radar, points forts)
   6.  Carte
   7.  Score d'affinité
   8.  Thématiques : en-tête et grille
   9.  Indicateurs (valeurs, jauges, répartitions, graphiques…)
   10. Quartiers, palmarès, alentours
   11. FAQ, sources
   12. Rapport PDF, annonces, publicité
   13. Barre mobile, visionneuse photos, modale
   14. Responsive
   ============================================================================= */


/* =============================================================================
   1. RÉGLAGES DE PAGE
   ============================================================================= */

.srl-page {
  --srl-nav-top: 70px;   /* hauteur du header fixe (ajustée par le JS) */
  --srl-nav-h: 58px;     /* hauteur du sommaire collant */
  --srl-accent: var(--hv3-place);

  /* Appréciations (note sur 5) */
  --srl-tone-1: #E5404D;
  --srl-tone-2: #EE8A1C;
  --srl-tone-3: #A3B51C;
  --srl-tone-4: #43B35C;
  --srl-tone-5: #0E9F6E;
}

/* overflow-x: clip (et non hidden, posé par home-refonte.css) : "hidden" crée
   un conteneur de défilement qui empêche le sommaire de rester collé. */
.srl-page main.srl-main {
  background-size: 100% 900px;
  overflow-x: clip;
}

/* Décalage des ancres : header fixe + sommaire collant */
.srl-page [id] {
  scroll-margin-top: calc(var(--srl-nav-top) + var(--srl-nav-h) + 12px);
}

.srl-section {
  position: relative;
  padding: 64px 0;
}

.srl-section-soft {
  background: linear-gradient(180deg, #F4FCFB 0%, #EEF9F7 100%);
}

.srl-section-head {
  max-width: 780px;
  margin: 0 auto 30px;
  text-align: center;
}

.srl-page .hv3-h2 {
  font-size: 27px;
  line-height: 1.25;
  letter-spacing: -.3px;
  margin: 0;
}

.srl-section-lead {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--hv3-muted);
}

.srl-section-lead a {
  color: var(--hv3-place);
  font-weight: 700;
}

.srl-actions,
.srl-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 26px;
}

.srl-muted {
  margin: 8px 0 0;
  font-size: 13.5px;
  color: var(--hv3-muted);
}

/* Bouton secondaire (contour) */
.srl-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 100px;
  border: 1.5px solid var(--hv3-border);
  background: #FFFFFF;
  color: var(--hv3-navy);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: border-color var(--hv3-ease), transform var(--hv3-ease), box-shadow var(--hv3-ease);
}

.srl-btn-ghost:hover {
  border-color: var(--hv3-place-bright);
  color: var(--hv3-navy);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--hv3-shadow-sm);
}

/* Lien-bouton discret ("+ 12 autres") */
.srl-link-btn {
  margin-top: 10px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--hv3-place);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
}

.srl-link-btn:hover { text-decoration: underline; }

/* Bouton "Afficher plus" */
.srl-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 100px;
  border: 1.5px solid var(--hv3-border);
  background: #FFFFFF;
  color: var(--hv3-navy);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color var(--hv3-ease), box-shadow var(--hv3-ease);
}

.srl-more:hover {
  border-color: var(--srl-accent);
  box-shadow: var(--hv3-shadow-sm);
}

.srl-more[aria-expanded="true"] span { display: inline-block; transform: rotate(180deg); }

/* Tons (note sur 5) */
.srl-tone-1 { --srl-tone: var(--srl-tone-1); }
.srl-tone-2 { --srl-tone: var(--srl-tone-2); }
.srl-tone-3 { --srl-tone: var(--srl-tone-3); }
.srl-tone-4 { --srl-tone: var(--srl-tone-4); }
.srl-tone-5 { --srl-tone: var(--srl-tone-5); }

.srl-tone-bg-1 { background: var(--srl-tone-1); }
.srl-tone-bg-2 { background: var(--srl-tone-2); }
.srl-tone-bg-3 { background: var(--srl-tone-3); }
.srl-tone-bg-4 { background: var(--srl-tone-4); }
.srl-tone-bg-5 { background: var(--srl-tone-5); }

/* Pastille de note "4,1/5 · Très bien" */
.srl-score {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  padding: 7px 14px;
  border-radius: 100px;
  background: #FFFFFF;
  border: 1.5px solid var(--srl-tone, var(--hv3-border));
  color: var(--hv3-navy);
  white-space: nowrap;
}

.srl-score b {
  font-size: 18px;
  font-weight: 800;
  color: var(--srl-tone, var(--hv3-navy));
}

.srl-score small {
  font-size: 12px;
  font-weight: 700;
  color: var(--hv3-muted);
}

.srl-score-label {
  margin-left: 8px;
  padding-left: 9px;
  border-left: 1px solid var(--hv3-border);
  font-size: 13px;
  font-weight: 700;
  color: var(--hv3-navy);
}


/* =============================================================================
   2. EN-TÊTE
   ============================================================================= */

/* z-index : au-dessus du sommaire collant pendant le défilement initial */
.srl-hero {
  position: relative;
  z-index: 2;
  padding: 18px 0 44px;
}

/* ---- Fil d'Ariane (même rendu que les pages région / département) ---- */
.srl-crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 0;
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--hv3-muted);
}

.srl-crumbs li {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.srl-crumbs li + li::before {
  content: "›";
  margin: 0 9px;
  color: #B9BAD3;
}

.srl-crumbs a {
  color: var(--hv3-muted);
  text-decoration: none;
  border-radius: 4px;
}

.srl-crumbs a:hover { color: var(--hv3-navy); text-decoration: underline; }

.srl-crumbs [aria-current] {
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--hv3-navy);
  font-weight: 600;
}

/* ---- Adresse recherchée ---- */
.srl-address {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 24px;
  padding: 14px 18px;
  border-radius: var(--hv3-radius-sm);
  background: #FFFFFF;
  border: 1px solid rgba(255, 28, 96, .25);
  box-shadow: var(--hv3-shadow-sm);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--hv3-navy);
}

.srl-address b { color: var(--hv3-match-dark); }
.srl-address-ico { font-size: 18px; line-height: 1.3; }

/* ---- Grille texte / photos ---- */
.srl-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.srl-hero-grid-nophoto {
  grid-template-columns: minmax(0, 1fr);
  max-width: 820px;
}

.srl-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  margin-bottom: 16px;
  border-radius: 100px;
  background: var(--hv3-place-soft);
  color: #0B6F66;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .8px;
  text-transform: uppercase;
}

.srl-h1 {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 22px;
  font-weight: 800;
  color: var(--hv3-navy);
}

.srl-h1-name {
  font-size: 46px;
  line-height: 1.06;
  letter-spacing: -1px;
  overflow-wrap: anywhere;
}

.srl-h1-cp {
  font-size: .6em;
  font-weight: 700;
  letter-spacing: -.3px;
  color: var(--hv3-muted);
  white-space: nowrap;
}

.srl-h1-sub {
  font-size: 19px;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: -.2px;
  background-image: linear-gradient(100deg, #0FA99B 0%, #22DAD2 70%, #3BE8B0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--hv3-place);
}

/* ---- Note globale ---- */
.srl-global {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 20px;
  padding: 12px 20px 12px 12px;
  border-radius: 20px;
  background: #FFFFFF;
  border: 1px solid var(--hv3-border);
  box-shadow: var(--hv3-shadow-sm);
  color: var(--hv3-navy);
  text-decoration: none;
  transition: border-color var(--hv3-ease), transform var(--hv3-ease);
}

.srl-global:hover {
  color: var(--hv3-navy);
  text-decoration: none;
  border-color: var(--srl-tone);
  transform: translateY(-2px);
}

.srl-global-num {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 74px;
  height: 74px;
  border-radius: 18px;
  background: var(--srl-tone);
  color: #FFFFFF;
  line-height: 1;
}

.srl-global-num b {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -.5px;
}

.srl-global-num small {
  margin-top: -14px;
  font-size: 12px;
  font-weight: 700;
  opacity: .85;
}

.srl-global-txt {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.srl-global-verdict {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
}

.srl-global-sub {
  font-size: 13px;
  color: var(--hv3-muted);
}

.srl-global-sub u { text-underline-offset: 2px; }

/* ---- Chiffres clés ---- */
.srl-keyfigs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
}

.srl-keyfigs a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 10px;
  align-items: center;
  height: 100%;
  padding: 11px 14px;
  border-radius: var(--hv3-radius-sm);
  background: rgba(255, 255, 255, .8);
  border: 1px solid var(--hv3-border);
  color: var(--hv3-navy);
  text-decoration: none;
  transition: border-color var(--hv3-ease), background var(--hv3-ease);
}

.srl-keyfigs a:hover {
  border-color: var(--hv3-place-bright);
  background: #FFFFFF;
  color: var(--hv3-navy);
  text-decoration: none;
}

.srl-keyfig-ico {
  grid-row: span 2;
  font-size: 22px;
  line-height: 1;
}

.srl-keyfigs b {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.srl-keyfigs a > span:last-child {
  font-size: 12.5px;
  line-height: 1.3;
  color: var(--hv3-muted);
}

/* ---- Description (repliée à 4 lignes quand le JS est actif) ---- */
.srl-desc { margin: 0 0 24px; }

.srl-desc-text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--hv3-muted);
}

.srl-desc-text p { margin: 0; }

.hv3-js .srl-desc-text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}

.hv3-js .srl-desc.is-open .srl-desc-text {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}

.srl-desc-more {
  margin-top: 6px;
  padding: 0;
  border: 0;
  background: none;
  font-size: 14px;
  font-weight: 700;
  color: var(--hv3-place);
  cursor: pointer;
}

.srl-desc-more:hover { color: #0B6F66; text-decoration: underline; }

/* ---- Actions ---- */
.srl-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.srl-compat-btn { cursor: pointer; }


/* =============================================================================
   3. PHOTOS
   ============================================================================= */

.srl-hero-media { min-width: 0; }

.srl-gallery {
  position: relative;
  display: grid;
  gap: 8px;
  height: 460px;
  border-radius: var(--hv3-radius);
  overflow: hidden;
  box-shadow: var(--hv3-shadow);
}

.srl-gallery-n1 { grid-template-columns: 1fr; }
.srl-gallery-n2 { grid-template-columns: 1.4fr 1fr; }
.srl-gallery-n3 { grid-template-columns: 1.5fr 1fr; grid-template-rows: 1fr 1fr; }
.srl-gallery-n4 { grid-template-columns: 1.5fr 1fr 1fr; grid-template-rows: 1fr 1fr; }
.srl-gallery-n5 { grid-template-columns: 1.6fr 1fr 1fr; grid-template-rows: 1fr 1fr; }

.srl-gallery-n3 .srl-photo:first-child,
.srl-gallery-n4 .srl-photo:first-child,
.srl-gallery-n5 .srl-photo:first-child { grid-row: span 2; }

.srl-gallery-n4 .srl-photo:nth-child(4) { grid-column: span 2; }

.srl-photo {
  position: relative;
  display: block;
  min-height: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #1D1766 0%, #3F2F9A 100%);
  cursor: zoom-in;
}

.srl-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.2, .7, .3, 1), filter .3s ease;
}

.srl-photo:hover img { transform: scale(1.04); filter: brightness(1.05); }

.srl-gallery-all {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 15px;
  border: 0;
  border-radius: 100px;
  background: rgba(255, 255, 255, .95);
  box-shadow: 0 10px 22px -12px rgba(24, 20, 87, .8);
  color: var(--hv3-navy);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
}

.srl-gallery-all:hover { background: #FFFFFF; }


/* =============================================================================
   4. SOMMAIRE COLLANT
   ============================================================================= */

.srl-nav {
  position: -webkit-sticky;
  position: sticky;
  top: var(--srl-nav-top);
  z-index: 50;
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-top: 1px solid var(--hv3-border);
  border-bottom: 1px solid var(--hv3-border);
  transition: box-shadow var(--hv3-ease);
}

.srl-nav.is-stuck { box-shadow: 0 12px 24px -20px rgba(24, 20, 87, .6); }

.srl-nav-list {
  display: flex;
  gap: 4px;
  height: var(--srl-nav-h);
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
}

.srl-nav-list::-webkit-scrollbar { display: none; }
.srl-nav-list.is-dragging { cursor: grabbing; }
.srl-nav-list.is-dragging a { pointer-events: none; }

.srl-nav-list a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 100px;
  color: var(--hv3-muted);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
  user-select: none;
  -webkit-user-drag: none;
  transition: background var(--hv3-ease), color var(--hv3-ease);
}

.srl-nav-list a:hover {
  background: var(--hv3-soft);
  color: var(--hv3-navy);
  text-decoration: none;
}

.srl-nav-list a.is-active {
  background: var(--hv3-navy);
  color: #FFFFFF;
}


/* =============================================================================
   5. EN BREF
   ============================================================================= */

.srl-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 22px;
  align-items: start;
}

.srl-overview-side {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.srl-box {
  padding: 24px;
  border-radius: var(--hv3-radius);
  background: #FFFFFF;
  border: 1px solid var(--hv3-border);
  box-shadow: var(--hv3-shadow-sm);
}

.srl-box-title {
  margin: 0 0 14px;
  font-size: 17px;
  font-weight: 800;
  color: var(--hv3-navy);
}

/* ---- Notes par thème ---- */
.srl-scorelist {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.srl-scorelist a {
  display: grid;
  grid-template-columns: 30px minmax(120px, 1.1fr) minmax(80px, 1.4fr) 62px;
  align-items: center;
  gap: 12px;
  padding: 9px 10px;
  border-radius: 12px;
  color: var(--hv3-navy);
  text-decoration: none;
  transition: background var(--hv3-ease);
}

.srl-scorelist a:hover {
  background: var(--hv3-soft);
  color: var(--hv3-navy);
  text-decoration: none;
}

.srl-sl-ico {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: color-mix(in srgb, var(--srl-accent) 12%, #FFFFFF);
  font-size: 16px;
  line-height: 1;
}

.srl-sl-name {
  font-size: 14.5px;
  font-weight: 700;
}

.srl-sl-bar {
  height: 8px;
  border-radius: 100px;
  background: #EDEDF5;
  overflow: hidden;
}

.srl-sl-bar span {
  display: block;
  height: 100%;
  border-radius: 100px;
  transform-origin: left center;
  animation: hv3-grow 1.1s cubic-bezier(.2, .7, .3, 1) .2s backwards;
}

.srl-sl-val {
  font-size: 13px;
  color: var(--hv3-muted);
  text-align: right;
  white-space: nowrap;
}

.srl-sl-val b {
  font-size: 15px;
  color: var(--hv3-navy);
}

/* ---- Radar ---- */
.srl-radar-box { padding: 12px; }

.srl-radar {
  position: relative;
  height: 320px;
}

/* ---- Points forts / vigilance ---- */
.srl-proscons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.srl-proscons .hv3-affinity-list small {
  margin-left: 4px;
  font-weight: 600;
  color: var(--hv3-muted);
}


/* =============================================================================
   6. CARTE
   ============================================================================= */

/* z-index: 0 crée un contexte d'empilement : les calques Leaflet (z-index
   400 à 1000) ne passent ni sur le header fixe ni sur le sommaire collant. */
.srl-map-card {
  position: relative;
  z-index: 0;
  padding: 8px;
  border-radius: calc(var(--hv3-radius) + 8px);
  background: #FFFFFF;
  border: 1px solid var(--hv3-border);
  box-shadow: var(--hv3-shadow);
}

.srl-map {
  position: relative;
  width: 100%;
  height: 560px;
  border-radius: var(--hv3-radius);
  overflow: hidden;
  background: #EEF2F1;
  font-family: inherit;
}

.srl-map.leaflet-fullscreen-on,
.srl-map:fullscreen { border-radius: 0; }

.srl-map .leaflet-bar {
  border: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 24px -14px rgba(24, 20, 87, .7);
}

.srl-map .leaflet-bar a {
  width: 36px;
  height: 36px;
  line-height: 36px;
  color: var(--hv3-navy);
  border-bottom-color: var(--hv3-border);
}

.srl-map .leaflet-bar a:hover {
  background: var(--hv3-soft);
  color: var(--hv3-navy);
}

.srl-map .leaflet-control-zoom-fullscreen { background-position: 6px 6px; }

.srl-map.srl-is-loading::after {
  content: "";
  position: absolute;
  z-index: 850;
  top: 50%;
  left: 50%;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border-radius: 50%;
  border: 3px solid rgba(15, 169, 155, .2);
  border-top-color: var(--hv3-place);
  animation: hv3-spin .7s linear infinite;
}

/* Barre POI centrée sur desktop et tablette (alignée à gauche sur mobile),
   comme sur se_renseigner_home_v2. margin: auto plutôt que justify-content:
   center : si les catégories débordent, les marges automatiques tombent à 0
   et la barre reste entièrement scrollable depuis la gauche. */
@media (min-width: 768px) {
  .srl-map .lpb-categories {
    margin-left: auto;
    margin-right: auto;
  }
}

.srl-map-msg {
  position: absolute;
  inset: 0;
  z-index: 850;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  font-weight: 600;
  color: var(--hv3-muted);
  text-align: center;
}

/* Info-bulle d'un quartier */
.srl-page .srl-map-tip {
  padding: 7px 12px;
  border: 0;
  border-radius: 10px;
  background: var(--hv3-navy);
  box-shadow: 0 10px 22px -12px rgba(24, 20, 87, .9);
  color: #FFFFFF;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
}

.srl-page .srl-map-tip small {
  margin-left: 6px;
  font-weight: 600;
  color: #FFD25E;
}

.srl-page .srl-map-tip::before { display: none; }

/* Popup (écrans tactiles) */
.srl-page .srl-map .leaflet-popup-content-wrapper {
  border-radius: 14px;
  box-shadow: 0 16px 32px -16px rgba(24, 20, 87, .8);
}

.srl-page .srl-map .leaflet-popup-content {
  margin: 12px 16px;
  font-family: inherit;
  text-align: center;
}

.srl-popup-name {
  display: block;
  margin-bottom: 8px;
  font-size: 14.5px;
  font-weight: 800;
  color: var(--hv3-navy);
}

.srl-page .srl-popup-link {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 100px;
  background-image: var(--hv3-place-grad);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.srl-page .srl-popup-link:hover { color: #FFFFFF; text-decoration: none; }

/* Aide "Ctrl + molette" */
.srl-wheel-hint {
  position: absolute;
  inset: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(24, 20, 87, .45);
  color: #FFFFFF;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity .25s ease;
}

.srl-map.srl-show-wheel-hint .srl-wheel-hint { opacity: 1; }

.srl-wheel-hint kbd {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  background: #FFFFFF;
  color: var(--hv3-navy);
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 2px 0 rgba(0, 0, 0, .25);
}


/* =============================================================================
   7. SCORE D'AFFINITÉ
   ============================================================================= */

.srl-affinity {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: center;
  padding: 40px 44px;
  border-radius: var(--hv3-radius);
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(255, 28, 96, .10) 0%, rgba(255, 28, 96, 0) 60%),
    linear-gradient(180deg, #FFF8FA 0%, #FFFFFF 100%);
  border: 1px solid #F6D9E2;
  box-shadow: 0 34px 60px -40px rgba(255, 28, 96, .55);
}

.srl-affinity-title { margin-bottom: 12px !important; }

.srl-affinity .hv3-p { margin-bottom: 18px; }
.srl-affinity .hv3-list { margin-bottom: 24px; }

.srl-affinity-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  min-width: 220px;
  padding: 26px;
  border-radius: var(--hv3-radius);
  background: #FFFFFF;
  border: 1px solid #F6D9E2;
  text-align: center;
}

.srl-donut.hv3-donut-lg { width: 132px; height: 132px; }
.srl-donut.hv3-donut-lg::before { width: 104px; height: 104px; }
.srl-donut.hv3-donut-lg .hv3-donut-val { font-size: 32px; }

.srl-donut { transition: --hv3-v 1s ease; }

.srl-affinity-caption {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--hv3-muted);
}

.srl-affinity-caption b { color: var(--hv3-navy); }


/* =============================================================================
   8. THÉMATIQUES : EN-TÊTE ET GRILLE
   ============================================================================= */

.srl-cat {
  position: relative;
  padding: 56px 0;
  border-top: 1px solid var(--hv3-border);
}

.srl-cat-alt { background: #FAFAFD; }

.srl-cat-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  margin-bottom: 26px;
}

.srl-cat-ico {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: color-mix(in srgb, var(--srl-accent) 13%, #FFFFFF);
  border: 1px solid color-mix(in srgb, var(--srl-accent) 25%, #FFFFFF);
  font-size: 27px;
  line-height: 1;
}

.srl-cat-title {
  margin: 4px 0 8px;
  font-size: 27px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.4px;
  color: var(--hv3-navy);
}

.srl-cat-title span {
  font-weight: 700;
  color: var(--srl-accent);
}

.srl-cat-summary {
  max-width: 820px;
  margin: 0;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--hv3-muted);
}

.srl-cat-summary b { color: var(--hv3-navy); font-weight: 700; }

.srl-cat-score { padding-top: 6px; }

/* ---- Grille des indicateurs ---- */
.srl-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 16px;
  align-items: stretch;
}

.srl-ind {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 20px 20px 16px;
  border-radius: 18px;
  background: #FFFFFF;
  border: 1px solid var(--hv3-border);
  box-shadow: 0 14px 30px -26px rgba(24, 20, 87, .7);
}

.srl-ind-wide { grid-column: span 2; }

/* Indicateurs repliés (visibles sans JS, et toujours présents dans le HTML) */
.hv3-js .srl-ind-extra { display: none; }
.hv3-js .srl-grid.is-expanded .srl-ind-extra { display: flex; }

.srl-ind-title {
  position: relative;
  margin: 0 0 14px;
  padding-left: 14px;
  font-size: 15.5px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--hv3-navy);
}

.srl-ind-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 3px;
  width: 4px;
  border-radius: 4px;
  background: var(--srl-accent);
}

.srl-ind-body {
  flex: 1 1 auto;
  min-width: 0;
}

.srl-ind-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 12px;
  margin: 14px 0 0;
  padding-top: 10px;
  border-top: 1px dashed var(--hv3-border);
  font-size: 11.5px;
  line-height: 1.45;
  color: #9A9CBB;
}


/* =============================================================================
   9. INDICATEURS
   ============================================================================= */

/* ---- Grand chiffre ---- */
.srl-big {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 6px;
  margin: 0 0 6px;
  color: var(--hv3-navy);
}

.srl-big b {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.6px;
}

.srl-big-unit {
  font-size: 15px;
  font-weight: 700;
  color: var(--hv3-muted);
}

.srl-big-sub {
  flex-basis: 100%;
  font-size: 13px;
  color: var(--hv3-muted);
}

/* ---- Note sur 5 ---- */
.srl-rating {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: 14px;
  color: var(--hv3-muted);
}

.srl-rating .hv3-stars {
  font-size: 22px;
  letter-spacing: 3px;
}

.srl-rating b {
  font-size: 22px;
  font-weight: 800;
  color: var(--hv3-navy);
}

/* ---- Jauge ---- */
.srl-gauge {
  --srl-pos: 50%;
  margin-top: 12px;
}

.srl-gauge-track {
  position: relative;
  display: block;
  height: 10px;
  border-radius: 100px;
  background: linear-gradient(90deg, #E6E5F1 0%, #B7B4DD 100%);
}

/* Plus c'est haut, mieux c'est */
.srl-gauge-positive .srl-gauge-track { background: linear-gradient(90deg, #F8C4C8 0%, #FBE3A6 50%, #B6E7C9 100%); }
/* Plus c'est haut, moins c'est bien */
.srl-gauge-negative .srl-gauge-track { background: linear-gradient(90deg, #B6E7C9 0%, #FBE3A6 50%, #F8C4C8 100%); }

.srl-gauge-dot {
  position: absolute;
  top: 50%;
  left: var(--srl-pos);
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 4px solid var(--hv3-navy);
  box-shadow: 0 3px 8px rgba(24, 20, 87, .3);
}

.srl-gauge-level {
  display: block;
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--hv3-muted);
}

.srl-gauge-level b { color: var(--hv3-navy); }

.srl-gauge-sm { margin-top: 8px; }
.srl-gauge-sm .srl-gauge-track { height: 7px; }
.srl-gauge-sm .srl-gauge-dot { width: 14px; height: 14px; margin: -7px 0 0 -7px; border-width: 3px; }
.srl-gauge-sm .srl-gauge-level { display: none; }

/* ---- Lignes "nom + valeur + jauge" ---- */
.srl-rows {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}

.srl-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 2px 12px;
  padding: 10px 0;
  border-bottom: 1px solid #F0EFF7;
}

.srl-row:first-child { padding-top: 0; }
.srl-row:last-child { border-bottom: 0; padding-bottom: 0; }

.srl-row-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--hv3-navy);
}

.srl-row-val {
  font-size: 13px;
  color: var(--hv3-muted);
  text-align: right;
  white-space: nowrap;
}

.srl-row-val b {
  font-size: 16px;
  font-weight: 800;
  color: var(--hv3-navy);
}

.srl-row-alt small { display: block; font-size: 11px; }

.srl-row .srl-gauge { grid-column: 1 / -1; }

.srl-row-lines { grid-template-columns: minmax(0, 1fr); }

/* Lignes de transport */
.srl-lines {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.srl-line {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 8px;
  border: 1.5px solid var(--srl-line);
  background: #FFFFFF;
  color: var(--hv3-navy);
  font-size: 12.5px;
  font-weight: 700;
}

/* ---- Répartitions en % ---- */
.srl-shares {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.srl-shares li {
  display: grid;
  grid-template-columns: minmax(90px, 1.1fr) minmax(60px, 1.4fr) 54px;
  align-items: center;
  gap: 10px;
}

.srl-share-label {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--hv3-navy);
}

.srl-share-bar {
  height: 10px;
  border-radius: 100px;
  background: #F0EFF7;
  overflow: hidden;
}

.srl-share-bar span {
  display: block;
  height: 100%;
  border-radius: 100px;
  background: var(--srl-accent);
  opacity: .85;
}

.srl-share-val {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--hv3-navy);
  text-align: right;
}

.srl-sub-title {
  margin: 14px 0 8px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--hv3-muted);
}

.srl-sub-title:first-child { margin-top: 0; }

/* ---- Pastilles (listes) ---- */
.srl-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.srl-chips li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 100px;
  background: color-mix(in srgb, var(--srl-accent) 9%, #FFFFFF);
  border: 1px solid color-mix(in srgb, var(--srl-accent) 18%, #FFFFFF);
  color: var(--hv3-navy);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

.srl-chips img { flex: 0 0 auto; }

.hv3-js .srl-chip-extra { display: none !important; }
.hv3-js .is-expanded > .srl-chip-extra { display: inline-flex !important; }
.hv3-js .srl-rank.is-expanded > .srl-chip-extra { display: grid !important; }

/* ---- Paysage / ambiance ---- */
.srl-tagbig {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  font-size: 22px;
  color: var(--hv3-navy);
}

.srl-tagbig img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

/* ---- Paires (littoral / montagne, soleil / pluie) ---- */
.srl-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.srl-duo li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px;
  border-radius: 14px;
  background: var(--hv3-soft);
  font-size: 13px;
  color: var(--hv3-muted);
}

.srl-duo li > span:first-child { font-size: 20px; line-height: 1.2; }

.srl-duo b {
  font-size: 17px;
  font-weight: 800;
  color: var(--hv3-navy);
}

/* ---- Ville fleurie ---- */
.srl-flowers {
  display: flex;
  gap: 4px;
  margin: 0;
  font-size: 30px;
  line-height: 1;
  color: #E3E1EE;
}

.srl-flowers .is-on { color: #E0559B; }

/* ---- Classements (provenance, établissements) ---- */
.srl-rank {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: srl-rank;
}

.srl-rank li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #F0EFF7;
  font-size: 13.5px;
  color: var(--hv3-navy);
  counter-increment: srl-rank;
}

.srl-rank li:last-child { border-bottom: 0; }

.srl-rank li::before {
  content: counter(srl-rank);
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: var(--hv3-soft);
  font-size: 12px;
  font-weight: 800;
  color: var(--hv3-muted);
}

.srl-rank b {
  font-weight: 800;
  white-space: nowrap;
}

.srl-rank-schools b {
  padding: 3px 9px;
  border-radius: 100px;
  background: color-mix(in srgb, var(--srl-tone, var(--hv3-muted)) 14%, #FFFFFF);
  color: var(--srl-tone, var(--hv3-navy));
}

/* ---- Tendances ---- */
.srl-trends {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.srl-trend {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex: 1 1 140px;
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--hv3-navy);
  color: #FFFFFF;
}

.srl-trend-proj {
  background: var(--hv3-soft);
  border: 1px dashed #C9C7E3;
  color: var(--hv3-navy);
}

.srl-trend small {
  font-size: 11.5px;
  font-weight: 700;
  opacity: .75;
}

.srl-trend-kind {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .6px;
  opacity: .7;
}

.srl-trend b {
  font-size: 19px;
  font-weight: 800;
}

.srl-trend-up b   { color: #8EF0C6; }
.srl-trend-down b { color: #FFB3BC; }
.srl-trend-proj.srl-trend-up b   { color: var(--srl-tone-5); }
.srl-trend-proj.srl-trend-down b { color: var(--srl-tone-1); }

.srl-trend-years {
  font-size: 12px;
  opacity: .75;
}

/* ---- Graphiques ---- */
.srl-chart {
  position: relative;
  height: 280px;
  margin: 0 -6px;
}

.srl-chart-wait {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: linear-gradient(90deg, #F6F6FB 25%, #EEEDF7 50%, #F6F6FB 75%);
  background-size: 200% 100%;
  animation: srl-shimmer 1.4s linear infinite;
}

@keyframes srl-shimmer {
  to { background-position: -200% 0; }
}

.srl-proj-note {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--hv3-muted);
}

/* Tableau des valeurs */
.srl-data {
  margin-top: 10px;
}

.srl-data > summary {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--hv3-place);
  cursor: pointer;
  list-style: none;
}

.srl-data > summary::-webkit-details-marker { display: none; }
.srl-data > summary::before { content: "▸ "; }
.srl-data[open] > summary::before { content: "▾ "; }

.srl-data-scroll {
  max-height: 260px;
  margin-top: 8px;
  overflow: auto;
  border: 1px solid var(--hv3-border);
  border-radius: 12px;
}

.srl-data table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  color: var(--hv3-navy);
}

.srl-data th,
.srl-data td {
  padding: 7px 12px;
  border-bottom: 1px solid #F0EFF7;
  text-align: right;
  white-space: nowrap;
}

.srl-data thead th {
  position: sticky;
  top: 0;
  background: var(--hv3-soft);
  font-weight: 800;
}

.srl-data th:first-child { text-align: left; }

/* ---- Itinéraire ---- */
.srl-itinerary {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 12px;
  border-radius: 12px;
}

/* ---- Donnée premium (fonctionnalité désactivée) ---- */
.srl-premium {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 160px;
  padding: 18px;
  border-radius: 14px;
  background-size: cover;
  background-position: top center;
  isolation: isolate;
  text-align: center;
}

.srl-premium::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: rgba(255, 255, 255, .78);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.srl-premium-lock { font-size: 24px; }

.srl-premium-example {
  font-size: 13px;
  font-weight: 700;
  color: var(--hv3-navy);
}


/* =============================================================================
   10. QUARTIERS, PALMARÈS, ALENTOURS
   ============================================================================= */

/* ---- Quartiers ---- */
.srl-hoods-box {
  padding: 22px;
  border-radius: var(--hv3-radius);
  background: #FFFFFF;
  border: 1px solid var(--hv3-border);
  box-shadow: var(--hv3-shadow-sm);
}

.srl-hoods {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.srl-hoods li[hidden] { display: none; }

.srl-hood {
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
  padding: 13px 15px;
  border-radius: 14px;
  background: var(--hv3-soft);
  border: 1px solid transparent;
  color: var(--hv3-navy);
  text-decoration: none;
  transition: background var(--hv3-ease), border-color var(--hv3-ease), transform var(--hv3-ease);
}

.srl-hood:hover,
.srl-hood.is-highlighted {
  background: #FFFFFF;
  border-color: var(--hv3-place-bright);
  color: var(--hv3-navy);
  text-decoration: none;
  transform: translateY(-2px);
}

.srl-hood-name {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
}

.srl-hood-rate {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.srl-hood-rate .hv3-stars { font-size: 13px; letter-spacing: 1px; }

.srl-hood-meta {
  font-size: 12.5px;
  color: var(--hv3-muted);
}

/* ---- Filtre ---- */
.srl-filter {
  position: relative;
  max-width: 520px;
  margin: 0 auto 18px;
}

.srl-filter-ico {
  position: absolute;
  top: 15px;
  left: 18px;
  width: 20px;
  height: 20px;
  fill: var(--hv3-muted);
  pointer-events: none;
}

.srl-page .srl-filter-input {
  width: 100%;
  height: 50px;
  padding: 0 18px 0 48px;
  border-radius: 100px;
  border: 1.5px solid var(--hv3-border);
  background: var(--hv3-soft);
  font-size: 16px;
  font-weight: 500;
  color: var(--hv3-navy);
  outline: none;
  transition: border-color var(--hv3-ease), box-shadow var(--hv3-ease), background var(--hv3-ease);
}

.srl-page .srl-filter-input:focus {
  border-color: var(--hv3-place-bright);
  background: #FFFFFF;
  box-shadow: 0 0 0 4px rgba(34, 218, 210, .2);
}

.srl-filter-status {
  min-height: 18px;
  margin: 8px 0 0;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--hv3-muted);
  text-align: center;
}

.srl-empty {
  margin: 10px 0 0;
  padding: 20px;
  text-align: center;
  font-weight: 600;
  color: var(--hv3-muted);
}

/* ---- Palmarès ---- */
.srl-awards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hv3-js .srl-award-extra { display: none; }
.hv3-js .srl-awards.is-expanded .srl-award-extra { display: block; }

.srl-award {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  height: 100%;
  padding: 14px 16px 14px 14px;
  border-radius: 16px;
  background: #FFFFFF;
  border: 1px solid var(--hv3-border);
  box-shadow: 0 14px 30px -26px rgba(24, 20, 87, .7);
  color: var(--hv3-navy);
  text-decoration: none;
  transition: border-color var(--hv3-ease), transform var(--hv3-ease), box-shadow var(--hv3-ease);
}

.srl-award:hover {
  border-color: var(--hv3-place-bright);
  color: var(--hv3-navy);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--hv3-shadow-sm);
}

.srl-award-rank {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 64px;
  border-radius: 14px;
  background: var(--hv3-soft);
  line-height: 1;
}

.srl-award-rank b {
  font-size: 24px;
  font-weight: 800;
}

.srl-award-rank sup { font-size: 12px; }

.srl-award-rank small {
  margin-top: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--hv3-muted);
}

.srl-award-medal {
  position: absolute;
  top: -8px;
  right: -6px;
  font-size: 20px;
}

.srl-award-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.srl-award-label {
  font-size: 14.5px;
  font-weight: 800;
  line-height: 1.3;
}

.srl-award-scope {
  font-size: 12.5px;
  line-height: 1.35;
  color: var(--hv3-muted);
}

.srl-award-go {
  color: var(--hv3-place);
  font-weight: 800;
  transition: transform var(--hv3-ease);
}

.srl-award:hover .srl-award-go { transform: translateX(3px); }

/* ---- Villes proches ---- */
.srl-nearby {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.srl-near {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  column-gap: 10px;
  row-gap: 3px;
  align-items: center;
  height: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  background: #FFFFFF;
  border: 1px solid var(--hv3-border);
  color: var(--hv3-navy);
  text-decoration: none;
  transition: border-color var(--hv3-ease), transform var(--hv3-ease);
}

.srl-near:hover {
  border-color: var(--hv3-place-bright);
  color: var(--hv3-navy);
  text-decoration: none;
  transform: translateY(-2px);
}

.srl-near-name {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
}

.srl-near-name small {
  font-weight: 500;
  color: var(--hv3-muted);
}

.srl-near-meta {
  grid-column: 1;
  font-size: 12.5px;
  color: var(--hv3-muted);
}

.srl-near-rate {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.srl-near-rate .srl-score { padding: 5px 10px; }
.srl-near-rate .srl-score b { font-size: 15px; }

/* ---- Pour aller plus loin ---- */
.srl-explore {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.srl-explore-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 16px;
  background: #FFFFFF;
  border: 1px solid var(--hv3-border);
  color: var(--hv3-navy);
  text-decoration: none;
  transition: border-color var(--hv3-ease), box-shadow var(--hv3-ease);
}

.srl-explore-card:hover {
  border-color: var(--hv3-place-bright);
  box-shadow: var(--hv3-shadow-sm);
  color: var(--hv3-navy);
  text-decoration: none;
}

.srl-explore-ico {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: var(--hv3-place-soft);
  font-size: 20px;
}

.srl-explore-card b {
  display: block;
  font-size: 14.5px;
  font-weight: 800;
  line-height: 1.3;
}

.srl-explore-card small {
  display: block;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--hv3-muted);
}

.srl-explore-go {
  color: var(--hv3-place);
  font-weight: 800;
}


/* =============================================================================
   11. FAQ, SOURCES
   ============================================================================= */

/* Le titre <h3> est dans le <summary> : il reprend la typographie de .hv3-faq */
.srl-faq-q {
  display: inline;
  margin: 0;
  font: inherit;
  color: inherit;
}

.srl-page .hv3-faq-body p b { color: var(--hv3-navy); }

.srl-section-sources {
  padding: 40px 0 56px;
  border-top: 1px solid var(--hv3-border);
}

.srl-sources-title {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 800;
  color: var(--hv3-navy);
}

.srl-sources-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--hv3-muted);
}


/* =============================================================================
   12. RAPPORT PDF, ANNONCES, PUBLICITÉ
   ============================================================================= */

.srl-pdf {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: center;
  padding: 40px 44px;
  border-radius: var(--hv3-radius);
  background: linear-gradient(180deg, #F1FCFA 0%, #FFFFFF 100%);
  border: 1px solid rgba(15, 169, 155, .22);
  box-shadow: var(--hv3-shadow-sm);
}

.srl-pdf h2 { margin-bottom: 12px !important; }

.srl-pdf-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-width: 260px;
  padding: 26px;
  border-radius: var(--hv3-radius);
  background: #FFFFFF;
  border: 1px solid var(--hv3-border);
  text-align: center;
}

.srl-pdf-place {
  font-size: 14px;
  font-weight: 800;
  color: var(--hv3-navy);
}

.srl-pdf-price {
  font-size: 13px;
  color: var(--hv3-muted);
}

.srl-pdf-price b {
  display: block;
  font-size: 30px;
  font-weight: 800;
  color: var(--hv3-navy);
}

.srl-pdf-sample {
  font-size: 13px;
  font-weight: 700;
  color: var(--hv3-place);
}

/* ---- Annonces ---- */
.srl-listings {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.srl-listing {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  aspect-ratio: 4 / 3;
  padding: 16px;
  border-radius: var(--hv3-radius-sm);
  overflow: hidden;
  isolation: isolate;
  color: #FFFFFF;
  text-decoration: none;
}

.srl-listing img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.srl-listing::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(24, 20, 87, 0) 40%, rgba(24, 20, 87, .85) 100%);
}

.srl-listing:hover { color: #FFFFFF; text-decoration: none; }

.srl-listing-price { font-size: 19px; font-weight: 800; }
.srl-listing-title { font-size: 13.5px; opacity: .85; }

/* ---- Publicité ---- */
.srl-ads {
  margin: 24px auto;
  padding: 12px;
  max-width: 970px;
  border-radius: var(--hv3-radius-sm);
  background: var(--hv3-soft);
  border: 1px solid var(--hv3-border);
  text-align: center;
}

.srl-ads-title {
  display: block;
  margin-bottom: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--hv3-muted);
}


/* =============================================================================
   13. BARRE MOBILE, VISIONNEUSE PHOTOS, MODALE
   ============================================================================= */

/* ---- Barre d'action (score d'affinité) ---- */
.srl-sticky {
  position: fixed;
  left: 50%;
  bottom: 16px;
  z-index: 1040;
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(600px, calc(100% - 24px));
  padding: 10px 12px 10px 10px;
  border-radius: 100px;
  isolation: isolate;
  /* Effet "liquid glass" : verre dépoli légèrement teinté rose → turquoise
     (les couleurs des 2 outils), qui se détache des fonds de la page */
  background:
    linear-gradient(120deg, rgba(255, 255, 255, .78) 0%, rgba(255, 236, 243, .62) 45%, rgba(226, 250, 246, .62) 100%);
  -webkit-backdrop-filter: blur(20px) saturate(190%);
  backdrop-filter: blur(20px) saturate(190%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .95),
    inset 0 -1px 0 rgba(255, 255, 255, .35),
    0 24px 48px -20px rgba(24, 20, 87, .5),
    0 6px 18px -8px rgba(255, 28, 96, .28);
  transform: translate(-50%, 140%);
  transition: transform .35s cubic-bezier(.2, .7, .3, 1);
}

/* Contour lumineux en dégradé (rose → blanc → turquoise) */
.srl-sticky::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  padding: 1.5px;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(255, 28, 96, .75) 0%, rgba(255, 255, 255, .9) 50%, rgba(34, 218, 210, .85) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
}

/* Reflet du verre sur la moitié haute */
.srl-sticky::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 24px;
  right: 24px;
  height: 45%;
  z-index: -1;
  border-radius: 100px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .7) 0%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}

/* Navigateurs sans backdrop-filter : fond plus opaque pour rester lisible */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .srl-sticky { background: linear-gradient(120deg, #FFFFFF 0%, #FFF0F5 50%, #E9FBF8 100%); }
}

.srl-sticky[hidden] { display: none; }
.srl-sticky.is-visible { transform: translate(-50%, 0); }

.srl-sticky-donut { flex: 0 0 auto; }

.srl-sticky-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1 1 auto;
  min-width: 0;
}

.srl-sticky-tag {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .7px;
  text-transform: uppercase;
  color: var(--hv3-match);
}

.srl-sticky-txt {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--hv3-navy);
}

.srl-sticky-btn {
  flex: 0 0 auto;
  padding: 12px 18px;
  font-size: 14px;
}

.srl-sticky-close {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .7);
  box-shadow: inset 0 0 0 1px rgba(24, 20, 87, .08);
  color: var(--hv3-muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.srl-sticky-close:hover { background: #FFFFFF; color: var(--hv3-navy); }

/* ---- Visionneuse photos ---- */
.srl-lightbox {
  width: 100vw;
  max-width: 100vw;
  height: 100vh;
  max-height: 100vh;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(12, 10, 40, .94);
  color: #FFFFFF;
}

.srl-lightbox::backdrop { background: rgba(12, 10, 40, .8); }

.srl-lightbox[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}

.srl-lb-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: min(1100px, calc(100vw - 140px));
  margin: 0;
}

.srl-lb-figure img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 160px);
  border-radius: 12px;
  object-fit: contain;
}

.srl-lb-figure figcaption {
  max-width: 760px;
  font-size: 14px;
  line-height: 1.55;
  text-align: center;
  color: rgba(255, 255, 255, .88);
}

.srl-lb-figure figcaption small {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: rgba(255, 255, 255, .6);
}

.srl-lb-figure figcaption a { color: rgba(255, 255, 255, .8); text-decoration: underline; }

.srl-lb-close,
.srl-lb-nav {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: #FFFFFF;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  transition: background var(--hv3-ease);
}

.srl-lb-close:hover,
.srl-lb-nav:hover { background: rgba(255, 255, 255, .25); }

.srl-lb-close { top: 18px; right: 18px; }
.srl-lb-prev  { left: 18px;  top: 50%; margin-top: -24px; }
.srl-lb-next  { right: 18px; top: 50%; margin-top: -24px; }

.srl-lb-count {
  position: absolute;
  top: 30px;
  left: 24px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, .7);
}

/* ---- Modale "Rapport PDF" (fonctionnalité désactivée) ---- */
.srl-modal {
  width: min(680px, calc(100vw - 24px));
  max-height: calc(100vh - 40px);
  padding: 0;
  border: 0;
  border-radius: var(--hv3-radius);
  box-shadow: 0 40px 80px -30px rgba(24, 20, 87, .7);
  color: var(--hv3-navy);
}

.srl-modal::backdrop { background: rgba(24, 20, 87, .55); }

.srl-modal-inner {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 40px);
  margin: 0;
}

.srl-modal-head,
.srl-modal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--hv3-border);
}

.srl-modal-foot {
  border-top: 1px solid var(--hv3-border);
  border-bottom: 0;
  justify-content: flex-end;
}

.srl-modal-head h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
}

.srl-modal-close {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--hv3-soft);
  font-size: 22px;
  cursor: pointer;
}

.srl-modal-body {
  padding: 18px 22px;
  overflow-y: auto;
}

.srl-modal-place {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--hv3-place-soft);
  font-size: 13.5px;
  color: var(--hv3-muted);
}

.srl-modal-place b { font-size: 15px; color: var(--hv3-navy); }

.srl-fieldset {
  margin: 0 0 16px;
  padding: 0;
  border: 0;
}

.srl-fieldset legend {
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 800;
}

.srl-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.srl-fields input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1.5px solid var(--hv3-border);
  font-size: 16px;
}

.srl-hp {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.srl-upload {
  display: grid;
  place-items: center;
  min-height: 74px;
  padding: 14px;
  border-radius: 14px;
  border: 2px dashed var(--hv3-border);
  background: var(--hv3-soft);
  font-size: 13.5px;
  color: var(--hv3-muted);
  text-align: center;
  cursor: pointer;
}

.srl-upload.is-hover,
.srl-upload:hover { border-color: var(--hv3-place-bright); }
.srl-upload.is-uploaded { border-style: solid; border-color: var(--hv3-place); color: var(--hv3-navy); background: var(--hv3-place-soft); }

.srl-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.srl-switch input { width: 18px; height: 18px; accent-color: var(--hv3-place); }
.srl-switch-sm { font-size: 13px; font-weight: 500; padding: 4px 0; }
.srl-switch-all { justify-content: flex-end; margin-bottom: 8px; }

.srl-pdf-cat {
  border-bottom: 1px solid var(--hv3-border);
}

.srl-pdf-cat > summary {
  padding: 10px 0;
  cursor: pointer;
}

.srl-pdf-items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 14px;
  padding: 0 0 10px 28px;
}

.srl-modal-error {
  flex: 1 1 auto;
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--srl-tone-1);
}

.srl-modal-loading {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid rgba(15, 169, 155, .2);
  border-top-color: var(--hv3-place);
  animation: hv3-spin .7s linear infinite;
}

.srl-modal-loading[hidden] { display: none; }


/* =============================================================================
   14. RESPONSIVE
   ============================================================================= */

@media (max-width: 1199px) {
  .srl-hero-grid { gap: 32px; }
  .srl-h1-name { font-size: 40px; }
  .srl-gallery { height: 420px; }
  .srl-nearby { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 991px) {
  .srl-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .srl-gallery { height: 360px; }

  .srl-overview { grid-template-columns: minmax(0, 1fr); }
  .srl-overview-side { display: grid; grid-template-columns: 1fr 1fr; }

  .srl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .srl-affinity,
  .srl-pdf { grid-template-columns: minmax(0, 1fr); padding: 32px; }
  .srl-affinity-score,
  .srl-pdf-cta { min-width: 0; }

  .srl-map { height: 480px; }
  .srl-nearby { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .srl-listings { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
  .srl-page { --srl-nav-h: 52px; }
  .srl-page main.srl-main { background-size: 100% 700px; }

  .srl-hero { padding: 10px 0 28px; }
  .srl-crumbs ol { margin-bottom: 16px; font-size: 12.5px; }
  .srl-crumbs [aria-current] { max-width: 200px; }

  .srl-h1-name { font-size: 32px; letter-spacing: -.6px; }
  .srl-h1-sub { font-size: 16px; }

  .srl-gallery { height: 260px; border-radius: var(--hv3-radius-sm); gap: 4px; }
  .srl-gallery-n4,
  .srl-gallery-n5 { grid-template-columns: 1.6fr 1fr; }
  .srl-gallery-n4 .srl-photo:nth-child(n+4),
  .srl-gallery-n5 .srl-photo:nth-child(n+4) { display: none; }
  .srl-gallery-n4 .srl-photo:nth-child(4) { grid-column: auto; }

  .srl-global { display: flex; width: 100%; }
  .srl-global-num { width: 64px; height: 64px; }
  .srl-global-num b { font-size: 24px; }

  .srl-keyfigs { gap: 8px; }
  .srl-keyfigs a { padding: 10px 11px; column-gap: 8px; }
  .srl-keyfig-ico { font-size: 19px; }
  .srl-keyfigs b { font-size: 15px; }

  .srl-hero-actions { flex-direction: column; align-items: stretch; }
  .srl-hero-actions .hv3-btn,
  .srl-hero-actions .srl-btn-ghost { width: 100%; }

  .srl-nav-list a { padding: 7px 12px; font-size: 13.5px; }

  .srl-section { padding: 44px 0; }
  .srl-page .hv3-h2 { font-size: 22px; }
  .srl-section-head { margin-bottom: 22px; }

  .srl-box { padding: 18px 14px; border-radius: var(--hv3-radius-sm); }
  .srl-overview-side { grid-template-columns: minmax(0, 1fr); }
  .srl-scorelist a { grid-template-columns: 28px minmax(0, 1fr) 70px 54px; gap: 8px; padding: 8px 4px; }
  .srl-sl-name { font-size: 13.5px; }
  .srl-radar { height: 280px; }

  .srl-map-card { padding: 5px; border-radius: calc(var(--hv3-radius-sm) + 5px); }
  .srl-map { height: min(70vh, 460px); border-radius: var(--hv3-radius-sm); }

  .srl-affinity,
  .srl-pdf { padding: 24px 18px; gap: 24px; }

  .srl-cat { padding: 40px 0; }
  .srl-cat-head { grid-template-columns: auto minmax(0, 1fr); gap: 12px 14px; }
  .srl-cat-ico { width: 46px; height: 46px; font-size: 22px; border-radius: 14px; }
  .srl-cat-title { margin-top: 2px; font-size: 22px; }
  .srl-cat-summary { grid-column: 1 / -1; font-size: 14.5px; }
  .srl-cat-titles { display: contents; }
  .srl-cat-score { grid-column: 1 / -1; padding-top: 0; }

  .srl-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .srl-ind-wide { grid-column: auto; }
  .srl-ind { padding: 16px 16px 14px; }
  .srl-chart { height: 240px; }

  .srl-hoods-box { padding: 14px; border-radius: var(--hv3-radius-sm); }

  /* Boutons de fin de section : pleine largeur, texte sur plusieurs lignes si besoin
     (.hv3-btn est en white-space: nowrap et débordait de l'écran) */
  .srl-actions .hv3-btn,
  .srl-more {
    width: 100%;
    white-space: normal;
    text-align: center;
    justify-content: center;
  }
  .srl-hoods { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .srl-hood { padding: 11px 12px; }

  .srl-awards { grid-template-columns: minmax(0, 1fr); }
  .srl-nearby { grid-template-columns: minmax(0, 1fr); }
  .srl-listings { grid-template-columns: minmax(0, 1fr); }

  .srl-fields,
  .srl-pdf-items { grid-template-columns: minmax(0, 1fr); }

  .srl-lb-figure { max-width: calc(100vw - 24px); }
  .srl-lb-nav { top: auto; bottom: 18px; margin-top: 0; }

  .srl-sticky { bottom: 10px; gap: 10px; }
  .srl-sticky .hv3-donut { width: 44px; height: 44px; }
  .srl-sticky-txt { font-size: 13px; }
  .srl-sticky-btn { padding: 11px 14px; font-size: 13.5px; }
}

@media (max-width: 420px) {
  .srl-hoods { grid-template-columns: minmax(0, 1fr); }
  .srl-keyfigs a { grid-template-columns: minmax(0, 1fr); }
  .srl-keyfig-ico { display: none; }
  .srl-shares li { grid-template-columns: minmax(80px, 1fr) minmax(40px, 1fr) 48px; }
}

/* < 500px (comme l'ancienne fiche) : la question est masquée, le bouton passe
   sous le titre "Score d'affinité" sur toute la largeur. Bouton compact pour
   garder la hauteur de la barre (cercle de 44px + marges = 60px). */
@media (max-width: 499px) {
  .srl-sticky {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    column-gap: 10px;
    row-gap: 4px;
    align-items: center;
  }
  .srl-sticky .hv3-donut { grid-column: 1; grid-row: 1 / 3; width: 44px; height: 44px; }
  .srl-sticky-text { display: contents; }
  .srl-sticky-txt { display: none; }
  .srl-sticky-tag { grid-column: 2; grid-row: 1; font-size: 10.5px; line-height: 1.2; }
  .srl-sticky-btn {
    grid-column: 2;
    grid-row: 2;
    width: 100%;
    padding: 6px 12px;
    font-size: 12.5px;
    line-height: 1.2;
    box-shadow: 0 6px 14px -6px rgba(255, 28, 96, .55);
  }
  .srl-sticky-btn:hover { transform: none; }
  .srl-sticky-close { grid-column: 3; grid-row: 1 / 3; width: 26px; height: 26px; font-size: 18px; }
}

/* Appareils tactiles : l'aide molette n'a pas de sens sans souris */
@media (hover: none) {
  .srl-wheel-hint { display: none; }
}

/* Impression : contenu complet, sans éléments interactifs */
@media print {
  .srl-nav, .srl-sticky, .srl-map-card, .srl-hero-actions, .hv3-cta-band, .srl-more-wrap { display: none !important; }
  .hv3-js .srl-ind-extra, .hv3-js .srl-chip-extra, .hv3-js .srl-award-extra { display: flex !important; }
}
