/* ===================================================
   NRV Informatique — Style Professionnel IT/Tech
   Mode sombre (défaut) + Mode clair
   =================================================== */

/* ─── Variables MODE SOMBRE (défaut) ────────────── */
:root {
  --cyan:       #00C4D4;
  --cyan-dark:  #0099AA;
  --violet:     #8B3DAF;
  --violet-dark:#6A2D8A;
  --border:     rgba(0,196,212,.18);
  --text:       #E2E8F0;
  --text-muted: #94A3B8;
  --bg:         #0D1424;
  --card-bg:    rgba(17,24,39,.85);
  --header-bg:  rgba(10,15,30,.94);
  --header-border: rgba(0,196,212,.18);
  --nav-mobile-bg: rgba(10,15,30,.98);
  --footer-bg:  rgba(10,15,30,.96);
  --input-bg:   rgba(10,15,30,.7);
  --grid-line:  rgba(0,196,212,.04);
  --scrollbar-track: #0A0F1E;
  --scrollbar-thumb: #243049;
  --shadow:     0 4px 24px rgba(0,0,0,.4);
  --glow:       0 0 20px rgba(0,196,212,.25);
  --header-h:   72px;
  --radius:     12px;
  --radius-lg:  18px;
  --transition: .22s cubic-bezier(.4,0,.2,1);
  /* Couleurs fixes typographie dark */
  --h1-color:   #ffffff;
  --h3-color:   #ffffff;
  --service-card-bg: rgba(28,37,55,.65);
  --service-h5: #ffffff;
  --benefice-bg: rgba(28,37,55,.55);
  --benefice-h3: #ffffff;
  --stat-bg:    rgba(28,37,55,.65);
  --action-bg:  rgba(17,24,39,.65);
  --action-color: #E2E8F0;
  --actu-h2:    #ffffff;
  --table-td:   #E2E8F0;
  --table-hover: rgba(0,196,212,.025);
  --btn-color:  #E2E8F0;
  --toggle-bg:  rgba(255,255,255,.08);
  --toggle-icon-d: block;
  --toggle-icon-l: none;
}

/* ─── Variables MODE CLAIR ───────────────────────── */
html.light {
  --border:     rgba(0,150,160,.2);
  --text:       #1E293B;
  --text-muted: #64748B;
  --bg:         #F0F4F8;
  --card-bg:    #ffffff;
  --header-bg:  rgba(255,255,255,.95);
  --header-border: rgba(0,150,160,.15);
  --nav-mobile-bg: rgba(255,255,255,.99);
  --footer-bg:  #1E293B;
  --input-bg:   #ffffff;
  --grid-line:  rgba(0,150,160,.06);
  --scrollbar-track: #E2E8F0;
  --scrollbar-thumb: #CBD5E1;
  --shadow:     0 4px 24px rgba(0,0,0,.08);
  --glow:       0 0 16px rgba(0,196,212,.15);
  --h1-color:   #0F172A;
  --h3-color:   #1E293B;
  --service-card-bg: #ffffff;
  --service-h5: #0F172A;
  --benefice-bg: #ffffff;
  --benefice-h3: #0F172A;
  --stat-bg:    #ffffff;
  --action-bg:  #F8FAFC;
  --action-color: #1E293B;
  --actu-h2:    #0F172A;
  --table-td:   #1E293B;
  --table-hover: rgba(0,196,212,.04);
  --btn-color:  #1E293B;
  --toggle-bg:  rgba(0,0,0,.06);
}

/* ─── Reset ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { height: 100%; scroll-behavior: smooth; }

body {
  font-family: 'Space Grotesk', 'Poppins', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100%;
  display: flex;
  flex-direction: column;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background var(--transition), color var(--transition);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
  z-index: 0;
}

/* ─── Typography ────────────────────────────────── */
h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 700; color: var(--h1-color); margin-bottom: .9rem; letter-spacing: -.02em; }
h2 { font-size: clamp(1.1rem, 2.5vw, 1.55rem); font-weight: 600; color: var(--cyan); margin-bottom: .7rem; letter-spacing: -.01em; }
h3 { font-size: 1.1rem; font-weight: 600; color: var(--h3-color); margin-bottom: .45rem; }
h4, h5 { font-size: .95rem; font-weight: 600; color: var(--text-muted); margin-bottom: .35rem; }
p { color: var(--text-muted); margin-bottom: .7rem; }
p:last-child { margin-bottom: 0; }
a { color: var(--cyan); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--cyan-dark); }
ul, ol { padding-left: 1.4rem; color: var(--text-muted); }
li { margin-bottom: .3rem; }
li b, li strong { color: var(--text); }
hr { border: none; border-top: 1px solid var(--border); margin: .9rem 0; }

/* ─── Layout ────────────────────────────────────── */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: calc(var(--header-h) + 28px) 20px 48px;
  flex-grow: 1;
  width: 100%;
  position: relative;
  z-index: 1;
}

/* ─── Header ────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: var(--header-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--header-border);
  z-index: 100;
  display: flex;
  align-items: center;
  transition: background var(--transition), border-color var(--transition);
}

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1160px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  gap: 14px;
}

.brand img { height: 50px; width: auto; filter: drop-shadow(0 0 8px rgba(0,196,212,.28)); transition: filter var(--transition); }
.brand:hover img { filter: drop-shadow(0 0 14px rgba(0,196,212,.5)); }

/* Deux fichiers logo : sombre vs clair (classe .light sur <html>) */
.brand .brand-logo-light {
  display: none !important;
}
html.light .brand .brand-logo-dark {
  display: none !important;
}

.brand-logo-dark {
  margin-top: 10px;
}

html.light .brand .brand-logo-light {
  display: block !important;
}

/* En mode clair, pas de filtre sur le logo */
html.light .brand img { filter: none; }
html.light .brand:hover img { filter: drop-shadow(0 0 8px rgba(0,196,212,.4)); }

