/******************************************************
 * 0) VARIABLES GLOBALES & PALETTE
 ******************************************************/
:root {
  --cm-color-primary: #002a61;       /* Bleu profond principal */
  --cm-color-secondary: #ffd600;     /* Jaune vif (complémentaire) */
  --cm-color-accent: #ff4081;        /* Accent rose/magenta */
  --cm-color-bg: #fafafa;           /* Arrière-plan global */
  --cm-color-card-bg: #fff;         /* Fond des cartes */
  --cm-color-text: #333;            /* Couleur de texte par défaut */
  --cm-color-subtext: #666;         /* Texte secondaire */
  --cm-color-border: #ddd;          /* Bordures légères */
  --cm-color-muted: #999;           /* Couleur “fade” pour icônes/informations secondaires */

  /* Boutons, ombres et transitions */
  --cm-btn-primary-bg: var(--cm-color-primary);
  --cm-btn-primary-hover: #001b42;
  --cm-btn-secondary-bg: #e4e4e4;
  --cm-btn-secondary-hover: #dcdcdc;
  --cm-shadow-soft: 0 2px 8px rgba(0, 0, 0, 0.08);
  --cm-shadow-hover: 0 8px 20px rgba(0, 0, 0, 0.15);
  --cm-transition-fast: 0.2s ease;
  --cm-transition-normal: 0.3s ease;
  --cm-transition-slow: 0.4s ease;
}




/******************************************************
 * 1) RESET DE BASE
 ******************************************************/
*,
*::before,
*::after {
  box-sizing: border-box;
}
html, body {
  margin: 0;
  padding: 0;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--cm-color-bg);
  color: var(--cm-color-text);
}

/******************************************************
 * 2) CONTENEUR GLOBAL DE LA PAGE
 ******************************************************/
.cm-advanced-selection-page {
  margin: 0 auto;
  padding: 10px 20px;
  max-width: 1200px;
}

/******************************************************
 * (Optionnel) Titre de la section filtres
 ******************************************************/
.cm-filters-title {
  font-size: 1.2rem;
  margin-bottom: 10px;
  font-weight: 600;
  color: var(--cm-color-text);
}

/******************************************************
 * 3) INDICATEUR D'ÉTAPES (Desktop + Mobile)
 ******************************************************/
.cm-steps-indicator {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 30px;
  padding: 20px 0;
  justify-content: center;
  margin-top:120px;
}
.cm-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #aaa;
  transition: color var(--cm-transition-normal);
  position: relative;
}
.cm-step-circle {
  width: 40px;
  height: 40px;
  background-color: #eee;
  border-radius: 50%;
  text-align: center;
  line-height: 40px;
  margin-bottom: 5px;
  font-weight: bold;
  font-size: 1.1rem;
  transition: background-color var(--cm-transition-normal);
  color: #555;
}
.cm-step-label {
  font-size: 0.9rem;
  text-align: center;
  min-width: 90px;
}
.cm-step.active {
  color: var(--cm-color-primary);
}
.cm-step.active .cm-step-circle {
  background-color: var(--cm-color-primary);
  color: #fff;
}
.cm-step.completed {
  color: #666;
}
.cm-step.completed .cm-step-circle {
  background-color: #555;
  color: #fff;
  opacity: 0.8;
}
.cm-steps-line {
  position: absolute;
  bottom: 20px;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: #ccc;
  z-index: -1;
  --cm-steps-fill: 0%;
}
.cm-steps-line::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: var(--cm-steps-fill);
  background-color: var(--cm-color-primary);
  transition: width var(--cm-transition-slow);
  z-index: 2;
}

