/* ============================================
   MOODTRACKER - STYLE GLOBAL
   ============================================ */

:root {
    --primary: #6C63FF;
    --primary-dark: #5848e6;
    --primary-light: #e8e6ff;
    --accent: #FF6B9D;
    --accent-light: #FFE0EC;
    --success: #4ECDC4;
    --warning: #FFD93D;
    --danger: #FF6B6B;
    --info: #6BCB77;
    
    --bg: #F8F9FE;
    --bg-card: #FFFFFF;
    --bg-soft: #F1F2F8;
    --text: #2D3748;
    --text-light: #6B7280;
    --text-lighter: #9CA3AF;
    --border: #E5E7EB;
    
    --shadow-sm: 0 2px 8px rgba(108, 99, 255, 0.08);
    --shadow: 0 4px 20px rgba(108, 99, 255, 0.10);
    --shadow-lg: 0 10px 40px rgba(108, 99, 255, 0.15);
    --shadow-hover: 0 8px 30px rgba(108, 99, 255, 0.20);
    
    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    
    --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

body.logged-in {
    background: linear-gradient(135deg, #f6f7fb 0%, #f0eeff 100%);
}

/* ============================================
   TYPOGRAPHIE
   ============================================ */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--text);
}
h1 { font-size: 2.25rem; margin-bottom: 1rem; }
h2 { font-size: 1.75rem; margin-bottom: 0.75rem; }
h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
h4 { font-size: 1.1rem; }
p { margin-bottom: 0.75rem; }

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.85rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--text);
}
.nav-logo:hover { color: var(--primary); }
.logo-icon { font-size: 1.6rem; }

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.25rem;
    align-items: center;
}

.nav-menu a {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 0.9rem;
    border-radius: var(--radius);
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.92rem;
    transition: var(--transition);
}