.main-nav { display: flex; align-items: center; gap: 2px; }
.main-nav a {
  padding: 7px 13px;
  border-radius: 8px;
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--transition);
  white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active {
  color: var(--cyan);
  background: rgba(0,196,212,.1);
}

/* ─── Nav dropdown (sous-menu) ───────────────────── */
.nav-dropdown { position: relative; display: flex; align-items: center; }

.nav-dropdown-btn {
  padding: 7px 13px;
  border-radius: 8px;
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-muted);
  background: none;
  border: none;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all var(--transition);
  white-space: nowrap;
}
.nav-dropdown-btn:hover,
.nav-dropdown-btn.active { color: var(--cyan); background: rgba(0,196,212,.1); }
.nav-arrow { font-size: .65rem; transition: transform var(--transition); display: inline-block; }
.nav-dropdown.open .nav-arrow { transform: rotate(180deg); }

.nav-submenu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--header-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 28px rgba(0,0,0,.35);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  min-width: 230px;
  padding: 6px;
  list-style: none;
  z-index: 200;
  animation: fadeInUp .18s ease both;
}
.nav-dropdown.open .nav-submenu { display: block; }

.nav-submenu li a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  border-radius: 7px;
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--transition);
  background: none;
  white-space: nowrap;
}
.nav-submenu li a:hover,
.nav-submenu li a.active { color: var(--cyan); background: rgba(0,196,212,.1); }

.nav-actions { display: flex; align-items: center; gap: 10px; }

/* ─── Toggle Thème ───────────────────────────────── */
.theme-toggle {
  width: 38px; height: 38px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--toggle-bg);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  transition: all var(--transition);
  color: var(--text-muted);
  flex-shrink: 0;
}
.theme-toggle:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(0,196,212,.08);
}
.theme-toggle .icon-dark { display: block; }
.theme-toggle .icon-light { display: none; }
html.light .theme-toggle .icon-dark { display: none; }
html.light .theme-toggle .icon-light { display: block; }

/* ─── Panier ─────────────────────────────────────── */
.cart-wrapper { position: relative; display: inline-flex; align-items: center; }
.cart-wrapper img {
  height: 34px; opacity: .8;
  filter: invert(1) brightness(1.1) sepia(1) hue-rotate(155deg) saturate(1.5);
  transition: opacity var(--transition);
}
html.light .cart-wrapper img { filter: invert(0) brightness(.7) sepia(1) hue-rotate(155deg) saturate(2); }
.cart-wrapper:hover img { opacity: 1; }
.cart-badge {
  position: absolute; top: -5px; right: -7px;
  background: var(--violet); color: #fff;
  font-size: .68rem; font-weight: 700;
  min-width: 17px; height: 17px;
  border-radius: 9px; display: flex; align-items: center; justify-content: center; padding: 0 3px;
}

.nav-burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; border: none; background: none; }
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--text-muted); border-radius: 2px; transition: all var(--transition); }

/* ─── Cards ──────────────────────────────────────── */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 26px;
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}
.card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  opacity: 0; transition: opacity var(--transition);
}
.card:hover::before { opacity: 1; }
.card:hover { border-color: rgba(0,196,212,.35); box-shadow: var(--glow); }

html.light .card { box-shadow: 0 2px 12px rgba(0,0,0,.06); }

/* Zone « détail module » espace client : pas d’overflow ni de backdrop-filter sur la carte,
   sinon les modales position:fixed sont ancrées à cette boîte et se font couper en bas. */
#module-detail.card {
  overflow: visible;
  backdrop-filter: none;
}

/* Modules espace client « en travaux » */
.client-module-wip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
  padding: 8px 0 12px;
  max-width: 520px;
  margin: 0 auto;
}
.client-module-wip-visual {
  width: min(100%, 320px);
}
.client-module-wip-visual img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  object-fit: contain;
}
.client-module-wip-msg {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.5;
  margin: 0;
}
@media (min-width: 640px) {
  .client-module-wip {
    flex-direction: row;
    text-align: left;
    gap: 24px;
    max-width: 640px;
  }
  .client-module-wip-visual {
    flex: 0 0 200px;
    width: 200px;
  }
}

/* ─── Grids ──────────────────────────────────────── */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-bottom: 14px; }
.grid  { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }

/* ─── Hero ───────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, rgba(0,196,212,.07) 0%, rgba(139,61,175,.07) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 36px; margin-bottom: 14px; text-align: center;
  transition: background var(--transition);
}
html.light .hero { background: linear-gradient(135deg, rgba(0,196,212,.05) 0%, rgba(139,61,175,.05) 100%); }
.hero::after {
  content: ''; position: absolute; top: -60px; right: -60px;
  width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(0,196,212,.12), transparent 70%);
  pointer-events: none;
}
.hero h1 { font-size: clamp(1.8rem, 4.5vw, 2.8rem); margin-bottom: .9rem; }
.hero p { font-size: 1.05rem; max-width: 580px; margin: 0 auto 1.4rem; }

/* ─── Buttons ────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 20px; border-radius: 8px; font-size: .875rem; font-weight: 600;
  font-family: inherit; cursor: pointer;
  border: 1px solid var(--border); background: transparent; color: var(--btn-color);
  transition: all var(--transition); text-decoration: none;
}
.btn:hover { border-color: rgba(0,196,212,.5); color: var(--cyan); background: rgba(0,196,212,.07); }

.btn-primary {
  background: linear-gradient(135deg, var(--cyan), var(--cyan-dark));
  color: #0A0F1E; border: none; font-weight: 700;
  box-shadow: 0 4px 14px rgba(0,196,212,.28);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #05d8ea, var(--cyan));
  box-shadow: 0 6px 20px rgba(0,196,212,.45);
  transform: translateY(-1px); color: #0A0F1E;
}
.btn-lg { padding: 13px 26px; font-size: .95rem; border-radius: 10px; }
.btn-sm { padding: 5px 12px; font-size: .78rem; }
.btn-danger { background: rgba(239,68,68,.1); border-color: rgba(239,68,68,.35); color: #EF4444; }
.btn-danger:hover { background: rgba(239,68,68,.2); }

/* ─── Services grid ──────────────────────────────── */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; margin-top: 8px; }
.service-card {
  background: var(--service-card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px; text-align: center;
  transition: all var(--transition); text-decoration: none; display: block;
}
html.light .service-card { box-shadow: 0 1px 6px rgba(0,0,0,.05); }
.service-card:hover { border-color: var(--cyan); background: rgba(0,196,212,.05); transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,196,212,.18); }
.service-icon { font-size: 1.9rem; margin-bottom: 10px; display: block; }
.service-card h5 { font-size: .95rem; font-weight: 600; color: var(--service-h5); margin-bottom: 5px; }
.service-card p { font-size: .8rem; margin: 0; }