/* Sur mobile, on peut afficher un indicateur simplifié */
.cm-steps-mobile {
  display: none;
}
@media (min-width: 768px) {
  .cm-steps-desktop { /* affiche l’indicateur normal sur desktop */ }
  .cm-steps-mobile {
    display: none; /* masqué sur desktop */
  }
}
@media (max-width: 767px) {
  .cm-steps-desktop {
    display: none;
  }
  .cm-steps-mobile {
    display: block;
    margin-bottom: 20px;
  }
  .cm-steps-mobile-label {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 6px;
    color: #333;
    text-align: center;
  }
  .cm-steps-mobile-progress-bar {
    width: 80%;
    height: 6px;
    background: #ddd;
    border-radius: 3px;
    margin: 0 auto;
    position: relative;
  }
  .cm-steps-mobile-progress-fill {
    height: 6px;
    border-radius: 3px;
    background: var(--cm-color-primary);
    width: 0%;
    transition: width 0.4s ease;
  }
}

/******************************************************
 * 4) FILTRES : Disposition responsive
 ******************************************************/
.cm-filters-wrapper {
  margin-bottom: 25px;
}
.cm-filters-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
}
.cm-filter-group {
  display: flex;
  flex-direction: column;
  min-width: 150px;
}
.cm-filter-group label {
  font-weight: bold;
  margin-bottom: 5px;
  color: #444;
}
.cm-filter-group input[type="text"],
.cm-filter-group select {
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  background-color: #fff;
  outline: none;
}

/* Boutons Filtrer / Réinitialiser */
.cm-filter-buttons {
  display: flex;
  flex-wrap: wrap; 
  gap: 10px;
  align-items: center;
}

/* Sur desktop (>=992px), on positionne en grid :
   - 2fr pour la recherche
   - 3 colonnes (1fr) pour Durée, Pays, Type
   - auto pour les boutons */
@media (min-width: 992px) {
  .cm-filters-row {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr) auto;
    align-items: end;
  }
}
/* Sur mobile (< 768px), on passe en colonne, tout s’empile. */
@media (max-width: 767px) {
  .cm-filters-row {
    flex-direction: column;
  }
  .cm-filter-group,
  .cm-filter-buttons {
    width: 100%;
  }
}

/******************************************************
 * 5) BOUTONS GLOBAUX (Filter, Reset, etc.)
 ******************************************************/
.cm-btn-filter,
.cm-btn-reset {
  padding: 10px 16px;
  border: none;
  border-radius: 24px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: background-color var(--cm-transition-fast), transform var(--cm-transition-fast);
}
.cm-btn-filter {
  background-color: var(--cm-btn-primary-bg);
  color: #fff;
}
.cm-btn-filter:hover {
  background-color: var(--cm-btn-primary-hover);
  transform: translateY(-2px);
}
.cm-btn-reset {
  background-color: var(--cm-btn-secondary-bg);
  color: #333;
}
.cm-btn-reset:hover {
  background-color: var(--cm-btn-secondary-hover);
  transform: translateY(-2px);
}

/******************************************************
 * 6) GRILLE DE PACKS GÉNÉRIQUE
 ******************************************************/
.cm-packs-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 80px; /* Laisse de la place en bas pour barre sticky */
}
.cm-pack-card {
  background-color: var(--cm-color-card-bg);
  border: 1px solid var(--cm-color-border);
  border-radius: 12px;
  width: calc(33.333% - 20px);
  position: relative;
  overflow: hidden;
  box-shadow: var(--cm-shadow-soft);
  transition: box-shadow var(--cm-transition-normal), transform var(--cm-transition-normal);
}
.cm-pack-card:hover {
  box-shadow: var(--cm-shadow-hover);
  transform: translateY(-3px);
}
/* Image */
.cm-pack-image {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}
.cm-pack-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform var(--cm-transition-slow);
}
.cm-pack-card:hover .cm-pack-image img {
  transform: scale(1.03);
}

