/* ============================================================
   VIXIOO — Master Stylesheet
   Police : Inter · Palette : Indigo/Slate · Style : Épuré Pro
   ============================================================ */

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #fff;
  color: #0f172a;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }
a { text-decoration: none; color: inherit; }
img, svg { display: block; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* ── CSS Variables ────────────────────────────────────────── */
:root {
  --blue:       #4f46e5;
  --blue-dark:  #3730a3;
  --blue-light: #eef2ff;

  --slate-50:   #f8fafc;
  --slate-100:  #f1f5f9;
  --slate-200:  #e2e8f0;
  --slate-400:  #94a3b8;
  --slate-500:  #64748b;
  --slate-900:  #0f172a;

  --radius:     24px;
  --radius-sm:  14px;
  --radius-xs:  10px;

  --shadow:     0 2px 12px rgba(0,0,0,0.06);
  --shadow-md:  0 4px 24px rgba(0,0,0,0.09);
  --shadow-lg:  0 8px 48px rgba(0,0,0,0.13);
}

/* ── Navigation ───────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 80px;
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid var(--slate-100);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
}

.logo-text {
  display: inline-flex;
  align-items: center;
  height: 40px;
  font-size: 22px;
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: -0.5px;
  color: var(--blue);
  text-decoration: none;
}
/* Lorsque le fichier logo.png est présent à la racine, il remplace le texte */
.logo-text.has-logo {
  background: url('logo.png') no-repeat left center / contain;
  color: transparent;
  min-width: 110px;
  text-indent: -9999px;
  overflow: hidden;
}

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

/* ── Nav : bouton icône (chat, etc.) ── */
.btn-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1.5px solid var(--slate-200);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate-500);
  transition: all .2s;
  position: relative;
  text-decoration: none;
}
.btn-icon:hover { background: var(--blue-light); color: var(--blue); border-color: var(--blue); }

/* Point de notification */
.nav-dot {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 9px;
  height: 9px;
  background: #22c55e;
  border-radius: 50%;
  border: 2px solid #fff;
  display: none;
}

/* ── Nav : dropdown "Mon Espace" ── */
.nav-dropdown { position: relative; }

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: #fff;
  border: 1px solid var(--slate-100);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  padding: 8px;
  min-width: 220px;
  z-index: 200;
  display: none;
  flex-direction: column;
  gap: 4px;
  animation: dropIn .15s ease;
}
.nav-dropdown.open .nav-dropdown-menu { display: flex; }

@keyframes dropIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.nav-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  color: var(--slate-900);
  transition: background .15s;
}
.nav-dropdown-menu a:hover { background: var(--slate-50); color: var(--blue); }
.nav-dropdown-menu .divider { height: 1px; background: var(--slate-100); margin: 4px 0; }

/* ── Boutons globaux ─────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--blue);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 15px;
  padding: 13px 28px;
  border-radius: var(--radius-xs);
  border: none;
  text-decoration: none;
  transition: all .2s;
  white-space: nowrap;
}
.btn-primary:hover  { background: var(--blue-dark); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(79,70,229,0.35); }
.btn-primary:active { transform: none; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #fff;
  color: var(--slate-900);
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 15px;
  padding: 12px 28px;
  border-radius: var(--radius-xs);
  border: 2px solid var(--slate-200);
  text-decoration: none;
  transition: all .2s;
  white-space: nowrap;
}
.btn-secondary:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-light); }

.btn-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--slate-900);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 13px;
  padding: 9px 18px;
  border-radius: 10px;
  border: none;
  text-decoration: none;
  transition: background .2s;
  white-space: nowrap;
}
.btn-dark:hover { background: #1e293b; }

/* ── Section Hero ────────────────────────────────────────── */
.hero {
  padding: 72px 32px 80px;
  max-width: 960px;
  margin: 0 auto;
}

.hero-title {
  font-size: clamp(44px, 8.5vw, 88px);
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: -2px;
  line-height: 1.0;
  color: var(--slate-900);
  margin-bottom: 20px;
}

.hero-title .accent { color: var(--blue); }

.hero-sub {
  font-size: 18px;
  color: var(--slate-500);
  font-weight: 500;
  max-width: 520px;
  line-height: 1.65;
  margin-bottom: 48px;
}

