/* ═══════════════════════════════════════════════════
   Jeu Photo Mariage — Styles
   Palette : Or champagne + Bleu nuit + Ivoire
═══════════════════════════════════════════════════ */


@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --gold:       #C9A84C;
  --gold-light: #F0D78C;
  --navy:       #1B2A4A;
  --navy-mid:   #2C3E6B;
  --ivory:      #FAF7F0;
  --white:      #FFFFFF;
  --gray-100:   #F4F2EE;
  --gray-200:   #E8E4DC;
  --gray-400:   #A8A099;
  --gray-600:   #6B6560;
  --green:      #2E7D60;
  --red:        #B94040;
  --radius:     14px;
  --radius-sm:  8px;
  --shadow:     0 4px 24px rgba(27,42,74,.12);
  --shadow-lg:  0 12px 48px rgba(27,42,74,.18);
}

/* ── Reset ────────────────────────────────────────── */
.jpm-wrap * { box-sizing: border-box; }
.jpm-wrap { font-family: 'DM Sans', sans-serif; color: var( --white); }

/* ── Hero ─────────────────────────────────────────── */
.jpm-hero {
  text-align: center;
  padding: 48px 24px 32px;
}
.jpm-emoji { font-size: 3.5rem; display: block; margin-bottom: 8px; }
.jpm-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--white);
  margin: 0 0 8px;
}
.jpm-hero p { color: var(--ivory); margin: 0; font-size: 1.05rem; }

/* ── Card ─────────────────────────────────────────── */
.jpm-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
  max-width: 560px;
  margin: 0 auto 32px;
}
.jpm-card label {
  display: block;
  font-weight: 600;
  margin-bottom: 10px;
  font-size: 1rem;
}

/* ── Select2 override ────────────────────────────── */
.select2-container--default .select2-selection--single {
  height: 48px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  transition: border-color .2s;
}
.select2-container--default .select2-selection--single:focus,
.select2-container--default.select2-container--focus .select2-selection--single {
  border-color: var(--gold);
  outline: none;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 48px;
  padding-left: 14px;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 46px;
}

/* ── Buttons ─────────────────────────────────────── */
.jpm-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all .2s;
}
.jpm-btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy);
  box-shadow: 0 3px 12px rgba(201,168,76,.4);
}
.jpm-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(201,168,76,.5); }
.jpm-btn-primary:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.jpm-btn-secondary {
  background: var(--navy);
  color: var(--white);
}
.jpm-btn-secondary:hover { background: var(--navy-mid); }
.jpm-btn-ghost {
  background: transparent;
  color: var(--gray-600);
  border: 1px solid var(--gray-200);
}
.jpm-btn-ghost:hover { border-color: var(--navy); color: var(--navy); }
.jpm-btn-upload {
  background: var(--gold);
  color: #fff;
  padding: 8px 16px;
  font-size: .85rem;
}
.jpm-btn-upload:hover { background: var(--navy-mid); }
.jpm-btn-replace {
  background: var(--gold);
  color: var(--navy);
}
.jpm-btn-replace:hover { background: var(--gold-light); }

/* ── Top bar ─────────────────────────────────────── */
.jpm-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: var(--shadow);
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 12px;
}
.jpm-user-badge {
  display: flex;
  align-items: center;
  gap: 12px;
}
.jpm-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--groupe-color, var(--gold));
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.jpm-user-badge strong { display: block;     font-size: 22Px; color: var(--gray-600); }
.jpm-user-badge span { font-size: .85rem; color: var(--gray-600); }

.jpm-score-mini { text-align: right; }
.jpm-pts-val { font-size: 2rem; font-weight: 700; color: var(--gold); line-height: 1; }
.jpm-pts-lbl { font-size: .85rem; color: var(--gray-600); }
.jpm-progress-mini { display: block; font-size: .8rem; color: var(--gray-600); }

/* ── Progress bar ────────────────────────────────── */
.jpm-stats-bar {
  height: 8px;
  background: var(--gray-200);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 16px;
}
.jpm-progress-bar {
  height: 100%;
  width: var(--progress, 0%);
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 99px;
  transition: width .8s ease;
}

/* ── Table controls ──────────────────────────────── */
.jpm-table-controls {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.jpm-search-input, .jpm-filter-select {
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 9px 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 20px;
  outline: none;
  transition: border-color .2s;
}
.jpm-search-input { flex: 1; min-width: 200px; border-radius: 10px !important; }
.jpm-search-input:focus, .jpm-filter-select:focus { border-color: var(--gold); }

/* ── Table ───────────────────────────────────────── */
.jpm-table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
.jpm-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  color:var(--gray-600);;
}
.jpm-table thead th {
  background: var(--navy);
  color: var(--white);
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  font-size: .9rem;
}
.jpm-table tbody tr {
  border-bottom: 1px solid var(--gray-100);
  transition: background .15s;
}
.jpm-table tbody tr:hover { background: var(--gray-100); }
.jpm-table tbody td {
  padding: 13px 16px;
  font-size: .9rem;
  vertical-align: middle;
}
.jpm-row.jpm-done { background: rgba(46,125,96,.04); }
.jpm-thumb-mini {     display: block;
    float: left; vertical-align: middle; margin-right: 8px; }
.jpm-thumb-mini img { border-radius: 4px; vertical-align: middle; }

