:root{

    --background:#F5F7FB;

    --sidebar:#0D1B3D;
    --sidebar-light:#162C5F;

    --primary:#3B82F6;
    --primary-light:#60A5FA;

    --success:#22C55E;
    --danger:#EF4444;

    --text:#111827;
    --text-light:#64748B;

}

/* ===================================== */
/* RESET */
/* ===================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Inter',sans-serif;
}

body{

    min-height:100vh;

    display:flex;

    background:

    radial-gradient(
        circle at top right,
        rgba(59,130,246,.08),
        transparent 30%
    ),

    radial-gradient(
        circle at bottom left,
        rgba(96,165,250,.05),
        transparent 25%
    ),

    #F5F7FB;

}

/* ===================================== */
/* SIDEBAR */
/* ===================================== */

.sidebar{

    width:270px;

    position:fixed;

    top:0;
    left:0;
    bottom:0;

    padding:30px 20px;

    background:

    linear-gradient(
        180deg,
        var(--sidebar),
        var(--sidebar-light)
    );

    color:white;

    box-shadow:
    0 20px 40px rgba(0,0,0,.25);

}

.logo{

    font-size:24px;

    font-weight:800;

    margin-bottom:40px;

}

.sidebar nav{

    display:flex;
    flex-direction:column;
    gap:10px;

}

.sidebar nav a{

    text-decoration:none;

    color:white;

    padding:14px 18px;

    border-radius:16px;

    transition:.25s;

}

.sidebar nav a:hover{

    background:
    rgba(255,255,255,.08);

}

.sidebar nav a.active{

    background:var(--primary);

}

/* ===================================== */
/* MAIN */
/* ===================================== */

.main-content{

    flex:1;

    margin-left:270px;

    padding:35px;

}

/* ===================================== */
/* HEADER */
/* ===================================== */

.page-header{

    margin-bottom:30px;

}

.page-header h1{

    font-size:38px;

    font-weight:800;

    color:var(--text);

}

.page-header p{

    margin-top:8px;

    color:var(--text-light);

}

/* ===================================== */
/* AJOUT OBJECTIF */
/* ===================================== */

.add-goal-card{

    background:white;

    border-radius:30px;

    padding:30px;

    margin-bottom:30px;

    box-shadow:
    0 20px 50px rgba(15,23,42,.08);

}

.add-goal-card h3{

    margin-bottom:20px;

}

.form-grid{

    display:grid;

    grid-template-columns:
    2fr 1fr 1fr auto;

    gap:15px;

}

.form-grid input{

    height:65px;

    border:none;

    border-radius:20px;

    padding:0 20px;

    background:#F8FAFC;

    font-size:16px;

    font-weight:600;

}

.form-grid input:focus{

    outline:none;

    box-shadow:
    0 0 0 4px rgba(59,130,246,.15);

}

.form-grid button{

    border:none;

    border-radius:20px;

    padding:0 30px;

    background:

    linear-gradient(
        135deg,
        var(--primary),
        var(--primary-light)
    );

    color:white;

    font-weight:700;

    cursor:pointer;

    transition:.25s;

}

.form-grid button:hover{

    transform:translateY(-2px);

}

/* ===================================== */
/* OBJECTIFS */
/* ===================================== */

.goals-grid{

    display:grid;

    grid-template-columns:
    repeat(auto-fill,minmax(380px,1fr));

    gap:25px;

}

.goal-card{

    background:white;

    border-radius:32px;

    padding:25px;

    position:relative;

    overflow:hidden;

    box-shadow:
    0 20px 50px rgba(15,23,42,.08);

    transition:.25s;

}

.goal-card:hover{

    transform:translateY(-5px);

}

.goal-card::before{

    content:"";

    position:absolute;

    top:-50px;
    right:-50px;

    width:140px;
    height:140px;

    border-radius:50%;

    background:

    radial-gradient(
        rgba(59,130,246,.08),
        transparent
    );

}

.goal-title{

    font-size:24px;

    font-weight:800;

    margin-bottom:20px;

}

/* ===================================== */
/* MONTANTS */
/* ===================================== */

.goal-values{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:20px;

}

.goal-current{

    font-size:34px;

    font-weight:800;

    color:var(--primary);

}

.goal-target{

    color:var(--text-light);

    font-weight:600;

}

/* ===================================== */
/* PROGRESS BAR */
/* ===================================== */

.progress{

    width:100%;

    height:16px;

    background:#E5E7EB;

    border-radius:30px;

    overflow:hidden;

    margin-bottom:15px;

}

.progress-bar{

    height:100%;

    border-radius:30px;

    background:

    linear-gradient(
        90deg,
        #22C55E,
        #4ADE80
    );

    transition:.4s;

}

.goal-percent{

    font-size:18px;

    font-weight:700;

    color:#22C55E;

    margin-bottom:20px;

}

/* ===================================== */
/* ACTIONS RAPIDES */
/* ===================================== */

.save-btn{

    width:100%;

    height:50px;

    border:none;

    border-radius:16px;

    margin-bottom:10px;

    background:
    linear-gradient(
        135deg,
        #3B82F6,
        #60A5FA
    );

    color:white;

    font-weight:700;

    cursor:pointer;

    transition:.25s;

}

.save-btn:hover{

    transform:translateY(-2px);

}

.goal-actions{

    display:grid;

    grid-template-columns:
    repeat(4,1fr);

    gap:10px;

    margin-bottom:20px;

}

.goal-actions button{

    height:45px;

    border:none;

    border-radius:14px;

    background:#EFF6FF;

    color:#2563EB;

    font-weight:700;

    cursor:pointer;

    transition:.2s;

}

.goal-actions button:hover{

    transform:translateY(-2px);

}

/* ===================================== */
/* MODIFICATION */
/* ===================================== */

.goal-edit{

    margin-bottom:15px;

}

.goal-edit input{

    width:100%;

    height:55px;

    border:none;

    border-radius:16px;

    background:#F8FAFC;

    padding:0 15px;

    font-size:18px;

    font-weight:700;

}

.goal-edit input:focus{

    outline:none;

    box-shadow:
    0 0 0 4px rgba(59,130,246,.15);

}

/* ===================================== */
/* SUPPRESSION */
/* ===================================== */

.delete-btn{

    width:100%;

    height:50px;

    border:none;

    border-radius:16px;

    background:#FEE2E2;

    color:#B91C1C;

    font-weight:700;

    cursor:pointer;

}

/* ===================================== */
/* RESPONSIVE */
/* ===================================== */

@media(max-width:1100px){

    .form-grid{

        grid-template-columns:1fr;

    }

}

@media(max-width:768px){

    .sidebar{

        width:90px;

    }

    .main-content{

        margin-left:90px;

        padding:20px;

    }

    .logo{

        font-size:14px;

    }

    .sidebar nav a{

        text-align:center;

        font-size:11px;

    }

    .goals-grid{

        grid-template-columns:1fr;

    }

}