@import url("https://use.typekit.net/flr4sxl.css");

/* ================================= */
/* VARIABLES CSS LEGACY - TRANSITION VERS TAILWIND */
/* ================================= */
:root {
  --main-bg-color: #0e2f59;
  --secondary-bg-color: #f5e100;
  --primary-color: #4caf50;
  --disable-bg-color: #e2e2e2;
  --complete-bg-color: #28a745;
  --danger-color: #dc3545;
  --warning-color: #ffc107;
  --info-color: #17a2b8;
  --light-gray: #f8f9fa;
  --border-color: #dee2e6;
  --text-color: #333;
  --text-muted: #6c757d;
  --text-light: #ffffff;
  --background-dark: #1a1a1a;
  --border-radius: 18px;
  --box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  --transition: all 0.3s ease;
}

/* ================================= */
/* RESET ET STYLES DE BASE MINIMAUX */
/* ================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "neulis-sans", sans-serif;
    font-size: 14px;
    font-weight: 300;
    font-style: normal;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fbfbfb;
}

/* ================================= */
/* LAYOUT PRINCIPAL - SIDEBAR & MAIN */
/* ================================= */
.homepage {
    margin: 0;
    padding: 0;
    background: #fbfbfb;
}

.main-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background: white;
    border-right: 1px solid var(--border-color);
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.main-content {
    margin-left: 250px;
    flex: 1;
    padding-top: 70px;
    min-height: 100vh;
}

.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* ================================= */
/* HEADER PRINCIPAL */
/* ================================= */
.main-header {
    position: fixed;
    top: 0;
    left: 250px;
    right: 0;
    background: white;
    border-bottom: 1px solid var(--border-color);
    z-index: 999;
    height: 70px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    transition: left 0.3s ease;
}

/* Header mobile et desktop */
.mobile-header {
    display: none;
}

.desktop-header {
    display: flex;
    align-items: center;
    width: 100%;
}

.back-button {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    font-size: 16px;
    margin-right: 15px;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.back-button:hover {
    background-color: var(--light-gray);
}

.title-section {
    flex: 1;
    display: flex;
    align-items: center;
    font-size: 18px;
    font-weight: 500;
    color: var(--text-color);
}

.section-title {
    color: var(--main-bg-color);
}

.title-separator {
    margin: 0 10px;
    color: var(--text-muted);
}

.article-title {
    color: var(--text-muted);
    font-weight: 400;
}

/* ================================= */
/* DASHBOARD LAYOUT */
/* ================================= */
.welcome-header {
    text-align: left;
    margin-bottom: 40px;
}

.welcome-header h1 {
    font-size: 2.5rem;
    color: var(--main-bg-color);
    margin-bottom: 10px;
    font-weight: 500;
}

.welcome-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 50px;
}

.next-session-card,
.victory-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    border: 1px solid var(--border-color);
}

.next-session-card h2,
.victory-card h2 {
    font-size: 1.3rem;
    color: var(--main-bg-color);
    margin-bottom: 20px;
    font-weight: 500;
}

/* ================================= */
/* PAGES LIST */
/* ================================= */
.pages-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.page-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.2s ease;
}

.page-card-link:hover {
    transform: translateY(-2px);
}

.page-preview {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    border: 1px solid var(--border-color);
    transition: box-shadow 0.2s ease;
}

.page-preview:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.page-thumbnail {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.page-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-content-wrapper {
    padding: 20px;
}

.page-title {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--main-bg-color);
    margin-bottom: 10px;
    line-height: 1.4;
}

.page-excerpt {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.scheduled-indicator,
.expired-indicator {
    margin-right: 8px;
    font-size: 0.9rem;
}

.scheduled-indicator {
    color: var(--warning-color);
}

.expired-indicator {
    color: var(--danger-color);
}

/* ================================= */
/* BOUTONS LEGACY */
/* ================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    gap: 8px;
}

.btn-primary {
    background: var(--main-bg-color);
    color: white;
}

.btn-primary:hover {
    background: #1a4b7a;
    transform: translateY(-1px);
}

.btn-accent {
    background: var(--secondary-bg-color);
    color: var(--main-bg-color);
}

.btn-accent:hover {
    background: #e6d000;
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--main-bg-color);
    border: 2px solid var(--main-bg-color);
}

.btn-outline:hover {
    background: var(--main-bg-color);
    color: white;
}

/* ================================= */
/* ANIMATIONS SPÉCIFIQUES */
/* ================================= */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-up {
    animation: slideUp 0.6s ease-out;
}

/* ================================= */
/* UTILITAIRES POUR LA TRANSITION */
/* ================================= */
.content-section {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
    border: 1px solid var(--border-color);
    margin-bottom: 30px;
}

.content-section h2 {
    font-size: 1.5rem;
    color: var(--main-bg-color);
    margin-bottom: 20px;
    font-weight: 500;
}

/* Masquer les éléments display: none avec Tailwind */
.hidden {
    display: none !important;
}

/* Support des variables CSS pour Tailwind */
.text-go-primary { color: var(--main-bg-color); }
.text-go-secondary { color: var(--secondary-bg-color); }
.text-go-danger { color: var(--danger-color); }
.text-go-success { color: var(--primary-color); }
.text-go-warning { color: var(--warning-color); }
.text-go-info { color: var(--info-color); }
.text-go-muted { color: var(--text-muted); }

.bg-go-primary { background-color: var(--main-bg-color); }
.bg-go-secondary { background-color: var(--secondary-bg-color); }
.bg-go-light { background-color: var(--light-gray); }

.border-go-color { border-color: var(--border-color); }
.rounded-go { border-radius: var(--border-radius); }
.shadow-go { box-shadow: var(--box-shadow); }