/* =========================================================
   VARIABLES
========================================================= */
:root {
  --rose-poudre: #fce4ec;
  --vieux-rose: #ad4576;
  --primary: #ad4576;
  --fond-vieux-rose: #fff0f5;
  --rose-soutenu: #f8bbd0;
  --fuchsia: #c2185b;
  --gris-anthracite: #2c2c2c;
  --gris-moyen: #5c5c5c;
  --bordure-rose: #e7c6d2;
  --fond-site: #fdf7f9;
  --fond-bloc: #fff8fb;

  --text: #212529;
  --muted: #6c757d;
  --border: #e9ecef;

  --fs-h1: clamp(28px, 2.2vw + 14px, 2.5rem);
  --fs-h2: clamp(22px, 1.6vw + 12px, 2rem);
  --fs-h3: clamp(18px, 1vw + 10px, 1.5rem);
  --fs-h4: clamp(16px, 0.8vw + 8px, 1.2rem);
  --lh-tight: 1.2;
}

/* =========================================================
   FONTS
========================================================= */
/* Poppins (défaut) */
@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins/poppins.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins/poppins-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins/poppins-bold.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins/poppins-bolditalic.woff2") format("woff2");
  font-weight: 800;
  font-style: italic;
  font-display: swap;
}

