.gerby-sticky-layout {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.gerby-menu {
    position: sticky;
    top: 100px;
    align-self: flex-start;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    min-width: 200px;
    background: #f9f9f9;
    padding: 10px;
    border-right: 1px solid #ccc;
    display: flex;
    flex-direction: column;
}

.gerby-menu a {
    display: block;
    margin-bottom: 10px;
    text-decoration: none;
    padding: 5px 8px;
    transition: all 0.3s ease;
}

.gerby-content {
    flex: 1;
}

.gerby-video-block {
    margin-bottom: 60px;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    padding-top: 30px;
    height: 0;
    overflow: hidden;
}

.video-container iframe,
.video-container img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-locked .video-placeholder {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: #000;
    overflow: hidden;
}

.video-locked .video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
    z-index: 1;
}

.video-locked .video-lock-msg {
    position: absolute;
    z-index: 2;
    color: white;
    text-align: center;
    font-size: 1rem;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    padding: 0.8rem 1rem;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 90%;
    font-weight: normal;
}

.video-lock-icon {
    font-size: 1.5rem;
    margin-bottom: 0.4rem;
}

@media (max-width: 768px) {
    .gerby-sticky-layout {
        flex-direction: column;
    }
    .gerby-menu {
        position: static;
        border: none;
        display: flex;
        overflow-x: auto;
        max-height: none;
    }
    .gerby-menu a {
        margin-right: 15px;
        white-space: nowrap;
    }
}

/* Correction du scroll vers les ancres */


/* Style plus agréable en mode portrait */
@media (orientation: portrait) {
  .gerby-menu a {
    border-radius: 20px;
    border: 1px solid #ccc;
    background: #eee;
    font-size: 14px;
    padding: 8px 12px;
  }
}


/* Uniformiser le style sur petit écran, quelle que soit l’orientation */
@media (max-width: 768px) {
  .gerby-sticky-layout {
    flex-direction: column;
    gap: 0;
  }

  .gerby-menu {
    position: static;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    border: none;
    background: #f1f1f1;
    padding: 10px;
    margin-bottom: 20px;
    gap: 10px;
  }

  .gerby-menu a {
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 20px;
    background: #eee;
    border: 1px solid #ccc;
    margin-bottom: 10px;
    color: #006666;
    text-decoration: none;
  }

  .gerby-content {
    padding: 0 10px;
  }

  .video-locked .video-lock-msg {
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
    bottom: 5px;
  }

  .video-locked .video-lock-icon {
    font-size: 1.2rem;
    display: block;
  }
}

/* Corriger le scroll vers ancre pour bien voir le contenu */


/* Forcer iframe et img à apparaître dans .video-container */
.video-container iframe,
.video-container img {
  position: absolute !important;
  top: 0; left: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  display: block;
}

/* Appliquer aussi le style du sticky menu en version desktop */
.gerby-menu a {
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 16px;
    padding: 8px 12px;
    border-radius: 20px;
    background: #eee;
    border: 1px solid #ccc;
    margin-bottom: 10px;
    color: #006666;
    text-decoration: none;
    transition: background 0.3s;
}
.gerby-menu a:hover {
    background: #d4f0f0;
}

/* 🎨 Style visuel amélioré pour les cartes vidéo du shortcode [sticky_video_mobile] */
.sticky-mobile-wrapper .gerby-video-block {
    background: #ffffff;
    border-radius: 16px; /* ⬅️ plus arrondi */
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08); /* ⬅️ ombre plus présente */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 0;
    min-height: 260px;
}

.sticky-mobile-wrapper .gerby-video-block:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
}

.sticky-mobile-wrapper .gerby-video-block h2 {
    font-size: 1rem;
    text-align: center;
    color: #006666;
    margin: 0;
    padding: 12px;
    background: #f7f7f7;
    font-weight: bold;
    border-bottom: 1px solid #e0e0e0;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}

.sticky-mobile-wrapper .video-container,
.sticky-mobile-wrapper .video-locked .video-placeholder {
    flex: 1;
    position: relative;
    padding-bottom: 56.25%;
    background: #000;
    overflow: hidden;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
}

/* Harmonise image/iframe */
.sticky-mobile-wrapper .video-container iframe,
.sticky-mobile-wrapper .video-container img,
.sticky-mobile-wrapper .video-locked .video-placeholder img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Pour "Aucun média disponible" */
.sticky-mobile-wrapper .gerby-video-block p {
    text-align: center;
    color: #999;
    font-size: 0.95rem;
    font-style: italic;
    margin: auto 0;
}

/* Conteneur vidéo/image ou zone noire de restriction */
.sticky-mobile-wrapper .video-container,
.sticky-mobile-wrapper .video-locked .video-placeholder {
    flex: 1;
    position: relative;
    padding-bottom: 56.25%;
    background: #000;
    overflow: hidden;
}

/* Zone de message verrouillée */
.sticky-mobile-wrapper .video-locked .video-lock-msg {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 0.6rem 1rem;
    border-radius: 5px;
    text-align: center;
    font-size: 0.95rem;
    z-index: 2;
    max-width: 90%;
    font-weight: normal;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sticky-mobile-wrapper .video-locked .video-lock-msg strong {
    font-weight: bold;
}

.sticky-mobile-wrapper .video-lock-icon {
    font-size: 1.4rem;
    display: block;
    margin-bottom: 5px;
}