/* Le Lounge — composants : seuil, cartes, formulaires, boutons, mots de la maison,
   pastilles, toasts, dialogue, bulles, rideau. Jetons dans lounge.css. */

/* Seuil : sourcil laiton, titre Cormorant, accroche en vraie italique, filet ◇. */
.accueil { position: relative; text-align: center; padding: 1.25rem 0 .25rem; }
.sourcil {
  margin: 0 0 .55rem;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--laiton);
}
.accroche {
  max-width: 32ch;
  margin: .65rem auto 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.2rem;
  line-height: 1.35;
  color: var(--fumee);
}
.filet { display: flex; align-items: center; justify-content: center; width: 80px; margin: .9rem auto 0; color: var(--laiton); }
.filet::before, .filet::after { content: ""; height: 1px; flex: 1; }
.filet::before { background: linear-gradient(90deg, transparent, var(--laiton)); }
.filet::after { background: linear-gradient(90deg, var(--laiton), transparent); }
.filet span { padding: 0 .55rem; font-size: .75rem; }
.chapeau { color: var(--creme); }
.detail { font-size: .875rem; color: var(--fumee); margin: -.2rem 0 .3rem; }

/* Cartes « alcôve ». */
.carte {
  background: linear-gradient(180deg, var(--alcove-2), var(--alcove));
  border: 1px solid var(--filet);
  border-radius: var(--rayon);
  padding: 1.15rem 1.1rem;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 14px 34px -22px rgba(0, 0, 0, .9);
}
.fiche { display: grid; grid-template-columns: max-content 1fr; gap: .45rem 1rem; margin: 0; }
.fiche dt { color: var(--fumee); }
.fiche dd { margin: 0; }

/* Formulaires : vrais <label>, champs à 16 px minimum (pas de zoom iOS), cibles de 44 px. */
.formulaire { display: grid; gap: .45rem; }
label { color: var(--fumee); font-size: .875rem; font-weight: 600; letter-spacing: .04em; }
input, textarea, select {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(201, 162, 75, .3);
  border-radius: 9px;
  padding: .65rem .8rem;
  font: inherit;
  font-size: max(1rem, 16px);
  background: rgba(0, 0, 0, .28);
  color: var(--creme);
}
input[type="checkbox"] { width: 1.25rem; min-height: 0; height: 1.25rem; padding: 0; accent-color: var(--laiton); flex: none; }
input::placeholder, textarea::placeholder { color: var(--placeholder); opacity: 1; }
input:focus, textarea:focus { border-color: var(--laiton); box-shadow: 0 0 0 3px rgba(201, 162, 75, .18); }
input[readonly] { color: var(--fumee); }
textarea { min-height: 6rem; resize: vertical; }
.case { display: flex; align-items: center; gap: .6rem; min-height: 44px; letter-spacing: 0; font-weight: 500; color: var(--creme); }
.mdp { display: flex; gap: .5rem; align-items: stretch; }
.mdp input { flex: 1; min-width: 0; }
.mdp .oeil { width: auto; margin: 0; padding: 0 .9rem; }
.regles { margin: 0 0 .3rem; padding-left: 1.2rem; font-size: .875rem; color: var(--fumee); }
.piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.adresse input { font-size: max(1rem, 16px); }

/* Boutons laiton. */
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  width: 100%;
  min-height: 46px;
  margin-top: .35rem;
  padding: .6rem 1rem;
  border: 1px solid transparent;
  border-radius: 9px;
  background: linear-gradient(180deg, var(--laiton-vif), var(--laiton));
  color: var(--encre-bouton);
  font: 700 1rem var(--sans);
  letter-spacing: .03em;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
button:hover { filter: brightness(1.06); box-shadow: 0 6px 20px -8px rgba(201, 162, 75, .55); }
button:active { transform: translateY(1px); }
button:disabled { opacity: .5; cursor: not-allowed; filter: none; box-shadow: none; }
button.discret { background: transparent; color: var(--laiton-vif); border-color: rgba(201, 162, 75, .45); }
button.discret:hover { background: rgba(201, 162, 75, .08); box-shadow: none; }
button.danger { background: transparent; color: var(--danger); border-color: var(--danger); }
button.danger:hover { background: rgba(239, 138, 122, .1); box-shadow: none; }
.actions { margin: 0; }

/* Liens de suite : cibles de 44 px. */
.liens { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; margin: .25rem 0; justify-content: center; }
.carte .liens { justify-content: flex-start; }
.liens a { display: inline-flex; align-items: center; min-height: 44px; }

/* Messages. */
.alerte {
  border-left: 3px solid var(--alerte);
  background: rgba(232, 154, 142, .1);
  color: var(--alerte);
  padding: .7rem .8rem;
  border-radius: 9px;
}
.bandeau { border: 1px solid var(--filet); border-radius: var(--rayon); padding: .85rem 1rem; background: rgba(0, 0, 0, .2); }