/* ─── TypeClient ─────────────────────────────────── */
.TypeClient { margin: 10px 0 16px; }
.groupeClient p { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* ─── Actualité ───────────────────────────────────── */
#BlockActualite article { border-bottom: 1px solid var(--border); padding-bottom: 18px; margin-bottom: 18px; }
#BlockActualite article:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.actu { display: flex; gap: 16px; align-items: flex-start; }
.imgactu { flex-shrink: 0; }
.imgactu img, .imgactu picture img { width: 120px; height: 120px; object-fit: cover; border-radius: 10px; border: 1px solid var(--border); display: block; box-shadow: none; }
.texteactu { flex: 1; }
.texteactu h2 { font-size: 1.05rem; color: var(--actu-h2); margin-bottom: 5px; }
#BlockActualite footer { display: flex; justify-content: flex-end; margin-top: 8px; }
#BlockActualite footer time { font-size: .73rem; color: var(--text-muted); background: rgba(0,196,212,.07); border: 1px solid var(--border); padding: 3px 10px; border-radius: 20px; }

/* ─── Bénéfices ───────────────────────────────────── */
.benefice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.benefice {
  text-align: center; padding: 22px 14px;
  background: var(--benefice-bg);
  border: 1px solid var(--border); border-radius: var(--radius);
  transition: all var(--transition);
}
html.light .benefice { box-shadow: 0 1px 6px rgba(0,0,0,.05); }
.benefice:hover { border-color: var(--cyan); }
.benefice-icon { font-size: 2rem; margin-bottom: 10px; display: block; }
.benefice h3 {
  font-size: .95rem;
  font-weight: 600;
  color: var(--benefice-h3);
  margin-bottom: 5px;
}
/* Texte des cartes avantages : toujours lisible (clair / sombre) */
.benefice p {
  color: var(--text-muted);
  margin-bottom: 0;
}
html.light .benefice h3 {
  color: var(--benefice-h3);
}
html.light .benefice p {
  color: var(--text-muted);
}

/* CTA bas de page (pages services) : ne pas utiliser #fff en dur */
.service-cta-card h2 {
  color: var(--h1-color);
  margin-bottom: 0.75rem;
}
.service-cta-card > p {
  color: var(--text-muted);
}

/* CTA avec visuel (ex. cybersecurite.php) : image + texte côte à côte */
.service-cta-with-img {
  padding: 28px 24px 32px;
}
.service-cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  max-width: 920px;
  margin: 0 auto;
}
.service-cta-visual {
  flex: 0 1 auto;
  width: min(100%, 260px);
}
.service-cta-visual img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  object-fit: contain;
}
.service-cta-copy {
  flex: 1 1 auto;
  text-align: center;
  min-width: 0;
}
.service-cta-copy p {
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 720px) {
  .service-cta-inner {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 32px;
    text-align: left;
  }
  .service-cta-visual {
    width: min(38%, 280px);
    max-width: 280px;
  }
  .service-cta-copy {
    text-align: left;
  }
  .service-cta-copy p {
    margin-left: 0;
    margin-right: 0;
    max-width: 32rem;
  }
  .service-cta-copy .btn {
    margin-top: 4px;
  }
}

/* Page erreur 404 */
.nrv-404-wrap {
  padding: 24px 20px 32px;
  max-width: 920px;
  margin: 0 auto;
}
.nrv-404-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
}
.nrv-404-visual {
  width: min(100%, 420px);
}
.nrv-404-visual img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  object-fit: contain;
}
.nrv-404-copy {
  max-width: 36rem;
}
.nrv-404-lead {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 20px;
}
.nrv-404-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 16px;
}
.nrv-404-hint {
  font-size: 0.88rem;
  margin: 0;
}
.nrv-404-hint a {
  color: var(--cyan);
}
@media (min-width: 720px) {
  .nrv-404-inner {
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 36px;
  }
  .nrv-404-visual {
    flex: 0 1 320px;
    width: auto;
    max-width: 340px;
  }
  .nrv-404-copy {
    flex: 1 1 auto;
    text-align: left;
  }
  .nrv-404-actions {
    justify-content: flex-start;
  }
}

