.volunteer-form select {

	background: transparent;

	border-bottom: 1px solid #fff;

	padding: 10px 0;

	color: #fff !important;

	width: 100%;

	font-weight: 600;

	font-size: 14px;

}

.volunteer-form select option {

	background-color: blue !important;

}

.chat-icon {

    position: fixed;

    bottom: 50px;

    right: 15px;

    width: 58px;

    height: 58px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: linear-gradient(145deg, #1f5ea8 0%, #0f2f67 100%);

    color: #ffffff;

    border-radius: 50%;

    cursor: pointer;

    font-size: 24px;

    box-shadow: 0 10px 24px rgba(17, 45, 94, 0.35);

    border: 2px solid rgba(255, 255, 255, 0.85);

    transition: transform 0.2s ease-in-out, box-shadow 0.25s ease, background 0.25s ease;

    z-index: 9999; /* Toujours au-dessus */

}

.chat-icon:hover {

    transform: scale(1.1);


    background: linear-gradient(145deg, #266dbe 0%, #153f82 100%);

    box-shadow: 0 14px 30px rgba(15, 47, 103, 0.5);

}

.chat-icon:focus-visible {

    outline: 3px solid #d8b449;

    outline-offset: 2px;

}

.chat-box {

    display: flex;

    flex-direction: column;

    position: fixed;

    bottom: 120px;

    right: 20px;

    width: min(390px, calc(100vw - 24px));

    max-height: min(75vh, 620px);

    background: #ffffff;

    border-radius: 16px;

    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.35);

    border: 1px solid #d6e0ef;

    overflow: hidden;

    transform: translateY(18px) scale(0.96);

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transition: transform 0.28s ease, opacity 0.28s ease, visibility 0.28s;

    z-index: 9998; /* Toujours au-dessus des autres contenus */

}

.chat-box::before {

    content: "";

    position: absolute;

    inset: 0;

    border: 1px solid rgba(255, 255, 255, 0.65);

    border-radius: 16px;

    pointer-events: none;

}

.chat-box.is-open {

    transform: translateY(0) scale(1);

    opacity: 1;

    visibility: visible;

    pointer-events: auto;

}

.chat-header {

    background: linear-gradient(120deg, #1f5ea8 0%, #163f7a 70%, #0f2f67 100%);

    color: #ffffff;

    padding: 13px 14px;

    display: flex;

    justify-content: space-between;

    align-items: center;

    font-weight: 700;

    font-size: 15px;

}

.chat-header span {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    letter-spacing: .2px;

}

.chat-header span::before {

    content: "";

    width: 8px;

    height: 8px;

    border-radius: 50%;

    background: #6ee7b7;

    box-shadow: 0 0 0 6px rgba(110, 231, 183, 0.2);

}

.coloree {

    background: rgba(255, 255, 255, 0.14);

    border: none;

    color: #ffffff;

    width: 30px;

    height: 30px;

    border-radius: 8px;

    font-size: 16px;

    cursor: pointer;

    transition: background 0.25s;

}

.coloree:hover {

    background: rgba(255, 255, 255, 0.25);

}

.chat-form {

    padding: 15px 14px;

    display: flex;

    flex-direction: column;

    gap: 8px;

    border-bottom: 1px solid #edf2fa;

}

.chat-form input {

    margin: 0;

    padding: 11px 12px;

    width: 100%;

    border: 1px solid #cfd8e5;

    border-radius: 8px;

    font-size: 14px;

    color: #213047;

    background: #fbfdff;

    transition: border-color 0.2s, box-shadow 0.2s;

}

.chat-form input:focus,
.chat-input textarea:focus {

    outline: none;

    border-color: #1f5ea8;

    box-shadow: 0 0 0 3px rgba(31, 94, 168, 0.14);

}

.chat-form button {

    background: linear-gradient(120deg, #1f5ea8 0%, #173f78 100%);

    color: #ffffff;

    border: none;

    padding: 11px;

    border-radius: 8px;

    font-size: 15px;

    font-weight: 700;

    cursor: pointer;

    transition: background 0.2s ease-in-out;

}

.chat-form button:hover {

    filter: brightness(1.04);

}

.chat-messages {

    min-height: 280px;

    max-height: 42vh;

    overflow-y: auto;

    padding: 12px;

    background:
        radial-gradient(circle at 18% 20%, rgba(37, 99, 235, 0.08) 0 90px, transparent 91px),
        radial-gradient(circle at 85% 12%, rgba(59, 130, 246, 0.08) 0 80px, transparent 81px),
        linear-gradient(180deg, #f8fbff 0%, #f4f8ff 100%);

    display: flex;

    flex-direction: column;

    gap: 10px;

    scroll-behavior: smooth;

}

.message-row {

    display: flex;

}

.message-user {

    align-self: flex-end;

    justify-content: flex-end;

}

.message-admin {

    align-self: flex-start;

    justify-content: flex-start;

}

.message-bubble {

    max-width: 86%;

    padding: 10px 12px;

    border-radius: 12px;

    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.08);

}

.message-user .message-bubble {

    background: linear-gradient(120deg, #1f5ea8 0%, #1a4f8f 100%);

    color: #ffffff;

    border-bottom-right-radius: 4px;

}

.message-admin .message-bubble {

    background: #ffffff;

    color: #1f2937;

    border: 1px solid #dde5f1;

    border-bottom-left-radius: 4px;

}

.message-author {

    margin: 0 0 4px;

    font-size: 11px;

    font-weight: 700;

    opacity: 0.85;

}

.message-text {

    margin: 0;

    line-height: 1.45;

    font-size: 13px;

    white-space: pre-wrap;

    word-break: break-word;

}

.message-time {

    display: block;

    margin-top: 6px;

    font-size: 10px;

    opacity: 0.78;

}

.chat-system-error {

    background: #fff1f0;

    color: #8a1f11;

    border: 1px solid #efb7b1;

    border-radius: 8px;

    padding: 10px;

    font-size: 13px;

    margin: auto;

}

.chat-input {

    display: flex;

    align-items: flex-end;

    padding: 10px;

    gap: 8px;

    background: #ffffff;

    border-top: 1px solid #e6edf8;

}

.chat-input textarea {

    flex: 1;

    min-height: 42px;

    max-height: 100px;

    resize: vertical;

    padding: 10px;

    border: 1px solid #cfd8e5;

    border-radius: 8px;

    font-size: 13px;

    line-height: 1.45;

    color: #1f2937;

    background: #fbfdff;

}

.chat-input button {

    background: linear-gradient(120deg, #1f5ea8 0%, #173f78 100%);

    color: #ffffff;

    border: none;

    min-width: 96px;

    height: 42px;

    padding: 0 14px;

    border-radius: 8px;

    font-size: 14px;

    font-weight: 700;

    cursor: pointer;

    transition: background 0.2s ease-in-out, opacity 0.2s;

}

.chat-input button:hover {

    filter: brightness(1.05);

}

.chat-empty-state {

    margin: auto;

    text-align: center;

    color: #64748b;

    font-size: 13px;

    padding: 14px;

}

.chat-empty-state i {

    display: block;

    font-size: 22px;

    margin-bottom: 7px;

    opacity: .45;

}

.chat-messages::-webkit-scrollbar {

    width: 8px;

}

.chat-messages::-webkit-scrollbar-track {

    background: rgba(148, 163, 184, 0.15);

    border-radius: 10px;

}

.chat-messages::-webkit-scrollbar-thumb {

    background: rgba(30, 79, 163, 0.45);

    border-radius: 10px;

}

.chat-input button:disabled {

    opacity: 0.75;

    cursor: wait;

}

@media (max-width: 540px) {

    .chat-box {

        right: 12px;

        bottom: 116px;

        width: calc(100vw - 24px);

    }

    .chat-icon {

        right: 12px;

        bottom: 50px;

    }

}

@media (max-width: 400px) {

    .chat-form {

        padding: 12px;

    }

    .chat-messages {

        min-height: 240px;

    }

    .chat-input {

        flex-direction: column;

        align-items: stretch;

    }

    .chat-input button {

        width: 100%;

        min-width: 0;

    }

}

