/*
Theme Name: Hello elementor child
Template: hello-elementor
*/
html, body {
  min-height: 100vh;
}


button,
[type=submit],
[type=button] {
  display: inline-block;
  font-weight: 400;
  color: #EA9D82;
  text-align: center;
  white-space: nowrap;
  user-select: none;
  background-color: transparent;
  border: 1px solid #EA9D82;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  transition: all 0.3s;
}
button:hover, button:focus,
[type=submit]:hover,
[type=submit]:focus,
[type=button]:hover,
[type=button]:focus {
  color: #ffffff;
  background-color: #EA9D82;
  text-decoration: none;
}
a {
  background-color: transparent;
  text-decoration: none;
  color: #EA9D82;
}
/* 🎨 Écran de chargement */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: black; /* Fond blanc */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    font-size: 18px;
    font-weight: bold;
    color: white; /* Rouge Joylink */
    z-index: 9999;
}


#joylink-activation-page { 
  min-height: 100vh;
  min-height: calc(var(--vh, 1vh) * 100);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

}


/* 🌀 Effet pulsatile du texte */
.loading-text, .loading-logo {
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0% { transform: scale(1); opacity: 0.8; }
    30% { transform: scale(1.2); opacity: 1; }
    60% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1); opacity: 0.8; }
}

/* 🖼️ Logo */
.loading-logo {
    width: 80px; /* Ajuste la taille selon ton logo */
    height: auto;
    margin-bottom: 15px;
}




.tp-mobile-menu .tp-mm-li i,
.tp-mm-c-wrapper i,
.tp-mm-et-wrapper .tp-mm-et-li i {
    color: #ffffff !important; /* Change la couleur des icônes en blanc */
}


/* Empêchez les débordements */
body, html {
    overflow-x: hidden;
}
@media (max-width: 768px) {
    .user-images-gallery {
        max-width: 100%; /* Permet au carousel de s'étendre sur toute la largeur */
    }

    .user-images-gallery .swiper-slide {
        width: 100%; /* Une seule image visible par slide sur mobile */
    }
}




.popup-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 99999;
  display: none; /* on garde le contrôle via JS */
  display: flex;
  align-items: center;
  justify-content: center;
}

.popup-content {
  background: white;
  padding: 20px;
  border-radius: 10px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  position: relative;
}



#canvasElement {
    cursor: pointer;
}


.no-media-message{
	text-align:center;
}



/* Ultimate Member - Style des boutons */
.um-button, 
.um-button:hover, 
.um-button:focus, 
.um-button:active {
    background-color: black !important; /* Remplacez #ff5722 par votre couleur */
    border-color: black !important;   /* Remplacez #ff5722 par votre couleur */
}

.um-button, 
.um-button:hover, 
.um-button:focus, 
.um-button:active {
    color: white !important; /* Remplacez #ffffff par votre couleur */
}

.um-button {
    border-radius: 5px !important; /* Ajustez selon vos préférences */
}
.um-account-meta{display:none !important;
}

/* Changer la couleur des liens (titres) dans le menu de profil */
body .um-account-nav a {
    color: #000000 !important; /* Change la couleur du texte en noir */
    text-decoration: none; /* Enlève le soulignement si présent */
}

/* Changer la couleur des icônes dans le menu de profil */
.um-account-nav i {
    color: #000000 !important; /* Change la couleur des icônes en noir */
}

/* Optionnel : Changer aussi les éléments <span> */
.um-account-nav span {
    color: #000000 !important; /* Change la couleur des spans en noir */
}

/* Optionnel : Ajuster l'apparence au survol */
.um-account-nav a:hover {
    color: #444444 !important; /* Couleur légèrement différente au survol */
}

.user-bijoux-list{
	font-size:14px;
}




/***********************************
 * MENU RADIAL - Début
 ***********************************/

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%; /* ✅ Barre pleine largeur */
  height: 70px;
  /*background: #fff;*/
  /*box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);*/
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0px 25px 0px;
  z-index: 999;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}

/* Boutons latéraux (centrés sur les côtés) */
.nav-btn {
  background: none;
  border: none;
  font-size: 13px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: black;
  flex: 1; /* ✅ Équilibre l'espace */
}
/* Style des icônes pour Profil et Ma Page */
.nav-btn i {
  font-size: 16px;  /* ✅ Taille de l'icône */
  color: black;     /* ✅ Couleur noire unie */
transition: color 0.3s ease; /* Transition douce */
}
/* ✅ Changement de couleur quand actif ou survolé */
.nav-btn.active i,
.nav-btn:focus i,
.nav-btn:hover i {
  color: #6c63ff; /* Couleur violette pour l'état actif */
}

.nav-btn span {
  font-size: 12px;
  color: black;
}
/* Pour le texte aussi si nécessaire */
.nav-btn.active span,
.nav-btn:focus span,
.nav-btn:hover span {
  color: #6c63ff;
}

/* Bouton central */
.central-btn {
  width: 70px;
  height: 70px;
  background: black;
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 32px;
  cursor: pointer;
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Position des boutons latéraux */
.left-btn {
  justify-content: center;
  align-items: center; /* Centré sur le côté gauche */
}

.right-btn {
  justify-content: center;
  align-items: center; /* Centré sur le côté droit */
}

/* Icônes noirs */
.nav-btn i, .radial-item i {
  color: black; /* ✅ Icônes unies noires */
  font-size: 24px;
}
✅ 
/* Effet clic (shrink) */
.central-btn:active {
  transform: translateX(-50%) scale(0.95);
}

/* Le "+" à l’intérieur du bouton */
.plus-icon {
  display: inline-block;
  transition: transform 0.3s ease;
}

/* Quand le bouton central a la classe .active => le plus tourne à 45° */
.central-btn.active .plus-icon {
  transform: rotate(45deg);
}




/* ✅ Active les interactions uniquement lorsque le menu est ouvert */
#radial-menu.active {
  pointer-events: none;  /* ❗ Important : pointer-events désactivé sur le conteneur */
  opacity: 1;
}

/* ✅ Affiche correctement les boutons lorsque le menu est actif */
#radial-menu.active .radial-item {
  pointer-events: auto;  /* Active les interactions sur les boutons */
  transform: scale(1);
  opacity: 1;
}




#radial-menu.active .radial-item {
  transform: scale(1);
  opacity: 1;
}

.radial-item,
#radial-menu {
  display: none !important;
  visibility: hidden !important;
}



/***********************************
 * MENU RADIAL - Fin
 ***********************************/


/* ============================
   JOYLINK MASONRY GRID
============================= */

.joylink-masonry-grid {
  display: block; /* important pour Masonry.js */
  margin: 0 auto;
  font-size: 0; /* évite les sauts de ligne fantômes */
  width: 100%;
}

.joylink-masonry-item {
  width: calc(50% - 8px);
  margin-bottom: 16px;
  box-sizing: border-box;
  display: inline-block;
  vertical-align: top;
  position: relative;
  border-radius: 16px; /* même arrondi que tes spectres audio */
    overflow: hidden; /* évite que les images/vidéos débordent du cadre */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15); /* même ombre que tes audios */
    background: #ffffff; /* (optionnel) couleur de fond neutre */
    transition: all 0.3s ease; /* transition douce au hover */
}

/* Cas où il n'y a qu'un seul média */
.joylink-masonry-grid.single-media {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start; /* ou center si tu veux verticalement aussi */
}



/* 🎯 Plusieurs médias ➔ 2 colonnes */
.joylink-masonry-grid.multi-media .joylink-masonry-item {
  width: calc(50% - 8px);
}

