/* ==========================================================================
   KHAYZAN Access — Design System SaaS Premium (Thème Clair)
   Propriétaire : Khayzan IT
   Direction artistique : 
     - Fond principal : #F7F9FC
     - Blanc : #FFFFFF
     - Bleu nuit (titres) : #071426
     - Bleu principal : #123B63
     - Rose Khayzan : #E85881
     - Bordures : #E7ECF2
     - Ergonomie mobile : Rapide, fluide et intuitive pour les gestionnaires
   ========================================================================== */

:root {
  /* ==========================================================================
     PALETTE OFFICIELLE KHAYZAN ACCESS (STRICTE & CENTRALISÉE)
     Propriétaire : Khayzan IT
     ========================================================================== */
  --bleu-nuit: #071426;          /* Textes importants, titres et identité de marque */
  --bleu-pro: #123B63;           /* Boutons principaux, navigation et éléments actifs */
  --bleu-pro-hover: #0B2540;     /* Survol bleu professionnel */
  --bleu-subtle: #EBF3FA;        /* Fonds légers bleus et badges d'état */
  
  --rose-khayzan: #E85881;       /* Accents visuels, détails et mises en évidence */
  --rose-khayzan-hover: #D43E69; /* Survol rose */
  --rose-subtle: #FDF2F5;        /* Fonds légers roses et alertes douces */

  --blanc: #FFFFFF;              /* Cartes et surfaces principales */
  --gris-fond: #F7F9FC;          /* Arrière-plan général clair */
  --gris-bordure: #E7ECF2;       /* Bordures et séparateurs */

  --gris-texte: #64748B;         /* Textes secondaires, sous-titres et labels */
  --gris-fonce: #334155;         /* Textes courants lisibles */
  --gris-subtle: #F1F5F9;        /* Surfaces et tags neutres */

  /* Aliases sémantiques pour compatibilité totale */
  --bg-body: var(--gris-fond);
  --bg-card: var(--blanc);
  --bg-subtle: var(--gris-subtle);
  --bg-input: var(--blanc);

  --text-title: var(--bleu-nuit);
  --text-body: var(--gris-fonce);
  --text-muted: var(--gris-texte);
  --text-light: #94A3B8;

  --blue-primary: var(--bleu-pro);
  --blue-primary-hover: var(--bleu-pro-hover);
  --blue-light: var(--bleu-subtle);

  --pink-khayzan: var(--rose-khayzan);
  --pink-khayzan-hover: var(--rose-khayzan-hover);
  --pink-light: var(--rose-subtle);

  --border-color: var(--gris-bordure);
  --border-focus: var(--bleu-pro);

  /* Statuts harmonisés avec l'identité KHAYZAN Access */
  --success: var(--bleu-pro);
  --success-bg: var(--bleu-subtle);
  --success-text: var(--bleu-pro);

  --warning: var(--rose-khayzan);
  --warning-bg: var(--rose-subtle);
  --warning-text: var(--rose-khayzan);

  --error: #E85881;
  --error-bg: #FDF2F5;
  --error-text: #991B1B;

  /* Ombres très légères & subtiles */
  --shadow-xs: 0 1px 2px rgba(7, 20, 38, 0.04);
  --shadow-sm: 0 2px 4px rgba(7, 20, 38, 0.04), 0 1px 2px rgba(7, 20, 38, 0.02);
  --shadow-card: 0 4px 14px rgba(7, 20, 38, 0.04), 0 1px 3px rgba(7, 20, 38, 0.02);
  --shadow-hover: 0 10px 26px -4px rgba(18, 59, 99, 0.08), 0 4px 10px -2px rgba(7, 20, 38, 0.03);

  /* Rayons & Transitions */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
}
/* -------------------- RESET & BASE -------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-body);
  color: var(--text-body);
  font-family: var(--font-family);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  background-color: var(--bg-body);
  display: flex;
  flex-direction: column;
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
}

body.no-scroll {
  overflow: hidden !important;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

img, svg {
  display: block;
  max-width: 100%;
}

/* -------------------- TYPOGRAPHIE & CONTENEURS -------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

h1, h2, h3, h4, h5, h6 {
  color: var(--text-title);
  font-weight: 800;
  line-height: 1.25;
}

/* -------------------- COMPOSANTS DE BASE -------------------- */
/* Cartes Blanches Premium */
.clean-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.clean-card:hover {
  box-shadow: var(--shadow-hover);
}

/* Badges Épurés */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  letter-spacing: 0.3px;
}

.badge-brand {
  background-color: var(--pink-light);
  color: var(--pink-khayzan);
  border: 1px solid rgba(232, 88, 129, 0.2);
}

.badge-tech {
  background-color: var(--blue-light);
  color: var(--blue-primary);
  border: 1px solid rgba(18, 59, 99, 0.15);
}

.badge-success {
  background-color: var(--success-bg);
  color: var(--success-text);
}

/* Boutons Modernes */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-family);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--bleu-pro);
  color: #FFFFFF;
  border-color: var(--bleu-pro);
  box-shadow: 0 2px 8px rgba(18, 59, 99, 0.2);
}
.btn-primary:hover {
  background-color: var(--bleu-pro-hover);
  border-color: var(--bleu-pro-hover);
  box-shadow: 0 4px 14px rgba(18, 59, 99, 0.28);
  transform: translateY(-1px);
}

