/* Saint-André : histoire, accent, villes, gangs, casting, carte.
   Couleurs des gangs = canon du 13/10 (palette_canon.json). */

.sa-section {
  position: relative;
  background-color: var(--bg-body);
  color: var(--text-main);
  padding: clamp(80px, 12vh, 140px) 16px;
  overflow: hidden;
  scroll-margin-top: 60px; /* la navbar est sticky */
}

.sa-wrap {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
}

.sa-narrow {
  max-width: 760px;
}

.sa-eyebrow {
  font-family: "Montserrat", "Roboto", sans-serif;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #f4b41a;
  margin: 0 0 14px;
}

.sa-titre {
  font-family: "Montserrat", "Roboto", sans-serif;
  font-weight: 900;
  font-size: clamp(32px, 6vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.5px;
  margin: 0 0 28px;
}

.sa-titre-moyen {
  font-size: clamp(26px, 4vw, 42px);
}

.sa-lead {
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.6;
  color: #e6e6e6;
  margin: 0 0 22px;
  max-width: 760px;
}

.sa-texte {
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-muted);
  margin: 0 0 18px;
}

.sa-texte strong,
.sa-lead strong {
  color: var(--text-main);
}

.nom-bleu { color: #0A74FF; font-weight: 800; }
.nom-rouge { color: #FF0000; font-weight: 800; }
.nom-jaune { color: #CCFF00; font-weight: 800; }

/* Fond de l'histoire : l'île entière, très sombre. */
.sa-histoire-fond {
  position: absolute;
  inset: -10%;
  background: url("assets/saint-andre/ile.jpg") center / cover no-repeat;
  opacity: 0.16;
  filter: grayscale(0.4) blur(2px);
  -webkit-mask-image: radial-gradient(closest-side at 62% 52%, #000 25%, transparent 100%);
  mask-image: radial-gradient(closest-side at 62% 52%, #000 25%, transparent 100%);
}

.sa-citation {
  margin: 40px 0 34px;
  padding: 6px 0 6px 22px;
  border-left: 4px solid #f4b41a;
  font-family: "Montserrat", "Roboto", sans-serif;
  font-weight: 800;
  font-size: clamp(20px, 3vw, 28px);
  line-height: 1.3;
  color: var(--text-main);
}

.sa-pastilles {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sa-pastilles li {
  border: 1px solid #3a3a3a;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: #d8d8d8;
}

.sa-accent {
  background: linear-gradient(180deg, #000 0%, #0d0b06 50%, #000 100%);
}

.sa-accent-grille {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: center;
}

/* Le mod (speech de l'administrateur) */
.sa-lien {
  color: #f4b41a;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sa-mod-grille {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 46px;
}

.sa-mod-bloc {
  border: 1px solid #262626;
  border-radius: 14px;
  padding: 26px 24px;
  background: linear-gradient(180deg, #0d0d0d 0%, #060606 100%);
}

.sa-mod-bloc h3 {
  font-family: "Montserrat", "Roboto", sans-serif;
  font-weight: 900;
  font-size: 21px;
  margin: 0 0 12px;
}

.sa-mod-bloc p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.65;
}

.sa-marques {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sa-marques li {
  font-size: 12.5px;
  font-weight: 700;
  color: #fff;
  border: 1px solid #333;
  border-radius: 999px;
  padding: 5px 11px;
}

.sa-marques s {
  color: #777;
  font-weight: 500;
  margin-right: 5px;
}

/* Projets : les tags */
.sa-projets {
  background: radial-gradient(60% 70% at 15% 30%, rgba(255, 20, 147, 0.1) 0%, transparent 70%),
    radial-gradient(60% 70% at 85% 70%, rgba(244, 180, 26, 0.1) 0%, transparent 70%), #000;
}

.sa-tags-grille {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 320px));
  gap: 18px;
  margin: 10px 0 34px;
}

.sa-tag-chiffre {
  border: 1px solid #2a2a2a;
  border-radius: 14px;
  padding: 22px 26px;
  background: #080808;
}

.sa-tag-chiffre strong {
  display: block;
  font-family: "Montserrat", "Roboto", sans-serif;
  font-weight: 900;
  font-size: clamp(54px, 8vw, 84px);
  line-height: 1;
  color: #f4b41a;
}

.sa-tag-chiffre span {
  display: block;
  margin-top: 8px;
  font-weight: 700;
  color: #ddd;
}

.sa-avertissement {
  margin: 46px auto 0;
  max-width: 560px;
  font-size: 13px;
  line-height: 1.6;
  color: #8a8a8a;
}

/* Newswire, en bas de page */
.sa-newswire {
  border-top: 1px solid #161616;
}

.sa-news-grille {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 36px;
}

.sa-news {
  border: 1px solid #262626;
  border-left: 3px solid #f4b41a;
  border-radius: 12px;
  padding: 22px 22px 24px;
  background: #080808;
}

.sa-news h3 {
  font-family: "Montserrat", "Roboto", sans-serif;
  font-weight: 900;
  font-size: 18px;
  margin: 0 0 10px;
}

.sa-news p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.6;
}

/* Villes */
.sa-villes-grille {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 46px;
}

.sa-ville {
  position: relative;
  min-height: 340px;
  border-radius: 14px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid #222;
}

.sa-ville::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--fond) center / cover no-repeat;
  filter: grayscale(0.25) contrast(1.05);
  transform: scale(1.05);
  transition: transform 1.2s ease;
}

.sa-ville::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.9) 58%, #000 100%);
}

.sa-ville:hover::before {
  transform: scale(1.12);
}

.sa-ville h3 {
  font-family: "Montserrat", "Roboto", sans-serif;
  font-weight: 900;
  font-size: clamp(28px, 3.4vw, 40px);
  margin: 0 0 10px;
}

.sa-ville h3 small {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #f4b41a;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

.sa-ville p {
  margin: 0;
  color: #d0d0d0;
  line-height: 1.6;
  font-size: 15.5px;
}

.sa-ville .sa-ville-ex,
.sa-gang .sa-gang-ex {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #9a9a9a;
  margin: 0 0 8px;
}

/* Gangs : la couleur canon colore le bandeau et la lueur de la carte. */
.sa-gangs-grille {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.sa-gang {
  position: relative;
  border-radius: 14px;
  padding: 26px 22px 22px;
  background:
    radial-gradient(120% 70% at 0% 0%, color-mix(in srgb, var(--c) 34%, transparent) 0%, transparent 70%),
    #0c0c0c;
  border: 1px solid color-mix(in srgb, var(--c) 45%, #222);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.sa-gang::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  height: 5px;
  background: var(--c);
}

.sa-gang:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px color-mix(in srgb, var(--c) 28%, transparent);
}

.sa-gang h3 {
  font-family: "Montserrat", "Roboto", sans-serif;
  font-weight: 900;
  font-size: 22px;
  line-height: 1.15;
  margin: 0 0 6px;
  color: #fff;
  text-shadow: 0 0 18px color-mix(in srgb, var(--c) 70%, transparent);
}

.sa-gang p {
  margin: 0 0 14px;
  color: #c9c9c9;
  line-height: 1.55;
  font-size: 14.5px;
}

.sa-gang .sa-gang-terr {
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid #262626;
  font-size: 12.5px;
  font-weight: 700;
  color: #fff;
  line-height: 1.6;
}

.sa-gang .sa-gang-terr::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--c);
  margin-right: 8px;
  vertical-align: 1px;
}

/* Casting */
.sa-casting-grille {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 40px;
  background: #222;
  border: 1px solid #222;
  border-radius: 14px;
  overflow: hidden;
}

.sa-perso {
  background: #070707;
  padding: 24px 22px;
  transition: background-color 0.25s ease;
}

.sa-perso:hover {
  background: #111;
}

.sa-perso h3 {
  font-family: "Montserrat", "Roboto", sans-serif;
  font-weight: 900;
  font-size: 19px;
  margin: 0 0 8px;
}

.sa-perso p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.55;
}