/* ── Badges ──────────────────────────────────────── */
.jpm-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 99px;
  font-size: .78rem;
  font-weight: 600;
}
.jpm-badge-pts    { background: var(--navy); color: var(--white);  }
.jpm-badge-done   { background: rgba(46,125,96,.12); color: var(--green); }
.jpm-badge-todo   { background: rgba(201,168,76,.15); color: #8a6a1a; }
.jpm-badge-count  { background: var(--gray-200); color: var(--gray-600); }

.jpm-gallery-header span.jpm-badge.jpm-badge-pts + br {
    display: none;
}
.jpm-gallery-header p {
    margin-bottom: 0;
}



.jpm-gallery-header span.jpm-badge.jpm-badge-pts {
    margin-left:10px;
}
/* ── My photos grid ──────────────────────────────── */
.jpm-my-photos { margin-top: 32px; }
.jpm-my-photos h3 { font-family: 'Playfair Display', serif; margin-bottom: 12px; }
.jpm-my-photos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}
@media (max-width: 600px) {
    .jpm-my-photos-grid {
      grid-template-columns:   repeat(auto-fill, minmax(140px, 1fr))
    }
}
.jpm-my-photo-item {

  box-shadow: var(--shadow);
  text-align: center;
  font-size: .75rem;
  color: var(--ivory);
      margin-bottom: 20px;
}

@media (max-width: 600px) {
    .jpm-gallery-item {
        margin-bottom: 5%;
    }
}
.jpm-my-photo-item img { width: 100%; display: block;   border-radius: var(--radius-sm)!important;
  overflow: hidden;     border-radius: var(--radius-sm) !important;
    height: 250px !important;
    object-fit: cover;
    }
    
    
    .jpm-my-photo-item  > .jpm-video-thumb > video { width: 100%; display: block;   border-radius: var(--radius-sm)!important;
  overflow: hidden;     border-radius: var(--radius-sm) !important;
    height: 250px !important;
    object-fit: cover;
    }
.jpm-my-photo-item span:not(.jpm-video-thumb) { display: block; padding: 4px; line-height:1.1; margin-top:9Px;

        padding: 0;
    font-size: .88rem;
    color: white;
 
}

/* ── Reset link ──────────────────────────────────── */
.jpm-reset-link { text-align: center; margin-top: 20px; font-size: .85rem; }
.jpm-reset-link a { color: var(--white); text-decoration: underline; }
.jpm-reset-link a:hover { color: var(--white); text-decoration: underline; }

/* ── Modal ───────────────────────────────────────── */
.jpm-modal {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(27,42,74,.55);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  backdrop-filter: blur(4px);
}
.jpm-modal-inner {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  width: 100%; max-width: 480px;
  position: relative;
  box-shadow: var(--shadow-lg);
  animation: jpm-modal-in .25s ease;
      max-height: 90vh;
    overflow: scroll;
}
@keyframes jpm-modal-in {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.jpm-modal-close {
  position: absolute; top: 14px; right: 14px;
  background: none; border: none; font-size: 1.2rem; cursor: pointer; color: var(--gray-400);
  
}
.jpm-lb-close {
        display: flex;
    flex-wrap: wrap;
    align-content: center;
    justify-content: center;
}
.jpm-modal-close:hover { color: var(--navy); }
.jpm-modal-inner h3 { margin-top: 0; font-family: 'Playfair Display', serif; }

/* ── Upload zone ─────────────────────────────────── */
.jpm-upload-zone {
  border: 2px dashed var(--gold);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  background: rgba(201,168,76,.04);
  margin-bottom: 16px;
  transition: background .2s;
  color: var(--gray-600);
}
.jpm-upload-zone.dragover { background: rgba(201,168,76,.12); }
.jpm-upload-zone span { display: block; margin-bottom: 14px; }

#jpm-preview-img { width: 100%; border-radius: var(--radius-sm); margin-bottom: 12px;     max-height: 60vh;
    object-fit: contain;}
#jpm-preview-wrap { text-align: center; }
#jpm-preview-wrap .jpm-btn { margin: 6px; }

/* ── Spinner ─────────────────────────────────────── */
.jpm-spinner {
  width: 32px; height: 32px;
  border: 3px solid var(--gray-200);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: jpm-spin .7s linear infinite;
  margin: 0 auto 8px;
}
@keyframes jpm-spin { to { transform: rotate(360deg); } }
#jpm-upload-progress { text-align: center; color: var(--gray-600); }

/* ── Résultats ───────────────────────────────────── */
.jpm-resultats h2 { font-family: 'Playfair Display', serif; margin: 28px 0 14px; }
.jpm-auto-refresh { font-size: .82rem; color: var(--gray-400); }
.jpm-refresh-dot {
  display: inline-block; width: 7px; height: 7px;
  border-radius: 50%; background: var(--green);
  animation: jpm-pulse 1.5s ease-in-out infinite;
  vertical-align: middle;
}
@keyframes jpm-pulse { 0%,100%{opacity:1} 50%{opacity:.3} }

.jpm-groupes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}
.jpm-groupe-card {
  background: var(--white);
  border-left: 5px solid var(--groupe-color, var(--gold));
  border-radius: var(--radius-sm);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow);
}
.jpm-groupe-rank {
  font-size: 1.4rem; font-weight: 700; color: var(--gold); min-width: 28px;
}
.jpm-groupe-info strong { display: block; }
.jpm-groupe-info span { font-size: .8rem; color: var(--gray-600); }
.jpm-groupe-pts { margin-left: auto; font-size: 1.1rem; font-weight: 700; color: var(--navy); }

.jpm-table-resultats .jpm-top-1 { background: rgba(255,215,0,.1); }
.jpm-table-resultats .jpm-top-2 { background: rgba(192,192,192,.1); }
.jpm-table-resultats .jpm-top-3 { background: rgba(205,127,50,.08); }
.jpm-table-resultats .jpm-me    { outline: 2px solid var(--gold); outline-offset: -2px; }
.jpm-me-label { font-size: .8rem; color: var(--gold); font-weight: 600; }
.jpm-rank-cell { font-size: 1.1rem; text-align: center; }
.jpm-groupe-dot {
  display: inline-block; width: 10px; height: 10px;
  border-radius: 50%; margin-right: 6px; vertical-align: middle;
}

