/***************************************************
 * 0) FONDATION & RÉGLAGES GLOBAUX
 ***************************************************/
 /*body {
  /* Si vous voulez la police iOS, décommentez
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
               Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  }
  */


/* Animations communes */
@keyframes slideUp {
  from {
    transform: translateY(40px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
@keyframes fadeInUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Utilitaire pour masquer des éléments */
.hidden {
  display: none !important;
}

/* .active-step peut remplacer display:block pour les wizard-step */
.wizard-step {
  display: none; /* par défaut, on masque */
}
.wizard-step.active-step {
  display: block;
}

/***************************************************
 * 1) POP-UP DE BIENVENUE
 ***************************************************/
#profileProWelcomePopup {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 280px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 9999;
  overflow: hidden; 
  animation: slideUp 0.4s ease forwards;
}
#profileProWelcomePopup .popup-inner {
  padding: 15px;
  position: relative;
}
#profileProWelcomePopup .close-welcome {
  position: absolute;
  top: 8px; 
  right: 10px;
  cursor: pointer;
  font-weight: bold;
  font-size: 18px;
  color: #888;
  transition: color 0.3s ease;
}
#profileProWelcomePopup .close-welcome:hover {
  color: #555;
}
#profileProWelcomePopup h4 {
  margin-top: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #007aff; /* bleu iOS */
}
#profileProWelcomePopup p {
  font-size: 0.95rem;
  line-height: 1.4;
  color: #444;
  margin-bottom: 1em;
}

/***************************************************
 * 2) CHECKBOX + LIENS
 ***************************************************/
.wpt-check-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 15px 0;
  font-size: 0.95rem;
  color: #333;
}
.wpt-check-box input[type="checkbox"] {
  width: 1.2em;
  height: 1.2em;
  margin: 0; 
  accent-color: #4287f5;
  cursor: pointer;
}
.wpt-check-box label {
  cursor: pointer;
  line-height: 1.2;
}
.wpt-check-box a {
  color: #4287f5;
  text-decoration: none;
  border-bottom: 1px dashed currentColor;
  transition: border-color 0.2s, color 0.2s;
}
.wpt-check-box a:hover {
  color: #336dc0;
  border-color: #336dc0;
}

/***************************************************
 * 3) BOUTONS GLOBAUX
 ***************************************************/
/* Bouton principal */
.btn-primary {
  background: #007aff; /* Couleur iOS-like */
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  transition: background 0.3s ease, transform 0.2s ease;
}
.btn-primary:hover {
  background: #0060d0;
}
.btn-primary:active {
  transform: scale(0.96);
}

/* Bouton secondaire */
.btn-secondary {
  background: #f7f8ff;
  color: #007aff;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  transition: background 0.3s ease, transform 0.2s ease;
}
.btn-secondary:hover {
  background: #d1d6ff;
}
.btn-secondary:active {
  transform: scale(0.96);
}

/***************************************************
 * 4) CONTENEUR PRINCIPAL
 ***************************************************/
#wpt-profile-pro-module {
  max-width: 700px;
  margin: 20px auto;
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  position: relative;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  z-index: 1000;
}
#wpt-profile-pro-module:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.08);
}

/***************************************************
 * 5) BARRE D’ÉTAPES HORIZONTALE (STICKY, SCROLLABLE)
 ***************************************************/
#wizardProgressBar {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;  /* inertie iOS */
  scrollbar-width: none;              /* masqué FF */
  -ms-overflow-style: none;           /* masqué IE/Edge */
}
#wizardProgressBar::-webkit-scrollbar {
  display: none; /* masqué Chrome/Safari */
}

/* Ligne colorée de progression */
#wizardProgressBar .progress-inner {
  height: 4px;
  width: 0%;
  background-color: #007aff;
  border-radius: 2px;
  transition: width 0.3s;
  margin-top: 12px;
}

/* Labels d’étapes */
#wizardProgressBar .steps-labels {
  display: flex;
  gap: 0.8rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  padding: .5rem;
  border-bottom: 1px solid #e0e0e0;
  border-top: 1px solid #e0e0e0;
  margin-top: 20px;
}
#wizardProgressBar .steps-labels span {
  flex-shrink: 0;
  scroll-snap-align: center;
  display: inline-block;
  white-space: nowrap;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  background-color: #f7f7ff;
  color: #9e9bff;
  transition: background-color 0.3s, color 0.3s;
}
#wizardProgressBar .steps-labels span.active {
  background-color: #e8e6ff;
  color: #615eff;
  font-weight: 600;
}

/***************************************************
 * 6) WIZARD : ÉTAPES & FORMULAIRES
 ***************************************************/
