/* CotonableIA : page /conseil et onglet « Mes conseils » du compte. */

.conseil { padding-bottom: 64px; }
.conseil-contexte a { font-weight: 600; }
.conseil-fil { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.bulle { max-width: 88%; }
.bulle-texte { border-radius: 20px; padding: 12px 18px; }
.bulle-texte p { margin: 0; }
.bulle-texte p + p { margin-top: 8px; }
.bulle-ia { align-self: flex-start; }
.bulle-ia .bulle-texte { background: var(--blanc); border: 1px solid var(--trait); border-top-left-radius: 6px; }
.bulle-cliente { align-self: flex-end; }
.bulle-cliente .bulle-texte { background: var(--vert); color: var(--creme); border-top-right-radius: 6px; white-space: pre-line; }
.bulle-qui { display: flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 600; color: var(--vert-doux); margin: 0 0 4px 6px; }
.bulle-qui .fleurette { width: 18px; margin: 0; }
.bulle.ecrit .bulle-texte p:last-child::after { content: "▍"; color: var(--sauge); margin-left: 2px; animation: clignote 1s steps(2) infinite; }
@keyframes clignote { 50% { opacity: 0; } }

/* Pendant que CotonableIA reflechit : le logo pousse comme une fleur, en boucle de 2,8 s.
   La tige se trace depuis le bas, les feuilles s'ouvrent depuis leur point d'attache
   (50, 64 dans le dessin), puis la capsule de coton se dessine ; la fleur se tient, s'efface,
   repousse. Toutes les etapes partagent la meme duree pour rester synchrones. */
.bulle.attend .bulle-texte { padding: 10px 16px; }
.pousse { display: block; width: 46px; height: auto; color: var(--sauge); overflow: visible; }
.pousse-tige, .pousse-coton { stroke-dasharray: 1; stroke-dashoffset: 1; animation: 2.8s ease-in-out infinite; }
.pousse-tige { animation-name: pousse-tige; }
.pousse-coton { animation-name: pousse-coton; }
.pousse-feuille { transform-origin: 50px 64px; transform: scale(0); animation: 2.8s cubic-bezier(.3, 1.4, .5, 1) infinite; }
.pousse-cote { animation-name: pousse-cote; }
.pousse-bouton { animation-name: pousse-bouton; }
@keyframes pousse-tige { 0% { stroke-dashoffset: 1; opacity: 1; } 22% { stroke-dashoffset: 0; } 86% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes pousse-cote { 0%, 16% { transform: scale(0); opacity: 1; } 38%, 86% { transform: scale(1); opacity: 1; } 100% { transform: scale(1); opacity: 0; } }
@keyframes pousse-bouton { 0%, 30% { transform: scale(0); opacity: 1; } 50%, 86% { transform: scale(1); opacity: 1; } 100% { transform: scale(1); opacity: 0; } }
@keyframes pousse-coton { 0%, 46% { stroke-dashoffset: 1; opacity: 1; } 76%, 86% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  /* Pas de croissance : le logo entier, qui respire doucement */
  .pousse-tige, .pousse-coton, .pousse-feuille { animation: none; stroke-dashoffset: 0; transform: none; }
  .pousse { animation: pousse-respire 1.6s ease-in-out infinite alternate; }
}
@keyframes pousse-respire { from { opacity: .45; } to { opacity: 1; } }
.conseil-articles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 12px; max-width: 620px; }

.conseil-saisie { background: var(--blanc); border: 1px solid var(--trait); border-radius: 24px; padding: 16px; }
.conseil-idees { margin-bottom: 12px; }
.puce { border: 1px solid var(--trait); border-radius: 999px; padding: 6px 14px; font-size: .9rem; background: var(--creme); cursor: pointer; text-align: left; }
.puce:hover { border-color: var(--vert-clair); background: var(--lin); }
.conseil-ligne { display: flex; gap: 10px; align-items: flex-end; }
.conseil-ligne textarea { flex: 1; min-width: 0; resize: vertical; min-height: 52px; border: 1.5px solid var(--trait); background: var(--creme); border-radius: 14px; padding: 12px 14px; }
.conseil-ligne textarea:focus { outline: none; border-color: var(--vert-doux); background: var(--blanc); }
.conseil-saisie[aria-busy="true"] .btn { opacity: .55; pointer-events: none; }
.conseil-attente { margin: 8px 0 0; }
.conseil-infos { margin-top: 20px; }
.conseil-infos p { margin: 0 0 8px; }

.conseils-liste { list-style: none; margin: 24px 0; padding: 0; border-top: 1px solid var(--trait); }
.conseils-liste li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--trait); }
.conseils-liste a { text-decoration: none; min-width: 0; }
.conseils-liste b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conseils-liste small { color: var(--vert-doux); }
.conseils-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }

@media (max-width: 600px) {
  .bulle { max-width: 100%; }
  .conseil-articles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .conseil-ligne { flex-direction: column; align-items: stretch; }
}