/* ─── Tables ─────────────────────────────────────── */
table { width: 100%; border-collapse: collapse; font-size: .88rem; }
table thead { background: rgba(0,196,212,.06); }
table th { padding: 11px 13px; text-align: left; font-weight: 600; color: var(--cyan); border-bottom: 1px solid var(--border); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
table td { padding: 11px 13px; border-bottom: 1px solid var(--border); color: var(--table-td); }
table tr:hover td { background: var(--table-hover); }
table tr:last-child td { border-bottom: none; }

/* ─── Forms ──────────────────────────────────────── */
label { display: block; font-size: .84rem; font-weight: 500; color: var(--text-muted); margin-bottom: 4px; }

/* Consentement RGPD (contact, devis produit, etc.) */
.contact-rgpd {
  margin-top: 8px;
  margin-bottom: 18px;
}
.contact-rgpd-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-muted);
  font-weight: 400;
}
.contact-rgpd-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: var(--cyan);
  cursor: pointer;
}
.contact-rgpd-row span a {
  color: var(--cyan);
  text-decoration: underline;
}
.contact-rgpd-row span a:hover {
  color: var(--cyan-dark);
}
input[type="text"], input[type="email"], input[type="password"],
input[type="tel"], input[type="number"], textarea, select {
  width: 100%; padding: 10px 13px;
  background: var(--input-bg); border: 1px solid var(--border);
  border-radius: 8px; color: var(--text); font-family: inherit; font-size: .88rem;
  transition: border-color var(--transition), box-shadow var(--transition); outline: none;
}
input:focus, textarea:focus, select:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0,196,212,.13); }
input::placeholder, textarea::placeholder { color: var(--text-muted); opacity: .6; }
textarea { resize: vertical; min-height: 100px; }
.form-group { margin-bottom: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* Contact form compat */
#form-contact p { margin-bottom: 12px; }
#form-contact p label { font-size: .84rem; font-weight: 500; color: var(--text-muted); display: block; margin-bottom: 4px; }
#form-contact p input, #form-contact p.demande textarea { width: 100%; }
#form-contact p.nom { float: left; width: 49%; }
#form-contact p.prenom { float: right; width: 49%; }
#form-contact::after { content: ''; display: table; clear: both; }

/* ─── Dashboard client ───────────────────────────── */
.client-group { margin-bottom: 12px; }
.dashboard-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 14px; }
.stat-card {
  background: var(--stat-bg);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; text-align: center; transition: all var(--transition);
}
html.light .stat-card { box-shadow: 0 1px 6px rgba(0,0,0,.05); }
.stat-card:hover { border-color: var(--cyan); }
.stat-card h3 { font-size: .82rem; color: var(--text-muted); margin-bottom: 8px; }
.stat-card .stat-value { font-size: 1.9rem; font-weight: 700; color: var(--cyan); }
.stat-card-sub {
  margin: 8px 0 0;
  font-size: .72rem;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.35;
}

.client-ticket-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 12px 16px;
  margin-bottom: 18px;
}
.client-ticket-toolbar .client-module-title {
  flex: 1 1 200px;
  margin: 0;
}
.client-ticket-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0;
}
.client-ticket-flash {
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 0.86rem;
  margin-bottom: 14px;
  max-width: 100%;
  box-sizing: border-box;
}
.client-ticket-flash-ok {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
}
html.light .client-ticket-flash-ok { color: #059669; }
.client-ticket-flash-err {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #f87171;
}
html.light .client-ticket-flash-err { color: #b91c1c; }
.client-ticket-empty-hint {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

.client-module-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.client-module-title { margin: 0; font-size: 1.25rem; color: var(--cyan); }
.client-module-filter { margin: 0; }
.client-year-select {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--input-bg);
  color: var(--text);
  font-size: .85rem;
  font-family: inherit;
  cursor: pointer;
  min-width: 100px;
}
.client-year-select:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0,196,212,.12);
}
.client-facture-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .86rem;
}
.client-facture-table th {
  text-align: left;
  padding: 10px 8px;
  color: var(--text-muted);
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  border-bottom: 1px solid var(--border);
}
.client-facture-table td {
  padding: 12px 8px;
  border-top: 1px solid var(--border);
  vertical-align: top;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.ticket-view-modal-inner { max-width: 520px; }
.ticket-view-meta { margin-bottom: 14px; }
.ticket-meta-line {
  font-size: .82rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.ticket-thread {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: min(55vh, 420px);
  overflow-y: auto;
  padding: 4px 2px 8px;
}
.ticket-bubble {
  max-width: 92%;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: .86rem;
  line-height: 1.45;
}
.ticket-bubble-you {
  align-self: flex-end;
  background: linear-gradient(135deg, rgba(0,196,212,.22), rgba(0,196,212,.1));
  border: 1px solid rgba(0,196,212,.35);
  border-bottom-right-radius: 4px;
}
.ticket-bubble-support {
  align-self: flex-start;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}
.ticket-bubble-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
  font-size: .72rem;
  color: var(--text-muted);
}
.ticket-meta-sep {
  margin: 0 0.35em;
  opacity: 0.7;
}
.ticket-meta-line strong {
  color: var(--text-muted);
  font-weight: 600;
}
.ticket-bubble-author { font-weight: 700; color: var(--cyan); }
.ticket-bubble-you .ticket-bubble-author { color: var(--text); }
.ticket-bubble-body { white-space: pre-wrap; word-break: break-word; color: var(--text); }

.action-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin-bottom: 14px; }
.action-card {
  background: var(--action-bg);
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: all var(--transition);
}
html.light .action-card { box-shadow: 0 1px 6px rgba(0,0,0,.04); }
.action-card:hover { border-color: var(--cyan); transform: translateY(-2px); }
.action-card a { display: block; padding: 16px; text-align: center; color: var(--action-color); }
.action-card .action-icon { font-size: 1.5rem; margin-bottom: 7px; display: block; }
.action-card .action-label { font-size: .82rem; font-weight: 600; }
.btn-clientlogout { float: right; margin-top: -4px; }

