/* ════════════════════════════════════════════════════════════════════
   pro.css — Espace professionnel Martinique A Nu
   Version harmonisée — Mobile-first — Bootstrap 5.0.2
   Palette :
     --vert-default : #144d47   (vert Martinique)
     --jaune-bouton : #fcb900   (jaune soleil)
     --rouge-caraibe: #c0231c   (rouge hibiscus)
     --blanc-creme  : #f8f7f2
   ════════════════════════════════════════════════════════════════════ */

/* ── Variables locales ───────────────────────────────────────────── */
:root {
  --pro-vert:      #144d47;
  --pro-vert-d:    #0d3530;
  --pro-vert-l:    rgba(20, 77, 71, 0.08);
  --pro-jaune:     #fcb900;
  --pro-jaune-l:   rgba(252, 185, 0, 0.12);
  --pro-rouge:     #c0231c;
  --pro-bg:        #f4f5f0;
  --pro-card-bg:   #ffffff;
  --pro-border:    #e4e6e1;
  --pro-text:      #1a1a1a;
  --pro-muted:     #6b7280;
  --pro-radius:    14px;
  --pro-radius-sm: 8px;
  --pro-shadow:    0 2px 16px rgba(0, 0, 0, 0.07);
  --pro-shadow-h:  0 8px 28px rgba(0, 0, 0, 0.12);
}

/* ════════════════════════════════════════════════════════════════════
   NAVBAR — Boutons Espace pro + Connexion
   Ajout obligatoire dans navbar_custom.css
   ════════════════════════════════════════════════════════════════════ */

/* Bouton Connexion — toujours visible */
.man-nav__btn--in {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  border-radius: 8px;
  background: transparent;
  color: var(--pro-vert) !important;
  border: 2px solid var(--pro-vert);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none !important;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.man-nav__btn--in:hover {
  background: var(--pro-vert);
  color: #fff !important;
}

/* Bouton Espace Pro — en évidence avec le jaune */
.man-nav__btn--pro {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  border-radius: 8px;
  background: var(--pro-jaune);
  color: var(--pro-vert-d) !important;
  border: 2px solid var(--pro-jaune);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none !important;
  transition: all 0.2s ease;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(252, 185, 0, 0.35);
}

.man-nav__btn--pro:hover {
  background: #e6a800;
  border-color: #e6a800;
  color: var(--pro-vert-d) !important;
  box-shadow: 0 4px 12px rgba(252, 185, 0, 0.45);
  transform: translateY(-1px);
}

/* Déconnexion */
.man-nav__btn--out {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  border-radius: 8px;
  background: transparent;
  color: var(--pro-muted) !important;
  border: 2px solid #e0e0e0;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.man-nav__btn--out:hover {
  border-color: var(--pro-rouge);
  color: var(--pro-rouge) !important;
}

/* Mobile : boutons en pleine largeur dans le panneau */
.man-nav__panel-foot .man-nav__btn--pro,
.man-nav__panel-foot .man-nav__btn--in,
.man-nav__panel-foot .man-nav__btn--out {
  width: 100%;
  justify-content: center;
  margin-bottom: 8px;
}

/* ════════════════════════════════════════════════════════════════════
   LAYOUT GLOBAL ESPACE PRO
   ════════════════════════════════════════════════════════════════════ */

.man-pro-layout {
  background: var(--pro-bg);
  min-height: 100vh;
}

/* Container principal du tunnel */
.man-tunnel {
  max-width: 960px;
  margin: 2rem auto 4rem;
  padding: 0 1rem;
}

.man-tunnel--narrow {
  max-width: 520px;
}

/* ════════════════════════════════════════════════════════════════════
   CARDS
   ════════════════════════════════════════════════════════════════════ */

.man-tunnel-card {
  background: var(--pro-card-bg);
  border-radius: var(--pro-radius);
  box-shadow: var(--pro-shadow);
  border: 1px solid var(--pro-border);
  padding: 1.75rem;
  margin-bottom: 1.25rem;
  transition: box-shadow 0.2s ease;
}

.man-tunnel-card:hover {
  box-shadow: var(--pro-shadow-h);
}

.man-tunnel-card__title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--pro-vert);
  margin-bottom: 0.2rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.man-tunnel-card__title i {
  font-size: 1.1rem;
}

.man-tunnel-card__subtitle {
  font-size: 0.88rem;
  color: var(--pro-muted);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

/* ════════════════════════════════════════════════════════════════════
   INDICATEUR D'ÉTAPES
   ════════════════════════════════════════════════════════════════════ */

.man-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 2.5rem;
}

.man-steps__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.man-steps__circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--pro-border);
  background: #fff;
  color: #c4c4c4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  transition: all 0.25s ease;
  position: relative;
  z-index: 1;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.man-steps__item--active .man-steps__circle {
  background: var(--pro-vert);
  border-color: var(--pro-vert);
  color: #fff;
  box-shadow: 0 4px 12px rgba(20, 77, 71, 0.3);
}

.man-steps__item--done .man-steps__circle {
  background: var(--pro-vert);
  border-color: var(--pro-vert);
  color: #fff;
}

