/*
Theme Name: MyNovaWay
Theme URI: https://www.mynovaway.ch
Author: NovaWay
Description: Thème du portail MyNovaWay, identique au design du site NovaWay (www.novaway.ch).
Version: 1.0
Text Domain: mynovaway
*/

/* ==========================================================================
   MyNovaWay - Portail NovaWay
   Feuille de style principale (style.css)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. VARIABLES & PALETTE DE COULEURS
   -------------------------------------------------------------------------- */
:root {
  /* Nuances Brand (Bleu NovaWay) */
  --color-brand-50: #eff6ff;
  --color-brand-100: #dbeafe;
  --color-brand-200: #bfdbfe;
  --color-brand-500: #2563eb;
  --color-brand-600: #1d4ed8;
  --color-brand-700: #1e40af;
  --color-brand-800: #1e3a8a;
  --color-brand-900: #0f172a;

  /* Nuances Cyan / Accent */
  --color-accent-400: #38bdf8;
  --color-accent-500: #0ea5e9;
  --color-accent-600: #0284c7;

  /* Palette d'état & d'alerte */
  --color-emerald-400: #34d399;
  --color-emerald-500: #10b981;
  --color-amber-400: #fbbf24;
  --color-amber-500: #f59e0b;
  --color-rose-500: #f43f5e;

  /* Arrière-plans & Textes */
  --color-bg-body: #f8fafc;
  --color-bg-card: #ffffff;
  --color-text-main: #1e293b;
  --color-text-muted: #64748b;
  --color-border-light: #e2e8f0;

  /* Typographie */
  --font-primary: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* Rayons de bordure */
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --------------------------------------------------------------------------
   2. RÉINITIALISATION & FONDATIONS
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  background-color: var(--color-bg-body);
  color: var(--color-text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background-color: var(--color-brand-500);
  color: #ffffff;
}

img, svg {
  vertical-align: middle;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* --------------------------------------------------------------------------
   3. EN-TÊTE & BARRE DE NAVIGATION (GLASSMORPHISM)
   -------------------------------------------------------------------------- */
.glass-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  width: 100%;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.7);
  transition: all var(--transition-normal);
}

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

.nav-link:hover {
  color: var(--color-brand-600);
}

/* Badge B2B pour le menu WebShop */
.badge-webshop-b2b {
  font-size: 0.625rem;
  font-weight: 700;
  padding: 0.125rem 0.375rem;
  border-radius: var(--radius-full);
  background-color: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

/* --------------------------------------------------------------------------
   4. BOUTONS & DÉGRADÉS D'ACTION (BOUTON MYNOVAWAY)
   -------------------------------------------------------------------------- */
.btn-gradient {
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 18px -2px rgba(37, 99, 235, 0.45);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all var(--transition-fast);
}

.btn-gradient:hover {
  box-shadow: 0 8px 24px -2px rgba(37, 99, 235, 0.65);
  transform: translateY(-1px);
}

.btn-gradient:active {
  transform: scale(0.98);
}

/* Témoin lumineux clignotant sur MyNovaWay */
.pulse-indicator {
  position: relative;
  display: flex;
  height: 0.625rem;
  width: 0.625rem;
}

.pulse-indicator .ping {
  position: absolute;
  height: 100%;
  width: 100%;
  border-radius: var(--radius-full);
  background-color: #6ee7b7;
  opacity: 0.75;
  animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.pulse-indicator .solid {
  position: relative;
  border-radius: var(--radius-full);
  height: 0.625rem;
  width: 0.625rem;
  background-color: var(--color-emerald-400);
}

@keyframes ping {
  75%, 100% {
    transform: scale(2);
    opacity: 0;
  }
}

/* --------------------------------------------------------------------------
   5. SECTION HERO & HALOS LUMINEUX
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, rgba(239, 246, 255, 0.4) 60%, var(--color-bg-body) 100%);
}

.hero-glow-left {
  position: absolute;
  top: -8rem;
  left: -8rem;
  width: 24rem;
  height: 24rem;
  border-radius: var(--radius-full);
  background: rgba(37, 99, 235, 0.1);
  filter: blur(64px);
  pointer-events: none;
}

.hero-glow-right {
  position: absolute;
  top: 50%;
  right: -8rem;
  width: 24rem;
  height: 24rem;
  border-radius: var(--radius-full);
  background: rgba(56, 189, 248, 0.15);
  filter: blur(64px);
  pointer-events: none;
}

.hero-title-gradient {
  background: linear-gradient(90deg, var(--color-brand-600) 0%, #4f46e5 50%, var(--color-accent-600) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* --------------------------------------------------------------------------
   6. CARTE DASHBOARD ERP SIMULATION
   -------------------------------------------------------------------------- */
.erp-card-wrapper {
  position: relative;
}

.erp-card-glow {
  position: absolute;
  inset: -0.375rem;
  background: linear-gradient(90deg, var(--color-brand-600), var(--color-accent-500));
  border-radius: 1.75rem;
  filter: blur(20px);
  opacity: 0.3;
  transition: opacity var(--transition-normal);
}

.erp-card-window {
  position: relative;
  border-radius: 1.5rem;
  background-color: var(--color-brand-900);
  border: 1px solid #1e293b;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  color: #ffffff;
  overflow: hidden;
}

.erp-window-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1.25rem;
  background-color: rgba(2, 6, 23, 0.8);
  border-bottom: 1px solid #1e293b;
}

.window-dots {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: var(--radius-full);
}
.dot-red { background-color: var(--color-rose-500); }
.dot-amber { background-color: var(--color-amber-500); }
.dot-green { background-color: var(--color-emerald-500); }

.erp-metric-box {
  padding: 0.875rem;
  border-radius: var(--radius-md);
  background-color: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(51, 65, 85, 0.6);
}

.erp-task-row {
  padding: 0.625rem;
  border-radius: var(--radius-md);
  background-color: rgba(30, 41, 59, 0.4);
  border: 1px solid rgba(51, 65, 85, 0.4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
}

/* --------------------------------------------------------------------------
   7. SECTION PÔLES D'ACTIVITÉS (6 CARTES)
   -------------------------------------------------------------------------- */
.pole-card {
  background-color: var(--color-bg-card);
  border-radius: var(--radius-2xl);
  padding: 1.75rem;
  border: 1px solid var(--color-border-light);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-normal);
}

.pole-card:hover {
  border-color: var(--color-brand-200);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
}

.pole-icon-container {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-fast);
}