/* Icônes wishlist/partage */
.cm-heart-btn,
.cm-share-icon {
  position: absolute;
  top: 15px;
  font-size: 1.2rem;
  color: white;
  cursor: pointer;
  z-index: 2;
  transition: color var(--cm-transition-fast), opacity var(--cm-transition-fast), transform var(--cm-transition-fast);
  opacity: 0;
  transform: translateY(-10px);
  padding: 1px 7px;
}
.cm-heart-btn {
  right: 50px;
}
.cm-share-icon {
  right: 15px;
}
.cm-pack-card:hover .cm-heart-btn,
.cm-pack-card:hover .cm-share-icon {
  opacity: 1;
  transform: translateY(0);
}
.cm-heart-btn:hover,
.cm-share-icon:hover {
  color: var(--cm-color-primary);
}

/* Catégorie (pays) */
.cm-pack-cat {
  position: absolute;
  top: 15px;
  left: 15px;
  background-color: rgba(0, 42, 97, 0.8);
  color: #fff;
  font-size: 0.75rem;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 14px;
  font-weight: 600;
  backdrop-filter: blur(2px);
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
  z-index: 2;
}
/* Titre & sous-titre */
.cm-pack-title {
  margin: 16px 15px 8px 15px;
  font-size: 1.2rem;
  font-weight: bold;
  line-height: 1.4;
  color: var(--cm-color-text);
}
.cm-pack-subtitle {
  margin: 0 15px 12px 15px;
  font-size: 1rem;
  color: var(--cm-color-subtext);
  font-style: italic;
  line-height: 1.3;
}
/* Description courte */
.cm-pack-shortdesc {
  margin: 0 15px 16px 15px;
  font-size: 0.95rem;
  color: var(--cm-color-subtext);
  line-height: 1.5;

  /* Limitation en multi-lignes */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3; /* Nombre de lignes maximum */
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Actions (boutons Sélection / Voir +) */
.cm-pack-actions {
  display: flex;
  gap: 2px;
  margin-bottom: 20px!important;
  justify-content: space-around;
  border-radius: 24px !important;
}

.cm-reward-select-btn,.cm-reward-edit-btn {
  border-radius: 24px !important;
   margin-bottom: 20px!important;
  padding: 5px 15px 5px 15px !important;
}
.cm-select-btn {
  display: inline-block;
  background: var(--cm-btn-primary-bg);
  color: #fff;
  border: none;
  border-radius: 24px !important;
  padding: 10px 20px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: background-color var(--cm-transition-fast), transform var(--cm-transition-fast);
  white-space: nowrap;
  line-height: 1.2;
}
.cm-select-btn:hover {
  background-color: var(--cm-btn-primary-hover);
  transform: translateY(-2px);
}
.cm-select-btn:disabled {
  background-color: #fff;
  cursor: not-allowed;
  opacity: 0.2 !important;
}
.cm-view-more-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-size: 0.95rem;
  background-color: #fff;
  color: var(--cm-color-text);
  padding: 8px 16px;
  border-radius: 24px;
  border: 1px solid var(--cm-color-border);
  transition: background-color var(--cm-transition-fast), color var(--cm-transition-fast), transform var(--cm-transition-fast);
  line-height: 1.2;
}
.cm-view-more-link::after {
  content: "\f061"; /* icône Font Awesome (flèche) */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  margin-left: 4px;
}
.cm-view-more-link:hover {
  background-color: var(--cm-btn-secondary-hover);
  color: var(--cm-color-primary);
  transform: translateY(-2px);
}
/* Responsive grille packs */
@media (max-width: 992px) {
  .cm-pack-card {
    width: calc(50% - 20px);
  }
}
@media (max-width: 600px) {
  .cm-pack-card {
    width: 100%;
  }
}

/******************************************************
 * 7) ICONES (ex: .cm-pack-icon)
 ******************************************************/
.cm-pack-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  margin-left: 15px;
}

/******************************************************
 * 8) BARRE STICKY EN BAS + BOUTONS
 ******************************************************/
/* Barre sticky (commune à toutes les étapes) */
.cm-sticky-bottom-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #fff; /* ou #f9f9f9 si préféré */
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 -2px 6px rgba(0,0,0,0.15);
  border-top: 1px solid #ccc; /* si besoin */
  z-index: 10000; 
}