/* On utilise .wizard-step.hidden et .wizard-step.active-step
   désormais gérées par JS, donc plus besoin de style inline */
.wizard-step {
  margin-top: 20px;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Champs communs */
.wizard-step input[type="text"],
.wizard-step input[type="email"],
.wizard-step input[type="number"],
.wizard-step input[type="date"],
.wizard-step textarea,
.wizard-step select {
  width: 100%;
  padding: 10px;
  border: 1px solid #DDE1E7;
  border-radius: 8px;
  font-size: 0.95rem;
  margin-bottom: 12px;
  transition: border-color 0.3s ease;
}
.wizard-step input:focus,
.wizard-step textarea:focus,
.wizard-step select:focus {
  border-color: #007aff;
  outline: none;
}

/* Labels et microcopy */
.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: #333;
  font-size: 0.9em;
}
.microcopy {
  font-size: 1rem;
  border: 1px solid #007aff0f;
  margin: 20px;
  padding: 20px;
  color: #ff5e5e;
  margin-bottom: 25px;
  border-radius: 12px;
  font-weight: 600;
  background: #fff5f4;
}
.microcopy2 {
  font-size: 0.85rem;
  margin: 20px;
  padding: 15px;
}

/* Titres d’étape */
.wizard-step h2, .wizard-step h3 {
  margin-bottom: 10px;
  font-weight: 600;
  color: #333;
}

/***************************************************
 * 7) NAVIGATION ENTRE ÉTAPES (PRÉCÉDENT / SUIVANT)
 ***************************************************/
.wizard-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}
.wizard-nav .btn-primary,
.wizard-nav .btn-secondary {
  flex: 1 1 auto;
  text-align: center;
}

/***************************************************
 * 8) SECTION “ACTIVER COMPTE”
 ***************************************************/
.activate-account-section {
  margin-top: 20px;
  background: #f9f9f9;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 15px;
}
.activate-account-section h3 {
  margin-top: 0;
  color: #444;
  font-weight: 600;
  margin-bottom: 8px;
}
.activate-account-section p {
  font-size: 0.9rem;
  line-height: 1.4;
  color: #666;
  margin-bottom: 10px;
}

/***************************************************
 * 9) MODAL APERÇU PROMO
 ***************************************************/
.promo-modal h3 {
  margin-top: 0;
  font-size: 1.1rem;
  color: #007aff;
  margin-bottom: 8px;
}
.promo-modal .promo-preview-content,
.promo-modal .promo-modal-details {
  font-size: 0.95rem;
  color: #444;
}

/***************************************************
 * 10) INCITATION PROMO (ÉTAPE 7)
 ***************************************************/
#wpt-profile-pro-module .wizard-step[data-step="7"] {
  background: #fff4e1;
  border: 3px solid #fff1d7;
  box-shadow: 0 0 10px rgba(255, 165, 0, 0.5);
  padding: 20px;
  border-radius: 8px;
}
#wpt-profile-pro-module .wizard-step[data-step="7"] h3 {
  color: #ff6600; 
  font-weight: 700;
  font-size: 1.5em;
}
#wpt-profile-pro-module .wizard-step[data-step="7"] .promo-invite-cta {
  margin-top: 1em;
  padding: 1em;
  border: 2px dashed #ff6600;
  background-color: #fff0d5;
  text-align: center;
  border-radius: 15px;
}
#wpt-profile-pro-module .wizard-step[data-step="7"] .promo-invite-cta .btn-primary {
  background: #605eff;
  color: #fff;
  padding: 10px 20px;
  margin: 10px;
  cursor: pointer;
}
#wpt-profile-pro-module .wizard-step[data-step="7"] .promo-invite-cta .btn-secondary {
  border: 2px solid #ffa500;
  background: #fff;
  color: #ffa500;
  padding: 10px 20px;
  margin: 10px;
  cursor: pointer;
}

/***************************************************
 * 11) HORIZONTAL RULES ET SÉLECTEUR DE COULEUR
 ***************************************************/
hr {
  border: none;
  border-top: 1px solid #eee;
  margin: 20px 0;
}
.wpt-hero1 {
  border: none;
  border-top: 1px solid #eee;
  font-size: 20px;
  margin: 20px 0;
  font-weight: 800;
}
.wpt-select-couleur {
  cursor: pointer;
  height: 50px;
}

/***************************************************
 * 14) STYLISATION “FILE INPUT”
 ***************************************************/