/* « Mot de la maison » : filet de laiton à gauche, italique de confidence. */
.note-maison {
  margin: 0;
  padding: .7rem .9rem;
  border-left: 2px solid var(--laiton);
  border-radius: 0 9px 9px 0;
  background: rgba(255, 255, 255, .035);
  color: var(--creme);
  font: italic 500 1.1rem/1.45 var(--serif);
  overflow-wrap: anywhere;
}
/* Retours a la ligne du texte saisi par la maison : sur le paragraphe seulement (le
   blanc du gabarit autour ne doit pas compter). */
.note-maison p, p.note-maison { white-space: pre-line; }
.texte-maison { white-space: pre-line; }

/* Pastille d'état et badge fondateur. */
.pastille {
  display: inline-flex;
  align-items: center;
  min-height: 1.75rem;
  padding: .15rem .65rem;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 600;
  border: 1px solid currentColor;
}
.pastille.attente { color: var(--attente); background: rgba(230, 200, 120, .08); }
.badge-fondateur { color: var(--laiton-vif); font-size: 1.1rem; line-height: 1; }

/* Toasts. */
.toasts {
  position: fixed;
  left: 50%;
  bottom: calc(1rem + var(--bas));
  z-index: 40;
  display: grid;
  gap: .5rem;
  width: min(calc(100% - 2rem), 30rem);
  transform: translateX(-50%);
}
.avec-onglets .toasts { bottom: calc(var(--barre) + 1rem + var(--bas)); }
.toast {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem .6rem .55rem .9rem;
  border: 1px solid var(--filet);
  border-left: 3px solid var(--laiton);
  border-radius: 10px;
  background: var(--alcove-2);
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .9);
  animation: bulle .28s var(--courbe) both;
}
.toast p { flex: 1; margin: 0; }
.toast.ok { border-left-color: var(--ok); }
.toast.erreur { border-left-color: var(--danger); }
.toast button { width: auto; margin: 0; min-height: 44px; }
.toast .fermer { min-width: 44px; background: transparent; color: var(--fumee); font-size: 1.3rem; padding: 0; }
.toast.sortie { opacity: 0; transition: opacity .3s ease; }

/* Dialogue de confirmation ; feuille qui monte du bas sur mobile. */
dialog.confirmation {
  width: min(calc(100% - 2rem), 26rem);
  padding: 1.25rem 1.2rem;
  border: 1px solid var(--filet);
  border-radius: 14px;
  background: var(--alcove-2);
  color: var(--creme);
}
dialog.confirmation::backdrop { background: rgba(10, 6, 5, .72); }
dialog.confirmation .boutons { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-top: .5rem; }
@media (max-width: 599px) {
  dialog.confirmation {
    width: 100%;
    max-width: none;
    margin: auto 0 0;
    border-radius: 18px 18px 0 0;
    padding-bottom: calc(1.2rem + var(--bas));
    animation: feuille .24s var(--courbe) both;
  }
}
@keyframes feuille { from { transform: translateY(100%); } to { transform: none; } }

/* Bulles (le fil complet arrive au Lot 06). */
.bulle { max-width: 92%; margin: 0; padding: .7rem .85rem; border-radius: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.bulle.concierge { justify-self: start; background: rgba(255, 255, 255, .05); border: 1px solid var(--filet); }
.bulle.moi { justify-self: end; background: linear-gradient(180deg, var(--laiton-vif), var(--laiton)); color: var(--encre-bouton); }
.bulle.maison { justify-self: start; background: linear-gradient(180deg, var(--bordeaux), rgba(90, 18, 42, .38)); border: 1px solid rgba(231, 203, 134, .5); }
.entree-douce { animation: bulle .28s var(--courbe) both; }
@keyframes bulle { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.frappe { display: inline-flex; gap: 5px; align-items: center; }
.frappe span { width: 6px; height: 6px; border-radius: 50%; background: var(--fumee); animation: frappe 1.2s infinite ease-in-out; }
.frappe span:nth-child(2) { animation-delay: .18s; }
.frappe span:nth-child(3) { animation-delay: .36s; }
@keyframes frappe { 0%, 65%, 100% { transform: translateY(0); opacity: .35; } 32% { transform: translateY(-3px); opacity: .95; } }

/* Rideau d'arrivée (900 ms, une seule fois) : noir, puis halo, puis titre. */
.rideau {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  background: radial-gradient(50% 40% at 50% 45%, rgba(231, 203, 134, .18), transparent 70%), var(--velours-0);
  pointer-events: none;
  animation: rideau 900ms ease-in forwards;
}
.rideau-titre { font-family: var(--serif); font-size: 2.6rem; font-weight: 600; color: var(--creme); animation: rideau-titre 900ms var(--courbe) forwards; }
@keyframes rideau { 0%, 55% { opacity: 1; } 100% { opacity: 0; visibility: hidden; } }
@keyframes rideau-titre { 0% { opacity: 0; transform: translateY(8px); } 45% { opacity: 1; transform: none; } 100% { opacity: 0; } }
