/* =============================== */
/* GLOBAL */
/* =============================== */

body{
    margin:0;
    background:#0a0a0a;
    color:white;
    font-family:'Poppins', sans-serif;
}

/* container */
.container{
    max-width:900px;
    margin:50px auto;
    padding:40px;

    background:rgba(255,255,255,0.03);
    border-radius:20px;

    box-shadow:0 0 40px rgba(0,255,255,0.15);
    backdrop-filter:blur(10px);

    /* 🔥 FIX DIMANCHE */
    padding-bottom:60px;
}

/* =============================== */
/* TITRES */
/* =============================== */

h1{
    text-align:center;
    font-family:'Orbitron';
    color:#00f7ff;
    margin-bottom:30px;

    text-shadow:0 0 15px rgba(0,255,255,0.6);
}

h2{
    margin-top:40px;
    color:#9146FF;
}

/* =============================== */
/* TABLEAU */
/* =============================== */

.planning{
    margin-top:20px;
    border-radius:15px;

    /* 🔥 FIX PRINCIPAL */
    overflow:visible;
}

/* lignes */
.row{
    display:grid;
    grid-template-columns:1fr 1fr 2fr;

    padding:15px;

    border-bottom:1px solid rgba(255,255,255,0.08);

    opacity:0;
    transform:translateY(15px);

    animation:fadeIn 0.6s forwards;

    transition:all 0.3s ease;
    position:relative;
}

/* header */
.header{
    font-weight:bold;
    background:rgba(255,255,255,0.08);
}

/* zebra */
.row:nth-child(even){
    background:rgba(255,255,255,0.02);
}

/* hover */
.row:hover{
    background:rgba(145,70,255,0.15);
    transform:scale(1.02);
    box-shadow:0 0 20px rgba(145,70,255,0.3);
}

/* =============================== */
/* JOUR ACTUEL */
/* =============================== */

.today{
    background:rgba(0,255,255,0.12) !important;
    border-left:4px solid #00f7ff;

    box-shadow:0 0 20px rgba(0,247,255,0.4);
    animation:glowToday 2s infinite alternate;
}

@keyframes glowToday{
    from{
        box-shadow:0 0 10px rgba(0,247,255,0.2);
    }
    to{
        box-shadow:0 0 25px rgba(0,247,255,0.6);
    }
}

/* =============================== */
/* LIVE BADGE */
/* =============================== */

.live{
    color:#ff4444;
    font-weight:bold;
    text-shadow:0 0 10px red;
    animation:pulseLive 1s infinite;
}

@keyframes pulseLive{
    0%{ opacity:1 }
    50%{ opacity:0.5 }
    100%{ opacity:1 }
}

/* =============================== */
/* ANIMATION */
/* =============================== */

@keyframes fadeIn{
    to{
        opacity:1;
        transform:translateY(0);
    }
}

/* =============================== */
/* ADMIN */
/* =============================== */

.admin-login{
    display:flex;
    gap:10px;
    margin-top:20px;
}

.admin-login input{
    flex:1;

    padding:12px;
    border-radius:10px;

    border:1px solid rgba(255,255,255,0.15);
    background:rgba(255,255,255,0.05);

    color:white;
    outline:none;
}

.admin-btn{
    padding:12px 20px;
    border:none;
    border-radius:10px;

    background:#9146FF;
    color:white;

    cursor:pointer;
    transition:0.3s;
}

.admin-btn:hover{
    background:#7b3df0;
}

/* =============================== */
/* PANEL ADMIN */
/* =============================== */

.admin-panel{
    display:none;

    margin-top:20px;
    padding:20px;

    border-radius:15px;
    background:rgba(255,255,255,0.05);

    border:1px solid rgba(255,255,255,0.1);
}

#planningForm{
    display:flex;
    flex-direction:column;
    gap:12px;
}

#planningForm input,
#planningForm select{
    padding:12px;

    border-radius:10px;
    border:1px solid rgba(255,255,255,0.15);

    background:rgba(255,255,255,0.05);
    color:white;

    outline:none;
    transition:0.3s;
}

#planningForm input:focus,
#planningForm select:focus{
    border-color:#9146FF;
    box-shadow:0 0 10px rgba(145,70,255,0.5);
}

select option{
    background:#111;
    color:white;
}

/* =============================== */
/* BUTTON */
/* =============================== */

.update-btn{
    margin-top:10px;

    padding:14px;

    border:none;
    border-radius:50px;

    background:linear-gradient(45deg,#9146FF,#00f7ff);

    color:white;
    font-weight:bold;

    cursor:pointer;

    box-shadow:0 0 20px rgba(145,70,255,0.5);

    transition:0.3s;
}

.update-btn:hover{
    transform:scale(1.05);
    box-shadow:0 0 30px rgba(0,247,255,1);
}

/* =============================== */
/* RESPONSIVE */
/* =============================== */

@media(max-width:768px){

    .row{
        grid-template-columns:1fr;
        gap:5px;
    }

    .admin-login{
        flex-direction:column;
    }
}
/* =============================== */
/* BOUTON RETOUR */
/* =============================== */

.back-btn{
    position:fixed;
    bottom:20px;
    left:50%;
    transform:translateX(-50%);

    padding:14px 30px;

    border-radius:50px;
    text-decoration:none;

    font-family:'Poppins', sans-serif;
    font-weight:600;
    font-size:14px;

    color:white;

    background:linear-gradient(45deg,#9146FF,#00f7ff);

    box-shadow:0 0 15px rgba(0,247,255,0.5);

    z-index:999;

    transition:0.3s;
}

/* hover */
.back-btn:hover{
    transform:translateX(-50%) scale(1.1);
    box-shadow:0 0 25px rgba(0,247,255,0.8);
}