.btn-accent {
  background-color: var(--rose-khayzan);
  color: #FFFFFF;
  border-color: var(--rose-khayzan);
  box-shadow: 0 2px 8px rgba(232, 88, 129, 0.25);
}
.btn-accent:hover {
  background-color: var(--rose-khayzan-hover);
  border-color: var(--rose-khayzan-hover);
  box-shadow: 0 4px 14px rgba(232, 88, 129, 0.35);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: var(--bleu-subtle);
  color: var(--bleu-pro);
  border: 1px solid var(--gris-bordure);
}
.btn-secondary:hover {
  background-color: #E0ECF7;
  color: var(--bleu-nuit);
  border-color: var(--bleu-pro);
  transform: translateY(-1px);
}

.btn-outline {
  background-color: var(--blanc);
  color: var(--bleu-pro);
  border: 1.5px solid var(--gris-bordure);
  font-weight: 700;
}
.btn-outline:hover {
  background-color: var(--bleu-subtle);
  border-color: var(--bleu-pro);
  color: var(--bleu-pro);
  transform: translateY(-1px);
}

.btn-block {
  width: 100%;
}

.btn:disabled, .btn.loading {
  opacity: 0.65;
  cursor: not-allowed;
}

/* Spinner de chargement bouton */
.btn-spinner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-spinner::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #FFFFFF;
  border-radius: 50%;
  animation: btnSpin 0.7s linear infinite;
}

@keyframes btnSpin {
  to { transform: rotate(360deg); }
}

/* -------------------- BARRE DE NAVIGATION (HEADER) -------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: box-shadow var(--transition-normal);
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.nav-logo-icon {
  height: 40px;
  width: 40px;
  object-fit: contain;
  flex-shrink: 0;
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-title {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.brand-khayzan {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--blue-primary);
  letter-spacing: 0.5px;
}

.brand-access {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--pink-khayzan);
  letter-spacing: 1.5px;
}

.brand-subtitle {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* Liens Desktop */
.nav-menu-desktop {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color var(--transition-fast);
  padding: 0.4rem 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--blue-primary);
}

.nav-actions-desktop {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

/* Bouton Hamburger */
.nav-toggle {
  display: none;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 0.6rem;
  transition: background-color var(--transition-fast);
}

.nav-toggle:hover {
  background-color: var(--bg-subtle);
}

.hamburger-icon {
  width: 20px;
  height: 15px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hamburger-line {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--text-title);
  border-radius: 2px;
}

/* -------------------- TIROIR MOBILE (MODERNE ET CLAIR) -------------------- */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(7, 20, 38, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.open {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 88%;
  max-width: 340px;
  background: #FFFFFF;
  box-shadow: -8px 0 30px rgba(7, 20, 38, 0.12);
  z-index: 1060;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

.mobile-drawer.open {
  transform: translateX(0);
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.mobile-drawer-close {
  background: var(--bg-subtle);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-title);
  cursor: pointer;
}

.mobile-drawer-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  flex-grow: 1;
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  background: var(--bg-body);
  color: var(--text-title);
  font-weight: 600;
  font-size: 0.95rem;
  transition: background-color var(--transition-fast);
}

.mobile-nav-item:hover, .mobile-nav-item:active {
  background: var(--blue-light);
  color: var(--blue-primary);
}

.mobile-drawer-actions {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border-color);
}

.mobile-drawer-footer {
  padding: 1.2rem 1.5rem;
  border-top: 1px solid var(--border-color);
  background: var(--bg-body);
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* -------------------- SECTION HERO (ACCUEIL) -------------------- */
.hero-section {
  padding: 4.5rem 0 5rem;
  position: relative;
  background: radial-gradient(circle at 80% 20%, rgba(232, 88, 129, 0.05) 0%, transparent 40%),
              radial-gradient(circle at 10% 80%, rgba(18, 59, 99, 0.04) 0%, transparent 40%),
              var(--bg-body);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: 3.5rem;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.hero-title {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 900;
  color: var(--text-title);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.hero-desc {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--text-body);
  line-height: 1.65;
  max-width: 540px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}

.hero-guarantees {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 0.8rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border-color);
  flex-wrap: wrap;
}

.guarantee-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

.guarantee-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--success);
}

.hero-visual-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-illustration {
  width: 100%;
  max-width: 520px;
  height: auto;
  border-radius: var(--radius-xl);
}

/* -------------------- SECTION SECTIONS COMMUNES -------------------- */
.section {
  padding: 5rem 0;
}

.section-header {
  max-width: 640px;
  margin: 0 auto 3.5rem;
  text-align: center;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  margin-bottom: 0.75rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* Grille Fonctionnalités SaaS KHAYZAN Access */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.8rem;
}

.feature-card {
  padding: 2.2rem 1.8rem;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.feature-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--blue-light);
  color: var(--blue-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.4rem;
  transition: transform var(--transition-normal);
}

.feature-card:hover .feature-icon-box {
  background: var(--pink-khayzan);
  color: #FFFFFF;
  transform: translateY(-2px);
}

.feature-title {
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
}

.feature-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Grille Comment connecter un MikroTik */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.step-card {
  padding: 2rem 1.6rem;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  position: relative;
}

.step-num-badge {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--border-color);
  margin-bottom: 1rem;
}

.step-card:hover .step-num-badge {
  color: var(--blue-primary);
}

.step-title {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.step-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Grille Tarifs */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: stretch;
}

.pricing-card {
  padding: 2.5rem 2rem;
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.pricing-card.popular {
  border: 2px solid var(--blue-primary);
  box-shadow: var(--shadow-hover);
}

.pricing-popular-badge {
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
}

.pricing-name {
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
}

.pricing-tagline {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  min-height: 40px;
}

.pricing-price-box {
  padding: 1.2rem;
  background: var(--bg-body);
  border-radius: var(--radius-md);
  margin-bottom: 1.8rem;
  text-align: center;
}

.pricing-price-text {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--blue-primary);
  display: block;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.pricing-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.92rem;
  color: var(--text-body);
}