/* ── Gallery ─────────────────────────────────────── */
.jpm-gallery-section { margin-bottom: 40px; }
.jpm-gallery-header {
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap;
}
.jpm-gallery-header h3 {
  font-family: 'Playfair Display', serif;
  margin: 0; font-size: 1.2rem;
}
.jpm-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}
@media (max-width: 600px) {
   .jpm-gallery-grid {
      grid-template-columns:   repeat(auto-fill, minmax(140px, 1fr))
    }
}
.jpm-gallery-item {
border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow);
    background: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background:transparent;
    transition: transform .3s;
    position: relative;
}
.jpm-gallery-item img {
    width: 100%;
    display: block;
    transition: transform .3s;
    
    object-fit: cover;
            border-radius: var(--radius-sm) !important;
      
        height: 250px !important;

}
.jpm-gallery-item br {
    display:none;
}
.jpm-gallery-item:hover { transform: scale(1.03); }
.jpm-gallery-caption {
  padding: 0;
  font-size: .88rem;
  color: white;
  display: flex; align-items: center;
   justify-content: center;
   margin-top:-9px;
}
.jpm-lightbox-link { display: block; overflow: hidden; }

/* ── Vidéo mariés ────────────────────────────────── */
.jpm-hero-wedding { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%); border-radius: var(--radius); color: var(--white); }
.jpm-hero-wedding h1, .jpm-hero-wedding p { color: var(--white); }
.jpm-video-upload-zone {
  border: 2px dashed var(--gold);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  background: rgba(201,168,76,.04);
  margin: 20px 0;
}
.jpm-upload-icon { font-size: 2.5rem; display: block; margin-bottom: 8px; }
.jpm-upload-hint { font-size: .8rem; color: var(--gray-400); margin-top: 10px; }
.jpm-video-preview { width: 100%; border-radius: var(--radius-sm); margin: 12px 0; }
.jpm-existing-video h3 { color: var(--green); }
.jpm-video-note { font-size: .82rem; color: var(--gray-600); }
.jpm-upload-progress-wrap {
  text-align: center; padding: 20px;
}
.jpm-progress-track {
  height: 8px; background: var(--gray-200);
  border-radius: 99px; overflow: hidden; margin-top: 10px;
}
.jpm-progress-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 99px; transition: width .3s;
}
.jpm-success-msg {
  text-align: center; padding: 16px;
  background: rgba(46,125,96,.1); border-radius: var(--radius-sm);
  color: var(--green); font-weight: 600; font-size: 1.1rem;
}
.jpm-card-info { text-align: center; color: var(--gray-600); }
.jpm-card-info a { color: var(--gold); font-weight: 600; }

/* ── Jeu fermé ───────────────────────────────────── */
.jpm-closed {
  text-align: center; padding: 48px 24px;
  background: var(--ivory); border-radius: var(--radius);
  font-size: 1.1rem;
}
.jpm-closed a { color: var(--gold); font-weight: 600; }
.select2-container--default .select2-selection--single .select2-selection__clear {
        margin-top: -24px!important;
    transform: scale(1.5)!important;
}

h3#jpm-modal-title {
    text-align: center;
    padding-right: 15px;
}

#jpm-btn-identify {
        filter: invert(1);
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: black;
    box-shadow: 0 3px 12px rgba(201, 168, 76, .4);
    margin: auto;
    width: 150px;
    display: block;
    margin-top: 20px;
}

body.uploading {
    /* overflow:hidden; */
    opacity:0.5;
    pointer-events:none;
}

/* ── Responsive ──────────────────────────────────── */
@media (min-width: 600px) {
    .resp {
        display:none;
    }
}
@media (max-width: 600px) {
  .jpm-select-mode-btn {
        width: 96%!important;
    margin-left: 2%!important;;
        
    }
    
    .jpm-badge-pts {
        float:right;
    }
        .jpm-thumb-mini  {
                display: block;
    float: left;
        }
    .jpm-thumb-mini img {
            width: 70px;
    height: 70px;
    object-fit: cover;
    }
    
    
.desk {
      display:none;
}
.jpm-row.jpm-done {
    background: rgb(30 198 137 / 30%);
}
  .jpm-card { padding: 20px; }
  .jpm-modal-inner { padding: 20px; }
  .jpm-table thead th, .jpm-table tbody td { padding: 10px; font-size: .82rem; }
  .jpm-pts-col, .jpm-status-col {text-align:center; }
  
  
  
  
  .elementor-1213 .elementor-element.elementor-element-4eff3d39 .elementor-nav-menu--dropdown{
          background-color: #1C394E!important;
  }
  .elementor-1213 .elementor-element.elementor-element-4eff3d39 .elementor-nav-menu--dropdown a{
      color: white!important;
  }
  
  .elementor-nav-menu--burger {
    display: block !important;
    position: absolute!important;
    top: 0;
    left: 0;
   
    z-index: 2;
}
.elementor-1213 .elementor-element.elementor-element-4eff3d39 div.elementor-menu-toggle svg {
    fill:white!important;
}
   
}
.jpm-avatar {
        background: #eee;
}

.jpm-intitule {
    font-size: 22Px !important;
}


body {
        background: #1C394E!important;
}



:target {
  scroll-margin-top: 200px;
}

.gp-countdown {
    display: inline;
    text-align: center;
}

span.elementor-headline-dynamic-wrapper.elementor-headline-text-wrapper {
        overflow: visible;
}

.elementor-element.elementor-element-954003e .elementor-headline-dynamic-text {
    transform: scale(1.4);
    transform-origin:-2px 2px;
}

body{
    background:#1C394E;
}

body.invalid:not(.logged-in) .menu-item-4261, body.invalid:not(.logged-in) .gp_form , body.invalid:not(.logged-in)  [data-id="e911665"], body.invalid:not(.logged-in) [data-id="51dbb8e"], body.invalid:not(.logged-in) .invalid_p {
    display:none;
}


