* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

.cv-spinner {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px #ddd solid;
    border-top: 4px #00a0daff solid;
    border-radius: 50%;
    animation: sp-anime 0.8s infinite linear;
}

@keyframes sp-anime {
    100% {
        transform: rotate(360deg);
    }
}

.is-hide {
    display: none;
}

.overlay {
    position: fixed;
    top: 0;
    z-index: 10000;
    width: 100%;
    height: 100%;
    display: none;
    background-color: rgba(0, 0, 0, 0.5);
}

body {
    display: flex;
    min-height: 100vh;
    background-color: #f8f9fa;
    color: #2c3e50;
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600; /* Semi-bold */
    font-size: 5rem;
    color: #63697f;
}

.not_authenticated {
    margin: 0 auto;
    width: 30%;
    transition: margin-left 0.3s;
    padding: 20px;
    text-align: center;
}

.login {
    margin: 0 auto;
    width: 80%;
    transition: margin-left 0.3s;
    padding: 20px;
    text-align: left;
}

h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600; /* Semi-bold */
    font-size: 2rem;
    color: #63697f;
    padding-top: 20px;
    padding-bottom: 20px;
}

h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600; /* Semi-bold */
    font-size: 1.2rem;
    color: #63697f;
    padding-top: 10px;
    padding-bottom: 10px;
}


.form {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: #63697f;
    padding-top: 10px;
    padding-bottom: 10px;
    border-radius: 5px;
    font-size: 0.8rem;
}

.form_2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: #63697f;
    padding-top: 5px;
    padding-bottom: 5px;
    font-size: 0.8rem;
}

.form input[type="text"] {
    font-family: 'Montserrat', sans-serif;

    font-size: 0.8rem;
    color: #1a252f;
    width: 100%;
    height: 25px
}

.form input[type="password"] {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    color: #1a252f;
    width: 100%;
    height: 25px
}

.form select {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    color: #1a252f;
    width: 100%;
    height: 25px
}

.form input[type="number"] {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    color: #1a252f;

    width: 100%;
    height: 25px
}

.form textarea {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    color: #1a252f;
    width: 100%;
    height: 200px;
}

.form input[type="submit"] {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600; /* Semi-bold */
    font-size: 1.1rem;
    color: #63697f;
    padding-top: 10px;
    padding-bottom: 10px;
    width: 100%;
    height: 40px;
    cursor: pointer;
    border-radius: 5px;
}

.form input[type="button"] {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600; /* Semi-bold */
    font-size: 1.1rem;
    color: #63697f;
    padding-top: 10px;
    padding-bottom: 10px;
    width: 100%;
    height: 40px;
    cursor: pointer;
    border-radius: 5px;
}

.form input[type="submit"]:hover {
    color: #ffffff;
    background: #63697f;
    cursor: pointer;
    border-radius: 5px;
}

.form_2 input[type="password"] {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    color: #1a252f;
    width: 100%;
    height: 25px
}

.form_2 select {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    color: #1a252f;
    width: 100%;
    height: 25px
}

.form_2 input[type="number"] {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    color: #1a252f;
    width: 100%;
    height: 25px
}

.form_2 input[type="text"] {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    color: #1a252f;
    width: 100%;
    height: 25px
}

/* Style du menu latéral */
.sidebar {
    width: 250px;
    height: 100vh;
    background-color: #2c3e50;
    color: white;
    position: fixed;
    transition: all 0.3s;
    z-index: 1000;
}

.sidebar.collapsed {
    width: 70px;
}

.sidebar-header {
    padding: 20px;
    text-align: center;
    background-color: #1a252f;
    font-size: 1.2rem;
    font-weight: bold;
}

.sidebar-menu {
    list-style: none;
    padding: 20px 0;
}

.sidebar-menu li {
    padding: 10px 20px;
    transition: background-color 0.3s;
}

.sidebar-menu li:hover {
    background-color: #34495e;
    font-weight: bold;
}

.sidebar-menu li a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.sidebar-menu li a i {
    margin-right: 10px;
    font-size: 1.1rem;
}

.sidebar-menu li a span {
    transition: opacity 0.3s;
}

.sidebar.collapsed .sidebar-menu li a span {
    opacity: 0;
    display: none;
}

/* Style du contenu principal */
.main-content {
    flex: 1;
    margin-left: 250px;
    transition: margin-left 0.3s;
    padding: 20px;
}

.main-content.expanded {
    margin-left: 70px;
}

/* Style du bouton de rétraction */
.toggle-btn {
    position: absolute;
    top: 20px;
    right: -15px;
    background-color: #2c3e50;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Style du header */
.header {
    background-color: white;
    padding: 15px 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: calc(100% - 250px);
    top: 0;
    left: 250px;
    transition: all 0.3s;
    z-index: 999;
}

.header.expanded {
    width: calc(100% - 70px);
    left: 70px;
}

/* Style du contenu */
.content {
    margin-top: 70px;
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Style des messages flash */
.flashes {
    margin-bottom: 20px;
}

.flash {
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 4px;
}

.flash-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.flash-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Style pour les écrans mobiles */
@media (max-width: 768px) {
    .sidebar {
        width: 70px;
    }

    .sidebar.collapsed {
        width: 250px;
    }

    .main-content {
        margin-left: 70px;
    }

    .main-content.expanded {
        margin-left: 250px;
    }

    .header {
        width: calc(100% - 70px);
        left: 70px;
    }

    .header.expanded {
        width: calc(100% - 250px);
        left: 250px;
    }
}

.toggle {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 24px;
}

.toggle input {
    display: none;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #63697f;
    transition: 0.4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: #FFF;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #63697f;
}

input:checked + .slider:before {
    transform: translateX(15px);
}

.conteneur-grid {
    display: grid;
    max-height: 80vh;
    width: 100%;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 10px;
    overflow: auto;
}

.element-grid {
    display: flex; /* Pour centrer le contenu */
    align-items: center; /* Centrage vertical */
    justify-content: center;
}