/* ============================================
   MON PARCOURS BIEN-ÊTRE — STYLES COMPLETS
   ============================================ */

/* ===== RESET & VARIABLES ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #7C3AED;
    --primary-light: #A78BFA;
    --primary-dark: #5B21B6;
    --secondary: #EC4899;
    --secondary-light: #F9A8D4;
    --accent: #10B981;
    --accent-light: #6EE7B7;
    --warm: #F59E0B;
    --warm-light: #FCD34D;
    --bg-light: #FAF5FF;
    --bg-card: #FFFFFF;
    --text-dark: #1F2937;
    --text-medium: #4B5563;
    --text-light: #9CA3AF;
    --shadow: 0 10px 40px rgba(124, 58, 237, 0.1);
    --shadow-hover: 0 20px 60px rgba(124, 58, 237, 0.2);
    --radius: 20px;
    --radius-sm: 12px;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
    max-width: 100vw;
}

* {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

img, video, iframe, table, pre, code {
    max-width: 100%;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-light); }
::-webkit-scrollbar-thumb { background: var(--primary-light); border-radius: 10px; }

/* ===== NAVIGATION ===== */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(124, 58, 237, 0.1);
    transition: all 0.3s ease;
}

nav.scrolled { box-shadow: 0 4px 30px rgba(0,0,0,0.1); }

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    font-size: 1.4rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    cursor: pointer;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.3rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-medium);
    padding: 0.5rem 0.8rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary);
    background: rgba(124, 58, 237, 0.08);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #7C3AED 0%, #EC4899 50%, #F59E0B 100%);
    position: relative;
    overflow: hidden;
    padding: 2rem;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    animation: heroFloat 20s ease-in-out infinite;
}

@keyframes heroFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

.hero-content {
    text-align: center;
    color: white;
    z-index: 2;
    max-width: 800px;
    width: 100%;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(255,255,255,0.2);
    border-radius: 50px;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 30px rgba(0,0,0,0.2);
}

.hero h1 span {
    display: block;
    font-size: 0.5em;
    font-weight: 400;
    opacity: 0.9;
    margin-top: 0.5rem;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
}

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

.btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: inherit;
}

.btn-white {
    background: white;
    color: var(--primary);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.5);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.15);
    border-color: white;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(124, 58, 237, 0.4);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.hero-stat { text-align: center; }
.hero-stat-number { font-size: 2.5rem; font-weight: 900; display: block; }
.hero-stat-label { font-size: 0.85rem; opacity: 0.8; }

/* ===== SECTIONS COMMUNES ===== */
section {
    padding: 6rem 2rem;
    max-width: 100%;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.tag-purple { background: rgba(124, 58, 237, 0.1); color: var(--primary); }
.tag-pink { background: rgba(236, 72, 153, 0.1); color: var(--secondary); }
.tag-green { background: rgba(16, 185, 129, 0.1); color: var(--accent); }
.tag-amber { background: rgba(245, 158, 11, 0.1); color: var(--warm); }

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-dark), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header p {
    font-size: 1.15rem;
    color: var(--text-medium);
    max-width: 700px;
    margin: 0 auto;
}

/* ===== PROFIL ===== */
.profile-section { background: white; }

.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.profile-card {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: var(--radius);
    padding: 3rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.profile-card::before {
    content: '';
    position: absolute;
    top: -50%; right: -50%;
    width: 100%; height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    border-radius: 50%;
}

.profile-avatar {
    width: 100px; height: 100px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex; align-items: center; justify-content: center;
    font-size: 3rem; margin-bottom: 1.5rem;
    border: 3px solid rgba(255,255,255,0.3);
}

.profile-card h3 { font-size: 1.8rem; margin-bottom: 0.5rem; }
.profile-card .subtitle { opacity: 0.8; margin-bottom: 2rem; }

.profile-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.profile-info-item {
    background: rgba(255,255,255,0.15);
    padding: 1rem;
    border-radius: var(--radius-sm);
    backdrop-filter: blur(10px);
}

.profile-info-item .label { font-size: 0.8rem; opacity: 0.7; display: block; }
.profile-info-item .value { font-size: 1.3rem; font-weight: 700; }

.profile-details { display: flex; flex-direction: column; gap: 1.5rem; }

.detail-card {
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary);
    transition: all 0.3s ease;
}

.detail-card:hover { transform: translateX(5px); box-shadow: var(--shadow-hover); }
.detail-card.warning { border-left-color: var(--warm); }
.detail-card.info { border-left-color: var(--secondary); }
.detail-card h4 { font-size: 1.1rem; margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.5rem; }
.detail-card p { color: var(--text-medium); font-size: 0.95rem; }

/* ===== OBJECTIFS ===== */
.goals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.goal-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

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

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

.goal-icon {
    width: 80px; height: 80px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 1.5rem;
}

.goal-icon.purple { background: rgba(124, 58, 237, 0.1); }
.goal-icon.pink { background: rgba(236, 72, 153, 0.1); }
.goal-icon.green { background: rgba(16, 185, 129, 0.1); }
.goal-icon.amber { background: rgba(245, 158, 11, 0.1); }