.nav-menu a:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.nav-menu .nav-logout {
    color: var(--danger);
}
.nav-menu .nav-logout:hover {
    background: #ffe5e5;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}
.nav-toggle span {
    width: 26px;
    height: 3px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

/* ============================================
   LAYOUT PRINCIPAL
   ============================================ */
.main-content {
    flex: 1;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.container-sm { max-width: 480px; margin: 0 auto; }
.container-md { max-width: 720px; margin: 0 auto; }
.container-lg { max-width: 1100px; margin: 0 auto; }

/* ============================================
   CARDS
   ============================================ */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.card:hover {
    box-shadow: var(--shadow);
}
.card-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-elevated {
    box-shadow: var(--shadow);
}

/* Grids */
.grid {
    display: grid;
    gap: 1.5rem;
}
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

/* ============================================
   BOUTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius);
    font-family: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(108, 99, 255, 0.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(108, 99, 255, 0.4);
    color: white;
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent) 0%, #ff5288 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.3);
}
.btn-accent:hover {
    transform: translateY(-2px);
    color: white;
}

.btn-secondary {
    background: var(--bg-soft);
    color: var(--text);
}
.btn-secondary:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.btn-danger {
    background: var(--danger);
    color: white;
}
.btn-danger:hover { background: #e54d4d; color: white; }

.btn-ghost {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}
.btn-ghost:hover {
    background: var(--primary);
    color: white;
}

.btn-block { width: 100%; }
.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }
.btn-sm { padding: 0.45rem 0.9rem; font-size: 0.85rem; }

/* ============================================
   FORMULAIRES
   ============================================ */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text);
    font-size: 0.95rem;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
    background: var(--bg-card);
    color: var(--text);
    transition: var(--transition);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-light);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

.form-hint {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

/* ============================================
   FLASH MESSAGES
   ============================================ */
.flash {
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    font-weight: 500;
    animation: slideDown 0.4s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.flash::before {
    font-size: 1.2rem;
}
.flash-success {
    background: #d1fae5;
    color: #065f46;
    border-left: 4px solid #10b981;
}
.flash-success::before { content: '✅'; }
.flash-error {
    background: #fee2e2;
    color: #991b1b;
    border-left: 4px solid var(--danger);
}
.flash-error::before { content: '❌'; }
.flash-info {
    background: #dbeafe;
    color: #1e40af;
    border-left: 4px solid #3b82f6;
}
.flash-info::before { content: 'ℹ️'; }

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   PAGE D'ACCUEIL
   ============================================ */
.hero {
    background: linear-gradient(135deg, #6C63FF 0%, #FF6B9D 100%);
    padding: 5rem 1.5rem 4rem;
    color: white;
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    top: -200px;
    right: -100px;
}
.hero::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    bottom: -100px;
    left: -50px;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    color: white;
    margin-bottom: 1rem;
    font-weight: 800;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.95;
    margin-bottom: 2rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-cta .btn {
    padding: 0.9rem 2rem;
    font-size: 1.05rem;
}

.hero .btn-primary {
    background: white;
    color: var(--primary);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}
.hero .btn-primary:hover { background: #f5f5ff; color: var(--primary); }

.hero .btn-ghost {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-color: white;
}
.hero .btn-ghost:hover {
    background: white;
    color: var(--primary);
}

.features-section {
    padding: 4rem 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}
.section-title h2 {
    font-size: 2.25rem;
    margin-bottom: 0.5rem;
}
.section-title p {
    color: var(--text-light);
    font-size: 1.1rem;
}

.feature-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* ============================================
   AUTHENTIFICATION
   ============================================ */
.auth-wrapper {
    min-height: calc(100vh - 100px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.auth-box {
    background: var(--bg-card);
    padding: 3rem 2.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 450px;
}

.auth-logo {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 3rem;
}

.auth-title {
    text-align: center;
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.auth-divider {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ============================================
   DASHBOARD
   ============================================ */
.dashboard-header {
    margin-bottom: 2rem;
}

.greeting {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.greeting-sub {
    color: var(--text-light);
    font-size: 1.05rem;
}

.stat-card {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.stat-icon {
    font-size: 2.25rem;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.stat-label {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.quote-card {
    background: linear-gradient(135deg, var(--accent) 0%, #ffa07a 100%);
    color: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow);
}

.quote-text {
    font-size: 1.15rem;
    font-style: italic;
    margin-bottom: 0.5rem;
}

.quote-author {
    font-weight: 600;
    opacity: 0.9;
}

/* ============================================
   ÉMOTIONS - SÉLECTEUR
   ============================================ */
.emotion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.85rem;
    margin: 1.5rem 0;
}

.emotion-card {
    background: var(--bg-card);
    border: 2px solid var(--border);
    padding: 1.25rem 0.75rem;
    border-radius: var(--radius);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
}

.emotion-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.emotion-card.selected {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    color: white;
}

.emotion-emoji {
    font-size: 2.5rem;
    margin-bottom: 0.4rem;
    display: block;
}

.emotion-name {
    font-weight: 600;
    font-size: 0.92rem;
}

/* ============================================
   SLIDER D'INTENSITÉ
   ============================================ */
.intensity-wrapper {
    background: var(--bg-soft);
    padding: 1.5rem;
    border-radius: var(--radius);
    margin: 1rem 0;
}

.intensity-display {
    text-align: center;
    margin-bottom: 1rem;
}

.intensity-value {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.intensity-label {
    color: var(--text-light);
    font-weight: 600;
}

.intensity-slider {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 10px;
    border-radius: 5px;
    background: linear-gradient(to right, #4ECDC4 0%, #FFD93D 50%, #FF6B6B 100%);
    outline: none;
}

.intensity-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: white;
    border: 4px solid var(--primary);
    cursor: pointer;
    box-shadow: var(--shadow);
}

.intensity-slider::-moz-range-thumb {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: white;
    border: 4px solid var(--primary);
    cursor: pointer;
    box-shadow: var(--shadow);
}

/* ============================================
   ENTRÉES JOURNAL
   ============================================ */
.entry-item {
    background: var(--bg-card);
    padding: 1.25rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: var(--transition);
    border-left: 4px solid var(--primary);
}

.entry-item:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow);
}

.entry-emoji {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.entry-content {
    flex: 1;
    min-width: 0;
}

.entry-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.entry-emotion-name {
    font-weight: 700;
    font-size: 1.1rem;
}

.entry-time {
    color: var(--text-light);
    font-size: 0.85rem;
}

.entry-intensity-badge {
    background: var(--primary-light);
    color: var(--primary);
    padding: 0.15rem 0.65rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
}

.entry-note {
    color: var(--text);
    font-size: 0.95rem;
    margin-top: 0.5rem;
}

.entry-trigger {
    color: var(--text-light);
    font-size: 0.85rem;
    font-style: italic;
    margin-top: 0.4rem;
}

.entry-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.entry-actions a, .entry-actions button {
    font-size: 0.85rem;
    color: var(--text-light);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
}
.entry-actions a:hover { background: var(--primary-light); color: var(--primary); }
.entry-actions .del-btn:hover { background: #ffe5e5; color: var(--danger); }

/* ============================================
   CALENDRIER
   ============================================ */
.calendar-container {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.calendar-nav {
    background: var(--bg-soft);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
}
.calendar-nav:hover {
    background: var(--primary);
    color: white;
}

.calendar-title {
    font-size: 1.4rem;
    font-weight: 700;
    text-transform: capitalize;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.calendar-day-name {
    text-align: center;
    font-weight: 700;
    color: var(--text-light);
    padding: 0.5rem;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.calendar-day {
    aspect-ratio: 1;
    background: var(--bg-soft);
    border-radius: 10px;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    min-height: 60px;
}

.calendar-day:hover { background: var(--primary-light); transform: scale(1.05); }
.calendar-day.empty { background: transparent; cursor: default; }
.calendar-day.empty:hover { transform: none; }
.calendar-day.today {
    background: var(--primary);
    color: white;
    font-weight: 700;
}
.calendar-day.has-entries {
    background: var(--accent-light);
}
.calendar-day.has-entries.today {
    background: var(--primary);
}

.day-number { font-weight: 600; font-size: 0.95rem; }
.day-emoji { font-size: 1.3rem; margin-top: 0.2rem; }

/* ============================================
   STATISTIQUES
   ============================================ */
.chart-card {
    background: var(--bg-card);
    padding: 1.75rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.chart-canvas-wrapper {
    position: relative;
    height: 320px;
}

/* ============================================
   EXERCICES
   ============================================ */
.exercise-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.exercise-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.exercise-header {
    padding: 2rem 1.5rem 1rem;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent-light) 100%);
    text-align: center;
}

.exercise-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.exercise-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.exercise-meta {
    display: flex;
    gap: 0.5rem;
    margin: 0.75rem 0;
    flex-wrap: wrap;
}

.tag {
    background: var(--bg-soft);
    color: var(--text-light);
    padding: 0.2rem 0.7rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
}

.exercise-instructions {
    background: var(--bg-soft);
    padding: 1.25rem;
    border-radius: var(--radius);
    margin: 1rem 0;
    white-space: pre-line;
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ============================================
   OBJECTIFS
   ============================================ */
.goal-card {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1rem;
    transition: var(--transition);
}

.goal-card:hover { box-shadow: var(--shadow); }

.goal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.goal-title {
    font-weight: 700;
    font-size: 1.15rem;
    flex: 1;
}

.status-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-en_cours { background: #fef3c7; color: #92400e; }
.status-atteint { background: #d1fae5; color: #065f46; }
.status-abandonne { background: #fee2e2; color: #991b1b; }

.progress-bar {
    background: var(--bg-soft);
    height: 12px;
    border-radius: 100px;
    overflow: hidden;
    margin: 0.75rem 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 100px;
    transition: width 0.5s ease;
}

.goal-actions { display: flex; gap: 0.5rem; margin-top: 1rem; flex-wrap: wrap; }

/* ============================================
   PROFIL
   ============================================ */
.profile-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    padding: 3rem 2rem;
    border-radius: var(--radius-xl);
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.profile-avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: white;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 700;
    box-shadow: var(--shadow-lg);
    margin-bottom: 1rem;
}

.profile-name { font-size: 1.75rem; font-weight: 800; color: white; }
.profile-email { opacity: 0.9; }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--text);
    color: #e0e0e0;
    text-align: center;
    padding: 2rem 1rem;
    margin-top: 3rem;
}

.footer-content { max-width: 800px; margin: 0 auto; }
.footer-quote { font-style: italic; opacity: 0.85; margin-top: 0.5rem; font-size: 0.95rem; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
    .nav-toggle { display: flex; }
    .nav-menu {
        display: none;
        width: 100%;
        flex-direction: column;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid var(--border);
    }
    .nav-menu.active { display: flex; }
    .nav-menu li { width: 100%; }
    .nav-menu a { width: 100%; padding: 0.75rem 1rem; }
    
    .hero h1 { font-size: 2.25rem; }
    .hero-subtitle { font-size: 1.1rem; }
    h1 { font-size: 1.85rem; }
    h2 { font-size: 1.5rem; }
    
    .main-content { padding: 1.5rem 1rem; }
    .auth-box { padding: 2rem 1.5rem; }
}

@media (max-width: 500px) {
    .emotion-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }
    .emotion-card { padding: 0.85rem 0.4rem; }
    .emotion-emoji { font-size: 2rem; }
    .emotion-name { font-size: 0.85rem; }
    
    .stat-value { font-size: 1.75rem; }
    .stat-icon { font-size: 1.75rem; }
    
    .calendar-day { min-height: 50px; padding: 0.25rem; }
    .day-emoji { font-size: 1rem; }
    
    .hero-cta { flex-direction: column; align-items: stretch; }
    .hero-cta .btn { width: 100%; }
}

/* ============================================
   UTILITAIRES
   ============================================ */
.text-center { text-align: center; }
.text-light { color: var(--text-light); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-light);
}
.empty-state-icon { font-size: 4rem; margin-bottom: 1rem; }
.empty-state h3 { color: var(--text); }

.divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 1.5rem 0;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
