/* ===== Identité SPSA — Navy / Or (design bob 1) ===== */
:root {
  /* Bleu marine — primaire */
  --ocean:        #001f52;  /* primary */
  --ocean-mid:    #0a3478;  /* primary-container */
  --ocean-light:  #3c5ca2;  /* surface-tint / liens */
  --ocean-pale:   #d9e2ff;  /* primary-fixed */
  --ocean-deep:   #001945;  /* on-primary-fixed (hover CTA bob 1) */

  /* Or — accent de marque (navy/or) */
  --gold:         #E9B544;
  --gold-dark:    #7a5900;
  --gold-light:   #fdc754;
  --gold-tint:    rgba(233, 181, 68, 0.16);

  /* Or signature — CTA & accents interactifs (palette bob 1 : navy/or, pas d'orange) */
  --coral:        #E9B544;  /* = or */
  --coral-dark:   #7a5900;  /* secondary bob 1 (or foncé) */
  --coral-light:  #fdc754;  /* or clair */
  --coral-tint:   rgba(233, 181, 68, 0.14);
  --accent-ink:   #5c4200;  /* texte or lisible sur fond clair */

  /* Surfaces — crème chaud */
  --surface:      #fcf9f8;  /* background */
  --surface-low:  #f6f3f2;  /* surface-container-low (héro bob 1) */
  --surface-mid:  #f0eded;  /* surface-container */
  --border:       #c4c6d2;  /* outline-variant */
  --border-light: #e5e2e1;  /* surface-variant */

  /* Texte */
  --text:         #1c1b1b;  /* on-background */
  --text-mid:     #444651;  /* on-surface-variant */
  --text-soft:    #747782;  /* outline */

  --white:        #FFFFFF;

  /* Rayons */
  --r:    4px;
  --r-sm: 2px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;

  /* Ombres — neutres et douces */
  --sh-sm: 0 1px 4px rgba(0, 0, 0, 0.05);
  --sh:    0 2px 8px rgba(0, 0, 0, 0.06);
  --sh-md: 0 4px 20px rgba(0, 0, 0, 0.09);
  --sh-lg: 0 8px 24px rgba(0, 0, 0, 0.12);

  --ease:      0.18s ease;
  --container: 1400px;
  --header-h:  64px;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Manrope', system-ui, sans-serif;
  line-height: 1.12;
  font-weight: 800;
}

a {
  color: var(--ocean-light);
  text-decoration: none;
  transition: color var(--ease);
}

a:hover { color: var(--accent-ink); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 2px;
}

img, svg { max-width: 100%; height: auto; display: block; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Scroll Reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Animations d'entrée (au chargement de la page) ===== */
@keyframes header-drop {
  from { transform: translateY(-100%); }
  to   { transform: translateY(0); }
}

@keyframes enter-up {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes enter-down {
  from { opacity: 0; transform: translateY(-14px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes enter-left {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes line-grow {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

@keyframes underline-draw {
  from { background-size: 0% 3px; }
  to   { background-size: 100% 3px; }
}

@keyframes shape-in {
  from { opacity: 0; transform: scale(0.55); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes shape-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(26px, 20px) scale(1.06); }
}

@keyframes cta-glow {
  0%, 100% { box-shadow: 0 4px 18px rgba(0, 31, 82, 0.28); }
  50%      { box-shadow: 0 6px 30px rgba(0, 31, 82, 0.55); }
}

/* ===== Header ===== (couleur bob 1 : surface crème, texte navy) */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--sh-sm);
  transition: background var(--ease), box-shadow var(--ease), backdrop-filter var(--ease);
  animation: header-drop 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Liseré or qui se déploie au chargement */
.header::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold) 22%, var(--gold-light) 50%, var(--gold) 78%, transparent);
  transform: scaleX(1);
  transform-origin: center;
  animation: line-grow 0.9s ease both 0.55s;
}

.header--scrolled {
  background: rgba(252, 249, 248, 0.85);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
          backdrop-filter: blur(12px) saturate(140%);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.10);
}

.header .container {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  animation: enter-left 0.6s ease both 0.25s;
}

.header__logo img {
  height: 40px;
  width: auto;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.12));
  transition: transform var(--ease);
}

