/*
=====================================================
== CSS POUR LA PAGE DE DÉMARRAGE DU PARCOURS RGNR ==
=====================================================
*/

/* Correctifs pour le thème BuddyBoss si nécessaire */
.page-id-37758 html,
.page-id-37758 body {
    overflow-x: visible !important;
}
#primary.content-area {
  overflow: visible !important;
}


/* --- STRUCTURE ET LAYOUT PRINCIPAL (CENTRÉ) --- */
.rgnr-content-column {
  max-width: 860px; /* Largeur augmentée pour accueillir les 2 widgets côte à côte */
  margin: 0 auto;
}

@media (min-width: 1200px) {
  .rgnr-journey-intro {
    position: relative;
    width: 100%; /* S'assure que le contenu prend toute la largeur du conteneur centré */
  }
}

/* --- STYLE DES ÉLÉMENTS COMMUNS --- */

.back-to-home {
    display: inline-block;
    margin-bottom: 24px;
}

.rgnr-banner-img {
  display: block;
  margin: 24px auto 32px auto;
  width: 100%;
  max-width: 1236px;
  height: auto;
  object-fit: cover;
  border-radius: 20px;
}

.rgnr-journey-intro {
  position: relative;
}
.rgnr-soleil-wrapper {
  position: absolute;
  left: -50px;
  top: -40px;
  width: 232px;
  height: 216px;
  z-index: -1;
  pointer-events: none;
  opacity: 0.7;
}
.rgnr-journey-decor {
    display: block;
    width: 100%;
    max-width: 1044px;
    height: auto;
}
.rgnr-journey-orange {
    margin: 24px 0 12px 0;
}
.rgnr-journey-bleu {
    margin: 32px 0 18px 0;
}


/* --- NOUVEAUX STYLES POUR LA SECTION DE CONFIGURATION --- */

.rgnr-challenge-setup {
  margin: 48px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  padding: 48px 0;
}

.rgnr-setup-title {
  font-family: 'Sora', sans-serif;
  font-weight: 600 !important;
  font-size: 16px !important;
  line-height: 24px;
  letter-spacing: 0%;
  color: #000 !important;
  text-align: center;
  margin-bottom: 32px;
}

.rgnr-steps-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 24px;
}

.rgnr-step-column {
  flex: 1;
  min-width: 0;
  width: 354px;
  max-width: 354px;
}