.preloader {
   
    position:fixed;
    left:0;
    width:100vw;
    height:100vh;
    top:0;
    z-index:9999;
    background:black;
    background: #1c394e;
background: -webkit-linear-gradient(to right, #1c394e, #302b63, #1c394e); 
background: linear-gradient(to right, #24243e, #1c394e, #0f0c29); 
 opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

.preloader_wrapper {
    width: 300px;
    top:50%;
    left:50%;
    position:absolute;
    transform:translate(-50%, -50%);
    
}

.preloader_wrapper img {
    transform:scale(1.12);
}
    @-webkit-keyframes pulse {
  0% {
    -webkit-transform: scale3d(1, 1, 1);
    transform: scale3d(1, 1, 1);
  }
  50% {
    -webkit-transform: scale3d(1.05, 1.05, 1.05);
    transform: scale3d(1.05, 1.05, 1.05);
  }
  to {
    -webkit-transform: scale3d(1, 1, 1);
    transform: scale3d(1, 1, 1);
  }
}

@keyframes pulse {
  0% {
    -webkit-transform: scale3d(1, 1, 1);
    transform: scale3d(1, 1, 1);
  }
  50% {
    -webkit-transform: scale3d(1.05, 1.05, 1.05);
    transform: scale3d(1.05, 1.05, 1.05);
  }
  to {
    -webkit-transform: scale3d(1, 1, 1);
    transform: scale3d(1, 1, 1);
  }
}

.animate__pulse {
  -webkit-animation-name: pulse;
  animation-name: pulse;
  -webkit-animation-duration: 1s;
  animation-duration: 1s;
  -webkit-animation-timing-function: ease-in-out;
  animation-timing-function: ease-in-out;
  -webkit-animation-iteration-count: infinite;
  animation-iteration-count: infinite;
  

}


.rounded_gif {
      border-radius:100%;
    overflow:hidden;
    aspect-ratio: 1/1;
    
}
@-webkit-keyframes tada {
  0% {
    -webkit-transform: scale3d(1, 1, 1);
    transform: scale3d(1, 1, 1);
  }
  10%, 20% {
    -webkit-transform: scale3d(0.9, 0.9, 0.9) rotate(-3deg);
    transform: scale3d(0.9, 0.9, 0.9) rotate(-3deg);
  }
  30%, 50%, 70%, 90% {
    -webkit-transform: scale3d(1.1, 1.1, 1.1) rotate(3deg);
    transform: scale3d(1.1, 1.1, 1.1) rotate(3deg);
  }
  40%, 60%, 80% {
    -webkit-transform: scale3d(1.1, 1.1, 1.1) rotate(-3deg);
    transform: scale3d(1.1, 1.1, 1.1) rotate(-3deg);
  }
  to {
    -webkit-transform: scale3d(1, 1, 1);
    transform: scale3d(1, 1, 1);
  }
}

@keyframes tada {
  0% {
    -webkit-transform: scale3d(1, 1, 1);
    transform: scale3d(1, 1, 1);
  }
  10%, 20% {
    -webkit-transform: scale3d(0.9, 0.9, 0.9) rotate(-3deg);
    transform: scale3d(0.9, 0.9, 0.9) rotate(-3deg);
  }
  30%, 50%, 70%, 90% {
    -webkit-transform: scale3d(1.1, 1.1, 1.1) rotate(3deg);
    transform: scale3d(1.1, 1.1, 1.1) rotate(3deg);
  }
  40%, 60%, 80% {
    -webkit-transform: scale3d(1.1, 1.1, 1.1) rotate(-3deg);
    transform: scale3d(1.1, 1.1, 1.1) rotate(-3deg);
  }
  to {
    -webkit-transform: scale3d(1, 1, 1);
    transform: scale3d(1, 1, 1);
  }
}

.animate__tada {
  -webkit-animation-name: tada;
  animation-name: tada;
  -webkit-animation-duration: 1s;
  animation-duration: 1s;
  -webkit-animation-timing-function: ease-in-out;
  animation-timing-function: ease-in-out;
  -webkit-animation-iteration-count: 1;
  animation-iteration-count: 1;
}

@-webkit-keyframes fadeIn {
  0% { opacity: 0; }
  to { opacity: 1; }
}
@keyframes fadeIn {
  0% { opacity: 0; }
  to { opacity: 1; }
}
.animate__fadeIn {
    opacity:0;
  -webkit-animation-name: fadeIn;
  animation-name: fadeIn;
  -webkit-animation-duration: 1.2s;
  animation-duration: 1.2s;
  -webkit-animation-timing-function: ease-in;
  animation-timing-function: ease-in;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
   -webkit-animation-delay: 0.4s;
    animation-delay: 0.4s;
}
button.btn.add-photo-libre.jpm-btn-primary {
    display: block;
    width: 100%;
    margin-bottom: 10px;
    border: none;
}


button.btn.add-video-libre.jpm-btn-primary {
    display: block;
    width: 100%;
    margin-bottom: 10px;
    border: none;
}

.mobile_animated_title .elementor-headline-dynamic-wrapper {
    display:block;
    margin:auto;
}

[for="jpm-video-file-input"] {
        color: white;
    padding-top: 0;
}

.cluedo .jpm-btn {
    filter: invert(1);
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: black;
    box-shadow: 0 3px 12px rgba(201, 168, 76, .4);
    margin: auto;
   width: 250px;
       text-align: center;
    display: block;
    margin-top: 20px;
}

.cluedo .jpm-user-badge span {
        color: #FF00FF;
    position: relative;
    top: -3px;
    font-style: italic;
    left: 2px;
        aspect-ratio: 1 / 1;
}
.jpm-card.cluedo {
        margin-top: 40px;
}
 
.votre_groupe {
        color: var(--gray-600);
    text-align: center;
    width: 80%;
    margin-left: 10%;
    margin-bottom: 10px;
    font-style: italic;
        margin-top: 10px;
    border: 1px solid;
    padding: 5px;
    margin-bottom: 20px;
    font-weight: 600;
    color: #000;
}

.instruction_cluedo {
    color: #000;
    text-align: left;
    width: 80%;
    margin-left: 10%;
    margin-bottom: 10px;
    font-size: 18px;
    line-height: 28px;

    }
    .jeu_wrapper hr {
    margin-top: 20px !important;
    margin-bottom: 20px !important;
}
.instruction_cluedo hr {
    margin-top: 20px !important;
    margin-bottom: 20px !important;
}

.instruction_cluedo > div {
    margin-bottom: 15px;
}

.jeu_wrapper > div {
    margin-bottom: 15px;
}

select#vote {
    margin-top:20px;
}
.jeu_wrapper {
     color: #000;
    width: 80%;
    margin-left: 10%;
    margin-bottom: 10px;
    font-size: 18px;
    line-height: 28px;

}
@media (max-width:600px) {
    .jeu_wrapper, .instruction_cluedo {
               width: 96%;
        margin-left: 2%;
    }
}
body:not(.win):not(.triche) .jpm-btn.success {
    display:none;
}

body:not(.fail):not(.triche) .jpm-btn.failed  {
    display:none;
}


.instruction_cluedo h2, .instruction_cluedo h3 {
    text-align: center;
}
.jeu_wrapper h2 {
    text-align: center;
}
.jpm-filter-status {
    display:none;
}

.instruction_cluedo .instruction_cluedo {
    margin-left: 0;
    width: 100%;
}

header h2 {
    cursor: pointer;
}
@media (max-width: 600px) {
    body .elementor-1213 .elementor-element.elementor-element-4eff3d39 .elementor-nav-menu__container.elementor-nav-menu--dropdown {
            top: 0px!important;
    position: fixed!important;
    height: 100vh!important;
    z-index: -1!important;
        margin-top: 0 !important;
    }
    body.admin-bar  .elementor-1213 .elementor-element.elementor-element-4eff3d39 .elementor-nav-menu__container.elementor-nav-menu--dropdown {
        top: 46px!important;
        height: calc(100vh - 46px)!important;
    }
    .elementor-1213 .elementor-element.elementor-element-4eff3d39 .elementor-nav-menu__container.elementor-nav-menu--dropdown > ul{
        padding-top: 60px!important;
        max-height: calc(100vh - 60px)!important;;
        overflow: scroll!important;;
        display: block!important;;
        height: 100vh!important;;
    }
    .elementor-1213 .elementor-element.elementor-element-4eff3d39 .elementor-nav-menu .elementor-item {
        text-align:center;
    }
    
 
    .jpm-gallery-item {
                margin-bottom: 5%;
    }
     

        .jpm-lb-footer {
         padding: 7px 9px!important;
             display: flex;
    flex-direction: column;
    align-items: flex-start!important;
        }
        
    

.jpm-gallery-caption {
        justify-content: center;
}
}

.jpm-my-photo-item {
       cursor: pointer;
}


/* === Bouton principal === */
.jpm-select-mode-btn {
   display: inline-block;
    padding: 12px 24px;
    /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin: 20px 0;
    transition: all 0.3s ease;
    /* box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4); */
    border: 2Px solid white;
 
   
}
.jpm-select-mode-btn:hover {
     background:transparent!important;
    transform: translateY(-2px);
  
}
.jpm-select-mode-btn:focus {
    transform: translateY(-2px);
    background:transparent!important;
  
}

/* === Mode sélection actif === */
body.jpm-select-mode .jpm-gallery-item {
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}
body.jpm-select-mode .jpm-gallery-item::after {
    content: '';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 3px solid #fff;
    background: rgba(0,0,0,0.3);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    transition: all 0.2s ease;
    z-index: 10;
    pointer-events: none;
}
body.jpm-select-mode .jpm-gallery-item.jpm-selected::after {
    content: '✓';
    background: #667eea;
    border-color: #fff;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 28px;
    text-align: center;
}
body.jpm-select-mode .jpm-gallery-item.jpm-selected {
    outline: 3px solid #667eea;
    outline-offset: -3px;
  
}
body.jpm-select-mode .jpm-gallery-item:not(.jpm-selected) {
    opacity: 0.6;
}
body.jpm-select-mode .jpm-gallery-item:hover {
    opacity: 1 !important;
}

/* Désactiver les liens lightbox en mode sélection */
body.jpm-select-mode .jpm-lightbox-link {
    pointer-events: none;
}

/* === Boutons par section === */
.jpm-section-select-btns {
    display: none;
    gap: 8px;
  
    flex-wrap: wrap;
}
body.jpm-select-mode .jpm-section-select-btns {
    display: flex;
}
.jpm-section-btn {
    padding: 6px 14px;
    border: 2px solid #667eea;
    background: transparent;
    color: #667eea;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: .78rem;
    color: white;
        padding: 4px 10px;
}
.jpm-section-btn:hover {
    background: #667eea;
    color: #fff;
}
.jpm-section-btn:focus {
    background: #667eea;
    color: #fff;
}

/* === Barre fixe en bas === */
.jpm-download-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    padding: 15px 20px;
    z-index: 999;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
    animation: jpm-slide-up 0.3s ease;
}
@keyframes jpm-slide-up {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}
.jpm-download-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 10px;
}
#jpm-selected-count {
    font-size: 15px;
    font-weight: 600;
    min-width: 180px;
}
.jpm-download-bar-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* === Boutons de la barre === */
.jpm-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.jpm-btn-outline {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
}
.jpm-btn-outline:hover {
    background: rgba(255,255,255,0.2);
}
.jpm-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}
.jpm-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.5);
}
.jpm-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
.jpm-btn-cancel {
    background: rgba(255,82,82,0.2);
    color: #ff5252;
    border: 1px solid rgba(255,82,82,0.4);
}
.jpm-btn-cancel:hover {
    background: rgba(255,82,82,0.4);
}