/* ── Categories cards ────────────────────────────────────── */
.categories {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 24px;
  border-radius: var(--radius-sm);
  background: var(--slate-50);
  border: 1.5px solid var(--slate-100);
  text-decoration: none;
  color: var(--slate-900);
  transition: all .2s;
  min-width: 100px;
  cursor: pointer;
}
.cat-card:hover {
  border-color: var(--blue);
  background: var(--blue-light);
  color: var(--blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.cat-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }

/* Couleurs par catégorie */
.c-zap:hover svg    { stroke: #f59e0b; }
.c-drop:hover svg   { stroke: #3b82f6; }
.c-tv:hover svg     { stroke: #8b5cf6; }
.c-fridge:hover svg { stroke: #10b981; }
.c-hammer:hover svg { stroke: #ef4444; }

/* ── Pages intérieures ───────────────────────────────────── */
.page-main {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 32px 80px;
}

.page-main h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 8px;
}

.page-main h2 {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: -0.5px;
  margin: 40px 0 16px;
  color: var(--slate-900);
}

.page-main p { color: var(--slate-500); font-size: 15px; line-height: 1.75; margin-bottom: 16px; }
.page-main p strong { color: var(--slate-900); }

.subtitle {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--blue);
  background: var(--blue-light);
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 32px;
}

/* ── Tarifs / Pricing ────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 32px 0;
}

@media(max-width: 800px) { .pricing-grid { grid-template-columns: 1fr; } }

.pricing-card {
  background: #fff;
  border: 2px solid var(--slate-100);
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: var(--shadow);
  transition: all .2s;
}
.pricing-card:hover   { border-color: var(--slate-200); box-shadow: var(--shadow-md); }
.pricing-card.featured {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(79,70,229,0.08), var(--shadow-lg);
  position: relative;
}
.pricing-card.featured::before {
  content: 'Populaire';
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 5px 16px;
  border-radius: 999px;
}

.pricing-card h3 {
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}
.pricing-card .price {
  font-size: 40px;
  font-weight: 900;
  color: var(--slate-900);
  line-height: 1;
  margin-bottom: 12px;
}
.pricing-card .price span {
  font-size: 16px;
  font-weight: 600;
  color: var(--slate-400);
}
.pricing-card p { font-size: 14px; color: var(--slate-500); margin-bottom: 24px; }
.pricing-card ul { display: flex; flex-direction: column; gap: 10px; }
.pricing-card ul li {
  font-size: 14px;
  color: var(--slate-500);
  padding-left: 22px;
  position: relative;
}
.pricing-card ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 700;
}

/* ── Experts grid ────────────────────────────────────────── */
.experts-main { max-width: 960px; margin: 0 auto; padding: 60px 32px 80px; }
.experts-main h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: -1px;
  margin-bottom: 32px;
}

.experts-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media(max-width: 640px) { .experts-grid { grid-template-columns: 1fr; } }

.expert-card {
  background: #fff;
  border: 1.5px solid var(--slate-100);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: all .25s;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.expert-card:hover { border-color: var(--blue); box-shadow: var(--shadow-lg); transform: translateY(-2px); }

.expert-header { display: flex; align-items: flex-start; gap: 14px; }
.expert-avatar {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--blue-light);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 20px;
  flex-shrink: 0;
}
.expert-info { flex: 1; min-width: 0; }
.expert-name  { font-size: 17px; font-weight: 800; letter-spacing: -0.3px; }
.expert-spec  { font-size: 12px; font-weight: 700; color: var(--slate-400); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 2px; }
.expert-rating { display: flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: #f59e0b; margin-top: 4px; }
.expert-rating span { color: var(--slate-400); font-weight: 500; }

.expert-status { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; }
.dot-online  { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; flex-shrink: 0; }
.dot-offline { background: var(--slate-300); }

.expert-bio { font-size: 13px; color: var(--slate-500); line-height: 1.6; }

/* ── Footer ──────────────────────────────────────────────── */
footer {
  background: var(--slate-900);
  color: rgba(255,255,255,0.7);
  padding: 64px 32px 32px;
  margin-top: auto;
}

.footer-grid {
  max-width: 960px;
  margin: 0 auto 48px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
}

@media(max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media(max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand-name {
  font-size: 22px;
  font-weight: 900;
  font-style: italic;
  color: #fff;
  text-decoration: none;
  display: block;
  margin-bottom: 14px;
}
.footer-brand p { font-size: 13px; line-height: 1.7; color: rgba(255,255,255,0.45); }

.footer-col h4 {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.35);
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-weight: 500;
  transition: color .15s;
}
.footer-col ul li a:hover { color: #fff; }

.footer-bottom {
  max-width: 960px;
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,0.3); }

.footer-secure {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,0.35);
}

/* ── Page : Experts ──────────────────────────────────────── */
.filter-bar    { display: flex; gap: 10px; margin-bottom: 28px; flex-wrap: wrap; }
.filter-btn {
  padding: 8px 18px;
  border-radius: 999px;
  border: 2px solid var(--slate-200);
  background: #fff;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  transition: all .2s;
  color: var(--slate-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.filter-btn.active, .filter-btn:hover {
  border-color: var(--blue);
  background: var(--blue-light);
  color: var(--blue);
}

/* ── Dashboard : cards ───────────────────────────────────── */
.info-card {
  background: #fff;
  border: 1px solid var(--slate-100);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}
.info-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.info-card-header h3 {
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--slate-900);
}

/* ── Formulaires communs ─────────────────────────────────── */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media(max-width: 600px) { .form-grid { grid-template-columns: 1fr; } .form-grid .full { grid-column: 1; } }

.form-group label {
  display: block;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 7px;
  color: var(--slate-500);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 2px solid var(--slate-200);
  border-radius: var(--radius-xs);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--slate-900);
  background: #fff;
  outline: none;
  transition: border-color .2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--blue); }
.form-group input:disabled,
.form-group select:disabled { background: var(--slate-50); color: var(--slate-400); cursor: not-allowed; }

/* ── Boutons actions ─────────────────────────────────────── */
.btn-edit {
  background: var(--blue-light);
  color: var(--blue);
  padding: 8px 18px;
  border-radius: 8px;
  border: none;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: all .2s;
}
.btn-edit:hover { background: var(--blue); color: #fff; }

.btn-save {
  background: var(--blue);
  color: #fff;
  padding: 10px 24px;
  border-radius: var(--radius-xs);
  border: none;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all .2s;
}
.btn-save:hover { background: var(--blue-dark); }

.btn-delete {
  background: #fef2f2;
  color: #dc2626;
  padding: 8px 18px;
  border-radius: 8px;
  border: none;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: all .2s;
}
.btn-delete:hover { background: #dc2626; color: #fff; }

.btn-row { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }

/* ── Alertes ─────────────────────────────────────────────── */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-xs);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
  display: none;
  line-height: 1.5;
}
.alert-success { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; }
.alert-error   { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.alert-info    { background: var(--blue-light); color: var(--blue); border: 1px solid #c7d2fe; }

/* ── Badges ──────────────────────────────────────────────── */
.badge { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; padding: 4px 12px; border-radius: 999px; }
.badge-blue   { background: var(--blue-light); color: var(--blue); }
.badge-green  { background: #f0fdf4; color: #16a34a; }
.badge-red    { background: #fef2f2; color: #dc2626; }
.badge-yellow { background: #fffbeb; color: #b45309; }

/* ── Tabs ────────────────────────────────────────────────── */
.tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 36px;
  border-bottom: 2px solid var(--slate-100);
  padding-bottom: 0;
  flex-wrap: wrap;
}
.tab-btn {
  padding: 12px 24px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 14px;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--slate-500);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all .2s;
  white-space: nowrap;
}
.tab-btn.active { color: var(--blue); border-bottom-color: var(--blue); }
.tab-btn:hover  { color: var(--blue); }
.tab-content    { display: none; }
.tab-content.active { display: block; }

/* ── Spinner ─────────────────────────────────────────────── */
.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid var(--slate-200);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin .6s linear infinite;
  vertical-align: middle;
  margin-right: 8px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Section géolocalisation ─────────────────────────────── */
.geo-section {
  background: var(--slate-50);
  border-top: 1px solid var(--slate-100);
  padding: 72px 32px;
}
.geo-inner {
  max-width: 840px;
  margin: 0 auto;
  text-align: center;
}
.geo-inner h2 {
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: -1px;
  margin-bottom: 12px;
}
.geo-inner p { color: var(--slate-500); font-size: 15px; max-width: 460px; margin: 0 auto 32px; }
.geo-btn-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 28px; }

#map {
  width: 100%;
  height: 380px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1.5px solid var(--slate-200);
  box-shadow: var(--shadow-lg);
  display: none;
}

.geo-status { font-size: 13px; color: var(--slate-500); font-weight: 600; margin-top: 14px; min-height: 20px; }

.geo-experts-nearby { margin-top: 20px; display: none; }
.geo-expert-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1.5px solid var(--slate-200);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  margin: 4px;
  box-shadow: var(--shadow);
  cursor: pointer;
  text-decoration: none;
  color: var(--slate-900);
  transition: all .15s;
}
.geo-expert-chip:hover { border-color: var(--blue); color: var(--blue); }
.geo-expert-chip .dot { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; flex-shrink: 0; }

/* ── Trust bar ───────────────────────────────────────────── */
.trust-section {
  border-top: 1px solid var(--slate-100);
  padding: 44px 32px;
}
.trust-inner {
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  text-align: center;
}
.trust-num {
  font-size: 36px;
  font-weight: 900;
  color: var(--blue);
  font-style: italic;
  line-height: 1;
}
.trust-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--slate-400);
  margin-top: 6px;
}

/* ── PWA Install Banner ──────────────────────────────────── */
#install-banner {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  position: relative;
  z-index: 99;
}
#install-banner.show { display: flex; }
#install-banner .btn-install-pwa {
  margin-left: auto;
  background: rgba(255,255,255,0.2);
  border: 1.5px solid rgba(255,255,255,0.4);
  color: #fff;
  padding: 6px 16px;
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
}
#install-banner .dismiss-banner {
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 18px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}

