/*=====================================================
    BEN'S LINE DANCE
    Ajouter / Modifier une danse
======================================================*/


/*======================================
            CONTENEUR
=======================================*/

.form-container{

    max-width:1200px;

    margin:50px auto;

    padding:40px 25px;

}



/*======================================
            CARTES
=======================================*/

.form-section{

background:var(--surface);

    margin-bottom:30px;

    padding:30px;

    border-radius:18px;

    border:1px solid var(--border);

box-shadow:var(--shadow);

transition:var(--transition);

}

.form-section:hover{

    transform:translateY(-2px);

    box-shadow:0 15px 30px rgba(0,0,0,.08);

}

/*======================================
            GRILLES
=======================================*/

.grid-2{

    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:25px;

}

.grid-3{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:25px;

}

/*======================================
            LABEL
=======================================*/

label{

    color:var(--text);

}

/*======================================
            INPUTS
=======================================*/

input:focus,
select:focus,
textarea:focus{

    outline:none;

    border-color:var(--primary);

    box-shadow:0 0 0 4px rgba(110,131,83,.15);

}

textarea{

    min-height:160px;

    resize:vertical;

}



/*======================================
            PLACEHOLDER
=======================================*/

::placeholder{

    color:var(--text-light);

}

/*======================================
            BOUTONS
=======================================*/

.actions{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-top:40px;

}

.btn-retour{

    background:var(--surface-alt);

    color:var(--text);

    border:1px solid var(--border);

}

.btn-retour:hover{

    background:var(--secondary);

}

.btn-save{

    background:var(--primary);

    color:white;

    border:none;

    padding:15px 35px;

    border-radius:12px;

    font-size:16px;

    font-weight:bold;

    cursor:pointer;

transition:var(--transition);

}

.btn-save:hover{

    background:var(--primary-dark);

    transform:translateY(-2px);

}

/*======================================
            ALERTES
=======================================*/

.message{

    padding:18px;

    border-radius:12px;

    margin-bottom:25px;

    font-weight:600;

}

.success{

    background:#E8F5E9;

    color:var(--success);

    border-left:6px solid var(--success);

}

.error{

    background:#FFEBEE;

    color:var(--error);

    border-left:6px solid var(--error);

}

/*======================================
            RESPONSIVE
=======================================*/

@media(max-width:900px){

    .grid-2,
    .grid-3{

        grid-template-columns:1fr;

    }

    .actions{

        flex-direction:column;

        gap:20px;

    }

    .btn-retour,
    .btn-save{

        width:100%;

        text-align:center;

    }

    .container{

        margin:20px;

        padding:15px;

    }

}


/*====================================================
                PAGE SUPPRESSION
====================================================*/

.page-header.danger{

    border-left:none;

}

.danger-box{

background:var(--surface);

    border-radius:18px;

    padding:35px;

    box-shadow:var(--shadow);

}

.warning-text{

    color:#b02a37;

    font-size:15px;

    margin-bottom:25px;

}

.dance-preview{

background:var(--surface);

    border-radius:12px;

    padding:25px;

    box-shadow:var(--shadow);

}

.dance-preview h3{

    margin-bottom:25px;

    color:var(--primary);

    font-size:28px;

}

.preview-grid{

    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:18px;

}

.preview-grid div{

    display:flex;

    flex-direction:column;

    padding:12px;

    background:#fafafa;

    border-radius:8px;

}

.preview-grid strong{

    color:var(--primary);

    margin-bottom:5px;

}




.btn-delete{

    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:10px;

    padding:15px 34px;

    border:none;
    border-radius:12px;

    background:linear-gradient(135deg,#d62828,#b00020);

    color:#fff;

    font-size:15px;
    font-weight:700;

    cursor:pointer;

    transition:.30s ease;

    box-shadow:0 10px 25px rgba(176,0,32,.25);

}

.btn-delete:hover{

    transform:translateY(-4px);

    box-shadow:0 18px 35px rgba(176,0,32,.40);

    background:linear-gradient(135deg,#e63946,#c1121f);

}

.btn-delete:active{

    transform:scale(.98);

}

.page-header.danger h1{

    color:#c1121f;

}

.warning-text{

    margin:25px 0;

    padding:18px;

    border-radius:12px;

    background:#fff1f1;


    color:#a10015;

    font-weight:600;

    line-height:1.6;

}

.dance-preview{

    margin-top:25px;

    border-radius:16px;

    overflow:hidden;

}


/*====================================================
                    FORMULAIRE
====================================================*/

.form-group{

    margin-bottom:20px;

}

.form-group label{

    color:var(--primary);

}

.form-group input{

    width:100%;

    padding:14px;

    border:1px solid #ddd;

    border-radius:10px;

    font-size:15px;

}

.form-group input:focus{

    outline:none;



}

.success-message{

    background:#d4edda;

    color:#155724;

    padding:12px;

    border-radius:8px;

    margin-bottom:20px;

}

.error-message{

    background:#f8d7da;

    color:#721c24;

    padding:12px;

    border-radius:8px;

    margin-bottom:20px;

}
