/* « Une question ? » : l'assistant du site (js/assistant.js, inc/assistant.php, 23/11/2026), en forme de messagerie (« que ça ressemble
   un peu à un tchat ») : en-tête avec l'avatar de l'Indian's, bulles arrondies (ses réponses à gauche, les choix du visiteur en doré à
   droite), « … » avant chaque réponse, réponses rapides en pastilles.
   Bulle en bas à droite (le bandeau cookies et l'encart « Cette semaine » sont à gauche, et passent devant elle sur téléphone) ;
   jamais au-dessus du menu ni du volet de réservation. */

/* ---------- la bulle ---------- */
.asst__fab { position: fixed; right: max(16px, calc(var(--gutter) / 2)); bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 115;
  display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 22px 0 18px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--gold); color: var(--dark); font: 600 13px/1 var(--f-text); letter-spacing: .1em; text-transform: uppercase;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .45), 0 0 0 1px rgba(10, 9, 8, .18); transition: transform .4s var(--ease), background .3s, opacity .3s; }
.asst__fab svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
/* le point vert « en ligne » des messageries */
.asst__fab::after { content: ""; position: absolute; top: 6px; right: 8px; width: 11px; height: 11px; border-radius: 50%; background: #3DD68C; box-shadow: 0 0 0 2.5px var(--gold); }
.asst__fab:hover { background: var(--gold-2); transform: translateY(-2px); }
.asst__fab:hover::after { box-shadow: 0 0 0 2.5px var(--gold-2); }
.asst__fab:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.menu-open .asst__fab, .menu-open .asst { display: none; }

/* ---------- la fenêtre ---------- */
.asst { position: fixed; right: max(16px, calc(var(--gutter) / 2)); bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 128;
  display: flex; flex-direction: column; width: min(390px, calc(100vw - 32px)); max-height: min(660px, calc(100dvh - 120px)); overflow: hidden;
  border-radius: 22px; background: #110F0D; color: var(--ink); box-shadow: 0 0 0 1px var(--line), 0 30px 80px rgba(0, 0, 0, .6);
  opacity: 0; transform: translateY(16px) scale(.98); transform-origin: 100% 100%; transition: opacity .3s var(--ease), transform .45s var(--ease); }
.asst.is-in { opacity: 1; transform: none; }
.asst[hidden] { display: none; }
/* en-tête : avatar, nom, « répond tout de suite » */
.asst__top { display: flex; align-items: center; gap: 12px; padding: 14px 8px 14px 16px; background: var(--bg-raise-2); box-shadow: 0 1px 0 var(--line); }
.asst__id { flex: 1; min-width: 0; }
.asst__t { margin: 0; font: 600 17px/1.1 var(--f-text); color: var(--ink); }
.asst__st { display: flex; align-items: center; gap: 6px; margin: 4px 0 0; font: 400 12.5px/1.3 var(--f-text); color: var(--ink-3); }
.asst__on { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #3DD68C; box-shadow: 0 0 0 3px rgba(61, 214, 140, .18); }
.asst__x { display: grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--ink-2); cursor: pointer; transition: background .25s, color .25s; }
.asst__x svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.asst__x:hover { background: rgba(244, 239, 230, .08); color: var(--ink); }
/* l'avatar : la tête dorée du logo sur fond noir */
.asst__av { flex: none; width: 30px; height: 30px; border-radius: 50%; background: #0A0908 url(../assets/logo-tete-120.webp) 52% 50% / 76% auto no-repeat; box-shadow: 0 0 0 1px var(--line-gold); }
.asst__av--l { width: 44px; height: 44px; }

/* ---------- la conversation ---------- */
.asst__log { position: relative; flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 18px 14px 6px; scrollbar-width: thin;
  background: radial-gradient(120% 60% at 50% 0%, rgba(253, 200, 82, .05), transparent 70%); }
.asst__fil { display: flex; flex-direction: column; gap: 8px; }
.asst__row { display: flex; align-items: flex-end; gap: 8px; }
.asst__row--moi { justify-content: flex-end; margin: 4px 0; }
/* plusieurs réponses à la suite : l'avatar seulement sous la dernière */
.asst__row--bot:has(+ .asst__row--bot) .asst__av { visibility: hidden; }
.asst__m { max-width: 84%; padding: 10px 14px; border-radius: 18px; font: 400 15px/1.45 var(--f-text); overflow-wrap: anywhere; }
.asst__m p { margin: 0; }
.asst__m p + p, .asst__m p + ul, .asst__m ul + p { margin-top: 8px; }
.asst__m--bot { background: #26221C; color: var(--ink); border-bottom-left-radius: 6px; }
.asst__m--moi { max-width: 78%; background: var(--gold); color: var(--dark); font-weight: 500; border-bottom-right-radius: 6px; }
.asst__m--bot a { color: var(--gold-2); text-decoration: underline; text-underline-offset: 3px; }
/* « … » : l'Indian's écrit */
.asst__dots { display: inline-flex; gap: 5px; padding: 4px 2px; }
.asst__dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); animation: asst-dot 1.1s infinite ease-in-out; }
.asst__dots i:nth-child(2) { animation-delay: .15s; }
.asst__dots i:nth-child(3) { animation-delay: .3s; }
@keyframes asst-dot { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }

/* contenus des réponses : listes de soirées, horaires, plats, fiche d'une soirée, carte */
.asst__ev, .asst__menu { list-style: none; margin: 0; padding: 0; }
.asst__ev li + li, .asst__menu li + li { border-top: 1px dashed var(--line-2); }
.asst__ev a { display: flex; flex-direction: column; gap: 3px; padding: 9px 0; color: var(--ink); text-decoration: none; }
.asst__ev a span { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.asst__ev a b { font-weight: 500; text-decoration: underline; text-decoration-color: var(--line-gold); text-underline-offset: 3px; }
.asst__ev a:hover b { color: var(--gold); }
.asst__ev i { display: block; font-style: normal; font-size: 13px; color: var(--gold); }
.asst__ev--l li { display: flex; flex-direction: column; gap: 3px; padding: 9px 0; }
.asst__ev--l li > span { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.asst__ev--l li > b { font-weight: 500; }
.asst__jours { list-style: none; margin: 0; padding: 0; font-size: 14px; line-height: 1.4; }
.asst__jours li { padding: 7px 0; }
.asst__jours li + li { border-top: 1px dashed var(--line-2); }
.asst__jours span { display: block; font: 600 11px/1.2 var(--f-text); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.asst__soiree { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.asst__aff { flex: none; width: 64px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 8px; box-shadow: 0 0 0 1px var(--line-2); }
.asst__kv { margin: 0; display: flex; flex-direction: column; }
.asst__kv div { padding: 7px 0; border-top: 1px dashed var(--line-2); }
.asst__kv dt { font: 600 11px/1.2 var(--f-text); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.asst__kv dd { margin: 3px 0 0; font-size: 14px; line-height: 1.4; }
.asst__rub { margin-top: 12px !important; font: 600 11px/1.2 var(--f-text); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.asst__carte { list-style: none; margin: 4px 0 0; padding: 0; }
.asst__carte li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 6px 0; font-size: 14px; line-height: 1.35; }
.asst__carte li + li { border-top: 1px dashed var(--line); }
.asst__carte small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--ink-3); }
.asst__carte small.asst__tag { color: var(--gold); }
.asst__carte b { flex: none; max-width: 45%; font-weight: 600; text-align: right; white-space: normal; }
.asst__n { font-size: 13px; color: var(--ink-3); }
.asst__menu li { padding: 8px 0; font-size: 14px; line-height: 1.4; }
.asst__menu span { display: block; margin-bottom: 2px; font: 600 11px/1.2 var(--f-text); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }

/* ---------- les réponses rapides : pastilles à droite, comme les réponses toutes faites d'une messagerie ---------- */
.asst__choix { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; padding: 12px 0 14px 38px; }
.asst__c { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 16px; border: 0; border-radius: 999px; background: none; color: var(--gold-2); cursor: pointer;
  font: 500 14px/1.25 var(--f-text); text-align: left; text-decoration: none; box-shadow: inset 0 0 0 1.5px var(--line-gold); transition: box-shadow .25s, background .25s, color .25s, transform .2s; }
.asst__c:hover { background: var(--gold-soft); box-shadow: inset 0 0 0 1.5px var(--gold); color: var(--gold); }
.asst__c:active { transform: scale(.97); }
.asst__c:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.asst__c.is-live { background: var(--gold-soft); }
/* les questions de la FAQ : une par ligne */
.asst__c.is-q { width: 100%; border-radius: 16px; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.asst__c.is-q:hover { color: var(--ink); background: rgba(244, 239, 230, .05); box-shadow: inset 0 0 0 1px var(--gold); }
/* l'action (réserver, postuler…) : la pastille pleine */
.asst__c.is-act { background: var(--gold); color: var(--dark); box-shadow: none; font-weight: 600; }
.asst__c.is-act:hover { background: var(--gold-2); color: var(--dark); }
.asst__c.is-nav { min-height: 44px; padding: 10px 6px; border-radius: 8px; box-shadow: none; color: var(--ink-2); font-size: 13px; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line-2); }
.asst__c.is-nav:hover { color: var(--ink); background: none; box-shadow: none; }

/* le pied : le téléphone, à la place du champ de saisie (il n'y en a pas : on choisit) */
.asst__pied { margin: 0; padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); background: var(--bg-raise-2); box-shadow: 0 -1px 0 var(--line); font: 400 13px/1.4 var(--f-text); color: var(--ink-3); text-align: center; }
.asst__pied a { color: var(--ink); white-space: nowrap; text-decoration: underline; text-underline-offset: 3px; }

@media (prefers-reduced-motion: no-preference) {
  .asst__row { animation: asst-in .38s var(--ease) both; }
  .asst__row--moi { animation-name: asst-moi; }
  @keyframes asst-in { from { opacity: 0; transform: translateY(8px); } }
  @keyframes asst-moi { from { opacity: 0; transform: translateX(10px) scale(.96); } }
}
@media (prefers-reduced-motion: reduce) { .asst, .asst__fab, .asst__c { transition: none; } .asst__dots i { animation: none; } }
/* téléphone : une bulle ronde (le texte reste lu par les lecteurs d'écran) ; la fenêtre monte du bas de l'écran et cache la bulle */
@media (max-width: 600px) {
  .asst__fab { right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); width: 58px; height: 58px; min-height: 0; padding: 0; justify-content: center; }
  .asst__fab span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .asst__fab svg { width: 26px; height: 26px; }
  .asst__fab::after { top: 3px; right: 3px; }
  .asst-on .asst__fab { opacity: 0; pointer-events: none; }
  .asst { left: 0; right: 0; bottom: 0; width: auto; max-height: calc(100dvh - 56px); border-radius: 22px 22px 0 0; transform-origin: 50% 100%; }
  .asst__choix { padding-left: 24px; }
}
/* écrans tactiles : pas d'ombre floue sur la bulle ni sur la fenêtre. Sur iPhone (Safari 26), le dégradé sombre que Safari pose en bas
   de l'écran sous sa barre d'adresse découpait l'ombre de la bulle en carré à bords nets (capture de Gaëtan, 23/11/2026) ; à la place,
   un contour net, sans flou */
@media (max-width: 600px), (hover: none) {
  .asst__fab { box-shadow: 0 0 0 2px rgba(10, 9, 8, .3); }
  .asst__fab:hover { transform: none; }
  .asst { box-shadow: 0 0 0 1px var(--line-2); }
}
@media print { .asst__fab, .asst { display: none !important; } }