/* === Barre de progression === */
#jpm-progress-container {
    max-width: 1200px;
    margin: 10px auto 0;
    display: flex;
    align-items: center;
    gap: 12px;
}
.jpm-progress-bar {
    flex: 1;
    height: 8px;
    background: rgba(255,255,255,0.15);
    border-radius: 4px;
    overflow: hidden;
}
.jpm-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 4px;
    transition: width 0.3s ease;
}
#jpm-progress-text {
    font-size: 13px;
    font-weight: 600;
    min-width: 40px;
}

  .jpm-download-bar-actions .jpm-btn:focus {
      background:none;
  }
/* === Responsive === */
@media (max-width: 768px) {
    .jpm-download-bar { padding: 12px 15px;
    max-height: 40vh;
    overflow: scroll; }
    #jpm-selected-count + p {
    display: none;
}
    #jpm-moderate-count + p {
    display: none;
}
    .jpm-download-bar-inner { flex-direction: column; text-align: center; }
    .jpm-download-bar-actions { justify-content: center; }
    .jpm-btn { padding: 8px 12px; font-size: 12px; }
    .jpm-download-bar-actions .jpm-btn {
        width: 100%;
        margin-bottom: -24px;
        text-align: center !important;
        justify-content: center;
    }

}


 .btn-ctrl button {
    width: 48%;
}