/* 🎯 Mobile : conserver 2 colonnes même sur petit écran */
@media (max-width: 768px) {
  .joylink-masonry-grid.multi-media .joylink-masonry-item {
    width: calc(50% - 8px);
  }
  .joylink-masonry-grid.single-media .joylink-masonry-item {
    width: 100%;
  }
}


/* Images et vidéos */
.joylink-masonry-item img,
.joylink-masonry-item video {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  border-radius: 0;
}


/* Vidéos non prêtes (affiche fond noir) */
.joylink-masonry-item video:not([data-ready="true"]) {
  min-height: 200px;
  background-color: #000;
}
/* ✅ Ajustement propre pour vidéo unique */
.joylink-masonry-grid.single-media .joylink-masonry-item video {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  max-height: calc(100vh - 140px); /* évite chevauchement sans créer de vide */
  margin-bottom: 0; /* ❌ enlève l'espace trop grand */
  position: relative;
  z-index: 1;
}


/* Lien sur la vidéo (important pour la lightbox) */
.joylink-masonry-item a .joylink-video-link {
  display: block;
  width: 100%;
  height: 100%;
}


/* audio card */
.audio-card-premium {
  background: #111;
  border-radius: 20px;
  color: #fff;
  padding: 18px;
  text-align: center;
  min-height: 280px;
  max-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.6);
  transition: transform 0.3s ease;
}

.audio-card-premium:hover {
  transform: translateY(-5px);
}

.audio-header {
  font-size: 13px;
  font-weight: bold;
  margin-bottom: 10px;
}

.waveform {
  width: 100%;
  height: 80px;
  margin: 15px 0;
}

