#root {
  max-width: 1280px;
  margin: 0 auto;
  text-align: center;
}

@keyframes logo-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes wiggle-rotate {
  0%   { transform: rotate(0deg); }
  10%  { transform: rotate(-3deg); }
  20%  { transform: rotate(3deg); }
  30%  { transform: rotate(-3deg); }
  40%  { transform: rotate(0deg); }
  100% { transform: rotate(0deg); }
}

.wiggle {
  animation: wiggle-rotate 5.3s infinite;
  transform-origin: center;
}

@media (prefers-reduced-motion: no-preference) {
  a:nth-of-type(2) .logo {
    animation: logo-spin infinite 20s linear;
  }
}

.fieldset {
  color: #fff;
}

.read-the-docs {
  color: #888;
}
@import url('https://fonts.googleapis.com/css2?family=Tangerine:wght@700&family=Cormorant+Upright:wght@700&display=swap');

.navbar-container {
    position: fixed;
	top: -235px;
    left: 14px;
	z-index: 1000;

	background-image: url('/menu-paper-asset.png');
	background-size: cover;
	background-position: center;
	width: 200px;
	height: 313px;
	padding-left: 15px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: center;
    font-family: 'Cormorant Upright', 'Tangerine', cursive;
	color: black;
	text-shadow: 0.5px 0.5px 1px rgba(0, 0, 0, 0.2);
	position:fixed;
	transition: top 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}
.navbar-container.open {
	top: -25px;
}
.navbar-container a {
    color: black
}
.navbar-container nav {
	height: 75%;
	align-items: center;
	display: flex;
}

.navbar-container nav ul {
	list-style: none;
	padding: 0;
	text-align: center;
	padding-top: 25px;
}

.navbar-container nav ul li {
	margin: 17px 0;
}

.nav-btn {
	background: none;
	border: none;
	color: inherit;
	font-size: 18px;
	cursor: pointer;
	transition: transform 0.2s ease, color 0.2s ease;
	padding-bottom: 40px;
}
.nav-btn-in {
    background: none;
	border: none;
	color: inherit;
	padding: 0;
	font-size: 18px;
	cursor: pointer;
	background: none;
    border: none;
    outline: none;
    box-shadow: none;
	transition: transform 0.2s ease, color 0.2s ease;
}

.nav-btn, .navbar-container {
    font-size: 18px;
}
.nav-btn:hover, .navbar-container a:hover {
	color: #4b2e05;
}
.nav-btn {
	background: none;
	border: none;
	outline: none;
	box-shadow: none;
	color: inherit;
	font-size: 18px;
	cursor: pointer;
	transition: transform 0.2s ease, color 0.2s ease;
	padding-bottom: 40px;
}

.nav-btn:focus,
.nav-btn:active,
.nav-btn-in:active,
.nav-btn-in:focus {
	outline: none;
	box-shadow: none;
	transform: none;
}