.rgnr-step-heading {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 24px;
  letter-spacing: 0%;
  color: #000;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.step-icon {
  background: none !important;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.step-icon img {
  width: 24px;
  height: 24px;
  display: block;
}

/* --- STYLE DES WIDGETS --- */

.rgnr-widget-wrapper {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  width: 354px;
  box-sizing: border-box;
}

.rgnr-calendar-actions {
  margin-top: 20px;
  text-align: center;
}
.start-date-info {
  margin-top: 16px;
  margin-bottom: 0;
  color: #E76F51;
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0%;
}

/* Styles spécifiques au widget Telegram */
.rgnr-telegram-widget {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  width: 354px;
  box-sizing: border-box;
}
.rgnr-telegram-header {
  width: 100%;
  height: 64px;
  min-height: 64px;
  max-height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  background: linear-gradient(90deg, #30A9DD 0%, #208BD4 100%);
  background-image: url('https://mon-espace.staging.rgnr.xyz/wp-content/uploads/2025/07/pattern-27.svg'), linear-gradient(90deg, #30A9DD 0%, #208BD4 100%);
  background-repeat: repeat;
  background-size: auto, 100% 100%;
  background-position: center center, center center;
  color: white;
  padding: 16px;
  text-align: center;
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0%;
  flex-shrink: 0;
}
/* Ajustement du padding intérieur du bloc Telegram */
.rgnr-telegram-content {
  padding: 24px; /* Uniformisé à 24px comme demandé */
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Ajustement du titre pour limiter à deux lignes maximum tout en évitant une troncature excessive */
.rgnr-telegram-widget .rgnr-widget-title {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 16px; /* Maintien de la taille de police à 16px */
  line-height: 22px; /* Ajustement pour mieux gérer l'affichage sur deux lignes */
  letter-spacing: 0px;
  text-align: left;
  margin: 0 0 24px 0;
  padding: 0;
  box-sizing: border-box;
  white-space: normal;
  max-width: 100%;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* Limite à deux lignes */
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rgnr-telegram-description {
  color: #757575;
  font-family: 'Sora', sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0%;
  margin-bottom: 20px;
}

p.telegram-info {
    font-family: 'Sora', sans-serif;
    font-weight: 300;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0%;
    font-style: italic;
    color: #555;
    background-color: #f5f5f5;
    padding: 16px;
    border-radius: 12px;
    margin: 16px 0;
}
.telegram-help {
  margin-top: 0;
  margin-bottom: 0;
}
.telegram-help a {
  text-decoration: underline;
}

.rgnr-telegram-widget .rgnr-button-outline {
  margin: 16px 32px 32px 32px;
  flex-shrink: 0;
  align-self: stretch;
}

.rgnr-calendar-actions .rgnr-button {
  display: inline-flex;
  margin: 0 auto;
}


/* --- BOUTONS (RÈGLE CORRIGÉE) --- */
.rgnr-button, .rgnr-button-outline {
  box-sizing: border-box; 
  display: inline-flex;
  justify-content: center;
  align-items: center;
  
  padding: 11px 31px;
  gap: 10px;
  border-radius: 50px;
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0%;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
  border: 1px solid transparent;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.rgnr-button {
  background-color: #2C6961;
  color: #fff;
}
.rgnr-button:hover {
    background-color: #22504a;
}

.rgnr-button-outline {
  background-color: #fff;
  color: #2C6961;
  border-color: #2C6961;
}
.rgnr-button-outline:hover {
    background-color: #2C6961;
    color: #fff;
}
.rgnr-button-outline .telegram-icon {
    width: 16px;
    height: 16px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M9.78 18.65l.28-4.23l7.68-6.92c.34-.31-.07-.46-.52-.19L7.74 13.3L3.64 12c-.88-.25-.89-1.37.2-1.64l16.12-5.66c.74-.26 1.45.14 1.2 1.12l-2.89 13.43c-.23.83-1.03 1.05-1.74.52l-4.94-3.6z"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
}
.rgnr-button-outline:hover .telegram-icon {
    filter: brightness(0) invert(1);
}

.rgnr-telegram-btn.disabled,
.rgnr-button:disabled {
  background: #E0E0E0 !important;
  color: #A0A0A0 !important;
  border-color: #E0E0E0 !important;
  cursor: not-allowed;
  pointer-events: none;
  opacity: 1;
}
.rgnr-telegram-btn.disabled .telegram-icon {
    filter: grayscale(1) opacity(0.5);
}


/* --- RESPONSIVE : Affichage en une seule colonne sur mobile --- */
@media (max-width: 1078px) {
  .rgnr-steps-container {
    flex-direction: column;
    align-items: center;
  }
  .rgnr-step-column {
    width: 100%;
    max-width: 354px;
  }
  .rgnr-widget-wrapper {
    width: 100%;
    max-width: 354px;
  }
  .rgnr-telegram-widget {
    width: 100%;
    max-width: 354px;
  }
}

@media (max-width: 600px) {
  .rgnr-telegram-widget .rgnr-widget-title {
    white-space: normal;
  }
}

@media (max-width: 420px) {
  .rgnr-telegram-header {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: auto;
    min-height: 48px;
    max-height: none;
    font-size: 0.95em;
    padding: 8px;
  }
  .rgnr-widget-wrapper {
    width: 100%;
    max-width: 100%;
  }
  .rgnr-telegram-widget {
    width: 100%;
    max-width: 100%;
  }
}

/* --- PERSONNALISATION FLATPCIKR --- */
.flatpickr-calendar {
  border-radius: 20px !important;
  overflow: hidden;
  box-shadow: none !important;
  border: none !important;
  width: 100% !important;
}
.flatpickr-day {
  border-radius: 12px !important;
}
.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
  background: #FEA376 !important;
  color: #fff !important;
  border-color: #FEA376 !important;
}

/* Style pour la première phrase du paragraphe d'intro */
.rgnr-journey-lead-strong {
  display: block;
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 24px;
  line-height: 32px;
  letter-spacing: 0%;
  text-align: center;
  margin-bottom: 21px;
  color: #222;
}

/* Style pour le reste du paragraphe d'intro */
.rgnr-journey-lead-rest {
  display: block;
  font-family: 'Sora', sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0%;
  text-align: center;
  color: #222;
}

/* Style pour '21 jours' en gras dans le paragraphe d'intro */
.rgnr-journey-lead-bold {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0%;
  text-align: center;
  display: inline;
  color: #222;
}

/* --- STYLES POUR LES TEXTES DU CONTENU --- */
.rgnr-journey-intro h3,
.rgnr-journey-intro h4 {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0%;
}

.rgnr-journey-intro p,
.rgnr-journey-intro ul li {
  font-family: 'Sora', sans-serif;
  font-weight: 300;
  font-size: 16px;
  
  letter-spacing: 0%;
}

.rgnr-journey-intro strong {
  font-weight: 600;
}

.rgnr-journey-note {
  font-family: 'Sora', sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0%;
}

/* Loader pour le calendrier */
.rgnr-calendar-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 260px;
  background: #f7fafd;
  border-radius: 12px;
  margin-bottom: 12px;
}
.rgnr-spinner {
  width: 48px;
  height: 48px;
  border: 5px solid #30A9DD;
  border-top: 5px solid #208BD4;
  border-radius: 50%;
  animation: rgnr-spin 1s linear infinite;
}
@keyframes rgnr-spin {
  0% { transform: rotate(0deg);}
  100% { transform: rotate(360deg);}
}
#calendar-inline {
  display: none;
}


.rgnr-access-preambule-btn-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.rgnr-access-preambule-btn {
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 11px 31px;
  gap: 10px;
  background: #2C6961;
  border: 1px solid #2C6961;
  border-radius: 50px;
  font-family: 'Poppins', sans-serif;
  font-style: normal;
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  color: #FFFFFF;
  text-decoration: none;
  transition: background 0.2s;
}

.rgnr-access-preambule-btn:hover {
  background: #2C6961;
  border-color: #2C6961;
  color: #FFFFFF;
  box-shadow: none;
  cursor: pointer;
  transition: none;
}



.rgnr-arrow {
  display: inline-block;
  width: 15px;
  height: 15px;
  border-bottom: 2px solid #fff;
  border-right: 2px solid #fff;
  transform: rotate(-45deg);
  margin-left: 8px;
  margin-top: 2px;
}

.rgnr-access-preambule-btn[disabled],
.rgnr-access-preambule-btn.disabled {
  background: #2C6961 !important;
  border-color: #2C6961 !important;
  color: #fff !important;
  opacity: 0.6;
  cursor: not-allowed !important;
  box-shadow: none !important;
  pointer-events: none;
}

.rgnr-access-preambule-btn[disabled]:hover,
.rgnr-access-preambule-btn.disabled:hover {
  background: #2C6961 !important;
  border-color: #2C6961 !important;
  color: #fff !important;
  box-shadow: none !important;
}

/* ========================================================= */
/* == STYLES POUR LES RESTRICTIONS UTILISATEURS GRATUITS == */
/* ========================================================= */

/* Bloc d'achat pour utilisateurs gratuits - Style identique à single-journey.php */
.rgnr-purchase-block {
  margin: 20px 0 40px 0;
  padding: 0 20px;
}

.rgnr-purchase-content {
  background: linear-gradient(135deg, #2C6961 0%, #1e4d47 100%);
  border: 2px solid #2C6961;
  border-radius: 16px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(44, 105, 97, 0.2);
  transition: all 0.3s ease;
  color: white;
}

.rgnr-purchase-content:hover {
  border-color: #1e4d47;
  box-shadow: 0 12px 35px rgba(44, 105, 97, 0.3);
  transform: translateY(-2px);
}

.rgnr-purchase-content h3 {
  color: white;
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 10px 0;
  line-height: 1.2;
}

.rgnr-purchase-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  margin: 0 0 25px 0;
  line-height: 1.5;
}

.rgnr-price-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 25px 0;
  padding: 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.rgnr-price-display .price-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  margin-bottom: 5px;
}

.rgnr-price-display .price {
  font-size: 48px;
  font-weight: 800;
  color: white;
  line-height: 1;
  margin-bottom: 5px;
}

.rgnr-price-display .price-period {
  font-size: 16px;
  color: white;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 12px;
  border-radius: 20px;
  display: inline-block;
}

.rgnr-purchase-btn {
  background: white;
  color: #2C6961;
  border: 2px solid white;
  padding: 18px 40px;
  font-size: 18px;
  font-weight: 700;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
  min-width: 220px;
  justify-content: center;
  text-decoration: none;
  margin-top: 25px;
}

.rgnr-purchase-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.9);
  color: #1e4d47;
  text-decoration: none;
}