.pricing-feature-icon {
  color: var(--success);
  flex-shrink: 0;
  margin-top: 3px;
}

/* Bannière d'appel à l'action (CTA) */
.cta-box {
  padding: 3.5rem 2.5rem;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--blue-primary) 0%, #0E2E4E 100%);
  color: #FFFFFF;
  text-align: center;
}

.cta-box h2 {
  color: #FFFFFF;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 0.8rem;
}

.cta-box p {
  color: #E2E8F0;
  max-width: 580px;
  margin: 0 auto 2rem;
  font-size: 1.05rem;
}

/* -------------------- FORMULAIRES (CONNEXION & INSCRIPTION) -------------------- */
.auth-page-container {
  min-height: calc(100vh - 72px - 260px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 1.5rem;
}

.auth-card {
  width: 100%;
  max-width: 480px;
  padding: 2.8rem 2.4rem;
  background: #FFFFFF;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
}

.auth-card-wide {
  max-width: 680px;
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-logo-icon {
  height: 48px;
  width: auto;
  margin: 0 auto 1rem;
}

.auth-title {
  font-size: 1.8rem;
  margin-bottom: 0.4rem;
}

.auth-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.form-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-title);
  margin-bottom: 0.45rem;
}

.required-star {
  color: var(--pink-khayzan);
  margin-left: 2px;
}

.form-control,
input[type="text"],
input[type="email"],
input[type="password"],
select.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-md);
  background-color: #FFFFFF;
  border: 1.5px solid var(--border-color);
  color: var(--text-title);
  font-family: var(--font-family);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.form-control:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
select.form-control:focus {
  outline: none;
  border-color: var(--blue-primary);
  box-shadow: 0 0 0 3px rgba(18, 59, 99, 0.1);
}

/* Champ Mot de Passe avec Bouton Afficher/Masquer */
.password-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password-input-wrapper input {
  padding-right: 2.8rem;
}

.password-toggle-btn {
  position: absolute;
  right: 0.75rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-fast);
}

.password-toggle-btn:hover {
  color: var(--text-title);
}

/* Select Liste des Villes */
select.form-control,
select.form-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 16px;
  padding-right: 2.5rem;
  cursor: pointer;
}

/* Checkboxes (Se souvenir de moi & CGU) */
.form-check {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.88rem;
  color: var(--text-body);
  cursor: pointer;
}

.form-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--blue-primary);
  cursor: pointer;
}

.form-help-text {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
}

.form-errors {
  color: var(--error);
  font-size: 0.82rem;
  margin-top: 0.35rem;
  list-style: none;
}

/* Notifications / Alertes */
.alert {
  padding: 0.9rem 1.2rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  font-size: 0.92rem;
  font-weight: 500;
}

.alert-success { background: var(--success-bg); color: var(--success-text); border: 1px solid rgba(16, 185, 129, 0.25); }
.alert-error { background: var(--error-bg); color: var(--error-text); border: 1px solid rgba(239, 68, 68, 0.25); }
.alert-info { background: var(--blue-light); color: var(--blue-primary); border: 1px solid rgba(18, 59, 99, 0.2); }

/* -------------------- TABLEAU DE BORD SAAS KHAYZAN ACCESS -------------------- */
.dashboard-layout {
  display: flex;
  min-height: calc(100vh - 72px);
  background-color: var(--gris-fond);
}

/* Sidebar Desktop Khayzan */
.dashboard-sidebar {
  width: 270px;
  background: var(--blanc);
  border-right: 1.5px solid var(--gris-bordure);
  padding: 2.2rem 1.25rem 1.8rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-shrink: 0;
  box-shadow: var(--shadow-xs);
}

.sidebar-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--gris-texte);
  transition: all var(--transition-fast);
  position: relative;
  text-decoration: none;
}

.sidebar-link:hover {
  background: var(--gris-subtle);
  color: var(--bleu-nuit);
}

.sidebar-link.active {
  background: var(--bleu-subtle);
  color: var(--bleu-pro);
}

.sidebar-link.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 15%;
  bottom: 15%;
  width: 4px;
  background: var(--rose-khayzan);
  border-radius: 0 4px 4px 0;
}

/* Header & Profil Chip Utilisateur */
.user-profile-chip {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--blanc);
  border: 1.5px solid var(--gris-bordure);
  padding: 0.4rem 0.9rem 0.4rem 0.45rem;
  border-radius: 999px;
  box-shadow: var(--shadow-xs);
  text-decoration: none;
}

.user-avatar-badge {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bleu-pro);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.user-chip-info {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.user-chip-name {
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--bleu-nuit);
}

.user-chip-role {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gris-texte);
}

/* Zone Principale Dashboard */
.dashboard-main {
  flex-grow: 1;
  padding: 2.5rem 2.2rem 5rem;
  max-width: 1140px;
  margin: 0 auto;
  width: 100%;
}

/* Cartes de Statut Routeur / Abonnement */
.router-status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.4rem;
  margin-bottom: 2.2rem;
}

.router-status-card {
  background: var(--blanc);
  border: 1.5px solid var(--gris-bordure);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.6rem;
  box-shadow: var(--shadow-card);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.2rem;
  transition: all var(--transition-normal);
}

.router-status-card:hover {
  border-color: var(--bleu-pro);
  box-shadow: var(--shadow-hover);
}