.header__logo:hover img {
  transform: translateY(-1px) scale(1.02);
}

.header__nav {
  display: flex;
  gap: 2px;
}

.header__toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--ocean);
  cursor: pointer;
  padding: 8px;
}

.header__nav a {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-mid);
  padding: 8px 16px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  position: relative;
  border-radius: var(--r-sm);
  transition: color var(--ease), background var(--ease);
  animation: enter-down 0.55s ease both;
}

.header__nav a:nth-child(1) { animation-delay: 0.42s; }
.header__nav a:nth-child(2) { animation-delay: 0.52s; }
.header__nav a:nth-child(3) { animation-delay: 0.62s; }

.header__nav a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--coral);
  transform: scaleX(0);
  transition: transform var(--ease);
  border-radius: 1px;
}

.header__nav a:hover {
  color: var(--ocean);
  background: var(--surface-mid);
}

.header__nav a:hover::after {
  transform: scaleX(1);
}

/* ===== Héro ===== */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--surface-low) 0%, var(--surface) 100%);
  color: var(--text);
  padding: 88px 0 80px;
  text-align: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border-light);
}

/* Courbes de niveau de La Réunion (identité locale) */
.hero__topo {
  position: absolute;
  top: 50%;
  right: -9%;
  width: min(760px, 94%);
  height: auto;
  transform: translateY(-50%);
  pointer-events: none;
  -webkit-mask-image: radial-gradient(120% 120% at 62% 50%, #000 68%, transparent 100%);
          mask-image: radial-gradient(120% 120% at 62% 50%, #000 68%, transparent 100%);
}

.hero__topo .topo-island {
  fill: rgba(0, 31, 82, 0.04);
  stroke: rgba(0, 31, 82, 0.34);
  stroke-width: 1.6;
  stroke-dasharray: 4400;
  animation: topo-draw 3s ease both 0.3s;
}

.hero__topo .topo-pin {
  transform-box: fill-box;
  transform-origin: center bottom;
  animation: pin-pop 0.55s cubic-bezier(0.22, 1, 0.36, 1) both 2s;
}

/* 2 couleurs = 2 catégories de partenaires (lisibles sur fond clair) */
.hero__topo .topo-pin--garage  { fill: var(--ocean); }
.hero__topo .topo-pin--vendeur { fill: var(--gold); }

@keyframes topo-draw {
  from { stroke-dashoffset: 4400; }
  to   { stroke-dashoffset: 0; }
}

@keyframes pin-pop {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Lueurs douces */
.hero__shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
}

.hero__shape--1 {
  width: 640px;
  height: 640px;
  top: -240px;
  right: -180px;
  background: rgba(129, 159, 234, 0.22); /* on-primary-container (bob 1) */
  animation: shape-in 1.6s ease both 0.1s, shape-drift 16s ease-in-out infinite 1.6s;
}

.hero__shape--2 {
  width: 360px;
  height: 360px;
  bottom: -120px;
  left: -80px;
  background: rgba(233, 181, 68, 0.18); /* lueur or */
  animation: shape-in 1.6s ease both 0.35s, shape-drift 20s ease-in-out infinite reverse 1.95s;
}

.hero__content {
  position: relative;
  z-index: 1;
}

.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 22px;
  animation: enter-up 0.7s ease both 0.5s;
}

.hero__tag::before,
.hero__tag::after {
  content: '';
  display: block;
  width: 28px;
  height: 1.5px;
  background: var(--gold-dark);
  flex-shrink: 0;
  opacity: 0.7;
  transform: scaleX(1);
  animation: line-grow 0.6s ease both 0.85s;
}

.hero h1 {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.08;
  color: var(--ocean);
  animation: enter-up 0.8s cubic-bezier(0.22, 1, 0.36, 1) both 0.62s;
}

.hero h1 span {
  color: var(--ocean);
  /* Soulignement or tracé au chargement */
  background-image: linear-gradient(var(--gold), var(--gold));
  background-repeat: no-repeat;
  background-position: left 100%;
  background-size: 100% 3px;
  padding-bottom: 5px;
  animation: underline-draw 0.7s ease both 1.2s;
}

.hero p {
  font-size: 1rem;
  color: var(--text-mid);
  max-width: 540px;
  margin: 0 auto 36px;
  line-height: 1.75;
  font-weight: 400;
  animation: enter-up 0.8s ease both 0.78s;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ocean);
  color: var(--white);
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 14px 34px;
  border-radius: var(--r-md);
  min-height: 50px;
  transition: background var(--ease), box-shadow var(--ease), transform var(--ease);
  box-shadow: 0 4px 18px rgba(0, 31, 82, 0.28);
  animation: enter-up 0.7s ease both 0.95s, cta-glow 1.8s ease 1.8s 1;
}