/* Luciole */
@font-face {
  font-family: "Luciole";
  src: url("../fonts/luciole/Luciole-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Luciole";
  src: url("../fonts/luciole/Luciole-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Luciole";
  src: url("../fonts/luciole/Luciole-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Luciole";
  src: url("../fonts/luciole/Luciole-BoldItalic.woff2") format("woff2");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

/* Atkinson Hyperlegible (dys) */
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("../fonts/atkinson/atkinson-hyperlegible.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("../fonts/atkinson/atkinson-hyperlegible-italic.woff2")
    format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("../fonts/atkinson/atkinson-hyperlegible-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("../fonts/atkinson/atkinson-hyperlegible-boldItalic.woff2")
    format("woff2");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

/* =========================================================
   RESET & BASE
========================================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  line-height: 1.6;
  background: var(--fond-site);
  color: var(--gris-anthracite);
  overflow-x: hidden;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
.container {
  /*width: 90%;*/
  max-width: 1140px;
  margin: 0 auto;
}

h1,
h2,
h3,
.carousel-caption h5 {
  font-weight: 700;
}
h4,
h5,
.btn,
strong {
  font-weight: 700;
}

h1 {
  font-size: var(--fs-h1);
  line-height: var(--lh-tight);
}
h2 {
  font-size: var(--fs-h2);
  line-height: var(--lh-tight);
}
h3 {
  font-size: var(--fs-h3);
  line-height: var(--lh-tight);
}
h4 {
  font-size: var(--fs-h4);
  line-height: var(--lh-tight);
}

.page-content h1,
.page-content h2,
.page-content h3,
.page-content h4,
.block h1,
.block h2,
.block h3,
.block h4 {
  margin-bottom: 0.6rem;
}

@media (max-width: 576.98px) {
  :root {
    --fs-h1: clamp(24px, 5.4vw, 2rem);
    --fs-h2: clamp(20px, 4.6vw, 1.5rem);
    --fs-h3: clamp(17px, 4vw, 1.2rem);
  }
}

/* =========================================================
   LIENS / SÉLECTION / UTILITAIRES
========================================================= */
a {
  color: var(--vieux-rose);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
a:not(.btn):not([class*="btn"]):not(.dropdown-item):not(.sp-link) {
  color: var(--vieux-rose);
  text-decoration-color: color-mix(in srgb, var(--vieux-rose), #000 25%);
}
a:not(.btn):not([class*="btn"]):not(.dropdown-item):hover,
a:not(.btn):not([class*="btn"]):not(.dropdown-item):focus {
  color: color-mix(in srgb, var(--vieux-rose), #000 12%);
  text-decoration-thickness: 2px;
}
a:not(.btn):not([class*="btn"]):not(.dropdown-item):visited {
  color: color-mix(in srgb, var(--vieux-rose), #000 10%);
}
::selection {
  color: var(--fond-site);
  background: var(--vieux-rose);
}

.object-fit-cover {
  object-fit: cover;
}
.hover-shadow:hover {
  transform: translateY(-5px);
  transition: 0.3s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15) !important;
}

/* =========================================================
   BADGE TOP
========================================================= */
#esm-badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1045;
  padding: 5px 20px;
  border-radius: 0 0 15px 15px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--fond-site);
  background: var(--vieux-rose);
  text-decoration: none;
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.08);
  backdrop-filter: saturate(180%) blur(8px);
}
#esm-badge:hover {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12), 0 3px 8px rgba(0, 0, 0, 0.08);
}
#esm-badge:focus-visible {
  outline: 2px solid #6b1f3a66;
  outline-offset: 2px;
}
@media (max-width: 768px) {
  #esm-badge {
    left: auto;
    right: 10px;
    transform: none;
    padding: 6px 10px;
    font-size: 0.8rem;
  }
}

/* =========================================================
   NAVBAR
========================================================= */
.navbar {
  padding: 20px 0;
  background: var(--fond-vieux-rose);
}
.navbar .container {
  width: 100%;
  max-width: 1600px;
  padding: 0 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.navbar-brand {
  display: flex;
  align-items: center;
}
.navbar-logo {
  max-height: 150px;
  max-width: 345px;
  height: auto;
  width: auto;
  object-fit: contain;
}
.navbar-collapse {
  justify-content: center;
  margin-top: 10px;
  padding: 0 10px;
}
.navbar-nav {
  flex-direction: row;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}
.navbar-nav .nav-link {
  font-weight: 500;
  font-size: 1rem;
  color: var(--vieux-rose);
  padding: 10px 16px;
  transition: 0.3s;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--fuchsia);
}

/* Dropdown */
.dropdown-menu {
  background: #fff5f8;
  border: 1px solid var(--bordure-rose);
  border-radius: 10px;
  padding: 10px 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  min-width: 220px;
  transition: 0.3s ease;
}
.dropdown-menu .dropdown-item {
  padding: 10px 20px;
  color: var(--vieux-rose);
  transition: 0.2s;
  white-space: normal;
}
.dropdown-menu .dropdown-item:hover {
  background: var(--fuchsia);
  color: #fff;
}

/* Toggler */
.navbar .navbar-toggler {
  width: 46px;
  height: 46px;
  padding: 0;
  border-radius: 0.375rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.navbar .navbar-toggler--search .icon {
  width: 22px;
  height: 22px;
  display: block;
}

/* Desktop : hover pour ouvrir */
@media (min-width: 992px) {
  .navbar .dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
  }
  .navbar-nav .dropdown-menu {
    margin-top: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
  .navbar-nav .dropdown:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

/* Mobile ≤576px */
@media (max-width: 576px) {
  .navbar {
    padding: 12px 0;
  }
  .navbar .container {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px;
  }
  .navbar-brand {
    margin-right: auto;
  }
  .navbar-logo {
    max-width: 225px;
    height: auto;
  }
  .navbar .navbar-toggler,
  .navbar .navbar-toggler--search {
    position: static;
    top: auto;
    right: auto;
  }
  .navbar-collapse {
    order: 3;
    width: 100%;
    flex: 1 0 100%;
    align-items: center;
  }
}

/* Navbar autres points */
@media (max-width: 992px) {
  .dropdown-menu {
    position: static !important;
    float: none;
    width: 100%;
    margin-top: 0;
    box-shadow: none;
    border: none;
    padding-left: 1rem;
  }
  .navbar-nav {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
  .navbar-nav .nav-item {
    width: 100%;
  }
  .navbar-nav .nav-link {
    width: 100%;
    text-align: left;
    padding: 12px 20px;
  }
  .navbar-collapse {
    align-items: center;
  }
}

/* Recherche */
.navbar .navbar-toggler--search {
  right: auto;
}
.search-input {
  min-width: 220px;
}
@media (max-width: 992px) {
  #navbarSearch .d-flex {
    width: 100%;
  }
  #navbarSearch .search-input {
    flex: 1 1 auto;
    min-width: 0;
  }
}

/* =========================================================
   MAIN
========================================================= */
main {
  padding: 40px 0;
  background: #fff;
}
main h1,
main h2 {
  color: var(--vieux-rose);
  margin-bottom: 20px;
}
main p {
  margin-bottom: 20px;
}
main img {
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  margin: 0 auto;
}

/* =========================================================
   GRID SIMPLE
========================================================= */
.row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.col-md-4,
.col-md-6,
.col-md-8 {
  flex: 0 0 100%;
}
@media (min-width: 768px) {
  .col-md-4 {
    flex: 0 0 32%;
  }
  .col-md-6 {
    flex: 0 0 48%;
  }
  .col-md-8 {
    flex: 0 0 65%;
  }
}

/* =========================================================
   FOOTER
========================================================= */
footer {
  background: var(--fond-vieux-rose);
  padding: 40px 0 20px;
  font-size: 0.9rem;
  color: var(--gris-moyen);
}
footer .content-site-footer {
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: center;
}
footer .etab-container img {
  max-height: 80px;
  margin-bottom: 10px;
}
footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
footer li {
  margin-bottom: 6px;
}
footer a {
  color: var(--vieux-rose);
}
footer a:hover {
  color: var(--fuchsia);
}
footer .text-muted {
  margin-top: 20px;
  font-size: 0.85rem;
}

/* =========================================================
   HERO & CARDS
========================================================= */
.hero-section {
  position: relative;
  color: #fff;
}
.hero-section .overlay {
  background: rgba(0, 0, 0, 0.5);
}
.card .card-body i {
  display: block;
  margin-bottom: 1rem;
}
.card-img-top {
  height: 200px;
  width: 100%;
  object-fit: cover;
  object-position: center;
}

/* =========================================================
   CAROUSEL (cadre générique)
========================================================= */
.carousel-container {
  display: flex;
  justify-content: center;
  margin-bottom: 3rem;
}
.carousel-wrapper {
  width: 80%;
  max-width: 1800px;
  position: relative;
  aspect-ratio: 2.6;
  overflow: hidden;
  border-radius: 12px;
  min-height: 500px;
}
.carousel-wrapper .carousel,
.carousel-wrapper .carousel-inner,
.carousel-wrapper .carousel-item {
  height: 100%;
}
.carousel-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-caption {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(6px);
  border-radius: 1rem;
  padding: 1.5rem 2rem;
  bottom: 10%;
  left: 10%;
  right: auto;
  width: fit-content;
  max-width: 70%;
  text-align: left;
  animation: fadeUp 1s ease-out;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}
.carousel-caption h5 {
  font-size: 2rem;
  color: #fff;
  margin-bottom: 0.5rem;
}
.carousel-caption p {
  font-weight: 400;
  font-size: 1.1rem;
  color: #f1f1f1;
  margin-bottom: 0;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* =========================================================
   BLOCS (image / image+texte / vidéo / colonnes / accordéon)
========================================================= */
.block-image {
  text-align: center;
}
.block-image img {
  max-width: 100%;
  height: auto;
}
.block-image figcaption {
  color: #6c757d;
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

.block-image-text {
  display: grid;
  gap: 1rem;
  align-items: start;
}
.block-image-text.align-left {
  grid-template-columns: 1fr 2fr;
}
.block-image-text.align-right {
  grid-template-columns: 2fr 1fr;
}
.block-image-text .bi-img img {
  max-width: 100%;
  height: auto;
  border-radius: 0.25rem;
}
@media (max-width: 768px) {
  .block-image-text.align-left,
  .block-image-text.align-right {
    grid-template-columns: 1fr;
  }
}

.block-video .video-16x9 {
  position: relative;
  padding-top: 56.25%;
}
.block-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.block-columns {
  display: grid;
  gap: 1rem;
}
.block-columns.cols-2 {
  grid-template-columns: 1fr 1fr;
}
.block-columns.cols-3 {
  grid-template-columns: 1fr 1fr 1fr;
}
.block-columns.cols-4 {
  grid-template-columns: 1fr 1fr 1fr 1fr;
}
@media (max-width: 768px) {
  .block-columns {
    grid-template-columns: 1fr;
  }
}

.block-accordion details {
  border: 1px solid #e9ecef;
  border-radius: 0.375rem;
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.5rem;
}
.block-accordion summary {
  cursor: pointer;
  font-weight: 600;
}
.block-accordion .acc-body {
  margin-top: 0.5rem;
}

/* Couleurs héritées à l’intérieur des blocs */
.block {
  color: var(--bl-color, inherit);
}
.block a {
  color: var(--bl-link, inherit);
}
.block a:hover {
  filter: brightness(0.92);
}
.blk.sub-blk {
  color: var(--bl-color, inherit);
}
.blk.sub-blk :is(h1, h2, h3, h4, h5, h6, p, li, small, figcaption) {
  color: inherit;
}

/* >>> Ajout : les titres à l’intérieur d’un bloc respectent la couleur du bloc */
.block :is(h1, h2, h3, h4, h5, h6) {
  color: var(--bl-color, inherit);
}

/* =========================================================
   RECHERCHE
========================================================= */
mark.search-hit {
  background: #fff3bf;
  padding: 0 0.15em;
  border-radius: 0.2rem;
}
.list-group-item p {
  line-height: 1.5;
}

/* =========================================================
   BOUTON RETOUR HAUT
========================================================= */
.back-to-top {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0));
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--fuchsia);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(13, 110, 253, 0.25);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 1100;
}
.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.back-to-top:hover {
  filter: brightness(0.95);
}
.back-to-top:focus {
  outline: 2px solid rgba(13, 110, 253, 0.35);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  .back-to-top {
    transition: none;
  }
}
body[class*="sidebar-mini"] .back-to-top {
  bottom: 96px;
}

/* =========================================================
   LISTES NAV (fallback mobile)
========================================================= */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    gap: 0;
  }
  nav li a {
    padding: 12px;
  }
  nav ul ul {
    position: static;
    border: none;
    background: transparent;
    padding-left: 20px;
  }
}