/* Masque le bouton natif sous WebKit/Blink et Firefox */
input[type="file"]::-webkit-file-upload-button {
  visibility: hidden;
}
input[type="file"]::file-selector-button {
  visibility: hidden;
}
/* Crée un bouton personnalisé via ::before */
input[type="file"]::before {
  content: "Choisir un fichier";
  display: inline-block;
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
  background-color: #eeffef;
  color: #27aa3f;
  padding: 0.6em 1.2em;
  border-radius: 0.4em;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.1s ease;
  user-select: none;
}
input[type="file"]:hover::before {
  background-color: #d5ffd7 !important;
}
input[type="file"]:active::before {
  transform: scale(0.98);
}
/* Espace texte du nom de fichier */
input[type="file"]::after {
  content: attr(data-file-name);
  margin-left: 0.8em;
  font-style: italic;
  font-size: 0.85rem;
  background-color: #d5ffd7;
}

/***************************************************
 * 15) AUTRES
 ***************************************************/
.recap-box {
  margin-left: 20px;
}
.promo-benefits {
  margin: 20px;
}
.promo-steps {
  margin: 20px;
}
.promo-title2 {
  margin: 20px;
  font-size: 15px;
  font-weight: 550;
  background: #fffcf8;
  padding: 15px;
  color: #7e7dca;
  border-radius: 10px;
}

/*========================================
  MINI-DASHBOARD – BASE (Desktop)
========================================*/
.dashboard-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 1rem;
}

.dashboard-cards .card {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 2px 12px rgb(0 0 0 / 7%);
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: box-shadow 0.3s ease;
}
.dashboard-cards .card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.08);
}

/* Titres avec couleur de la famille */
.card-profile h3 { color: #2176FF; }
.card-codes   h3 { color: #23B862; }

/* Fonds pastel très légers */
.card-profile { background-color: rgba(33,118,255,0.05); }
.card-codes   { background-color: rgba(35,184,98,0.05); }

/* Descriptifs */
.card .completion-percent,
.card .code-stats {
  color: #555;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

/* Boutons pastel (pill-shape) */
.card .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}
.card .actions button {
  border: 1px solid;
  border-radius: 999px;
  padding: 10px !important;
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  background-color: transparent;
  transition: background-color 0.2s, opacity 0.2s;
  margin: 3px !important;
}

/* VOIR / DÉTAILS */
button[data-action^="view"] {
  color: #2176FF;
  border-color: #2176FF;
  background-color: rgba(33,118,255,0.08);
}
button[data-action^="view"]:hover {
  background-color: rgba(33,118,255,0.15);
}

/* MODIFIER / RENOUVELER */
button[data-action^="edit"],
button[data-action^="renew"] {
  color: #23B862;
  border-color: #23B862;
  background-color: rgba(35,184,98,0.08);
}
button[data-action^="edit"]:hover,
button[data-action^="renew"]:hover {
  background-color: rgba(35,184,98,0.15);
}

/* PAUSE */
button[data-action^="pause"] {
  color: #FF9F1C;
  border-color: #FF9F1C;
  background-color: rgba(255,159,28,0.08);
}
button[data-action^="pause"]:hover {
  background-color: rgba(255,159,28,0.15);
}

/* SUPPRIMER */
button[data-action^="delete"] {
  color: #D64545;
  border-color: #D64545;
  background-color: rgba(214,69,69,0.08);
}
button[data-action^="delete"]:hover {
  background-color: rgba(214,69,69,0.15);
}

/* Icônes FA5 avant le texte (exemple) */
button[data-action^="view"]::before   { content: "\f06e"; font-family: "Font Awesome 5 Free"; font-weight: 900; }
button[data-action^="edit"]::before   { content: "\f044"; font-family: "Font Awesome 5 Free"; font-weight: 900; }
button[data-action^="renew"]::before  { content: "\f021"; font-family: "Font Awesome 5 Free"; font-weight: 900; }
button[data-action^="pause"]::before  { content: "\f04c"; font-family: "Font Awesome 5 Free"; font-weight: 900; }
button[data-action^="delete"]::before { content: "\f1f8"; font-family: "Font Awesome 5 Free"; font-weight: 900; }

#proMiniDashboard {
  padding: 2rem;
}
#proMiniDashboardTitle {
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
}

/*========================================
  MINI-DASHBOARD – RÉACTIF (Mobile/Tablettes)
========================================*/
@media (max-width: 768px) {
  .dashboard-cards {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .dashboard-cards .card {
    padding: 1.5rem;
    min-height: auto;
  }
  #proMiniDashboard {
    padding: 1.5rem;
  }
  #proMiniDashboardTitle {
    font-size: 1rem;
    margin-bottom: 1rem;
  }
  .card .completion-percent,
  .card .code-stats {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }
  .card .actions {
    gap: 0.6rem;
  }
  .card .actions button {
    flex: 1 1 calc(50% - 0.6rem);
    padding: 8px;
    font-size: 0.85rem;
    margin: 2px;
    justify-content: center;
  }
}