.custom-play-btn {
    background: transparent;
    border: 2px solid white;
    border-radius: 50%; /* ➔ rend le bouton rond */
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.custom-play-btn i {
    font-size: 24px;
    color: white;
    transition: color 0.3s ease;
}

/* Lorsqu'on survole */
.custom-play-btn:hover {
    background: white;
}

.custom-play-btn:hover i {
    color: black;
}

/* Lorsqu'on clique sur Play ➔ changement manuel (ajout d'une classe "playing") */
.custom-play-btn.playing {
    background: white;
}

.custom-play-btn.playing i {
    color: black;
}

.audio-times {
    margin: 5px 0;
    font-size: 14px;
    color: white;
    display: flex;
    justify-content: center;
    gap: 5px;
    font-family: 'Poppins', sans-serif;
}



/* Placeholder pour chargement */
.joylink-masonry-item.placeholder {
  height: 180px;
  background: linear-gradient(100deg, #eee 30%, #ddd 50%, #eee 70%);
  background-size: 400% 100%;
  animation: loadingShimmer 1.2s infinite;
  border-radius: 10px;
  margin-bottom: 16px;
}

@keyframes loadingShimmer {
  0% { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

/* Bouton supprimer */
.delete-media-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(255, 0, 0, 0.8);
  color: white;
  border: none;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  display: none;
  z-index: 10;
}

/* Joylink – on cache le bouton de suppression sur les cartes de la grille */
.joylink-masonry-grid .delete-media-btn {
  display: none !important;
  pointer-events: none !important;
}

.joylink-masonry-item:hover .delete-media-btn {
  display: inline-block;
}




/* JOYLINK STORAGE */

.joylink-storage-wrapper {
  margin: 20px 0;
  width: 100%;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.joylink-storage-bar {
  height: 16px;
  background: #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.joylink-storage-bar .fill {
  height: 100%;
  width: 0%;
  background-color: #4caf50;
  transition: width 200ms ease, background-color 200ms ease;
}

.joylink-storage-bar .fill.is-green  { background:#2ecc71; } /* vert  */
.joylink-storage-bar .fill.is-orange { background:#f39c12; } /* orange */
.joylink-storage-bar .fill.is-red    { background:#e74c3c; } /* rouge */
.joylink-storage-bar .fill.is-error  { background:#bdc3c7; } /* gris si erreur */

.joylink-storage-info {
  text-align: center;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #333;
}



#video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

#video-modal-content {
    position: relative;
    text-align: center;
}

#video-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    font-size: 30px;
    color: white;
    cursor: pointer;
}


.firstname {
	Font-size:15px;
}



.joylink-button {
  background-color: black;
  color: white;
  font-size: 16px;
  font-weight: bold;
  padding: 14px 30px;
  border: none;
  border-radius: 40px;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.2);
  transition: all 0.2s ease;
  cursor: pointer;
  width: 80%;
  max-width: 250px;
}

.joylink-button:hover {
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.3);
  transform: scale(1.03);
}

/* ALERTE M4A */

.jl-audio-notice{
  display:flex; gap:.5rem; align-items:center;
  margin:.5rem 0 0; padding:.6rem .8rem;
  background:#fff6f1; border:1px solid #ffd6c8; border-radius:8px;
  font-size:.92rem; color:#5b341f;
}
.jl-audio-notice .jl-i{
  width:1.1rem; height:1.1rem; line-height:1.1rem;
  display:inline-block; text-align:center; border-radius:50%;
  border:1px solid currentColor; font-weight:700; font-size:.85rem;
}


/* Icône crayon */
.rename-bijou-icon {
    border: none;
    background: transparent;
    padding: 4px;
    margin-left: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.rename-bijou-svg {
    width: 18px;
    height: 18px;
    fill: #222; /* tu peux adapter à ta charte */
}

.rename-bijou-icon:hover {
    background: rgba(0,0,0,0.04);
    transform: translateY(-1px);
}

/* Modal overlay */
.jl-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Carte centrale */
.jl-modal {
    background: #fff;
    border-radius: 20px;
    padding: 24px 22px 20px;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 18px 45px rgba(0,0,0,0.18);
    position: relative;
    font-family: inherit;
}

.jl-modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    border: none;
    background: transparent;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.jl-modal-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 6px;
}

.jl-modal-subtitle {
    font-size: 14px;
    color: #666;
    margin: 0 0 16px;
}

.jl-modal-input {
    width: 100%;
    border-radius: 999px;
    border: 1px solid #ddd;
    padding: 10px 14px;
    font-size: 14px;
    outline: none;
}

.jl-modal-input:focus {
    border-color: #ea9d82; /* couleur Joylink */
    box-shadow: 0 0 0 2px rgba(234,157,130,0.2);
}

.jl-modal-helper {
    font-size: 12px;
    color: #999;
    margin-top: 6px;
}

.jl-modal-error {
    margin-top: 10px;
    font-size: 13px;
    color: #c0392b;
}

/* Boutons */
.jl-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 18px;
}

.jl-btn {
    border-radius: 999px;
    padding: 8px 18px;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
}

.jl-btn-primary {
    background: #ea9d82;
    color: #fff;
    box-shadow: 0 8px 18px rgba(234,157,130,0.4);
}

.jl-btn-primary:hover {
    background: #e28765;
}

.jl-btn-ghost {
    background: #f5f5f5;
    color: #333;
}

.jl-btn-ghost:hover {
    background: #ebebeb;
}



.user-bijou-item.is-current-bijou .bijou-main-line {
    background: #fff7f3;
    border-radius: 999px;
    background-color: #fff6f1;
     padding-inline: 8px;
}

/* == Joylink – Liste des bijoux / boutons actions == */
.user-bijou-item .bijou-main-line {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.user-bijou-item .delete-bijou {
    border: none;
    background: none;
    padding: 0;
    margin-left: 6px;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.user-bijou-item .delete-bijou-svg {
    width: 16px;
    height: 16px;
    display: inline-block;
    fill: #444;          /* couleur par défaut */
    vertical-align: middle;
}

.user-bijou-item .delete-bijou:hover .delete-bijou-svg {
    fill: #c0392b;       /* rouge au survol */
}
.user-bijoux-list {
  list-style: disc;
  padding-left: 1.5rem;
}

.user-bijou-item {
  margin: 0.2rem 0;
}

.user-bijou-item.is-current-bijou .bijou-main-line {
  font-weight: 600;
}

.user-bijou-item.is-current-bijou .bijou-label {
  text-decoration: underline;
}

/* =========================================================
   JOYLINK — Filtres médias
========================================================= */

.joylink-media-filters {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    margin-bottom: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
}

.joylink-media-filters::-webkit-scrollbar {
    display: none;
}

.joylink-filter-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 999px;
    border: 1px solid #e2e2e2;
    padding: 6px 14px;
    background: #fff;
    color: #111;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.18s ease-out;
    box-shadow: 0 0 0 transparent;
}

.joylink-filter-icon {
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.joylink-filter-btn:hover:not(.is-active) {
    border-color: #111;
    color: #111;
}

.joylink-filter-btn.is-active {
    background: #000;
    color: #fff;
    border-color: #000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.18);
    font-weight: 600;
}

.joylink-filter-btn.is-active .joylink-filter-icon {
    color: #fff;
}

.joylink-media-modal.is-open {
  display: flex;
}



.joylink-media-modal-dialog {
  position: relative;
  background: #fff;
  border-radius: 18px;
  max-width: 960px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 2;
}



.joylink-media-modal-media img,
.joylink-media-modal-media video {
  max-width: 100%;
  max-height: 60vh;
  border-radius: 14px;
}





.joylink-modal-audio p {
  margin: 0 0 10px;
  font-size: 0.95rem;
}

.joylink-modal-audio-player {
  width: 100%;
}





/* ======================
   JOYLINK MEDIA MODAL
====================== */

.jlm-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 999999;
  display: none;
  justify-content: center;
  align-items: center;
}

.jlm-modal.is-open {
  display: flex;
}

.jlm-overlay {
  position: absolute;
  inset: 0;
}

.jlm-dialog {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

/* HEADER */
.jlm-header {
  display: flex;
  justify-content: space-between;
  padding: 18px;
  z-index: 10;
}

.jlm-back-btn,
.jlm-options-btn {
  background: rgba(255,255,255,0.15);
  border: none;
  padding: 10px 12px;
  border-radius: 12px;
  color: white;
  font-size: 20px;
}

.jlm-media-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
}

#jlm-media img,
#jlm-media video {
  max-width: 100%;
  max-height: 70vh;
  border-radius: 12px;
}

/* CAPTION */

.jlm-caption {
  flex: 1;
  margin: 0;
  font-size: 16px;
  color: #222;
  line-height: 1.4;
}

.jlm-caption-edit-btn {
  border: none;
  background: transparent;
  font-size: 18px;
  color: #555;
}

/* ======================
   BOTTOM SHEET
====================== */

.jlm-sheet {
  position: absolute;
  bottom: -300px;
  left: 0; right: 0;
  background: #fff;
  padding: 20px;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -6px 20px rgba(0,0,0,0.25);
  transition: bottom 0.25s ease;
}

.jlm-sheet.open {
  bottom: 0;
}

.jlm-sheet-handle {
  width: 50px;
  height: 6px;
  background: #ccc;
  border-radius: 99px;
  margin: 0 auto 15px;
}

.jlm-sheet-delete {
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  color: #b81414;
  font-size: 16px;
  padding: 12px;
}

.jlm-sheet-info {
  padding: 12px;
  font-size: 15px;
}

.jlm-sheet-close {
  margin-top: 15px;
  width: 100%;
  padding: 12px;
  border: none;
  background: #000;
  color: #fff;
  border-radius: 12px;
  font-size: 16px;
}



/* Toute la carte média est cliquable, logique sur mobile */
.joylink-masonry-item {
  cursor: pointer;
}

/* ─────────────────────────────────────
   Joylink – Ajustements modale média
   ───────────────────────────────────── */

/* La modale occupe tout l'écran, mais on aligne le contenu en haut */
.jlm-modal {
  display: none; /* gardé, mais surchargé par le JS en display:flex */
  align-items: flex-start;
  justify-content: center;
  padding: 16px 12px;
  box-sizing: border-box;
}

/* Le "cadre" blanc principal */
.jlm-dialog {
  max-width: 420px;
  width: 100%;
  background: #000; /* ou la couleur que tu utilises déjà */
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 32px);
}

/* Le bloc média prend la place principale */
.jlm-media-wrapper {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Légende immédiatement sous le média, toujours visible */

/* Texte de légende */
.jlm-caption {
  font-size: 0.95rem;
  line-height: 1.4;
}

/* Bouton ✎ bien visible à côté/à droite */
.jlm-caption-edit-btn {
  margin-left: 8px;
}

/* ─────────────────────────────────────
   Joylink – Ajustements modale média v2
   (à coller tout en bas du CSS enfant)
   ───────────────────────────────────── */

/* La modale reste sur overlay noir, mais contenu aligné en haut */
.jlm-modal.is-open {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 16px 12px;
  box-sizing: border-box;
}

/* Le "cadre" de la modale */
.jlm-dialog {
  max-width: 420px;
  width: 100%;
  background: #000;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 32px);
}

/* Zone média : centrée, sans chevauchement */
.jlm-media-wrapper {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 10px 6px;
  overflow: hidden;
}

/* Hauteur max vidéo/image réduite pour laisser place à la légende + commandes */
#jlm-media img,
#jlm-media video {
  max-width: 100%;
  max-height: 60vh;
  border-radius: 12px;
}

/* Écrans bas (iPhone petit / barre Safari visible) → un peu moins haut */
@media (max-height: 700px) {
  #jlm-media img,
  #jlm-media video {
    max-height: 55vh;
  }
}

/* Légende : carte blanche séparée, toujours visible, safe-area friendly */
.jlm-caption-block {
  background: #ffffff;
  color: #222;
  border-radius: 18px 18px 0 0;
  border-top: 1px solid rgba(0,0,0,0.04);
  box-shadow: 0 -6px 20px rgba(0,0,0,0.35);
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  cursor: pointer;
  padding: 8px 8px;
}

.jlm-caption {
  flex: 1;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.4;
}

.jlm-caption-edit-btn {
  margin-left: 8px;
  border: none;
  background: transparent;
  font-size: 18px;
  color: #555;
}

/* Placeholder visuel quand il n'y a pas encore de légende */
.jlm-caption-empty {
  opacity: 0.65;
  font-style: italic;
}

/* Bloc d'édition de légende */
.jlm-caption-editor {
  margin-top: 10px;
  width: 100%;
}

#jlm-caption-input {
  width: 100%;
  min-height: 70px;
  max-height: 120px;
  resize: vertical;
  border-radius: 12px;
  border: 1px solid #ddd;
  padding: 8px 10px;
  font-size: 0.9rem;
  box-sizing: border-box;
}

.jlm-caption-editor-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
}

.jlm-caption-editor-actions .jlm-caption-cancel,
.jlm-caption-editor-actions .jlm-caption-save {
  border-radius: 999px;
  border: none;
  padding: 6px 14px;
  font-size: 0.85rem;
  cursor: pointer;
}

.jlm-caption-editor-actions .jlm-caption-cancel {
  background: #f1f1f1;
  color: #333;
}

.jlm-caption-editor-actions .jlm-caption-save {
  background: #ea9d82;
  color: #fff;
  box-shadow: 0 4px 10px rgba(234,157,130,0.45);
}

.jlm-caption-help {
  margin: 6px 0 0;
  font-size: 0.75rem;
  color: #777;
}

.jlm-caption-error {
  margin-top: 6px;
  font-size: 0.8rem;
  color: #d32f2f;
}



.jlm-caption-empty {
  color: #bbb;
  font-style: italic;
}

