:root {
  --brand-night: #0B192C;
  --brand-navy: #102E50;
  --brand-gold: #D6A84B;
  --brand-gold-btn: #E59819;
  --brand-gold-hover: #c48010;
  --brand-gold-light: #FEF9EE;
  --brand-gold-border: #F1D492;
  --brand-ivory: #F8FAFC;
  --brand-emerald: #059669;
  --brand-emerald-light: #ECFDF5;
  --brand-emerald-border: #A7F3D0;
  --brand-blue: #0284C7;
  --brand-blue-active: #0284C7;
  --brand-blue-light: #EFF6FF;
  --brand-blue-border: #BFDBFE;
  --brand-red: #DC2626;
  --brand-red-light: #FEF2F2;
  --brand-red-border: #FECACA;
  --brand-border: #E2E8F0;
  --text-main: #0F172A;
  --text-muted: #64748B;
  --text-dark: #1E293B;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: #E2E8F0;
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 30px;
  overflow-x: hidden;
}

button { font-family: inherit; border: none; background: none; cursor: pointer; }
a { text-decoration: none; color: inherit; cursor: pointer; display: inline-block; }

.app-container {
  width: 100%;
  max-width: 414px;
  min-height: 840px;
  background: #FFFFFF;
  position: relative;
  display: flex;
  flex-direction: column;
  margin: 16px 0;
  border-radius: 42px;
  border: 8px solid #0F172A;
  box-shadow: 0 25px 50px -12px rgba(7, 27, 54, 0.25);
  overflow: hidden;
  z-index: 10;
}

@media (max-width: 480px) {
  body { padding: 0; }
  .app-container {
    margin: 0;
    border: none;
    border-radius: 0;
    min-height: 100vh;
    box-shadow: none;
  }
}

.ios-statusbar {
  padding: 10px 20px 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-night);
  background: #FFFFFF;
  position: sticky;
  top: 0;
  z-index: 30;
}

.svg-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.svg-ico svg {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none !important;
}

.page-content {
  flex: 1;
  padding: 0 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #FFFFFF;
  position: relative;
}

.main-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0 6px;
}

.header-logo-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-logo-symbol {
  width: 42px;
  height: 28px;
}

.header-title-box h1 {
  font-size: 17px;
  font-weight: 900;
  color: var(--brand-night);
  line-height: 1.1;
  letter-spacing: -0.3px;
}

.header-title-box p {
  font-size: 10.5px;
  color: var(--text-muted);
  font-weight: 600;
}

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

.btn-notif-circle {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-night);
}

.notif-badge-red,
.notif-badge-gold {
  position: absolute;
  top: -1px;
  right: -1px;
  width: 15px;
  height: 15px;
  background: var(--brand-gold, #D97706);
  color: #FFFFFF;
  font-size: 9px;
  font-weight: 900;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #FFFFFF;
}

.user-profile-header-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  text-align: left;
}

.user-avatar-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #CBD5E1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #475569;
}

.city-hero-banner {
  position: relative;
  min-height: 125px;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px 14px;
  color: #FFFFFF;
  background: linear-gradient(180deg, rgba(7,27,54,0.3) 0%, rgba(7,27,54,0.85) 100%), url('https://images.unsplash.com/photo-1579208575657-c595a05383b7?w=800') center/cover no-repeat;
  box-shadow: 0 4px 12px rgba(7, 27, 54, 0.15);
}

.city-hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.city-hero-title {
  font-size: 22px;
  font-weight: 900;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.city-badge-green {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0,0,0,0.6);
  margin-top: 2px;
}

.badge-shield-trust {
  position: relative;
  z-index: 2;
  align-self: flex-end;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
}

.btn-reserve-gold {
  background: var(--brand-gold-btn);
  color: var(--brand-night);
  font-weight: 900;
  font-size: 14px;
  padding: 13px 16px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(229, 152, 25, 0.3);
  cursor: pointer;
  width: 100%;
  transition: transform 0.15s ease, background 0.15s ease;
  text-align: center;
}

.btn-reserve-gold:active {
  transform: scale(0.99);
  background: var(--brand-gold-hover);
}

.univ-two-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.univ-big-card {
  background: #FFFFFF;
  border: 1.5px solid var(--brand-border);
  border-radius: 18px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
}