.btn-ctrl {
display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
    }
    
@media (max-width: 600px) {
     .btn-ctrl button {
    width: 100%;
            width: 96% !important;
        margin-left: 2% !important;
        margin-bottom: -10px;
}

.btn-ctrl {
display: flex;
    flex-direction: column;
 margin-bottom: 10px;
         position: relative;
        top: -20px;
}
}
 
.inner-menu {
  /* Menu Container */
}
.inner-menu #menuContainer {
  position: relative;
  z-index: 1000;
}


.menu-trigger-btn {
   display: inline-block;
    padding: 12px 24px;
    /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin: 20px 0;
    transition: all 0.3s ease;
    /* box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4); */
    border: 2Px solid white;
 
   
}
.menu-trigger-btn:hover {
     background:transparent!important;
    transform: translateY(-2px);
  
}
.menu-trigger-btn:focus {
    transform: translateY(-2px);
    background:transparent!important;
  
}
.inner-menu .menu-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(28, 57, 78, 0.85);
  backdrop-filter: blur(5px);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.inner-menu .menu-popup-overlay.active {
  opacity: 1;
  visibility: visible;
}
.inner-menu {
  /* Popup Menu */
}
.inner-menu .menu-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 90%;
  max-width: 800px;
  max-height: 80vh;
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.inner-menu .menu-popup.active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}
.inner-menu {
  /* Popup Header */
}
.inner-menu .menu-popup-header {
  padding: 30px;
  background: linear-gradient(135deg, #1C394E 0%, #2a5470 100%);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 3px solid #F5A77F;
}
.inner-menu .menu-popup-title {
  font-size: 28px;
  font-weight: 700;
  margin: 0;
}
.inner-menu .menu-close-btn {
  background: rgba(245, 167, 127, 0.3);
  border: 2px solid #F5A77F;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}
.inner-menu .menu-close-btn:hover {
  background: #F5A77F;
  color: #1C394E;
  transform: rotate(90deg);
}
.inner-menu {
  /* Menu List */
}
.inner-menu .menu-popup-content {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}
.inner-menu .nav-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 15px;
}
.inner-menu .nav-menu li {
  margin: 0;
}
.inner-menu .nav-menu li a {
  display: block;
  padding: 20px 25px;
  background: #f8f9fa;
  color: #1C394E;
  text-decoration: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.3s ease;
  border-left: 4px solid transparent;
  position: relative;
  overflow: hidden;
}
.inner-menu .nav-menu li a::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: linear-gradient(135deg, #1C394E 0%, #2a5470 100%);
  transition: width 0.3s ease;
  z-index: -1;
}
.inner-menu .nav-menu li a:hover::before {
  width: 100%;
}
.inner-menu .nav-menu li a::after {
  content: "→";
  position: absolute;
  right: 20px;
  opacity: 0;
  transition: all 0.3s ease;
  color: #F5A77F;
}
.inner-menu .nav-menu li a:hover::after {
  opacity: 1;
  right: 15px;
}
.inner-menu {
  /* Badge numéro */
}
.inner-menu .nav-menu li a .item-number {
    display: inline-block;
    background: #1C394E;
    color: white;
    font-size: 12px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
    margin-right: 10px;
    aspect-ratio: 1 / 1;
    display: inline-flex;
    flex-wrap: wrap;
    align-content: center;
    justify-content: center;
    padding: 0;
    width: 25px;
}
.inner-menu {
  /* Scrollbar personnalisée */
}
/*
.inner-menu .menu-popup-content::-webkit-scrollbar {
  width: 8px;
}
.inner-menu .menu-popup-content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}
.inner-menu .menu-popup-content::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #1C394E 0%, #F5A77F 100%);
  border-radius: 10px;
}
.inner-menu .menu-popup-content::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #F5A77F 0%, #1C394E 100%);
}
*/
.inner-menu {
  /* Responsive */
}
@media (max-width: 768px) {
  .inner-menu .menu-trigger-btn {
    padding: 12px 20px;
    font-size: 14px;
  }
  .inner-menu .menu-popup {
    width: 95%;
    max-height: 90vh;
    border-radius: 15px;
  }
  .inner-menu .menu-popup-header {
    padding: 20px;
  }
  .inner-menu .menu-popup-title {
    font-size: 22px;
  }
  .inner-menu .nav-menu {
    grid-template-columns: 1fr;
  }
  .inner-menu .nav-menu li a {
    padding: 18px 20px;
    font-size: 15px;
  }
}
@media (max-width: 480px) {
  .inner-menu .menu-trigger-btn {
    padding: 10px 18px;
    font-size: 13px;
  }
  .inner-menu .menu-popup-title {
    font-size: 18px;
  }
  .inner-menu .menu-close-btn {
    width: 35px;
    height: 35px;
    font-size: 20px;
  }
}
.inner-menu {
  /* Animation d'entrée pour les items */
}
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.inner-menu .menu-popup.active .nav-menu li {
  animation: slideIn 0.4s ease forwards;
  opacity: 0;
}
.inner-menu .menu-popup.active .nav-menu li:nth-child(1) {
  animation-delay: 0.1s;
}
.inner-menu .menu-popup.active .nav-menu li:nth-child(2) {
  animation-delay: 0.15s;
}
.inner-menu .menu-popup.active .nav-menu li:nth-child(3) {
  animation-delay: 0.2s;
}
.inner-menu .menu-popup.active .nav-menu li:nth-child(4) {
  animation-delay: 0.25s;
}
.inner-menu .menu-popup.active .nav-menu li:nth-child(5) {
  animation-delay: 0.3s;
}
.inner-menu .menu-popup.active .nav-menu li:nth-child(6) {
  animation-delay: 0.35s;
}
.inner-menu .menu-popup.active .nav-menu li:nth-child(7) {
  animation-delay: 0.4s;
}
.inner-menu .menu-popup.active .nav-menu li:nth-child(8) {
  animation-delay: 0.45s;
}
.inner-menu .menu-popup.active .nav-menu li:nth-child(9) {
  animation-delay: 0.5s;
}
.inner-menu .menu-popup.active .nav-menu li:nth-child(10) {
  animation-delay: 0.55s;
}

.elementor-page-5014 .jpm-lb-defi-badge-pts {
    display:none;
}

#scrollTopBtn {
  display: none;        /* Hidden by default */
  position: fixed;      /* Fixed position */
  bottom: 20px;         /* 20px from bottom */
  right: 30px;          /* 30px from right */
  z-index: 99;          /* Sit on top of other elements */
  border: none;
  outline: none;
  background-color: #1C394E; /* Color */
  color: white;
  cursor: pointer;
  padding: 15px;
  border-radius: 50%;   /* Circular button */
  font-size: 18px;
  width: 50px;
  height: 50px;
  transition: opacity 0.3s;
  border:2px solid #FFD335;
      line-height: 18px;

}