.pole-card:hover .pole-icon-container {
  transform: scale(1.1);
}

/* --------------------------------------------------------------------------
   8. VALEURS & PARTENAIRES
   -------------------------------------------------------------------------- */
.valeur-card {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid #f1f5f9;
  background-color: rgba(248, 250, 252, 0.7);
  transition: all var(--transition-fast);
}

.valeur-card:hover {
  background-color: #ffffff;
  border-color: var(--color-brand-200);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07);
}

/* --------------------------------------------------------------------------
   9. MODALE MYNOVAWAY
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background-color: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-dialog {
  position: relative;
  width: 100%;
  max-width: 28rem;
  background-color: #ffffff;
  border-radius: var(--radius-2xl);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 1px solid #f1f5f9;
  overflow: hidden;
  animation: modalIn 0.25s ease-out forwards;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-banner {
  background: linear-gradient(90deg, var(--color-brand-600) 0%, #4f46e5 50%, var(--color-accent-600) 100%);
  padding: 1.5rem;
  color: #ffffff;
  text-align: center;
  position: relative;
}

/* --------------------------------------------------------------------------
   10. PIED DE PAGE (FOOTER)
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: #020617;
  color: #94a3b8;
  padding-top: 4rem;
  padding-bottom: 3rem;
  border-top: 1px solid #1e293b;
}

.site-footer a:hover {
  color: #ffffff;
  transition: color var(--transition-fast);
}

/* --------------------------------------------------------------------------
   11. ACCESSIBILITÉ & UTILITAIRES DIVERS
   -------------------------------------------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

:focus-visible {
  outline: 2px solid var(--color-brand-500);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   12. PAGES WORDPRESS (Connexion, Compte, Membres… via Ultimate Member)
   -------------------------------------------------------------------------- */
.entry-content > * + * { margin-top: 1rem; }
.entry-content p { line-height: 1.7; }
.entry-content a:not(.um-button):not(.button) { color: var(--color-brand-600); }
.entry-content ul, .entry-content ol { padding-left: 1.5rem; }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content h2 { font-size: 1.5rem; font-weight: 800; margin-top: 2rem; }
.entry-content h3 { font-size: 1.2rem; font-weight: 700; margin-top: 1.5rem; }

/* Formulaires Ultimate Member aux couleurs NovaWay */
.um .um-button, .um a.um-button, .um input[type="submit"].um-button {
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%) !important;
  border-radius: var(--radius-md) !important;
  font-family: inherit;
  font-weight: 700;
  box-shadow: 0 4px 18px -2px rgba(37, 99, 235, 0.45);
}
.um .um-button:hover { opacity: 0.92; }
.um a.um-button.um-alt, .um input[type="submit"].um-button.um-alt {
  background: #fff !important;
  color: var(--color-text-main) !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: none;
}
.um input[type="text"], .um input[type="password"], .um input[type="email"], .um textarea, .um select {
  border-radius: var(--radius-md) !important;
  font-family: inherit;
}
.um-form, .um { font-family: var(--font-primary); }

/* Logo : taille identique sur toutes les pages */
.glass-nav a > div > img { height: 3.5rem !important; width: auto !important; max-width: none !important; }
footer a > img { height: 3rem !important; width: auto !important; max-width: none !important; }
@media (min-width: 768px) {
  .glass-nav a > div > img { height: 4.5rem !important; }
  footer a > img { height: 3.5rem !important; }
}