/* ── Modal ───────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.55);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
}
.modal-overlay.open { display: flex; }

.modal-box {
  background: #fff;
  border-radius: var(--radius);
  padding: 40px;
  max-width: 540px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 80px rgba(0,0,0,0.2);
  animation: modalIn .2s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(.96) translateY(8px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-box h2 {
  font-size: 22px;
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}
.modal-box p { color: var(--slate-500); font-size: 14px; margin-bottom: 24px; }
.modal-close {
  float: right;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--slate-400);
  margin-top: -4px;
  margin-left: 8px;
  transition: color .15s;
}
.modal-close:hover { color: var(--slate-900); }

.calendly-frame {
  width: 100%;
  height: 480px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--slate-50);
}

/* ── Historique interventions ────────────────────────────── */
.history-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--slate-100);
}
.history-item:last-child { border-bottom: none; }
.history-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.history-info { flex: 1; min-width: 0; }
.history-info strong { font-size: 14px; font-weight: 700; display: block; }
.history-info span   { font-size: 12px; color: var(--slate-400); margin-top: 2px; display: block; }
.history-price { font-weight: 900; font-size: 15px; color: var(--slate-900); white-space: nowrap; }

/* ── Sécurité / Security rows ────────────────────────────── */
.security-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--slate-100);
  gap: 16px;
  flex-wrap: wrap;
}
.security-row:last-child { border-bottom: none; }
.security-label { font-weight: 700; font-size: 14px; }
.security-sub   { font-size: 12px; color: var(--slate-400); margin-top: 3px; }