.sa-perso-mechant h3 {
  color: #ff4b4b;
}

/* Carte officielle */
.sa-carte-tete {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.sa-bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 30px;
  border: 1px solid var(--text-main);
  border-radius: 8px;
  color: var(--text-main);
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.5px;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.sa-bouton:hover {
  background: var(--text-main);
  color: #000;
}

/* Carte vitrine : l'île de nuit, les noms en lumière, les gangs qui brillent. */
.sa-carte {
  background: radial-gradient(60% 50% at 70% 50%, rgba(10, 116, 255, 0.1) 0%, transparent 70%), #000;
}

.sa-atlas-grille {
  display: grid;
  grid-template-columns: minmax(280px, 380px) 1fr;
  gap: 48px;
  align-items: center;
}

.sa-atlas-panneau .sa-titre {
  font-size: clamp(32px, 4.4vw, 52px);
}

.sa-atlas-etiquette {
  margin: 26px 0 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #8a8a8a;
}

.sa-atlas-boutons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sa-atlas:not(.zoom) {
  cursor: pointer;
}

/* En vue zoomée : retour à l'île (gauche) et nom de la zone (droite). */
.sa-atlas-retour,
.sa-atlas-titre-vue {
  position: absolute;
  z-index: 3;
  top: 12px;
  margin: 0;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
}

.sa-atlas-retour {
  left: 12px;
  cursor: pointer;
}

.sa-atlas-retour:hover {
  background: #f4b41a;
  border-color: #f4b41a;
  color: #000;
}

.sa-atlas-titre-vue {
  right: 12px;
  font-family: "Montserrat", "Roboto", sans-serif;
  font-weight: 900;
  letter-spacing: 0.3px;
  pointer-events: none;
}

.sa-atlas-retour[hidden],
.sa-atlas-titre-vue[hidden] {
  display: none;
}

.sa-atlas-vues button,
.sa-atlas-puce,
.sa-atlas-option {
  font: inherit;
  cursor: pointer;
}

.sa-atlas-vues button {
  border: 1px solid #333;
  background: #0b0b0b;
  color: #ddd;
  border-radius: 999px;
  padding: 9px 16px;
  font-weight: 700;
  font-size: 14px;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.sa-atlas-vues button:hover {
  border-color: #777;
}

.sa-atlas-vues button.actif {
  background: #f4b41a;
  border-color: #f4b41a;
  color: #000;
}

.sa-atlas-gangs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.sa-atlas-puce {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid color-mix(in srgb, var(--c) 55%, #222);
  background: color-mix(in srgb, var(--c) 10%, #080808);
  color: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12.5px;
  font-weight: 700;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.sa-atlas-puce::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 8px var(--c);
}

.sa-atlas-puce.vise,
.sa-atlas-puce:hover {
  background: color-mix(in srgb, var(--c) 28%, #080808);
  box-shadow: 0 0 18px color-mix(in srgb, var(--c) 45%, transparent);
}

.sa-atlas-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  margin-top: 30px;
}

.sa-atlas-option {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: 0;
  padding: 0;
  color: #cfcfcf;
  font-size: 14px;
  font-weight: 700;
}

.sa-atlas-interrupteur {
  position: relative;
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: #2a2a2a;
  transition: background-color 0.2s ease;
}

.sa-atlas-interrupteur::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s ease;
}

.sa-atlas-option[aria-pressed="true"] .sa-atlas-interrupteur {
  background: #f4b41a;
}

.sa-atlas-option[aria-pressed="true"] .sa-atlas-interrupteur::after {
  transform: translateX(16px);
}

/* La scène */
.sa-atlas {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 760px;
  justify-self: end;
  border-radius: 18px;
  overflow: hidden;
  background: #050a12;
  border: 1px solid #1d2633;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.02), 0 0 80px rgba(10, 116, 255, 0.12);
  container-type: inline-size;
  touch-action: manipulation;
}

/* Vignette sur les bords pour fondre la carte dans la nuit. */
.sa-atlas::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%, transparent 55%, rgba(0, 0, 0, 0.65) 100%);
}

.sa-atlas-monde {
  position: absolute;
  inset: 0;
  transform-origin: 0 0;
  transition: transform 1.1s cubic-bezier(0.65, 0, 0.25, 1);
  --s: 1;
}

.sa-atlas-fond {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  user-select: none;
  /* Le radar du jeu passé en version « de nuit ». */
  filter: grayscale(0.55) brightness(0.42) contrast(1.35) sepia(0.25) hue-rotate(180deg) saturate(1.4);
}

.sa-atlas-svg {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.sa-atlas.gangs .sa-atlas-svg {
  display: block;
  animation: saNomArrive 0.5s ease both;
}

.sa-atlas-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
}

.sa-atlas-gang rect {
  fill: var(--c);
  fill-opacity: 0.34;
  stroke: var(--c);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
  pointer-events: all;
  cursor: pointer;
  filter: drop-shadow(0 0 6px var(--c));
  transition: fill-opacity 0.25s ease, opacity 0.25s ease;
}

.sa-atlas.focus .sa-atlas-gang rect {
  opacity: 0.25;
}

.sa-atlas.focus .sa-atlas-gang.vise rect {
  opacity: 1;
  fill-opacity: 0.7;
}

/* Noms : grossis dans la vue île, ramenés à une taille fixe quand on zoome. */
.sa-atlas-noms {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.sa-atlas-nom {
  position: absolute;
  transform: translate(-50%, -50%) scale(calc(1 / var(--s)));
  transition: translate 0.35s ease;
  text-align: center;
  white-space: nowrap;
  color: #fff;
  font-family: "Montserrat", "Roboto", sans-serif;
  animation: saNomArrive 0.6s ease both;
}

@keyframes saNomArrive {
  from { opacity: 0; }
  to { opacity: 1; }
}

.sa-atlas-nom span {
  display: block;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95), 0 0 2px #000;
}

.sa-atlas-nom small {
  display: block;
  margin-top: 0.2em;
  font-size: 0.32em;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #f4b41a;
  text-shadow: 0 1px 6px #000;
}

.nom-ville {
  font-size: 5.4cqw;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.nom-ville span {
  text-shadow: 0 0 24px rgba(244, 180, 26, 0.35), 0 3px 14px rgba(0, 0, 0, 0.95);
}

.nom-region {
  font-size: 1.85cqw;
  font-weight: 800;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

.nom-village {
  font-size: 1.7cqw;
  font-weight: 700;
  color: #e9e9e9;
}

.nom-village span::before {
  content: "";
  display: inline-block;
  width: 0.45em;
  height: 0.45em;
  border-radius: 50%;
  background: #f4b41a;
  margin-right: 0.4em;
  vertical-align: 0.1em;
  box-shadow: 0 0 6px #f4b41a;
}

/* Campagne zoomée : la région en filigrane, les lieux-dits plus discrets,
   les lieux à découvrir marqués d'un losange doré. */
.nom-region-zoom {
  font-size: 2.4cqw;
  color: rgba(255, 255, 255, 0.45);
}

.nom-lieudit {
  font-size: 1.6cqw;
  font-weight: 700;
  font-style: italic;
  color: rgba(214, 226, 240, 0.85);
}

.nom-decouvrir {
  font-size: 1.6cqw;
  font-weight: 800;
  color: #ffd56a;
}

.nom-decouvrir span::before {
  content: "◆";
  margin-right: 0.35em;
  font-size: 0.8em;
  color: #f4b41a;
}

.nom-quartier {
  font-size: 1.75cqw;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.82);
}

.nom-quartier.a-gang {
  color: #fff;
}

.sa-atlas.originaux .sa-atlas-nom span {
  font-style: italic;
  color: #b9c3cf;
}

.sa-atlas-bulle {
  position: absolute;
  z-index: 3;
  transform: translate(-50%, calc(-100% - 14px));
  min-width: 140px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(6, 6, 6, 0.94);
  border: 1px solid #333;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  pointer-events: none;
  text-align: center;
}

.sa-atlas-bulle.dessous {
  transform: translate(-50%, 18px);
}

.sa-atlas-bulle strong {
  display: block;
  font-family: "Montserrat", "Roboto", sans-serif;
  font-weight: 900;
  font-size: 16px;
  color: #fff;
}

.sa-atlas-bulle span {
  display: block;
  margin-top: 2px;
  font-weight: 800;
  font-size: 13px;
}

.sa-atlas-bulle small {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: #8a8a8a;
}

.sa-atlas-legende {
  position: absolute;
  z-index: 2;
  left: 12px;
  right: 12px;
  bottom: 12px;
  margin: 0;
  padding: 10px 12px;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.sa-atlas-legende[hidden] {
  display: none;
}

.sa-atlas-legende li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 700;
  color: #e8e8e8;
  cursor: default;
  transition: opacity 0.2s ease;
}

.sa-atlas-legende li::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--c);
  box-shadow: 0 0 8px var(--c);
}

