/* En-tête : sous-menus Produit / Aide, « Se connecter », bouton secondaire ; bouton de contact (js/contact.js). */

.menu-deroulant { position: relative; }
.menu-titre { display: inline-flex; align-items: center; gap: .35rem; cursor: pointer; background: none; border: 0; font: inherit; color: inherit; }
.menu-liste {
  position: absolute; left: 0; top: calc(100% + .35rem); z-index: 40; min-width: 13rem;
  padding: .4rem; margin: 0; list-style: none; background: #fff; border: 1px solid #e5e7eb;
  border-radius: .75rem; box-shadow: 0 12px 28px rgba(17, 24, 39, .12);
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .15s, transform .15s, visibility .15s;
}
.menu-deroulant::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: .5rem; } /* pont pour la souris */
.menu-deroulant:hover .menu-liste,
.menu-deroulant:focus-within .menu-liste,
.menu-deroulant.ouvert .menu-liste { opacity: 1; visibility: visible; transform: none; }
.menu-liste a { display: block; padding: .5rem .75rem; border-radius: .5rem; color: #374151; white-space: nowrap; }
.menu-liste a:hover { background: #f3f4f6; color: #111827; }

.menu-mobile-titre { padding: .75rem .75rem .15rem; font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #9ca3af; }
.menu-mobile-separateur { height: 1px; margin: .5rem .75rem; background: #e5e7eb; }

.lien-connexion { display: none; padding: .375rem .5rem; font-size: .875rem; font-weight: 500; color: #4b5563; white-space: nowrap; }
.lien-connexion:hover { color: #111827; }
.entete-acces { display: none !important; }
@media (min-width: 1024px) { .lien-connexion { display: inline-block; } }
@media (min-width: 1200px) { .entete-acces { display: inline-flex !important; } }

/* Zora : assistante flottante (js/zora.js). États : .zora--mini, .zora--ouvert, .zora--reduit */
.zora { position: fixed; right: 1rem; bottom: 1rem; z-index: 50; font-family: inherit; font-size: .9rem; color: #111827; }
.zora[hidden], .zora--reduit .zora-panneau, .zora--mini .zora-pastille, .zora--ouvert .zora-pastille,
.zora--mini .zora-fil, .zora--mini .zora-rapides, .zora--ouvert .zora-accroche { display: none; }
.zora-avatar {
  display: inline-flex; align-items: center; justify-content: center; flex: none; width: 2rem; height: 2rem;
  border-radius: 9999px; background: #d3e3e1; color: #033c3d; font-weight: 800; font-size: .95rem;
}
.zora-panneau {
  display: flex; flex-direction: column; width: 20rem; max-width: calc(100vw - 2rem);
  background: #fff; border: 1px solid #e5e7eb; border-radius: 1rem; overflow: hidden;
  box-shadow: 0 14px 36px rgba(17, 24, 39, .2); animation: zora-entree .25s ease-out;
}
.zora--ouvert .zora-panneau { width: 21rem; max-height: min(27rem, calc(100vh - 6rem)); }
.zora-tete { flex: none; display: flex; align-items: center; gap: .55rem; padding: .55rem .6rem .55rem .75rem; background: #033c3d; color: #fff; }
.zora--mini .zora-tete { cursor: pointer; }
.zora-nom { flex: 1; display: flex; flex-direction: column; line-height: 1.2; }
.zora-nom small { display: flex; align-items: center; gap: .3rem; color: #8fb5b2; font-size: .74rem; }
.zora-enligne { width: .5rem; height: .5rem; border-radius: 9999px; background: #25d366; }
.zora-reduire { display: inline-flex; padding: .35rem; border: 0; border-radius: .4rem; background: none; color: #d3e3e1; cursor: pointer; }
.zora-reduire:hover { background: rgba(255, 255, 255, .12); }
.zora-accroche { margin: 0; padding: .7rem .8rem .2rem; cursor: pointer; line-height: 1.4; }
.zora-fil { flex: 1 1 auto; min-height: 5rem; overflow-y: auto; padding: .75rem; background: #eef4f3; }
.zora-msg { display: flex; flex-direction: column; margin-bottom: .5rem; }
.zora-msg p { margin: 0; padding: .5rem .7rem; border-radius: .8rem; max-width: 88%; white-space: pre-line; line-height: 1.4; }
.zora-msg--zora p { align-self: flex-start; background: #fff; border-bottom-left-radius: .2rem; }
.zora-msg--moi p { align-self: flex-end; background: #033c3d; color: #fff; border-bottom-right-radius: .2rem; }
.zora-msg--attente p { color: #6b7280; letter-spacing: .15em; }
.zora-actions { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .4rem; }
.zora-action {
  display: inline-block; padding: .45rem .8rem; border-radius: 9999px; border: 1px solid #033c3d;
  background: #033c3d; color: #fff; font: inherit; font-weight: 600; font-size: .84rem; text-decoration: none; cursor: pointer;
}
.zora-action--wa { background: #25d366; border-color: #25d366; }
.zora-action--clair { background: #fff; color: #033c3d; }
.zora-rapides { flex: none; display: flex; gap: .35rem; overflow-x: auto; padding: .5rem .75rem 0; background: #fff; border-top: 1px solid #e5e7eb; scrollbar-width: none; }
.zora-rapides::-webkit-scrollbar { display: none; }
.zora-rapide { flex: none; padding: .35rem .65rem; border: 1px solid #8fb5b2; border-radius: 9999px; background: #fff; color: #033c3d; font: inherit; font-size: .8rem; cursor: pointer; }
.zora-rapide:hover { background: #eef4f3; }
.zora-saisie { flex: none; display: flex; gap: .4rem; padding: .5rem .75rem .65rem; background: #fff; }
.zora-saisie input { flex: 1; min-width: 0; padding: .5rem .75rem; border: 1px solid #d1d5db; border-radius: 9999px; font-size: 16px; }
.zora-saisie input:focus { outline: 2px solid #8fb5b2; outline-offset: 0; border-color: #033c3d; }
.zora-saisie button { flex: none; width: 2.3rem; border: 0; border-radius: 9999px; background: #033c3d; color: #fff; cursor: pointer; }
.zora-pastille {
  display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .9rem .35rem .35rem; border: 0; border-radius: 9999px;
  background: #033c3d; color: #fff; font: inherit; cursor: pointer; box-shadow: 0 8px 22px rgba(0, 0, 0, .22); animation: zora-entree .2s ease-out;
}
.zora-pastille:hover { background: #022a2b; }
.zora-rappel { display: flex; flex-direction: column; gap: .4rem; width: 100%; }
.zora-rappel input { padding: .5rem .7rem; border: 1px solid #d1d5db; border-radius: .5rem; font-size: 16px; }
.zora-rappel .zora-piege { position: absolute; left: -9999px; }
.zora-erreur { margin: 0; color: #b91c1c; font-size: .83rem; }
@keyframes zora-entree { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
/* Téléphone : bandeau fin en bas à l'arrivée, conversation sur 60 % de l'écran au plus. */
@media (max-width: 639px) {
  .zora { right: .5rem; bottom: .5rem; }
  .zora--mini, .zora--ouvert { left: .5rem; }
  .zora-panneau, .zora--ouvert .zora-panneau { width: 100%; max-width: none; }
  .zora--ouvert .zora-panneau { max-height: min(60vh, 30rem); }
  .zora--mini .zora-accroche { display: none; }
  .zora--mini .zora-saisie { padding: .45rem .5rem; }
}
