:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --accent-color: #22c55e;
    --success-color: #168640;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --black-color: #39393a;
    --dark-color: #39393a;
    --light-color: #f8fafc;
    --gradient-primary: linear-gradient(135deg, #22c55e 0%, #15803d 100%);
    --gradient-secondary: linear-gradient(135deg, #171717 0%, #262626 100%);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
    line-height: 1.6;
    color: var(--dark-color);
}

.btn-class {
    background-color: var(--success-color) !important;
    color: white !important;
    border-radius: 8px !important;
    width: 100%;
    padding: 10px;
    font-weight: 500;
    transition: opacity .3s ease;
}

.btn-class:hover {
    background-color: #0b5a28 !important;
    /*opacity: .7;*/
}

.btn-class:focus {
    box-shadow: none !important;
}

.color-text {
    color: var(--dark-color);
}

#sidebar .color-text.hideen_text{
    display: none !important;
}

#sidebar img{
    height: 20%;
    width: 20%;
    object-fit: cover;
}

#sidebar.hide img{
    height: auto;
    width: 100%;
    object-fit: cover;
}

.color-input {
    box-shadow: none !important;
}

.color-input:focus {
    border-color: var(--success-color) !important;
}

.icon-color {
    color: var(--success-color);
    box-shadow: none !important;
    border-color: #000 !important;
}

.icon-color:hover {
    color: var(--success-color) !important;
}

.hero-section {
    background: var(--gradient-primary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="rgba(255,255,255,0.1)" points="0,1000 1000,0 1000,1000"/></svg>');
    background-size: cover;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
}

.hero-title {
    font-size: clamp(1.3rem, 44px, 3.5rem);
    font-weight: 600;
    margin-top: 2.2rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

@media (max-width: 760px){
    .hero-title {
        margin-top: 3.2rem;
        padding-block: 1rem;
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.btn-primary-custom {
    background: var(--gradient-secondary);
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    color: white;
    text-decoration: none;
}

.features-section {
    padding: 80px 0;
    background: var(--light-color);
}

.feature-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid #e5e7eb;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
    font-size: 1.5rem;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.feature-description {
    color: #6b7280;
    line-height: 1.6;
}

.stats-section {
    background: var(--dark-color);
    color: white;
    padding: 60px 0;
}

.stat-item {
    text-align: center;
    padding: 1rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

.cta-section {
    background: var(--gradient-secondary);
    padding: 80px 0;
    text-align: center;
    color: white;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.navbar-custom {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
}

.nav-link {
    font-weight: 500;
    /* color: var(--dark-color) !important; */
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--dark-color);
}

.section-subtitle {
    font-size: 1.1rem;
    text-align: center;
    color: #6b7280;
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .cta-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }
}

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.floating-element {
    position: absolute;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.floating-element:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 10%;
    animation-delay: 2s;
}

.floating-element:nth-child(3) {
    width: 60px;
    height: 60px;
    top: 80%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Avatar et profil utilisateur */
.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 15px;
    background: rgba(255,255,255,0.1);
    border-radius: 25px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.user-profile:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-1px);
}

.user-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--gradient-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
    border: 2px solid rgba(255,255,255,0.3);
    overflow: hidden;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-info {
    display: flex;
    flex-direction: column;
    color: white;
}

.user-name {
    font-weight: 600;
    font-size: 14px;
    margin: 0;
    line-height: 1.2;
}

.user-role {
    font-size: 12px;
    opacity: 0.8;
    margin: 0;
    line-height: 1.2;
}

.logout-btn {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.logout-btn:hover {
    background: rgba(255,255,255,0.2);
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

.logout-btn i {
    font-size: 11px;
}

/* Dropdown pour le profil */
.profile-dropdown {
    position: absolute;
    right: 30px;
    display: inline-block;
}

.profile-dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: white;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 10px;
    z-index: 1000;
    margin-top: 5px;
    overflow: hidden;
}

.profile-dropdown:hover .profile-dropdown-content {
    display: block;
}

.dropdown-item {
    padding: 12px 16px;
    color: var(--dark-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background-color 0.3s ease;
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: var(--success-color) !important;
    text-decoration: none;
}

.dropdown-item i {
    width: 16px;
    text-align: center;
}

/* Responsive pour mobile */
@media (max-width: 768px) {
    .user-profile {
        padding: 6px 10px;
        gap: 8px;
    }

    .user-avatar {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    .user-name {
        font-size: 13px;
    }

    .user-role {
        font-size: 11px;
    }

    .logout-btn {
        padding: 5px 10px;
        font-size: 11px;
    }

    .profile-dropdown-content {
        min-width: 180px;
    }
}

.titre_sidebar {
    display: flex;
    padding: 14px 20px;
    /*background: #d6e2d6;*/
/*    margin-bottom: 20px;*/
    padding-left: 27px;
/*    margin-top: 30px;*/
    color: #0b5a28;
    font-size: 20px;
}

.titre_sidebar.hideen_text{
    display: none !important;
}

/* ============================== CSS REVUS ============================= */

.hero-section{
    position: relative;
}

.nav-item .nav-link{
    color: #FFF !important;
}

.nav-item .nav-link:hover{
     color: #FFF !important;
    opacity: .6;
}

@media (max-width: 768px) {
   .hero-section .hero-content{
        display: flex;
        justify-content: center;
        flex-direction: column;
        text-align: center;
        padding-block: .7rem;
    }

    .hero-content .hero-title{
        font-size: 1.8rem;
    }

    .hero-content .d-flex{
        justify-content: center;
    }
}

/* ============================== CSS Login ============================= */

.slider-box .d-flex.navbar-brand{
    flex-direction: column;
    align-items: center;
}

.d-flex.color-text{
    display: block;
    max-width: 400px;
    text-wrap: wrap;
}

.img__armoirie{
    position: relative;
    height: 100px;
    width: 100px;
    overflow: hidden;
}

@media (min-width: 768px) {
    .img__armoirie{
        height: 200px;
        width: 200px;
    }

}

.img__armoirie img{
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.group__btn{
    display: grid;
    gap: 1rem;
}

.btn-sm{
    max-width: max-content;
    padding-inline: 1rem !important;
    background-color: #ff8880 !important;
    transition: .3s ease;
}

.btn-sm:hover{
    opacity: .7;
    background-color: #ff8880 !important;
}