/* =========================================================
   JOYLINK — Inviter un proche / UX app mobile
========================================================= */

.jl-guest-access-entry {
  width: 100%;
  max-width: 500px;
  margin: 18px auto 16px;
  padding: 0 16px;
  box-sizing: border-box;
}

.jl-guest-access-card {
  width: 100%;
  border: 0;
  border-radius: 24px;
  background: #111;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 18px;
  box-shadow: 0 14px 34px rgba(0,0,0,0.18);
  text-align: left;
  cursor: pointer;
}

.jl-guest-access-card:hover,
.jl-guest-access-card:focus {
  background: #111;
  color: #fff;
  transform: translateY(-1px);
}

.jl-guest-access-icon {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 18px;
  background: rgba(255,255,255,0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.jl-guest-access-icon svg {
  fill: #EA9D82;
}

.jl-guest-access-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.jl-guest-access-text strong {
  font-size: 17px;
  line-height: 1.1;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.jl-guest-access-text small {
  font-size: 13px;
  line-height: 1.35;
  color: rgba(255,255,255,0.72);
  font-weight: 400;
  white-space: normal;
}

.jl-guest-access-chevron {
  font-size: 34px;
  line-height: 1;
  color: rgba(255,255,255,0.58);
}

.jl-guest-access-empty-context {
  border-radius: 22px;
  background: #fcfaf8;
  border: 1px solid #f0e6e1;
  padding: 18px;
  text-align: left;
}

.jl-guest-access-empty-context strong {
  display: block;
  font-size: 17px;
  color: #111;
  margin-bottom: 6px;
}

.jl-guest-access-empty-context p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: #666;
}

/* Bottom sheet */
.jl-guest-access-sheet {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
}

.jl-guest-access-sheet.is-open {
  display: block;
}

.jl-guest-access-sheet-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.58);
}

.jl-guest-access-sheet-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-width: 520px;
  margin: 0 auto;
  background: #fff;
  border-radius: 28px 28px 0 0;
  padding: 12px 18px calc(22px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -18px 50px rgba(0,0,0,0.25);
  box-sizing: border-box;
  transform: translateY(100%);
  animation: jlSheetUp 0.24s ease-out forwards;
}

@keyframes jlSheetUp {
  to {
    transform: translateY(0);
  }
}

.jl-guest-access-sheet-handle {
  width: 46px;
  height: 5px;
  border-radius: 999px;
  background: #ddd;
  margin: 0 auto 14px;
}

.jl-guest-access-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #f4f4f4;
  color: #111;
  font-size: 24px;
  line-height: 1;
}

.jl-guest-access-sheet-head {
  text-align: center;
  padding: 10px 18px 16px;
}

.jl-guest-access-sheet-icon {
  width: 56px;
  height: 56px;
  border-radius: 20px;
  margin: 0 auto 12px;
  background: #fff6f1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.jl-guest-access-sheet-icon svg {
  fill: #EA9D82;
}

.jl-guest-access-sheet-head h2 {
  margin: 0 0 8px;
  font-size: 22px;
  letter-spacing: -0.03em;
  color: #111;
}

.jl-guest-access-sheet-head p {
  margin: 0;
  font-size: 14px;
  line-height: 1.48;
  color: #666;
}

.jl-guest-access-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.jl-guest-access-form label,
.jl-guest-access-result label {
  font-size: 13px;
  font-weight: 700;
  color: #111;
}

#jl-guest-firstname,
#jl-guest-access-link {
  width: 100%;
  border: 1px solid #e7e2df;
  border-radius: 16px;
  padding: 14px 14px;
  font-size: 16px;
  color: #111;
  background: #fcfaf8;
  box-sizing: border-box;
}

#jl-guest-firstname:focus,
#jl-guest-access-link:focus {
  outline: none;
  border-color: #EA9D82;
  box-shadow: 0 0 0 3px rgba(234,157,130,0.18);
}

.jl-guest-access-primary {
  width: 100%;
  border: 0;
  border-radius: 18px;
  background: #111;
  color: #fff;
  padding: 15px 18px;
  font-size: 15px;
  font-weight: 750;
  margin-top: 6px;
}

.jl-guest-access-primary:hover,
.jl-guest-access-primary:focus {
  background: #111;
  color: #fff;
}

.jl-guest-access-note {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  color: #777;
  text-align: center;
}

.jl-guest-access-result {
  margin-top: 16px;
}

.jl-guest-access-copy-row {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.jl-guest-access-copy-row input {
  flex: 1;
}

.jl-guest-access-copy-row button {
  border: 0;
  border-radius: 14px;
  background: #EA9D82;
  color: #fff;
  padding: 0 14px;
  font-weight: 700;
}

.jl-guest-access-list {
  margin-top: 18px;
  border-top: 1px solid #f0ece9;
  padding-top: 14px;
}

.jl-guest-access-list h3 {
  margin: 0 0 8px;
  font-size: 14px;
  color: #111;
}

.jl-guest-access-empty {
  margin: 0;
  padding: 12px 14px;
  border-radius: 16px;
  background: #fcfaf8;
  font-size: 13px;
  color: #777;
}

body.jl-sheet-open {
  overflow: hidden;
}

.jl-guest-access-active-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #fcfaf8;
  margin-top: 8px;
}

.jl-guest-access-active-item strong {
  display: block;
  font-size: 14px;
  color: #111;
}

.jl-guest-access-active-item small {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: #777;
}



.jl-guest-access-primary:disabled {
  opacity: 0.65;
  cursor: wait;
}

.jl-revoke-guest-access {
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  background: #fff1ef;
  color: #b3261e;
  padding: 8px 11px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.jl-revoke-guest-access:hover,
.jl-revoke-guest-access:focus {
  background: #b3261e;
  color: #fff;
}

.jl-revoke-guest-access:disabled {
  opacity: 0.6;
  cursor: wait;
}

/* =========================================================
   JOYLINK — Page publique transmettre un souvenir
========================================================= */

.jl-guest-memory-page {
  min-height: 100vh;
  background: #fcfaf8;
  padding: 28px 16px 36px;
  box-sizing: border-box;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.jl-guest-memory-card {
  width: 100%;
  max-width: 520px;
  background: #fff;
  border-radius: 30px;
  padding: 26px 20px 22px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.10);
  box-sizing: border-box;
}

.jl-guest-memory-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 22px;
}

.jl-guest-memory-logo img {
  width: 132px;
  max-width: 48%;
  height: auto;
  display: block;
}