/* ─── Status badges ──────────────────────────────── */
.status-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 20px; font-size: .73rem; font-weight: 600; white-space: nowrap; }
.status-badge::before { content: '●'; font-size: .55rem; }
.status-paid, .status-closed, .status-resolved { background: rgba(34,197,94,.13); color: #16A34A; border: 1px solid rgba(34,197,94,.28); }
html:not(.light) .status-paid, html:not(.light) .status-closed, html:not(.light) .status-resolved { color: #4ADE80; }
.status-pending { background: rgba(251,191,36,.1); color: #D97706; border: 1px solid rgba(251,191,36,.28); }
html:not(.light) .status-pending { color: #FCD34D; }
.status-progress { background: rgba(0,196,212,.1); color: var(--cyan-dark); border: 1px solid var(--border); }
html:not(.light) .status-progress { color: var(--cyan); }
.status-standby { background: rgba(100,116,139,.1); color: #64748B; border: 1px solid rgba(100,116,139,.28); }
.status-expired { background: rgba(239,68,68,.1); color: #DC2626; border: 1px solid rgba(239,68,68,.28); }
html:not(.light) .status-expired { color: #FC8181; }
span.echeance { font-size: .7rem; color: var(--text-muted); }

/* ─── Shop ───────────────────────────────────────── */
.product img, .product picture img { width: 100%; height: 170px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); margin-bottom: 10px; box-shadow: none; }

/* ─── Contact ────────────────────────────────────── */
img.suiveznous { width: 120px; margin-bottom: 10px; border-radius: 8px; opacity: .8; box-shadow: none; }
img.contact    { width: 110px; border-radius: 8px; opacity: .8; box-shadow: none; }
img.ct-fb, img.ct-insta, img.ct-lk { width: 38px; margin: 4px; border-radius: 8px; transition: filter var(--transition); box-shadow: none; }
img.sms, img.ct-whatsapp { width: 38px; border-radius: 8px; box-shadow: none; }

/* ─── About ──────────────────────────────────────── */
.depannage { float: right; width: 350px; margin: 0 0 14px 18px; border-radius: var(--radius); border: 1px solid var(--border); opacity: .88; box-shadow: none; }
.team-member { display: flex; align-items: flex-start; gap: 12px; padding: 14px; background: var(--stat-bg); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 12px; transition: border-color var(--transition); }
.team-member:hover { border-color: rgba(0,196,212,.3); }
.team-avatar { font-size: 2rem; flex-shrink: 0; }

/* Global img */
img { border-radius: 8px; box-shadow: none; }

/* ─── Alerts ─────────────────────────────────────── */
.note  { color: var(--cyan-dark); background: rgba(0,196,212,.08); border: 1px solid var(--border); border-radius: 8px; padding: 10px 13px; font-size: .85rem; }
.error { color: #DC2626; background: rgba(239,68,68,.07); border: 1px solid rgba(239,68,68,.28); border-radius: 8px; padding: 10px 13px; font-size: .85rem; }
html:not(.light) .note { color: var(--cyan); }
html:not(.light) .error { color: #FC8181; }

/* ─── Footer ─────────────────────────────────────── */
footer.site-footer {
  background: var(--footer-bg);
  border-top: 1px solid var(--border);
  padding: 28px 20px 22px; text-align: center;
  position: relative; z-index: 1;
  bottom: auto; float: none; display: block; width: 100%;
  transition: background var(--transition);
}
.footer-inner { max-width: 1160px; margin: 0 auto; }
.footer-links { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-bottom: 16px; }
.footer-links a { font-size: .82rem; color: var(--text-muted); transition: color var(--transition); }
html.light .footer-links a { color: #94A3B8; }
.footer-links a:hover { color: var(--cyan); }
.footer-social { display: flex; justify-content: center; align-items: center; gap: 14px; margin-bottom: 18px; }
.footer-social a img { height: 30px; width: 30px; border-radius: 8px; opacity: .75; transition: opacity var(--transition); box-shadow: none; }
.footer-social a:hover img { opacity: 1; }
.footer-copy { font-size: .78rem; color: #94A3B8; }
.footer-copy a { color: var(--cyan); }
.whatsapp { display: none; }

/* ─── Boutons action dans tables ─────────────────── */
.action-btn { padding: 4px 11px; border-radius: 6px; font-size: .76rem; font-weight: 600; cursor: pointer; border: 1px solid; font-family: inherit; transition: all var(--transition); margin-right: 3px; }
.btn-view { background: rgba(0,196,212,.08); color: var(--cyan); border-color: var(--border); }
.btn-view:hover { background: rgba(0,196,212,.18); }
.btn-download { background: rgba(139,61,175,.08); color: var(--violet); border-color: rgba(139,61,175,.3); }
.btn-download:hover { background: rgba(139,61,175,.18); }

/* ─── Index table compat ─────────────────────────── */
table.index { width: 100%; border-collapse: collapse; }
th.index { font-weight: normal; vertical-align: top; padding: 12px 8px; text-align: center; }
th.index p { font-size: .83rem; text-align: justify; margin-top: 4px; font-weight: normal; }
th.index h5 { color: var(--cyan); font-size: .9rem; font-weight: 600; margin-bottom: 4px; }
img.vignetteindex { width: 100%; max-width: 180px; height: 130px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); display: block; margin: 0 auto 8px; box-shadow: none; }

/* ─── Focus ──────────────────────────────────────── */
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

/* ─── Animations ─────────────────────────────────── */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.card, .hero, .service-card, .benefice, .stat-card { animation: fadeInUp .36s ease both; }
.card:nth-child(2) { animation-delay: .05s; }
.card:nth-child(3) { animation-delay: .10s; }
.card:nth-child(4) { animation-delay: .15s; }

/* ─── Scrollbar ──────────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--scrollbar-track); }
::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--cyan-dark); }

/* ─── Responsive ─────────────────────────────────── */
@media (max-width: 768px) {
  :root { --header-h: 62px; }
  .nav-burger { display: flex; }
  .main-nav {
    display: none; position: fixed; top: var(--header-h); left: 0; right: 0;
    background: var(--nav-mobile-bg); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border); flex-direction: column; padding: 14px; gap: 3px;
  }
  .main-nav.open { display: flex; }
  .main-nav a { width: 100%; padding: 11px 14px; }
  /* Dropdown mobile : pleine largeur, sous-menu en accordéon */
  .nav-dropdown { width: 100%; flex-direction: column; align-items: stretch; }
  .nav-dropdown-btn { width: 100%; padding: 11px 14px; justify-content: space-between; }
  .nav-submenu {
    position: static;
    box-shadow: none;
    border: none;
    border-left: 2px solid var(--border);
    border-radius: 0;
    margin: 2px 0 2px 14px;
    padding: 4px 0;
    background: transparent;
    backdrop-filter: none;
    animation: none;
  }
  .nav-submenu li a { padding: 9px 12px; }
  .hero { padding: 32px 18px; }
  .card { padding: 16px 18px; }
  .form-row { grid-template-columns: 1fr; }
  #form-contact p.nom, #form-contact p.prenom { width: 100%; display: block; float: none; }
  .actu { flex-direction: column; }
  .imgactu img, .imgactu picture img { width: 100%; height: 160px; }
  .depannage { float: none; width: 100%; margin: 0 0 14px; }
  .dashboard-stats { grid-template-columns: 1fr 1fr; }
  table { font-size: .78rem; }
  table th, table td { padding: 8px 9px; }
}
@media (max-width: 480px) {
  .dashboard-stats { grid-template-columns: 1fr; }
  .action-grid { grid-template-columns: 1fr 1fr; }
  .services-grid { grid-template-columns: 1fr 1fr; }
}

/* ─── Tooltips info ──────────────────────────────────
   Usage : <span class="tooltip-trigger" data-tooltip="Votre texte">mot <span class="tooltip-icon">ℹ</span></span>
   ──────────────────────────────────────────────────── */
.tooltip-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: default;
}

.tooltip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: rgba(0,196,212,.2);
  border: 1px solid rgba(0,196,212,.4);
  color: var(--cyan);
  font-size: .62rem;
  font-weight: 700;
  font-style: normal;
  flex-shrink: 0;
  cursor: help;
  transition: all var(--transition);
  vertical-align: middle;
  margin-left: 2px;
}
.tooltip-trigger:hover .tooltip-icon,
.tooltip-trigger:focus-within .tooltip-icon {
  background: var(--cyan);
  color: #0A0F1E;
}

/* La bulle elle-même */
.tooltip-trigger::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-left: 3px solid var(--cyan);
  color: var(--text);
  font-size: .78rem;
  font-weight: 400;
  line-height: 1.55;
  padding: 10px 14px;
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
  width: 280px;
  white-space: normal;
  text-align: left;
  z-index: 500;
  pointer-events: none;
  /* Caché par défaut */
  opacity: 0;
  visibility: hidden;
  transition: opacity .18s ease, visibility .18s ease, transform .18s ease;
  transform: translateX(-50%) translateY(4px);
}

/* Petite flèche en bas de la bulle */
.tooltip-trigger::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--border);
  z-index: 501;
  opacity: 0;
  visibility: hidden;
  transition: opacity .18s ease, visibility .18s ease;
}

/* Affichage au survol */
.tooltip-trigger:hover::after,
.tooltip-trigger:hover::before,
.tooltip-trigger:focus-within::after,
.tooltip-trigger:focus-within::before {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Repositionnement si trop à droite / gauche */
.tooltip-trigger.tooltip-left::after  { left: 0;   transform: translateX(0); }
.tooltip-trigger.tooltip-left::before { left: 16px; transform: translateX(0); }
.tooltip-trigger.tooltip-right::after  { left: auto; right: 0; transform: translateX(0); }
.tooltip-trigger.tooltip-right::before { left: auto; right: 16px; transform: translateX(0); }

/* Tooltip vers le bas (si en haut de page) */
.tooltip-trigger.tooltip-bottom::after {
  top: calc(100% + 10px);
  bottom: auto;
  transform: translateX(-50%) translateY(-4px);
}
.tooltip-trigger.tooltip-bottom:hover::after { transform: translateX(-50%) translateY(0); }
.tooltip-trigger.tooltip-bottom::before {
  top: calc(100% + 4px);
  bottom: auto;
  border-top-color: transparent;
  border-bottom-color: var(--border);
}

.qty-input
{
        -moz-appearance: textfield;
}

/* Mobile : pleine largeur */
@media (max-width: 480px) {
  .tooltip-trigger::after { width: 220px; font-size: .75rem; }
}

/* ── Gestion d'équipe (thème clair / sombre) ───────────────── */
.org-team-wrap {
  margin-bottom: 1.5rem;
}
.org-team-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.org-team-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.org-team-emoji { font-size: 1.6rem; }
.org-team-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--h3-color);
}
.org-team-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.org-team-btn-secondary {
  background: var(--toggle-bg) !important;
  color: var(--text) !important;
  border: 1px solid var(--border) !important;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: 0.82rem;
  font-weight: 600;
}
.org-team-btn-add {
  padding: 8px 18px;
  border-radius: var(--radius);
  font-weight: 600;
}
.org-team-lead {
  margin: 0 0 1.1rem 0;
  padding-left: 2.5rem;
  color: var(--text-muted);
  font-size: 0.88rem;
}
.org-team-search {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 1.25rem;
}
.org-team-search-field {
  position: relative;
  flex: 1;
  min-width: 200px;
}
.org-team-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}
.org-team-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  background: var(--input-bg);
  color: var(--text);
  outline: none;
}
.org-team-search .org-team-input {
  padding-left: 42px;
}
.org-team-btn-filter {
  padding: 0 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
}
.org-team-msg { margin-bottom: 1rem; }
.org-team-table-card {
  padding: 0 !important;
  overflow: hidden;
  background: var(--card-bg) !important;
  border: 1px solid var(--border) !important;
}
.org-team-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.org-team-table thead {
  background: rgba(0, 196, 212, 0.08);
}
html.light .org-team-table thead {
  background: #f1f5f9;
}
.org-team-table th {
  padding: 14px 16px;
  text-align: left;
  color: var(--text-muted);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
}
.org-team-th-actions { text-align: right !important; }
.org-team-table td {
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  color: var(--text);
  vertical-align: middle;
}
.org-team-row-inactive { opacity: 0.72; }
.org-team-name { font-weight: 700; font-size: 0.9rem; color: var(--text); }
.org-team-email { font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; }
.org-team-company { color: var(--violet); font-weight: 600; font-size: 0.85rem; }
.org-team-td-center { text-align: center; }
.org-team-td-actions {
  text-align: right;
  white-space: nowrap;
}
.org-team-badge-role {
  background: var(--toggle-bg);
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.62rem;
  font-weight: 800;
}
.org-team-badge-ok {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
}
html.light .org-team-badge-ok { color: #059669; }
.org-team-badge-warn {
  background: rgba(251, 191, 36, 0.12);
  color: #fbbf24;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
}
html.light .org-team-badge-warn { color: #b45309; }
.org-team-badge-muted {
  color: var(--text-muted);
  font-size: 0.78rem;
}
.org-team-badge-status {
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.62rem;
  font-weight: 800;
}
.org-team-status-on {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.25);
}
html.light .org-team-status-on { color: #059669; }
.org-team-status-off {
  background: rgba(248, 113, 113, 0.1);
  color: #f87171;
  border: 1px solid rgba(248, 113, 113, 0.2);
}
html.light .org-team-status-off { color: #dc2626; }
.org-team-btn-edit {
  background: #f59e0b;
  color: #fff;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 600;
  margin-right: 6px;
}
.org-team-btn-reset {
  font-size: 0.72rem;
  padding: 6px 10px;
}
.org-team-inline-form { display: inline; }
.org-team-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}
.org-team-modal-inner {
  background: var(--card-bg);
  color: var(--text);
  padding: 28px;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin: 16px;
}
.org-team-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.org-team-modal-title { margin: 0; font-size: 1.15rem; color: var(--h3-color); }
.org-team-modal-close {
  cursor: pointer;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--text-muted);
  background: none;
  border: none;
  padding: 0 4px;
}
.org-team-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
@media (max-width: 520px) {
  .org-team-form-grid { grid-template-columns: 1fr; }
}
.org-team-modal .org-team-input,
.org-team-modal-inner .org-team-input {
  padding: 10px 12px;
}
.org-team-modal-inner .form-group label { color: var(--text-muted); font-size: 0.82rem; }
.org-team-subtitle {
  font-size: 0.95rem;
  margin: 16px 0 8px;
  color: var(--h3-color);
}
.org-team-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.45;
}
.org-team-ids-block,
.org-team-policy-block {
  margin-bottom: 14px;
  padding: 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(0, 196, 212, 0.04);
}
.org-team-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.86rem;
  cursor: pointer;
  color: var(--text);
}
.org-team-check input { margin-top: 3px; }
.org-team-check-row { margin-bottom: 14px; }
.org-team-modal-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}
.org-team-modal-footer-right {
  display: flex;
  gap: 10px;
  margin-left: auto;
}
.org-team-btn-delete {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
  padding: 10px 14px;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 600;
}
html:not(.light) .org-team-btn-delete {
  background: rgba(248, 113, 113, 0.12);
  color: #fca5a5;
  border-color: rgba(248, 113, 113, 0.35);
}