.rgnr-purchase-btn:active {
  transform: translateY(-1px);
}

.rgnr-purchase-btn svg {
  transition: transform 0.3s ease;
}

.rgnr-purchase-btn:hover svg {
  transform: translateX(3px);
}

.rgnr-purchase-note {
  color: white;
  font-size: 14px;
  margin: 0;
  opacity: 0.9;
  font-style: italic;
}

/* Styles pour les nouvelles classes du bloc d'achat */
.journey-purchase-header h3 {
  color: white;
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 10px 0;
  line-height: 1.2;
}

.journey-purchase-header p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  margin: 0 0 25px 0;
  line-height: 1.5;
}

.journey-purchase-price {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 25px 0;
  padding: 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.price-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  margin-bottom: 5px;
}

.price-amount {
  font-size: 48px;
  font-weight: 800;
  color: white;
  line-height: 1;
  margin-bottom: 5px;
}

.price-period {
  font-size: 16px;
  color: white;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 12px;
  border-radius: 20px;
  display: inline-block;
}

.journey-purchase-button {
  margin-top: 25px;
}

.btn-purchase-journey {
  background: white;
  color: #2C6961;
  border: 2px solid white;
  padding: 18px 40px;
  font-size: 18px;
  font-weight: 700;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
  min-width: 220px;
  justify-content: center;
  text-decoration: none;
}