.goal-card h3 { font-size: 1.3rem; margin-bottom: 0.8rem; }
.goal-card p { color: var(--text-medium); font-size: 0.95rem; }

.goal-timeline { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid #f0f0f0; }
.goal-timeline span { font-size: 0.85rem; color: var(--primary); font-weight: 600; }

/* ===== CALORIES ===== */
.calorie-summary {
    background: linear-gradient(135deg, rgba(124,58,237,0.05), rgba(236,72,153,0.05));
    border-radius: var(--radius);
    padding: 2rem;
    margin-top: 2rem;
    text-align: center;
}

.calorie-number {
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.macro-grid { display: flex; justify-content: center; gap: 2rem; margin-top: 1.5rem; flex-wrap: wrap; }
.macro-item { text-align: center; }

.macro-circle {
    width: 80px; height: 80px;
    border-radius: 50%;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    margin: 0 auto 0.5rem;
    font-weight: 700;
}

.macro-circle.protein { background: rgba(239, 68, 68, 0.1); color: #EF4444; }
.macro-circle.carbs { background: rgba(245, 158, 11, 0.1); color: #F59E0B; }
.macro-circle.fat { background: rgba(59, 130, 246, 0.1); color: #3B82F6; }
.macro-circle.fiber { background: rgba(16, 185, 129, 0.1); color: #10B981; }

.macro-label { font-size: 0.85rem; color: var(--text-medium); }

/* ===== ALIMENTATION ===== */
.nutrition-section { background: white; }

.meal-tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.meal-tab {
    padding: 0.8rem 2rem;
    border-radius: 50px;
    border: 2px solid #e5e7eb;
    background: white;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-medium);
    transition: all 0.3s ease;
    font-family: inherit;
}

.meal-tab.active, .meal-tab:hover {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
}

.meal-content { display: none; }
.meal-content.active { display: block; animation: fadeIn 0.5s ease; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.meal-day-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.meal-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

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

.meal-card-header {
    padding: 1.5rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.meal-card-header.breakfast { background: linear-gradient(135deg, #F59E0B, #EF4444); }
.meal-card-header.lunch { background: linear-gradient(135deg, #10B981, #3B82F6); }
.meal-card-header.dinner { background: linear-gradient(135deg, #7C3AED, #EC4899); }
.meal-card-header.snack { background: linear-gradient(135deg, #EC4899, #F59E0B); }

.meal-card-header h3 { font-size: 1.3rem; }
.meal-emoji { font-size: 2rem; }
.meal-card-body { padding: 1.5rem; }

.meal-option {
    padding: 1rem;
    margin-bottom: 1rem;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--primary-light);
}

.meal-option:last-child { margin-bottom: 0; }
.meal-option h4 { font-size: 1rem; margin-bottom: 0.3rem; color: var(--primary); }
.meal-option p { font-size: 0.9rem; color: var(--text-medium); }

.calories {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.2rem 0.8rem;
    background: rgba(124, 58, 237, 0.1);
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 600;
}

.nutrition-tips {
    margin-top: 3rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.nutrition-tip {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.tip-icon {
    width: 50px; height: 50px; min-width: 50px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    background: rgba(16, 185, 129, 0.1);
}

.nutrition-tip
 h4 { font-size: 1rem; margin-bottom: 0.3rem; }
.nutrition-tip p { font-size: 0.85rem; color: var(--text-medium); }

/* ===== SEMAINE TYPE ===== */
.week-plan { margin-top: 2rem; }

.day-plan {
    background: var(--bg-card);
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.day-plan:hover { box-shadow: var(--shadow-hover); }

.day-header {
    padding: 1.2rem 2rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.day-header h3 { font-size: 1.2rem; display: flex; align-items: center; gap: 0.7rem; }
.day-header .toggle-icon { font-size: 1.5rem; transition: transform 0.3s ease; }
.day-header.open .toggle-icon { transform: rotate(180deg); }

.day-body { display: none; padding: 2rem; }
.day-body.open { display: block; animation: fadeIn 0.4s ease; }

.day-meals {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.day-meal {
    padding: 1.5rem;
    border-radius: var(--radius-sm);
    background: var(--bg-light);
}

.day-meal h4 { font-size: 1rem; margin-bottom: 0.8rem; display: flex; align-items: center; gap: 0.5rem; }

.day-meal ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.day-meal ul li {
    font-size: 0.9rem;
    color: var(--text-medium);
    padding-left: 1.2rem;
    position: relative;
}

.day-meal ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

/* ===== EXERCICES ===== */
.exercise-section { background: linear-gradient(180deg, var(--bg-light) 0%, white 100%); }

.exercise-week {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.exercise-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
}

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

.exercise-card-top {
    padding: 2rem;
    color: white;
    position: relative;
}

.exercise-card-top.cardio { background: linear-gradient(135deg, #EF4444, #F59E0B); }
.exercise-card-top.strength { background: linear-gradient(135deg, #3B82F6, #8B5CF6); }
.exercise-card-top.yoga { background: linear-gradient(135deg, #10B981, #06B6D4); }
.exercise-card-top.rest { background: linear-gradient(135deg, #6B7280, #9CA3AF); }
.exercise-card-top.hiit { background: linear-gradient(135deg, #EC4899, #EF4444); }
.exercise-card-top.walk { background: linear-gradient(135deg, #10B981, #F59E0B); }

.exercise-day-label { font-size: 0.85rem; opacity: 0.8; }
.exercise-card-top h3 { font-size: 1.5rem; margin: 0.3rem 0; }

.exercise-duration {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.8rem;
    background: rgba(255,255,255,0.2);
    border-radius: 50px;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.exercise-card-body { padding: 1.5rem; }

.exercise-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.exercise-item:last-child { border-bottom: none; }

.exercise-number {
    width: 30px; height: 30px; min-width: 30px;
    border-radius: 50%;
    background: var(--bg-light);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
}

.exercise-detail h4 { font-size: 0.95rem; margin-bottom: 0.2rem; }
.exercise-detail p { font-size: 0.85rem; color: var(--text-light); }

.exercise-intensity {
    display: inline-block;
    padding: 0.15rem 0.6rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.3rem;
}

.intensity-low { background: rgba(16, 185, 129, 0.1); color: #059669; }
.intensity-medium { background: rgba(245, 158, 11, 0.1); color: #D97706; }
.intensity-high { background: rgba(239, 68, 68, 0.1); color: #DC2626; }

/* ===== TABLE ===== */
.schedule-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 2rem;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.schedule-table th {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 1rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.schedule-table td {
    padding: 0.8rem 1rem;
    font-size: 0.85rem;
    border-bottom: 1px solid #f3f4f6;
    background: white;
}

.schedule-table tr:last-child td { border-bottom: none; }
.schedule-table tr:hover td { background: var(--bg-light); }

/* ===== TECHNIQUES ===== */
.techniques-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.technique-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.technique-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 4px;
}

.technique-card.purple::after { background: var(--primary); }
.technique-card.pink::after { background: var(--secondary); }
.technique-card.green::after { background: var(--accent); }
.technique-card.amber::after { background: var(--warm); }

.technique-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.technique-card h3 { font-size: 1.3rem; margin-bottom: 1rem; }

.technique-card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.technique-card ul li {
    font-size: 0.95rem;
    color: var(--text-medium);
    padding-left: 1.5rem;
    position: relative;
}

.technique-card ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

/* ===== TDAH ===== */
.tdah-section { background: linear-gradient(135deg, #FDF2F8 0%, #FAF5FF 50%, #EFF6FF 100%); }

.tdah-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.tdah-card {
    background: white;
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    border-top: 4px solid;
    transition: all 0.3s ease;
}

.tdah-card:hover { transform: translateY(-5px); }
.tdah-card:nth-child(1) { border-top-color: var(--primary); }
.tdah-card:nth-child(2) { border-top-color: var(--secondary); }
.tdah-card:nth-child(3) { border-top-color: var(--accent); }
.tdah-card:nth-child(4) { border-top-color: var(--warm); }
.tdah-card:nth-child(5) { border-top-color: #06B6D4; }
.tdah-card:nth-child(6) { border-top-color: #EF4444; }

.tdah-card h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 1.15rem;
}

.tdah-card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tdah-card ul li {
    font-size: 0.95rem;
    color: var(--text-medium);
    padding-left: 1.3rem;
    position: relative;
}

.tdah-card ul li::before {
    content: '💡';
    position: absolute;
    left: 0;
    font-size: 0.8rem;
}

/* ===== ENDOMÉTRIOSE ===== */
.endo-section { background: white; }

.endo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.endo-card {
    background: var(--bg-light);
    border-radius: var(--radius);
    padding: 2rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.endo-card:hover {
    border-color: var(--secondary-light);
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.endo-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.endo-card h3 { font-size: 1.2rem; margin-bottom: 1rem; }

.endo-card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.endo-card ul li {
    font-size: 0.93rem;
    color: var(--text-medium);
    padding-left: 1.3rem;
    position: relative;
}

.endo-card ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-weight: bold;
    font-size: 1.3rem;
    line-height: 1.3;
}

.good-bad-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.good-list, .bad-list { border-radius: var(--radius); padding: 2rem; }
.good-list { background: rgba(16, 185, 129, 0.05); border: 2px solid rgba(16, 185, 129, 0.2); }
.bad-list { background: rgba(239, 68, 68, 0.05); border: 2px solid rgba(239, 68, 68, 0.2); }

.good-list h3, .bad-list h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.good-list h3 { color: #059669; }
.bad-list h3 { color: #DC2626; }

.good-list ul, .bad-list ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.good-list ul li, .bad-list ul li {
    font-size: 0.95rem;
    color: var(--text-medium);
    padding-left: 1.5rem;
    position: relative;
}

.good-list ul li::before { content: '✅'; position: absolute; left: 0; font-size: 0.8rem; }
.bad-list ul li::before { content: '❌'; position: absolute; left: 0; font-size: 0.8rem; }

/* ===== SOMMEIL ===== */
.sleep-section {
    background: linear-gradient(135deg, #1E1B4B 0%, #312E81 100%);
    color: white;
}

.sleep-tips {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.sleep-tip {
    background: linear-gradient(135deg, #1E1B4B, #312E81);
    border-radius: var(--radius);
    padding: 1.5rem;
    color: white;
    border: 1px solid rgba(255,255,255,0.1);
}

.sleep-tip h4 { margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.5rem; }
.sleep-tip p { font-size: 0.9rem; opacity: 0.8; }

/* ===== TRACKER ===== */
.tracker-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
}

.tracker-section .section-header h2 {
    background: none;
    -webkit-text-fill-color: white;
    color: white;
}

.tracker-section .section-header p { color: rgba(255,255,255,0.8); }

.tracker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.tracker-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(20px);
    border-radius: var(--radius);
    padding: 2rem;
    border: 1px solid rgba(255,255,255,0.2);
}

.tracker-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.water-tracker {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.water-glass {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 10px;
    background: rgba(255,255,255,0.15);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.water-glass.filled { background: rgba(59, 130, 246, 0.6); transform: scale(1.05); }
.water-glass:hover { background: rgba(59, 130, 246, 0.4); transform: scale(1.1); }

.mood-options { display: flex; gap: 1rem; flex-wrap: wrap; }

.mood-btn {
    padding: 0.8rem 1.2rem;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.15);
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    color: white;
    text-align: center;
    font-family: inherit;
}

.mood-btn.selected { border-color: white; background: rgba(255,255,255,0.3); transform: scale(1.15); }
.mood-btn:hover { transform: scale(1.1); background: rgba(255,255,255,0.2); }

.checklist { display: flex; flex-direction: column; gap: 0.8rem; }

.checklist-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.6rem 1rem;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.checklist-item:hover { background: rgba(255,255,255,0.2); }
.checklist-item.checked { background: rgba(16, 185, 129, 0.3); }

.check-box {
    width: 24px; height: 24px; min-width: 24px;
    border-radius: 6px;
    border: 2px solid rgba(255,255,255,0.5);
    display: flex; align-items: center; justify-content: center;
    transition: all 0.3s ease;
}

.checklist-item.checked .check-box { background: var(--accent); border-color: var(--accent); }
.check-box::after { content: '✓'; color: white; font-weight: bold; font-size: 0.8rem; opacity: 0; transition: opacity 0.3s ease; }
.checklist-item.checked .check-box::after { opacity: 1; }

.weight-input-group { display: flex; gap: 1rem; align-items: center; margin-top: 1rem; }

.weight-input {
    flex: 1;
    padding: 0.8rem 1.2rem;
    border-radius: var(--radius-sm);
    border: 2px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.1);
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    outline: none;
    transition: all 0.3s ease;
    font-family: inherit;
}

.weight-input::placeholder { color: rgba(255,255,255,0.5); }
.weight-input:focus { border-color: white; background: rgba(255,255,255,0.2); }

.btn-save {
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius-sm);
    background: white;
    color: var(--primary);
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    font-size: 0.95rem;
}

.btn-save:hover { transform: scale(1.05); }

.weight-history { margin-top: 1.5rem; max-height: 200px; overflow-y: auto; }

.weight-entry {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
}

.tracker-textarea {
    width: 100%;
    height: 120px;
    padding: 1rem;
    border-radius: var(--radius-sm);
    border: 2px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.1);
    color: white;
    font-family: inherit;
    font-size: 0.95rem;
    resize: vertical;
    outline: none;
}

.tracker-textarea:focus { border-color: white; }
.tracker-textarea::placeholder { color: rgba(255,255,255,0.5); }

/* ===== MOTIVATION ===== */
.motivation-section { background: var(--bg-light); }

.quote-carousel { max-width: 700px; margin: 0 auto; text-align: center; }

.quote-card {
    display: none;
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 3rem;
    box-shadow: var(--shadow);
}

.quote-card.active { display: block; animation: fadeIn 0.5s ease; }
.quote-icon { font-size: 3rem; margin-bottom: 1rem; opacity: 0.3; }
.quote-card blockquote { font-size: 1.4rem; font-style: italic; color: var(--text-dark); margin-bottom: 1rem; line-height: 1.6; }
.quote-card cite { color: var(--primary); font-weight: 600; }

.quote-nav { margin-top: 2rem; display: flex; justify-content: center; gap: 1rem; }

.quote-nav button {
    width: 50px; height: 50px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    background: white;
    color: var(--primary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quote-nav button:hover { background: var(--primary); color: white; }

/* ===== PROGRESSION ===== */
.progress-section { background: white; }
.progress-phases { position: relative; }

.progress-line {
    position: absolute;
    left: 50%; top: 0; bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--primary), var(--secondary), var(--accent));
    border-radius: 2px;
    transform: translateX(-50%);
}

.phase-card {
    display: flex;
    gap: 3rem;
    margin-bottom: 3rem;
    position: relative;
}

.phase-card:nth-child(even) { flex-direction: row-reverse; }
.phase-card:nth-child(even) .phase-content { text-align: right; }

.phase-content {
    flex: 1;
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.phase-number {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 50px; height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    font-weight: 800;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.phase-spacer { flex: 1; }
.phase-content h3 { font-size: 1.4rem; margin-bottom: 0.5rem; color: var(--primary); }
.phase-content .phase-duration { font-size: 0.9rem; color: var(--secondary); font-weight: 600; margin-bottom: 1rem; }

.phase-content ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.phase-content ul li {
    font-size: 0.95rem;
    color: var(--text-medium);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.phase-card:nth-child(even) .phase-content ul li { justify-content: flex-end; }

/* ===== AVERTISSEMENT ===== */
.disclaimer-section { background: white; padding: 3rem 2rem; }

.disclaimer-box {
    max-width: 900px;
    margin: 0 auto;
    background: linear-gradient(135deg, #FEF3C7, #FDE68A);
    border-radius: var(--radius);
    padding: 2.5rem;
    border-left: 6px solid var(--warm);
}

.disclaimer-box h3 { font-size: 1.3rem; margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem; color: #92400E; }
.disclaimer-box p { color: #78350F; font-size: 0.95rem; line-height: 1.8; }

/* ===== FOOTER ===== */
footer {
    background: linear-gradient(135deg, #1F2937, #111827);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
}

footer p { opacity: 0.7; font-size: 0.9rem; }
.footer-heart { color: var(--secondary); font-size: 1.2rem; }

/* ===== BOUTONS FIXES ===== */
.back-to-top {
    position: fixed;
    bottom: 2rem; right: 2rem;
    width: 50px; height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1.3rem;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
    transition: all 0.3s ease;
    opacity: 0;
    pointer-events: none;
    z-index: 999;
}

.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { transform: translateY(-3px); }

.print-btn {
    position: fixed;
    bottom: 2rem; left: 2rem;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: inherit;
}

.print-btn:hover { background: var(--primary); color: white; }

/* ===== ANIMATIONS ===== */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ===== ASSISTANT IA ===== */
.ai-section { background: linear-gradient(180deg, #F5F3FF 0%, #FAF5FF 50%, #FDF2F8 100%); }

.ai-setup-card {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    border-radius: var(--radius);
    padding: 3rem;
    text-align: center;
    box-shadow: var(--shadow);
}

.ai-setup-icon { font-size: 3rem; margin-bottom: 1rem; }
.ai-setup-card h3 { font-size: 1.4rem; margin-bottom: 0.8rem; }
.ai-setup-card p { color: var(--text-medium); margin-bottom: 1.5rem; line-height: 1.6; }

.ai-key-input-group { display: flex; gap: 0.8rem; margin-bottom: 1rem; }

.ai-key-input {
    flex: 1;
    padding: 0.9rem 1.2rem;
    border: 2px solid #e5e7eb;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    transition: all 0.3s ease;
}

.ai-key-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1); }
.ai-key-note { font-size: 0.82rem !important; color: var(--text-light) !important; }

.ai-chat-container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(124, 58, 237, 0.15);
    display: flex;
    flex-direction: column;
    height: 700px;
    max-height: 75vh;
}

.ai-chat-header {
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.ai-chat-header-left { display: flex; align-items: center; gap: 1rem; }

.ai-avatar {
    width: 45px; height: 45px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
}

.ai-chat-header h3 { font-size: 1.1rem; margin-bottom: 0.1rem; }
.ai-status { font-size: 0.8rem; opacity: 0.8; display: flex; align-items: center; gap: 0.4rem; }

.ai-status-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #10B981;
    display: inline-block;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.ai-chat-header-right { display: flex; gap: 0.5rem; }

.ai-header-btn {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.15);
    color: white;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: flex; align-items: center; justify-content: center;
}

.ai-header-btn:hover { background: rgba(255,255,255,0.3); transform: scale(1.1); }

.ai-suggestions {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f3f4f6;
    flex-shrink: 0;
    overflow-x: auto;
}

.ai-suggestions-title { font-size: 0.85rem; color: var(--text-light); margin-bottom: 0.8rem; }
.ai-suggestions-grid { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.ai-suggestion-btn {
    padding: 0.5rem 1rem;
    border-radius: 50px;
    border: 1.5px solid #e5e7eb;
    background: white;
    color: var(--text-medium);
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-family: inherit;
}

.ai-suggestion-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(124, 58, 237, 0.05);
    transform: translateY(-1px);
}

.ai-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    scroll-behavior: smooth;
}

.ai-messages::-webkit-scrollbar { width: 6px; }
.ai-messages::-webkit-scrollbar-thumb { background: var(--primary-light); border-radius: 3px; }

.ai-message {
    display: flex;
    gap: 0.8rem;
    max-width: 85%;
    animation: messageIn 0.4s ease;
}

@keyframes messageIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.ai-message-bot { align-self: flex-start; }
.ai-message-user { align-self: flex-end; flex-direction: row-reverse; }

.ai-message-avatar {
    width: 36px; height: 36px; min-width: 36px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    background: rgba(124, 58, 237, 0.1);
    flex-shrink: 0;
}

.ai-message-user .ai-message-avatar { background: rgba(236, 72, 153, 0.1); }

.ai-message-bubble {
    padding: 1rem 1.3rem;
    border-radius: 18px;
    font-size: 0.95rem;
    line-height: 1.7;
}

.ai-message-bot .ai-message-bubble {
    background: #F3F4F6;
    border-bottom-left-radius: 4px;
    color: var(--text-dark);
}

.ai-message-user .ai-message-bubble {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-bottom-right-radius: 4px;
    color: white;
}

.ai-message-bubble p { margin-bottom: 0.5rem; }
.ai-message-bubble p:last-child { margin-bottom: 0; }
.ai-message-bubble ul, .ai-message-bubble ol { padding-left: 1.5rem; margin: 0.5rem 0; }
.ai-message-bubble li { margin-bottom: 0.3rem; }
.ai-message-bubble strong { color: var(--primary); }
.ai-message-user .ai-message-bubble strong { color: #FCD34D; }

.ai-message-time { font-size: 0.72rem; color: var(--text-light); margin-top: 0.3rem; display: block; }
.ai-message-user .ai-message-time { text-align: right; }

.ai-typing { display: flex; align-items: center; gap: 0.8rem; padding: 0 1.5rem 0.8rem; }

.ai-typing-dots {
    display: flex; gap: 4px;
    padding: 0.8rem 1.2rem;
    background: #F3F4F6;
    border-radius: 18px;
    border-bottom-left-radius: 4px;
}

.ai-typing-dots span {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--primary-light);
    animation: typingBounce 1.4s infinite;
}

.ai-typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.ai-typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-8px); opacity: 1; }
}

.ai-input-area {
    padding: 1rem 1.5rem;
    border-top: 1px solid #f3f4f6;
    flex-shrink: 0;
    background: white;
}

.ai-input-container { display: flex; gap: 0.8rem; align-items: flex-end; }

.ai-input {
    flex: 1;
    padding: 0.9rem 1.2rem;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    resize: none;
    max-height: 120px;
    min-height: 44px;
    line-height: 1.5;
    transition: all 0.3s ease;
}

.ai-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1); }
.ai-input::placeholder { color: #9CA3AF; }

.ai-send-btn {
    width: 46px; height: 46px; min-width: 46px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.ai-send-btn:hover { transform: scale(1.08); }
.ai-send-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.ai-send-icon { transition: transform 0.3s ease; }
.ai-send-btn:hover .ai-send-icon { transform: rotate(90deg); }

.ai-input-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-light);
}

.ai-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #DC2626;
    padding: 0.8rem 1.2rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    text-align: center;
    margin: 0.5rem 1.5rem;
}

/* ===== DARK MODE ===== */
body.dark-mode { background: #0F172A; color: #E2E8F0; }
body.dark-mode nav { background: rgba(15, 23, 42, 0.95); border-bottom-color: rgba(124, 58, 237, 0.2); }
body.dark-mode .nav-links a { color: #94A3B8; }
body.dark-mode .nav-links a:hover, body.dark-mode .nav-links a.active { color: var(--primary-light); background: rgba(124, 58, 237, 0.15); }
body.dark-mode .profile-section, body.dark-mode .nutrition-section, body.dark-mode .endo-section, body.dark-mode .progress-section, body.dark-mode .disclaimer-section { background: #1E293B; }
body.dark-mode .goal-card, body.dark-mode .meal-card, body.dark-mode .technique-card, body.dark-mode .detail-card, body.dark-mode .exercise-card, body.dark-mode .phase-content, body.dark-mode .quote-card, body.dark-mode .nutrition-tip { background: #1E293B !important; color: #E2E8F0; }
body.dark-mode .section-header h2 { background: linear-gradient(135deg, #E2E8F0, var(--primary-light)); -webkit-background-clip: text; background-clip: text; }
body.dark-mode .section-header p, body.dark-mode .detail-card p, body.dark-mode .goal-card p, body.dark-mode .technique-card ul li, body.dark-mode .tdah-card ul li, body.dark-mode .endo-card ul li, body.dark-mode .meal-option p, body.dark-mode .exercise-detail p, body.dark-mode .good-list ul li, body.dark-mode .bad-list ul li, body.dark-mode .nutrition-tip p { color: #94A3B8; }
body.dark-mode .day-meal, body.dark-mode .meal-option { background: #0F172A; }
body.dark-mode .tdah-card, body.dark-mode .endo-card { background: #1E293B; }
body.dark-mode .good-list { background: rgba(16, 185, 129, 0.1); }
body.dark-mode .bad-list { background: rgba(239, 68, 68, 0.1); }
body.dark-mode .calorie-summary { background: linear-gradient(135deg, rgba(124,58,237,0.15), rgba(236,72,153,0.15)); }
body.dark-mode .schedule-table td { background: #1E293B; color: #E2E8F0; border-bottom-color: #334155; }
body.dark-mode .disclaimer-box { background: linear-gradient(135deg, #422006, #78350F); }
body.dark-mode .disclaimer-box h3, body.dark-mode .disclaimer-box p { color: #FDE68A; }
body.dark-mode .motivation-section { background: #0F172A; }
body.dark-mode .tdah-section { background: linear-gradient(135deg, #1E1338 0%, #0F172A 100%); }
body.dark-mode .exercise-section { background: linear-gradient(180deg, #0F172A 0%, #1E293B 100%); }
body.dark-mode .exercise-card-body { background: #1E293B; }
body.dark-mode .exercise-item { border-bottom-color: #334155; }
body.dark-mode .exercise-number { background: #0F172A; }
body.dark-mode .day-body { background: #1E293B; }
body.dark-mode .nav-links { background: #1E293B; }
body.dark-mode .ai-section { background: linear-gradient(180deg, #0F172A 0%, #1E1338 100%); }
body.dark-mode .ai-setup-card { background: #1E293B; color: #E2E8F0; }
body.dark-mode .ai-setup-card p { color: #94A3B8; }
body.dark-mode .ai-key-input { background: #0F172A; border-color: #334155; color: #E2E8F0; }
body.dark-mode .ai-chat-container { background: #1E293B; box-shadow: 0 20px 60px rgba(0,0,0,0.4); }
body.dark-mode .ai-message-bot .ai-message-bubble { background: #0F172A; color: #E2E8F0; }
body.dark-mode .ai-typing-dots { background: #0F172A; }
body.dark-mode .ai-input-area { background: #1E293B; border-top-color: #334155; }
body.dark-mode .ai-input { background: #0F172A; border-color: #334155; color: #E2E8F0; }
body.dark-mode .ai-suggestions { border-bottom-color: #334155; }
body.dark-mode .ai-suggestion-btn { background: #0F172A; border-color: #334155; color: #94A3B8; }
body.dark-mode .ai-error { background: rgba(239, 68, 68, 0.15); color: #FCA5A5; }
body.dark-mode .meal-tab { background: #1E293B; border-color: #334155; color: #94A3B8; }
body.dark-mode .print-btn { background: #1E293B; color: var(--primary-light); border-color: var(--primary-light); }



/* ===== BOUTONS VIDO EXERCICES ===== */
.video-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.5rem;
    margin-left: 0.5rem;
    padding: 0.2rem 0.8rem;
    background: rgba(124, 58, 237, 0.1);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.8rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.video-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

body.dark-mode .video-btn {
    background: rgba(167, 139, 250, 0.15);
    color: var(--primary-light);
}

body.dark-mode .video-btn:hover {
    background: var(--primary-light);
    color: #0F172A;
}


/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .profile-grid { grid-template-columns: 1fr; }
    .good-bad-grid { grid-template-columns: 1fr; }
    .progress-line { left: 25px; }
    .phase-card, .phase-card:nth-child(even) { flex-direction: column; padding-left: 60px; }
    .phase-number { left: 25px; top: 0; }
    .phase-spacer { display: none; }
    .phase-card:nth-child(even) .phase-content { text-align: left; }
    .phase-card:nth-child(even) .phase-content ul li { justify-content: flex-start; }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 70px; left: 0; right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }
    .nav-links.open { display: flex; }
    .hamburger { display: flex; }
    .nav-container { padding: 0 1rem; }

    section { padding: 3rem 1rem; }
    .section-header { margin-bottom: 2.5rem; }
    .section-header h2 { font-size: 1.8rem; }
    .section-header p { font-size: 1rem; }

    .hero { padding: 1.5rem 1rem; min-height: 100svh; }
    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 1rem; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .hero-buttons .btn { width: 100%; max-width: 280px; justify-content: center; }
    .hero-stats { gap: 1.5rem; }
    .hero-stat-number { font-size: 2rem; }
    .hero-badge { font-size: 0.8rem; padding: 0.4rem 1rem; }

    .goals-grid, .meal-day-grid, .exercise-week, .techniques-grid, .tdah-grid, .endo-grid,
    .tracker-grid, .nutrition-tips, .sleep-tips, .day-meals, .good-bad-grid { grid-template-columns: 1fr !important; }

    .profile-card { padding: 2rem 1.5rem; }
    .profile-info-item .value { font-size: 1.1rem; }
    .profile-avatar { width: 80px; height: 80px; font-size: 2.5rem; }

    .meal-tabs { gap: 0.3rem; }
    .meal-tab { padding: 0.6rem 1rem; font-size: 0.8rem; flex: 1; text-align: center; min-width: 0; }

    .goal-card, .technique-card, .tdah-card, .endo-card { padding: 1.5rem; }
    .goal-icon { width: 60px; height: 60px; font-size: 2rem; }
    .calorie-summary { padding: 1.5rem; }
    .calorie-number { font-size: 2.2rem; }
    .macro-circle { width: 65px; height: 65px; }

    .exercise-card-top { padding: 1.5rem; }
    .exercise-card-body { padding: 1rem; }
    .day-header { padding: 1rem 1.2rem; }
    .day-header h3 { font-size: 1rem; }
    .day-body { padding: 1.2rem; }

    .good-list, .bad-list { padding: 1.5rem; }

    .tracker-card { padding: 1.5rem; }
    .water-tracker { grid-template-columns: repeat(4, 1fr); gap: 0.8rem; }
    .water-glass { font-size: 1.5rem; }
    .mood-options { justify-content: center; }
    .mood-btn { padding: 0.6rem 0.8rem; font-size: 1.3rem; }
    .weight-input-group { flex-direction: column; }
    .weight-input, .btn-save { width: 100%; }

    .phase-card, .phase-card:nth-child(even) { padding-left: 50px; }
    .phase-content { padding: 1.5rem; }
    .phase-number { width: 40px; height: 40px; font-size: 1rem; left: 20px; }
    .progress-line { left: 20px; }

    .schedule-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap; }
    .schedule-table th, .schedule-table td { padding: 0.6rem 0.8rem; font-size: 0.75rem; }

    .quote-card { padding: 2rem 1.5rem; }
    .quote-card blockquote { font-size: 1.1rem; }
    .disclaimer-box { padding: 1.5rem; }
    .print-btn { bottom: 1rem; left: 1rem; padding: 0.6rem 1rem; font-size: 0.8rem; }
    .back-to-top { bottom: 1rem; right: 1rem; width: 44px; height: 44px; }

    /* AI Responsive */
    .ai-chat-container { height: 600px; max-height: 70vh; border-radius: var(--radius-sm); }
    .ai-chat-header { padding: 0.8rem 1rem; }
    .ai-avatar { width: 38px; height: 38px; }
    .ai-chat-header h3 { font-size: 1rem; }
    .ai-messages { padding: 1rem; gap: 1rem; }
    .ai-message { max-width: 92%; }
    .ai-message-bubble { padding: 0.8rem 1rem; font-size: 0.9rem; }
    .ai-message-avatar { width: 30px; height: 30px; min-width: 30px; font-size: 1rem; }
    .ai-input-area { padding: 0.8rem 1rem; }
    .ai-input { font-size: 0.9rem; padding: 0.8rem 1rem; }
    .ai-suggestions { padding: 0.8rem 1rem; }
    .ai-suggestions-grid { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 0.5rem; -webkit-overflow-scrolling: touch; }
    .ai-suggestion-btn { flex-shrink: 0; font-size: 0.78rem; }
    .ai-setup-card { padding: 2rem 1.5rem; }
    .ai-key-input-group { flex-direction: column; }
    .ai-key-input { width: 100%; }
}

@media (max-width: 380px) {
    section { padding: 2.5rem 0.8rem; }
    .hero { padding: 1rem 0.8rem; }
    .hero h1 { font-size: 1.7rem; }
    .section-header h2 { font-size: 1.5rem; }
    .profile-info-grid { grid-template-columns: 1fr; }
    .profile-card { padding: 1.5rem 1rem; }
    .meal-tabs { flex-direction: column; }
    .meal-tab { width: 100%; }
    .meal-card-header { flex-direction: column; text-align: center; gap: 0.5rem; }
    .hero-stats { flex-direction: column; gap: 1rem; }
    .macro-grid { grid-template-columns: repeat(2, 1fr); }
    .water-tracker { grid-template-columns: repeat(4, 1fr); gap: 0.5rem; }
    .nav-logo { font-size: 1.1rem; }
    .ai-chat-container { height: 550px; }
    .ai-header-btn { width: 32px; height: 32px; font-size: 0.85rem; }
}

@media (max-height: 500px) and (orientation: landscape) {
    .hero { min-height: auto; padding: 5rem 2rem 3rem; }
    .hero h1 { font-size: 2rem; }
}

@supports (padding: env(safe-area-inset-bottom)) {
    footer { padding-bottom: calc(3rem + env(safe-area-inset-bottom)); }
    .back-to-top, .print-btn { bottom: calc(1rem + env(safe-area-inset-bottom)); }
    nav { padding-top: env(safe-area-inset-top); }
}

@media print {
    nav, .back-to-top, .print-btn, .tracker-section, .ai-section { display: none !important; }
    .hero { min-height: auto; padding: 2rem; }
    section { padding: 2rem; break-inside: avoid; }
    .goals-grid, .meal-day-grid, .exercise-week, .techniques-grid, .tdah-grid, .endo-grid { grid-template-columns: 1fr 1fr !important; }
}