/* =========================================================
   SLIDER (overlay desktop + panneau externe mobile)
========================================================= */
/* Sécurité image */
.bl-slider .carousel-item img {
  display: block;
  width: 100%;
  height: clamp(220px, 48vw, 520px);
  object-fit: cover;
}

/* Overlay desktop */
.bl-slide-layer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: clamp(12px, 2vw, 28px);
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0) 30%,
    rgba(0, 0, 0, 0.25) 100%
  );
  pointer-events: none;
}
.bl-slide-panel {
  max-width: min(560px, 90vw);
  background: rgba(20, 22, 26, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 14px;
  padding: clamp(14px, 2.2vw, 22px) clamp(16px, 2.5vw, 26px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  color: #fff;
  pointer-events: auto;
}
.bl-slide-title {
  font-weight: 700;
  font-size: clamp(22px, 2.4vw, 38px);
  line-height: 1.2;
  margin: 0 0 0.25em;
  letter-spacing: 0.2px;
}
.bl-slide-text {
  font-size: clamp(14px, 1.1vw, 17px);
  opacity: 0.95;
}
.bl-slide-actions {
  margin-top: 0.75rem;
}
.bl-slide-actions .btn {
  --bs-btn-padding-y: 0.5rem;
  --bs-btn-padding-x: 0.9rem;
  --bs-btn-border-radius: 0.6rem;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.16);
}

/* Indicateurs déplacés (sous le slider) */
.bl-slider .bl-outside-indicators {
  position: static !important;
  bottom: auto;
  left: auto;
  right: auto;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.6rem;
  padding: 0;
}
.bl-slider .bl-outside-indicators [data-bs-target] {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 9999px;
  opacity: 0.45;
  border: 0;
  background: #b8c1cc;
}
.bl-slider .bl-outside-indicators .active {
  opacity: 1;
  background: #c31552;
  width: 26px;
  border-radius: 9999px;
}

/* Panneau mobile externe */
.bl-slider .bl-mobile-panel {
  display: none;
}
@media (max-width: 575.98px) {
  .bl-slide-layer {
    display: none !important;
  }
  .bl-slider .bl-mobile-panel {
    display: block;
    position: relative;
    width: min(94%, 560px);
    margin: -12vw auto 0;
    padding: clamp(12px, 1.6vw, 18px) clamp(14px, 1.8vw, 22px);
    border-radius: 14px;
    background: rgb(34 0 17 / 42%);
    color: #fff;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25);
    z-index: 2;
  }
  .bl-slider .bl-mobile-title {
    margin: 0 0 4px;
    font-weight: 800;
    line-height: 1.18;
    font-size: clamp(20px, 1.6vw + 0.2rem, 1.6rem);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .bl-slider .bl-mobile-text {
    margin: 0 0 10px;
    line-height: 1.35;
    font-size: clamp(13px, 0.9vw + 0.15rem, 1rem);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    opacity: 0.95;
  }
  .bl-slider .bl-mobile-btn {
    border-radius: 9999px;
    font-weight: 200;
    margin-top: 0.7rem;
    padding: 0.15rem 1rem 0;
    background: var(--primary);
    border: 1px solid #ad4576;
    font-size: 0.95rem;
    color: #fff;
    text-decoration: none;
    float: right;
  }
  .bl-slider .bl-mobile-btn:hover,
  .bl-slider .bl-mobile-btn:focus {
    filter: brightness(1.05);
    color: #fff;
  }
}

/* =========================================================
   POPUP (UI améliorée)
========================================================= */
/* Overlay */
.site-pop-overlay {
  position: fixed;
  inset: 0;
  background: rgba(18, 19, 24, 0.55);
  backdrop-filter: blur(2px);
  display: grid;
  place-items: center;
  padding: clamp(6px, 1.8vw, 14px);
  z-index: 1090;
}
body.site-pop-open {
  overflow: hidden;
}

/* Cadre */
.site-pop {
  width: min(92vw, 660px);
  max-height: 90vh;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.24);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: visible;
}

/* Titre (badge au-dessus) */
.site-pop .sp-title {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  text-align: center;
  font-weight: 300;
  line-height: 1.25;
  font-size: clamp(18px, 1.2vw + 0.6rem, 1.6rem);
  color: #2b2b2b;
  letter-spacing: 0.2px;
}

/* Corps + image */
.site-pop .sp-body {
  padding: clamp(8px, 1.4vw, 12px);
  overflow: visible;
}
.site-pop .sp-media {
  margin: 0 auto clamp(8px, 1vw, 12px);
}
.site-pop .sp-media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  max-height: 84vh;
  object-fit: contain;
}