/* Boutons "Primary" et "Secondary" (généralise le style .cm-btn-filter/.cm-btn-reset) */
.cm-btn-primary {
  padding: 10px 16px;
  border: none;
  border-radius: 24px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  background-color: var(--cm-btn-primary-bg);
  color: #fff;
  transition: background-color var(--cm-transition-fast), transform var(--cm-transition-fast);
}
.cm-btn-primary:hover:enabled {
  background-color: var(--cm-btn-primary-hover);
  transform: translateY(-2px);
}
.cm-btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.cm-btn-secondary {
  padding: 10px 16px;
  border: none;
  border-radius: 24px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  background-color: var(--cm-btn-secondary-bg);
  color: #333;
  transition: background-color var(--cm-transition-fast), transform var(--cm-transition-fast);
}
.cm-btn-secondary:hover:enabled {
  background-color: var(--cm-btn-secondary-hover);
  transform: translateY(-2px);
}
.cm-btn-secondary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/******************************************************
 * 9) BOUTON (icône) pour OUVRIR un tiroir (Wishlist)
 ******************************************************/
.cm-btn-drawer {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: var(--cm-color-accent);
  color: #fff;
  padding: 12px 20px;
  border-radius: 24px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: transform var(--cm-transition-fast), background-color var(--cm-transition-fast);
  position: fixed;
  bottom: 80px; /* Ajuste si tu veux qu’il s’aligne différemment */
  right: 20px;  /* Permet un bouton “floating” */
  z-index: 15000;
}
.cm-btn-drawer i {
  font-size: 1rem;
}
.cm-btn-drawer:hover {
  background-color: #e83775;
  transform: translateY(-2px);
}
.cm-wishlist-badge {
  display: inline-block;
  position: absolute;
  top: -5px;
  right: -5px; 
  background-color: red;
  color: #fff;
  font-size: 0.8rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  text-align: center;
  line-height: 18px;
  font-weight: bold;
}
@media (max-width: 600px) {
  .cm-btn-drawer .wishlist-label {
    display: none;
  }
  .cm-btn-drawer {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    padding: 0;
    justify-content: center;
  }
  .cm-btn-drawer i.fa-heart {
    font-size: 1.2rem;
  }
}

/******************************************************
 * 10) TIROIR (DRAWER) WISHLIST (bas de page)
 ******************************************************/