.router-status-card.attention {
  border-left: 4.5px solid var(--rose-khayzan);
}

.router-status-card.connected {
  border-left: 4.5px solid var(--bleu-pro);
}

/* Métriques & Indicateurs Chiffrés */
.dashboard-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem;
  margin-bottom: 2.5rem;
}

.metric-card {
  padding: 1.6rem 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--blanc);
  border: 1.5px solid var(--gris-bordure);
  box-shadow: var(--shadow-card);
  transition: all var(--transition-normal);
}

.metric-card:hover {
  border-color: var(--bleu-pro);
  box-shadow: var(--shadow-hover);
}

.metric-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.9rem;
}

.metric-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--gris-texte);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.metric-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.metric-icon-wrap.primary {
  background: var(--bleu-subtle);
  color: var(--bleu-pro);
}

.metric-icon-wrap.accent {
  background: var(--rose-subtle);
  color: var(--rose-khayzan);
}

.metric-value {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--bleu-nuit);
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.metric-sub {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gris-texte);
  margin-top: 0.45rem;
}

/* Grille des Opérations de Gestion Hotspot */
.quick-actions-section {
  margin-bottom: 2.8rem;
}

.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem;
}

.quick-action-btn {
  padding: 1.6rem 1.5rem;
  background: var(--blanc);
  border: 1.5px solid var(--gris-bordure);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
}

.quick-action-btn:hover {
  border-color: var(--bleu-pro);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.quick-action-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-fast);
}

.quick-action-icon.primary {
  background: var(--bleu-subtle);
  color: var(--bleu-pro);
}

.quick-action-icon.accent {
  background: var(--rose-subtle);
  color: var(--rose-khayzan);
}

.quick-action-btn:hover .quick-action-icon {
  transform: scale(1.06);
}

.quick-action-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--bleu-nuit);
}

.quick-action-desc {
  font-size: 0.84rem;
  color: var(--gris-texte);
  line-height: 1.45;
}

/* État Vide (Empty State) Journal d'activité */
.empty-state-box {
  padding: 3.5rem 2rem;
  text-align: center;
  background: var(--blanc);
  border: 1.5px solid var(--gris-bordure);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.empty-state-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--bleu-subtle);
  color: var(--bleu-pro);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.3rem;
}

/* Barre de Navigation Inférieure Mobile KHAYZAN Access */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 68px;
  background: var(--blanc);
  border-top: 1.5px solid var(--gris-bordure);
  box-shadow: 0 -4px 16px rgba(7, 20, 38, 0.05);
  z-index: 990;
  justify-content: space-around;
  align-items: center;
  padding: 0 0.5rem;
}

.mobile-bottom-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--gris-texte);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.45rem 0.35rem;
  flex-grow: 1;
  position: relative;
  transition: color var(--transition-fast);
  text-decoration: none;
}

.mobile-bottom-item.active {
  color: var(--bleu-pro);
}

.mobile-bottom-item.active::after {
  content: '';
  position: absolute;
  bottom: 4px;
  width: 18px;
  height: 3px;
  background: var(--rose-khayzan);
  border-radius: 99px;
}

.mobile-bottom-item:hover {
  color: var(--bleu-pro);
}


/* -------------------- PIED DE PAGE (FOOTER) -------------------- */
.site-footer {
  margin-top: auto;
  background: #FFFFFF;
  border-top: 1px solid var(--border-color);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-heading {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-title);
  margin-bottom: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-link {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--blue-primary);
}

.footer-bottom {
  padding-top: 1.8rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.2rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* -------------------- RESPONSIVE DESIGN -------------------- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  .hero-content {
    align-items: center;
  }
  .hero-buttons {
    justify-content: center;
  }
  .hero-guarantees {
    justify-content: center;
  }
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 460px;
    margin: 0 auto;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
  .dashboard-sidebar {
    display: none;
  }
  .mobile-bottom-nav {
    display: flex;
  }
  .dashboard-main {
    padding-bottom: 5.5rem;
  }
}

@media (max-width: 868px) {
  .nav-menu-desktop, .nav-actions-desktop {
    display: none !important;
  }
  .nav-toggle {
    display: block;
  }
  .form-grid-2col {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .auth-card {
    padding: 2.2rem 1.6rem;
  }
}

@media (max-width: 600px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ==========================================================================
   APPLICATION MOBILE & SAAS PWA — IDENTITÉ OFFICIELLE KHAYZAN ACCESS
   Propriétaire : Khayzan IT
   Palette stricte :
     - Bleu nuit : #071426
     - Bleu professionnel : #123B63
     - Rose Khayzan : #E85881
     - Blanc : #FFFFFF
     - Gris très clair : #F7F9FC
     - Gris neutre : #E7ECF2
   ========================================================================== */

.khayzan-app-screen {
  min-height: 100vh;
  min-height: 100dvh;
  background-color: var(--bg-body);
  background-image: radial-gradient(circle at 15% 15%, rgba(18, 59, 99, 0.04) 0%, transparent 40%),
                    radial-gradient(circle at 85% 85%, rgba(232, 88, 129, 0.04) 0%, transparent 40%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1.5rem 1.2rem;
}

.khayzan-app-container {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 3rem);
  justify-content: space-between;
}

/* En-tête supérieur avec Logo à gauche et Support à droite */
.khayzan-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: 1.2rem;
}

.khayzan-brand-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.khayzan-k-logo {
  height: 38px;
  width: 38px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(7, 20, 38, 0.08));
  transition: transform 0.2s ease;
}

