/*
=====================================================
== 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 */
  -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;
}