/* ============================================================
   KeyZen — Splash d'entrée : Propriétaire / Voyageur
   ============================================================ */

.kz-splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: linear-gradient(155deg, #f5f2ec 0%, #ede8de 100%);
  overflow-y: auto;
  overflow-x: hidden;
  animation: kz-splash-fade-in 320ms ease-out;
}

@keyframes kz-splash-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.kz-splash-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.kz-splash-bg-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
}
.kz-splash-bg-shape-1 {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, #094713 0%, transparent 70%);
  top: -120px;
  left: -80px;
}
.kz-splash-bg-shape-2 {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, #1a3a52 0%, transparent 70%);
  bottom: -160px;
  right: -120px;
}

.kz-splash-lang {
  position: absolute;
  top: 1.4rem;
  right: 1.4rem;
  z-index: 3;
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(9, 71, 19, 0.12);
  border-radius: 999px;
  backdrop-filter: blur(8px);
}
.kz-splash-lang button {
  padding: 0.4rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #5a5044;
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: all 200ms;
  font-family: inherit;
}
.kz-splash-lang button:hover { color: #094713; }
.kz-splash-lang button.active {
  background: #094713;
  color: #f5f2ec;
}

.kz-splash-inner {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 2.5rem;
}

.kz-splash-brand img {
  height: auto;
  max-width: 160px;
  filter: drop-shadow(0 4px 12px rgba(9, 71, 19, 0.12));
}

.kz-splash-header {
  max-width: 720px;
}

.kz-splash-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #094713;
  font-weight: 600;
  margin-bottom: 1rem;
}

.kz-splash-title {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.85rem, 4.2vw, 2.85rem);
  line-height: 1.15;
  color: #2b241a;
  margin: 0 0 1.2rem;
  letter-spacing: -0.01em;
}

.kz-splash-lead {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: clamp(1rem, 1.6vw, 1.1rem);
  line-height: 1.65;
  color: #5a5044;
  margin: 0;
  max-width: 62ch;
  margin-inline: auto;
}

.kz-splash-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  width: 100%;
  max-width: 900px;
}

.kz-splash-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  padding: 2rem 1.8rem 1.8rem;
  background: #fff;
  border: 1px solid rgba(43, 36, 26, 0.08);
  border-radius: 18px;
  cursor: pointer;
  transition: all 320ms cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
  color: inherit;
  box-shadow: 0 4px 20px rgba(9, 71, 19, 0.04);
  position: relative;
  overflow: hidden;
}

.kz-splash-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.5) 100%);
  opacity: 0;
  transition: opacity 320ms;
  pointer-events: none;
}

.kz-splash-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(9, 71, 19, 0.12);
  border-color: transparent;
}
.kz-splash-card:hover::before { opacity: 1; }

.kz-splash-card-owner:hover::before,
.kz-splash-card-traveller:hover::before { opacity: 0; }

.kz-splash-card-owner:hover { background: linear-gradient(155deg, #dbe8d6 0%, #bfd6b8 100%); border-color: rgba(9, 71, 19, 0.18); }
.kz-splash-card-owner:hover .kz-splash-card-visual { color: #094713; background: rgba(9, 71, 19, 0.16); }
.kz-splash-card-owner:hover .kz-splash-card-cta { color: #094713; }
.kz-splash-card-owner:hover .kz-splash-card-cta svg { transform: translateX(4px); }

.kz-splash-card-traveller:hover { background: linear-gradient(155deg, #d6e3ee 0%, #b8cde0 100%); border-color: rgba(26, 58, 82, 0.18); }
.kz-splash-card-traveller:hover .kz-splash-card-visual { color: #1a3a52; background: rgba(26, 58, 82, 0.16); }
.kz-splash-card-traveller:hover .kz-splash-card-cta { color: #1a3a52; }
.kz-splash-card-traveller:hover .kz-splash-card-cta svg { transform: translateX(4px); }

.kz-splash-card:focus-visible {
  outline: 2px solid #094713;
  outline-offset: 3px;
}

.kz-splash-card-visual {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f2ec;
  color: #7a6f5f;
  margin-bottom: 1.5rem;
  transition: all 320ms;
}
.kz-splash-card-visual svg {
  width: 40px;
  height: 40px;
}

.kz-splash-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.kz-splash-card-body h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  font-size: 1.55rem;
  line-height: 1.2;
  margin: 0;
  color: #2b241a;
  letter-spacing: -0.01em;
}

.kz-splash-card-body p {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #5a5044;
  margin: 0;
}

.kz-splash-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: #5a5044;
  letter-spacing: 0.02em;
  transition: color 220ms;
}
.kz-splash-card-cta svg {
  width: 16px;
  height: 16px;
  transition: transform 320ms cubic-bezier(0.16, 1, 0.3, 1);
}

.kz-splash-foot {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: #7a6f5f;
  margin: 0;
  opacity: 0.75;
}

/* ================= Responsive ================= */
@media (max-width: 700px) {
  .kz-splash-inner {
    padding: 2rem 1.2rem 3rem;
    gap: 2rem;
  }
  .kz-splash-cards {
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 480px;
  }
  .kz-splash-card {
    padding: 1.5rem 1.3rem 1.3rem;
  }
  .kz-splash-card-visual {
    width: 56px;
    height: 56px;
    margin-bottom: 1rem;
  }
  .kz-splash-card-visual svg { width: 32px; height: 32px; }
  .kz-splash-card-body h2 { font-size: 1.35rem; }
  .kz-splash-card-body p { font-size: 0.9rem; }
  .kz-splash-brand img { max-width: 130px; }
}

@media (max-width: 480px) {
  .kz-splash-title { font-size: 1.6rem; }
  .kz-splash-lead { font-size: 0.92rem; }
}

/* ================= Bouton "Changer d'espace" dans les footers ================= */
.footer-audience-switch {
  background: transparent;
  border: 1px solid var(--line, rgba(255, 255, 255, 0.15));
  color: inherit;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  font-family: inherit;
  opacity: 0.75;
  transition: all 200ms;
}
.footer-audience-switch:hover {
  opacity: 1;
  border-color: var(--accent, currentColor);
  color: var(--accent, inherit);
}

/* ================= Lien "changer d'audience" (dans les headers) ================= */
.kz-audience-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 200ms;
  cursor: pointer;
  background: transparent;
  font-family: inherit;
  letter-spacing: 0.05em;
}
.kz-audience-switch:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.06);
}