/* ── Modales espace client (même esprit que gestionnaire MDP) ───────── */
.client-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 10050;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}
.client-modal-overlay.is-open {
  display: flex;
}
.client-modal-content {
  background: var(--card-bg);
  border: 1px solid var(--border);
  padding: 28px;
  border-radius: var(--radius-lg);
  max-width: 500px;
  width: 92%;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
  max-height: 90vh;
  overflow-y: auto;
  animation: clientModalIn 0.22s ease;
}
@keyframes clientModalIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.client-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.client-modal-header h3 {
  margin: 0;
  color: var(--h1-color);
  font-size: 1.1rem;
  font-weight: 700;
}
.client-modal-close {
  background: none;
  border: none;
  font-size: 1.35rem;
  cursor: pointer;
  color: var(--text-muted);
  padding: 0;
  line-height: 1;
  transition: color var(--transition);
}
.client-modal-close:hover {
  color: var(--text);
}
.client-modal-body .form-group {
  margin-bottom: 16px;
}
.client-modal-body .form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.82rem;
}
.client-modal-body .form-group input,
.client-modal-body .form-group select,
.client-modal-body .form-group textarea {
  width: 100%;
  padding: 9px 12px;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.875rem;
  font-family: inherit;
  box-sizing: border-box;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.client-modal-body .form-group input:focus,
.client-modal-body .form-group select:focus,
.client-modal-body .form-group textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 196, 212, 0.12);
}
.client-modal-body .form-group input::placeholder,
.client-modal-body .form-group textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.65;
}
.client-modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}
.client-modal-actions button {
  flex: 1;
  padding: 11px 14px;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.875rem;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition);
}
.client-modal-btn-submit {
  background: linear-gradient(135deg, var(--cyan), var(--cyan-dark));
  color: #0a0f1e;
  box-shadow: 0 4px 12px rgba(0, 196, 212, 0.25);
}
.client-modal-btn-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 196, 212, 0.4);
}
.client-modal-btn-cancel {
  background: rgba(100, 116, 139, 0.15);
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.client-modal-btn-cancel:hover {
  background: rgba(100, 116, 139, 0.25);
  color: var(--text);
}
.client-modal-btn-pwd {
  background: rgba(139, 61, 175, 0.15);
  color: var(--violet);
  border: 1px solid rgba(139, 61, 175, 0.35);
  padding: 9px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.82rem;
  font-family: inherit;
  width: 100%;
  margin-top: 4px;
  transition: all var(--transition);
}
.client-modal-btn-pwd:hover {
  background: rgba(139, 61, 175, 0.25);
}
.client-modal-pwd-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0 0 8px;
  line-height: 1.45;
}