.khayzan-k-logo:hover {
  transform: scale(1.05);
}

.khayzan-brand-text-block {
  display: flex;
  flex-direction: column;
}

.khayzan-brand-name {
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.2px;
}

.khayzan-brand-name .k-dark { color: #071426; }
.khayzan-brand-name .k-pink { color: #E85881; margin-left: 3px; }

.khayzan-brand-subtag {
  font-size: 0.62rem;
  font-weight: 800;
  color: #64748B;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.khayzan-pill-support {
  background: #FFFFFF;
  border: 1.5px solid #E7ECF2;
  color: #123B63;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  box-shadow: 0 1px 3px rgba(7, 20, 38, 0.04);
  transition: all 0.2s ease;
}

.khayzan-pill-support:hover {
  border-color: #123B63;
  background: #EDF3F9;
  transform: translateY(-1px);
}

/* Zone compacte MikroTik Router en animation seule (sans texte, sans marge ni padding) */
.khayzan-router-visual-only {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: visible;
}

.khayzan-router-animated-img {
  width: 100%;
  max-width: 210px;
  height: auto;
  margin: 0;
  padding: 0;
  display: block;
  animation: routerFloat 3s ease-in-out infinite;
  filter: drop-shadow(0 4px 14px rgba(18, 59, 99, 0.08));
}

@keyframes routerFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

/* Bouton Afficher/Masquer le mot de passe (Œil interactif) */
.password-toggle-btn {
  background: transparent !important;
  border: none !important;
  outline: none !important;
  cursor: pointer !important;
  padding: 0.6rem 0.9rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #64748B !important;
  transition: color 0.15s ease, transform 0.15s ease !important;
  user-select: none !important;
  -webkit-tap-highlight-color: transparent !important;
  z-index: 10 !important;
}

.password-toggle-btn:hover {
  color: #123B63 !important;
  transform: scale(1.08) !important;
}

.password-toggle-btn:active {
  transform: scale(0.95) !important;
}

/* Carte blanche de formulaire */
.khayzan-form-card {
  background: #FFFFFF;
  border: 1.5px solid #E7ECF2;
  border-radius: 22px;
  padding: 1.8rem 1.6rem;
  box-shadow: 0 4px 20px rgba(7, 20, 38, 0.04);
  margin-bottom: 1.2rem;
}

.khayzan-card-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #071426;
  margin-bottom: 0.3rem;
  letter-spacing: -0.3px;
}

.khayzan-card-subtitle {
  font-size: 0.9rem;
  color: #64748B;
  margin-bottom: 1.4rem;
  line-height: 1.45;
}

/* Champs de saisie épurés Khayzan */
.khayzan-input-pill {
  background: #FFFFFF;
  border: 1.5px solid #E7ECF2;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(7, 20, 38, 0.02);
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-bottom: 1.1rem;
  transition: all 0.2s ease;
}

.khayzan-input-pill:focus-within {
  border-color: #123B63;
  box-shadow: 0 0 0 3px rgba(18, 59, 99, 0.1);
}

.khayzan-input-icon {
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748B;
  flex-shrink: 0;
}

.khayzan-input-field {
  flex-grow: 1;
  display: flex;
  align-items: center;
}

.khayzan-input-field input,
.khayzan-input-field select {
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  font-size: 0.98rem;
  font-weight: 600;
  color: #071426;
  padding: 0.85rem 1rem 0.85rem 0.2rem;
  width: 100%;
  background: transparent !important;
}

.khayzan-input-field input::placeholder {
  color: #94A3B8;
  font-weight: 400;
}

.khayzan-forgot-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: #123B63;
  text-decoration: none;
  transition: color 0.15s ease;
}

.khayzan-forgot-link:hover {
  color: #E85881;
  text-decoration: underline;
}

/* Boutons d'action officiels Khayzan */
.khayzan-btn-primary {
  background: #123B63;
  color: #FFFFFF;
  width: 100%;
  height: 50px;
  border-radius: 16px;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 14px rgba(18, 59, 99, 0.22);
  transition: all 0.2s ease;
  text-decoration: none;
}

.khayzan-btn-primary:hover {
  background: #0B2844;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(18, 59, 99, 0.3);
}

.khayzan-btn-accent {
  background: #E85881;
  color: #FFFFFF;
  width: 100%;
  height: 50px;
  border-radius: 16px;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 14px rgba(232, 88, 129, 0.25);
  transition: all 0.2s ease;
  text-decoration: none;
}

.khayzan-btn-accent:hover {
  background: #D03F69;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(232, 88, 129, 0.35);
}

.khayzan-btn-secondary {
  background: #FFFFFF;
  border: 1.5px solid #E7ECF2;
  color: #334155;
  height: 50px;
  border-radius: 16px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  text-decoration: none;
}

.khayzan-btn-secondary:hover {
  background: #F1F5F9;
  border-color: #CBD5E1;
}

.khayzan-btn-row {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 0.85rem;
  width: 100%;
}

.khayzan-secure-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  color: #64748B;
  font-weight: 600;
  margin: 1.2rem 0 0.8rem;
}

.khayzan-signup-prompt {
  text-align: center;
  font-size: 0.92rem;
  color: #334155;
  margin-top: 0.8rem;
}

.khayzan-signup-link {
  color: #E85881;
  font-weight: 800;
  text-decoration: underline;
  margin-left: 0.25rem;
}

.khayzan-version-tag {
  text-align: center;
  font-size: 0.78rem;
  color: #94A3B8;
  font-weight: 600;
  margin-top: 1.2rem;
  letter-spacing: 0.4px;
}