.univ-big-card:hover {
  border-color: var(--brand-gold);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.univ-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.univ-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.univ-icon-home { background: #FEF9EE; color: #B45309; border: 1px solid #FDE68A; }
.univ-icon-auto { background: #EFF6FF; color: #0284C7; border: 1px solid #BFDBFE; }

.univ-card-title {
  font-size: 15px;
  font-weight: 900;
  color: var(--brand-night);
}

.univ-card-desc {
  font-size: 10.5px;
  color: var(--text-muted);
  line-height: 1.3;
}

.univ-card-link {
  font-size: 11px;
  font-weight: 800;
  color: var(--brand-night);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 4px;
  border-top: 1px solid #F1F5F9;
  margin-top: 2px;
}

.banner-assistant-ia {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #EFF6FF;
  border: 1.5px solid #BFDBFE;
  border-radius: 16px;
  padding: 12px 14px;
  cursor: pointer;
  width: 100%;
}

.banner-sos-urgence {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #FEF2F2;
  border: 1.5px solid #FECACA;
  border-radius: 16px;
  padding: 12px 14px;
  cursor: pointer;
  width: 100%;
}

.next-intervention-container {
  background: #FFFFFF;
  border: 1.5px solid var(--brand-border);
  border-radius: 18px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stepper-progress-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  margin: 8px 0 2px;
  padding: 0 4px;
}

.stepper-line-track {
  position: absolute;
  top: 9px;
  left: 14px;
  right: 14px;
  height: 3px;
  background: #E2E8F0;
  z-index: 1;
}

.stepper-line-fill {
  position: absolute;
  top: 9px;
  left: 14px;
  width: 25%;
  height: 3px;
  background: var(--brand-emerald);
  z-index: 2;
}

.stepper-step-node {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  font-weight: 700;
  color: #94A3B8;
  text-align: center;
  width: 48px;
}

.stepper-step-node.done { color: var(--brand-emerald); }
.stepper-step-node.done .stepper-circle { background: var(--brand-emerald); color: #fff; }

.stepper-circle {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #CBD5E1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 900;
}

/* --- DEVIS & PROJETS : CARTES COMPACTES & TIMELINE 3 ÉTAPES (V6-3.4) --- */
.devis-card-compact {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 10px 12px !important;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.devis-card-compact:hover {
  border-color: #CBD5E1;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.devis-stepper-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  margin: 3px 0 2px;
  padding: 0 8px;
}

.devis-stepper-track {
  position: absolute;
  top: 7px;
  left: 20px;
  right: 20px;
  height: 2px;
  background: #E2E8F0;
  z-index: 1;
}

.devis-stepper-fill {
  position: absolute;
  top: 7px;
  left: 20px;
  height: 2px;
  background: var(--brand-emerald, #059669);
  z-index: 2;
  transition: width 0.3s ease;
}

.devis-step-node {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 8.5px;
  font-weight: 700;
  color: #94A3B8;
  text-align: center;
  width: 76px;
}

.devis-step-node.done {
  color: var(--brand-emerald, #059669);
}

.devis-step-node.done .devis-step-circle {
  background: var(--brand-emerald, #059669);
  color: #FFFFFF;
}

.devis-step-circle {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #CBD5E1;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8.5px;
  font-weight: 900;
}

.interv-breakdown-box {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 11px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}


.recent-interventions-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.recent-interv-card {
  background: #FFFFFF;
  border: 1.5px solid var(--brand-border);
  border-radius: 14px;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
  cursor: pointer;
}

.badge-terminee-green {
  font-size: 9.5px;
  font-weight: 800;
  background: #ECFDF5;
  color: #059669;
  border: 1px solid #A7F3D0;
  padding: 2px 6px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-top: 2px;
}

.top-sub-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0;
}

.property-pill-selector {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #F8FAFC;
  border: 1.5px solid var(--brand-border);
  border-radius: 12px;
  padding: 5px 10px;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--brand-night);
  cursor: pointer;
}

.search-service-input {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #F8FAFC;
  border: 1.5px solid var(--brand-border);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 12px;
  color: #64748B;
}

.categories-photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.category-photo-card {
  background: #FFFFFF;
  border: 1.5px solid var(--brand-border);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: all 0.15s ease;
}

.category-photo-card:hover {
  border-color: var(--brand-gold);
  transform: translateY(-1px);
}

.category-card-img {
  width: 100%;
  height: 90px;
  object-fit: cover;
}

.category-card-body {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.trust-three-badges-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  background: #F8FAFC;
  border: 1px solid var(--brand-border);
  border-radius: 14px;
  padding: 10px 8px;
  font-size: 9.5px;
  text-align: left;
}

.service-detail-card {
  background: #FFFFFF;
  border: 1.5px solid var(--brand-border);
  border-radius: 16px;
  padding: 12px;
  display: flex;
  gap: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
}

.service-detail-card.active {
  border-color: #0284C7;
  background: #F0F9FF;
}

.service-card-thumb {
  width: 85px;
  height: 85px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}

.service-card-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.badge-recommande-blue {
  position: absolute;
  top: 10px;
  right: 36px;
  font-size: 9px;
  font-weight: 800;
  background: #0284C7;
  color: #FFFFFF;
  padding: 2px 7px;
  border-radius: 6px;
}

.badge-recommande-inline {
  font-size: 9px;
  font-weight: 800;
  background: #0284C7;
  color: #FFFFFF;
  padding: 2px 7px;
  border-radius: 6px;
  display: inline-block;
}

.btn-card-select {
  font-size: 11px;
  font-weight: 800;
  color: #475569;
  background: #F1F5F9;
  padding: 3px 10px;
  border-radius: 6px;
  border: 1px solid #E2E8F0;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-card-select.selected,
.service-detail-card.active .btn-card-select.selected {
  background: #FEF3C7;
  color: #92400E;
  border-color: #F59E0B;
  box-shadow: 0 1px 3px rgba(245, 158, 11, 0.2);
}

.radio-circle-select {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #CBD5E1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 10px;
  right: 12px;
}

.service-detail-card.active .radio-circle-select {
  border-color: #0284C7;
  background: #0284C7;
}

.service-detail-card.active .radio-circle-select::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #FFFFFF;
}

.options-checkbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.option-check-pill {
  background: #F8FAFC;
  border: 1px solid var(--brand-border);
  border-radius: 10px;
  padding: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  cursor: pointer;
}

.recurrence-pill {
  background: #F8FAFC;
  border: 1.5px solid var(--brand-border);
  border-radius: 10px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.recurrence-pill.active {
  background: #EFF6FF;
  border-color: #0284C7;
  color: #0284C7;
}

.modal-choice-card {
  background: #F8FAFC;
  border: 1.5px solid var(--brand-border);
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: block;
}

.modal-choice-card.active {
  background: #EFF6FF;
  border-color: #0284C7;
}


.calendar-carousel-wrapper {
  position: relative;
  width: 100%;
}

.calendar-days-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 4px 2px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.calendar-days-scroll::-webkit-scrollbar {
  display: none;
}

.calendar-day-pill {
  padding: 8px 8px;
  border-radius: 12px;
  background: #F1F5F9;
  border: 1.5px solid var(--brand-border, #E2E8F0);
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: #64748B;
  cursor: pointer;
  flex: 0 0 76px;
  min-width: 76px;
  box-sizing: border-box;
  transition: all 0.18s ease;
  user-select: none;
}

.calendar-day-pill:hover {
  border-color: #CBD5E1;
  background: #E2E8F0;
}

.calendar-day-pill.active {
  background: #0284C7;
  color: #FFFFFF;
  border-color: #0284C7;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.25);
}

.calendar-day-pill.calendar-more-pill {
  border: 1.5px dashed var(--brand-gold, #D97706);
  background: #FFFDF9;
  color: var(--primary-cta, #D97706);
}

.calendar-day-pill.calendar-more-pill:hover {
  background: #FEF9EE;
  border-color: #B45309;
}

.calendar-day-pill.calendar-more-pill.active {
  background: var(--brand-gold, #D97706);
  color: #FFFFFF;
  border-style: solid;
  border-color: var(--brand-gold, #D97706);
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.25);
}

.calendar-scroll-hint {
  position: absolute;
  right: -2px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 48px;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.85) 40%, #FFFFFF 100%);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  color: var(--brand-night, #071B36);
  font-size: 20px;
  font-weight: 900;
  cursor: pointer;
  z-index: 2;
  transition: opacity 0.25s ease;
  pointer-events: auto;
  user-select: none;
  padding-right: 2px;
}

.time-slots-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 6px;
}

.time-slot-pill {
  padding: 8px 10px;
  border-radius: 10px;
  border: 1.5px solid var(--brand-border);
  background: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  color: #64748B;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.time-slot-pill.active {
  border-color: #0284C7;
  background: #F0F9FF;
  color: #0284C7;
}

.sticky-bottom-cta-bar {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1.5px solid #E2E8F0;
  padding: 7px 14px;
  padding-bottom: max(8px, env(safe-area-inset-bottom, 8px));
  margin: 0 -16px -24px -16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  z-index: 60;
  box-shadow: 0 -3px 12px rgba(11, 25, 44, 0.05);
}

.sticky-bar-col-left {
  display: flex;
  flex-direction: column;
  min-width: 62px;
  flex-shrink: 0;
}

.sticky-bar-col-left .sticky-bar-label {
  font-size: 8.5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #64748B;
  font-weight: 700;
  line-height: 1;
}

.sticky-bar-col-left .sticky-bar-price {
  font-size: 15px;
  font-weight: 900;
  color: var(--brand-night);
  line-height: 1.2;
}

.sticky-bar-col-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex: 1;
  min-width: 0;
  padding: 0 4px;
}

.sticky-bar-col-center .sticky-bar-slot {
  font-size: 9.5px;
  color: #475569;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.sticky-bar-col-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
}

.btn-sticky-continue-compact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #E59819 0%, #D97706 100%);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 12px;
  padding: 7px 13px;
  min-height: 35px;
  height: 35px;
  border-radius: 9px;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(229, 152, 25, 0.35);
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform 0.1s ease, box-shadow 0.15s ease;
}

.btn-sticky-continue-compact:active {
  transform: scale(0.98);
  box-shadow: 0 1px 4px rgba(229, 152, 25, 0.25);
}

.bottom-tab-bar-5 {
  position: sticky;
  bottom: 0; left: 0; right: 0;
  min-height: 64px;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: #FFFFFF;
  border-top: 1.5px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 50;
  margin-top: auto;
  box-shadow: 0 -4px 14px rgba(7, 27, 54, 0.05);
}

.tab-item-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: #94A3B8;
  font-size: 10px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 8px;
  transition: color 0.15s ease;
}

.tab-item-link.active {
  color: var(--brand-gold-btn);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 25, 44, 0.65);
  backdrop-filter: blur(4px);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: modalFadeIn 0.2s ease forwards;
}

.modal-overlay.active {
  display: flex;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-box {
  background: #FFFFFF;
  width: 100%;
  max-width: 380px;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  max-height: 85vh;
  overflow-y: auto;
  border: 1.5px solid var(--brand-border);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 1px solid #E2E8F0;
}

.modal-title {
  font-size: 16px;
  font-weight: 900;
  color: var(--brand-night);
}

.modal-close-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #F1F5F9;
  color: #64748B;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 15px;
  cursor: pointer;
}

/* ==========================================================================
   MYASSISTS V6-3.3 DESIGN SYSTEM & TOKENS OBLIGATOIRES (Section 2)
   1 écran = 1 action principale visuellement dominante (PrimaryButton)
   ========================================================================== */
:root {
  --primary-cta: #D97706;
  --primary-cta-hover: #B45309;
  --primary-cta-text: #071B36;
  --selection-blue: #0284C7;
  --success-green: #10B981;
  --urgency-red: #DC2626;
  --neutral-muted: #64748B;
  --neutral-bg-light: #F8FAFC;
}

/* PrimaryButton : Plein or/orange MyAssists, texte foncé, hauteur & rayon constants */
.btn-primary-ma {
  background: var(--brand-gold, #D97706);
  color: #071B36 !important;
  font-weight: 900 !important;
  font-size: 13.5px !important;
  height: 46px;
  min-height: 46px;
  border-radius: 12px;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.28);
  transition: transform 0.1s ease, background 0.15s ease, opacity 0.15s ease;
  text-decoration: none;
  letter-spacing: 0.2px;
}
.btn-primary-ma:hover {
  background: #B45309;
}
.btn-primary-ma:active {
  transform: scale(0.98);
}
.btn-primary-ma:disabled, .btn-primary-ma.disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
}

/* SecondaryAction : Navigation / information */
.btn-secondary-action {
  background: #F1F5F9;
  color: var(--brand-night);
  border: 1px solid #CBD5E1;
  font-weight: 700;
  font-size: 12px;
  height: 40px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s;
  text-decoration: none;
}
.btn-secondary-action:hover {
  background: #E2E8F0;
}

/* DestructiveAction : Actions sensibles ou annulation */
.btn-destructive-action {
  background: #FEF2F2;
  color: #DC2626;
  border: 1px solid #FECACA;
  font-weight: 700;
  font-size: 12px;
  height: 40px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Status Badges */
.status-badge-confirmed {
  background: #ECFDF5;
  color: #059669;
  border: 1px solid #A7F3D0;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
}
.status-badge-urgent {
  background: #FEF2F2;
  color: #DC2626;
  border: 1px solid #FECACA;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
}

/* Masquage de secrets sécurisé (Wi-Fi, digicodes, serrures) */
.secret-masked-box {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
}
.secret-value-masked {
  letter-spacing: 2px;
  font-weight: 900;
  color: #64748B;
  font-family: monospace;
}
.btn-reveal-secret {
  font-size: 10px;
  font-weight: 700;
  color: #0284C7;
  background: none;
  border: none;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

/* Centre de Notifications Transversal (Harmonisation 3 Niveaux Visuels & Distinction Lu/Non Lu V6-3.4) */
.notif-center-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
  max-height: 60vh;
  overflow-y: auto;
  padding-right: 2px;
}
/* État Lu : Fond blanc neutre, bordure 1px neutre, aucun point, titre graisse normale */
.notif-center-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
  text-decoration: none;
  color: inherit;
}
.notif-center-item:hover {
  background: #F8FAFC;
  border-color: #CBD5E1;
}
/* État Non Lu : Fond très légèrement teinté ivoire/or MyAssists, bordure d'accent dorée, titre en gras, point indicateur */
.notif-center-item.unread {
  background: #FEF9EE;
  border: 1px solid #FDE68A;
  border-left: 3.5px solid var(--brand-gold, #D97706);
  box-shadow: 0 2px 6px rgba(217, 119, 6, 0.06);
}
.notif-center-item.unread:hover {
  background: #FDF3DC;
  border-color: #FCD34D;
}
.notif-center-item .notif-unread-dot {
  display: none;
}
.notif-center-item.unread .notif-unread-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-gold, #D97706);
  box-shadow: 0 0 0 2px rgba(217, 119, 6, 0.2);
  flex-shrink: 0;
  margin-left: 6px;
  vertical-align: middle;
}
.notif-center-item .notif-item-icon,
.notif-center-item .notif-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  line-height: 1;
}
.notif-center-item .notif-item-body,
.notif-center-item .notif-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* Niveau 1 : Titre / information principale */
.notif-center-item .notif-item-title,
.notif-center-item .notif-title {
  font-size: 13px;
  font-weight: 500;
  color: #334155;
  line-height: 1.3;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.notif-center-item.unread .notif-item-title,
.notif-center-item.unread .notif-title {
  font-weight: 800;
  color: var(--brand-night, #071B36);
}

/* Niveau 2 : Date-heure en texte secondaire gris */
.notif-center-item .notif-item-time,
.notif-center-item .notif-meta {
  font-size: 11px;
  color: #64748B;
  margin-top: 2px;
  font-weight: 500;
  line-height: 1.25;
}

.notif-center-item .notif-item-text,
.notif-center-item .notif-body-p {
  font-size: 11.5px;
  color: #475569;
  margin: 4px 0 0 0;
  line-height: 1.35;
}

/* Niveau 3 : Action */
.notif-center-item .notif-item-action {
  margin-top: 6px;
}

.notif-center-item .notif-item-tag {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--primary-cta, #D97706);
  transition: color 0.15s;
}
.notif-center-item:hover .notif-item-tag {
  color: #B45309;
}

/* ==========================================================================
   PAGE D'OUVERTURE ANIMÉE MYASSISTS (CDC V1 - 1.85s MAX)
   ========================================================================== */
.myassists-splash-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background-color: #071B36;
  background: radial-gradient(circle at 50% 44%, #0f305c 0%, #071B36 68%, #030c18 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  user-select: none;
  touch-action: manipulation;
}

.splash-step-fadeout {
  opacity: 0;
  pointer-events: none;
}

.splash-stage {
  position: relative;
  width: 260px;
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.splash-globe-wrap {
  position: absolute;
  width: 146px;
  height: 146px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.95;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
}

.splash-globe-halo {
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 119, 6, 0.3) 0%, rgba(217, 119, 6, 0.08) 55%, transparent 75%);
  animation: splashHaloPulse 1.8s ease-in-out infinite alternate;
}

.splash-globe-svg {
  width: 100%;
  height: 100%;
  transform-origin: center;
  animation: splashGlobeSlowSpin 24s linear infinite;
}

.splash-univers-orbit {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.splash-node {
  position: absolute;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #092143;
  border: 1.5px solid #F59E0B;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-size: 15px;
  opacity: 0;
  transform: scale(0.2) translate(0, 0);
  transition: transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
}

/* 4 univers positionnés au début */
.splash-node-maison { top: 12px; left: 113px; }
.splash-node-auto { top: 113px; right: 12px; }
.splash-node-menage { bottom: 12px; left: 113px; }
.splash-node-assistance { top: 113px; left: 12px; }

.splash-step-emit .splash-node {
  opacity: 1;
  transform: scale(1) translate(0, 0);
}

/* Convergence vers monogramme et orbite courte (90-140°) */
.splash-step-converge .splash-node-maison {
  transform: translate(-32px, 58px) scale(0.85);
  opacity: 0.9;
}
.splash-step-converge .splash-node-auto {
  transform: translate(-58px, -32px) scale(0.85);
  opacity: 0.9;
}
.splash-step-converge .splash-node-menage {
  transform: translate(32px, -58px) scale(0.85);
  opacity: 0.9;
}
.splash-step-converge .splash-node-assistance {
  transform: translate(58px, 32px) scale(0.85);
  opacity: 0.9;
}

/* Fusion & étincelle subtile */
.splash-step-fusion .splash-node {
  transform: translate(0, 0) scale(0.1);
  opacity: 0;
}

.splash-sparkle {
  position: absolute;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(254, 240, 138, 0.95) 0%, rgba(245, 158, 11, 0.55) 45%, transparent 70%);
  opacity: 0;
  transform: scale(0.2);
  transition: transform 0.25s ease-out, opacity 0.25s ease-out;
  pointer-events: none;
}

.splash-step-fusion .splash-sparkle {
  opacity: 1;
  transform: scale(1.6);
}

.splash-monogram {
  position: relative;
  z-index: 10;
  width: 62px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0.85);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.splash-step-fusion .splash-monogram {
  transform: scale(1.18);
}

.splash-step-signature .splash-monogram {
  transform: scale(1);
}

.splash-signature {
  margin-top: 14px;
  text-align: center;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.splash-step-signature .splash-signature {
  opacity: 1;
  transform: translateY(0);
}

.splash-brand-name {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 0.5px;
  color: #FFFFFF;
}

.splash-brand-slogan {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 2.4px;
  color: #F59E0B;
  margin-top: 4px;
  text-transform: uppercase;
}

@keyframes splashHaloPulse {
  0% { transform: scale(0.96); opacity: 0.65; }
  100% { transform: scale(1.05); opacity: 1; }
}

@keyframes splashGlobeSlowSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .myassists-splash-overlay {
    display: none !important;
  }
}

/* ==========================================================================
   ACCUEIL UI FINAL (MAQUETTE OFFICIELLE SEPTEMBRE 2026)
   ========================================================================== */
.city-hero-banner-v2 {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background-color: #071B36;
  background-size: cover;
  background-position: center;
  color: #FFFFFF;
  margin-bottom: 10px;
  box-shadow: 0 4px 14px rgba(7, 27, 54, 0.15);
  transition: background-image 0.4s ease;
}

.city-hero-banner-v2::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 27, 54, 0.72) 0%, rgba(7, 27, 54, 0.92) 100%);
  z-index: 1;
}

.city-hero-content-v2 {
  position: relative;
  z-index: 2;
  padding: 14px 16px;
}

.editorial-univ-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

.editorial-univ-card {
  position: relative;
  background: #FFFFFF;
  border: 1.5px solid var(--brand-border, #E2E8F0);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.editorial-univ-card:active {
  transform: scale(0.985);
}

.editorial-card-cover {
  position: relative;
  width: 100%;
  height: 96px;
  overflow: hidden;
  background: #E2E8F0;
}

.editorial-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.editorial-card-badge-icon {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-gold, #D97706);
}

.editorial-card-body {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.editorial-card-title {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--brand-night, #071B36);
  margin-bottom: 2px;
}

.editorial-card-sub {
  font-size: 10px;
  color: #64748B;
  line-height: 1.3;
  margin-bottom: 8px;
  min-height: 26px;
}

.editorial-card-cta {
  font-size: 11px;
  font-weight: 700;
  color: var(--brand-night, #071B36);
  display: flex;
  align-items: center;
  gap: 4px;
}

.editorial-card-cta span:last-child {
  transition: transform 0.15s ease;
}

.editorial-univ-card:hover .editorial-card-cta span:last-child {
  transform: translateX(3px);
}