@media (max-width: 700px) {
  /* Sur téléphone le bouton actif sous la carte suffit à dire où l'on est. */
  .sa-atlas-titre-vue {
    display: none;
  }
  .sa-atlas-retour {
    top: 8px;
    left: 8px;
    padding: 6px 11px;
    font-size: 12px;
  }
  .sa-atlas-legende {
    left: 8px;
    right: 8px;
    bottom: 8px;
    padding: 6px 9px;
    gap: 3px 10px;
  }
  .sa-atlas-legende li {
    font-size: 10.5px;
    gap: 5px;
  }
  .sa-atlas-legende li::before {
    width: 8px;
    height: 8px;
  }
}

.sa-atlas.focus .sa-atlas-legende li {
  opacity: 0.4;
}

.sa-atlas.focus .sa-atlas-legende li.vise {
  opacity: 1;
}

.sa-rejoindre {
  text-align: center;
  background: radial-gradient(70% 60% at 50% 100%, rgba(244, 180, 26, 0.12) 0%, transparent 70%), #000;
}

.sa-rejoindre .sa-lead {
  margin-left: auto;
  margin-right: auto;
}

.sa-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
}

.sa-actions .collage-tab-discord-btn-big {
  margin-top: 0;
}

/* Apparition au scroll (saint-andre.js ajoute .js-sa) ; sans JS tout reste visible. */
.js-sa .sa-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.js-sa .sa-reveal.vu {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .js-sa .sa-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 1000px) {
  .sa-mod-grille {
    grid-template-columns: 1fr;
  }
  .sa-news-grille {
    grid-template-columns: repeat(2, 1fr);
  }
  .sa-atlas-grille {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .sa-atlas {
    justify-self: stretch;
    max-width: none;
    order: 2;
  }
  /* Sur une colonne : titre, puis la carte, puis les boutons. */
  .sa-atlas-panneau {
    display: contents;
  }
  .sa-atlas-tete {
    order: 1;
  }
  .sa-atlas-commandes {
    order: 3;
  }
  .sa-atlas-tete .sa-lead {
    margin-bottom: 0;
  }
  .sa-atlas-commandes .sa-atlas-etiquette:first-child {
    margin-top: 0;
  }
  .sa-gangs-grille,
  .sa-casting-grille {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .sa-accent-grille,
  .sa-villes-grille {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .sa-news-grille {
    grid-template-columns: 1fr;
  }
  .sa-tags-grille {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .sa-tag-chiffre {
    padding: 16px;
  }
  .sa-ville {
    min-height: 280px;
    padding: 24px;
  }
  .sa-gangs-grille,
  .sa-casting-grille {
    grid-template-columns: 1fr;
  }
  .sa-bouton {
    white-space: normal;
  }
}

/* Les radios : planche cliquable, puis une radio par écran (couleurs de la DA de chaque station). */
.sa-radios-planche {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
  margin: 36px 0 20px;
}
.sa-radio-tuile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px 10px 12px;
  border-radius: 14px;
  background: radial-gradient(120% 80% at 50% 0%, color-mix(in srgb, var(--c) 30%, transparent), transparent 70%), #0c0c0c;
  border: 1px solid color-mix(in srgb, var(--c) 40%, #222);
  color: #fff;
  text-decoration: none;
  font-family: "Montserrat", "Roboto", sans-serif;
  font-weight: 800;
  font-size: 14px;
  text-align: center;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.sa-radio-tuile:hover, .sa-radio-tuile:focus-visible { transform: translateY(-4px); border-color: var(--c); }
.sa-radio-tuile img { width: 100%; height: 96px; object-fit: contain; }
.sa-radios-recit { margin-top: 30px; }
.sa-radio-panneau {
  min-height: 78vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(24px, 5vw, 70px);
  padding: clamp(40px, 8vh, 90px) 0;
  border-top: 1px solid #1d1d1d;
  scroll-margin-top: 70px;
}
.sa-radio-panneau:nth-child(even) .sa-radio-visuel { order: 2; }
.sa-radio-visuel {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 28px;
  background:
    radial-gradient(60% 60% at 30% 30%, color-mix(in srgb, var(--c) 55%, transparent), transparent 70%),
    radial-gradient(60% 60% at 75% 75%, color-mix(in srgb, var(--c2) 45%, transparent), transparent 70%),
    #080808;
  box-shadow: 0 30px 80px -30px color-mix(in srgb, var(--c) 70%, transparent);
}
.sa-radio-visuel img { width: 72%; height: 72%; object-fit: contain; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.55)); }
.sa-radio-genre {
  font-family: "Montserrat", "Roboto", sans-serif;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--c);
  margin: 0 0 10px;
  filter: brightness(1.25);
}
.sa-radio-texte h3 {
  font-family: "Montserrat", "Roboto", sans-serif;
  font-weight: 900;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.02;
  margin: 0 0 6px;
}
.sa-radio-ex { color: #8a8a8a; font-size: 15px; margin: 0 0 22px; }
.sa-radio-desc { font-size: clamp(17px, 1.8vw, 20px); line-height: 1.65; color: #e6e6e6; margin: 0 0 20px; }
.sa-radio-voix { font-size: 16px; line-height: 1.6; color: var(--text-muted, #b5b5b5); margin: 0; padding-left: 14px; border-left: 3px solid var(--c); }
.sa-radio-voix b { display: block; color: #fff; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 4px; }
@media (max-width: 760px) {
  .sa-radios-planche { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .sa-radio-tuile { font-size: 12px; padding: 12px 6px 10px; }
  .sa-radio-tuile img { height: 64px; }
  .sa-radio-panneau { grid-template-columns: 1fr; min-height: 0; }
  .sa-radio-panneau:nth-child(even) .sa-radio-visuel { order: 0; }
  .sa-radio-visuel { max-width: 340px; width: 100%; margin: 0 auto; }
}