/* ==================== STEPPER INSCRIPTION KHAYZAN ==================== */
.khayzan-step-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 1.5rem;
}

.khayzan-icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #FFFFFF;
  border: 1.5px solid #E7ECF2;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  color: #123B63;
  box-shadow: 0 1px 3px rgba(7, 20, 38, 0.04);
}

.khayzan-icon-btn:hover {
  border-color: #123B63;
  background: #EDF3F9;
  transform: translateY(-1px);
}

.khayzan-page-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #071426;
  margin: 0;
  text-align: center;
  letter-spacing: -0.2px;
}

/* Stepper 4 Étapes */
.khayzan-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 1.8rem;
}

.khayzan-step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.khayzan-step-item .step-num {
  font-size: 1.7rem;
  font-weight: 900;
  line-height: 1;
  color: #CBD5E1;
  transition: color 0.3s ease;
}

.khayzan-step-item .step-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #94A3B8;
}

.khayzan-step-item.active .step-num {
  color: #E85881; /* Rose Khayzan actif */
}

.khayzan-step-item.active .step-label {
  color: #071426; /* Bleu nuit pour le texte */
}

.khayzan-step-item.completed .step-num {
  color: #123B63; /* Bleu professionnel validé */
}

.khayzan-step-item.completed .step-label {
  color: #123B63;
}

.khayzan-step-line {
  flex-grow: 1;
  height: 2px;
  background: #E7ECF2;
  margin: 0 0.4rem;
  margin-top: -1rem;
  transition: background 0.3s ease;
}

.khayzan-step-line.active {
  background: #123B63;
}

/* Encadré d'information Callout */
.khayzan-callout {
  background: #FFFFFF;
  border: 1.5px solid #E7ECF2;
  border-left: 4px solid #123B63;
  border-radius: 16px;
  padding: 1.1rem 1.2rem;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  box-shadow: 0 2px 8px rgba(7, 20, 38, 0.03);
  margin-bottom: 1.4rem;
}

.khayzan-callout-icon {
  color: #123B63;
  flex-shrink: 0;
  margin-top: 1px;
}

.khayzan-callout-text {
  font-size: 0.88rem;
  color: #475569;
  line-height: 1.5;
}

.khayzan-callout-text strong {
  color: #071426;
  font-weight: 700;
}

.khayzan-rounded-input {
  width: 100%;
  padding: 0.85rem 1.1rem;
  border: 1.5px solid #E7ECF2;
  border-radius: 16px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #071426;
  background: #FFFFFF;
  transition: all 0.2s ease;
  font-family: inherit;
}

.khayzan-rounded-input:focus {
  outline: none;
  border-color: #123B63;
  box-shadow: 0 0 0 3px rgba(18, 59, 99, 0.1);
}

.khayzan-rounded-input::placeholder {
  color: #94A3B8;
  font-weight: 400;
}

/* Boîte récapitulative étape 4 */
.khayzan-recap-box {
  background: #F8FAFC;
  border: 1.5px solid #E7ECF2;
  border-radius: 16px;
  padding: 1.1rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.4rem;
}

.khayzan-recap-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
}

.khayzan-recap-row .label {
  color: #64748B;
  font-weight: 600;
}

.khayzan-recap-row .val {
  color: #071426;
  font-weight: 800;
}


/* ==========================================================================
   DASHBOARD MODERNE FINTECH & MATERIAL DESIGN (KHAYZAN ACCESS)
   Card-Based UI • Material 3 Elevations • Fintech Balance Hero Card
   Palette officielle : #071426, #123B63, #E85881, #FFFFFF, #F7F9FC, #E7ECF2
   ========================================================================== */

.fintech-dashboard-wrapper {
  background-color: var(--gris-fond);
  min-height: 100vh;
  padding: 1.2rem 1rem 6.5rem;
  display: flex;
  justify-content: center;
}

.fintech-dashboard-container {
  width: 100%;
  max-width: 560px; /* Format fintech mobile/carte ultra soigné */
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin: 0 auto;
}

@media (min-width: 992px) {
  .fintech-dashboard-container {
    max-width: 780px;
  }
}

/* 1. App Bar Fintech Supérieure */
.fintech-app-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0.2rem;
  margin-bottom: 0.2rem;
}

.fintech-user-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.fintech-user-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #123B63 0%, #071426 100%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 10px rgba(18, 59, 99, 0.2);
  border: 2px solid #FFFFFF;
  flex-shrink: 0;
}

.fintech-user-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.fintech-greeting {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gris-texte);
  display: flex;
  align-items: center;
  gap: 4px;
}

.fintech-username {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--bleu-nuit);
  letter-spacing: -0.3px;
}

.fintech-app-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.fintech-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1.5px solid var(--gris-bordure);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bleu-pro);
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(7, 20, 38, 0.03);
  text-decoration: none;
}

.fintech-icon-btn:hover {
  border-color: var(--bleu-pro);
  transform: translateY(-1px);
}

.fintech-notif-dot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 8px;
  height: 8px;
  background: var(--rose-khayzan);
  border-radius: 50%;
  border: 1.5px solid #FFFFFF;
}

/* 2. Hero Card Fintech (La Carte Maîtresse Hotspot) */
.fintech-hero-card {
  background: linear-gradient(135deg, #0E2E4E 0%, #123B63 50%, #071426 100%);
  border-radius: 26px;
  padding: 1.8rem 1.6rem 1.5rem;
  color: #FFFFFF;
  box-shadow: 0 12px 32px -6px rgba(18, 59, 99, 0.35), 0 4px 12px rgba(7, 20, 38, 0.15);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.fintech-hero-card::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 88, 129, 0.22) 0%, rgba(232, 88, 129, 0) 70%);
  pointer-events: none;
}