.hero__cta:active { transform: translateY(1px); }

.hero__cta:hover {
  background: var(--ocean-deep);
  color: var(--white);
  box-shadow: 0 6px 26px rgba(0, 31, 82, 0.38);
}

/* ===== Stats ===== */
.stats {
  background: var(--surface);
  padding: 8px 0 56px;
  position: relative;
}

/* Grille stats */
.stats__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  max-width: 900px;
  margin: 0 auto;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.stats__item {
  background: var(--surface-low);
  padding: 28px 24px;
  text-align: center;
  transition: background var(--ease);
}

.stats__item:hover {
  background: var(--surface-mid);
}

.stats__number {
  display: block;
  font-family: 'Manrope', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--ocean);
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
}

.stats__label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-soft);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ===== Vague de transition ===== */
.wave-separator {
  background: var(--surface);
  line-height: 0;
  overflow: hidden;
}

.wave-separator svg {
  display: block;
  width: 100%;
  height: 52px;
}

/* ===== Section Annuaire ===== */
.annuaire {
  padding: 48px 0 80px;
  background: var(--surface);
}

/* ===== Section Header ===== */
.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 14px;
}

/* Diamant CSS */
.section-tag::before {
  content: '';
  display: block;
  width: 7px;
  height: 7px;
  background: var(--coral);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.section-header h2 {
  font-size: 1.7rem;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.section-header p {
  font-size: 0.95rem;
  color: var(--text-soft);
  max-width: 520px;
  margin: 0 auto;
  font-weight: 400;
}

/* ===== Barre de filtres ===== */
.filters__bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  background: var(--white);
  padding: 12px;
  border-radius: var(--r-xl);
  border: 1.5px solid var(--border);
  box-shadow: var(--sh-md);
  margin-bottom: 16px;
  position: sticky;
  top: calc(var(--header-h) + 8px);
  z-index: 40;
}

.filters__input-wrap {
  position: relative;
  flex: 2;
  min-width: 240px;
}

.filters__icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-soft);
  pointer-events: none;
}

.filters__bar input {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  padding: 11px 12px 11px 42px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--text);
  min-height: 46px;
  transition: border-color var(--ease);
  width: 100%;
}

.filters__bar input:focus {
  border-color: var(--ocean-light);
  background: var(--white);
  outline: none;
}

.filters__bar select {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  padding: 11px 36px 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--text);
  min-height: 46px;
  transition: border-color var(--ease);
  flex: 1;
  min-width: 180px;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23747782' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.filters__bar select:focus {
  border-color: var(--ocean-light);
  background-color: var(--white);
  outline: none;
}

.filters__count {
  font-size: 0.8rem;
  color: var(--text-soft);
  font-weight: 600;
  white-space: nowrap;
  padding: 0 6px;
}

/* ===== Barre « Votre adresse » (partenaires autour d'un point) ===== */
.geo-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 16px;
}

.geo-bar__input-wrap {
  position: relative;
  flex: 1 1 240px;
  min-width: 0;
}

.geo-bar__icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-soft);
  pointer-events: none;
}