.btn-purchase-journey:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.9);
  color: #1e4d47;
  text-decoration: none;
}

.btn-purchase-journey:active {
  transform: translateY(-1px);
}

.btn-purchase-journey svg {
  transition: transform 0.3s ease;
}

.btn-purchase-journey:hover svg {
  transform: translateX(3px);
}

/* Bouton Je m'abonne */
.journey-subscribe-button {
  margin-top: 15px;
}

.btn-subscribe-journey {
  background: transparent;
  color: white;
  border: 2px solid white;
  padding: 18px 40px;
  font-size: 18px;
  font-weight: 700;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.1);
  min-width: 220px;
  justify-content: center;
  text-decoration: none;
}

.btn-subscribe-journey:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

.btn-subscribe-journey:active {
  transform: translateY(-1px);
}

.btn-subscribe-journey svg {
  transition: transform 0.3s ease;
}

.btn-subscribe-journey:hover svg {
  transform: translateX(3px);
}

/* Styles pour les étapes grisées */
.rgnr-steps-disabled {
  opacity: 0.6;
  pointer-events: none;
  position: relative;
}

.rgnr-widget-disabled {
  position: relative;
  opacity: 0.5;
  pointer-events: none;
}

.rgnr-disabled-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  border-radius: 12px;
  backdrop-filter: blur(2px);
}

.rgnr-disabled-overlay p {
  text-align: center;
  color: #666;
  font-weight: 500;
  padding: 20px;
  margin: 0;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: 2px solid #e9ecef;
}

/* Animation pour le bloc d'achat */
@keyframes pulse {
  0% {
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
  }
  50% {
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.5), 0 0 0 10px rgba(255, 107, 53, 0.1);
  }
  100% {
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
  }
}

/* Responsive pour le bloc d'achat */
@media (max-width: 768px) {
  .rgnr-purchase-block {
    margin: 30px 0;
    padding: 0 15px;
  }
  
  .rgnr-purchase-content {
    padding: 25px 20px;
  }
  
  .journey-purchase-header h3 {
    font-size: 24px;
  }
  
  .journey-purchase-header p {
    font-size: 14px;
  }
  
  .price-amount {
    font-size: 36px;
  }
  
  .btn-purchase-journey {
    padding: 15px 30px;
    font-size: 16px;
    min-width: 100%;
  }
  
  .btn-subscribe-journey {
    padding: 15px 30px;
    font-size: 16px;
    min-width: 100%;
  }
}

/* ========================================================= */
/* == STYLES POUR LE MESSAGE D'ATTENTE (DATE NON ATTEINTE) == */
/* ========================================================= */

.rgnr-access-waiting-message {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: 2px solid #dee2e6;
  border-radius: 16px;
  padding: 30px;
  text-align: center;
  margin: 20px 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.rgnr-waiting-text {
  font-family: 'Sora', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #2C6961;
  margin: 0 0 15px 0;
  line-height: 1.5;
}

.rgnr-waiting-text strong {
  color: #E76F51;
  font-weight: 700;
}

.rgnr-waiting-subtext {
  font-family: 'Sora', sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: #6c757d;
  margin: 0;
  line-height: 1.4;
  font-style: italic;
}

@media (max-width: 768px) {
  .rgnr-access-waiting-message {
    padding: 20px;
    margin: 15px 0;
  }
  
  .rgnr-waiting-text {
    font-size: 16px;
  }
  
  .rgnr-waiting-subtext {
    font-size: 13px;
  }
}