/* RITA sur l'accueil du site (AMD RITA A-01 / A-02, maquette de Riad du 14/10/2026) : la boîte « Ask RITA about REVIEWIT »
   remplace la capture figée du héros. Jetons de la charte (styles.css) seulement ; aucune couleur propre. */
.rita-hero { display: flex; flex-direction: column; gap: 14px; }
/* La réponse fait grandir le panneau : les deux colonnes du héros s'alignent en haut, la gauche ne glisse pas. */
.hero-grid:has(> .rita-hero) { align-items: start; }
.rita-hero-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.rita-hero-kicker { display: inline-flex; align-items: center; gap: 9px; font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--ri-accent); }
.rita-hero-kicker svg { width: 13px; height: 13px; flex: none; }
.rita-hero-note { font-size: 12px; color: var(--ri-caption); }

.rita-hero-bar { display: flex; align-items: center; gap: 12px; background: var(--ri-paper); border: 1px solid var(--ri-line-2); border-radius: var(--ri-radius); padding: 7px 7px 7px 18px; transition: border-color .15s ease; }
.rita-hero-bar:focus-within { border-color: var(--ri-ink); }
.rita-hero-bar .lens { width: 17px; height: 17px; color: var(--ri-caption); flex: none; }
.rita-hero-bar input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 16px; color: var(--ri-text); padding: 10px 0; }
.rita-hero-bar input::placeholder { color: var(--ri-muted); opacity: 1; }
.rita-hero-go { flex: none; display: inline-flex; align-items: center; gap: 7px; border: 0; border-radius: var(--ri-radius-s); background: var(--ri-ink); color: #fff; font: inherit; font-size: 14px; font-weight: 600; padding: 10px 16px; cursor: pointer; }
.rita-hero-go:hover { background: #000; }
.rita-hero-go:disabled { opacity: .55; cursor: default; }

.rita-hero-panel { background: var(--ri-paper); border: 1px solid var(--ri-line); border-radius: var(--ri-radius); box-shadow: var(--ri-shadow-lg); padding: 20px 20px 18px; }
.rita-hero-panel [data-show] { display: none; }
.rita-hero-panel[data-state="idle"] [data-show~="idle"],
.rita-hero-panel[data-state="thinking"] [data-show~="thinking"],
.rita-hero-panel[data-state="answer"] [data-show~="answer"] { display: block; }
.rita-hero-panel[data-state="thinking"] .rita-hero-thinking { display: flex; }
.rita-hero-panel[data-state="answer"] .rita-hero-foot { display: flex; }

.rita-hero-label { font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--ri-caption); margin: 0 0 12px; }
.rita-hero-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rita-hero-chip { border: 1px solid var(--ri-line-2); background: var(--ri-paper); border-radius: 999px; padding: 7px 14px; font: inherit; font-size: 13.5px; line-height: 1.35; color: var(--ri-text-2); cursor: pointer; text-align: left; }
.rita-hero-chip:hover { border-color: var(--ri-ink); color: var(--ri-ink); }

.rita-hero-thinking { align-items: center; gap: 12px; font-size: 14px; color: var(--ri-muted); }
.rita-hero-dots { display: inline-flex; gap: 4px; }
.rita-hero-dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--ri-accent); opacity: .3; animation: rita-hero-dot 1.2s infinite ease-in-out; }
.rita-hero-dots span:nth-child(2) { animation-delay: .15s; }
.rita-hero-dots span:nth-child(3) { animation-delay: .3s; }
@keyframes rita-hero-dot { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }

.rita-hero-answer { max-height: 380px; overflow: auto; }
.rita-hero-prose p { margin: 0 0 10px; font-size: 15px; line-height: 1.62; color: var(--ri-text); }
.rita-hero-prose p:last-child { margin-bottom: 0; }
.rita-hero-prose ul { margin: 0 0 10px; padding-left: 20px; font-size: 15px; line-height: 1.62; color: var(--ri-text); }
.rita-hero-prose li { margin: 0 0 4px; }
.rita-hero-prose strong { font-weight: 600; color: var(--ri-ink); }
.rita-hero-prose sup { font-size: 10.5px; font-weight: 700; color: var(--ri-accent); margin-left: 2px; line-height: 0; cursor: pointer; }
.rita-hero-sources { margin-top: 14px; padding-top: 4px; border-top: 1px solid var(--ri-line); }
.rita-hero-sources:empty { display: none; }
.rita-hero-src { display: flex; gap: 12px; padding: 10px 0; text-decoration: none; border-bottom: 1px solid var(--ri-line); }
.rita-hero-src:last-child { border-bottom: 0; }
.rita-hero-src .n { font-size: 11px; font-weight: 700; color: var(--ri-accent); min-width: 34px; padding-top: 2px; }
.rita-hero-src .t { display: block; font-size: 14px; font-weight: 600; color: var(--ri-ink); }
.rita-hero-src .d { display: block; font-size: 12px; color: var(--ri-caption); margin-top: 1px; }
.rita-hero-src:hover .t, .rita-hero-src.is-lit .t { color: var(--ri-accent); }

.rita-hero-foot { justify-content: flex-end; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--ri-line); }
.rita-hero-new { border: 0; background: transparent; font: inherit; font-size: 13px; font-weight: 600; color: var(--ri-accent); cursor: pointer; padding: 0; }
.rita-hero-new:hover { color: var(--ri-accent-hover); }

.rita-hero-privacy { margin: 0; font-size: 12px; line-height: 1.5; color: var(--ri-caption); }
.rita-hero-privacy a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

@media (prefers-reduced-motion: reduce) { .rita-hero-dots span { animation: none; opacity: .7; } }
@media (max-width: 520px) { .rita-hero-go .k { display: none; } .rita-hero-bar { padding-left: 14px; } }