.geo-bar input {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  padding: 11px 12px 11px 42px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  background: var(--white);
  color: var(--text);
  min-height: 46px;
  width: 100%;
  transition: border-color var(--ease);
}

.geo-bar input:focus {
  border-color: var(--ocean-light);
  outline: none;
}

.geo-bar__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--ocean);
  color: var(--white);
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0 20px;
  min-height: 46px;
  border: none;
  border-radius: var(--r-md);
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--ease), box-shadow var(--ease);
}

.geo-bar__btn:hover { background: var(--ocean-mid); }

.geo-bar__btn.is-loading {
  pointer-events: none;
  opacity: 0.6;
}

.geo-bar__btn.is-loading svg {
  animation: locate-spin 0.8s linear infinite;
}

.geo-bar__reset {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text-mid);
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0 16px;
  min-height: 46px;
  border-radius: var(--r-md);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color var(--ease), color var(--ease);
}

.geo-bar__reset:hover {
  border-color: var(--ocean);
  color: var(--ocean);
}

/* Liste d'autocomplétion (API Adresse / BAN) */
.geo-bar__suggestions {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 50;
  margin: 0;
  padding: 4px;
  list-style: none;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--sh-md);
  max-height: 280px;
  overflow-y: auto;
}

.geo-suggestion {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  font-size: 0.85rem;
  line-height: 1.3;
  color: var(--text-mid);
  border-radius: var(--r);
  cursor: pointer;
}

.geo-suggestion svg {
  flex-shrink: 0;
  color: var(--text-soft);
}

.geo-suggestion:hover,
.geo-suggestion.is-active {
  background: var(--surface-mid);
  color: var(--text);
}

/* ===== Vue divisée ===== */
.split-view {
  display: flex;
  gap: 20px;
  height: calc(100vh - 240px);
  min-height: 600px;
}

.split-view__list {
  width: 40%;
  height: 100%;
  overflow-y: auto;
  padding-right: 4px;
  scroll-behavior: smooth;
}

.split-view__list::-webkit-scrollbar {
  width: 4px;
}

.split-view__list::-webkit-scrollbar-track {
  background: var(--surface-mid);
  border-radius: 2px;
}

.split-view__list::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}

.split-view__map {
  flex: 1;
  height: 100%;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1.5px solid var(--border);
  box-shadow: var(--sh-md);
  /* Isole les z-index internes de Leaflet (panes 400, contrôles 1000) sous la
     barre de filtres sticky (z-index 40), sinon la carte passe par-dessus. */
  position: relative;
  z-index: 1;
}

#map {
  width: 100%;
  height: 100%;
}

/* ===== Grille partenaires ===== */
.partners-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 32px;
}

/* ===== Carte partenaire ===== */
.card {
  background: var(--white);
  border: 1.5px solid var(--border-light);
  border-top: 3px solid transparent; /* remplacé au hover sans layout shift */
  border-radius: var(--r-lg);
  padding: 20px;
  box-shadow: var(--sh-sm);
  transition: box-shadow var(--ease), border-color var(--ease);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

/* Barre corail en haut, animée au hover */
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--coral);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--ease);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}

.card:hover {
  box-shadow: var(--sh-md);
  border-color: var(--border);
}

.card:hover::before {
  transform: scaleX(1);
}

.card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 10px;
}

.card__name {
  font-family: 'Manrope', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ocean);
  letter-spacing: -0.01em;
}

.card__badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 4px 9px;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border: 1.5px solid;
  border-radius: var(--r-sm);
}

.card__badge--garage {
  border-color: var(--ocean-pale);
  color: var(--ocean);
  background: var(--surface-mid);
}

.card__badge--vendeur {
  border-color: var(--gold);
  color: var(--gold-dark);
  background: var(--gold-tint);
}

.card__address,
.card__phone {
  font-size: 0.83rem;
  color: var(--text-soft);
  margin-bottom: 5px;
  display: flex;
  align-items: flex-start;
  gap: 7px;
}