html, body {
  min-height: 100vh;
  height: auto;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
}
.background-note {
    top: 0px;
    left: 0px;
    position: fixed;
    width: 100%;
    min-height: 100vh;
    background-image: url('/tableau-liege.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

#form-mail-share {
    display: flex;
    gap: 10px;
    flex-direction: row;
    align-items: center;
}

.mail-shard-vue {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.note-action {
    z-index: 10000;
    position: absolute;
    top: 10px;
    right: 10px;
    transform: none;
    display:flex;
    flex-direction:row;
}
.creat-note-btn {
    height: 40px;
    width: 150px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}


.toggle-btn {
    font-family: 'Roboto Mono', monospace;
    font-size: 12.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #1e293b;
    background: linear-gradient(180deg, #ffffff 0%, #e2e8f0 100%);
    border: 1.5px solid #94a3b8;
    border-radius: 8px;
    padding: 8px 16px;
    margin: 4px;
    cursor: pointer;
    box-shadow: 0 4px 0 #64748b, 0 5px 10px rgba(0, 0, 0, 0.15);
    transition: all 0.1s ease;
    position: relative;
    top: 0;
    user-select: none;
    height: 40px;
    width: 150px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.view-toggle {
    display: inline-flex;
    margin: 4px;
}

.view-toggle .toggle-btn {
    margin: 0;
}

.view-toggle .toggle-btn:first-child {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: none;
}

.view-toggle .toggle-btn:last-child {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.view-toggle .toggle-btn--active {
    z-index: 1;
}

.toggle-btn:hover:not(.toggle-btn--active) {
    background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
    box-shadow: 0 5px 0 #64748b, 0 7px 12px rgba(0, 0, 0, 0.2);
    top: -1px;
}

.toggle-btn--active,
.toggle-btn--active:hover {
    top: 3px;
    box-shadow: 0 1px 0 #64748b, inset 0 2px 4px rgba(0, 0, 0, 0.15);
    background: #cbd5e1;
    color: #0f172a;
}

.toggle-btn--active::before {
    background: #15803d;
    box-shadow: 0 0 6px #22c55e, 0 0 10px #22c55e;
}

.toggle-btn--shared.toggle-btn--shared-active::before {
    background: #e0f2fe;
    box-shadow: 0 0 6px #38bdf8, 0 0 10px #38bdf8;
}

/* === Notes partagées (bleu) === */
.note-on-board--shared {
    background-color: #41b3ff !important;
}
.note-on-board--shared button{
    background-color: #41b3ff !important;
    box-shadow: 1px 1px 2px #419ad2, -2px -2px 4px #419ad2 !important;
}

.note-on-board--shared::after {
    border-left-color: rgba(0,80,150,0.25);
}

.note-on-board-btn--shared {
    background: linear-gradient(145deg, #7ec8e3, #b8e3f7);
    border-color: #3b9ade;
    color: #003d6b;
}

.note-on-board-btn--shared:hover {
    background: linear-gradient(145deg, #9dd8f0, #d0eeff);
    box-shadow: 3px 3px 4px #5ba8cc, -2px -2px 4px #dff2ff;
}

/* Banner in shared view */
.shared-view-banner {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(26, 115, 232, 0.85);
    color: white;
    padding: 6px 18px;
    border-radius: 20px;
    font-family: 'Roboto Mono', monospace;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(5px);
    z-index: 10;
}

/* Empty state message */
.empty-shared-notes {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.95);
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    text-align: center;
    max-width: 420px;
    z-index: 5;
}

.empty-shared-title {
    font-size: 20px;
    font-weight: bold;
    color: #1a73e8;
    margin: 0 0 10px 0;
}

.empty-shared-sub {
    font-size: 14px;
    color: #555;
    margin: 0;
}

/* Badge on note card */
.shared-badge {
    position: absolute;
    top: 6px;
    left: 8px;
    font-size: 11px;
    font-weight: bold;
    background: rgba(0, 61, 107, 0.15);
    color: #003d6b;
    padding: 2px 6px;
    border-radius: 10px;
    pointer-events: none;
}

/* Shared note popup styling */
.popup-vue-note--shared {
    background-color: #41b3ff !important;
}

.popup-vue-note--shared button {
    background-color: #41b3ff !important;
    box-shadow: 1px 1px 2px #419ad2, -2px -2px 4px #419ad2 !important;
}

.note-vue-shared-tag {
    display: inline-block;
    background: #3b9ade;
    color: white;
    font-size: 12px;
    font-weight: bold;
    padding: 3px 10px;
    border-radius: 12px;
    margin-bottom: 5px;
}

/* === Tactile Keyboard Keycaps (Boutons Clavier 3D) === */
.creat-note-btn,
.note-vue-btn,
.note-on-board-btn,
.note-btn,
.btn {
    font-family: 'Roboto Mono', monospace;
    font-size: 12.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #1e293b;
    background: linear-gradient(180deg, #ffffff 0%, #e2e8f0 100%);
    border: 1.5px solid #94a3b8;
    border-radius: 8px;
    padding: 8px 16px;
    margin: 4px;
    cursor: pointer;
    box-shadow: 0 4px 0 #64748b, 0 5px 10px rgba(0, 0, 0, 0.15);
    transition: all 0.1s ease;
    position: relative;
    top: 0;
    user-select: none;
}

.creat-note-btn:hover,
.note-vue-btn:hover,
.note-on-board-btn:hover,
.note-btn:hover,
.btn:hover {
    background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
    box-shadow: 0 5px 0 #64748b, 0 7px 12px rgba(0, 0, 0, 0.2);
    top: -1px;
}

.creat-note-btn:active,
.note-vue-btn:active,
.note-on-board-btn:active,
.note-btn:active,
.btn:active {
    top: 3px;
    box-shadow: 0 1px 0 #64748b, inset 0 2px 4px rgba(0, 0, 0, 0.15);
    background: #cbd5e1;
}

.creat-note-btn:focus,
.note-vue-btn:focus,
.note-on-board-btn:focus,
.note-btn:focus,
.toggle-btn:focus,
.btn:focus {
    outline: none;
}


.note-on-board-btn {
    position: absolute;
    top: 20% !important;
    left: 80% !important;
    transform: translate(-50%, -50%) !important;
}

.note-on-board-btn:hover {
    top: 20% !important;
    transform: translate(-50%, calc(-50% - 2px)) !important;
}

.note-on-board-btn:active {
    top: 20% !important;
    transform: translate(-50%, calc(-50% + 2px)) !important;
}
.note-on-board {
    position: relative;
    color: black;
    width: 200px;
    height: 150px;
    display: flex;
    flex-direction: column;
    padding: 15px;
    background-color: yellow;
    cursor: pointer;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
    overflow: hidden;
}

/* coin replié transparent */
.note-on-board::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 0;
    border-bottom: 30px solid transparent;
    border-left: 30px solid rgba(0,0,0,0.2);
    pointer-events: none;
}
.popup-vue-note::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 0;
    border-bottom: 30px solid transparent;
    border-left: 30px solid rgba(0,0,0,0.2);
    pointer-events: none;
}

.note-on-board-title {
    padding-right: 10px;
    font-weight: bold;
    margin-bottom: 10px;
    margin-top: 0px;
    font-size: 22px;
}

.note-on-board-contentPreview {
    margin: 0;
    font-size: 16px;
    white-space: pre-wrap !important;
    word-wrap: break-word !important;
    word-break: break-word !important;
    text-align: left;
}
.popup-vue-note {
    color: black;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50%;
    height: 80%;
    max-height: 85vh;
    padding: 20px;
    background-color: yellow;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
    z-index: 100;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.note-vue-body {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    padding-right: 6px;
}

.note-vue-footer {
    display: flex;
    justify-content: center;
    margin-top: 15px;
    flex-shrink: 0;
}

.note-vue-header {
    display: flex    ;
    justify-content: space-between;
    margin-bottom: 30px;
}


.note-vue-header-first-chield{
    display: flex;
    text-align: left;
    flex-direction: column;
    align-content: flex-start;
    align-items: flex-start;
}

.note-vue-content,
#noteVueContentText {
    height: auto;
    white-space: pre-wrap !important;
    word-wrap: break-word !important;
    word-break: break-word !important;
    text-align: left;
    line-height: 1.5;
}

.popup-vue-note input{

  background-color: white;
  border: 1px solid;
  padding: 0px 10px;
  border-radius: 5px;
}

.note-vue-title,
.note-vue-content {
  width: 100%;
  text-align: left;
  font-family: inherit;
  font-size: inherit;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  box-sizing: border-box;
}

textarea.note-vue-content,
textarea#noteVueContentInput {
  resize: vertical;
  min-height: 100px;
  padding: 8px 10px;
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 5px;
  white-space: pre-wrap !important;
  word-wrap: break-word !important;
  word-break: break-word !important;
  font-family: inherit;
  font-size: inherit;
  line-height: 1.5;
  box-sizing: border-box;
}


.editable {
  background-color: #fff;
  padding: 5px;
  border-radius: 4px;
  border: 1px solid #ccc;
  width: 100%;
  box-sizing: border-box;
}

.error-field {
  border-color: red;
}

.error-message {
  color: red;
  font-size: 14px;
  margin: 5px 0 0 0;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100000000;
}

.modal-content {
  background: white;
  padding: 20px;
  border-radius: 8px;
  position: relative;
  max-width: 500px;
  width: 100%;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 1rem;
  cursor: pointer;
}


/* Form */
fieldset{
  border: none;
  padding: 5em;
  box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px, rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px, rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px;;
  h2{
    font-size: 2rem;
  }
  label{
    font-size: 1rem;
    font-weight: bold;
    margin: auto 2.5em;
  }
  input{
    border-radius: none;
    margin: auto;
    box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
  }
}


/* page event */
.background-event {
    top: 0px;
}
.calendar-container {
  color: #fff; /* Texte blanc pour contraste */
  background-color: transparent; /* Fond transparent pour voir le fond noir */
      margin-top: -75px;
}

.calendar-container h2 {
  color: #fff;
}

.calendar-container form {
  padding: 20px;
  border-radius: 8px;
}

.calendar-container label {
  color: #fff;
  margin-right: 10px;
}

.calendar-container input,
.calendar-container textarea {
  background-color: #333; /* Fond sombre pour les champs */
  color: #fff; /* Texte blanc */
  border: 1px solid #fff;
  border-radius: 4px;
  padding: 8px;
  width: 100%;
  max-width: 300px;
}

.calendar-container button {
  background-color: #ffffff;
  color: #000;
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.calendar-container button:hover {
  background-color: #ccc;
}

.rbc-calendar {
  background-color: transparent; /* Fond transparent pour le calendrier */
  padding-bottom: 50px;
}

.rbc-toolbar {
  background-color: transparent; /* Fond sombre pour la barre d'outils */
}

.rbc-btn-group button,
.form-container button {
    background-color : white !important;
}

.form-container button,
.rbc-btn-group button {
  color: black !important;
  background-color: transparent;
}
.rbc-toolbar-label {
  color: white !important;
  background-color: transparent;
}

.form-container button:hover,
.rbc-btn-group button:hover {
  background-color: grey !important;
}

.rbc-event {
  background-color: #3174ad !important; /* Couleur des événements */
  color: #fff !important;
}

.rbc-selected {
  background-color: #555 !important; /* Cellules sélectionnées */
}

.rbc-month-view,
.rbc-time-view {
  border: 1px solid #fff; /* Bordures blanches */
}

.rbc-header,
.rbc-day-bg,
.rbc-time-slot {
  border-color: #fff !important; /* Bordures blanches */
}

.rbc-header {
    color: black;
}

.rbc-day-bg,
.rbc-month-view {
   background-color: wheat;
}

.rbc-time-header,
.rbc-time-content {
  color: #fff !important;
}

.rbc-agenda-view table,
.rbc-agenda-view th,
.rbc-agenda-view td {
  color: #fff !important;
  border-color: #fff !important;
}

.form-container form {
    display: flex;
    flex-direction: column;
    gap: 34px;
    background-color: #00000040;
    padding: 15px;
}

.form-container {
    align-content: center;
}

.form-container h3 {
    font-size: 25px;
    padding-bottom: 30px;
}

.form-container label {
    font-size: 15px;
    padding-bottom: 30px;
    font-weight: 700;
}

.form-container textarea, input {
    background-color: white;
    color: black;
}

.form-container input[type="datetime-local"]::-webkit-calendar-picker-indicator {
  filter: invert(100%);
}

/* ─── Section Commentaires dans NoteVue ─────────────────────────────── */

.note-vue-content {
    height: auto;
    min-height: 80px;
    max-height: 250px;
    overflow-y: auto;
    white-space: pre-wrap !important;
    word-break: break-word !important;
}

.note-vue-comments {
    margin-top: 18px;
    border-top: 1px solid rgba(0, 0, 0, 0.15);
    padding-top: 12px;
}

.note-vue-comments-title {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 10px 0;
    text-align: left;
    color: #444;
}

.note-vue-comments-empty {
    font-size: 13px;
    color: #888;
    text-align: left;
    margin: 0 0 10px 0;
    font-style: italic;
}

.note-vue-comments-list {
    list-style: none;
    padding: 0;
    margin: 0 0 12px 0;
    max-height: 160px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.note-vue-comment-item {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    padding: 8px 10px;
    text-align: left;
}

.note-vue-comment-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
    gap: 8px;
}

.note-vue-comment-author {
    font-size: 12px;
    font-weight: 600;
    color: #555;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.note-vue-comment-date {
    font-size: 11px;
    color: #999;
    white-space: nowrap;
    flex-shrink: 0;
}

.note-vue-comment-text {
    margin: 0;
    font-size: 13px;
    color: #333;
    word-break: break-word;
}

.note-vue-comment-form {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-end;
}

.note-vue-comment-input {
    width: 100%;
    box-sizing: border-box;
    resize: none;
    padding: 7px 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.7);
    font-family: inherit;
    font-size: 13px;
    color: #333;
    transition: border-color 0.2s;
}

.note-vue-comment-input:focus {
    outline: none;
    border-color: #888;
    background-color: white;
}

/* =============================================
   CHAT WEBSOCKET — Section commentaires
   ============================================= */

/* =============================================
   CHAT WEBSOCKET — Bouts de papier avec Trombone
   ============================================= */

.chat-container {
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    background: linear-gradient(135deg, #fffde7 0%, #fef9c3 100%);
    border: 1px solid #fde047;
    box-shadow: 4px 6px 16px rgba(0, 0, 0, 0.2), inset 0 0 30px rgba(250, 204, 21, 0.08);
    overflow: visible;
    margin-top: 32px;
    min-height: 270px;
    max-height: 420px;
    position: relative;
    transform: rotate(-0.6deg);
    color: #1e293b;
}

/* Trombone métallique en haut à gauche */
.chat-paperclip {
    position: absolute;
    top: -20px;
    left: 22px;
    z-index: 10;
    color: #475569;
    filter: drop-shadow(2px 3px 3px rgba(0, 0, 0, 0.35));
    transform: rotate(-15deg);
    pointer-events: none;
}

/* En-tête du bloc papier */
.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px 10px 65px;
    background: rgba(254, 240, 138, 0.5);
    border-bottom: 2px dashed rgba(161, 98, 7, 0.25);
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    flex-shrink: 0;
}

.chat-title {
    font-weight: 700;
    font-size: 13.5px;
    color: #713f12;
    font-family: 'Roboto Mono', monospace;
    letter-spacing: 0.3px;
}

/* Indicateur de connexion */
.chat-status {
    font-size: 11px;
    font-weight: 600;
    border-radius: 20px;
    padding: 3px 10px;
    transition: all 0.3s ease;
    font-family: 'Roboto Mono', monospace;
}

.chat-status--connected {
    color: #15803d;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.4);
}

.chat-status--connecting {
    color: #a16207;
    background: rgba(234, 179, 8, 0.2);
    border: 1px solid rgba(234, 179, 8, 0.4);
    animation: pulse-status 1.2s ease-in-out infinite;
}

.chat-status--disconnected {
    color: #64748b;
    background: rgba(100, 116, 139, 0.15);
    border: 1px solid rgba(100, 116, 139, 0.3);
}

.chat-status--error {
    color: #b91c1c;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
}

@keyframes pulse-status {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Zone des messages (lignes de cahier/papier) */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
    scroll-behavior: smooth;
    background-image: repeating-linear-gradient(
        transparent,
        transparent 23px,
        rgba(161, 98, 7, 0.07) 24px
    );
}

.chat-messages::-webkit-scrollbar {
    width: 5px;
}
.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}
.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(161, 98, 7, 0.25);
    border-radius: 4px;
}

/* Message vide */
.chat-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    text-align: center;
    color: #a16207;
    font-size: 13px;
    line-height: 1.6;
    padding: 20px;
    font-family: 'Roboto Mono', monospace;
    font-style: italic;
}

/* Wrapper de message */
.chat-message {
    display: flex;
    flex-direction: column;
    max-width: 80% !important;
    width: fit-content;
    animation: msg-appear 0.2s ease-out;
}

@keyframes msg-appear {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.chat-message--mine {
    align-self: flex-end !important;
    align-items: flex-end !important;
    margin-left: auto !important;
    margin-right: 0 !important;
}

.chat-message--other {
    align-self: flex-start !important;
    align-items: flex-start !important;
    margin-right: auto !important;
    margin-left: 0 !important;
}

/* Auteur du message */
.chat-author {
    font-size: 11px;
    color: #854d0e;
    margin-bottom: 2px;
    padding-left: 4px;
    font-weight: 700;
}

/* Bulles sous forme de bandelettes de papier */
.chat-bubble {
    padding: 9px 14px;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.5;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: normal;
    box-shadow: 2px 3px 6px rgba(0, 0, 0, 0.12);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.08);
    width: fit-content;
    max-width: 100%;
}

/* Mon message (Bout de papier blanc pur penché) */
.chat-bubble--mine {
    background: #ffffff;
    color: #1e293b;
    transform: rotate(0.6deg);
    border-left: 4px solid #eab308;
}

/* Message d'autrui (Bout de papier bleu clair penché) */
.chat-bubble--other {
    background: #f0f9ff;
    color: #0c4a6e;
    transform: rotate(-0.6deg);
    border-left: 4px solid #0284c7;
}

/* Timestamp */
.chat-time {
    font-size: 10px;
    color: #a16207;
    margin-top: 3px;
    padding: 0 4px;
    font-weight: 500;
}

.chat-time--mine {
    text-align: right;
}

/* Zone de saisie au bas du papier */
.chat-input-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-top: 2px dashed rgba(161, 98, 7, 0.25);
    background: rgba(254, 240, 138, 0.4);
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    flex-shrink: 0;
}