/* ─── Bannière cookies RGPD + bouton flottant ───────── */
.nrv-cookie-banner {
  position: fixed;
  z-index: 10001;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px 16px 20px;
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
  padding-bottom: max(20px, env(safe-area-inset-bottom));
  display: flex;
  justify-content: center;
  align-items: flex-end;
  pointer-events: none;
  box-sizing: border-box;
}
.nrv-cookie-banner[hidden] {
  display: none !important;
}
.nrv-cookie-banner-inner {
  pointer-events: auto;
  max-width: 640px;
  width: 100%;
  margin: 0 auto;
  padding: 20px 22px;
  box-shadow: var(--shadow), 0 -8px 32px rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
}
.nrv-cookie-title {
  margin: 0 0 6px;
  font-size: 1.25rem;
  color: var(--h1-color);
}
.nrv-cookie-welcome {
  margin: 0 0 12px;
  font-size: 1.05rem;
}
.nrv-cookie-banner-inner p {
  margin: 0 0 12px;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text);
}
.nrv-cookie-hint,
.nrv-cookie-legal {
  font-size: 0.88rem !important;
  color: var(--text-muted) !important;
}
.nrv-cookie-legal a {
  color: var(--cyan);
  text-decoration: underline;
}
.nrv-cookie-legal a:hover {
  color: var(--cyan-dark);
}
.nrv-cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 18px;
  padding-top: 4px;
}
@media (max-width: 540px) {
  .nrv-cookie-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .nrv-cookie-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

.nrv-cookie-fab {
  position: fixed;
  z-index: 10002;
  left: max(12px, env(safe-area-inset-left));
  bottom: max(12px, env(safe-area-inset-bottom));
  width: 72px;
  height: 72px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 16px;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.4));
  transition: transform var(--transition), filter var(--transition);
}
.nrv-cookie-fab:hover {
  transform: scale(1.06);
  filter: drop-shadow(0 6px 18px rgba(0, 196, 212, 0.35));
}
.nrv-cookie-fab:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}
.nrv-cookie-fab img {
  display: block;
  width: 72px;
  height: auto;
  border-radius: 12px;
}