.card__address svg,
.card__phone svg {
  flex-shrink: 0;
  margin-top: 2px;
  opacity: 0.45;
}

.card__links {
  display: flex;
  gap: 6px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 8px 13px;
  min-height: 38px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: var(--r-md);
  border: 1.5px solid transparent;
  transition: background var(--ease), color var(--ease), box-shadow var(--ease);
}

/* Maps — bleu océan */
.card__link--maps {
  background: var(--ocean);
  color: var(--white);
  border-color: var(--ocean);
}

.card__link--maps:hover {
  background: var(--ocean-mid);
  border-color: var(--ocean-mid);
  color: var(--white);
}

/* Waze — or signature */
.card__link--waze {
  background: var(--gold);
  color: var(--ocean);
  border-color: var(--gold);
}

.card__link--waze:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--ocean);
}

/* Tel — ghost */
.card__link--tel {
  background: transparent;
  color: var(--ocean);
  border-color: var(--border);
}

.card__link--tel:hover {
  border-color: var(--ocean);
  background: var(--surface);
  color: var(--ocean);
}

/* Bouton « Appeler » (fiches à deux numéros) — reset des styles natifs <button> */
button.card__link {
  cursor: pointer;
  font-family: inherit;
  line-height: 1;
}

/* Menu de choix entre les deux numéros */
.card__call {
  position: relative;
  display: inline-flex;
}

.card__call-menu {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 0;
  z-index: 20;
  display: none;
  flex-direction: column;
  min-width: 160px;
  padding: 6px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: 0 8px 24px rgba(0, 31, 82, 0.16);
}

.card__call.is-open .card__call-menu {
  display: flex;
}

.card__call-option {
  padding: 9px 12px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ocean);
  border-radius: var(--r-sm);
  white-space: nowrap;
}

.card__call-option:hover {
  background: var(--surface);
}

/* Site web — ghost or */
.card__link--web {
  background: transparent;
  color: var(--ocean);
  border-color: var(--gold);
}

.card__link--web:hover {
  border-color: var(--gold);
  background: var(--gold-light);
  color: var(--ocean);
}

/* ===== Aucun résultat ===== */
.no-results {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-soft);
  border: 1.5px dashed var(--border);
  border-radius: var(--r-xl);
  background: var(--white);
}

.no-results p {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.no-results span { font-size: 0.88rem; }

/* ===== Bouton « Voir plus » (liste mobile) ===== */
.list-more {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 14px 16px;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ocean);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
}

.list-more:hover {
  background: var(--ocean);
  border-color: var(--ocean);
  color: var(--white);
}

/* ===== Badge distance (géoloc active) ===== */
.card__distance {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-ink);
  background: var(--coral-tint);
  border: 1.5px solid var(--coral);
  border-radius: 9999px;
  padding: 3px 10px;
  margin-bottom: 8px;
  letter-spacing: 0.03em;
}

.card__distance svg { opacity: 0.8; }

/* Fiche mise en avant (clic marqueur / popup) */
.card--active {
  border-color: var(--ocean-light) !important;
  box-shadow: 0 0 0 3px rgba(10, 52, 120, 0.18), var(--sh-md) !important;
}

/* ===== Bouton géolocalisation (contrôle Leaflet) ===== */
.locate-btn {
  width: 34px;
  height: 34px;
  background: var(--white);
  border: none;
  border-radius: var(--r);
  color: var(--ocean);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.4);
  transition: background var(--ease), color var(--ease);
}

.locate-btn:hover { background: var(--surface); color: var(--coral); }

.locate-btn--loading {
  pointer-events: none;
  opacity: 0.6;
}

.locate-btn--loading svg {
  animation: locate-spin 0.8s linear infinite;
}

@keyframes locate-spin {
  to { transform: rotate(360deg); }
}

/* ===== Footer ===== */
.footer {
  background: var(--border-light);
  color: var(--text-mid);
  padding: 60px 0 32px;
  border-top: 3px solid var(--coral);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}

.footer__brand { max-width: 320px; }

