/**
 * Landing — composeur hero + handoff IA/humain.
 * Pas de sections dupliquées (modèles, process, avis).
 */

:root {
  --okdak-ai: #60a5fa;
  --okdak-human: #f0a860;
  --okdak-fx-glass: rgba(255, 255, 255, 0.04);
  --okdak-fx-line: rgba(255, 255, 255, 0.08);
}

body.light-theme {
  --okdak-fx-glass: rgba(9, 9, 11, 0.04);
  --okdak-fx-line: rgba(9, 9, 11, 0.1);
}

.index-ia-search__submit:disabled {
  background: #3f3f46;
  color: #a1a1aa;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.index-ia-search__submit:disabled:hover {
  transform: none;
  box-shadow: none;
}

.index-ia-search__box:focus-within {
  border-color: color-mix(in srgb, var(--okdak-ai) 55%, transparent);
  box-shadow:
    0 28px 72px rgba(0, 0, 0, 0.38),
    0 0 40px color-mix(in srgb, var(--okdak-ai) 18%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.index-ia-search__meta i,
.index-ia-search__meta svg {
  color: var(--okdak-ai);
}

.index-hero-atmosphere__blob--ai {
  width: min(420px, 70vw);
  height: min(420px, 70vw);
  left: -8%;
  top: 8%;
  background: color-mix(in srgb, var(--okdak-ai) 28%, transparent);
  opacity: 0.35;
  animation-delay: -11s;
}

body.light-theme .index-hero-atmosphere__blob--ai {
  opacity: 0.22;
}

.okdak-fx-hero-proof {
  width: 100%;
  max-width: 40rem;
  margin: 0.5rem auto 0;
}

.okdak-fx-handoff {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 12px;
  background: var(--okdak-fx-glass);
  border: 1px solid var(--okdak-fx-line);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}

.okdak-fx-handoff__col {
  min-height: 88px;
  padding: 8px;
  border: 1px solid var(--okdak-fx-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.okdak-fx-handoff__label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--apple-text-tertiary, #86868b);
  margin-bottom: 8px;
}

.okdak-fx-handoff__col--ai .okdak-fx-handoff__label { color: var(--okdak-ai); }
.okdak-fx-handoff__col--you .okdak-fx-handoff__label { color: var(--okdak-human); }
.okdak-fx-handoff__col--live .okdak-fx-handoff__label { color: #50be82; }

.okdak-fx-ghost {
  height: 28px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 8px;
}

.okdak-fx-ghost--short { height: 20px; width: 72%; }

.okdak-fx-card-move {
  position: absolute;
  top: 40px;
  left: 12px;
  width: calc(33.33% - 12px);
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(18, 18, 20, 0.92);
  border: 1px solid var(--okdak-ai);
  font-size: 11px;
  font-weight: 650;
  color: #ececec;
  animation: okdak-fx-handoff-move 9s ease-in-out infinite;
  z-index: 2;
}

.okdak-fx-card-move small {
  display: block;
  font-weight: 500;
  opacity: 0.65;
  margin-top: 2px;
}

@keyframes okdak-fx-handoff-move {
  0% { opacity: 0; transform: translateX(0); border-color: var(--okdak-ai); }
  8% { opacity: 1; }
  28% { transform: translateX(0); }
  48%, 62% { transform: translateX(calc(100% + 8px)); border-color: var(--okdak-human); }
  78%, 90% { transform: translateX(calc(200% + 16px)); border-color: #50be82; }
  100% { opacity: 0; transform: translateX(calc(200% + 16px)); }
}

body.page-index .okdak-tech-loop {
  margin-top: 2.5rem;
}

body.page-index .index-social-proof {
  margin: 2.5rem 0 0;
  text-align: center;
}

body.page-start .index-ia-search {
  width: 100%;
  max-width: 36rem;
  margin: 1.1rem 0 0;
  text-align: left;
}

body.page-start .index-ia-search__box {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.05rem 1.1rem 0.9rem;
  border-radius: 1.35rem;
  border: 1px solid color-mix(in srgb, var(--okdak-ai) 22%, var(--okdak-fx-line));
  background: var(--okdak-fx-glass);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  backdrop-filter: blur(28px) saturate(160%);
}

body.page-start .index-ia-search__input {
  width: 100%;
  min-height: 3.4rem;
  resize: none;
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 1.02rem;
  outline: none;
  field-sizing: content;
}

body.page-start .index-ia-search__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.15rem;
  border-top: 1px solid var(--okdak-fx-line);
}

body.page-start .index-ia-search__meta {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--apple-text-tertiary, #86868b);
}

body.page-start .index-ia-search__submit {
  display: inline-flex;
  align-items: center;
  min-height: 2.4rem;
  padding: 0.45rem 0.95rem;
  border: none;
  border-radius: 999px;
  background: var(--okdak-ai);
  color: #0b1220;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
}

body.page-start .index-ia-search__suggestions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px;
  margin-top: 0.75rem;
}

body.page-start .index-ia-search__chip {
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--okdak-fx-line);
  border-radius: 999px;
  background: var(--okdak-fx-glass);
  color: inherit;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

body.page-start .index-ia-search__chip:hover,
body.page-start .index-ia-search__chip.is-active {
  border-color: color-mix(in srgb, var(--okdak-ai) 50%, transparent);
  color: var(--okdak-ai);
}

body.page-start .start-cta-row--after-composer {
  margin-top: 0.85rem;
}

@media (prefers-reduced-motion: reduce) {
  .okdak-fx-card-move,
  .index-hero-atmosphere__blob--ai {
    animation: none;
  }

  .okdak-fx-card-move {
    opacity: 1;
    position: relative;
    inset: auto;
    width: auto;
    margin-top: 8px;
  }
}
