﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    font-family: Arial, sans-serif;
    color: white;
    background: #050505;
}

/* fond perspective temps */

/* IMAGE FOND HOSPITALIER SOMBRE FLOUE */

body::before{
    content:"";
    position:fixed;
    inset:0;

    z-index:-3;
    pointer-events:none;

    background:
        linear-gradient(
            rgba(0,0,0,.78),
            rgba(0,0,0,.86)
        ),
        url("assets/bg-medical-dark.png");

    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;

    transform:scale(1.08);

    filter:
        blur(4px)
        brightness(.80);

    opacity:.95;
}

/* halo central doux derrière le sablier */

/* halo doré derrière sablier */

body::after{
    content:"";
    position:fixed;

    width:900px;
    height:900px;

    top:50%;
    right:-160px;

    transform:translateY(-50%);
    border-radius:50%;

    pointer-events:none;
    z-index:-2;

    background:
        radial-gradient(circle,
            rgba(255,190,70,.14),
            rgba(255,170,40,.05) 35%,
            transparent 70%);

    filter:blur(90px);
}


.page {
    min-height: 100vh;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 460px;
    align-items: center;
    gap: 45px;
    padding: 50px 7%;
}

.left-content{
    max-width:720px;
    backdrop-filter:blur(10px);

    background:
        rgba(0,0,0,.18);

    padding:40px;
    border-radius:30px;

    border:
        1px solid rgba(255,255,255,.08);

    box-shadow:
        0 30px 80px rgba(0,0,0,.35);
}

.badge {
    display: inline-block;
    margin-bottom: 24px;
    padding: 10px 20px;
    border-radius: 30px;
    background: rgba(255, 211, 106, 0.12);
    border: 1px solid rgba(255, 211, 106, 0.35);
    color: #ffd36a;
    font-size: 15px;
    letter-spacing: 1px;
}

/* TITRE CORRIGÉ */

.main-title {
    max-width: 680px;
    margin-bottom: 32px;
    line-height: 1.35;
    letter-spacing: 0;
    font-weight: 500;
}

.main-title span {
    display: block;
    font-size: clamp(26px, 2vw, 34px);
    color: rgba(255,255,255,0.92);
    font-weight: 400;
    margin-bottom: 8px;
}

.main-title strong {
    display: block;
    font-size: clamp(34px, 2.7vw, 48px);
    font-weight: 700;
    color: #ffd36a;
    line-height: 1.2;
}

.contact-btn,
.send-btn {
    border: none;
    padding: 16px 34px;
    border-radius: 50px;
    background: linear-gradient(135deg, #ffd36a, #c98200);
    color: #1a1204;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.contact-btn:hover,
.send-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(255,190,60,0.35);
}

.right-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-self: end;
}

.hourglass-box {
    width: 390px;
}

canvas {
    width: 100%;
    height: auto;
    display: block;
}

.status-text {
    margin-top: 8px;
    font-size: 21px;
    color: #d8d8d8;
    letter-spacing: 1px;
}

/* MODAL */

.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.78);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 480px;
    padding: 35px;
    border-radius: 25px;
    background: #111;
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 30px 80px rgba(0,0,0,0.75);
}

.modal-content h2 {
    margin-bottom: 25px;
    color: #ffd36a;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 18px;
    background: none;
    border: none;
    color: white;
    font-size: 34px;
    cursor: pointer;
}

form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

input,
textarea {
    width: 100%;
    padding: 15px 17px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.06);
    color: white;
    font-size: 15px;
    outline: none;
}

textarea {
    min-height: 120px;
    resize: none;
}

input::placeholder,
textarea::placeholder {
    color: #aaa;
}

/* RESPONSIVE */

@media (max-width: 950px) {
    .page {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 35px 20px;
    }

    .left-content {
        margin: auto;
    }

    .main-title {
        text-align: center;
    }

    .main-title span {
        font-size: 22px;
    }

    .main-title strong {
        font-size: 30px;
    }

    .right-content {
        justify-self: center;
    }

    .hourglass-box {
        width: 330px;
    }

    .status-text {
        font-size: 18px;
    }
}

.hourglass-box{
    width:390px;
    position:relative;
}

.hourglass-box::before{
    content:"";
    position:absolute;
    inset:-40px;
    border-radius:50%;

    background:
        radial-gradient(circle,
            rgba(255,200,90,.18),
            transparent 65%);

    filter:blur(70px);

    z-index:-1;
}

.alert{
    position:fixed;
    top:25px;
    left:50%;
    transform:translateX(-50%);

    z-index:3000;

    padding:16px 28px;
    border-radius:50px;

    font-weight:600;
    font-size:15px;

    background:rgba(10,10,10,.92);

    backdrop-filter:blur(10px);

    border:1px solid rgba(255,255,255,.12);

    box-shadow:
        0 12px 40px rgba(0,0,0,.45);

    animation:
        fadeIn .4s ease,
        fadeOut .7s ease 4s forwards;
}

.alert.success{
    color:#9cffb8;
    border-color:rgba(120,255,170,.3);
}

.alert.fail,
.alert.error,
.alert.email{
    color:#ff9f9f;
    border-color:rgba(255,120,120,.3);
}

@keyframes fadeIn{
    from{
        opacity:0;
        transform:
            translateX(-50%)
            translateY(-20px);
    }

    to{
        opacity:1;
        transform:
            translateX(-50%)
            translateY(0);
    }
}

@keyframes fadeOut{
    to{
        opacity:0;
        transform:
            translateX(-50%)
            translateY(-20px);
            visibility:hidden;
    }
}