@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

body { font-family: 'Inter', system-ui, sans-serif; }

/* Nom de marque dans le texte — dégradé bleu / teal (logo & charte) */
.vvi-brand {
  display: inline;
  font-weight: 700;
  background: linear-gradient(120deg, #1e3a8a 0%, #0f766e 48%, #14b8a6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding: 0;
  margin: 0;
}

strong.vvi-brand {
  font-weight: 800;
}

/* FAQ — questions : couleur unie (pas de background-clip qui crée des espaces) */
summary .faq-brand {
  font-style: normal;
  font-weight: 700;
  color: #0f766e;
}

footer .vvi-brand,
.bg-zinc-900 .vvi-brand {
  background: linear-gradient(120deg, #99f6e4 0%, #5eead4 45%, #2dd4bf 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Fonds sombres à texte blanc : marque lisible (chatbot, hero, thème sombre) */
.vvi-chatbot__header .vvi-brand,
.vvi-chatbot__bubble--user .vvi-brand,
.vvi-chatbot--dark .vvi-brand,
.hero-bg .vvi-brand,
.text-white .vvi-brand {
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  color: #fff;
}

.logo-text { font-weight: 700; letter-spacing: -0.05em; }

.hero-bg {
  background:
    linear-gradient(rgba(30, 58, 138, 0.85), rgba(30, 58, 138, 0.85)),
    url('../assets/hero-bg.jpg') center/cover no-repeat;
}

.hero-logo-animation {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-logo-card {
  background: #fff;
  border-radius: 1rem;
  padding: 0.625rem 1rem;
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.35);
}

.hero-logo-card img {
  width: auto;
  height: auto;
  max-width: 10rem;
  max-height: 15rem;
}

@media (min-width: 768px) {
  .hero-logo-card img {
    max-width: 12rem;
    max-height: 18rem;
  }
}

.site-header {
  overflow: visible;
}

.site-header > div > .flex.items-center.justify-between {
  height: auto;
  min-height: 6.25rem;
  padding-block: 0.4rem;
}

@media (min-width: 768px) {
  .site-header > div > .flex.items-center.justify-between {
    min-height: 7.75rem;
  }
}

.site-header__logo {
  display: flex;
  align-items: center;
  line-height: 0;
}

.site-logo-img--header {
  height: 6.25rem;
  width: auto;
  max-width: min(20rem, 62vw);
  object-fit: contain;
  display: block;
}

@media (min-width: 768px) {
  .site-logo-img--header {
    height: 7.5rem;
    max-width: 24rem;
  }
}

.site-footer__logo {
  display: inline-flex;
  align-items: center;
  background: #fff;
  border-radius: 0.875rem;
  padding: 0.625rem 0.875rem;
  margin-bottom: 1.5rem;
  line-height: 0;
  max-width: 100%;
}

.site-logo-img--footer {
  height: 3.25rem;
  width: auto;
  max-width: min(16rem, 100%);
  object-fit: contain;
  display: block;
}

@media (min-width: 768px) {
  .site-logo-img--footer {
    height: 3.75rem;
    max-width: 18rem;
  }
}

.nav-link,
.mobile-nav-link {
  transition: color 0.2s ease, background 0.2s ease;
}

.reassurance-bar li {
  white-space: nowrap;
}

.recognition-list a {
  transition: border-color 0.2s ease, background 0.2s ease;
}

.recognition-list a:hover {
  border-color: #2dd4bf;
  background: #f0fdfa;
}

.case-card {
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.case-card:hover {
  border-color: #99f6e4;
  box-shadow: 0 10px 25px -12px rgb(0 0 0 / 0.12);
}

.nav-link:hover {
  color: #0d9488;
}

.nav-link.active,
.mobile-nav-link.active {
  color: #0d9488;
  font-weight: 600;
}

.mobile-nav-link.active {
  background: #f0fdfa;
}

.card-hover {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.card-hover:hover {
  transform: translateY(-12px);
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}

.step-number {
  background: linear-gradient(135deg, #1e3a8a, #14b8a6);
}

.legal-prose h2 {
  margin-top: 0.5rem;
}

.legal-prose section + section {
  padding-top: 0.25rem;
  border-top: 1px solid #e4e4e7;
}

#mobile-menu { animation: fadeIn 0.2s ease; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ——— Assistant conversationnel ——— */
.vvi-chatbot__panel {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e4e4e7;
  border-radius: 1.5rem;
  box-shadow: 0 4px 24px rgb(0 0 0 / 0.06);
  overflow: hidden;
  min-height: 32rem;
  max-height: min(42rem, 78vh);
}

.vvi-chatbot--compact {
  min-height: 26rem;
  max-height: min(36rem, 70vh);
}

.vvi-chatbot__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, #1e3a8a, #0f766e);
  color: #fff;
}

.vvi-chatbot__avatar {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgb(255 255 255 / 0.45);
  background: rgb(255 255 255 / 0.15);
  flex-shrink: 0;
}

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

.vvi-chatbot__avatar-img--bubble {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 1px solid #e4e4e7;
  flex-shrink: 0;
  align-self: flex-end;
}

.vvi-chatbot__header-text { flex: 1; min-width: 0; }

.vvi-chatbot__title {
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.3;
}

.vvi-chatbot__status {
  font-size: 0.75rem;
  opacity: 0.85;
  margin-top: 0.125rem;
}

.vvi-chatbot__progress-wrap {
  width: 100%;
  order: 3;
}

.vvi-chatbot__progress-bar {
  height: 4px;
  background: rgb(255 255 255 / 0.25);
  border-radius: 999px;
  overflow: hidden;
}

.vvi-chatbot__progress-fill {
  height: 100%;
  width: 0%;
  background: #5eead4;
  border-radius: 999px;
  transition: width 0.4s ease;
}

.vvi-chatbot__messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: #fafafa;
}

.vvi-chatbot__row {
  display: flex;
  animation: chatIn 0.35s ease;
}

@keyframes chatIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.vvi-chatbot__row--bot {
  justify-content: flex-start;
  align-items: flex-end;
  gap: 0.5rem;
}
.vvi-chatbot__row--user { justify-content: flex-end; }

.vvi-chatbot__bubble {
  max-width: 88%;
  padding: 0.75rem 1rem;
  border-radius: 1.125rem;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.vvi-chatbot__bubble--bot {
  background: #fff;
  border: 1px solid #e4e4e7;
  color: #3f3f46;
  border-bottom-left-radius: 0.25rem;
}

.vvi-chatbot__bubble--user {
  background: linear-gradient(135deg, #1e3a8a, #0d9488);
  color: #fff;
  border-bottom-right-radius: 0.25rem;
}

.vvi-chatbot__bubble--typing {
  display: flex;
  gap: 5px;
  padding: 0.875rem 1.125rem;
}

.vvi-chatbot__bubble--typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #a1a1aa;
  animation: chatDot 1.2s infinite ease-in-out;
}

.vvi-chatbot__bubble--typing span:nth-child(2) { animation-delay: 0.15s; }
.vvi-chatbot__bubble--typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes chatDot {
  0%, 80%, 100% { transform: scale(0.7); opacity: 0.5; }
  40% { transform: scale(1); opacity: 1; }
}

.vvi-chatbot__composer {
  padding: 1rem 1.25rem;
  border-top: 1px solid #e4e4e7;
  background: #fff;
}

.vvi-chatbot__form-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.vvi-chatbot__skip-below {
  align-self: flex-start;
  margin-top: 0.25rem;
}

.vvi-chatbot__form {
  display: flex;
  gap: 0.5rem;
  align-items: flex-end;
}

.vvi-chatbot__input {
  flex: 1;
  border: 1px solid #d4d4d8;
  border-radius: 1rem;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  outline: none;
  transition: border-color 0.2s;
  font-family: inherit;
}

.vvi-chatbot__input:focus { border-color: #14b8a6; }
.vvi-chatbot__input--error { border-color: #f87171; }
.vvi-chatbot__input--area { resize: none; min-height: 4.5rem; }

.vvi-chatbot__address-wrap { position: relative; }

.vvi-chatbot__address-field {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.vvi-chatbot__suggestions {
  list-style: none;
  margin: 0;
  padding: 0.25rem 0;
  border: 1px solid #e4e4e7;
  border-radius: 0.875rem;
  background: #fff;
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.08);
  max-height: 11rem;
  overflow-y: auto;
}

.vvi-chatbot__suggestion {
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  line-height: 1.35;
  color: #3f3f46;
  cursor: pointer;
  transition: background 0.15s ease;
}

.vvi-chatbot__suggestion:hover,
.vvi-chatbot__suggestion--active {
  background: #f0fdfa;
  color: #0f766e;
}

.vvi-chatbot__suggestion + .vvi-chatbot__suggestion {
  border-top: 1px solid #f4f4f5;
}

.vvi-chatbot--dark .vvi-chatbot__suggestions {
  background: #27272a;
  border-color: rgb(255 255 255 / 0.2);
}

.vvi-chatbot--dark .vvi-chatbot__suggestion {
  color: #f4f4f5;
}

.vvi-chatbot--dark .vvi-chatbot__suggestion:hover,
.vvi-chatbot--dark .vvi-chatbot__suggestion--active {
  background: rgb(255 255 255 / 0.12);
  color: #99f6e4;
}

.vvi-chatbot__send {
  width: 2.75rem;
  height: 2.75rem;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e3a8a, #14b8a6);
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s, opacity 0.15s;
}

.vvi-chatbot__send:hover { transform: scale(1.05); }
.vvi-chatbot__send--consent {
  width: auto;
  height: auto;
  border-radius: 1rem;
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  margin-top: 0.75rem;
}

.vvi-chatbot__send--shake {
  animation: shake 0.4s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.vvi-chatbot__choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.vvi-chatbot__choice {
  border: 1px solid #d4d4d8;
  background: #fff;
  color: #3f3f46;
  padding: 0.5rem 0.875rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.vvi-chatbot__choice:hover {
  border-color: #14b8a6;
  background: #f0fdfa;
  color: #0f766e;
}

.vvi-chatbot__choice--skip {
  border-style: dashed;
  color: #71717a;
}

.vvi-chatbot__consent-label {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.8125rem;
  color: #52525b;
  cursor: pointer;
  line-height: 1.45;
}

.vvi-chatbot__consent-check {
  margin-top: 0.2rem;
  accent-color: #14b8a6;
}

.vvi-chatbot__submit {
  width: 100%;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 1rem;
  background: linear-gradient(135deg, #1e3a8a, #14b8a6);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
}

.vvi-chatbot__submit:hover:not(:disabled) { transform: scale(1.01); }
.vvi-chatbot__submit:disabled { opacity: 0.7; cursor: wait; }

.vvi-chatbot__success {
  text-align: center;
  color: #0f766e;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.5rem 0;
}

.vvi-chatbot__success i { margin-right: 0.375rem; }

/* Thème sombre (formulaire pro réseau) */
.vvi-chatbot--dark .vvi-chatbot__panel {
  border-color: rgb(255 255 255 / 0.15);
  background: rgb(255 255 255 / 0.06);
}

.vvi-chatbot--dark .vvi-chatbot__messages {
  background: rgb(0 0 0 / 0.15);
}

.vvi-chatbot--dark .vvi-chatbot__bubble--bot {
  background: rgb(255 255 255 / 0.12);
  border-color: rgb(255 255 255 / 0.2);
  color: #f4f4f5;
}

.vvi-chatbot--dark .vvi-chatbot__composer {
  background: rgb(255 255 255 / 0.08);
  border-color: rgb(255 255 255 / 0.15);
}

.vvi-chatbot--dark .vvi-chatbot__input {
  background: rgb(255 255 255 / 0.1);
  border-color: rgb(255 255 255 / 0.3);
  color: #fff;
}

.vvi-chatbot--dark .vvi-chatbot__input::placeholder { color: rgb(255 255 255 / 0.45); }

.vvi-chatbot--dark .vvi-chatbot__choice {
  background: rgb(255 255 255 / 0.1);
  border-color: rgb(255 255 255 / 0.3);
  color: #fff;
}

.vvi-chatbot--dark .vvi-chatbot__choice:hover {
  background: rgb(255 255 255 / 0.2);
  border-color: #5eead4;
}

.vvi-chatbot--dark .vvi-chatbot__consent-label { color: rgb(255 255 255 / 0.85); }

.vvi-chatbot--dark .vvi-chatbot__submit {
  background: #fff;
  color: #1e3a8a;
}

/* Language switcher — compact floating pill, teal accent (≠ nav / ≠ CTA bleu) */
.lang-switch-float {
  position: fixed;
  right: max(0.875rem, env(safe-area-inset-right, 0px));
  bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  z-index: 55;
}

.lang-switch-group {
  display: inline-flex;
  align-items: stretch;
  border-radius: 9999px;
  overflow: hidden;
  border: 2px solid #14b8a6;
  background: #fff;
  box-shadow:
    0 4px 18px rgba(13, 148, 136, 0.42),
    0 0 0 3px rgba(20, 184, 166, 0.14);
}

.lang-switch-group__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.4375rem 0.625rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
}

.lang-switch-group__item--current {
  background: #f0fdfa;
  color: #0f766e;
  min-width: 2.125rem;
}

.lang-switch-group__item--link {
  background: linear-gradient(180deg, #2dd4bf 0%, #0d9488 55%, #0f766e 100%);
  color: #fff;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.lang-switch-group__item--link:hover {
  background: linear-gradient(180deg, #5eead4 0%, #14b8a6 55%, #0d9488 100%);
  color: #fff;
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    0 3px 12px rgba(13, 148, 136, 0.35);
}

.lang-switch-group__item--link:focus-visible {
  outline: 2px solid #1e3a8a;
  outline-offset: 2px;
}

.lang-switch-group__item--link i {
  font-size: 0.6875rem;
  opacity: 0.95;
}

@media (min-width: 768px) {
  .lang-switch-group__item {
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
  }

  .lang-switch-group__item--link i {
    font-size: 0.75rem;
  }

  .lang-switch-float {
    right: max(1.25rem, env(safe-area-inset-right, 0px));
    bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));
  }
}

/* Parcours commercial — FAQ / contact */
.parcours-box {
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  color: #3f3f46;
  line-height: 1.55;
}

.parcours-box strong {
  color: #0f766e;
}

.parcours-box a {
  color: #0d9488;
  text-decoration: underline;
}

/* Repères média équipe (photo / vidéo à remplacer) */
.team-spotlight {
  display: grid;
  gap: 1.5rem;
  margin: 2rem auto 0;
  max-width: 56rem;
  padding: 0 1.5rem;
}

@media (min-width: 768px) {
  .team-spotlight {
    grid-template-columns: minmax(0, 14rem) minmax(0, 1fr);
    align-items: start;
    gap: 2rem;
  }
}

.team-spotlight__media {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.media-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 2px dashed #a1a1aa;
  border-radius: 1rem;
  background: linear-gradient(145deg, #fafafa 0%, #f4f4f5 100%);
  color: #71717a;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
}

.media-placeholder i {
  font-size: 1.75rem;
  color: #0d9488;
  opacity: 0.85;
}

.media-placeholder--photo {
  aspect-ratio: 1;
  width: 100%;
  max-width: 14rem;
}

.media-placeholder--video {
  aspect-ratio: 16 / 9;
  width: 100%;
  max-width: 14rem;
}

.team-spotlight__name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e3a8a;
  margin-bottom: 0.25rem;
}

.team-spotlight__role {
  font-size: 0.875rem;
  color: #0f766e;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.team-spotlight__note {
  font-size: 0.75rem;
  color: #a1a1aa;
  font-style: italic;
  margin-top: 0.75rem;
}

.methode-step-example {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  color: #0f766e;
  font-style: italic;
}

.pro-benefits-grid {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .pro-benefits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.pro-benefit-card {
  background: #fff;
  border: 1px solid #e4e4e7;
  border-radius: 1rem;
  padding: 1.25rem;
}

.pro-benefit-card h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #1e3a8a;
  margin-bottom: 0.5rem;
}

.pro-benefit-card p {
  font-size: 0.875rem;
  color: #52525b;
  line-height: 1.5;
}

.pro-case-placeholder {
  background: #f4f4f5;
  border: 1px dashed #d4d4d8;
  border-radius: 1rem;
  padding: 1.25rem;
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: #71717a;
}