:root {
    /* Couleurs principales */
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --background-light: #f8f9fa;
    --text-muted: #6c757d;
    --highlight-bg: #e0e7ff;
    --shadow-color: rgba(0, 0, 0, 0.075);

    /* Dégradé */
    --gradient-start: #667eea;
    --gradient-end: #764ba2;

    /* Couleurs communes */
    --text-dark: #000;
    --text-light: #666;
    --border-color: #e0e0e0;
    --bg-white: #fff;
    --bg-light: #fafafa;

    /* Tokens d'interface partagés */
    --color-primary: var(--primary);
    --color-primary-hover: var(--primary-hover);
    --color-surface: var(--bg-white);
    --color-surface-soft: var(--bg-light);
    --color-text: var(--text-dark);
    --color-text-muted: var(--text-light);
    --color-border: var(--border-color);
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --shadow-sm: 0 0.125rem 0.5rem var(--shadow-color);
    --shadow-md: 0 0.75rem 2rem rgba(15, 23, 42, 0.09);
    --duration-fast: 160ms;
    --ease: cubic-bezier(0.2, 0, 0, 1);

}


/*****************************************
 **************** Commun *****************
 *****************************************/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.container-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.text-decoration-none {
    text-decoration: none !important;
}

/* Headers communs */
h1 {
    font-size: 4em;
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: -2px;
    background: linear-gradient(135deg, var(--text-dark) 0%, #434343 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 2.8em;
    color: var(--text-dark);
    margin-bottom: 60px;
    text-align: center;
    font-weight: 700;
    letter-spacing: -1px;
}

.section {
    margin-bottom: 120px;
}

.subtitle {
    font-size: 1.4em;
    color: var(--text-light);
    margin-bottom: 50px;
    font-weight: 400;
}

/* Boutons */
.btn {
    cursor: pointer;
    border: none;
    font-weight: 400;
    display: inline-block;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-cta {
    padding: 16px 40px;
    font-size: 1em;
    border-radius: 8px;
    font-weight: 500;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0.5rem 1rem rgba(13, 110, 253, 0.3);
    /*transform: translateY(-2px);*/
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}

.btn-secondary {
    background: #f5f5f5;
    color: var(--text-dark);
}

.btn-secondary:hover {
    background: #e5e5e5;
}


/* Grilles */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1px;
    background: var(--border-color);
    border: 1px solid var(--border-color);
}




/*****************************************
 **************** Navbar *****************
 *****************************************/
.navbar-brand {
    font-weight: bold;
    color: var(--primary) !important;
}



/******************************************
 **************** Sidebar *****************
 *****************************************/
.sidebar {
    min-height: calc(100vh - 56px);
    background-color: var(--background-light);
}

.sidebar .nav-link {
    color: var(--text-muted);
    padding: 0.75rem 1rem;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    color: var(--primary);
    background-color: var(--highlight-bg);
}


/******************************************
 ***************** Card *******************
 *****************************************/
.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem var(--shadow-color);
}

.stats-card {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    color: white;
}

.stats-card .card-body {
    padding: 1.5rem;
}



/******************************************
 **************** footer ******************
 *****************************************/
.footer {
    background-color: var(--background-light);
    padding: 2rem 0;
    margin-top: 3rem;
}



/* Media Queries communes */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5em;
    }

    .subtitle {
        font-size: 1.1em;
    }

    h2 {
        font-size: 2em;
    }

    .features-grid,
    .types-grid {
        grid-template-columns: 1fr;
    }

    .input-group {
        flex-direction: column;
    }
}