.cm-drawer-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.3);
  z-index: 1900;
  display: none;
}
.cm-drawer-backdrop.active {
  display: block;
}
.cm-drawer-bottom {
  position: fixed;
  bottom: 0; 
  left: 0;
  width: 100%;
  max-height: 60%;
  background: #fff;
  border-top: 2px solid #ddd;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.2);
  padding: 15px;
  transform: translateY(100%);
  transition: transform var(--cm-transition-slow);
  z-index: 11000;
}
.cm-drawer-bottom.open {
  transform: translateY(0);
}
.cm-drawer-header {
  position: relative;
  margin-bottom: 10px;
  text-align: center;
}
.cm-drawer-header h3 {
  font-size: 1.2rem;
  margin: 0;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.cm-drawer-close-btn {
  position: absolute;
  top: 0; 
  right: 0;
  font-size: 26px;
  color: #999;
  cursor: pointer;
  font-weight: bold;
  line-height: 1;
}
.cm-drawer-close-btn:hover {
  color: #333;
}
.cm-wishlist-scroller {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 5px;
  margin-bottom: 10px;
  scroll-behavior: smooth;
}
.cm-wishlist-item {
  min-width: 120px;
  background: #f8f8f8;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 10px;
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color var(--cm-transition-fast);
}
.cm-wishlist-item:hover {
  background-color: #f0f0f0;
}
.cm-wish-thumb {
  width: 80px;
  height: auto;
  border-radius: 4px;
  display: block;
  margin-bottom: 5px;
}
.cm-wish-info {
  font-size: 0.9rem;
  color: #333;
}
.cm-remove-wishlist-btn {
  position: absolute;
  top: 4px; 
  right: 6px;
  font-size: 16px;
  color: #c00;
  cursor: pointer;
  font-weight: bold;
}
.cm-remove-wishlist-btn:hover {
  color: #900;
}
.cm-selection-unique {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #ddd;
}
.cm-drawer-footer {
  margin-top: 10px;
  text-align: center;
}

/******************************************************
 * 11) TOASTS (notifications)
 ******************************************************/
#cm-toast-container,
.cm-toast-container {
  position: fixed;
  top: 20px; 
  right: 20px;
  z-index: 13000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: auto;
  max-width: 300px;
}
.cm-toast {
  background-color: #333;
  color: #fff;
  padding: 12px 16px;
  border-radius: 6px;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity var(--cm-transition-normal), transform var(--cm-transition-normal);
  font-size: 0.9rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.cm-toast.show {
  opacity: 1;
  transform: translateY(0);
}
.cm-toast-warning {
  background-color: #e67e22;
}
.cm-toast-error {
  background-color: #c0392b;
}
.cm-toast-info {
  background-color: #36c;
}
/* Autre bloc toasts (CODE 2) */
.cm-toast-container .cm-toast {
  animation: fadeSlideIn 0.3s ease;
}
@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/******************************************************
 * 12) MODAL (Version "Pack Modal")
 ******************************************************/
/* Ce bloc gère .cm-pack-modal + slideshow + onglets, etc. */
.cm-pack-modal {
  position: fixed;
  inset: 0;
  width: 100%; 
  height: 100%;
  z-index: 9999;
  display: none; /* géré par JS */
  justify-content: center;
  align-items: center;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  overflow: hidden; /* On évite le scroll sur l’arrière-plan */
  -webkit-overflow-scrolling: touch; /* iOS */
}
.cm-pack-modal__content {
  position: relative;
  background: #fff;
  width: 90%;
  max-width: 1000px;
  margin: 60px auto 40px;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  animation: modalSlideDown 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);

  /* On rend le bloc scrollable dans sa globalité : */
  max-height: 90vh;
  overflow-y: auto;
}
@keyframes modalSlideDown {
  from { 
    opacity: 0; 
    transform: translateY(-20px);
  }
  to   { 
    opacity: 1; 
    transform: translateY(0);
  }
}
/* Bouton fermeture (icône SVG) */
.cm-pack-modal__close {
  all: unset;
  position: absolute;
  top: 16px; 
  right: -20px;
  z-index: 100;
  background: rgba(255,255,255,0.8);
  border-radius: 50% !important;
  cursor: pointer;
  width: 14px;
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  transition: background 0.2s, transform 0.2s;
}
.cm-pack-modal__close:hover {
  background: #fff;
  transform: scale(1.05);
}
.cm-pack-modal__close svg {
  fill: #333;
  transition: fill 0.2s;
}
.cm-pack-modal__close:hover svg {
  fill: #000;
}

/* Slideshow (haut du modal), sticky */
.cm-pack-modal__slideshow {
  position: sticky;
  top: 0;
  z-index: 20;
  width: 100%;
  aspect-ratio: 16/9;
  background: #f2f2f2;
  flex-shrink: 0;
  overflow: hidden;
  max-height: 40vh;
  min-height: 200px;
}
@media (max-width: 768px) {
  .cm-pack-modal__slideshow {
    aspect-ratio: 16/10;
  }
}
.cm-pack-modal__slides-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
}
.cm-pack-modal__slides-container {
  position: absolute; 
  top: 0; 
  left: 0;
  display: flex;
  height: 100%;
  width: 100%;
  transition: transform 0.4s ease;
}
.cm-pack-modal__slides-container img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  flex-shrink: 0;
  cursor: zoom-in;
}
/* Flèches du slideshow */
.cm-pack-modal__slide-prev,
.cm-pack-modal__slide-next {
  all: unset; 
  position: absolute; 
  top: 50%; 
  transform: translateY(-50%);
  background: rgba(255,255,255,0.8);
  border-radius: 50%;
  cursor: pointer;
  width: 44px; 
  height: 44px;
  color: #333;
  z-index: 2;
  transition: background 0.2s, transform 0.2s;
  display: flex; 
  align-items: center; 
  justify-content: center;
}
.cm-pack-modal__slide-prev:hover,
.cm-pack-modal__slide-next:hover {
  background: #fff; 
  transform: scale(1.05);
}
.cm-pack-modal__slide-prev svg,
.cm-pack-modal__slide-next svg {
  fill: #333;
  transition: fill 0.2s;
  width: 20px; 
  height: 20px;
}
.cm-pack-modal__slide-prev:hover svg,
.cm-pack-modal__slide-next:hover svg {
  fill: #000;
}
.cm-pack-modal__slide-prev { left: 15px; }
.cm-pack-modal__slide-next { right: 15px; }