/* Croix interne (mobile) */
.site-pop .sp-close {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 38px;
  height: 38px;
  line-height: 26px;
  border-radius: 9999px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  color: #444;
  font-size: 2rem;
  font-weight: 300;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}
.site-pop .sp-close:hover {
  background: #f7f7f7;
}

/* CTA à droite + croix externe (desktop) */
.site-pop .sp-aside {
  position: absolute;
  top: 40px;
  right: -105px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  pointer-events: auto;
  flex-direction: column-reverse;
}
.site-pop .sp-link-outer {
  border-radius: 9999px;
  font-weight: 200;
  padding: 0.45rem 0.9rem 0.4rem;
  background: var(--primary);
  border: 1px solid #ad4576;
  color: #fff !important;
  font-size: 0.9rem;
  text-decoration: none;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.18);
}
.site-pop .sp-link-outer:hover {
  filter: brightness(1.05);
  color: #fff;
}
.site-pop .sp-close-outer {
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  color: #444;
  font-size: 1.5rem;
  line-height: 30px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.18);
}

/* CTA interne (mobile) */
.site-pop .sp-actions {
  position: absolute;
  right: -12px;
  top: 34px;
  margin: 0;
  display: flex;
  align-items: flex-end;
  z-index: 1;
}
.site-pop .sp-link {
  border-radius: 9999px;
  font-weight: 200;
  padding: 0.5rem 1.1rem 0.45rem;
  background: var(--primary);
  border: 1px solid #ad4576;
  color: #fff;
  font-size: 0.95rem;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}
.site-pop .sp-link:hover,
.site-pop .sp-link:focus {
  filter: brightness(1.05);
  color: #fff;
}

/* Mobile */
@media (max-width: 575.98px) {
  .site-pop {
    width: min(94vw, 520px);
  }
  .site-pop .sp-title {
    top: -26px;
    font-size: clamp(17px, 4.2vw, 1.3rem);
  }
  .site-pop .sp-actions {
    position: static;
    right: auto;
    top: auto;
    transform: none;
    justify-content: center;
    margin-top: 0.4rem;
  }
  .site-pop .sp-close {
    top: 8px;
    right: 8px;
    box-shadow: none;
  }
  .site-pop .sp-media img {
    max-height: 70vh;
  }
  .site-pop .sp-aside {
    display: none !important;
  }
}