.jl-guest-memory-icon {
  width: 72px;
  height: 72px;
  border-radius: 26px;
  background: #fff6f1;
  color: #EA9D82;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}

.jl-guest-memory-icon svg {
  fill: none !important;
}

.jl-guest-memory-icon.is-error {
  background: #fff1ef;
  color: #b3261e;
  font-size: 30px;
  font-weight: 900;
}

.jl-guest-memory-card h1 {
  margin: 0 0 12px;
  text-align: center;
  font-size: 28px;
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: #111;
}

.jl-guest-memory-intro {
  margin: 0 auto 18px;
  text-align: center;
  font-size: 15px;
  line-height: 1.55;
  color: #666;
  max-width: 430px;
}

.jl-guest-memory-reassurance {
  background: #111;
  color: #fff;
  border-radius: 22px;
  padding: 16px 16px;
  margin: 18px 0 20px;
}

.jl-guest-memory-reassurance strong {
  display: block;
  color: #EA9D82;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.jl-guest-memory-reassurance p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255,255,255,0.82);
}

.jl-guest-memory-form-wrap {
  margin-top: 18px;
}

.jl-guest-memory-footnote {
  margin: 18px 0 0;
  text-align: center;
  font-size: 12px;
  line-height: 1.45;
  color: #777;
}

/* Ajustement Forminator dans la page publique */
.jl-guest-memory-page .forminator-ui {
  margin: 0 !important;
}

.jl-guest-memory-page .forminator-button-submit,
.jl-guest-memory-page button[type="submit"] {
  width: 100% !important;
  border-radius: 18px !important;
  background: #111 !important;
  color: #fff !important;
  border: 0 !important;
  padding: 15px 18px !important;
  font-weight: 800 !important;
  font-size: 15px !important;
}

.jl-guest-memory-page input,
.jl-guest-memory-page textarea {
  border-radius: 16px !important;
}

/* =========================================================
   JOYLINK — Souvenirs reçus en attente
========================================================= */

.jl-pending-memories {
  width: 100%;
  max-width: 760px;
  margin: 18px auto 16px;
  padding: 0 16px;
  box-sizing: border-box;
}

.jl-pending-memories-head {
  background: #111;
  color: #fff;
  border-radius: 26px;
  padding: 22px 20px;
  margin-bottom: 14px;
  box-shadow: 0 14px 34px rgba(0,0,0,0.18);
}

.jl-pending-memories-kicker {
  display: inline-flex;
  color: #EA9D82;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.jl-pending-memories-head h2 {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: #fff;
}

.jl-pending-memories-head p {
  margin: 0;
  font-size: 14px;
  line-height: 1.48;
  color: rgba(255,255,255,0.74);
}

.jl-pending-memories-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.jl-pending-memory-card {
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 22px;
  background: #fff;
  padding: 14px;
  box-shadow: 0 10px 26px rgba(0,0,0,0.08);
}

.jl-pending-memory-icon {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border-radius: 17px;
  background: #fff6f1;
  color: #EA9D82;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
}

.jl-pending-memory-content {
  flex: 1;
  min-width: 0;
}

.jl-pending-memory-content strong {
  display: block;
  font-size: 15px;
  line-height: 1.25;
  color: #111;
}

.jl-pending-memory-content small {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.35;
  color: #777;
}

.jl-pending-memory-discover {
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  background: #111;
  color: #fff;
  padding: 9px 12px;
  font-size: 12px;
  font-weight: 800;
}

.jl-pending-memory-discover:hover,
.jl-pending-memory-discover:focus {
  background: #111;
  color: #fff;
}

/* Modal */
.jl-pending-memory-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 999999;
}

.jl-pending-memory-modal.is-open {
  display: block;
}

.jl-pending-memory-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.72);
}

.jl-pending-memory-modal-panel {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(100% - 28px);
  max-width: 520px;
  max-height: calc(100vh - 42px);
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: 28px;
  padding: 20px;
  box-sizing: border-box;
  overflow: auto;
  box-shadow: 0 18px 60px rgba(0,0,0,0.28);
}

.jl-pending-memory-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: #f4f4f4;
  color: #111;
  font-size: 24px;
  line-height: 1;
}

.jl-pending-memory-modal-head {
  text-align: center;
  padding: 20px 34px 14px;
}

.jl-pending-memory-modal-kicker {
  display: block;
  color: #EA9D82;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.jl-pending-memory-modal-head h2 {
  margin: 0 0 8px;
  color: #111;
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.jl-pending-memory-modal-head p {
  margin: 0;
  color: #777;
  font-size: 13px;
  line-height: 1.4;
}

.jl-pending-memory-preview {
  background: #111;
  border-radius: 22px;
  overflow: hidden;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.jl-pending-memory-preview img,
.jl-pending-memory-preview video {
  width: 100%;
  max-height: 52vh;
  object-fit: contain;
  display: block;
}

.jl-pending-memory-audio {
  width: 100%;
  padding: 26px 18px;
  color: #fff;
  text-align: center;
  box-sizing: border-box;
}

.jl-pending-memory-audio-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-size: 28px;
  color: #EA9D82;
}

.jl-pending-memory-audio p {
  margin: 0 0 14px;
  font-size: 14px;
  color: rgba(255,255,255,0.82);
}

.jl-pending-memory-audio audio {
  width: 100%;
}

.jl-pending-memory-modal-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
  margin-top: 14px;
}

.jl-pending-memory-accept,
.jl-pending-memory-reject {
  border: 0;
  border-radius: 18px;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 850;
}

.jl-pending-memory-accept {
  background: #111;
  color: #fff;
}

.jl-pending-memory-reject {
  background: #fff1ef;
  color: #b3261e;
}

.jl-pending-memory-accept:hover,
.jl-pending-memory-accept:focus {
  background: #111;
  color: #fff;
}

.jl-pending-memory-reject:hover,
.jl-pending-memory-reject:focus {
  background: #b3261e;
  color: #fff;
}

.jl-pending-memory-accept.is-disabled,
.jl-pending-memory-reject.is-disabled {
  opacity: 0.75;
}

.jl-pending-memory-modal-note {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
  color: #777;
}

body.jl-pending-modal-open {
  overflow: hidden;
}

.jl-media-svg-icon {
  width: 24px;
  height: 24px;
  display: block;
}

.jl-pending-memory-icon {
  color: #EA9D82;
}

.jl-pending-memory-audio-icon {
  color: #EA9D82;
}

.jl-pending-memory-audio-icon .jl-media-svg-icon {
  width: 30px;
  height: 30px;
}

@media (max-width: 520px) {
  .jl-guest-memory-page {
    padding: 22px 14px 34px;
    background: #fcfaf8;
  }

  .jl-guest-memory-card {
    border-radius: 28px;
    padding: 24px 18px 22px;
  }

  .jl-guest-memory-logo {
    margin-bottom: 18px;
  }

  .jl-guest-memory-logo img {
    width: 118px;
  }

  .jl-guest-memory-icon {
    width: 66px;
    height: 66px;
    border-radius: 24px;
    margin-bottom: 16px;
  }

  .jl-guest-memory-card h1 {
    font-size: 28px;
    line-height: 1.08;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
  }

  .jl-guest-memory-intro {
    font-size: 15px;
    line-height: 1.52;
  }

  .jl-guest-memory-reassurance {
    border-radius: 24px;
    padding: 18px;
    margin: 18px 0 26px;
  }
}

/* =========================================================
   JOYLINK — UI modal & toast
========================================================= */

.jl-ui-modal {
  position: fixed;
  inset: 0;
  z-index: 1000000;
  display: none;
}

.jl-ui-modal.is-open {
  display: block;
}

.jl-ui-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.62);
  backdrop-filter: blur(5px);
}

.jl-ui-modal-dialog {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(100% - 34px);
  max-width: 390px;
  transform: translate(-50%, -50%) scale(0.96);
  background: #fff;
  border-radius: 30px;
  padding: 26px 22px 20px;
  text-align: center;
  box-shadow: 0 24px 70px rgba(0,0,0,0.28);
  box-sizing: border-box;
  animation: jlUiModalIn 0.2s ease-out forwards;
}

@keyframes jlUiModalIn {
  to {
    transform: translate(-50%, -50%) scale(1);
  }
}

.jl-ui-modal-icon {
  width: 58px;
  height: 58px;
  border-radius: 22px;
  background: #fff6f1;
  color: #EA9D82;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  font-size: 26px;
  font-weight: 900;
}

.jl-ui-modal-dialog.is-danger .jl-ui-modal-icon {
  background: #fff1ef;
  color: #b3261e;
}

.jl-ui-modal-title {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.035em;
  color: #111;
}

.jl-ui-modal-message {
  margin: 0;
  font-size: 14px;
  line-height: 1.52;
  color: #666;
}

.jl-ui-modal-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
  margin-top: 20px;
}