/* Points (dots) */
.cm-pack-modal__slides-dots {
  position: absolute; 
  bottom: 12px; 
  left: 50%;
  transform: translateX(-50%);
  display: flex; 
  gap: 8px;
}
.cm-pack-modal__slides-dots button {
  all: unset; 
  width: 8px; 
  height: 8px;
  border-radius: 50%; 
  cursor: pointer;
  background-color: #bbb; 
  transition: transform 0.2s, background-color 0.2s;
}
.cm-pack-modal__slides-dots button:hover {
  transform: scale(1.15);
}
.cm-pack-modal__slides-dots button.active {
  background-color: #fff; 
  transform: scale(1.3);
}
.cm-pack-modal__slides-counter {
  position: absolute; 
  bottom: 12px; 
  right: 20px;
  background: rgba(0,0,0,0.4);
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.85rem;
}
/* Thumbnails (bandeau) */
.cm-pack-modal__thumbnails {
  display: flex;
  gap: 4px;
  padding: 10px 15px;
  overflow-x: auto;
  background: #fafafa;
}
.cm-pack-modal__thumbnails img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s, transform 0.2s;
}
.cm-pack-modal__thumbnails img:hover {
  opacity: 1;
  transform: scale(1.03);
}
.cm-pack-modal__thumbnails img.active {
  border: 2px solid #ff5a5f;
  opacity: 1;
}
/* Contenu du modal (body + onglets) */
.cm-pack-modal__body {
  padding: 20px;
}
.cm-pack-modal__tabs-nav {
  position: sticky;
  top: 40vh; 
  z-index: 19;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  padding: 10px;
  background: #fafafa;
  border-bottom: 1px solid #eee;
  scroll-behavior: smooth;
}
.cm-pack-modal__tabs-nav button {
  display: inline-flex; 
  align-items: center; 
  gap: 6px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 20px;
  padding: 8px 16px;
  white-space: nowrap;
  cursor: pointer;
  font-size: 0.9rem; 
  color: #444;
  flex-shrink: 0;
  transition: background 0.2s, box-shadow 0.2s, color 0.2s, border-color 0.2s;
}
.cm-pack-modal__tabs-nav button.active {
  background: #ffecec;
  border-color: #ffcccc;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  font-weight: 600;
  color: #ff5a5f;
}
.cm-pack-modal__tabs-nav button:hover {
  background: #fdfdfd;
}
.cm-pack-modal__tabs-content {
  padding: 15px;
}
.cm-pack-modal__tab-panel {
  display: none;
  font-size: 1rem;
  color: #444;
  line-height: 1.6;
}
.cm-pack-modal__tab-panel.active {
  display: block; /* onglet actif */
}
/* Titres */
.cm-pack-modal__pack-title {
  margin: 0 0 8px;
  font-size: 1.6rem; 
  font-weight: bold;
  color: #333;
  line-height: 1.2;
}
.cm-pack-modal__pack-subtitles {
  margin: 0 0 10px;
  color: #666;
  font-size: 1rem;
}
.cm-pack-modal__pack-country-duration-price {
  font-style: italic;
  margin-bottom: 15px;
  color: #888;
}
.cm-pack-modal__short-desc,
.cm-pack-modal__long-desc {
  margin-bottom: 14px;
}
.cm-pack-modal__tab-panel h3 {
  margin-top: 0;
  color: #333;
  font-size: 1.2rem;
  margin-bottom: 14px;
}
.cm-pack-modal__tab-panel p {
  margin-bottom: 10px;
}
/* Galerie */
.cm-pack-modal__galerie-photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px,1fr));
  gap: 8px;
  margin-bottom: 16px;
}
.cm-pack-modal__galerie-photos img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.cm-pack-modal__galerie-photos img:hover {
  transform: scale(1.02);
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.cm-pack-modal__videos-list {
  margin-top: 16px;
}
/* Footer de la modale */
.cm-pack-modal__footer {
  background: #fff;
  border-top: 1px solid #eee;
  padding: 15px 20px;
  text-align: right;
  flex-shrink: 0;
}
.cm-pack-modal__cta {
  background: #ff5a5f; 
  color: #fff;
  border: none; 
  border-radius: 25px;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.cm-pack-modal__cta:hover {
  background: #ff7b7f;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.cm-pack-modal__cta:active {
  transform: translateY(1px);
  box-shadow: none;
}

/******************************************************
 * 13) LOADER (Spinner)
 ******************************************************/
#cm-loader-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; 
  height: 100%;
  background: rgba(0,0,0,0.4);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cm-loader-spinner {
  width: 50px;
  height: 50px;
  border: 6px solid #fff;
  border-top-color: transparent;
  border-radius: 50%;
  animation: cm-spin 0.8s linear infinite;
}
@keyframes cm-spin {
  to { transform: rotate(360deg); }
}

/******************************************************
 * 14) LIGHTBOX (Zoom plein écran)
 ******************************************************/
.cm-pack-lightbox {
  position: fixed;
  inset: 0;
  background-color: rgba(0,0,0,0.9);
  z-index: 20000;
  display: none;
  align-items: center;
  justify-content: center;
}
.cm-pack-lightbox--open {
  display: flex;
}
.cm-pack-lightbox img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  cursor: zoom-out;
}


/* =============================================================================
   AJOUTS SPÉCIFIQUES POUR LES PAGES STEP2 (Tirelire), STEP3 (Nuit de noces),
   STEP4 (Remerciements), en les rendant cohérents avec la charte globale.
   ============================================================================= */

/******************************************************
 * A) Page Step2 - Tirelire
 ******************************************************/
.cm-step2-tirelire-page {
  margin-bottom: 80px; /* Laisse place à la barre sticky */
}

/* Grille & carte tirelire */
.cm-tirelire-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 80px; /* pour cohérence */
}
.cm-tirelire-card {
  background-color: var(--cm-color-card-bg);
  border: 1px solid var(--cm-color-border);
  border-radius: 12px;
  width:calc(33.333% - 20px);
  position: relative;
  overflow: hidden;
  box-shadow: var(--cm-shadow-soft);
  transition: box-shadow var(--cm-transition-normal), transform var(--cm-transition-normal);
  padding: 0px;
}
.cm-tirelire-card:hover {
  box-shadow: var(--cm-shadow-hover);
  transform: translateY(-3px);
}
.cm-tirelire-image img {
  max-width: 100%;
  display: block;
  margin-bottom: 5px;
  border-radius: 6px;
}
.cm-tirelire-title {
  font-size: 1.1rem;
  font-weight: bold;
  margin: 5px 5px 10px 15px;
  color: var(--cm-color-text);
}
.cm-tirelire-objectif {
  margin: 0 0 6px;
  font-size: 0.95rem;
  color: var(--cm-color-text);
  margin: 5px 5px 10px 15px;
}
.cm-tirelire-longdesc {
  margin-bottom: 10px;
  font-size: 0.9rem;
  color: var(--cm-color-subtext);
  line-height: 1.4;
  margin: 5px 5px 10px 15px;
}
.cm-tirelire-card-btns {
  margin-top: 10px;
  display: flex;
  gap: 10px;
}
/* Boutons "Sélectionner" & "Modifier" */
.cm-tirelire-select-btn,
.cm-tirelire-edit-btn {
  padding: 8px 14px;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background-color var(--cm-transition-fast), transform var(--cm-transition-fast);
}
.cm-tirelire-select-btn {
  background-color: var(--cm-btn-primary-bg);
  color: #fff;
}
.cm-tirelire-select-btn:hover {
  background-color: var(--cm-btn-primary-hover);
  transform: translateY(-2px);
}
.cm-tirelire-edit-btn {
  background-color: var(--cm-btn-secondary-bg);
  color: #333;
}
.cm-tirelire-edit-btn:hover {
  background-color: var(--cm-btn-secondary-hover);
  transform: translateY(-2px);
}