/* ── Auth box ────────────────────────────────────────────── */
#auth-box {
  max-width: 420px;
  margin: 80px auto;
  background: var(--slate-50);
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
}
#auth-box h2 {
  font-size: 26px;
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}
#auth-box p { color: var(--slate-500); font-size: 14px; margin-bottom: 28px; }
#auth-toggle { color: var(--blue); font-weight: 700; cursor: pointer; font-size: 14px; margin-top: 16px; display: inline-block; text-decoration: none; }

/* ── Dashboard header ────────────────────────────────────── */
.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 14px;
}
.dash-header h1 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: -1.5px;
}
.dash-header .welcome { color: var(--slate-400); font-size: 14px; font-weight: 600; margin-top: 4px; }

/* ── Page : Comment ça marche ────────────────────────────── */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 32px 0; }
@media(max-width: 640px) { .steps-grid { grid-template-columns: 1fr; } }

.step-card {
  background: var(--slate-50);
  border: 1.5px solid var(--slate-100);
  border-radius: var(--radius-sm);
  padding: 28px 24px;
  text-align: center;
}
.step-num {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--blue);
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.step-card h3 { font-size: 16px; font-weight: 800; margin-bottom: 10px; }
.step-card p  { font-size: 13px; color: var(--slate-500); line-height: 1.65; }