#scrollTopBtn:hover {
  background-color: #555; /* Darker on hover */
}

.jpm-video-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #0f0f23;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    height:250px;
        display: inline-block;
}
.jpm-video-thumb img {
    width: 100%; height: 100%; object-fit: cover;
}
.jpm-video-thumb-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
}
.jpm-play-icon {
    font-size: 2.5rem; color: rgba(255,255,255,0.6);
}
.jpm-video-badge {
    position: absolute; bottom: 8px; left: 8px;
    background: rgba(0,0,0,0.7);
    color: #f59e0b; font-size: .72rem; font-weight: 700;
    padding: 2px 8px; border-radius: 10px;
    backdrop-filter: blur(4px);
}

.jpm-lb-video {
    max-width: 100%; max-height: 61vh;
    object-fit: contain;
    display: block;
    border-radius: var(--radius-sm, 6px);
    margin: 10px 0;
    outline: none;
    background: #000;
}
.jpm-lb-media-wrap {
    display: flex; align-items: center; justify-content: center;
    width: 100%; height: 100%;
}

.jpm-lb-video {
    max-width: 100%; max-height: 61vh;
    object-fit: contain;
    display: block;
    border-radius: var(--radius-sm, 6px);
    margin: 10px 0;
    outline: none;
    background: #000;
}
.jpm-lb-media-wrap {
    display: flex; align-items: center; justify-content: center;
    width: 100%; height: 100%;
}.jpm-video-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 8px;
    background: #000;
}
.main_video_thumb {
        height: 350px;
}
.main_video_thumb  img{
 height: 100%!important;
}
.jpm-video-badge {
    position: absolute;
    bottom: 6px;
    left: 8px;
    background: rgba(0, 0, 0, 0.65);
    color: #f59e0b !important;
    font-size: .75rem !important;
    font-weight: 700;
    padding: 2px 8px !important;
    border-radius: 10px;
    backdrop-filter: blur(4px);
    pointer-events: none;
}
/* ─── Lightbox : barre d'actions (like / modération / téléchargement) ─────── */
.jpm-lb-media-wrap {
    position: relative;
}
.jpm-lb-actions {
    position: absolute;
    top: 12px;
    right: -2px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 20;
}
.jpm-lb-action {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1.5px solid rgba(255,255,255,.18);
    border-radius: 50px;
    color: #fff;
    font-size: 1.15rem;
    padding: 6px 12px;
    cursor: pointer;
    text-decoration: none;
    transition: background .2s, transform .15s, border-color .2s;
    user-select: none;
    line-height: 1;
}
.jpm-lb-action:hover {
    background: rgba(255,255,255,.18);
    transform: scale(1.08);
    border-color: rgba(255,255,255,.45);
}
.jpm-lb-like-count {
    font-size: .85rem;
    font-weight: 700;
    min-width: 14px;
    text-align: center;
}
.jpm-lb-like.jpm-liked {
    background: rgba(220,38,38,.55);
    border-color: rgba(255,100,100,.5);
    animation: jpmLikePop .35s cubic-bezier(.36,.07,.19,.97);
}
@keyframes jpmLikePop {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.35); }
    70%  { transform: scale(.9); }
    100% { transform: scale(1); }
}
.jpm-lb-mod.jpm-mod-active {
    background: rgba(234,179,8,.55);
    border-color: rgba(255,200,0,.5);
}