body.nrv-cookie-banner-open {
  padding-bottom: 0;
}

.nrv-cookie-modal {
  position: fixed;
  z-index: 10003;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}
.nrv-cookie-modal[hidden] {
  display: none !important;
}
.nrv-cookie-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.65);
  cursor: pointer;
}
html.light .nrv-cookie-modal-backdrop {
  background: rgba(15, 23, 42, 0.45);
}
.nrv-cookie-modal-panel {
  position: relative;
  z-index: 1;
  max-width: 460px;
  width: 100%;
  padding: 22px 24px;
  max-height: min(90vh, 560px);
  overflow-y: auto;
  box-shadow: var(--glow), var(--shadow);
}
.nrv-cookie-modal-panel h2 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  color: var(--h1-color);
}
.nrv-cookie-modal-intro {
  margin: 0 0 16px;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.nrv-cookie-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.nrv-cookie-list > li {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.nrv-cookie-list > li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.nrv-cookie-label {
  display: block;
  margin-bottom: 4px;
}
.nrv-cookie-badge {
  display: inline-block;
  margin-left: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(0, 196, 212, 0.15);
  color: var(--cyan);
  vertical-align: middle;
}
.nrv-cookie-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
}
.nrv-cookie-toggle {
  width: 20px;
  height: 20px;
  accent-color: var(--cyan);
  flex-shrink: 0;
}
.nrv-cookie-desc {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}
.nrv-cookie-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 20px;
}

/* ─── Boutique : interrupteur Particulier / Entreprise ───────── */
.nrv-price-profile-bar {
  margin-bottom: 18px;
  padding: 16px 18px;
}
.nrv-price-profile-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
}
.nrv-price-profile-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}
/* Piste type interrupteur : alignée sur --cyan / --border du thème */
.nrv-pp-switch {
  display: inline-flex;
  align-items: stretch;
  border-radius: 999px;
  padding: 4px;
  background: rgba(0, 196, 212, 0.07);
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.12);
}
html.light .nrv-pp-switch {
  background: rgba(0, 196, 212, 0.08);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
}
.nrv-pp-seg {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 132px;
  padding: 10px 18px;
  border: none;
  border-radius: 999px;
  font-family: inherit;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), transform 0.15s ease;
  background: transparent;
  color: var(--text-muted);
}
.nrv-pp-seg-title {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.nrv-pp-seg-sub {
  font-size: 0.7rem;
  font-weight: 500;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
/* Côté actif : même dégradé que .btn-primary (cyan NRV) */
.nrv-pp-seg.is-active {
  background: linear-gradient(135deg, var(--cyan), var(--cyan-dark));
  color: #0a0f1e;
  box-shadow:
    0 4px 14px rgba(0, 196, 212, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.nrv-pp-seg.is-active .nrv-pp-seg-sub {
  color: rgba(10, 15, 30, 0.72);
  opacity: 1;
}
.nrv-pp-seg:not(.is-active):hover:not(:disabled) {
  color: var(--cyan);
}
html.light .nrv-pp-seg:not(.is-active):hover:not(:disabled) {
  color: var(--cyan-dark);
}
.nrv-pp-seg:disabled {
  opacity: 0.65;
  cursor: wait;
}
.nrv-price-profile-note {
  margin: 12px 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
}
@media (max-width: 520px) {
  .nrv-price-profile-row {
    flex-direction: column;
    align-items: stretch;
  }
  .nrv-pp-switch {
    width: 100%;
    justify-content: stretch;
  }
  .nrv-pp-seg {
    flex: 1;
    min-width: 0;
  }
}