.chat-input {
    flex: 1;
    background: #ffffff;
    border: 1.5px solid #d97706;
    border-radius: 6px;
    padding: 8px 14px;
    color: #1e293b;
    font-size: 13px;
    font-family: inherit;
    resize: none;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.chat-input::placeholder {
    color: #b45309;
    opacity: 0.6;
}

.chat-input:focus {
    border-color: #b45309;
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.2);
}

.chat-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Bouton d'envoi style bouton 3D kraft */
.chat-send-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    border-radius: 8px;
    border: 1.5px solid #b45309;
    background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff !important;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.1s ease;
    box-shadow: 0 3px 0 #92400e, 0 4px 8px rgba(0, 0, 0, 0.15);
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
}

.chat-send-btn svg {
    fill: #ffffff !important;
    color: #ffffff !important;
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.chat-send-btn:hover:not(:disabled) {
    background: linear-gradient(180deg, #fbbf24 0%, #f59e0b 100%);
    box-shadow: 0 4px 0 #92400e, 0 6px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}

.chat-send-btn:active:not(:disabled) {
    transform: translateY(2px);
    box-shadow: 0 1px 0 #92400e, inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.chat-send-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
}

.chat-send-btn:disabled svg {
    fill: rgba(255, 255, 255, 0.7) !important;
}

/* Erreur dans le chat */
.chat-error {
    margin: 0 14px 8px;
    font-size: 12px;
    color: #b91c1c;
}