.footer__name {
  font-family: 'Manrope', sans-serif;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--ocean);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer__desc {
  font-size: 0.83rem;
  line-height: 1.75;
}

.footer__contact-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Manrope', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--ocean);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.footer__contact-title::before {
  content: '';
  display: block;
  width: 5px;
  height: 5px;
  background: var(--gold);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.footer__contact p { font-size: 0.83rem; line-height: 1.9; }

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__links a {
  color: var(--text-mid);
  font-size: 0.83rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color var(--ease);
}

.footer__links a:hover { color: var(--ocean); }

.footer a { color: var(--ocean); }
.footer a:hover { color: var(--accent-ink); }

.footer__bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer__copy {
  font-size: 0.7rem;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ===== Marqueurs personnalisés ===== */
.marker-pin-wrap { background: transparent; border: none; }

.marker-pin {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2.5px solid #fff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.28);
  transition: transform var(--ease);
}

.marker-pin svg { width: 17px; height: 17px; }

.marker-pin--garage { background: var(--ocean); color: #fff; }
.marker-pin--vendeur { background: var(--gold); color: var(--ocean); }

.marker-pin:hover { transform: scale(1.12); }

.marker-pin--bounce { animation: pin-bounce 0.6s ease; }

@keyframes pin-bounce {
  0%, 100% { transform: translateY(0); }
  30% { transform: translateY(-11px); }
  55% { transform: translateY(-4px); }
  75% { transform: translateY(-1px); }
}

/* Clusters aux couleurs SPSA */
.marker-cluster { background: rgba(0, 31, 82, 0.32) !important; }
.marker-cluster div {
  background: var(--ocean) !important;
  color: #fff !important;
}
.marker-cluster span { font-family: 'Manrope', sans-serif; font-weight: 700; }

/* ===== Leaflet ===== */
.leaflet-popup-content-wrapper {
  border-radius: var(--r-md) !important;
  box-shadow: var(--sh-md) !important;
  border: 1.5px solid var(--border) !important;
}

.leaflet-popup-content {
  font-family: 'Inter', sans-serif !important;
  font-size: 0.85rem !important;
  line-height: 1.5 !important;
  margin: 12px 16px !important;
}

.leaflet-popup-content strong {
  font-family: 'Manrope', sans-serif;
  color: var(--ocean);
  font-size: 0.9rem;
  font-weight: 700;
}

.leaflet-popup-content a {
  color: var(--accent-ink);
  font-weight: 600;
}

.popup-link {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.72rem;
  cursor: pointer;
  color: var(--accent-ink);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1.5px solid var(--gold);
  padding-bottom: 2px;
  transition: color var(--ease);
}

.popup-link:hover { color: var(--ocean); }

/* ===== Responsive ===== */
@media (min-width: 768px) {
  .container { padding: 0 32px; }

  .hero { padding: 110px 0 96px; }
  .hero h1 { font-size: 3rem; }

  .stats__grid { grid-template-columns: repeat(2, 1fr); max-width: 600px; }

  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr;
    gap: 56px;
  }
}

@media (max-width: 1023px) {
  /* Empilement vertical : carte en haut, fiches partenaires listées dessous */
  .split-view {
    position: static;
    flex-direction: column;
    gap: 16px;
    height: auto;
    min-height: 0;
  }

  /* La carte passe au-dessus de la liste (ordre DOM : liste avant carte) */
  .split-view__map {
    display: block;
    position: relative;
    inset: auto;
    order: -1;
    flex: none; /* annule flex:1 (sinon flex-basis:0 écrase la hauteur) */
    width: 100%;
    height: 320px;
    border-radius: var(--r-lg);
  }

  /* La liste reprend un défilement vertical normal, toutes les fiches visibles */
  .split-view__list {
    position: static;
    width: 100%;
    height: auto;
    overflow: visible;
    padding-right: 0;
  }

  .partners-grid {
    flex-direction: column;
    gap: 12px;
    padding-bottom: 8px;
  }
}

@media (max-width: 767px) {
  :root { --header-h: 56px; }

  .header .container { height: 56px; }
  .header__toggle { display: inline-flex; align-items: center; justify-content: center; }

  .header__nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 56px;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    padding: 0;
    border-bottom: 2px solid var(--ocean);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: opacity 220ms ease, max-height 220ms ease;
  }

  .header.nav-open .header__nav,
  .header__nav.open {
    max-height: 360px;
    opacity: 1;
  }

  .header__nav a {
    padding: 14px 20px;
    border-bottom: 1px solid var(--surface-mid);
    border-radius: 0;
    color: var(--text-mid);
    text-align: right;
  }

  .header__nav a:hover {
    color: var(--ocean);
    background: var(--surface);
  }

  .header__nav a::after { display: none; }

  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 31, 82, 0.55); /* primary (bob 1) */
    opacity: 0;
    visibility: hidden;
    transition: opacity 220ms ease, visibility 220ms;
    z-index: 900;
  }

  .nav-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  .lock-scroll { overflow: hidden; }

  /* Espace réservé en bas du héro pour accueillir la carte sous le bouton */
  .hero { padding: 56px 0 320px; }
  /* Interligne aéré : le souligné or de « SPSA » ne mord plus la ligne suivante */
  .hero h1 { font-size: 1.8rem; line-height: 1.3; }
  /* Trait or remonté pour ne pas mordre sur « près de chez vous » */
  .hero h1 span { padding-bottom: 1px; background-size: 100% 2px; }
  .hero__tag { font-size: 0.62rem; }

  /* La carte de l'île descend sous le CTA, centrée, avant les stats */
  .hero__topo {
    top: auto;
    bottom: 24px;
    left: 50%;
    right: auto;
    width: 270px;
    max-width: 80%;
    transform: translateX(-50%);
    -webkit-mask-image: none;
            mask-image: none;
  }

  /* La carte est ~3x plus petite sur mobile : on agrandit les points pour
     garder une taille cohérente avec le desktop. 'scale' n'interfère pas avec
     l'animation pin-pop (qui utilise 'transform'), et l'ancrage bas conserve
     la position GPS de la pointe. */
  .hero__topo .topo-pin { scale: 1.8; }

  /* Halos décoratifs conservés sur mobile, recentrés sur le titre
     (en haut du héro) pour garder le fond coloré sans aplat derrière la carte */
  .hero__shape--1 {
    width: 360px;
    height: 360px;
    top: -150px;
    right: -110px;
  }

  .hero__shape--2 {
    width: 240px;
    height: 240px;
    top: 40px;
    bottom: auto;
    left: -110px;
  }

  .stats { padding: 36px 0 48px; }
  .stats__grid { gap: 1px; }
  .stats__item { padding: 22px 14px; }
  .stats__number { font-size: 1.7rem; }

  /* Filtres compacts : recherche pleine largeur, 2 listes côte à côte */
  .filters__bar {
    position: static;
    gap: 8px;
    padding: 10px;
  }

  .filters__input-wrap {
    flex: 1 1 100%;
    min-width: 0;
  }

  .filters__bar select {
    flex: 1 1 calc(50% - 4px);
    min-width: 0;
  }

  .filters__count {
    flex: 1 1 100%;
    text-align: center;
    padding: 2px 0 0;
  }

  /* Adresse : champ pleine largeur, boutons côte à côte dessous */
  .geo-bar__input-wrap { flex: 1 1 100%; }
  .geo-bar__btn { flex: 1 1 auto; }

  /* Boutons des fiches : 2 par ligne (Maps + Waze, puis Appeler + Site) */
  .card__link {
    flex: 1 1 calc(50% - 3px);
    justify-content: center;
  }

  .annuaire { padding: 28px 0 40px; }

  .wave-separator svg { height: 36px; }
}

@media (min-width: 1280px) {
  .container { padding: 0 40px; }
  .hero h1 { font-size: 3.4rem; }
  .hero { padding: 130px 0 110px; }
}

/* ===== Utilitaires ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  :root { --ease: 0s; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}
