/* Reset basic pour la liste */
ul,
li {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
}

/* Container principal */
.ns-container {
    max-width: 1208px;
    width: 100%;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: 'Poppins', sans-serif;
}

/* Titres */
.ns-title {
    text-align: center;
    margin-bottom: 60px;
    font-size: 2.5rem;
    color: var(--dark);
    font-weight: 700;
}

.ns-section {
    margin-bottom: 80px;
}

.ns-section-title {
    margin-bottom: 30px;
    font-size: 1.8rem;
    font-weight: 600;
    border-bottom: 2px solid currentColor;
    display: inline-block;
    padding-bottom: 10px;
}

/* Grille responsive */
.ns-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

/* Cartes */
.ns-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.ns-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.ns-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.ns-card-body {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.ns-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--dark);
}

.ns-card-text {
    color: var(--gray-600);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: justify;
}

/* Liste des matières */
.ns-subjects {
    margin-bottom: 20px;
}

.ns-label-primary {
    color: var(--primary);
    font-size: 0.9rem;
}

.ns-label-secondary {
    color: var(--secondary);
    font-size: 0.9rem;
}

.ns-label-danger {
    color: var(--accent);
    font-size: 0.9rem;
}

.ns-list li {
    color: var(--gray-500);
    font-size: 0.85rem;
    margin-bottom: 5px;
}

/* Footer de la carte (Alert + Bouton) */
.ns-footer {
    margin-top: auto;
}

.ns-alert {
    background-color: var(--gray-50);
    padding: 15px;
    border-radius: 10px;
    font-size: 0.85rem;
    color: var(--gray-700);
    margin-bottom: 20px;
    border-left: 4px solid var(--warning);
}

.ns-icon-warning {
    color: var(--warning);
    margin-right: 5px;
}

/* Boutons */
.ns-btn {
    display: block;
    width: 100%;
    padding: 12px;
    text-align: center;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.ns-btn-primary {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.ns-btn-primary:hover {
    background-color: var(--primary);
    color: white;
}