.slider-container {
      position: relative;
      width: 100%;
      max-width: 767px;
      margin: 20px auto;
      overflow: hidden;
      border-radius: 10px;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
      touch-action: pan-y; /* Permet le défilement vertical de la page mais bloque le scroll horizontal natif */
    }

    /* Piste interne contenant les diapositives */
    .slider-track {
      display: flex;
      transition: transform 0.4s ease-in-out;
      width: 100%;
    }

    /* Diapositive individuelle */
    .slide {
      min-width: 100%;
      user-select: none; /* Empêche la sélection de l'image pendant le swipe */
    }

    .slide img {
      width: 100%;
      display: block;
      object-fit: cover;
      aspect-ratio: 16 / 9;
      pointer-events: none; /* Évite les bugs de glisser-déposer d'image sur ordinateur */
    }

    /* Boutons de navigation */
    .nav-btn {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      background-color: rgba(255, 255, 255, 0.8);
      border: none;
      padding: 12px 16px;
      cursor: pointer;
      font-size: 18px;
      font-weight: bold;
      border-radius: 50%;
      z-index: 10;
      transition: background-color 0.2s;
    }

    .nav-btn:hover {
      background-color: rgba(255, 255, 255, 1);
    }

    .prev-btn { left: 15px; }
    .next-btn { right: 15px; }

    /* Points de navigation (Dots) */
    .dots-container {
      position: absolute;
      bottom: 15px;
      left: 50%;
      transform: translateX(-50%);
      display: flex;
      gap: 10px;
      z-index: 10;
    }

    .dot {
      width: 12px;
      height: 12px;
      border-radius: 50%;
      background-color: rgba(255, 255, 255, 0.5);
      border: none;
      cursor: pointer;
      transition: background-color 0.3s, transform 0.3s;
    }

    .dot.active {
      background-color: #fff;
      transform: scale(1.2);
    }