/* Modal "Modifier la tirelire" 
   (Ici, on garde le style plus simple .cm-modal/.cm-modal-content) */
.cm-modal {
  position: fixed;
  left: 0; top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 9999;
  display: none; /* sera affiché en JS */
}
.cm-modal-content {
  background: #fff;
  width: 600px;
  max-width: 90%;
  margin: 100px auto;
  padding: 20px;
  position: relative;
  border-radius: 8px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}
.cm-modal-close {
  position: absolute;
  top: 10px; 
  right: 10px;
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
}
.cm-modal-body label {
  display: block;
  margin: 10px 0 5px;
  font-weight: bold;
}
.cm-modal-body input[type="number"],
.cm-modal-body textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  box-sizing: border-box;
}
.cm-modal-footer {
  margin-top: 20px;
  text-align: right;
}
.cm-modal-footer .button.button-primary {
  background-color: var(--cm-btn-primary-bg);
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 24px;
  cursor: pointer;
  transition: background-color var(--cm-transition-fast), transform var(--cm-transition-fast);
}
.cm-modal-footer .button.button-primary:hover {
  background-color: var(--cm-btn-primary-hover);
  transform: translateY(-2px);
}

/******************************************************
 * B) Page Step3 - Nuits de noces
 ******************************************************/
/* (Déjà harmonisé par .cm-advanced-selection-page, .cm-packs-grid, .cm-pack-card, etc.)
   → On n’ajoute rien de plus, sauf si besoin de styles particuliers. */

