﻿html, body {
    position: static !important;
    z-index: auto !important;
}

:root {
    --background-color: #f5f5f5;
    --card-background: white;
    --card-shadow: 0 2px 10px rgba(0,0,0,0.1);
    --primary-color: #0078d4;
    --text-color: #333;
}

body {
    background: var(--background-color);
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

/* Toujours au-dessus de tout */
.my-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

/* Toujours au-dessus du backdrop */
.my-modal {
    position: relative;
    z-index: 21000;
    background: white;
    padding: 30px;
    border-radius: 10px;
    width: 350px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.my-modal button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 10px;
    width: 100%;
    font-size: 16px;
}

.my-modal button:hover {
    background: #005fa3;
}

.my-modal button.cancel {
    background: #ccc;
    color: #333;
}

.my-modal button.cancel:hover {
    background: #bbb;
}

.my-modal input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
    margin-bottom: 12px;
    box-sizing: border-box;
    background: #fafafa;
}

.my-modal input + input {
    margin-top: 12px;
}

button.modal-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: #ff3b30;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    z-index: 9999;
}

.modal-close-btn:hover {
    transform: scale(1.15);
    background: #ff1f14;
}

/* Icône Material Symbols */
.modal-close-btn .material-symbols-outlined {
    font-size: 18px;
    color: white;
    line-height: 1;
}

.my-modal.large {
    width: 900px;
    max-height: 80vh;
    overflow-y: auto;
    background: white;
    border-radius: 10px;
    padding: 0;
    display: flex;
    flex-direction: column;
    /*position: relative;*/
}

div.modal-header {
    padding: 16px;
    border-bottom: 1px solid #ddd;
    background: #004f8a;
    color: #fafafa;
    position: relative;
}

div.modal-body {
    padding: 0px;
}

div.modal-footer {
    border-top: 1px solid #ddd;
    display: flex;
    justify-content: center;
    align-items: center;
}