/* Devissalles Pro - Override des palettes pour le theme-full.css partagé.
   Palette tout-en-bleu : bleu (primaire) + cyan + indigo + teal,
   alignée sur le tailwind.config.js de l'app pour rester cohérente
   entre les classes Tailwind hardcodées et les CSS vars du shared theme.

   Mode clair / sombre : la palette reste identique, seules les surfaces
   basculent via la classe `.dark` (cf. shared/theme.js). */

:root {
  /* === Palette principale (était violet → devient BLEU). === */
  --violet-50:  #EFF6FF;
  --violet-100: #DBEAFE;
  --violet-200: #BFDBFE;
  --violet-300: #93C5FD;
  --violet-400: #60A5FA;
  --violet-500: #3B82F6;
  --violet-600: #2563EB;
  --violet-700: #1D4ED8;
  --violet-800: #1E40AF;
  --violet-900: #1E3A8A;
  --violet-950: #172554;

  /* === Accent 1 (était pink → devient CYAN, sœur fraîche du bleu). === */
  --pink-300: #67E8F9;
  --pink-400: #22D3EE;
  --pink-500: #06B6D4;
  --pink-600: #0891B2;

  /* === Accent 2 (était peach → devient INDIGO, profondeur cohérente avec le bleu). === */
  --peach-300: #A5B4FC;
  --peach-400: #818CF8;
  --peach-500: #6366F1;

  /* === Accent 3 (mint → reste TEAL, ton frais doux). === */
  --mint-300: #5EEAD4;
  --mint-400: #2DD4BF;
}

:root {
  --brand-50:  #EFF6FF;
  --brand-100: #DBEAFE;
  --brand-500: #3B82F6;
  --brand-600: #2563EB;
  --brand-700: #1D4ED8;
  --accent-1: #06B6D4;
  --accent-2: #818CF8;

  /* === Surfaces — mode CLAIR (légère teinte bleue). === */
  --bg:          #F4F8FF;
  --bg-soft:     #DBEAFE;
  --surface:     #FFFFFF;
  --surface-2:   #EFF6FF;
  --text:        #172554;
  --text-soft:   #1E40AF;
  --line:        rgba(29, 78, 216, 0.10);
  --line-strong: rgba(29, 78, 216, 0.18);
}

/* === Surfaces — mode SOMBRE (teinte bleue d'origine). === */
.dark {
  --bg:          #07090D;
  --bg-soft:     #0F131A;
  --surface:     #131820;
  --surface-2:   #1C222C;
  --text:        #EFF6FF;
  --text-soft:   #93C5FD;
  --line:        rgba(147, 197, 253, 0.10);
  --line-strong: rgba(147, 197, 253, 0.20);
}

/* === Override search-shell — mode sombre uniquement. === */

.dark .search-shell {
  background: rgba(28, 34, 44, 0.65);
  box-shadow:
    0 1px 0 rgba(147, 197, 253, 0.10) inset,
    0 30px 80px -20px rgba(59, 130, 246, 0.30),
    0 12px 30px -10px rgba(129, 140, 248, 0.15);
}

.dark .search-shell:focus-within {
  box-shadow:
    0 1px 0 rgba(147, 197, 253, 0.12) inset,
    0 0 0 6px rgba(96, 165, 250, 0.18),
    0 40px 80px -20px rgba(59, 130, 246, 0.4);
}

.dark .search-suggestions {
  background: rgba(15, 19, 26, 0.92);
  border-color: rgba(147, 197, 253, 0.18);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 30px 60px -10px rgba(59, 130, 246, 0.4);
}

.dark .search-suggestion:hover,
.dark .search-suggestion.is-highlighted {
  background: linear-gradient(110deg, rgba(59, 130, 246, 0.22), rgba(129, 140, 248, 0.16));
}

@media (max-width: 640px) {
  .dark .search-suggestions {
    box-shadow:
      0 12px 30px -10px rgba(59, 130, 246, 0.28),
      0 0 0 1px rgba(59, 130, 246, 0.06);
  }
  .dark .search-suggestion:active {
    background: linear-gradient(110deg, rgba(59, 130, 246, 0.16), rgba(129, 140, 248, 0.12));
  }
}

.dark .search-mobile-shell:focus-within {
  box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.18);
}

/* === CTA cross-app : invite à basculer vers DevisSalles (B2C) depuis la home
       pro. Couleurs alignées sur la palette de marque de l'app (bleu ici),
       via les vars --brand-* / --accent-1. === */

.cross-app-cta {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  padding: 0.85rem 1.35rem;
  border-radius: 9999px;
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--brand-500) 9%, var(--surface)),
    color-mix(in srgb, var(--accent-1) 6%, var(--surface)));
  border: 1px solid var(--line-strong);
  color: var(--text);
  text-align: left;
  text-decoration: none;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background .25s ease;
}

.cross-app-cta:hover,
.cross-app-cta:focus-visible {
  transform: translateY(-1px);
  border-color: var(--brand-500);
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--brand-500) 14%, var(--surface)),
    color-mix(in srgb, var(--accent-1) 10%, var(--surface)));
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.5) inset,
    0 14px 30px -14px color-mix(in srgb, var(--brand-500) 45%, transparent);
  outline: none;
}

.cross-app-cta__icon {
  flex: 0 0 2.25rem;
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: linear-gradient(135deg, var(--brand-500), var(--accent-1));
  color: #fff;
  box-shadow: 0 6px 14px -6px color-mix(in srgb, var(--brand-500) 50%, transparent);
}

.cross-app-cta__icon svg {
  width: 1.1rem;
  height: 1.1rem;
}

.cross-app-cta__body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  line-height: 1.35;
}

.cross-app-cta__title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}

.cross-app-cta__sub {
  font-size: 0.825rem;
  color: var(--text-soft);
}

.cross-app-cta__arrow {
  flex: 0 0 auto;
  color: var(--brand-600);
  transition: transform .25s ease;
}

.cross-app-cta:hover .cross-app-cta__arrow,
.cross-app-cta:focus-visible .cross-app-cta__arrow {
  transform: translateX(3px);
}

.dark .cross-app-cta {
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--brand-500) 16%, var(--surface)),
    color-mix(in srgb, var(--accent-1) 10%, var(--surface-2)));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset;
}

.dark .cross-app-cta:hover,
.dark .cross-app-cta:focus-visible {
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--brand-500) 22%, var(--surface)),
    color-mix(in srgb, var(--accent-1) 14%, var(--surface-2)));
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.07) inset,
    0 18px 36px -12px color-mix(in srgb, var(--brand-500) 55%, transparent);
}

@media (max-width: 480px) {
  .cross-app-cta { padding: 0.75rem 1.1rem; gap: 0.7rem; border-radius: 1.25rem; }
  .cross-app-cta__title { font-size: 0.9rem; }
  .cross-app-cta__sub { font-size: 0.78rem; }
  .cross-app-cta__icon { flex-basis: 2rem; width: 2rem; height: 2rem; }
}