.fintech-hero-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.1rem;
}

.fintech-hero-title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.3px;
}

.fintech-refresh-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  cursor: pointer;
  transition: all 0.2s ease;
}

.fintech-refresh-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: rotate(45deg);
}

.fintech-hero-balance-wrap {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.1rem;
}

.fintech-hero-amount {
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: -0.8px;
  line-height: 1;
  color: #FFFFFF;
  font-variant-numeric: tabular-nums;
}

.fintech-eye-btn {
  background: rgba(255, 255, 255, 0.14);
  border: none;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  cursor: pointer;
  transition: all 0.2s ease;
}

.fintech-eye-btn:hover {
  background: rgba(255, 255, 255, 0.28);
}

.fintech-hero-subinfo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 1.4rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.fintech-router-pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.75rem;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.fintech-hero-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.fintech-hero-act-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.52rem 0.85rem;
  border-radius: 11px;
  font-size: 0.78rem;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.fintech-hero-act-btn.primary {
  background: #E85881; /* Rose Khayzan */
  color: #FFFFFF;
  box-shadow: 0 3px 10px rgba(232, 88, 129, 0.35);
}

.fintech-hero-act-btn.primary:hover {
  background: #D43E69;
  transform: translateY(-1px);
}

.fintech-hero-act-btn.glass {
  background: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.fintech-hero-act-btn.glass:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

/* 3. Carte Card-Based Material Design : Grille des Services Hotspot (8 icônes) */
.fintech-card {
  background: #FFFFFF;
  border-radius: 24px;
  border: 1.5px solid var(--gris-bordure);
  box-shadow: 0 4px 18px rgba(7, 20, 38, 0.04);
  padding: 1.6rem 1.4rem;
  transition: box-shadow 0.2s ease;
}

.fintech-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.fintech-card-title {
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--bleu-nuit);
  letter-spacing: -0.2px;
}

.fintech-card-link {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--bleu-pro);
  text-decoration: none;
}

.fintech-card-link:hover {
  color: var(--rose-khayzan);
}

.fintech-services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem 0.5rem;
}

.fintech-service-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease;
  background: transparent;
  border: none;
  padding: 0;
  width: 100%;
}

.fintech-service-item:hover {
  transform: translateY(-3px);
}

.fintech-service-icon-box {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.55rem;
  transition: all 0.2s ease;
  box-shadow: 0 3px 8px rgba(7, 20, 38, 0.03);
}

.fintech-service-item:hover .fintech-service-icon-box {
  box-shadow: 0 6px 16px rgba(18, 59, 99, 0.12);
  transform: scale(1.05);
}

/* Couleurs officielles Khayzan pour les services */
.fintech-service-icon-box.rose {
  background: #FDF2F5;
  color: #E85881;
}

.fintech-service-icon-box.bleu {
  background: #EBF3FA;
  color: #123B63;
}

.fintech-service-icon-box.dark {
  background: #F1F5F9;
  color: #071426;
}

.fintech-service-label {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--bleu-nuit);
  line-height: 1.25;
  max-width: 76px;
  word-wrap: break-word;
}

/* 4. Cartes de Télémétrie Rapide (Double Cartes Material) */
.fintech-telemetry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.fintech-telemetry-card {
  background: #FFFFFF;
  border-radius: 20px;
  border: 1.5px solid var(--gris-bordure);
  padding: 1.25rem 1.15rem;
  box-shadow: 0 2px 10px rgba(7, 20, 38, 0.03);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.85rem;
  transition: all 0.2s ease;
}

.fintech-telemetry-card:hover {
  border-color: var(--bleu-pro);
  transform: translateY(-2px);
}

.fintech-telemetry-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.fintech-telemetry-tag {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--gris-texte);
  letter-spacing: 0.3px;
}

.fintech-telemetry-value {
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--bleu-nuit);
  margin-top: 0.2rem;
}

.fintech-telemetry-desc {
  font-size: 0.76rem;
  color: var(--gris-texte);
  font-weight: 500;
}

/* 5. Activité Récente (Transactions Hotspot) */
.fintech-activity-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.fintech-empty-state {
  text-align: center;
  padding: 2.2rem 1rem;
}

.fintech-empty-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--bleu-subtle);
  color: var(--bleu-pro);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

/* 6. Floating Action Button (FAB Google Material 3) */
.fintech-fab {
  position: fixed;
  bottom: 84px;
  right: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #E85881 0%, #D43E69 100%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(232, 88, 129, 0.45);
  border: none;
  cursor: pointer;
  z-index: 980;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-decoration: none;
}

@media (min-width: 992px) {
  .fintech-fab {
    right: calc(50% - 390px + 10px);
  }
}

.fintech-fab:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 8px 24px rgba(232, 88, 129, 0.55);
}

.fintech-fab:active {
  transform: scale(0.95);
}

/* 7. Barre de Navigation Inférieure (Material 3 Navigation Bar) */
.fintech-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 68px;
  background: #FFFFFF;
  border-top: 1.5px solid var(--gris-bordure);
  box-shadow: 0 -4px 20px rgba(7, 20, 38, 0.05);
  z-index: 990;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 0.4rem;
}

@media (min-width: 992px) {
  .fintech-bottom-bar {
    max-width: 780px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 20px 20px 0 0;
    border: 1.5px solid var(--gris-bordure);
    border-bottom: none;
  }
}

