
    body{
        font-family: Arial, sans-serif;
        background:#F8F9FF;
    
        background-size: cover;
        margin-left:320px;
    }
    .logo {
    width: 180px;
    margin-bottom: 15px;
}

    .sidebar {
        width:200px;
        background: linear-gradient(180deg,#5A2EE5,#D439A8,#FF8A00);
        height:100vh;
        padding:15px;
        color:white;
        position:fixed; 
        left:0;
        top: 0;
        box-shadow: 2px 0 10px black;
    }
.sidebar a {
    display:block;
    margin-top:10px;
    color:white;
    padding:10px;
    text-decoration:none;
    margin-bottom:5px;
    border-radius:35px;
    transition: all 0.3s ease;
}

h2 { 
    text-align:center;
     margin-bottom:30px;
    color:#333;
    text-shadow: 1px 1px 2px #aaa;
    
     }


.sidebar a:hover {
  background:#334155;
  transform: translateX(10px);
}

table{
    border-collapse:collapse;
    width:80%;
    margin-top:15px;
    background-color: #f2f2f2;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
table,th,td{
    border:2px solid #555;
    padding:8px;
    text-align:left;
}
input,select,textarea{
    width: 70%;
    padding:8px;
    border:1px solid #ccc;
    border-radius:4px;
    transition: all 0.3s ease;
    resize: none;
    margin-top: 10px;

}
input:hover,button:hover,select:hover{
    box-shadow: 0 0 5px #555;
}
input:hover,
textarea:hover,
button:hover,
select:hover {
    border-color: #2196F3;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #2196F3;
    box-shadow: 0 0 3px #2196F3;
}
fieldset{
    border:2px solid #837c7c;
    padding:10px;
    margin-top:15px;
    background-color: transparent;
    text-shadow: 0 0 0.1em #000;
    width: fit-content;

}
.cards{
    display: flex;
    gap: 10px;
    flex-wrap: wrap;

}

.card1{
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 8px rgba(0,0,0,0.2);
    width: 200px;
    font-size: 18px;
    font-weight: bold;
    transition: .3s ease;
}

.card1 span{
    color: #ff4b4b;
    font-size: 22px;
}

.card1:hover{
    transform: scale(1.05);
    box-shadow: 0px 0px 15px rgba(255,0,0,0.6);
}
a{
    text-decoration: none;
    color: inherit;
}
button{
    color: #000;
    border-radius: 30px;
    padding: 10px 30px;
    margin-top: 10px;
    background-color: rgb(232, 190, 4);
}
.sidebar a.active {
    color: black;
    font-weight: bold;
    transform: translateX(20px);
}

.menu-btn {
    display: none; /* CACHÉ PAR DÉFAUT (DESKTOP) */
   
}


/* telephone */
@media (max-width: 768px) {

    body {
        margin-left: 0;
        padding: 15px;
    }

    .sidebar {
        width: 220px;
        height: 100vh;
        position: fixed;
        top: 0;
        left: -240px;
        z-index: 1000;
        transition: left 0.3s ease;
        box-shadow: 2px 0 15px rgba(0,0,0,0.4);
    }

    
    .sidebar.open {
        left: 0;
    }

    .sidebar a {
        font-size: 15px;
        padding: 12px 15px;
        border-radius: 25px;
    }

    .sidebar a:hover {
        transform: none;
    }

    .sidebar a.active {
        background: white;
        color: black;
        transform: none;
    }

   
    .menu-btn {
        display: block; /* VISIBLE UNIQUEMENT EN MOBILE */
       position: fixed;
        top: 15px;
        left: 15px;
        font-size: 26px;
        background: #5A2EE5;
        color: white;
        border-radius: 50%;
        padding: 8px 14px;
        cursor: pointer;
        z-index: 2000; /* PLUS HAUT QUE SIDEBAR */
        box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    }

    h2 {
        font-size: 22px;
        margin-top: 60px;
    }

    table {
        width: 100%;
        font-size: 14px;
        display: block;
        overflow-x: auto;
    }

    input,
    select,
    textarea,
    button {
        width: 80%;
    }

    .cards {
        flex-direction: column;
    }

    .card1 {
        width: 100%;
        font-size: 16px;
    }
}