.jl-ui-modal-confirm,
.jl-ui-modal-cancel {
  width: 100%;
  border: 0;
  border-radius: 18px;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 850;
  cursor: pointer;
}

.jl-ui-modal-confirm {
  background: #111;
  color: #fff;
}

.jl-ui-modal-cancel {
  background: #f5f3f1;
  color: #111;
}

.jl-ui-modal-dialog.is-danger .jl-ui-modal-confirm {
  background: #b3261e;
  color: #fff;
}

.jl-ui-modal-confirm:hover,
.jl-ui-modal-confirm:focus {
  background: #111;
  color: #fff;
}

.jl-ui-modal-dialog.is-danger .jl-ui-modal-confirm:hover,
.jl-ui-modal-dialog.is-danger .jl-ui-modal-confirm:focus {
  background: #b3261e;
  color: #fff;
}

.jl-ui-modal-cancel:hover,
.jl-ui-modal-cancel:focus {
  background: #ebe7e4;
  color: #111;
}

body.jl-ui-modal-open {
  overflow: hidden;
}

/* Toast */
.jl-ui-toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  transform: translate(-50%, 18px);
  opacity: 0;
  pointer-events: none;
  z-index: 1000001;
  max-width: calc(100% - 32px);
  background: #111;
  color: #fff;
  border-radius: 999px;
  padding: 12px 16px;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 700;
  box-shadow: 0 14px 34px rgba(0,0,0,0.24);
  transition: opacity 0.18s ease, transform 0.18s ease;
  text-align: center;
}

.jl-ui-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.jl-ui-toast.is-error {
  background: #b3261e;
}

.jl-ui-toast.is-success {
  background: #111;
}
/* =========================================================
   JOYLINK — Ajustement croix bottom sheet
========================================================= */

.jl-guest-access-close,
.jl-pending-memory-modal-close {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  line-height: 1 !important;
  font-family: Arial, Helvetica, sans-serif !important;
}

.jl-guest-access-close {
  font-size: 28px !important;
  font-weight: 300 !important;
}

.jl-pending-memory-modal-close {
  font-size: 28px !important;
  font-weight: 300 !important;
}
/* =========================================================
   JOYLINK — Icône inviter un proche
========================================================= */

.jl-invite-svg-icon {
  width: 25px;
  height: 25px;
  display: block;
  color: #EA9D82;
}

.jl-guest-access-sheet-icon .jl-invite-svg-icon {
   width: 32px !important;
  height: 32px !important;
}

.jl-guest-access-icon svg,
.jl-guest-access-sheet-icon svg {
  fill: none !important;
}

.jl-guest-access-icon,
.jl-guest-access-sheet-icon {
  color: #EA9D82;
}

/* =========================================================
   JOYLINK — Ajustement carte inviter un proche
========================================================= */

.jl-guest-access-card {
  min-height: 116px;
}

.jl-guest-access-icon {
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  border-radius: 20px;
}

.jl-guest-access-text strong {
  font-size: 18px;
}

.jl-guest-access-text small {
  max-width: 250px;
}

.jl-guest-access-chevron {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  transform: translateY(-1px);
}

/* =========================================================
   JOYLINK — Ajustement bottom sheet invitation
========================================================= */

.jl-guest-access-sheet-panel {
  max-height: calc(92vh - env(safe-area-inset-top, 0px));
  overflow-y: auto;
}

.jl-guest-access-sheet-head {
  padding-top: 6px;
}

.jl-guest-access-sheet-head h2 {
  font-size: 25px;
}

.jl-guest-access-sheet-head p {
  max-width: 390px;
  margin-left: auto;
  margin-right: auto;
}

.jl-guest-access-form {
  margin-top: 4px;
}

.jl-guest-access-list {
  padding-bottom: 8px;
}

.jl-revoke-guest-access {
  background: #fff3f1 !important;
  color: #a73b33 !important;
  font-size: 12px !important;
  padding: 8px 12px !important;
  border-radius: 999px !important;
}

.jl-revoke-guest-access:hover,
.jl-revoke-guest-access:focus {
  background: #a73b33 !important;
  color: #fff !important;
}

/* =========================================================
   JOYLINK — Page invité : ajustement hero mobile
========================================================= */

@media (max-width: 520px) {
  .jl-guest-memory-page {
    padding: 18px 12px 30px !important;
    align-items: flex-start !important;
  }

  .jl-guest-memory-card {
    border-radius: 30px !important;
    padding: 24px 18px 22px !important;
    box-shadow: 0 14px 42px rgba(0,0,0,0.08) !important;
  }

  .jl-guest-memory-logo {
    margin-bottom: 16px !important;
  }

  .jl-guest-memory-logo img {
    width: 112px !important;
    max-width: 46% !important;
  }

  .jl-guest-memory-icon {
    width: 62px !important;
    height: 62px !important;
    border-radius: 22px !important;
    margin-bottom: 15px !important;
  }

  .jl-guest-memory-card h1 {
    font-size: 27px !important;
    line-height: 1.08 !important;
    margin-bottom: 12px !important;
  }

  .jl-guest-memory-intro {
    font-size: 15px !important;
    line-height: 1.5 !important;
    margin-bottom: 16px !important;
  }

  .jl-guest-memory-reassurance {
    margin: 16px 0 22px !important;
  }
}

/* =========================================================
   JOYLINK — Page invité : intégration Forminator
========================================================= */

.jl-guest-memory-form-wrap {
  background: #fcfaf8;
  border-radius: 24px;
  padding: 16px;
  margin-top: 18px;
  box-sizing: border-box;
}

.jl-guest-memory-page .forminator-ui {
  margin: 0 !important;
}

.jl-guest-memory-page .forminator-row {
  margin-bottom: 14px !important;
}

.jl-guest-memory-page .forminator-label {
  color: #111 !important;
  font-weight: 800 !important;
  font-size: 14px !important;
  margin-bottom: 8px !important;
}

.jl-guest-memory-page .forminator-description {
  color: #777 !important;
  font-size: 13px !important;
  line-height: 1.45 !important;
}

.jl-guest-memory-page .forminator-file-upload {
  border-radius: 22px !important;
  border-color: rgba(17,17,17,0.18) !important;
  background: #fff !important;
}

.jl-guest-memory-page .forminator-button-upload {
  color: #111 !important;
  font-weight: 800 !important;
}

.jl-guest-memory-page .forminator-button-submit,
.jl-guest-memory-page button[type="submit"] {
  width: 100% !important;
  border-radius: 20px !important;
  background: #111 !important;
  color: #fff !important;
  border: 0 !important;
  padding: 16px 18px !important;
  font-weight: 850 !important;
  font-size: 15px !important;
  box-shadow: 0 10px 24px rgba(0,0,0,0.14) !important;
}

.jl-guest-memory-page .forminator-button-submit:hover,
.jl-guest-memory-page button[type="submit"]:hover {
  background: #111 !important;
  color: #fff !important;
}

/* =========================================================
   JOYLINK — Page invité : bloc à savoir
========================================================= */

.jl-guest-memory-reassurance {
  position: relative;
  overflow: hidden;
}

.jl-guest-memory-reassurance::after {
  content: "";
  position: absolute;
  right: -34px;
  top: -34px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: rgba(234,157,130,0.12);
  pointer-events: none;
}

.jl-guest-memory-reassurance strong {
  position: relative;
  z-index: 1;
}

.jl-guest-memory-reassurance p {
  position: relative;
  z-index: 1;
}

/* =========================================================
   JOYLINK — Confirmation Forminator invité
========================================================= */

.jl-guest-memory-page .forminator-response-message,
.jl-guest-memory-page .forminator-success {
  border-radius: 22px !important;
  background: #fff6f1 !important;
  border: 1px solid rgba(234,157,130,0.26) !important;
  color: #111 !important;
  padding: 18px !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
}