/* ── Chat ────────────────────────────────────────────────── */
.chat-layout { display: grid; grid-template-columns: 300px 1fr; height: calc(100vh - 64px); overflow: hidden; }
.chat-sidebar { background: #fff; border-right: 1.5px solid var(--slate-100); display: flex; flex-direction: column; overflow: hidden; }
.sidebar-header { padding: 20px; border-bottom: 1px solid var(--slate-100); }
.sidebar-header h2 { font-size: 18px; font-weight: 900; font-style: italic; text-transform: uppercase; letter-spacing: -0.3px; }
.conversation-list { flex: 1; overflow-y: auto; }
.conv-item { display: flex; align-items: center; gap: 12px; padding: 14px 20px; cursor: pointer; transition: background .15s; border-bottom: 1px solid var(--slate-50); }
.conv-item:hover, .conv-item.active { background: var(--blue-light); }
.conv-avatar { width: 42px; height: 42px; border-radius: 13px; background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 17px; flex-shrink: 0; }
.conv-info { flex: 1; min-width: 0; }
.conv-name { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv-preview { font-size: 12px; color: var(--slate-400); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.conv-time { font-size: 11px; color: var(--slate-400); font-weight: 600; flex-shrink: 0; }
.messages-area { flex: 1; overflow-y: auto; padding: 24px; display: flex; flex-direction: column; gap: 8px; scroll-behavior: smooth; background: var(--slate-50); }
.message { display: flex; gap: 10px; max-width: 70%; }
.message.mine { align-self: flex-end; flex-direction: row-reverse; }
.msg-bubble { padding: 10px 14px; border-radius: 18px; font-size: 14px; line-height: 1.55; word-break: break-word; }
.message:not(.mine) .msg-bubble { background: #fff; border: 1px solid var(--slate-100); border-radius: 4px 18px 18px 18px; }
.message.mine .msg-bubble { background: var(--blue); color: #fff; border-radius: 18px 4px 18px 18px; }
.msg-time { font-size: 10px; color: var(--slate-400); font-weight: 600; padding: 0 4px; }
.message.mine .msg-time { text-align: right; }
.date-sep { text-align: center; margin: 12px 0; }
.date-sep span { background: var(--slate-200); color: var(--slate-500); font-size: 11px; font-weight: 700; padding: 4px 14px; border-radius: 999px; }

@media(max-width: 640px) {
  .chat-layout { grid-template-columns: 1fr; }
  .chat-sidebar { display: none; }
}

/* ── Profil expert ───────────────────────────────────────── */
.profile-hero {
  background: var(--slate-900);
  padding: 56px 32px 0;
  color: #fff;
}
.profile-hero-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  gap: 36px;
  align-items: flex-end;
  flex-wrap: wrap;
}
.profile-avatar-lg {
  width: 110px;
  height: 110px;
  border-radius: 24px;
  background: var(--blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  font-weight: 900;
  flex-shrink: 0;
  border: 3px solid rgba(255,255,255,0.15);
  object-fit: cover;
}
.profile-info-hero { flex: 1; padding-bottom: 28px; }
.profile-info-hero h1 {
  font-size: clamp(26px, 4.5vw, 48px);
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: -1px;
  line-height: 1.05;
  margin-bottom: 8px;
}
.profile-specialty-tag { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 2px; color: #a5b4fc; margin-bottom: 16px; }
.profile-stats-row { display: flex; gap: 28px; flex-wrap: wrap; }
.pstat .val { font-size: 26px; font-weight: 900; line-height: 1; }
.pstat .lbl { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: rgba(255,255,255,0.4); margin-top: 3px; }
.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(34,197,94,0.15);
  border: 1px solid rgba(34,197,94,0.35);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 700;
  color: #86efac;
  margin-bottom: 14px;
}

/* ── Profile tabs ── */
.profile-tabs-bar { background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.profile-tabs { max-width: 900px; margin: 0 auto; display: flex; padding: 0 32px; }
.ptab {
  padding: 16px 24px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 14px;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--slate-500);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all .2s;
}
.ptab.active { color: var(--blue); border-bottom-color: var(--blue); }
.ptab-content { display: none; }
.ptab-content.active { display: block; }

.profile-content { max-width: 900px; margin: 0 auto; padding: 40px 32px 80px; }
.profile-layout  { display: grid; grid-template-columns: 1fr 300px; gap: 28px; align-items: start; }
@media(max-width: 768px) { .profile-layout { grid-template-columns: 1fr; } }

.bio-card {
  background: #fff;
  border: 1.5px solid var(--slate-100);
  border-radius: var(--radius-sm);
  padding: 28px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}
.bio-card h3 {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--slate-400);
  margin-bottom: 16px;
}
.bio-card p { color: var(--slate-500); font-size: 14px; line-height: 1.75; }

.skill-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.skill-chip { background: var(--blue-light); color: var(--blue); padding: 5px 14px; border-radius: 999px; font-size: 11px; font-weight: 700; }

.booking-cta {
  background: #fff;
  border: 1.5px solid var(--slate-100);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 80px;
}
.booking-cta .rate { font-size: 30px; font-weight: 900; color: var(--blue); line-height: 1; }
.booking-cta .rate span { font-size: 13px; font-weight: 600; color: var(--slate-400); }
.booking-cta p { color: var(--slate-400); font-size: 12px; margin: 8px 0 20px; }

.review-card {
  background: #fff;
  border: 1.5px solid var(--slate-100);
  border-radius: var(--radius-sm);
  padding: 20px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
}
.reviewer-name { font-weight: 700; font-size: 14px; }
.reviewer-date { font-size: 11px; color: var(--slate-400); }
.review-stars  { color: #f59e0b; font-size: 13px; margin-top: 2px; }
.review-text   { color: var(--slate-500); font-size: 13px; line-height: 1.65; margin-top: 10px; }

.star-picker   { display: flex; gap: 6px; margin-bottom: 16px; }
.star-btn {
  font-size: 26px;
  background: none;
  border: none;
  cursor: pointer;
  filter: grayscale(1) opacity(.4);
  transition: filter .12s, transform .12s;
  padding: 0;
}
.star-btn.lit { filter: grayscale(0) opacity(1); }
.star-btn:hover { transform: scale(1.15); filter: grayscale(0) opacity(1); }

/* ── Paiement ────────────────────────────────────────────── */
.pay-layout { min-height: calc(100vh - 64px); display: flex; align-items: flex-start; justify-content: center; padding: 60px 24px; background: var(--slate-50); }
.pay-grid { display: grid; grid-template-columns: 1fr 360px; gap: 32px; max-width: 880px; width: 100%; }
@media(max-width: 768px) { .pay-grid { grid-template-columns: 1fr; } }
.pay-card { background: #fff; border-radius: var(--radius); padding: 40px; border: 1.5px solid var(--slate-100); box-shadow: var(--shadow); }
.pay-card h2 { font-size: 20px; font-weight: 900; font-style: italic; text-transform: uppercase; letter-spacing: -0.5px; margin-bottom: 28px; }

.steps-pay { display: flex; gap: 0; margin-bottom: 36px; }
.step-pay { flex: 1; text-align: center; position: relative; }
.step-pay::after { content: ''; position: absolute; top: 13px; left: 50%; width: 100%; height: 2px; background: var(--slate-200); z-index: 0; }
.step-pay:last-child::after { display: none; }
.step-circle-pay {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--slate-200);
  color: var(--slate-500);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 6px;
  position: relative;
  z-index: 1;
  transition: all .3s;
}
.step-pay.done   .step-circle-pay { background: #22c55e; color: #fff; }
.step-pay.active .step-circle-pay { background: var(--blue); color: #fff; }
.step-pay.done::after { background: #22c55e; }
.step-pay-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--slate-400); }
.step-pay.active .step-pay-label { color: var(--blue); }

.pay-summary { background: var(--slate-900); color: #fff; border-radius: var(--radius); padding: 28px; }
.pay-summary h3 { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: rgba(255,255,255,0.4); margin-bottom: 20px; }
.summary-row { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,0.07); font-size: 14px; }
.summary-row:last-child { border: none; padding-top: 16px; }
.summary-total { font-size: 20px; font-weight: 900; }

.timer-display { text-align: center; padding: 36px 0; }
.timer-circle {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  background: var(--blue);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 8px 28px rgba(79,70,229,0.35);
}
.timer-time  { font-size: 32px; font-weight: 900; color: #fff; line-height: 1; }
.timer-label { font-size: 10px; font-weight: 700; text-transform: uppercase; color: rgba(255,255,255,0.7); margin-top: 4px; }
.timer-cost  { font-size: 22px; font-weight: 900; color: var(--blue); margin-top: 4px; }
.timer-cost-label { font-size: 12px; color: var(--slate-400); font-weight: 600; margin-top: 4px; }

/* ── Admin ───────────────────────────────────────────────── */
.admin-body { background: #0f172a; color: #fff; min-height: 100vh; font-family: 'Inter', sans-serif; }
.admin-layout { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin-sidebar { background: #08101e; border-right: 1px solid rgba(255,255,255,0.05); padding: 24px 0; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.45);
  cursor: pointer;
  transition: all .15s;
  border-left: 3px solid transparent;
  text-decoration: none;
}
.admin-nav-item:hover { color: rgba(255,255,255,0.85); background: rgba(255,255,255,0.04); }
.admin-nav-item.active { color: #a5b4fc; border-left-color: var(--blue); background: rgba(79,70,229,0.1); }
.admin-nav-badge { margin-left: auto; background: var(--blue); color: #fff; font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 999px; }
.admin-main { padding: 36px; overflow-y: auto; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 32px; }
@media(max-width: 1024px) { .kpi-grid { grid-template-columns: repeat(2, 1fr); } }
.kpi-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.07); border-radius: 18px; padding: 22px; }
.kpi-icon { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 18px; margin-bottom: 14px; }
.kpi-value { font-size: 32px; font-weight: 900; line-height: 1; margin-bottom: 4px; }
.kpi-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,0.35); }
.kpi-trend { font-size: 12px; font-weight: 700; margin-top: 8px; }
.trend-up   { color: #4ade80; }
.trend-down { color: #f87171; }
.data-card { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07); border-radius: 18px; overflow: hidden; margin-bottom: 24px; }
.data-card-header { padding: 18px 22px; border-bottom: 1px solid rgba(255,255,255,0.06); display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.data-card-header h3 { font-size: 14px; font-weight: 700; color: rgba(255,255,255,0.85); }
.admin-search { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; padding: 8px 14px; color: #fff; font-family: 'Inter', sans-serif; font-size: 13px; outline: none; width: 200px; }
.admin-search::placeholder { color: rgba(255,255,255,0.25); }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { padding: 11px 20px; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: rgba(255,255,255,0.25); text-align: left; border-bottom: 1px solid rgba(255,255,255,0.06); }
.admin-table td { padding: 13px 20px; font-size: 13px; border-bottom: 1px solid rgba(255,255,255,0.04); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: rgba(255,255,255,0.02); }
.bs-active   { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; background: rgba(34,197,94,0.12); color: #4ade80; }
.bs-pending  { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; background: rgba(234,179,8,0.12); color: #fbbf24; }
.bs-inactive { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; background: rgba(255,255,255,0.07); color: rgba(255,255,255,0.4); }
.ab-view   { padding: 5px 12px; border-radius: 7px; font-size: 11px; font-weight: 700; cursor: pointer; border: none; background: rgba(99,102,241,0.2); color: #a5b4fc; transition: background .15s; }
.ab-view:hover { background: rgba(99,102,241,0.4); }
.ab-ban    { padding: 5px 12px; border-radius: 7px; font-size: 11px; font-weight: 700; cursor: pointer; border: none; background: rgba(239,68,68,0.12); color: #f87171; transition: background .15s; }
.ab-ban:hover { background: rgba(239,68,68,0.28); }
.ab-verify { padding: 5px 12px; border-radius: 7px; font-size: 11px; font-weight: 700; cursor: pointer; border: none; background: rgba(34,197,94,0.12); color: #4ade80; transition: background .15s; }
.ab-verify:hover { background: rgba(34,197,94,0.28); }

/* ── Responsive général ──────────────────────────────────── */
@media(max-width: 768px) {
  nav { padding: 0 20px; }
  .hero { padding: 48px 20px 60px; }
  .page-main { padding: 48px 20px 60px; }
  .experts-main { padding: 48px 20px 60px; }
  .geo-section { padding: 52px 20px; }
  .trust-inner { gap: 28px; }
  footer { padding: 48px 20px 28px; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
}

@media(max-width: 480px) {
  .hero-title { font-size: 38px; }
  .categories { gap: 10px; }
  .cat-card { padding: 16px 18px; }
  .trust-num { font-size: 28px; }
}
