/* =========================================
   Variables CSS & Configuration Globale
   ========================================= */
:root {
    --primary-green: #006837;
    /* Vert Cégep (Approximatif) */
    --cegep-yellow: #d4db1c;
    /* Jaune Accent (Victo) */
    --light-bg: #f4f7f6;
    /* Fond clair */
    --text-color: #333;
    /* Couleur texte principal */
    --card-bg: #fff;
    /* Fond des cartes */
    --border-radius: 8px;
    /* Rayon des bordures standard */
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    /* Ombre portée standard */
}

/* =========================================
   Styles de Base (Reset & Body)
   ========================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--primary-green);
    color: var(--text-color);
    margin: 0;
}

/* =========================================
   En-tête (Header)
   ========================================= */
header {
    background-color: var(--primary-green);
    color: white;
    padding: 20px 40px 70px 40px;
    /* Increased bottom padding for admin buttons */
    border-bottom: 4px solid var(--cegep-yellow);
    position: relative;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

/* ... existing styles ... */

.admin-link {
    position: absolute;
    bottom: 15px;
    /* Positioned clearly in the bottom padding area */
    right: 40px;
}

.header-left h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.header-left p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

.program-title {
    display: flex;
    align-items: center;
    border-right: 2px solid rgba(255, 255, 255, 0.3);
    padding-right: 20px;
}

.cegep-logo {
    display: flex;
    align-items: center;
}



/* Styles du bouton admin */
.btn-admin {
    background: #2c3e50;
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: background 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.btn-admin:hover {
    background: #1a252f;
}

/* =========================================
   Contenu Principal (Main)
   ========================================= */
main {
    padding: 40px;
    max-width: 1600px;
    margin: 0 auto;
}

.page-title {
    text-align: center;
    color: white;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.page-title h2 {
    font-size: 2rem;
    font-weight: 500;
}

/* Filtres de session */
.filters {
    margin-bottom: 30px;
}

.session-filter {
    padding: 10px 15px;
    border-radius: 5px;
    border: none;
    font-size: 1rem;
    min-width: 200px;
}

/* =========================================
   Grille et Cartes de Session
   ========================================= */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

/* Carte de Session */
.session-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.session-header {
    padding: 15px;
    border-bottom: 2px solid var(--primary-green);
}

.session-header h3 {
    color: var(--primary-green);
    font-size: 1.1rem;
    font-weight: 700;
}

.session-body {
    padding: 15px;
    background: #fdfdfd;
    flex-grow: 1;
}

/* =========================================
   Semaines et Activités
   ========================================= */
.week-group {
    margin-bottom: 20px;
}

.week-title {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
    font-weight: 500;
}

.activity-card {
    background: #f4f6f8;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 10px;
    border-left: 4px solid #ccc;
    transition: transform 0.2s;
}

.activity-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Indicateur Rouge (Obligatoire) */
.activity-card.obligatoire {
    border-left-color: #e74c3c;
}

/* Indicateur Bleu (Facultatif/Info) */
.activity-card.facultatif {
    border-left-color: #3498db;
}

/* Indicateur Jaune (Important) */
.activity-card.important {
    border-left-color: var(--cegep-yellow);
}

/* Codage couleur par besoin (B1-B8) */
.activity-card.B1 {
    border-left-color: #9b59b6;
    /* Violet - Exigences du contexte scolaire */
}

.activity-card.B2 {
    border-left-color: #e67e22;
    /* Orange - Attentes du personnel */
}

.activity-card.B3 {
    border-left-color: #16a085;
    /* Teal - Organiser son temps */
}

.activity-card.B4 {
    border-left-color: #e91e63;
    /* Rose - Routine de travail */
}

.activity-card.B5 {
    border-left-color: #3f51b5;
    /* Indigo - Sentiment de compétence */
}

.activity-card.B6 {
    border-left-color: #8bc34a;
    /* Lime - Charge de travail */
}

.activity-card.B7 {
    border-left-color: #ff7043;
    /* Coral - Méthodes de travail */
}

.activity-card.B8 {
    border-left-color: #00bcd4;
    /* Cyan - Attention et concentration */
}

.activity-title {
    font-weight: 700;
    margin-bottom: 5px;
    color: #2c3e50;
}

.activity-desc {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 10px;
    line-height: 1.4;
}

.activity-meta {
    display: flex;
    gap: 15px;
    font-size: 0.8rem;
    color: #777;
    margin-bottom: 10px;
}

.activity-meta i {
    width: 16px;
    text-align: center;
}

.tags {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.tag {
    background: #e0e0e0;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    color: #555;
}

.tag.obligatoire {
    background: #fadbd8;
    color: #c0392b;
}

.tag.test {
    background: #d6eaf8;
    color: #2980b9;
}

.resources {
    margin-top: 10px;
    display: flex;
    gap: 10px;
}

.btn-resource {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border: 1px solid var(--primary-green);
    color: var(--primary-green);
    border-radius: 15px;
    text-decoration: none;
    font-size: 0.8rem;
    background: white;
}

.btn-resource:hover {
    background: var(--primary-green);
    color: white;
}

/* =========================================
   Formulaire de Connexion & Admin
   ========================================= */
.login-container {
    max-width: 400px;
    margin: 50px auto;
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
}

.login-container input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.btn-primary {
    background: var(--primary-green);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary:hover {
    background: #00562d;
}

/* Admin Dashboard */
.admin-container {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
}

/* 2026 Modern UI Updates */



/* Modern Card Hover effects */
.session-card {
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease;
}

.session-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.activity-card {
    border-radius: 12px;
    border: none;
    border-left: 5px solid #ccc;
    /* Maintain color code */
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

/* Rounded buttons for 2026 feel */
.btn-resource {
    border-radius: 30px;
    padding: 6px 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-resource:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0, 104, 55, 0.2);
}