/* Fund sections re-used from the existing Ocean Indien renderer. */
.ofim-native-extras { display: grid; gap: 22px; margin-top: 26px; min-width: 0; }
.ofim-native-extras > section { padding: 22px; margin: 0; }
.ofim-native-extras .ofim-fund-newsletter { padding: 22px; }
.ofim-native-extras .ofim-commerce-views { font-size: .9rem; color: #555; }
.ofim-native-extras .ofim-fund-section h2 { font-size: clamp(1.3rem, 2vw, 1.8rem); margin-bottom: 12px; }
.detail-hero .ofim-photo-main { width: 100%; height: auto; object-fit: cover; }
.ofim-photo-unavailable { display: grid; place-items: center; min-height: 250px; background: #f3f3f3; color: #555; border-radius: 10px; }
@media (max-width: 767px) { .ofim-native-extras > section { padding: 16px; } }

/* OFIM 2.6: one cohesive image gallery at top of the native fund details. */
.ofim-detail-gallery { margin-bottom: 20px; min-width: 0; }
.ofim-detail-gallery__viewport { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 13px; background: #f3f5f7; }
.ofim-detail-gallery__slide { position: absolute; inset: 0; margin: 0; display: block; }
.ofim-detail-gallery__slide[hidden] { display: none !important; }
.ofim-detail-gallery__slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ofim-detail-gallery__prev, .ofim-detail-gallery__next { position: absolute; top: 50%; transform: translateY(-50%); border: 0; width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.94); color: #1a1a1a; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.18); z-index: 2; }
.ofim-detail-gallery__prev { left: 14px; }.ofim-detail-gallery__next { right: 14px; }
.ofim-detail-gallery__counter { position: absolute; bottom: 14px; right: 14px; padding: 4px 11px; border-radius: 20px; color: white; background: rgba(0,0,0,.7); font-size: 13px; }
.ofim-detail-gallery__thumbs { display: flex; gap: 9px; padding: 12px 1px; overflow-x: auto; scroll-snap-type: x proximity; }
.ofim-detail-gallery__thumbs button { flex: 0 0 95px; width: 95px; height: 66px; border: 2px solid transparent; border-radius: 8px; background: #f5f5f5; cursor: pointer; padding: 0; overflow: hidden; scroll-snap-align: start; }
.ofim-detail-gallery__thumbs button[aria-pressed="true"] { border-color: #d71920; }
.ofim-detail-gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ofim-native-extras .ofim-fund-section { border: 1px solid #e5e7eb; border-radius: 12px; background: #fff; padding: 22px; }
.ofim-native-extras .ofim-fund-calc-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.ofim-native-extras .ofim-fund-calc-grid label { display:flex; flex-direction:column; gap:6px; font-weight:600; }
.ofim-native-extras .ofim-fund-calc-grid input, .ofim-native-extras .ofim-fund-calc-grid select { width:100%; min-height:42px; padding:8px; border:1px solid #cbd5e1; border-radius:8px; }
.ofim-native-extras .ofim-calc-result { font-weight:700; color:#ac1118; font-size:1.2rem; }
.ofim-native-extras .ofim-commerce-share a { display:inline-flex; gap:6px; align-items:center; padding:10px 14px; border-radius:8px; border:1px solid #d0d5dd; margin:4px 8px 4px 0; }
.ofim-native-extras .ofim-fund-tools { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.ofim-native-extras .ofim-fund-tools>div { display:flex; flex-direction:column; gap:8px; border:1px solid #e2e8f0; padding:14px; border-radius:10px; background:#f8fafc; }
.ofim-native-extras .ofim-fund-tools span { font-weight:800; font-size:1.15rem; }
.ofim-native-extras .ofim-fund-tool-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:16px; }
.ofim-native-extras .ofim-fund-tool-actions button { cursor:pointer; border:1px solid #d71920; border-radius:8px; color:#a30f16; background:white; padding:9px 12px; }
.ofim-native-extras .ofim-fund-mini-forms form { padding:16px; border-radius:10px; background:#f8fafc; margin-top:12px; }
.ofim-native-extras .ofim-fund-mini-forms form[hidden] { display:none !important; }
.ofim-native-extras .ofim-fund-mini-forms label { display:block; margin:8px 0; }
.ofim-native-extras .ofim-fund-mini-forms input, .ofim-native-extras .ofim-fund-mini-forms select { width:100%; padding:8px; border:1px solid #cbd5e1; border-radius:7px; }
.ofim-native-extras .ofim-fund-mini-forms button { background:#d71920; color:white; border:0; padding:10px 14px; border-radius:8px; cursor:pointer; }
@media(max-width:720px){.ofim-native-extras .ofim-fund-calc-grid{grid-template-columns:1fr}.ofim-native-extras .ofim-fund-tools{grid-template-columns:1fr}.ofim-detail-gallery__thumbs button{flex-basis:75px;width:75px;height:55px}}

.ofim-native-extras .ofim-commerce-share button { display:inline-flex; align-items:center; padding:10px 14px; border:1px solid #d0d5dd; background:#fff; cursor:pointer; border-radius:8px; }
.ofim-native-extras .ofim-fund-mini-forms input[type="checkbox"] { width:auto; }

/* v2.8: one large featured image, thumbnail strip underneath. */
.ofim-detail-gallery__viewport { position: relative; display: block; margin: 0; aspect-ratio: 16/9; background: #eff1f4; overflow: hidden; }
.ofim-detail-gallery__main { display: block !important; width: 100% !important; height: 100% !important; max-width: none; object-fit: cover; }
.ofim-detail-gallery__thumbs { display: flex; flex-wrap: nowrap; }
.ofim-detail-gallery__thumbs button { display: block; }

/* OFIM v2.9: arrow-only gallery, no thumbnail strip. */
.ofim-detail-gallery__viewport { width:100%; padding:0; }
.ofim-detail-gallery__viewport:focus-visible { outline:3px solid #d71920; outline-offset:3px; }
.ofim-detail-gallery__prev, .ofim-detail-gallery__next { width:48px; height:48px; font-size:25px; display:grid; place-items:center; }
.ofim-detail-gallery__prev[hidden], .ofim-detail-gallery__next[hidden], .ofim-detail-gallery__counter[hidden] { display:none !important; }
@media (max-width:600px) {
  .ofim-detail-gallery__prev, .ofim-detail-gallery__next { width:38px; height:38px; font-size:21px; }
  .ofim-detail-gallery__prev { left:8px; }
  .ofim-detail-gallery__next { right:8px; }
}