/******************************************************
 * C) Page Step4 - Rewards (multi-sélection)
 ******************************************************/
/* .cm-rewards-grid réutilise la base .cm-packs-grid
   On peut juste lui donner un nom alternatif ou laisser .cm-packs-grid.
   Voici quand même un alias : */
.cm-rewards-grid { /* déjà hérite de .cm-packs-grid si on veut */
  margin-bottom: 80px;
  margin-top: 40px;
}
.cm-reward-card { /* peut hériter de .cm-pack-card si besoin */
  /* pas obligatoire si tu réutilises .cm-pack-card */
      padding: 15px;
}

/* Boutons spécifiques reward (ex: .cm-reward-select-btn) */
.cm-reward-select-btn,
.cm-reward-edit-btn {
  padding: 8px 14px;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background-color var(--cm-transition-fast), transform var(--cm-transition-fast);
  line-height: 1.2;
}
.cm-reward-select-btn {
  background-color: var(--cm-btn-primary-bg);
  color: #fff;
}
.cm-reward-select-btn:hover {
  background-color: var(--cm-btn-primary-hover);
  transform: translateY(-2px);
}
.cm-reward-edit-btn {
  background-color: var(--cm-btn-secondary-bg);
  color: #333;
}
.cm-reward-edit-btn:hover {
  background-color: var(--cm-btn-secondary-hover);
  transform: translateY(-2px);
}

/* Modal "Modifier Reward" (similaire à .cm-modal ci-dessus) */
.cm-modal-body label {
  display: block;
  margin: 10px 0 5px;
  font-weight: bold;
}

/******************************************************
 * FIN 
 ******************************************************/
