:root {
    --border-radius-default: 0.25rem;
    --border-radius-lg: 0.5rem;
    --border-radius-xl: 0.75rem;
    --border-radius-full: 9999px;
    
    --container-max: 1280px;
    --gutter: 24px;
}

.container{
    max-width: var(--container-max); /* AJOUT ICI */
    margin: 0 auto 4rem; /* center + margin bottom */
    padding: 0 var(--gutter);
}

/* Breadcrumbs */
.breadcrumbs {
    margin: 24px auto;
    padding: 30px var(--gutter) 0px;
    font-size: 14px;
    color: var(--on-surface-variant);
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumbs span {
    color: var(--gray-500);
}

.breadcrumbs a{
    color: var(--brand-teal);
}

.breadcrumbs a:hover {
    color: #1bbfd8;
}

.breadcrumb-active {
    color: #1bbfd8;
    font-weight: 600;
}

h1 {
    font-size: 25px;
    font-weight: 800;
    padding: 24px;
    color: var(--on-surface);
}

/* Filter Bar */
.filter-bar {
    background: var(--surface-container-lowest);
    padding: 16px;
    border-radius: var(--border-radius-xl);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    gap: 16px;
}

.search-container {
    flex-grow: 1;
    position: relative;
}

.search-container input {
    width: 100%;
    padding: 12px 40px 12px 16px;
    background-color: rgba(0, 0, 0, 0.1);
    border:1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius-lg);
    font-size: 14px;
}

.search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--on-surface-variant);
    font-size: 20px;
}

.filter-select {
    width: 200px;
    padding: 12px 16px;
    border:1px solid rgba(0, 0, 0, 0.2);
    border-radius: var(--border-radius-lg);
    font-size: 14px;
    color: var(--on-surface-variant);
    background: white;
}

/* Layout Grid */
.content-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 32px;
    align-items: start;
}

.grid-right{
    display: grid;
    grid-template-rows: auto 1fr;
}

/* Sidebar Card */
.sidebar-card {
    background: var(--surface-container-lowest);
    border-radius: var(--border-radius-xl);
    box-shadow: 0px 0px 25px -5px rgba(0, 0, 0, 0.8);
    position: sticky;
    top: 104px;
}

.promo-img {
    width: 100%;
    height: 160px;
    background: #e0e0e0;
    border-radius: 0.5rem 0.5rem 0rem 0rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.promo-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.status-badge {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 8px;
    background: rgba(242, 140, 40, 0.1);
    color: var(--primary-container);
    border-radius: 4px;
}

.promo-stats {
    padding: 24px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--surface-container-low);
    font-size: 14px;
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-label {
    color: var(--gray-800);
    font-weight: 700;
    display: flex;
    justify-content: center;
    gap: 5px;
}

.stat-label .icon{
    color: var(--brand-teal);
}

.stat-value {
    font-size: 13px;
    font-weight: 600;
}

.btn-full {
    width: auto;
    padding: 14px;
    margin: 24px 74px;
    align-self: center;
}

/* Student Card */
.student-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius-xl);
}

.student-card {
    background: var(--surface-container-lowest);
    border-radius: var(--border-radius-xl);
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 2px solid transparent;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
}

.student-card:hover {
    border-color: var(--brand-teal);
    transform: translateY(-5px);
}

.student-info {
    display: flex;
    align-items: center;
    gap: 24px;
    min-width: 250px;
}

.avatar {
    width: 60px;
    height: 60px;
    border-radius: var(--border-radius-full);
    background: #eee;
    border: 2px solid var(--primary-container);
    padding: 2px;
    overflow: hidden;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius-full);
}

.name-meta h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--on-surface);
}

.name-meta p {
    font-size: 14px;
    color: var(--on-surface-variant);
}

.skill-tags {
    display: flex;
    gap: 8px;
    flex-grow: 1;
    padding: 0 24px;
}

.tag {
    padding: 4px 12px;
    background: var(--surface-container-low);
    border-radius: var(--border-radius-full);
    font-size: 12px;
    font-weight: 500;
    color: var(--on-surface-variant);
}

.btn-student {
    background: transparent;
    border-radius: 0.5rem;
    border: 2px solid var(--brand-teal);
    color: var(--brand-teal);
    padding: 8px 24px;
    font-weight: 700;
    font-size: 14px;
}

.btn-student:hover {
    background: var(--brand-teal);
    color: white;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 48px 0;
}

.page-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-lg);
    font-size: 14px;
    font-weight: 600;
    background: white;
    color: var(--gray-800);
}

.page-link.active {
    background: var(--brand-teal);
    color: white;
}

.page-link:not(.active, .direction):hover {
    background: #1bbfd8;
    color: white;
}

.direction{
    background-color: #ff9012;
    color: white;
}

.pagination-dots {
    color: var(--brand-teal);
    padding: 0 4px;
}

/* ==========================================================
   RESPONSIVE - 1200px
========================================================== */
@media (max-width:1200px){

    .content-grid{
        grid-template-columns: 1fr; /* Passe en 1 colonne */
        gap: 24px;
    }

    .sidebar-card{
        position: static; /* enleve le sticky */
        order: 2; /* met la sidebar en dessous */
    }

    .grid-right{
        order: 1; /* met la liste en haut */
    }

    .filter-bar{
        gap: 12px;
    }

    .search-container{
        width: 100%;
        flex: 1 1 100%;
    }

    .filter-select{
        flex: 1 1 calc(50% - 6px);
        width: auto;
        min-width: 160px;
    }
}

/* ==========================================================
   RESPONSIVE - TABLETTE 992px
========================================================== */
@media (max-width:992px){

    .student-card{
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .student-info{
        width: 100%;
    }

    .skill-tags{
        width: 100%;
        padding: 0;
        flex-wrap: wrap;
        margin: 8px 0;
    }

    .btn-student{
        width: 100%;
        text-align: center;
    }
}

/* ==========================================================
   RESPONSIVE - MOBILE 768px
========================================================== */
@media (max-width:768px){

    .container{
        padding: 0 16px;
    }

    .breadcrumbs{
        font-size: 13px;
        flex-wrap: wrap;
    }

    h1{
        font-size: 22px;
        padding: 16px;
    }

    .filter-bar{
        flex-direction: column;
    }

    .search-container,
    .filter-select{
        width: 100%;
        flex: 1 1 100%;
    }

    .student-info{
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .avatar{
        width: 70px;
        height: 70px;
    }

    .skill-tags{
        justify-content: center;
    }

    .pagination{
        flex-wrap: wrap;
    }
}

/* ==========================================================
   PETITS MOBILES 480px
========================================================== */
@media (max-width:480px){

    .student-card{
        padding: 16px;
    }

    .tag{
        font-size: 11px;
    }

    .btn-student{
        padding: 12px;
    }

    .page-link{
        width: 34px;
        height: 34px;
        font-size: 12px;
    }
}