* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}


a {
    text-decoration: none;
}

p {
    line-height: 25px;
}

html {
    height: 100%;
}

body {
    background-color: whitesmoke;
    margin: 0;
    padding: 0;
    position: relative;
}


.container-apps {
    display: flex;
    flex-direction: row;


}


/*-----------------------------MENU------------------------------- */


.cadre-menu {
    width: 15%;
    height: 100vh;
    background-color: gainsboro;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;

}

/* Main styling variables */
:root {
    --primary-color: #3498db;
    --primary-hover: #2980b9;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --border-color: #ddd;
    --count-bg: #e74c3c;
    --menu-width: 240px;
    --header-height: 60px;
    --box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-color);
}

/* Header styles */
.entete-menu {
    height: var(--header-height);
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    padding: 0 20px;
    box-shadow: var(--box-shadow);
}

.entete-menu svg {
    width: 24px;
    height: 24px;
    margin-right: 10px;
}

.entete-menu span {
    font-size: 18px;
    font-weight: 500;
}

/* Sidebar container styling */
.menu {
    width: var(--menu-width);
    background-color: white;
    height: calc(100vh - var(--header-height));
    box-shadow: var(--box-shadow);
    overflow-y: auto;
}

/* Menu list styling */
.menu nav ul,
.cadre-site-reseaux nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu nav ul li,
.cadre-site-reseaux nav ul li {
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

.menu nav ul li div,
.cadre-site-reseaux nav ul li div {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.menu nav ul li:hover div,
.cadre-site-reseaux nav ul li:hover div {
    background-color: var(--light-bg);
}

/* Link styling */
.menu nav ul li a,
.cadre-site-reseaux nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 15px;
    margin-left: 12px;
    flex-grow: 1;
}

/* Count badge styling */
.count {
    background-color: var(--count-bg);
    color: white;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 12px;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

/* Icon styling */
.menu svg,
.cadre-site-reseaux svg {
    width: 18px;
    height: 18px;
    color: var(--primary-color);
}

/* Secondary menu sections */
.cadre-site-reseaux {
    background-color: var(--light-bg);
    border-bottom: 1px solid var(--border-color);
}

/* Logout section */
.logout-menu {
    padding: 15px 20px;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
    background-color: var(--light-bg);
}

.logout-menu a {
    color: #e74c3c;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.logout-menu a:hover {
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .menu {
        width: 100%;
        height: auto;
    }

    .entete-menu {
        position: sticky;
        top: 0;
        z-index: 100;
    }
}

/* Active menu item */
.menu nav ul li.active div {
    background-color: rgba(52, 152, 219, 0.1);
    border-left: 4px solid var(--primary-color);
}

.menu nav ul li.active a {
    color: var(--primary-color);
    font-weight: 500;
}

/*-----------------------------MENU------------------------------- */


/*-----------------------------CONTAINER-ELEMENTS------------------------------- */


.cadre-elements {
    width: 85%;
    background-color: whitesmoke;
    padding-left: 20px;
    padding-right: 20px
   

}

.entete-elements {
    height: 5vh;
    background-color: #222222;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.entete-elements div {
    width: 98%;
    margin: auto;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    color: white;

}

.entete-elements span {
    color: gainsboro;
    position: absolute;
    font-size: 13px;

}

.entete-elements a {
    background-color: whitesmoke;
    padding: 5px;
    color: black;
    border-radius: 5px;
    display: block;
    font-size: 14px;

}

.entete-elements a:hover {
    background-color: gray;
    text-decoration: none;
    color: black;
}

.elements {
    height: 95vh;
    background-color: snow;

}


.cadre-table {
    height: 70vh;
    background-color: #f9f9f9;
    margin-top: -25px;
    overflow: auto;



}

.cadre-table td {
    font-size: 14px;


}

.cadre-search {
    width: 100%;
    height: 5vh;
    background-color: gray;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cadre-search input {
    color: black;
    padding-right: 5px;
    padding-left: 5px;
}

.cadre-search label {
    color: darkred;
    font-size: 13px;

}

.cadre-search select {
    color: black;

}

.cadre-search div {
    width: 98%;
    margin: auto;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    color: white;

}


.entete-table {
    height: 3vh;
    background-color: darkgray;
    display: flex;
    flex-direction: column;
    justify-content: center;


}

.entete-table h1 {
    font-size: 15px;
    text-align: center;
    margin-top: 10px;
    color: #222222;
    font-family: "Times New Roman";
    font-weight: bold;

}

.entete-table h1 span {
    font-size: 25px;


}

.entete-table div {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding-right: 10px;
    padding-left: 10px;


}

.entete-table div li {
    display: block;
    font-weight: bold;
    width: 50%;


}

.items-elements {
    height: 87vh;
    background-color: beige;
    overflow: auto;

}


.numero {

    color: darkred;
    font-weight: bold;

}

.items-elements .cadre-item {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding-right: 10px;
    padding-left: 10px;
    border-bottom: 1px solid darkgray;
    padding-top: 3px;
    padding-bottom: 3px;


}


.items-elements .cadre-item li {
    display: block;
    width: 50%;
    font-size: 12px;


}

.items-elements .cadre-item li a:hover {
    text-decoration: none;


}

.visualiser {
    text-align: center;
}

.first-item {
    cursor: pointer;


}

.last-item {
    text-align: center;
    display: flex;
    flex-direction: row;

}

.entete-details-charge {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    background-color: black;
    color: white;


}


.entete-details-charge h4 {
    text-transform: uppercase;


}

.entete-details-charge a {
    display: block;
    margin-top: 10px;
    color: white;


}

.entete-details-charge a:hover {
    color: grey;


}

.titre-details {
    text-transform: uppercase;
}

.titre-details h1 {
    text-transform: uppercase;
    margin-top: 5px;
    font-weight: bold;
    font-size: 18px;
    color: darkred;
}


.errorlist {
    position: absolute;
    margin-top: -43px;
    font-size: 11px;
    margin-left: 52px;
    background-color: red;

}

.errorlist li {
    display: block;


}

.cadre-excel {
    padding: 10px;


}

.cadre-excel table {
    width: 100%;
    background-color: darkseagreen;
    box-shadow: 2px 2px 2px 2px;
    font-size: 14px;
    text-align: center;

}

.cadre-excel .p1 .p2 {
    background-color: red;


}

.cadre-excel td {
    border: 1px solid gray;


}

.cadre-excel tr {}

.cadre-form {
    height: 92vh;
    background-color: beige;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: auto;

}

.cadre-form .form {
    width: 50%;
    margin: auto;
    background-color: gray;
    box-shadow: 2px 2px 2px 2px black;
    padding-bottom: 20px;


}


.cadre-form .form h4 {
    background-color: black;
    color: white;
    padding: 5px;
    margin-top: 0px;
    text-transform: uppercase;
    font-weight: bold;
    display: flex;
    flex-direction: row;
    justify-content: space-between;

}

.cadre-form .form h4 a {

    color: white;

}

.cadre-form .form label {
    color: darkred;

}

.cadre-form .form textarea {
    height: 80px;

}

.cadre-form .cadre-fields {
    padding-left: 20px;
    padding-right: 20px;
    overflow: auto;
    height: 550px;

}

.cadre-infos-delete {
    width: 90%;
    margin: auto;
    padding: 10px;
    box-shadow: 2px 2px 2px 2px;
    margin-top: 20px;


}

.cadre-infos-delete h3 {
    font-weight: bold;
    color: #222222;
    font-size: 17px;


}

.cadre-infos-delete span {
    font-weight: normal;

}

.cadre-svg-delete {
    width: 100%;
    text-align: center;
    margin-top: 50px;

}

.cadre-svg-delete svg {
    width: 200px;
    height: 200px;


}


.cadre-btn-form {

    text-align: center;
    margin-top: 50px;

}


.cadre-btn-form button {
    margin: auto;
    text-transform: uppercase;
    font-weight: bold;


}

.cadre-dernier-numero {
    text-align: center;
    width: 100%;

}

.cadre-dernier-numero p {
    background-color: red;
    display: inline;
    padding: 5px;
    color: white;
    box-shadow: 2px 2px 2px 2px black;
    border-radius: 2px;


}


/*-----------------------------CONTAINER-ELEMENTS------------------------------- */
.container-login {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;

}

.cadre-logo {
    width: 100%;
    text-align: center;

}

.logo {
    width: 130px;
    margin: auto;

}

.form-login {
    margin: auto;
    background-color: white;
    width: 20%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 2px 2px 2px;

}

.form-login label {
    font-weight: bold;
    color: #222222;

}


.form-login input {
    width: 100%;
    padding: 10px;


}

.form-login button {
    width: 50%;
    margin: auto;
    padding: 10px;
    border: none;
    border-radius: 10px;


}


.export-container {
    max-width: 600px;
    margin: 30px auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #f9f9f9;
}

.form-title {
    text-align: center;
    margin-bottom: 20px;
    color: #2c3e50;
    font-size: 25px;


}