.man-steps__label {
  font-size: 0.68rem;
  color: #c4c4c4;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.man-steps__item--active .man-steps__label,
.man-steps__item--done .man-steps__label {
  color: var(--pro-vert);
}

.man-steps__line {
  flex: 1;
  height: 2px;
  background: var(--pro-border);
  margin: 0 6px;
  margin-bottom: 22px;
  min-width: 32px;
  transition: background 0.3s ease;
}

.man-steps__line--done {
  background: var(--pro-vert);
}

/* ════════════════════════════════════════════════════════════════════
   FORMULAIRES
   ════════════════════════════════════════════════════════════════════ */

.man-form-label {
  display: block;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #3d4047;
  margin-bottom: 5px;
}

.man-form-control {
  width: 100%;
  border: 1.5px solid var(--pro-border);
  border-radius: var(--pro-radius-sm);
  padding: 11px 14px;
  font-size: 0.92rem;
  background: var(--pro-bg);
  color: var(--pro-text);
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
  outline: none;
  font-family: inherit;
}

.man-form-control:focus {
  border-color: var(--pro-vert);
  box-shadow: 0 0 0 3px rgba(20, 77, 71, 0.1);
  background: #fff;
}

.man-form-control.is-invalid {
  border-color: var(--pro-rouge);
  box-shadow: 0 0 0 3px rgba(192, 35, 28, 0.08);
}

/* Section label avec séparateur */
.man-form-section {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--pro-muted);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--pro-border);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ════════════════════════════════════════════════════════════════════
   BOUTONS
   ════════════════════════════════════════════════════════════════════ */

.man-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--pro-vert);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}

.man-btn-primary:hover {
  background: var(--pro-vert-d);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(20, 77, 71, 0.3);
  text-decoration: none;
}

.man-btn-primary--full {
  width: 100%;
  justify-content: center;
}

.man-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: transparent;
  color: var(--pro-vert);
  border: 2px solid var(--pro-vert);
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.man-btn-outline:hover {
  background: var(--pro-vert);
  color: #fff;
  text-decoration: none;
}

/* Bouton jaune — action principale mise en avant */
.man-btn-jaune {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--pro-jaune);
  color: var(--pro-vert-d);
  border: none;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(252, 185, 0, 0.3);
}

.man-btn-jaune:hover {
  background: #e6a800;
  color: var(--pro-vert-d);
  transform: translateY(-1px);
  box-shadow: 0 5px 16px rgba(252, 185, 0, 0.4);
  text-decoration: none;
}

/* ════════════════════════════════════════════════════════════════════
   CARDS DE PLANS
   ════════════════════════════════════════════════════════════════════ */

.man-plan-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.man-plan-card {
  background: var(--pro-card-bg);
  border: 2px solid var(--pro-border);
  border-radius: var(--pro-radius);
  padding: 1.5rem;
  position: relative;
  transition: all 0.22s ease;
  cursor: pointer;
}

.man-plan-card:hover {
  border-color: var(--pro-vert);
  box-shadow: var(--pro-shadow-h);
  transform: translateY(-4px);
}

.man-plan-card--popular {
  border-color: var(--pro-vert);
  box-shadow: 0 8px 28px rgba(20, 77, 71, 0.15);
}

.man-plan-card--business {
  border-color: var(--pro-rouge);
}

.man-plan-card--business:hover {
  border-color: var(--pro-rouge);
  box-shadow: 0 8px 28px rgba(192, 35, 28, 0.12);
}

.man-plan-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--pro-jaune);
  color: var(--pro-vert-d);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 14px;
  border-radius: 20px;
  white-space: nowrap;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 8px rgba(252, 185, 0, 0.4);
}

.man-plan-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 14px;
}

.man-plan-icon--gratuit  { background: rgba(108,117,125,0.1); color: #6c757d; }
.man-plan-icon--premium  { background: var(--pro-vert-l);     color: var(--pro-vert); }
.man-plan-icon--business { background: rgba(192,35,28,0.1);   color: var(--pro-rouge); }

.man-plan-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--pro-text);
  margin-bottom: 3px;
}

.man-plan-desc {
  font-size: 0.78rem;
  color: var(--pro-muted);
  margin-bottom: 14px;
  line-height: 1.5;
}

.man-plan-price__amount {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--pro-text);
  line-height: 1;
}

.man-plan-price__period {
  font-size: 0.78rem;
  color: var(--pro-muted);
  margin-left: 4px;
}

.man-plan-price__yearly {
  font-size: 0.78rem;
  color: var(--pro-vert);
  font-weight: 600;
  margin-top: 4px;
}

.man-plan-price__saving {
  display: inline-block;
  background: var(--pro-vert-l);
  color: var(--pro-vert);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  margin-top: 4px;
}

.man-plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
}

.man-plan-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: #4a5568;
  padding: 4px 0;
  border-bottom: 1px solid #f5f5f3;
}

