/* Assistant Cinécrin : bulle flottante et panneau (aperçu v2, hors ligne). Reprend les variables de site.css. */
.colonne-contact { display: grid; gap: 28px; align-content: start; min-width: 0; }
.chat-tete { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--trait); }
.chat-tete strong { font-family: var(--serif); font-weight: 400; font-size: 1.35rem; letter-spacing: .01em; }
.chat-tete small { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--givre-faible); }
.chat-fil { padding: 20px; display: flex; flex-direction: column; gap: 14px; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: var(--trait-or) transparent; }
.msg { max-width: 88%; font-size: .95rem; line-height: 1.55; padding: 12px 16px; border: 1px solid var(--trait); color: var(--givre); overflow-wrap: anywhere; }
.msg.bot { align-self: flex-start; background: rgba(238,240,242,.04); }
.msg.moi { align-self: flex-end; border-color: var(--trait-or); background: rgba(200,165,95,.10); }
.msg.moi .vignettes { display: flex; gap: 6px; margin-top: 8px; }
.msg.moi .vignettes img { width: 52px; height: 52px; object-fit: cover; border: 1px solid var(--trait); }
.msg-note { align-self: center; font-size: .72rem; letter-spacing: .08em; color: var(--givre-faible); text-align: center; }
.carte-formule { align-self: flex-start; width: min(100%, 420px); border: 1px solid var(--or); padding: 18px 20px; display: grid; gap: 6px; background: rgba(200,165,95,.07); }
.carte-formule .cf-nom { font-family: var(--serif); font-size: 1.7rem; line-height: 1.1; }
.carte-formule .cf-prix { color: var(--or-clair); font-size: 1.05rem; }
.carte-formule .cf-delai, .carte-formule .cf-raison { font-size: .88rem; color: var(--givre-doux); line-height: 1.5; margin: 0; }
.carte-formule .bouton { margin-top: 10px; justify-self: start; padding: 14px 22px; }
.chat-saisie { border-top: 1px solid var(--trait); padding: 14px 16px 16px; display: grid; gap: 10px; }
.chat-rangee { display: flex; gap: 10px; align-items: stretch; }
.chat-rangee textarea { flex: 1; min-width: 0; min-height: 48px; max-height: 120px; resize: none; font: inherit; font-size: 16px; color: var(--givre); background: transparent; border: 1px solid var(--trait); padding: 12px 14px; }
.chat-rangee textarea { overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--trait-or) transparent; line-height: 1.4; }
.chat-rangee textarea:focus { outline: none; border-color: var(--or); }
.chat-envoi, .chat-photo { flex: none; min-width: 48px; border: 1px solid var(--trait); background: transparent; color: var(--givre); cursor: pointer; font: inherit; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; padding: 0 16px; }
.chat-envoi { background: var(--or); color: var(--abysse); border-color: var(--or); }
.chat-envoi:disabled, .chat-photo:disabled, .chat-rangee textarea:disabled { opacity: .45; cursor: not-allowed; }
.chat-pied { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .72rem; color: var(--givre-faible); line-height: 1.4; }
.chat-photos { display: flex; gap: 6px; flex-wrap: wrap; }
.chat-photos .vig { position: relative; width: 44px; height: 44px; }
.chat-photos .vig img { width: 100%; height: 100%; object-fit: cover; border: 1px solid var(--trait-or); }
.chat-photos .vig button { position: absolute; top: -6px; right: -6px; width: 18px; height: 18px; border-radius: 50%; border: 0; background: var(--givre); color: var(--abysse); font-size: 11px; line-height: 18px; cursor: pointer; padding: 0; }
.chat-ou { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--givre-faible); text-align: center; margin: 0; }
.chat-rangee textarea { width: 0; }
.chat-tete > div { display: grid; gap: 4px; min-width: 0; }
.chat-tete strong { font-size: 1.25rem; }
.cw { position: fixed; right: 24px; bottom: 24px; z-index: 120; display: flex; flex-direction: column; align-items: flex-end; gap: 14px; pointer-events: none; }
.cw > * { pointer-events: auto; }
.cw-bulle { display: inline-flex; align-items: center; gap: 12px; height: 56px; padding: 0 22px 0 18px; border: 1px solid var(--or); background: var(--abysse); color: var(--givre); font: inherit; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; cursor: pointer; box-shadow: 0 10px 34px rgba(0,0,0,.55); transition: background .4s var(--ease), color .4s var(--ease); }
.cw-bulle svg { width: 24px; height: 24px; color: var(--or-clair); flex: none; transition: color .4s var(--ease); }
.cw-bulle:hover, .cw-bulle:focus-visible { background: var(--or); color: var(--abysse); }
.cw-bulle:hover svg, .cw-bulle:focus-visible svg { color: var(--abysse); }
.cw.ouvert .cw-bulle { display: none; }
.cw-panneau { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; width: min(400px, calc(100vw - 32px)); height: min(620px, calc(100vh - 48px)); border: 1px solid var(--trait-or); background: var(--abysse); box-shadow: 0 18px 60px rgba(0,0,0,.7); }
.cw-panneau[hidden] { display: none; }
.cw-fermer { flex: none; width: 40px; height: 40px; border: 1px solid var(--trait); background: transparent; color: var(--givre); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.cw-fermer:hover { border-color: var(--or); }
.cw-panneau .chat-pied { flex-direction: column; gap: 4px; }
@media (max-width: 720px) {
  .cw { right: 16px; bottom: 16px; }
  .cw-bulle { width: 56px; padding: 0; justify-content: center; border-radius: 50%; }
  .cw-texte { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .cw-panneau { position: fixed; inset: 0; width: auto; height: auto; border: 0; }
  .chat-fil { padding: 16px; }
  .msg { max-width: 94%; font-size: .9rem; }
  .chat-tete { padding: 14px 16px; }
  .chat-rangee { flex-wrap: wrap; }
  .chat-rangee textarea { order: -1; flex: 1 1 100%; width: 100%; }
  .chat-photo, .chat-envoi { min-height: 46px; }
  .chat-envoi { flex: 1; }
}
@media (prefers-reduced-motion: no-preference) {
  .cw-panneau:not([hidden]) { animation: cw-entree .35s var(--ease); }
  @keyframes cw-entree { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
}
.carte-grille { padding: 6px 16px; gap: 0; }
.carte-grille ul { list-style: none; margin: 0; padding: 0; }
.carte-grille li { display: grid; grid-template-columns: 1fr auto; gap: 2px 14px; padding: 10px 0; border-bottom: 1px solid var(--trait); }
.carte-grille li:last-child { border-bottom: 0; }
.carte-grille .cg-nom { font-family: var(--serif); font-size: 1.15rem; }
.carte-grille .cg-prix { color: var(--or-clair); font-size: .9rem; text-align: right; }
.carte-grille .cg-delai { grid-column: 1 / -1; font-size: .78rem; color: var(--givre-faible); }