.fintech-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  text-decoration: none;
  color: var(--gris-texte);
  flex-grow: 1;
  padding: 0.4rem 0.2rem;
  transition: color 0.15s ease;
  position: relative;
}

.fintech-nav-pill {
  width: 48px;
  height: 28px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.fintech-nav-item.active {
  color: var(--bleu-pro);
}

.fintech-nav-item.active .fintech-nav-pill {
  background: var(--bleu-subtle);
  color: var(--bleu-pro);
}

.fintech-nav-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: -0.2px;
}

/* ==========================================================================
   PAGE ABONNEMENTS & FORFAITS FINTECH (MATERIAL DESIGN 3)
   Card-Based UI • Animations fluides • Menus Haut & Bas intégrés
   ========================================================================== */

/* Animation d'apparition en cascade */
@keyframes cardCascade {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animation douce pulsée pour le badge le plus populaire */
@keyframes pulseBadge {
  0%, 100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 4px 14px rgba(232, 88, 129, 0.4);
  }
  50% {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 6px 20px rgba(232, 88, 129, 0.6);
  }
}

/* Animation de brillance sur les boutons d'action */
@keyframes btnShine {
  0% { left: -100%; }
  100% { left: 150%; }
}

/* Grille des forfaits */
.fintech-plans-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
  margin-bottom: 2rem;
}

@media (min-width: 900px) {
  .fintech-plans-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Carte de forfait unitaire */
.fintech-plan-card {
  background: #FFFFFF;
  border: 1.5px solid var(--gris-bordure);
  border-radius: 26px;
  padding: 2.2rem 1.6rem 1.8rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  box-shadow: 0 4px 16px rgba(7, 20, 38, 0.04);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  overflow: visible;
}

.fintech-plan-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 16px 36px rgba(18, 59, 99, 0.12);
  border-color: var(--bleu-pro);
}

.fintech-plan-card:nth-child(1) { animation: cardCascade 0.45s 0.08s ease-out both; }
.fintech-plan-card:nth-child(2) { animation: cardCascade 0.45s 0.18s ease-out both; }
.fintech-plan-card:nth-child(3) { animation: cardCascade 0.45s 0.28s ease-out both; }

/* Carte populaire mise en avant */
.fintech-plan-card.featured {
  border: 2px solid var(--rose-khayzan);
  background: linear-gradient(180deg, #FFFFFF 0%, #FDF8FA 100%);
  box-shadow: 0 8px 30px rgba(232, 88, 129, 0.16);
}

.fintech-plan-card.featured:hover {
  box-shadow: 0 20px 42px rgba(232, 88, 129, 0.25);
  border-color: var(--rose-khayzan-hover);
}

/* Badge flottant animé */
.fintech-plan-badge {
  position: absolute;
  top: -14px;
  right: 22px;
  background: linear-gradient(135deg, #E85881 0%, #D43E69 100%);
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  animation: pulseBadge 3s ease-in-out infinite;
  z-index: 5;
}

/* Switch Mensuel / Annuel animé */
.fintech-toggle-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  margin: 0 auto 1.6rem;
  background: #FFFFFF;
  padding: 0.35rem;
  border-radius: 999px;
  border: 1.5px solid var(--gris-bordure);
  width: fit-content;
  box-shadow: 0 2px 10px rgba(7, 20, 38, 0.03);
}

.fintech-toggle-btn {
  padding: 0.48rem 1.15rem;
  border-radius: 999px;
  border: none;
  background: transparent;
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--gris-texte);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.fintech-toggle-btn.active {
  background: var(--bleu-pro);
  color: #FFFFFF;
  box-shadow: 0 3px 10px rgba(18, 59, 99, 0.25);
  transform: scale(1.02);
}

.fintech-save-tag {
  background: #FDF2F5;
  color: #E85881;
  font-size: 0.7rem;
  font-weight: 900;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(232, 88, 129, 0.25);
}

/* Liste des fonctionnalités */
.fintech-plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin: 1.5rem 0 2rem;
  padding: 0;
}

.fintech-plan-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.88rem;
  color: var(--text-body);
  line-height: 1.4;
  transition: transform 0.15s ease;
}

.fintech-plan-feature-item:hover {
  transform: translateX(3px);
}

.fintech-feature-check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.fintech-feature-check.pro {
  background: #FDF2F5;
  color: #E85881;
}

.fintech-feature-check.blue {
  background: #EBF3FA;
  color: #123B63;
}

/* Boutons CTA avec effet hover brillant */
.fintech-plan-cta {
  width: 100%;
  height: 48px;
  border-radius: 14px;
  font-size: 0.95rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;
}

.fintech-plan-cta.accent {
  background: linear-gradient(135deg, #E85881 0%, #D43E69 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 16px rgba(232, 88, 129, 0.4);
}

.fintech-plan-cta.accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232, 88, 129, 0.55);
}

.fintech-plan-cta.primary {
  background: var(--bleu-pro);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(18, 59, 99, 0.25);
}

.fintech-plan-cta.primary:hover {
  background: var(--bleu-pro-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(18, 59, 99, 0.35);
}

.fintech-plan-cta.secondary {
  background: var(--bleu-subtle);
  color: var(--bleu-pro);
  border: 1.5px solid var(--gris-bordure);
}

.fintech-plan-cta.secondary:hover {
  background: #E0ECF7;
  border-color: var(--bleu-pro);
  transform: translateY(-2px);
}

.fintech-plans-container {
  width: 100%;
  max-width: 1060px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