.jl-guest-memory-page .forminator-response-message p,
.jl-guest-memory-page .forminator-success p {
  margin: 0 !important;
}

/* =========================================================
   JOYLINK — Modale souvenir reçu en bottom sheet mobile
========================================================= */

@media (max-width: 640px) {
  .jl-pending-memory-modal-panel {
    top: auto !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    max-height: 88vh !important;
    transform: none !important;
    border-radius: 30px 30px 0 0 !important;
    padding: 16px 18px calc(22px + env(safe-area-inset-bottom, 0px)) !important;
    overflow-y: auto !important;
    animation: jlPendingSheetUp 0.24s ease-out forwards;
  }

  @keyframes jlPendingSheetUp {
    from {
      transform: translateY(100%);
    }
    to {
      transform: translateY(0);
    }
  }

  .jl-pending-memory-modal-panel::before {
    content: "";
    display: block;
    width: 48px;
    height: 5px;
    border-radius: 999px;
    background: #ddd;
    margin: 0 auto 14px;
  }

  .jl-pending-memory-modal-close {
    top: 16px !important;
    right: 18px !important;
    width: 42px !important;
    height: 42px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    font-size: 28px !important;
    line-height: 1 !important;
  }

  .jl-pending-memory-modal-head {
    padding: 14px 42px 14px !important;
  }

  .jl-pending-memory-modal-head h2 {
    font-size: 24px !important;
    line-height: 1.1 !important;
  }

  .jl-pending-memory-preview {
    min-height: auto !important;
    border-radius: 24px !important;
  }

  .jl-pending-memory-preview img,
  .jl-pending-memory-preview video {
    max-height: 44vh !important;
    object-fit: contain !important;
  }

  .jl-pending-memory-modal-actions {
    position: sticky;
    bottom: 0;
    background: #fff;
    padding-top: 12px;
    padding-bottom: 4px;
    z-index: 2;
  }

  .jl-pending-memory-modal-note {
    padding-bottom: 4px;
  }

/* =========================================================
   JOYLINK — Aperçu souvenir reçu sans recadrage image
========================================================= */

@media (max-width: 640px) {
  .jl-pending-memory-modal-panel {
    max-height: 92dvh !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
  }

  .jl-pending-memory-preview {
    display: block !important;
    min-height: auto !important;
    background: #111 !important;
    border-radius: 24px !important;
    overflow: hidden !important;
  }

  .jl-pending-memory-preview img {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    display: block !important;
  }

  .jl-pending-memory-preview video {
    width: 100% !important;
    height: auto !important;
    max-height: 46vh !important;
    object-fit: contain !important;
    display: block !important;
    background: #111 !important;
  }

  .jl-pending-memory-modal-actions {
    position: sticky !important;
    bottom: 0 !important;
    background: #fff !important;
    padding-top: 14px !important;
    padding-bottom: 8px !important;
    z-index: 5 !important;
  }

  .jl-pending-memory-modal-note {
    margin-bottom: 0 !important;
  }
}

/* =========================================================
   JOYLINK — MON PROFIL APP UI
   Bloc consolidé propre
========================================================= */

.jl-profile-page {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 0 0 90px;
  box-sizing: border-box;
}

/* =========================
   HERO BIJOU
========================= */

.jl-profile-hero-card {
  width: calc(100% - 28px) !important;
  max-width: 560px !important;
  margin: 26px auto 18px !important;
  padding: 0 !important;
  display: grid !important;
  grid-template-columns: 76px 1fr !important;
  gap: 16px !important;
  align-items: center !important;
  box-sizing: border-box !important;
}

.jl-profile-hero-icon {
  width: 76px !important;
  height: 76px !important;
  border-radius: 50% !important;
  background: #000 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  flex: 0 0 76px !important;
}

.jl-profile-hero-icon img,
.jl-profile-hero-icon svg {
  width: 52px !important;
  height: 52px !important;
  object-fit: contain !important;
  display: block !important;
}

/* Colonne texte du hero */
.jl-profile-hero-card > div:not(.jl-profile-hero-icon) {
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  gap: 7px !important;
}

/* Premier shortcode : écrin */
.jl-profile-hero-card > div:not(.jl-profile-hero-icon) > *:first-child {
  margin: 0 !important;
  font-size: 19px !important;
  line-height: 1.16 !important;
  font-weight: 850 !important;
  letter-spacing: 0.01em !important;
  text-transform: uppercase !important;
  color: #111 !important;
}

/* Second shortcode : nom du bijou */
.jl-profile-hero-card > div:not(.jl-profile-hero-icon) > *:last-child {
  margin: 0 !important;
  font-size: 16px !important;
  line-height: 1.35 !important;
  font-weight: 400 !important;
  color: #333 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

.jl-profile-hero-card .firstname {
  font: inherit !important;
  color: inherit !important;
  letter-spacing: inherit !important;
  text-transform: inherit !important;
}

/* =========================
   STOCKAGE
========================= */

.jl-profile-storage-card {
  width: calc(100% - 28px) !important;
  max-width: 560px !important;
  margin: 24px auto 32px !important;
  padding: 24px 18px 24px !important;
  background: #fff !important;
  border-radius: 28px !important;
  box-shadow: 0 18px 45px rgba(0,0,0,0.10) !important;
  box-sizing: border-box !important;
}

.jl-profile-card-title {
  margin: 0 0 18px !important;
  text-align: center !important;
  font-size: 16px !important;
  line-height: 1.2 !important;
  font-weight: 850 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: #111 !important;
}

.jl-profile-storage-card .joylink-storage-wrapper {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.jl-profile-storage-card .joylink-storage-bar {
  width: 100% !important;
  height: 17px !important;
  background: #e5e5e5 !important;
  border-radius: 999px !important;
  overflow: hidden !important;
  margin: 0 0 17px !important;
}

.jl-profile-storage-card .joylink-storage-bar .fill {
  height: 100% !important;
  background: #2ecc71 !important;
  border-radius: 999px !important;
  display: block !important;
  transition: width 0.35s ease !important;
}

.jl-profile-storage-card .joylink-storage-info {
  margin: 0 !important;
  text-align: center !important;
  font-size: 19px !important;
  line-height: 1.25 !important;
  font-weight: 750 !important;
  color: #333 !important;
}

/* =========================================================
   JOYLINK PROFIL — Sections compactes finales
========================================================= */

.jl-profile-section-intro {
  width: calc(100% - 28px) !important;
  max-width: 560px !important;
  margin: 0 auto 10px !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

.jl-profile-section-kicker {
  display: inline-flex !important;
  margin: 0 0 7px !important;
  color: #ea9d82 !important;
  font-size: 11px !important;
  line-height: 1 !important;
  font-weight: 850 !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
}

.jl-profile-section-intro h2 {
  margin: 0 0 6px !important;
  font-size: 24px !important;
  line-height: 1.08 !important;
  letter-spacing: -0.035em !important;
  font-weight: 850 !important;
  color: #111 !important;
}

.jl-profile-section-intro p {
  margin: 0 !important;
  max-width: 440px !important;
  font-size: 14.5px !important;
  line-height: 1.42 !important;
  font-weight: 400 !important;
  color: #5e5e5e !important;
}

.jl-profile-section-intro + .jl-guest-access-entry {
  margin-top: 10px !important;
}

.jl-guest-access-entry {
  margin-top: 10px !important;
  margin-bottom: 30px !important;
}

.jl-profile-section-intro + .jl-profile-jewels-section,
.jl-profile-section-intro + .jl-profile-account-card {
  margin-top: 10px !important;
}
/* =========================
   INVITER UN PROCHE
========================= */

.jl-profile-section-intro + .jl-guest-access-entry {
  margin-top: 12px !important;
}

.jl-guest-access-entry {
  width: calc(100% - 28px) !important;
  max-width: 560px !important;
  margin: 12px auto 32px !important;
  padding: 0 !important;
}

.jl-guest-access-card {
  border-radius: 26px !important;
  min-height: 108px !important;
  padding: 18px 20px !important;
}

/* =========================
   MES BIJOUX
========================= */

.jl-profile-jewels-section {
  width: calc(100% - 28px) !important;
  max-width: 560px !important;
  
}

.user-bijoux-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 12px auto 0 !important;
  max-width: 560px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
}

.user-bijou-item {
  margin: 0 !important;
  padding: 0 !important;
}

.user-bijou-item .bijou-main-line {
  width: 100% !important;
  min-height: 70px !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 15px 14px !important;
  background: #fff !important;
  border: 1px solid #f0ece9 !important;
  border-radius: 22px !important;
  box-shadow: 0 10px 28px rgba(0,0,0,0.06) !important;
  box-sizing: border-box !important;
}

.user-bijou-item.is-current-bijou .bijou-main-line {
  background: #111 !important;
  border-color: #111 !important;
  color: #fff !important;
  box-shadow: 0 16px 34px rgba(0,0,0,0.18) !important;
}

.user-bijou-item .bijou-label {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  color: inherit !important;
  font-size: 16px !important;
  line-height: 1.2 !important;
  font-weight: 800 !important;
  text-decoration: none !important;
}

.user-bijou-item .bijou-serial {
  color: #777 !important;
  font-size: 13px !important;
  line-height: 1.2 !important;
  font-weight: 500 !important;
}

.user-bijou-item.is-current-bijou .bijou-serial {
  color: rgba(255,255,255,0.62) !important;
}

.user-bijou-item.is-current-bijou .bijou-main-line::after {
  content: "Actuel";
  margin-left: auto;
  background: rgba(234,157,130,0.18);
  color: #EA9D82;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 11px;
  line-height: 1;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.user-bijou-item .delete-bijou {
  margin-left: auto !important;
  width: 34px !important;
  height: 34px !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: #fff3f1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 34px !important;
}

.user-bijou-item.is-current-bijou .rename-bijou-svg {
    width: 18px;
    height: 18px;
    fill: #fff; 
}


.user-bijou-item .delete-bijou-svg {
  width: 17px !important;
  height: 17px !important;
  fill: #a73b33 !important;
}

/* =========================
   AVERTISSEMENT SUPPRESSION BIJOU
========================= */

.jl-profile-warning {
  width: calc(100% - 28px);
  max-width: 560px;
  margin: 18px auto 34px;
  font-size: 13px;
  line-height: 1.45;
  color: #555;
}

/* =========================
   COMPTE / ULTIMATE MEMBER
========================= */

.jl-profile-account-card {
  width: calc(100% - 28px) !important;
  max-width: 560px !important;
  margin: 14px auto 44px !important;
  padding: 20px 16px 22px !important;
  background: #fff !important;
  border-radius: 28px !important;
  box-shadow: 0 18px 45px rgba(0,0,0,0.08) !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

.jl-profile-account-card .um,
.jl-profile-account-card .um-profile,
.jl-profile-account-card .um-profile-body,
.jl-profile-account-card .um-row {
  margin: 0 !important;
  padding: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
}

/* À ajuster après inspection des vraies classes Ultimate Member */
.jl-profile-account-card .um-field {
  padding: 0 0 18px !important;
}

.jl-profile-account-card .um-field-label {
  margin: 0 0 8px !important;
}

.jl-profile-account-card .um-field-label label {
  font-size: 15px !important;
  font-weight: 800 !important;
  color: #111 !important;
}

.jl-profile-account-card input[type="text"],
.jl-profile-account-card input[type="email"],
.jl-profile-account-card input[type="password"] {
  width: 100% !important;
  min-height: 56px !important;
  border-radius: 18px !important;
  border: 1px solid #e8e2df !important;
  background: #fcfaf8 !important;
  padding: 0 18px !important;
  font-size: 16px !important;
  color: #111 !important;
  box-sizing: border-box !important;
}

.jl-profile-account-card input:focus {
  border-color: #ea9d82 !important;
  box-shadow: 0 0 0 3px rgba(234,157,130,0.16) !important;
}

.jl-profile-account-card .um-button,
.jl-profile-account-card input[type="submit"] {
  width: 100% !important;
  max-width: none !important;
  min-height: 56px !important;
  border-radius: 20px !important;
  background: #111 !important;
  color: #fff !important;
  border: 0 !important;
  font-size: 15px !important;
  font-weight: 850 !important;
  box-shadow: none !important;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 520px) {
  .jl-profile-section-intro h2 {
    font-size: 24px !important;
  }

  .jl-profile-section-intro p {
    font-size: 14.5px !important;
  }

  .jl-profile-hero-card {
    grid-template-columns: 74px 1fr !important;
    gap: 15px !important;
    margin-top: 24px !important;
  }

  .jl-profile-hero-icon {
    width: 74px !important;
    height: 74px !important;
    flex-basis: 74px !important;
  }

  .jl-profile-hero-icon img,
  .jl-profile-hero-icon svg {
    width: 50px !important;
    height: 50px !important;
  }

  .jl-profile-hero-card > div:not(.jl-profile-hero-icon) > *:first-child {
    font-size: 18px !important;
    line-height: 1.18 !important;
  }

  .jl-profile-hero-card > div:not(.jl-profile-hero-icon) > *:last-child {
    font-size: 16px !important;
  }
}

/* =========================================================
   JOYLINK PROFIL — Hero bijou final
========================================================= */

.jl-profile-hero-card {
  width: calc(100% - 28px) !important;
  max-width: 560px !important;
  margin: 24px auto 20px !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 16px !important;
  box-sizing: border-box !important;
}

.jl-profile-hero-icon {
  width: 76px !important;
  height: 76px !important;
  min-width: 76px !important;
  flex: 0 0 76px !important;
  border-radius: 50% !important;
  background: #000 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
}

.jl-profile-hero-icon img,
.jl-profile-hero-icon svg {
  width: 52px !important;
  height: 52px !important;
  object-fit: contain !important;
  display: block !important;
}

.jl-profile-hero-text {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 7px !important;
  justify-content: center !important;
}

.jl-profile-hero-text > * {
  margin: 0 !important;
}

.jl-profile-hero-text > *:first-child,
.jl-profile-hero-text .firstname:first-child {
  font-size: 20px !important;
  line-height: 1.14 !important;
  font-weight: 850 !important;
  letter-spacing: 0.015em !important;
  text-transform: uppercase !important;
  color: #111 !important;
}

.jl-profile-hero-text > *:last-child {
  font-size: 16px !important;
  line-height: 1.35 !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: #333 !important;
}

.jl-profile-hero-card .firstname {
  font: inherit !important;
  color: inherit !important;
  letter-spacing: inherit !important;
  text-transform: inherit !important;
}

@media (max-width: 520px) {
  .jl-profile-hero-card {
    width: calc(100% - 28px) !important;
    margin: 24px auto 18px !important;
    gap: 15px !important;
  }

  .jl-profile-hero-icon {
    width: 72px !important;
    height: 72px !important;
    min-width: 72px !important;
    flex-basis: 72px !important;
  }

  .jl-profile-hero-icon img,
  .jl-profile-hero-icon svg {
    width: 49px !important;
    height: 49px !important;
  }

  .jl-profile-hero-text > *:first-child {
    font-size: 18px !important;
    line-height: 1.18 !important;
  }

  .jl-profile-hero-text > *:last-child {
    font-size: 15.5px !important;
  }
}