.man-plan-features li:last-child { border-bottom: none; }
.man-plan-features .text-success i { color: #22c55e; }
.man-plan-features .text-muted { color: #c4c4c4 !important; }
.man-plan-features .text-muted i { color: #ddd; }

.man-plan-cta {
  width: 100%;
  border: none;
  border-radius: 10px;
  padding: 12px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.man-plan-cta--gratuit {
  background: #f4f5f0;
  color: #6c757d;
  border: 2px solid var(--pro-border);
}
.man-plan-cta--gratuit:hover { background: #e9eae5; }

.man-plan-cta--premium {
  background: var(--pro-vert);
  color: #fff;
}
.man-plan-cta--premium:hover {
  background: var(--pro-vert-d);
  box-shadow: 0 4px 12px rgba(20, 77, 71, 0.3);
}

.man-plan-cta--business {
  background: var(--pro-rouge);
  color: #fff;
}
.man-plan-cta--business:hover { background: #9e1c16; }

/* ════════════════════════════════════════════════════════════════════
   TOGGLE FACTURATION
   ════════════════════════════════════════════════════════════════════ */

.man-billing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 1.75rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--pro-text);
  background: var(--pro-card-bg);
  border: 1px solid var(--pro-border);
  border-radius: 12px;
  padding: 10px 16px;
  box-shadow: var(--pro-shadow);
}

.man-billing-toggle .form-check-input {
  width: 46px;
  height: 24px;
  cursor: pointer;
  background-color: #ddd;
  border: none;
}

.man-billing-toggle .form-check-input:checked {
  background-color: var(--pro-vert);
}

.man-billing-badge {
  background: var(--pro-jaune-l);
  color: #856404;
  border: 1px solid rgba(252, 185, 0, 0.3);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 10px;
}

/* ════════════════════════════════════════════════════════════════════
   RÉSUMÉ PLAN (sidebar step 3)
   ════════════════════════════════════════════════════════════════════ */

.man-plan-summary {
  background: linear-gradient(145deg, var(--pro-vert), var(--pro-vert-d));
  border-radius: var(--pro-radius);
  padding: 1.5rem;
  position: sticky;
  top: 80px;
  color: #fff;
}

.man-plan-summary__title {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.6);
  margin-bottom: 8px;
}

.man-plan-summary__name {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
}

.man-plan-summary__price {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--pro-jaune);
  margin: 6px 0;
}

.man-plan-summary__features {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 12px;
}

.man-plan-summary__features li {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.8);
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 3px 0;
}

.man-plan-summary__features i {
  color: var(--pro-jaune);
  font-size: 0.65rem;
}

/* ════════════════════════════════════════════════════════════════════
   DASHBOARD — Stat cards
   ════════════════════════════════════════════════════════════════════ */

.man-stat-card {
  background: var(--pro-card-bg);
  border: 1px solid var(--pro-border);
  border-radius: var(--pro-radius-sm);
  padding: 1.1rem;
  text-align: center;
  box-shadow: var(--pro-shadow);
  transition: box-shadow 0.2s;
}

.man-stat-card:hover {
  box-shadow: var(--pro-shadow-h);
}

.man-stat-card__value {
  font-size: 1.8rem;
  font-weight: 900;
  line-height: 1;
}

.man-stat-card__label {
  font-size: 0.7rem;
  color: var(--pro-muted);
  margin-top: 5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ════════════════════════════════════════════════════════════════════
   ABONNEMENT actuel — bandeau
   ════════════════════════════════════════════════════════════════════ */

.man-sub-banner {
  background: var(--pro-card-bg);
  border: 1px solid var(--pro-border);
  border-left: 5px solid var(--pro-vert);
  border-radius: var(--pro-radius-sm);
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  box-shadow: var(--pro-shadow);
}

.man-sub-banner--upgrade {
  border-left-color: var(--pro-jaune);
  background: rgba(252, 185, 0, 0.04);
}

/* ════════════════════════════════════════════════════════════════════
   PAGE SUCCÈS
   ════════════════════════════════════════════════════════════════════ */

.man-success {
  text-align: center;
  padding: 3rem 1.5rem;
}

.man-success__icon {
  width: 88px;
  height: 88px;
  background: linear-gradient(135deg, var(--pro-vert), var(--pro-vert-d));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2.2rem;
  color: #fff;
  box-shadow: 0 8px 24px rgba(20, 77, 71, 0.3);
}

.man-success__title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--pro-vert);
  margin-bottom: 0.75rem;
}

.man-success__subtitle {
  font-size: 0.92rem;
  color: var(--pro-muted);
  max-width: 460px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

/* ════════════════════════════════════════════════════════════════════
   MESSAGES
   ════════════════════════════════════════════════════════════════════ */

.man-msg-unread {
  background: rgba(20, 77, 71, 0.04);
}

.man-msg-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pro-vert);
  flex-shrink: 0;
}

/* ════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════════════ */

@media (min-width: 768px) {
  .man-plan-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .man-tunnel-card {
    padding: 2rem;
  }
}

@media (max-width: 767px) {
  .man-tunnel {
    margin: 1rem auto 3rem;
  }

  .man-tunnel-card {
    padding: 1.25rem;
    border-radius: 10px;
  }

  .man-steps__label {
    display: none;
  }

  .man-plan-price__amount {
    font-size: 1.8rem;
  }

  .man-plan-summary {
    position: static;
  }
}