#Popup
{
    position:fixed;
    inset:0;
    z-index:1000;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:24px;
    background-color:rgba(3, 18, 38, 0.72);
    backdrop-filter:blur(6px);
    animation:popup-fond-apparition 0.25s ease;
}

#Popup[hidden]
{
    display:none;
}

.popup-data
{
    position:relative;
    width:min(100%, 620px);
    max-height:calc(100vh - 48px);
    padding:42px;
    overflow-y:auto;
    background-color:#ffffff;
    border:1px solid rgba(3, 34, 76, 0.12);
    border-radius:20px;
    box-shadow:0 24px 70px rgba(0, 0, 0, 0.28);
    animation:popup-apparition 0.3s ease;
}

.popup-data-titre
{
    width:100%;
    margin-bottom:28px;
    padding-right:45px;
}

.popup-data-titre h1
{
    margin:0;
    color:#03224c;
    font-family:"Roboto-Bold", sans-serif;
    font-size:clamp(24px, 4vw, 32px);
    line-height:1.2;
}

.popup-data-titre h1::after
{
    display:block;
    width:60px;
    height:4px;
    margin-top:14px;
    border-radius:10px;
    background-color:#03224c;
    content:"";
}

.popup-data-form
{
    display:flex;
    flex-direction:column;
    width:100%;
}

.popup-data-form input,
.popup-data-form textarea
{
    width:100%;
    padding:14px 16px;
    border:1px solid #d4dbe5;
    border-radius:10px;
    outline:none;
    background-color:#f8fafc;
    color:#182230;
    font-family:"Roboto-Regular", sans-serif;
    font-size:15px;
    transition:border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.popup-data-form input
{
    min-height:50px;
}

.popup-data-form textarea
{
    min-height:140px;
    resize:vertical;
    white-space:pre-wrap;
}

.popup-data-form input::placeholder,
.popup-data-form textarea::placeholder
{
    color:#7b8798;
}

.popup-data-form input:hover,
.popup-data-form textarea:hover
{
    border-color:#9eabbc;
}

.popup-data-form input:focus,
.popup-data-form textarea:focus
{
    border-color:#03224c;
    background-color:#ffffff;
    box-shadow:0 0 0 4px rgba(3, 34, 76, 0.12);
}

.popup-data-form input[aria-invalid="true"],
.popup-data-form textarea[aria-invalid="true"]
{
    border-color:#c62828;
    background-color:#fff8f8;
    box-shadow:0 0 0 4px rgba(198, 40, 40, 0.08);
}

.field-error
{
    min-height:20px;
    margin:5px 4px 9px;
    color:#c62828;
    font-family:"Roboto-Regular", sans-serif;
    font-size:12px;
    line-height:1.4;
}

.popup-data-submit
{
    display:flex;
    width:100%;
    margin-top:10px;
}

.popup-data-submit button
{
    display:flex;
    align-items:center;
    justify-content:center;
    width:100%;
    min-height:50px;
    padding:12px 24px;
    border:1px solid #03224c;
    border-radius:10px;
    background-color:#03224c;
    color:#ffffff;
    font-family:"Roboto-Bold", sans-serif;
    font-size:14px;
    letter-spacing:0.6px;
    text-transform:uppercase;
    cursor:pointer;
    box-shadow:0 8px 20px rgba(3, 34, 76, 0.2);
    transition:transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.popup-data-submit button:hover
{
    background-color:#064080;
    box-shadow:0 12px 25px rgba(3, 34, 76, 0.28);
    transform:translateY(-2px);
}

.popup-data-submit button:active
{
    box-shadow:0 5px 12px rgba(3, 34, 76, 0.2);
    transform:translateY(0);
}

.popup-data-submit button:focus-visible,
.popup-close:focus-visible
{
    outline:3px solid rgba(3, 34, 76, 0.3);
    outline-offset:3px;
}

.popup-data-submit button:disabled
{
    cursor:not-allowed;
    opacity:0.65;
    transform:none;
}

.popup-close
{
    position:absolute;
    top:18px;
    right:18px;
    display:flex;
    align-items:center;
    justify-content:center;
    width:42px;
    height:42px;
    padding:10px;
    border:0;
    border-radius:50%;
    background-color:#f0f3f7;
    cursor:pointer;
    transition:background-color 0.2s ease, transform 0.2s ease;
}

.popup-close:hover
{
    background-color:#e1e7ef;
    transform:rotate(90deg);
}

.popup-data-img-quit
{
    display:block;
    width:100%;
    height:100%;
    object-fit:contain;
}

.form-status
{
    min-height:22px;
    margin-top:14px;
    color:#354052;
    font-family:"Roboto-Regular", sans-serif;
    font-size:14px;
    line-height:1.5;
    text-align:center;
}

.erreur-ligne
{
    width:100%;
    min-height:20px;
    margin:5px 4px 9px;
    color:#c62828;
    font-size:12px;
}

@keyframes popup-fond-apparition
{
    from
    {
        opacity:0;
    }

    to
    {
        opacity:1;
    }
}

@keyframes popup-apparition
{
    from
    {
        opacity:0;
        transform:translateY(20px) scale(0.97);
    }

    to
    {
        opacity:1;
        transform:translateY(0) scale(1);
    }
}

@media screen and (max-width:600px)
{
    #Popup
    {
        align-items:flex-end;
        padding:0;
    }

    .popup-data
    {
        width:100%;
        max-height:92vh;
        padding:32px 20px 24px;
        border-radius:20px 20px 0 0;
    }

    .popup-data-titre
    {
        margin-bottom:22px;
        padding-right:40px;
    }

    .popup-data-titre h1
    {
        font-size:22px;
    }

    .popup-close
    {
        top:14px;
        right:14px;
        width:38px;
        height:38px;
    }

    .popup-data-form input
    {
        min-height:48px;
    }

    .popup-data-form textarea
    {
        min-height:120px;
    }
}

@media (prefers-reduced-motion:reduce)
{
    #Popup,
    .popup-data
    {
        animation:none;
    }

    .popup-close,
    .popup-data-submit button
    {
        transition:none;
    }
}