/* ─── Galerie : items modérés ───────────────────────────────────────────────── */
/* Par défaut : masqué pour tout le monde (joueurs ordinaires ET modérateurs) */
.jpm-gallery-item.jpm-modere {
    display: none;
}
/* Modérateurs avec "Afficher les médias modérés" actif : visible avec badge */
body.jpm-moderes-visibles .jpm-gallery-item.jpm-modere {
    display: block;
    opacity: .45;
    filter: grayscale(1);
    position: relative;
}
body.jpm-moderes-visibles .jpm-gallery-item.jpm-modere::after {
    content: '🚫';
    position: absolute;
    top: 6px;
    left: 6px;
    font-size: 1.4rem;
    pointer-events: none;
    z-index: 5;
}

/* ─── Animation cœurs volants ──────────────────────────────────────────────── */
.jpm-lb-hearts-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 25;
}
.jpm-flying-heart {
    position: absolute;
    pointer-events: none;
    animation: jpmHeartFly var(--dur, 1s) ease-out forwards;
    will-change: transform, opacity;
}
@keyframes jpmHeartFly {
    0%   { transform: translateY(0) translateX(0) rotate(0deg) scale(var(--scale,1)); opacity: 1; }
    60%  { opacity: 1; }
    100% { transform: translateY(-160px) translateX(var(--tx,0px)) rotate(var(--rot,0deg)) scale(var(--scale,1)); opacity: 0; }
}

/* ─── Bouton modérateur : afficher/cacher les médias modérés ───────────────── */
#jpm-modo-bar {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
#jpm-modo-bar.jpm-modo-active {
    background: rgba(234,179,8,.18);
    border-color: #ca8a04;
    color: #ca8a04;
}

/* ─── Badge "likes" sur les miniatures de la galerie ────────────────────────── */
.jpm-thumb-like-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    display: flex;
    align-items: center;
    gap: 3px;
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 50px;
    padding: 3px 8px;
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
    z-index: 4;
    pointer-events: none;
    line-height: 1.2;
}
.jpm-thumb-like-badge.jpm-liked-by-me {
    background: rgba(220,38,38,.6);
}

/* ─── Placeholder vidéo dans l'upload multi (preview list) ──────────────────── */
.jpm-preview-item {
    width: 90px;
    height: 90px;
    border-radius: var(--radius-sm, 8px);
    overflow: hidden;
    flex-shrink: 0;
}
.jpm-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.jpm-upload-video-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1f2937, #111827);
    border-radius: var(--radius-sm, 8px);
    position: relative;
    overflow: hidden;
}
.jpm-upload-video-placeholder::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        45deg,
        rgba(255,255,255,.04) 0px,
        rgba(255,255,255,.04) 8px,
        transparent 8px,
        transparent 16px
    );
}
.jpm-upload-video-icon {
    font-size: 2rem;
    z-index: 1;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,.5));
}

[data-elementor-type="footer"].elementor-location-footer {
        margin-top: 20px;
}
span.jpm-badge.jpm-badge-count {
    margin-left: 5Px;
}
.jpm-lb-action {
    justify-content: center;
    
}
body.jpm-is-modo .btn-ctrl {
  justify-content: space-between;
}


body.jpm-is-modo .btn-ctrl button {
    width:24%;
}

button#jpm-modo-bar {
    text-align: center;
    justify-content: center;
}

/* ─── Mode modération à la volée ────────────────────────────────────────────── */
body.jpm-moderate-mode .jpm-gallery-item {
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}
/* Pastille de sélection — rouge pour le mode modération */
body.jpm-moderate-mode .jpm-gallery-item::after {
    content: '';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 3px solid #fff;
    background: rgba(0,0,0,0.3);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    transition: all 0.2s ease;
    z-index: 10;
    pointer-events: none;
}
body.jpm-moderate-mode .jpm-gallery-item.jpm-mod-selected::after {
    content: '🚫';
    background: rgba(220,38,38,.85);
    border-color: #fff;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 28px;
    text-align: center;
}
body.jpm-moderate-mode .jpm-gallery-item.jpm-mod-selected {
    outline: 3px solid #dc2626;
    outline-offset: -3px;
}
body.jpm-moderate-mode .jpm-gallery-item:not(.jpm-mod-selected) {
    opacity: 0.65;
}
body.jpm-moderate-mode .jpm-gallery-item:hover {
    opacity: 1 !important;
}
/* Désactiver les liens lightbox en mode modération */
body.jpm-moderate-mode .jpm-lightbox-link {
    pointer-events: none;
}
/* Barre de modération – réutilise jpm-download-bar mais avec teinte rouge */
.jpm-moderate-bar {
    border-top-color: rgba(220,38,38,.35) !important;
    background: rgba(25,10,10,.92) !important;
}
/* Bouton danger */
.jpm-btn-danger {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform .15s, box-shadow .15s, opacity .15s;
    box-shadow: 0 4px 14px rgba(220,38,38,.4);
}
.jpm-btn-danger:hover  { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(220,38,38,.55); }
.jpm-btn-danger:active { transform: translateY(0); }
.jpm-btn-danger:disabled { opacity: .45; cursor: not-allowed; transform: none; }


.jpm-lb-defi-badge-pts.pts-hidden {
    opacity:0;
}



@media (max-width: 600px) {
    .jpm-lb-actions {
        transform: scale(0.8);
    transform-origin: center center;
    top: 5px;
    right: -3px;
    }
}
