:root {
  --eep-navy: #0b1b31;
  --eep-navy-2: #15345a;
  --eep-blue: #2d628f;
  --eep-gold: #c9a961;
  --eep-cream: #f6f1e7;
  --eep-ink: #162235;
  --eep-muted: #627188;
  --eep-line: #e2e9f1;
  --eep-shadow: 0 18px 50px -12px rgba(12, 27, 49, .36);
  --eep-soft-shadow: 0 8px 24px -12px rgba(12, 27, 49, .24);
  --eep-radius: 18px;
  --eep-font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

.eep-page {
  min-height: 100vh;
  margin: 0;
  color: var(--eep-ink);
  font-family: var(--eep-font);
  background:
    radial-gradient(circle at 10% 5%, rgba(201, 169, 97, .22), transparent 28rem),
    radial-gradient(circle at 90% 0%, rgba(45, 98, 143, .16), transparent 28rem),
    linear-gradient(180deg, #f8f3ea 0%, #eef3f7 100%);
}

.eep-page-topbar {
  width: min(1120px, calc(100% - 32px));
  margin: 18px auto 0;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid rgba(24,45,74,.12);
  border-radius: 18px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 18px 48px rgba(12,27,49,.08);
}

.eep-page-brand,
.eep-page-nav {
  display: flex;
  align-items: center;
}

.eep-page-brand {
  gap: 10px;
  color: var(--eep-navy-2);
  font-weight: 800;
  text-decoration: none;
}

.eep-page-brand span {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(135deg, var(--eep-navy-2), var(--eep-blue));
}

.eep-page-brand strong { color: var(--eep-gold); }

.eep-page-nav { gap: 16px; flex-wrap: wrap; }
.eep-page-nav a {
  color: var(--eep-navy-2);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.eep-page-main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 80px;
}

.eep-page-hero {
  max-width: 650px;
  padding: clamp(30px, 4vw, 54px);
  border: 1px solid rgba(24,45,74,.12);
  border-radius: 30px;
  color: #fff;
  background:
    linear-gradient(145deg, rgba(11,27,49,.98), rgba(21,52,90,.94)),
    radial-gradient(circle at 86% 12%, rgba(201,169,97,.34), transparent 18rem);
  box-shadow: 0 28px 90px rgba(12,27,49,.16);
}

.eep-kicker {
  color: var(--eep-gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.eep-page-hero h1 {
  margin: 12px 0 14px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(42px, 6vw, 72px);
  line-height: .98;
}

.eep-page-subtitle {
  color: #fff;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 900;
  line-height: 1.15;
}

.eep-page-copy {
  max-width: 590px;
  margin-top: 16px;
  color: rgba(255,255,255,.84);
  font-size: 17px;
  line-height: 1.72;
}

.eep-page-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 24px;
}

.eep-page-chips span {
  padding: 9px 11px;
  border-radius: 999px;
  color: rgba(255,255,255,.92);
  background: rgba(255,255,255,.11);
  border: 1px solid rgba(255,255,255,.13);
  font-size: 13px;
  font-weight: 800;
}

.eep-page-cards {
  max-width: 650px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.eep-page-cards article {
  padding: 18px;
  border: 1px solid rgba(24,45,74,.12);
  border-radius: 22px;
  background: rgba(255,255,255,.94);
  box-shadow: var(--eep-soft-shadow);
}

.eep-page-cards i {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: var(--eep-navy-2);
  background: #f8f0dc;
  border: 1px solid rgba(201,169,97,.35);
}

.eep-page-cards h2 {
  margin: 13px 0 7px;
  color: var(--eep-navy-2);
  font-size: 17px;
  font-weight: 900;
}

.eep-page-cards p {
  margin: 0;
  color: #526174;
  font-size: 14px;
  line-height: 1.55;
}

/* Floating assistant, adapted from the verified Couvreur V9 pattern */
.eep-widget {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 2147483000;
  font-family: var(--eep-font);
  color: var(--eep-ink);
  text-align: left;
  -webkit-font-smoothing: antialiased;
}

.eep-widget *,
.eep-widget *::before,
.eep-widget *::after { box-sizing: border-box; }

.eep-launcher {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px 13px 16px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--eep-navy-2), var(--eep-blue) 58%, var(--eep-gold));
  box-shadow: var(--eep-shadow);
  cursor: pointer;
  font-size: 15px;
  font-weight: 800;
  transition: transform .18s ease, box-shadow .18s ease;
}
.eep-launcher:hover { transform: translateY(-2px); }
.eep-launcher__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 4px rgba(74,222,128,.25);
}
.eep-launcher__icon {
  display: inline-flex;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
}
.eep-launcher__label { white-space: nowrap; }
.eep-widget[data-open="true"] .eep-launcher { display: none; }

.eep-panel {
  display: none;
  width: 412px;
  max-width: calc(100vw - 28px);
  height: 660px;
  max-height: calc(100vh - 36px);
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--eep-line);
  border-radius: var(--eep-radius);
  background: #fff;
  box-shadow: var(--eep-shadow);
  animation: eep-pop .22s cubic-bezier(.2,.8,.2,1);
}
.eep-widget[data-open="true"] .eep-panel { display: flex; }
@keyframes eep-pop {
  from { opacity: 0; transform: translateY(14px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.eep-head {
  padding: 16px;
  color: #fff;
  background:
    radial-gradient(120% 140% at 0% 0%, #2d628f 0%, #15345a 48%, #0b1b31 100%);
}
.eep-head__row {
  display: flex;
  align-items: center;
  gap: 11px;
}
.eep-head__avatar {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(255,255,255,.16);
}
.eep-head__titles { min-width: 0; flex: 1; }
.eep-head__title {
  margin: 0;
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.2;
}
.eep-head__sub {
  margin: 3px 0 0;
  color: rgba(255,255,255,.78);
  font-size: 12px;
  line-height: 1.35;
}
.eep-head__badge {
  padding: 6px 9px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.eep-iconbtn {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 9px;
  color: #fff;
  background: rgba(255,255,255,.12);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}
.eep-head__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.eep-head__trust span {
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  color: #eef5ff;
  font-size: 11px;
  font-weight: 800;
}

.eep-progress {
  height: 3px;
  background: var(--eep-line);
}
.eep-progress__bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--eep-blue), var(--eep-gold));
  transition: width .35s ease;
}

.eep-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 16px 14px 8px;
  background: #f7f9fc;
  scroll-behavior: smooth;
}
.eep-body::-webkit-scrollbar { width: 8px; }
.eep-body::-webkit-scrollbar-thumb { background: #cdd7e3; border-radius: 8px; }

.eep-thread {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.eep-msg {
  display: flex;
  gap: 9px;
  max-width: 100%;
  animation: eep-fade .25s ease;
}
@keyframes eep-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.eep-msg__av {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  margin-top: 2px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--eep-navy-2);
  background: #eef4fb;
  font-size: 14px;
}
.eep-msg__bubble {
  padding: 10px 13px;
  border-radius: 13px;
  background: #fff;
  border: 1px solid var(--eep-line);
  box-shadow: 0 1px 2px rgba(16,32,56,.04);
  font-size: 13px;
  line-height: 1.5;
}
.eep-msg--bot .eep-msg__bubble { border-top-left-radius: 4px; }
.eep-msg--user { flex-direction: row-reverse; }
.eep-msg--user .eep-msg__av { background: var(--eep-navy-2); color: #fff; }
.eep-msg--user .eep-msg__bubble {
  color: #fff;
  background: var(--eep-blue);
  border-color: var(--eep-blue);
  border-top-right-radius: 4px;
}

.eep-foot {
  padding: 11px 13px 13px;
  border-top: 1px solid var(--eep-line);
  background: #fff;
}
.eep-prompt {
  margin: 0 0 8px;
  color: var(--eep-muted);
  font-size: 12px;
  font-weight: 800;
}
.eep-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.eep-quick__btn {
  padding: 8px 13px;
  border: 1px solid #cfd9e4;
  border-radius: 999px;
  color: var(--eep-navy-2);
  background: #fff;
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 800;
  transition: background .14s ease, border-color .14s ease, transform .1s ease;
}
.eep-quick__btn:hover,
.eep-quick__btn--active {
  background: #f8f0dc;
  border-color: var(--eep-gold);
}

.eep-navrow {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
}
.eep-navbtn {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 11px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
}
.eep-navbtn--ghost {
  color: var(--eep-navy-2);
  border: 1px solid #cfd9e4;
  background: #fff;
}
.eep-navbtn--main {
  color: #fff;
  border: 0;
  background: linear-gradient(135deg, var(--eep-navy-2), var(--eep-blue));
}

.eep-contact {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.eep-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: var(--eep-navy-2);
  font-size: 12px;
  font-weight: 800;
}
.eep-field--wide,
.eep-consent {
  grid-column: 1 / -1;
}
.eep-field input,
.eep-field textarea {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid #cfd9e4;
  border-radius: 10px;
  color: var(--eep-ink);
  background: #fff;
  font: inherit;
  outline: none;
}
.eep-field textarea { resize: vertical; min-height: 48px; }
.eep-field input:focus,
.eep-field textarea:focus {
  border-color: var(--eep-blue);
  box-shadow: 0 0 0 3px rgba(45,98,143,.14);
}
.eep-consent {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  color: var(--eep-muted);
  font-size: 11.5px;
  line-height: 1.4;
}

.eep-result {
  padding: 12px;
  border: 1px solid rgba(201,169,97,.42);
  border-radius: 14px;
  background: #fffaf0;
}
.eep-result__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.eep-result__top strong {
  color: var(--eep-navy-2);
  font-size: 13px;
}
.eep-result__top span {
  padding: 4px 8px;
  border-radius: 999px;
  color: #236142;
  background: #eef9f2;
  font-size: 11px;
  font-weight: 900;
}
.eep-result__row {
  padding: 8px 0;
  border-top: 1px solid rgba(201,169,97,.24);
}
.eep-result__row span {
  display: block;
  color: var(--eep-muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.eep-result__row b {
  display: block;
  margin-top: 3px;
  color: var(--eep-navy-2);
  font-size: 12.5px;
  line-height: 1.45;
}
.eep-alert {
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.45;
}
.eep-alert--warn {
  color: #7a4b12;
  background: #fff7e6;
  border: 1px solid #f0d59a;
}

@media (max-width: 920px) {
  .eep-page-cards { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .eep-page-topbar {
    align-items: flex-start;
    flex-direction: column;
  }
  .eep-page-main {
    width: min(100% - 20px, 1120px);
    padding-top: 24px;
  }
  .eep-widget {
    right: 12px;
    bottom: 12px;
  }
  .eep-panel {
    width: calc(100vw - 24px);
    height: calc(100vh - 24px);
    max-height: none;
    border-radius: 18px;
  }
  .eep-contact {
    grid-template-columns: 1fr;
  }
  .eep-navrow {
    flex-direction: column;
  }
  .eep-navbtn {
    width: 100%;
  }
}
