:root {
    /* Couleurs principales */
    --primary-color: #c2825c; /* Terracotta */
    --primary-dark: #9b5e3e; /* Terracotta foncé */
    --primary-light: #d9a68b; /* Terracotta clair */

    --accent-color: #7a9b6d; /* Vert olive chaud */
    --accent-dark: #5d7a52; /* Vert olive foncé */
    --accent-light: #a3c092; /* Vert olive clair */

    /* Couleurs de fond */
    --background-light: #f5e8d3; /* Beige sable */
    --background-secondary: #efe3c8; /* Beige sable légèrement plus foncé */
    --background-tertiary: #e6d9b8; /* Beige sable moyen */

    /* Couleurs de texte */
    --text-primary: #2e3b4e; /* Bleu nuit */
    --text-secondary: #8c8c88; /* Gris chaud */
    --text-muted: #b3b3b0; /* Gris clair pour texte discret */

    /* Couleurs spécifiques par formation */
    --kobido-color: #d9a68b; /* Terracotta clair pour Kobido */
    --kobido-light: #e6c2a8; /* Variation plus claire */
    --kobido-dark: #a67250; /* Variation plus foncée */

    --amincissant-color: #f4a27a; /* Pêche/Abricot pour Amincissant */
    --amincissant-light: #ffc4a3; /* Pêche clair */
    --amincissant-dark: #e08556; /* Abricot foncé */

    --shiatsu-color: #6b7a60; /* Vert olive proche de la palette */
    --shiatsu-light: #8a9980; /* Vert olive clair */
    --shiatsu-dark: #4e5b47; /* Vert olive foncé */

    /* Couleurs d'état */
    --success-color: #6b7a60; /* Vert olive pour succès */
    --warning-color: #d9a68b; /* Terracotta clair pour avertissement */
    --error-color: #a94442; /* Rouge sombre compatible avec la palette */
    --info-color: #82917e; /* Vert sauge foncé pour info */

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body avec compensation pour header fixe */
body {
    padding-top: 80px;
    font-family: var(--font-body);
    color: var(--text-primary);
    background: var(--background-light);
}

/* Accessibilité */
a:focus, button:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* HEADER AVEC VISIBILITÉ CORRIGÉE */
header {
    background: white;
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(210, 105, 30, 0.1);
    box-shadow: 0 4px 20px rgba(44, 62, 42, 0.2);
}

header.scrolled {
    background: white;
    border-bottom: 1px solid rgba(232, 213, 196, 0.2); /* Beige doux */
    backdrop-filter: blur(25px);
    color: var(--text-primary);
    box-shadow: 0 8px 32px rgba(44, 62, 42, 0.15);
    border-bottom: 1px solid rgba(139, 154, 127, 0.2);
}

header.on-hero {
    background: white;
    backdrop-filter: blur(15px);
    color: var(--text-primary);
    border-bottom: 1px solid rgba(210, 105, 30, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

header.on-hero.scrolled {
    background: white;
    backdrop-filter: blur(25px);
    color: var(--text-primary);
    border-bottom: 1px solid rgba(139, 154, 127, 0.2);
    box-shadow: 0 8px 32px rgba(44, 62, 42, 0.15);
}

header.on-light {
    background: white;
    border-bottom: 1px solid rgba(232, 213, 196, 0.2);
    backdrop-filter: blur(20px);
    color: var(--text-primary);
    border-bottom: 1px solid rgba(139, 154, 127, 0.2);
    box-shadow: 0 8px 32px rgba(44, 62, 42, 0.1);
}

header h1 {
    font-family: var(--font-title);
    font-size: 1.8rem;
    margin: 0;
    color: inherit;
    transition: color 0.3s ease;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

nav a {
    color: inherit;
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
    box-shadow: 0 0 5px rgba(74, 155, 142, 0.5); /* Sage moderne */
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

nav a:hover {
    color: var(--accent-light);
    transform: translateY(-1px);
}

.dropdown {
    position: relative;
}

.dropdown-content {
    position: absolute;
    background: rgba(254, 252, 250, 0.98);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(232, 213, 196, 0.3);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(44, 62, 42, 0.2);
    min-width: 180px;
    padding: 0.5rem 0;
    z-index: 100;
    top: 100%;
    left: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}
.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-content a {
    display: block;
    color: var(--text-primary);
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
    border-radius: 0;
    transition: background 0.3s ease;
    text-shadow: none;
}

.dropdown-content a::after {
    display: none;
}

.dropdown-content a:hover {
    background: var(--background-secondary);
    color: var(--accent-color);
    transform: none;
}

.dropdown-content.on-hero {
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.dropdown-content.on-hero a {
    color: white;
}

.dropdown-content.on-hero a {
    color: white;
}

/* Layout principal du dashboard */
.container.dashboard-layout,
body:has(.navigation-card) .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    min-height: calc(100vh - 200px);
    background: var(--background-secondary);
}

/* Layout général pour autres pages */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    background: var(--background-light);
}

/* Card de navigation */
.navigation-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 10px 25px rgba(46, 59, 78, 0.1); /* Bleu nuit pour ombre */
    height: fit-content;
    position: sticky;
    top: 2rem;
}

.navigation-card h3 {
    color: white;
    margin: 0 0 1.5rem 0;
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    color: white;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-align: left;
    backdrop-filter: blur(10px);
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.nav-btn.active {
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 12px rgba(46, 59, 78, 0.15); /* Bleu nuit pour ombre */
}

.nav-btn i {
    font-size: 1.1rem;
    width: 20px;
}

.logout-btn:hover {
    background: rgba(169, 68, 66, 0.8) !important; /* Rouge sombre */
}

/* Contenu principal */
.main-content {
    background: var(--background-light);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(46, 59, 78, 0.08); /* Bleu nuit pour ombre */
    min-height: 500px;
}

.content-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--accent-color);
}

.content-header h2 {
    color: var(--text-primary);
    font-size: 1.8rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-title);
}

/* Hero section moderne */
.hero-section {
    background: var(--primary-color);
    color: white;
    padding: 6rem 2rem 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero-section h1 {
    font-family: var(--font-title);
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(46, 59, 78, 0.3); /* Bleu nuit pour ombre */
    background: linear-gradient(45deg, white, #f5e8d3); /* Beige sable */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle-line {
    display: inline-block;
    font-size: 0.85em;
    font-weight: 600;
    margin-top: 0.5rem;
}

.hero-section .subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--accent-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(168, 181, 162, 0.4); /* Vert sauge pour ombre */
    animation: pulse 2s infinite;
}

.hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(168, 181, 162, 0.6); /* Vert sauge pour ombre */
    animation: none;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Section de stats/features */
.features-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 4rem 2rem;
    margin: 4rem 0;
    border-radius: 16px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-item {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-item i {
    font-size: 3rem;
    color: var(--accent-light);
    margin-bottom: 1rem;
}

.feature-item h4 {
    font-family: var(--font-title);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

/* Fondatrice section améliorée */
.fondatrice-section {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin-bottom: 2rem;
   background: linear-gradient(135deg, var(--background-light) 0%, var(--background-secondary) 100%);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(46, 59, 78, 0.08); /* Bleu nuit pour ombre */
    border: 1px solid var(--background-tertiary);
    position: relative;
    overflow: hidden;
}

.fondatrice-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--accent-color) 0%, transparent 70%);
    opacity: 0.05;
    z-index: 1;
}

.fondatrice-content {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.fondatrice-section img {
    width: 300px;
    height: 400px;
    object-fit: cover;
    border-radius: 60% 60% 0 0;
    border: 2px solid var(--accent-color);
    box-shadow: 0 20px 40px rgba(46, 59, 78, 0.15); /* Bleu nuit pour ombre */
    transition: transform 0.3s ease;
    position: relative;
}

.fondatrice-text {
    flex: 1;
    max-width: 800px;
}

.fondatrice-text h3 {
    font-family: var(--font-title);
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    position: relative;
}

.fondatrice-text h3::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
}

.fondatrice-section p {
    flex: 1;
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Grille de formations améliorée */
.formations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.formation-card {
    background: var(--background-light);
    border: 1px solid var(--background-tertiary);
    border-radius: 12px;
    padding: 0;
    margin-bottom: 1rem;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: block;
    box-shadow: 0 10px 30px rgba(46, 59, 78, 0.1); /* Bleu nuit pour ombre */
    position: relative;
    overflow: hidden;
}

.formation-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
    z-index: 1;
}

.formation-card:hover::before {
    left: 100%;
}

.formation-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(168, 181, 162, 0.2); /* Vert sauge pour ombre */
}

.formation-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
    border: none;
    transition: transform 0.3s ease;
}

.formation-card:hover img {
    transform: scale(1.1);
}

.formation-card h3 {
    text-align: center;
    font-family: var(--font-title);
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding: 0 1.5rem;
    margin-top: 1.5rem;
}

.formation-card p {
    margin-bottom: 1rem;
    color: #9b5e3e;
    padding: 0 1.5rem;
}

.formation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0 1.5rem;
}

.formation-header h3 {
    margin: 0;
    color: var(--text-primary);
    font-family: var(--font-title);
    background: none;
    -webkit-text-fill-color: var(--text-primary);
}

.progress-badge {
    background: var(--accent-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.formation-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Boutons d'achat améliorés */
.formation-card .btn-primary {
    width: calc(100% - 3rem);
    margin: 0 1.5rem 1.5rem;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-dark) 100%);
    border-radius: 12px;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    z-index: 2;
}

.formation-card .btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transition: all 0.3s ease;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.formation-card .btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

/* États vides */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 4rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.empty-state p {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.small-text {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Boutons harmonisés */
.btn-primary {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-family: var(--font-body);
    box-shadow: 0 4px 15px rgba(168, 181, 162, 0.3); /* Vert sauge pour ombre */
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

.btn-secondary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Formations */
.formations-container {
    margin-top: 1rem;
}

.sub-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.sub-tablink {
    background: var(--background-secondary);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--primary-color);
    font-family: var(--font-body);
}

.sub-tablink:hover {
    background: var(--primary-color);
    color: white;
}

.sub-tablink.active {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

/* Barre de progression harmonisée */
.progress-container {
    margin-bottom: 1.5rem;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.progress-info span:first-child {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.progress-text {
    font-weight: 600;
    color: var(--primary-color);
}

.progress-bar {
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-light));
    transition: width 0.3s ease;
    border-radius: 4px;
}

/* Lecteur vidéo */
.video-player {
    margin-top: 2rem;
    background: var(--background-light);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(46, 59, 78, 0.1); /* Bleu nuit pour ombre */
    border: 1px solid var(--primary-color);
}

.video-section h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-title);
}

.video-container {
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
}

.video-container video {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Questionnaire */
.quiz-section {
    background: var(--background-light);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
    box-shadow: 0 2px 10px rgba(46, 59, 78, 0.1); /* Bleu nuit pour ombre */
    border: 1px solid var(--primary-color);
}

.quiz-section h3 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-title);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
}

.form-group textarea {
    width: 100%;
    min-height: 100px;
    padding: 0.75rem;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.3s ease;
    background: var(--background-secondary);
}

.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background: var(--background-light);
}

/* Message de succès harmonisé */
.success-message {
    background: rgba(107, 122, 96, 0.1); /* Vert olive clair */
    border: 1px solid rgba(107, 122, 96, 0.3);
    color: var(--success-color);
    padding: 1rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* Formulaire harmonisé */
.auth-form {
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-group label i {
    color: var(--accent-color);
    width: 16px;
}

.form-group input {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--background-tertiary);
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--background-light);
    color: var(--text-primary);
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(168, 181, 162, 0.1); /* Vert sauge pour ombre */
    transform: translateY(-2px);
}

.form-group input.error {
    border-color: var(--error-color);
    background: rgba(169, 68, 66, 0.05); /* Rouge sombre clair */
}

.form-group input::placeholder {
    color: var(--text-muted);
}

/* Input mot de passe avec toggle */
.password-input {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: var(--accent-color);
}

/* Options du formulaire */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Checkbox personnalisée harmonisée */
.checkbox-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-secondary);
    position: relative;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid var(--background-tertiary);
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-container input:checked + .checkmark {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

.checkbox-container input:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.forgot-link {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.forgot-link:hover {
    color: var(--accent-dark);
    text-decoration: underline;
}

/* Bouton de soumission harmonisé */
.auth-submit {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1rem;
    border-radius: 12px;
    justify-content: center;
    margin-bottom: 1.5rem;
}

/* Divider harmonisé */
.auth-divider {
    text-align: center;
    position: relative;
    margin: 1.5rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--background-tertiary);
    z-index: 1;
}

.auth-divider span {
    background: var(--background-light);
    padding: 0 1rem;
    position: relative;
    z-index: 2;
}

/* Footer du formulaire harmonisé */
.auth-footer {
    text-align: center;
}

.auth-footer p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.register-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--accent-color);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.register-link:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-2px);
}

/* Styles spécifiques pour register */
.register-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    justify-content: center;
}

.stat-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    min-width: 80px;
}

.stat-number {
    font-family: var(--font-title);
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.8rem;
    opacity: 0.9;
    color: white;
}

/* Indicateur de force du mot de passe harmonisé */
.password-strength {
    margin-top: 0.5rem;
}

.strength-bar {
    height: 4px;
    background: var(--background-tertiary);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.strength-fill {
    height: 100%;
    width: 0%;
    border-radius: 2px;
    transition: all 0.3s ease;
    background: var(--text-muted);
}

.strength-fill.weak {
    background: var(--error-color);
}

.strength-fill.medium {
    background: var(--warning-color);
}

.strength-fill.good {
    background: var(--info-color);
}

.strength-fill.strong {
    background: var(--success-color);
}

.strength-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: block;
}

/* Styles pour reset/forgot password */
.security-tips {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.tip-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.tip-item:hover {
    transform: translateX(10px);
}

.tip-item i {
    color: var(--accent-light);
    font-size: 1.5rem;
    margin-top: 0.25rem;
    min-width: 24px;
}

.tip-item h4 {
    color: white;
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    font-weight: 600;
}

.tip-item p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Étapes de récupération */
.recovery-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    animation: slideInLeft 0.6s ease forwards;
    opacity: 0;
    transform: translateX(-30px);
}

.step-item:hover {
    transform: translateX(10px);
    background: rgba(255, 255, 255, 0.15);
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.step-number {
    width: 32px;
    height: 32px;
    background: var(--accent-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(230, 137, 74, 0.3);
}

.step-content h4 {
    color: white;
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    font-weight: 600;
}

.step-content p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Critères de mot de passe */
.password-requirements {
    background: var(--background-secondary);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid var(--background-tertiary);
}

.password-requirements h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 0.95rem;
    font-weight: 600;
}

.requirements-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
}

.requirement {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.requirement i {
    color: var(--error-color);
    font-size: 0.9rem;
    width: 16px;
    transition: all 0.3s ease;
}

.requirement.met {
    color: var(--success-color);
}

.requirement.met i {
    color: var(--success-color);
}

/* Note d'aide */
.help-note {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1rem;
    border-radius: 20px;
    margin-top: 2rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

.help-note i {
    color: var(--accent-light);
    font-size: 1rem;
}

/* Aide pour l'input */
.input-help {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    opacity: 0.8;
}

.input-help i {
    font-size: 0.9rem;
    color: var(--accent-color);
}

/* Liens d'authentification */
.auth-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    transition: all 0.3s ease;
    min-width: 200px;
    justify-content: center;
}

.back-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Section d'aide */
.help-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--background-tertiary);
}

.help-section h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1rem;
    text-align: center;
}

.help-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.help-option {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--background-secondary);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.help-option:hover {
    background: var(--background-tertiary);
    transform: translateY(-2px);
}

.help-option i {
    color: var(--accent-color);
    font-size: 1.1rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.help-option strong {
    color: var(--text-primary);
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.25rem;
}

.help-option p {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin: 0;
    line-height: 1.4;
}

.help-option a {
    color: var(--accent-color);
    text-decoration: none;
}

.help-option a:hover {
    text-decoration: underline;
}

/* Navigation active pour auth */
nav a.active {
    color: var(--accent-color);
    font-weight: 600;
}

/* Footer harmonisé */
footer {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    text-align: center;
    padding: 1.5rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    border-top: 2px solid var(--accent-color);
}

footer p {
    margin: 0.5rem 0;
}

footer a {
    color: var(--accent-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--background-light);
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
    body {
        padding-top: 70px;
        font-size: 16px;
        line-height: 1.6;
    }

    header {
        padding: 0.75rem 1rem;
    }

    header h1 {
        font-size: 1.5rem;
    }

    nav {
        gap: 1rem;
    }

    nav a {
        font-size: 0.9rem;
        padding: 0.5rem 0.8rem;
    }

    .hero-section,
    .formation-hero {
        padding: 5rem 1.5rem 3rem;
    }

    .hero-section .subtitle {
        font-size: 1rem;
        line-height: 1.5;
        padding: 0 0.5rem;
    }

    .hero-section h1,
    .formation-hero h1 {
        font-size: 1.75rem;
        line-height: 1.3;
        margin-bottom: 1.2rem;
        padding: 0 0.5rem;
        word-wrap: break-word;
    }

    .hero-subtitle-line {
        display: block;
        font-size: 1.25rem;
        margin-top: 0.4rem;
    }

    .hero-content {
        max-width: 100%;
        padding: 0;
    }

    /* Amélioration des boutons sur mobile */
    .cta-button,
    .btn-primary,
    .btn-secondary {
        padding: 1rem 1.5rem;
        font-size: 1rem;
        min-height: 48px;
    }

    /* Amélioration des cards sur mobile */
    .formation-card,
    .navigation-card,
    .content-card {
        padding: 1.5rem;
    }

    /* Textes plus lisibles */
    p {
        font-size: 1rem;
        line-height: 1.6;
    }

    h2 {
        font-size: 1.75rem;
        line-height: 1.3;
        margin-bottom: 1.5rem;
    }

    h3 {
        font-size: 1.4rem;
        line-height: 1.3;
    }
    
    .container.dashboard-layout,
    body:has(.navigation-card) .container {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }
    
    .nav-buttons {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .nav-btn {
        flex: 1;
        min-width: 120px;
    }
    
    .formation-hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .formation-meta {
        justify-content: center;
    }
    
    .formation-nav {
        flex-direction: column;
        align-items: center;
    }
    
    .formation-details-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline-item {
        padding-left: 60px;
    }
    
    .videos-grid {
        grid-template-columns: 1fr;
    }
    
    .certificates-grid {
        grid-template-columns: 1fr;
    }
    
    .sub-tabs {
        flex-direction: column;
    }
    
    .fondatrice-content {
        flex-direction: column;
        text-align: center;
    }
    
    .fondatrice-section img {
        width: 100%;
        max-width: 300px;
        height: auto;
    }
    
    .formations-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-content h3 {
        font-size: 1.5rem;
    }
    
    /* Auth responsive - Design complètement refait pour mobile */

    .auth-main {
        padding: 1rem;
        min-height: 100vh;
        background: var(--background-light);
    }

    .auth-container {
        grid-template-columns: 1fr;
        min-height: auto;
        max-width: 100%;
        background: white;
        border-radius: 16px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
        margin-top: 1rem;
    }

    .auth-visual {
        display: none !important;
    }

    .auth-form-section {
        padding: 2rem 1.5rem;
        width: 100%;
        max-width: 100%;
    }

    .form-header {
        text-align: center;
        margin-bottom: 2rem;
    }

    .form-header h1 {
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
        color: var(--primary-color);
    }

    .form-header p {
        font-size: 0.95rem;
        color: var(--text-secondary);
    }

    .form-group {
        margin-bottom: 1.5rem;
    }

    .form-group label {
        font-size: 0.95rem;
        font-weight: 600;
        margin-bottom: 0.5rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        color: var(--text-primary);
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 16px !important;
        padding: 1rem;
        min-height: 52px;
        width: 100%;
        border: 2px solid var(--background-tertiary);
        border-radius: 12px;
        transition: all 0.3s ease;
    }

    .form-group input:focus,
    .form-group textarea:focus,
    .form-group select:focus {
        border-color: var(--accent-color);
        outline: none;
        box-shadow: 0 0 0 3px rgba(210, 105, 30, 0.1);
    }

    .auth-btn {
        padding: 1.1rem;
        font-size: 1.05rem;
        min-height: 54px;
        width: 100%;
        border-radius: 12px;
        font-weight: 600;
    }

    .divider {
        margin: 1.75rem 0;
        font-size: 0.9rem;
    }

    .social-login {
        flex-direction: column;
        gap: 1rem;
    }

    .social-btn {
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
    }

    .form-footer {
        text-align: center;
        margin-top: 1.5rem;
        font-size: 0.95rem;
    }

    .error-message,
    .success-message {
        padding: 1rem;
        font-size: 0.95rem;
        border-radius: 12px;
        margin-bottom: 1.5rem;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .register-stats {
        gap: 1rem;
    }
    
    .recovery-steps {
        gap: 1rem;
    }
    
    .step-item {
        padding: 0.75rem;
    }
    
    .security-tips {
        gap: 1rem;
    }
    
    .tip-item {
        padding: 0.75rem;
    }
    
    .requirements-list {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .password-requirements {
        padding: 1rem;
    }
    
    .help-options {
        gap: 0.75rem;
    }
    
    .help-option {
        padding: 0.75rem;
    }
    
    .auth-links {
        gap: 0.75rem;
    }
    
    .back-link,
    .register-link {
        min-width: 180px;
        padding: 0.6rem 1.25rem;
        font-size: 0.9rem;
    }
    
    /* Formations personnalisées responsive */
    .intro-text p {
        font-size: 1rem;
    }
    
    .formation-warning,
    .formation-info {
        flex-direction: column;
        text-align: center;
        padding: 1.25rem;
    }
    
    .formation-warning i,
    .formation-info i {
        margin-top: 0;
        margin-bottom: 0.5rem;
    }
    
    blockquote {
    background: var(--background-secondary);
    border-left: 4px solid var(--accent-color);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 8px;
    position: relative;
    overflow: hidden; /* Pour gérer les éléments internes */
}
    
    blockquote i.fas.fa-quote-left {
    position: absolute;
    top: -10px;
    left: 15px;
    font-size: 2rem;
    color: var(--accent-color);
    background: var(--background-secondary);
    padding: 0.5rem;
}
    
    blockquote p {
    font-style: italic;
    font-size: 1.1rem;
    color: var(--text-primary);
    margin: 0;
    padding-left: 3rem; /* Décalage vers la droite avec padding au lieu de margin */
    display: inline-flex; /* Permet d'aligner l'icône à la suite */
    align-items: baseline; /* Aligne verticalement texte et icône */
}

    blockquote i.fas.fa-quote-right {
    margin-left: 0.5rem; /* Espacement après le texte */
    font-size: 2rem; /* Même taille que fa-quote-left */
    color: var(--accent-color);
    position: relative;
    top: 2px; /* Ajustement vertical */
}
    
    .benefit-item {
        padding: 1.5rem;
    }
    
    .benefit-item i {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    /* Hero section sur petits écrans */
    .hero-section {
        padding: 4rem 1rem 2.5rem;
    }

    .hero-section h1 {
        font-size: 1.4rem;
        line-height: 1.4;
        margin-bottom: 1rem;
        padding: 0;
    }

    .hero-subtitle-line {
        display: block;
        font-size: 1rem;
        margin-top: 0.3rem;
    }

    .hero-section .subtitle {
        font-size: 0.85rem;
        line-height: 1.5;
        padding: 0;
    }

    .hero-cta {
        padding: 0.9rem 1.5rem;
        font-size: 0.95rem;
    }

    /* Auth pages sur petits écrans - Design optimisé */
    .auth-main {
        padding: 0.75rem 0.5rem;
        background: white;
    }

    .auth-container {
        max-width: 100%;
        border-radius: 12px;
        box-shadow: none;
        margin-top: 0.5rem;
    }

    .auth-form-section {
        padding: 1.75rem 1.25rem;
    }

    .form-header {
        margin-bottom: 1.75rem;
    }

    .form-header h1 {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    .form-header p {
        font-size: 0.9rem;
        margin-top: 0.4rem;
    }

    .form-group {
        margin-bottom: 1.25rem;
    }

    .form-group label {
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 16px !important;
        padding: 0.9rem;
        min-height: 50px;
        border-radius: 10px;
    }

    .auth-btn {
        padding: 1rem;
        font-size: 1rem;
        min-height: 52px;
        border-radius: 10px;
    }

    .error-message,
    .success-message {
        padding: 0.95rem;
        font-size: 0.9rem;
        margin-bottom: 1.25rem;
    }

    .form-footer {
        margin-top: 1.25rem;
        font-size: 0.9rem;
    }

    .divider {
        margin: 1.5rem 0;
        font-size: 0.85rem;
    }
    
    .register-stats {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .stat-item {
        min-width: 120px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .step-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .recovery-steps {
        display: none;
    }
    
    .tip-item {
        flex-direction: column;
        text-align: center;
    }
    
    .tip-item i {
        margin-top: 0;
    }
    
    .security-tips {
        display: none;
    }
    
    .help-note {
        flex-direction: column;
        text-align: center;
        gap: 0.25rem;
    }
    
    .help-options {
        gap: 0.5rem;
    }
    
    .help-option {
        flex-direction: column;
        text-align: center;
        padding: 0.75rem;
    }
    
    .help-option i {
        margin-top: 0;
    }
    
    .auth-links {
        width: 100%;
    }
    
    .back-link,
    .register-link {
        width: 100%;
    }
    
    .reset-icon,
    .forgot-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    .formation-badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .intro-text p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .formation-warning,
    .formation-info {
        padding: 1rem;
    }
    
    .formation-warning h4,
    .formation-info h4 {
        font-size: 1rem;
    }
    
    .benefit-item {
        padding: 1.25rem;
    }
    
    .benefit-item h4 {
        font-size: 1.1rem;
    }
    
    .benefit-item i {
        font-size: 1.8rem;
    }
    
    .password-requirements h4 {
        font-size: 0.9rem;
    }
    
    .requirement {
        font-size: 0.8rem;
    }
}
.success-message-final {
    background: var(--success-color);
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    margin-top: 2rem;
}

.success-message i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* Certificats harmonisés */
.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}






/* Compte */
.account-card {
    background: var(--background-secondary);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid var(--primary-color);
}

.account-info {
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
}

.info-item i {
    font-size: 1.2rem;
    color: var(--accent-color);
    width: 20px;
}

.info-item div {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.info-item label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.info-item span {
    color: var(--text-primary);
    font-weight: 600;
}

/* Icônes générales harmonisées */
.icon {
    color: var(--accent-color);
    font-size: 1.1rem;
    margin-right: 0.5rem;
    vertical-align: middle;
}

/* FORMATIONS PERSONNALISÉES */

/* Hero section formation */
.formation-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 6rem 2rem 4rem;
    position: relative;
    overflow: hidden;
}

.formation-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    z-index: 1;
}

/* Cercles décoratifs pour les hero des formations */
.hero-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    pointer-events: none;
}

.hero-decoration .decoration-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 2px solid rgba(255, 255, 255, 0.15);
    animation: floatHero 6s ease-in-out infinite;
}

.hero-decoration .circle-1 {
    width: 100px;
    height: 100px;
    top: 10%;
    left: 20%;
    animation-delay: 0s;
}

.hero-decoration .circle-2 {
    width: 70px;
    height: 70px;
    top: 20%;
    left: 45%;
    animation-delay: 0.5s;
}

.hero-decoration .circle-3 {
    width: 55px;
    height: 55px;
    top: 15%;
    left: 70%;
    animation-delay: 1s;
}

.hero-decoration .circle-4 {
    width: 85px;
    height: 85px;
    top: 40%;
    left: 15%;
    animation-delay: 1.5s;
}

.hero-decoration .circle-5 {
    width: 45px;
    height: 45px;
    top: 35%;
    left: 40%;
    animation-delay: 2s;
}

.hero-decoration .circle-6 {
    width: 75px;
    height: 75px;
    top: 50%;
    left: 60%;
    animation-delay: 2.5s;
}

.hero-decoration .circle-7 {
    width: 40px;
    height: 40px;
    top: 30%;
    left: 80%;
    animation-delay: 3s;
}

.hero-decoration .circle-8 {
    width: 60px;
    height: 60px;
    top: 65%;
    left: 25%;
    animation-delay: 3.5s;
}

.hero-decoration .circle-9 {
    width: 50px;
    height: 50px;
    top: 60%;
    left: 50%;
    animation-delay: 4s;
}

.hero-decoration .circle-10 {
    width: 35px;
    height: 35px;
    top: 55%;
    left: 75%;
    animation-delay: 4.5s;
}

.hero-decoration .circle-11 {
    width: 65px;
    height: 65px;
    top: 75%;
    left: 35%;
    animation-delay: 5s;
}

.hero-decoration .circle-12 {
    width: 45px;
    height: 45px;
    top: 80%;
    left: 65%;
    animation-delay: 5.5s;
}

@keyframes floatHero {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }
    50% {
        transform: translateY(-25px) scale(1.15);
    }
}

.formation-hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.formation-hero-text h1 {
    font-family: var(--font-title);
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, white, #f5e8d3); /* Beige sable */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.formation-hero-description {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.formation-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
}

.meta-item.price-highlight {
    background: var(--accent-color);
    font-weight: 600;
    font-size: 1.1rem;
}

.formation-hero-image {
    position: relative;
}

.formation-hero-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(46, 59, 78, 0.3); /* Bleu nuit pour ombre */
}

.image-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(46, 59, 78, 0.7); /* Bleu nuit */
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.image-overlay i {
    font-size: 1.5rem;
}

.formation-cta {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(168, 181, 162, 0.4); /* Vert sauge pour ombre */
    animation: pulse 2s infinite;
}

/* Badges de formation */
.formation-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Hero sections spécifiques par formation */
.kobido-hero {
    background: var(--kobido-color);
}

.amincissant-hero {
    background: var(--amincissant-color);
}
.shiatsu-hero {
    background: var(--shiatsu-color);
}

/* Navigation interne */
.formation-nav {
    display: flex;
    gap: 0.5rem;
    margin: 2rem 0;
    padding: 1rem;
    background: var(--background-secondary);
    border-radius: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: transparent;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
    background: var(--accent-color);
    color: white;
    transform: translateY(-2px);
}

/* Sections formation */
.formation-section {
    margin: 3rem 0;
    scroll-margin-top: 120px;
}

/* Grille des détails */
.formation-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.details-card {
    background: var(--background-light);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(46, 59, 78, 0.1); /* Bleu nuit pour ombre */
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid var(--background-tertiary);
}

.details-card:hover {
    transform: translateY(-5px);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 1.5rem;
}

.details-card h3 {
    font-family: var(--font-title);
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.details-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Cards spécifiques par formation */
.kobido-card .card-icon {
    background: linear-gradient(135deg, var(--kobido-color), var(--kobido-dark));
}

.amincissant-card .card-icon {
    background: linear-gradient(135deg, var(--amincissant-color), var(--amincissant-dark));
}

.shiatsu-card .card-icon {
    background: linear-gradient(135deg, var(--shiatsu-color), var(--shiatsu-dark));
}

/* Sections d'information spéciales */
.formation-warning {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: rgba(217, 166, 139, 0.1); /* Terracotta clair */
    border: 1px solid rgba(217, 166, 139, 0.3);
    border-left: 4px solid var(--warning-color);
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 2rem;
}

.formation-warning i {
    color: var(--warning-color);
    font-size: 1.5rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.formation-warning h4 {
    color: var(--warning-color);
    margin: 0 0 0.5rem 0;
    font-family: var(--font-title);
}

.formation-warning p {
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

.amincissant-warning {
    background: rgba(244, 162, 122, 0.1); /* Pêche clair */
    border-color: rgba(244, 162, 122, 0.3);
    border-left-color: var(--amincissant-color);
}

.amincissant-warning i,
.amincissant-warning h4 {
    color: var(--amincissant-color);
}

.formation-info {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: rgba(107, 122, 96, 0.1); /* Vert olive clair */
    border: 1px solid rgba(107, 122, 96, 0.3);
    border-left: 4px solid var(--success-color);
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 2rem;
}

.formation-info i {
    color: var(--success-color);
    font-size: 1.5rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.formation-info h4 {
    color: var(--success-color);
    margin: 0 0 0.5rem 0;
    font-family: var(--font-title);
}

.formation-info p {
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

.shiatsu-info {
    background: rgba(107, 122, 96, 0.1); /* Vert olive clair */
    border-color: rgba(107, 122, 96, 0.3);
    border-left-color: var(--shiatsu-color);
}

.shiatsu-info i,
.shiatsu-info h4 {
    color: var(--shiatsu-color);
}

/* Texte d'introduction */
.intro-text {
    margin-bottom: 2rem;
}

.intro-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.intro-text strong {
    color: var(--text-primary);
    font-weight: 600;
}

.intro-text em {
    color: var(--accent-color);
    font-style: italic;
}

/* Citations */
blockquote {
    background: var(--background-secondary);
    border-left: 4px solid var(--accent-color);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 8px;
    position: relative;
}

blockquote i.fa-quote-left {
    position: absolute;
    top: -10px;
    left: 15px;
    font-size: 2rem;
    color: var(--accent-color);
    background: var(--background-secondary);
    padding: 0.5rem;
}

blockquote p {
    font-style: italic;
    font-size: 1.1rem;
    color: var(--text-primary);
    margin: 0;
    margin-left: 1rem;
}

/* Grilles de bénéfices personnalisées */
.benefits-grid {
    box-shadow: 0 5px 15px rgba(46, 59, 78, 0.08); /* Bleu nuit pour ombre */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.benefit-item {
    background: var(--background-light);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.benefit-item:hover {
    transform: translateY(-5px);
    border-color: var(--kobido-color);
    box-shadow: 0 10px 30px rgba(217, 166, 139, 0.2); /* Terracotta clair */
}

.benefit-item i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.benefit-item h4 {
    font-family: var(--font-title);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.benefit-item p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Couleurs spécifiques pour chaque formation */
.kobido-benefits .benefit-item:hover {
    border-color: var(--kobido-color);
    box-shadow: 0 10px 30px rgba(205, 133, 63, 0.2);
}

.kobido-benefits .benefit-item i {
    color: var(--kobido-color);
}

.amincissant-benefits .benefit-item:hover {
    border-color: var(--amincissant-color);
    box-shadow: 0 10px 30px rgba(244, 162, 122, 0.2); /* Pêche */
}

.amincissant-benefits .benefit-item i {
    color: var(--amincissant-color);
}

.shiatsu-benefits .benefit-item:hover {
    border-color: var(--shiatsu-color);
    box-shadow: 0 10px 30px rgba(107, 122, 96, 0.2); /* Vert olive */
}
.shiatsu-benefits .benefit-item i {
    color: var(--shiatsu-color);
}

/* Timeline du programme */
.program-timeline {
    position: relative;
    max-width: 600px;
    margin: 2rem auto;
}

.program-timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--accent-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 80px;
}

.timeline-marker {
    position: absolute;
    left: 15px;
    top: 0;
    width: 30px;
    height: 30px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

.timeline-content {
    background: var(--background-light);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(46, 59, 78, 0.1); /* Bleu nuit pour ombre */
    border-left: 4px solid var(--accent-color);
    position: relative;
}

.timeline-content h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-family: var(--font-title);
}

.timeline-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.timeline-duration {
    background: var(--background-secondary);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Grille des vidéos */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.video-card {
    background: var(--background-light);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(46, 59, 78, 0.1); /* Bleu nuit pour ombre */
    transition: transform 0.3s ease;
}

.video-card:hover {
    transform: translateY(-5px);
}

.video-thumbnail {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(46, 59, 78, 0.8); /* Bleu nuit */
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
}

.video-info {
    padding: 1.5rem;
}

.video-info h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-family: var(--font-title);
}

.video-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.video-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.video-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* CTA final harmonisé */
.final-cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 3rem 2rem;
    border-radius: 16px;
    text-align: center;
    margin: 3rem 0;
    position: relative;
    overflow: hidden;
}

.final-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    z-index: 1;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-content h3 {
    font-family: var(--font-title);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.large-btn {
    padding: 1rem 3.5rem;
    font-size: 1.1rem;
    border-radius: 50px;
}

.btn-primary.large-btn {
    padding: 1rem 4.5rem; /* Augmente le padding horizontal pour plus de largeur */
    min-width: 200px; /* Ajoute une largeur minimale */
}

/* CTA finaux personnalisés */
.kobido-cta {
    background: linear-gradient(135deg, var(--kobido-color) 0%, var(--kobido-dark) 100%);
}

.amincissant-cta {
    background: linear-gradient(135deg, var(--amincissant-color) 0%, var(--amincissant-dark) 100%);
}

.shiatsu-cta {
    background: linear-gradient(135deg, var(--shiatsu-color) 0%, var(--shiatsu-dark) 100%);
}

/* Améliorations des détails par formation */
.kobido-details,
.amincissant-details,
.shiatsu-details {
    animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* PAGES D'AUTHENTIFICATION */

/* Body spécifique pour les pages d'auth */
.auth-page {
    background: linear-gradient(135deg, var(--background-light) 0%, var(--background-secondary) 100%);
    min-height: 100vh;
}

/* Container principal d'authentification */
.auth-main {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.auth-container {
    max-width: 1100px;
    width: 100%;
    background: var(--background-light);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 600px;
}

/* Section visuelle gauche */
.auth-visual {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: white;
    overflow: hidden;
}

.auth-visual-content {
    text-align: center;
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s ease;
}

.visual-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.visual-icon i {
    font-size: 2rem;
    color: var(--accent-light);
}

.auth-visual h2 {
    font-family: var(--font-title);
    font-size: 2rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.auth-visual p {
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.features-list .feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.features-list .feature-item:hover {
    transform: translateX(10px);
}

.features-list .feature-item i {
    color: var(--accent-light);
    font-size: 1.2rem;
    width: 20px;
}

/* Décoration visuelle */
.auth-visual-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.decoration-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
}

.circle-1 {
    width: 100px;
    height: 100px;
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.circle-2 {
    width: 60px;
    height: 60px;
    bottom: 20%;
    left: 15%;
    animation-delay: 2s;
}

.circle-3 {
    width: 80px;
    height: 80px;
    top: 60%;
    right: 20%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
        opacity: 0.7;
    }
    50% { 
        transform: translateY(-20px) rotate(180deg); 
        opacity: 0.3;
    }
}

/* Variantes visuelles pour les pages d'auth */
.register-visual {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-dark) 100%);
}

.reset-visual {
    background: linear-gradient(135deg, var(--kobido-color) 0%, var(--kobido-dark) 100%);
}

.forgot-visual {
    background: linear-gradient(135deg, var(--shiatsu-color) 0%, var(--shiatsu-dark) 100%);
}

/* Section formulaire droite */
.auth-form-section {
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-form-content {
    width: 100%;
    max-width: 400px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-header h1 {
    font-family: var(--font-title);
    color: var(--text-primary);
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.form-header p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Icônes des headers de formulaire */
.reset-icon,
.forgot-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    animation: pulse 2s infinite;
}

/* Messages d'état harmonisés */
.error-message {
    background: rgba(204, 102, 68, 0.1);
    border: 1px solid rgba(204, 102, 68, 0.3);
    color: var(--error-color);
    padding: 1rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.error-message i {
    font-size: 1.1rem;
}

.pending-validation {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    color: #856404;
}

.pending-validation i {
    font-size: 2em;
    margin-bottom: 10px;
    display: block;
}

        .pending-validation {
            background: #fff3cd;
            border: 1px solid #ffeaa7;
            border-radius: 8px;
            padding: 20px;
            text-align: center;
            color: #856404;
            margin-top: 20px;
        }

        .pending-validation i {
            font-size: 2em;
            margin-bottom: 10px;
            display: block;
        }

        .pending-validation p {
            margin: 0;
            font-weight: 500;
        }

        /* Styles spécifiques pour la nouvelle interface formation */
        .formation-layout {
            display: grid;
            grid-template-columns: 350px 1fr;
            gap: 0;
            min-height: calc(100vh - 160px);
            background: var(--background-light);
        }

        /* Menu latéral */
        .formation-sidebar {
            background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
            padding: 2rem;
            box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
            position: sticky;
            top: 100px;
            height: calc(100vh - 160px);
            overflow-y: auto;
        }

        .formation-title {
            color: white;
            font-family: var(--font-title);
            font-size: 1.4rem;
            margin-bottom: 0.5rem;
            text-align: center;
        }

        .formation-progress-global {
            background: rgba(255, 255, 255, 0.2);
            border-radius: 12px;
            padding: 1rem;
            margin-bottom: 2rem;
            text-align: center;
        }

        .progress-circle {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            background: conic-gradient(var(--accent-color) 0deg, var(--accent-color) var(--progress-angle, 0deg), rgba(255,255,255,0.3) var(--progress-angle, 0deg));
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 1rem;
            position: relative;
        }

        .progress-circle::before {
            content: '';
            width: 60px;
            height: 60px;
            border-radius: 50%;
            background: var(--primary-color);
            position: absolute;
        }

        .progress-percentage {
            color: white;
            font-weight: 700;
            font-size: 1.2rem;
            z-index: 1;
        }

        .progress-label {
            color: rgba(255, 255, 255, 0.9);
            font-size: 0.9rem;
        }

        /* Liste des vidéos */
        .videos-list {
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
        }

        .video-item {
            background: rgba(255, 255, 255, 0.1);
            border-radius: 12px;
            padding: 1rem;
            cursor: pointer;
            transition: all 0.3s ease;
            border-left: 4px solid transparent;
            backdrop-filter: blur(10px);
        }

        .video-item:hover {
            background: rgba(255, 255, 255, 0.2);
            transform: translateX(5px);
        }

        .video-item.completed {
            border-left-color: var(--success-color);
            background: rgba(95, 138, 95, 0.2);
        }

        .video-item.current {
            border-left-color: var(--accent-color);
            background: rgba(210, 105, 30, 0.2);
            box-shadow: 0 4px 15px rgba(210, 105, 30, 0.3);
        }

        .video-item.locked {
            opacity: 0.5;
            cursor: not-allowed;
            background: rgba(255, 255, 255, 0.05);
        }

        .video-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 0.5rem;
        }

        .video-number {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            color: white;
            font-weight: 600;
            font-size: 0.9rem;
        }

        .video-status {
            width: 24px;
            height: 24px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.8rem;
        }

        .video-status.completed {
            background: var(--success-color);
            color: white;
        }

        .video-status.current {
            background: var(--accent-color);
            color: white;
        }

        .video-status.locked {
            background: rgba(255, 255, 255, 0.3);
            color: rgba(255, 255, 255, 0.6);
        }

        .video-title {
            color: white;
            font-size: 0.95rem;
            margin-bottom: 0.25rem;
            font-weight: 500;
        }

        .video-duration {
            color: rgba(255, 255, 255, 0.7);
            font-size: 0.8rem;
            display: flex;
            align-items: center;
            gap: 0.25rem;
        }

        /* Questionnaire dans le menu */
        .quiz-item {
            background: rgba(139, 154, 127, 0.2);
            border-radius: 12px;
            padding: 1rem;
            margin-top: 1rem;
            border-left: 4px solid var(--info-color);
        }

        .quiz-item.available {
            border-left-color: var(--accent-color);
            background: rgba(210, 105, 30, 0.2);
            cursor: pointer;
        }

        .quiz-item.completed {
            border-left-color: var(--success-color);
            background: rgba(95, 138, 95, 0.2);
        }

        .quiz-title {
            color: white;
            font-weight: 600;
            font-size: 0.95rem;
            margin-bottom: 0.5rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .quiz-description {
            color: rgba(255, 255, 255, 0.8);
            font-size: 0.8rem;
        }

        /* Zone principale */
        .formation-main {
            background: var(--background-light);
            display: flex;
            flex-direction: column;
        }

        /* Header de la vidéo */
        .video-header-main {
            background: var(--background-secondary);
            padding: 2rem;
            border-bottom: 2px solid var(--accent-color);
        }

        .video-title-main {
            font-family: var(--font-title);
            font-size: 1.8rem;
            color: var(--text-primary);
            margin-bottom: 0.5rem;
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        .video-badge {
            background: var(--accent-color);
            color: white;
            padding: 0.5rem 1rem;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 600;
        }

        .video-description-main {
            color: var(--text-secondary);
            font-size: 1.1rem;
            line-height: 1.6;
            margin-bottom: 1rem;
        }

        .video-meta-main {
            display: flex;
            gap: 2rem;
            font-size: 0.9rem;
            color: var(--text-secondary);
        }

        .meta-item-main {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        /* Zone vidéo */
        .video-container-main {
            padding: 2rem;
            flex: 1;
            display: flex;
            flex-direction: column;
        }

        .video-player-wrapper {
            background: #000;
            border-radius: 12px;
            overflow: hidden;
            margin-bottom: 2rem;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
            position: relative;
        }

        .video-player-wrapper video {
            width: 100%;
            height: auto;
            min-height: 400px;
            object-fit: contain;
        }

        /* Overlay de protection */
        .video-overlay-protection {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: transparent;
            z-index: 1;
            pointer-events: none;
        }

        /* Contrôles personnalisés */
        .video-controls {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 1rem;
            margin-bottom: 2rem;
        }

        .playback-info {
            background: var(--background-secondary);
            padding: 1rem 1.5rem;
            border-radius: 12px;
            display: flex;
            align-items: center;
            gap: 1rem;
            flex: 1;
        }

        .time-display {
            color: var(--text-primary);
            font-weight: 600;
            font-family: monospace;
            font-size: 1.1rem;
        }

        .watch-progress {
            flex: 1;
            height: 6px;
            background: var(--background-tertiary);
            border-radius: 3px;
            overflow: hidden;
        }

        .watch-progress-fill {
            height: 100%;
            background: linear-gradient(90deg, var(--accent-color), var(--accent-light));
            width: 0%;
            transition: width 0.3s ease;
        }

        /* Boutons de navigation */
        .video-navigation {
            display: flex;
            gap: 1rem;
        }

        .nav-button {
            background: var(--primary-color);
            color: white;
            border: none;
            padding: 1rem 2rem;
            border-radius: 12px;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .nav-button:hover:not(:disabled) {
            background: var(--primary-dark);
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(139, 154, 127, 0.3);
        }

        .nav-button:disabled {
            opacity: 0.5;
            cursor: not-allowed;
            transform: none;
        }

        .nav-button.next {
            background: var(--accent-color);
        }

        .nav-button.next:hover:not(:disabled) {
            background: var(--accent-dark);
            box-shadow: 0 8px 25px rgba(210, 105, 30, 0.3);
        }

        /* Zone de notes */
        .notes-section {
            background: var(--background-secondary);
            border-radius: 12px;
            padding: 1.5rem;
            margin-top: 2rem;
        }

        .notes-header {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            margin-bottom: 1rem;
            color: var(--text-primary);
            font-weight: 600;
        }

        .notes-textarea {
            width: 100%;
            min-height: 120px;
            padding: 1rem;
            border: 2px solid var(--background-tertiary);
            border-radius: 8px;
            font-family: inherit;
            resize: vertical;
            background: var(--background-light);
            transition: border-color 0.3s ease;
        }

        .notes-textarea:focus {
            outline: none;
            border-color: var(--accent-color);
        }

        /* Badges de gamification */
        .achievement-badge {
            position: fixed;
            top: 120px;
            right: 20px;
            background: var(--success-color);
            color: white;
            padding: 1rem 1.5rem;
            border-radius: 12px;
            box-shadow: 0 10px 30px rgba(95, 138, 95, 0.3);
            z-index: 1000;
            transform: translateX(300px);
            transition: transform 0.5s ease;
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }

        .achievement-badge.show {
            transform: translateX(0);
        }

        .achievement-badge i {
            font-size: 1.5rem;
        }

        /* Questionnaire dans la zone principale */
        .quiz-section-main {
            background: var(--background-secondary);
            border-radius: 16px;
            padding: 2rem;
            margin: 2rem;
            border: 2px solid var(--accent-color);
            box-shadow: 0 10px 30px rgba(210, 105, 30, 0.1);
        }

        .quiz-header-main {
            text-align: center;
            margin-bottom: 2rem;
        }

        .quiz-title-main {
            font-family: var(--font-title);
            font-size: 2rem;
            color: var(--text-primary);
            margin-bottom: 1rem;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 1rem;
        }

        .quiz-description-main {
            color: var(--text-secondary);
            font-size: 1.1rem;
            line-height: 1.6;
        }

        /* États de fin */
        .completion-state {
            text-align: center;
            padding: 3rem 2rem;
        }

        .completion-icon {
            width: 100px;
            height: 100px;
            border-radius: 50%;
            background: var(--success-color);
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 2.5rem;
            margin: 0 auto 2rem;
            box-shadow: 0 10px 30px rgba(95, 138, 95, 0.3);
            animation: celebrationPulse 2s infinite;
        }

        @keyframes celebrationPulse {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.1); }
        }

        .completion-title {
            font-family: var(--font-title);
            font-size: 2.2rem;
            color: var(--text-primary);
            margin-bottom: 1rem;
        }

        .completion-message {
            color: var(--text-secondary);
            font-size: 1.1rem;
            line-height: 1.6;
            margin-bottom: 2rem;
        }

        /* Mode théâtre */
        .theater-mode {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: #000;
            z-index: 9999;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .theater-video {
            width: 90vw;
            height: 90vh;
            object-fit: contain;
        }

        .theater-controls {
            position: absolute;
            bottom: 2rem;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(0, 0, 0, 0.8);
            padding: 1rem 2rem;
            border-radius: 50px;
            display: flex;
            gap: 1rem;
            align-items: center;
        }

        .theater-exit {
            position: absolute;
            top: 2rem;
            right: 2rem;
            background: rgba(0, 0, 0, 0.8);
            color: white;
            border: none;
            padding: 1rem;
            border-radius: 50%;
            cursor: pointer;
            font-size: 1.2rem;
        }

        /* Responsive */
        @media (max-width: 1024px) {
            .formation-layout {
                grid-template-columns: 1fr;
            }

            .formation-sidebar {
                position: static;
                height: auto;
                order: 2;
            }

            .formation-main {
                order: 1;
            }

            .videos-list {
                display: grid;
                grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
                gap: 1rem;
            }
            .nav-list {
        gap: 1.5rem;
    }
    
    .nav-link {
        padding: 0.6rem 1.2rem;
    }
    
    .auth-section {
        gap: 1rem;
    }

        }

        @media (max-width: 768px) {
            .video-header-main {
                padding: 1.5rem;
            }

            .video-title-main {
                font-size: 1.5rem;
                flex-direction: column;
                align-items: flex-start;
                gap: 0.5rem;
            }

            .video-container-main {
                padding: 1.5rem;
            }

            .video-controls {
                flex-direction: column;
                gap: 1rem;
            }

            .video-navigation {
                width: 100%;
                justify-content: space-between;
            }

            .nav-button {
                flex: 1;
                justify-content: center;
            }

            .header-container {
        padding: 0 1rem;
    }
    
    .main-nav,
    .auth-section {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .user-info {
        display: none;
    }
    
    .user-btn-enhanced {
        padding: 0.75rem;
        gap: 0;
        min-width: auto;
    }
    
    .dropdown-chevron {
        display: none;
    }
        }

        /* STYLES POUR LA NOUVELLE INTERFACE FORMATION */

/* Layout principal formation */
.formation-layout {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 0;
    min-height: calc(100vh - 160px);
    background: var(--background-light);
    margin: 0;
    padding: 0;
}

/* Conteneur spécial pour formation */
.container.formation-container {
    max-width: none;
    padding: 0;
    margin: 0;
    background: var(--background-light);
}

/* Menu latéral formation */
.formation-sidebar {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 2rem;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 100px;
    height: calc(100vh - 160px);
    overflow-y: auto;
}

.formation-sidebar::-webkit-scrollbar {
    width: 6px;
}

.formation-sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.formation-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.formation-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.formation-title {
    color: white;
    font-family: var(--font-title);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.formation-progress-global {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 2rem;
    text-align: center;
    backdrop-filter: blur(10px);
}

.progress-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: conic-gradient(var(--accent-color) 0deg, var(--accent-color) var(--progress-angle, 0deg), rgba(255,255,255,0.3) var(--progress-angle, 0deg));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    position: relative;
}

.progress-circle::before {
    content: '';
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-color);
    position: absolute;
}

.progress-percentage {
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    z-index: 1;
    position: relative;
}

.progress-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

/* Liste des vidéos */
.videos-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.video-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    backdrop-filter: blur(10px);
}

.video-item:hover:not(.locked) {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
}

.video-item.completed {
    border-left-color: var(--success-color);
    background: rgba(95, 138, 95, 0.2);
}

.video-item.current {
    border-left-color: var(--accent-color);
    background: rgba(210, 105, 30, 0.2);
    box-shadow: 0 4px 15px rgba(210, 105, 30, 0.3);
}

.video-item.locked {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.05);
}

.video-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.video-number {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

.video-status {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.video-status.completed {
    background: var(--success-color);
    color: white;
}

.video-status.current {
    background: var(--accent-color);
    color: white;
}

.video-status.locked {
    background: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.6);
}

.video-title {
    color: white;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.video-duration {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Questionnaire dans le menu */
.quiz-item {
    background: rgba(139, 154, 127, 0.2);
    border-radius: 12px;
    padding: 1rem;
    margin-top: 1rem;
    border-left: 4px solid var(--info-color);
    backdrop-filter: blur(10px);
}

.quiz-item.available {
    border-left-color: var(--accent-color);
    background: rgba(210, 105, 30, 0.2);
    cursor: pointer;
}

.quiz-item.available:hover {
    background: rgba(210, 105, 30, 0.3);
    transform: translateX(5px);
}

.quiz-item.completed {
    border-left-color: var(--success-color);
    background: rgba(95, 138, 95, 0.2);
}

.quiz-title {
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quiz-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
}

/* Zone principale */
.formation-main {
    background: var(--background-light);
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 160px);
}

/* Header de la vidéo */
.video-header-main {
    background: var(--background-secondary);
    padding: 2rem;
    border-bottom: 2px solid var(--accent-color);
}

.video-title-main {
    font-family: var(--font-title);
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.video-badge {
    background: var(--accent-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.video-description-main {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.video-meta-main {
    display: flex;
    gap: 2rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    flex-wrap: wrap;
}

.meta-item-main {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Zone vidéo */
.video-container-main {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.video-player-wrapper {
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
}

.video-player-wrapper video {
    width: 100%;
    height: auto;
    min-height: 400px;
    object-fit: contain;
}

/* Overlay de protection */
.video-overlay-protection {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: 1;
    pointer-events: none;
}

/* Contrôles personnalisés */
.video-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.playback-info {
    background: var(--background-secondary);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 0;
}

.time-display {
    color: var(--text-primary);
    font-weight: 600;
    font-family: monospace;
    font-size: 1.1rem;
    white-space: nowrap;
}

.watch-progress {
    flex: 1;
    height: 6px;
    background: var(--background-tertiary);
    border-radius: 3px;
    overflow: hidden;
    min-width: 100px;
}

.watch-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-light));
    width: 0%;
    transition: width 0.3s ease;
}

/* Boutons de navigation */
.video-navigation {
    display: flex;
    gap: 1rem;
}

.nav-button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.nav-button:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 154, 127, 0.3);
}

.nav-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.nav-button.next {
    background: var(--accent-color);
}

.nav-button.next:hover:not(:disabled) {
    background: var(--accent-dark);
    box-shadow: 0 8px 25px rgba(210, 105, 30, 0.3);
}

/* Zone de notes */
.notes-section {
    background: var(--background-secondary);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 2rem;
    border: 1px solid var(--background-tertiary);
}

.notes-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 600;
}

.notes-textarea {
    width: 100%;
    min-height: 120px;
    padding: 1rem;
    border: 2px solid var(--background-tertiary);
    border-radius: 8px;
    font-family: inherit;
    resize: vertical;
    background: var(--background-light);
    transition: border-color 0.3s ease;
    color: var(--text-primary);
}

.notes-textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.notes-textarea::placeholder {
    color: var(--text-muted);
}

/* Badges de gamification */
.achievement-badge {
    position: fixed;
    top: 120px;
    right: 20px;
    background: var(--success-color);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(95, 138, 95, 0.3);
    z-index: 1000;
    transform: translateX(300px);
    transition: transform 0.5s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.achievement-badge.show {
    transform: translateX(0);
}

.achievement-badge i {
    font-size: 1.5rem;
}

/* Questionnaire dans la zone principale */
.quiz-section-main {
    background: var(--background-secondary);
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem;
    border: 2px solid var(--accent-color);
    box-shadow: 0 10px 30px rgba(210, 105, 30, 0.1);
}

.quiz-header-main {
    text-align: center;
    margin-bottom: 2rem;
}

.quiz-title-main {
    font-family: var(--font-title);
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.quiz-description-main {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
}

.quiz-form .form-group {
    margin-bottom: 2rem;
}

.quiz-form .form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.quiz-form .form-group textarea {
    min-height: 150px;
    font-size: 1rem;
    line-height: 1.5;
}

/* États de fin */
.completion-state {
    text-align: center;
    padding: 3rem 2rem;
}

.completion-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--success-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 2rem;
    box-shadow: 0 10px 30px rgba(95, 138, 95, 0.3);
    animation: celebrationPulse 2s infinite;
}

@keyframes celebrationPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.completion-title {
    font-family: var(--font-title);
    font-size: 2.2rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.completion-message {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Mode théâtre */
.theater-mode {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theater-video {
    width: 90vw;
    height: 90vh;
    object-fit: contain;
}

.theater-controls {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    padding: 1rem 2rem;
    border-radius: 50px;
    display: flex;
    gap: 1rem;
    align-items: center;
    backdrop-filter: blur(10px);
}

.theater-exit {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background 0.3s ease;
}

.theater-exit:hover {
    background: rgba(0, 0, 0, 0.9);
}

/* Responsive */
@media (max-width: 1200px) {
    .formation-layout {
        grid-template-columns: 320px 1fr;
    }
    
    .formation-sidebar {
        padding: 1.5rem;
    }
}

@media (max-width: 1024px) {
    .formation-layout {
        grid-template-columns: 1fr;
    }

    .formation-sidebar {
        position: static;
        height: auto;
        order: 2;
        padding: 2rem;
    }

    .formation-main {
        order: 1;
        min-height: auto;
    }

    .videos-list {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .video-header-main {
        padding: 1.5rem;
    }

    .video-title-main {
        font-size: 1.5rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .video-container-main {
        padding: 1.5rem;
    }

    .video-controls {
        flex-direction: column;
        gap: 1rem;
    }

    .playback-info {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
    }

    .video-navigation {
        width: 100%;
        justify-content: space-between;
    }

    .nav-button {
        flex: 1;
        justify-content: center;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .video-meta-main {
        gap: 1rem;
    }

    .formation-sidebar {
        padding: 1.5rem;
    }

    .formation-title {
        font-size: 1.2rem;
    }

    .quiz-title-main {
        font-size: 1.6rem;
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .video-player-wrapper video {
        min-height: 250px;
    }

    .video-header-main {
        padding: 1rem;
    }

    .video-container-main {
        padding: 1rem;
    }

    .quiz-section-main {
        margin: 1rem;
        padding: 1.5rem;
    }

    .completion-state {
        padding: 2rem 1rem;
    }

    .completion-icon {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }

    .completion-title {
        font-size: 1.8rem;
    }

    .nav-button {
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
    }

    .time-display {
        font-size: 0.9rem;
    }

    .formation-sidebar {
        padding: 1rem;
    }

    .videos-list {
        grid-template-columns: 1fr;
    }
}

/* Styles spécifiques admin */


.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.admin-nav-item {
    background: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    border: none !important;
}

.admin-nav-item:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-2px) !important;
}

.admin-nav-item.active {
    background: var(--accent-color) !important;
    box-shadow: 0 4px 12px rgba(210, 105, 30, 0.3) !important;
}

.admin-nav-item.logout-admin {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%) !important;
    color: white !important;
    margin-top: auto !important;
}

.admin-nav-item.logout-admin:hover {
    background: linear-gradient(135deg, #c82333 0%, #a71e2a 100%) !important;
    transform: translateY(-2px) !important;
}

.admin-section {
    display: none;
    animation: fadeInUp 0.5s ease;
}

.admin-section.active {
    display: block;
}

.stat-card {
    background: var(--background-light);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--background-tertiary);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent-color);
}

.stat-card.revenue::before {
    background: var(--success-color);
}

.stat-card.users::before {
    background: var(--info-color);
}

.stat-card.formations::before {
    background: var(--warning-color);
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.stat-icon.revenue {
    background: var(--success-color);
}

.stat-icon.users {
    background: var(--info-color);
}

.stat-icon.formations {
    background: var(--warning-color);
}

.stat-icon.completion {
    background: var(--accent-color);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: var(--font-title);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.stat-change {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.stat-change.positive {
    color: var(--success-color);
}

.stat-change.negative {
    color: var(--error-color);
}

.chart-control {
    background: var(--background-secondary) !important;
    border: 2px solid var(--background-tertiary) !important;
    color: var(--text-secondary) !important;
}

.chart-control.active {
    background: var(--accent-color) !important;
    color: white !important;
    border-color: var(--accent-color) !important;
    transform: translateY(-2px) !important;
}

.search-input {
    padding: 0.5rem 1rem;
    border: 2px solid var(--background-tertiary);
    border-radius: 8px;
    background: var(--background-secondary);
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-color);
}

.stats-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.stats-table th {
    background: var(--background-secondary);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 2px solid var(--background-tertiary);
}

.stats-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--background-tertiary);
    color: var(--text-secondary);
}

.stats-table tr:hover {
    background: var(--background-secondary);
}

.action-btn {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
}

.action-btn.validate {
    background: var(--success-color);
}

.action-btn.reject {
    background: var(--error-color);
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-badge.pending {
    background: rgba(255, 193, 7, 0.2);
    color: #856404;
}

.status-badge.completed {
    background: rgba(95, 138, 95, 0.2);
    color: var(--success-color);
}

.status-badge.active {
    background: rgba(210, 105, 30, 0.2);
    color: var(--accent-color);
}


.top-formations {
    background: var(--background-light);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.formation-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--background-tertiary);
}

.formation-item:last-child {
    border-bottom: none;
}

.formation-info h4 {
    margin: 0 0 0.25rem 0;
    color: var(--text-primary);
    font-size: 1rem;
}

.formation-info p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.formation-stats {
    text-align: right;
}

.formation-revenue {
    font-weight: 700;
    color: var(--success-color);
    font-size: 1.1rem;
}

.formation-count {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.recent-activity {
    background: var(--background-light);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.activity-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--background-tertiary);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: white;
    flex-shrink: 0;
}

.activity-icon.purchase {
    background: var(--success-color);
}

.activity-icon.registration {
    background: var(--info-color);
}

.activity-icon.completion {
    background: var(--accent-color);
}

.activity-content h5 {
    margin: 0 0 0.25rem 0;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.activity-content p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.activity-time {
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .admin-nav {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .table-search {
        flex-direction: column;
        width: 100%;
    }

    .search-input {
        width: 100%;
    }
}

/* Améliorations dashboard client */
.dashboard-hero {
    background: var(--primary-color);
    color: white;
    padding: 3rem 2rem 2rem;
    margin: -2rem -2rem 3rem;
    border-radius: 0 0 24px 24px;
    position: relative;
    overflow: hidden;
}

.dashboard-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-greeting {
    font-size: 2.2rem;
    font-family: var(--font-title);
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, white, rgba(255,255,255,0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.hero-stat {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 16px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-stat-value {
    font-size: 2rem;
    font-weight: 700;
    font-family: var(--font-title);
    margin-bottom: 0.25rem;
}

.hero-stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Navigation améliorée */
.dashboard-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.nav-card {
    background: var(--background-light);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.nav-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.nav-card:hover::before {
    left: 100%;
}

.nav-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-color);
    box-shadow: 0 20px 40px rgba(210, 105, 30, 0.2);
}

.nav-card.active {
    border-color: var(--accent-color);
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-dark) 100%);
    color: white;
}

.nav-card-icon {
    width: 60px;
    height: 60px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin: 0 auto 1rem;
    transition: all 0.3s ease;
}

.nav-card.active .nav-card-icon {
    background: white;
    color: var(--accent-color);
}

.nav-card-title {
    font-family: var(--font-title);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.nav-card.active .nav-card-title {
    color: white;
}

.nav-card-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    opacity: 0.8;
}

.nav-card.active .nav-card-desc {
    color: rgba(255, 255, 255, 0.9);
}

/* Section de contenu améliorée */
.dashboard-content {
    background: var(--background-light);
}

.content-section {
    display: none;
    animation: fadeInUp 0.5s ease;
}

.content-section.active {
    display: block;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--accent-color);
}

.section-title {
    font-family: var(--font-title);
    font-size: 2rem;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-actions {
    display: flex;
    gap: 1rem;
}

/* Profil utilisateur amélioré */
.profile-section {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.profile-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    margin: 0 auto 1.5rem;
    border: 4px solid rgba(255, 255, 255, 0.3);
}

.profile-name {
    font-family: var(--font-title);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.profile-email {
    opacity: 0.8;
    margin-bottom: 1rem;
}

.profile-badge {
    background: var(--accent-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.profile-info {
    background: var(--background-secondary);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--background-tertiary);
}

.info-grid {
    display: grid;
    gap: 1.5rem;
}

.info-field {
    position: relative;
}

.field-label {
    display: block;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.field-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--background-tertiary);
    border-radius: 12px;
    font-size: 1rem;
    background: var(--background-light);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.field-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(210, 105, 30, 0.1);
}

.field-input:disabled {
    background: var(--background-tertiary);
    cursor: not-allowed;
    opacity: 0.7;
}

.edit-toggle {
    position: absolute;
    right: 1rem;
    top: 2.2rem;
    background: none;
    border: none;
    color: var(--accent-color);
    cursor: pointer;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.edit-toggle:hover {
    color: var(--accent-dark);
}

/* Formations cards améliorées */
.formations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.formation-card-enhanced {
    background: var(--background-light);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    border: 2px solid transparent;
    position: relative;
}

.formation-card-enhanced:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    border-color: var(--accent-color);
}

.formation-thumbnail {
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.formation-content {
    padding: 2rem;
}

.formation-title {
    font-family: var(--font-title);
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.formation-progress-section {
    margin: 1.5rem 0;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.progress-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.progress-value {
    font-weight: 700;
    color: var(--accent-color);
    font-size: 1.1rem;
}

.progress-bar-modern {
    height: 10px;
    background: var(--background-tertiary);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-fill-modern {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-light));
    border-radius: 10px;
    transition: width 0.6s ease;
    position: relative;
}

.progress-fill-modern::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.formation-actions {
    display: flex;
    gap: 1rem;
    margin-top: 0 1.5rem 1.5rem;
}

.action-button {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.action-primary {
    background: var(--accent-color);
    color: white;
}

.action-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
}

.action-secondary {
    background: var(--background-secondary);
    color: var(--text-primary);
    border: 2px solid var(--background-tertiary);
}

.action-secondary:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Responsive amélioré */
@media (max-width: 1024px) {
    .dashboard-nav {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }

    .profile-section {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }

        }

        @media (max-width: 768px) {





        }

        @media (max-width: 480px) {









        }

            .hero-greeting {
                font-size: 1.8rem;
            }

            .dashboard-nav {
                grid-template-columns: 1fr;
            }

            .formations-grid {
                grid-template-columns: 1fr;
            }

            .formation-actions {
                flex-direction: column;
            }

            .hero-stats {
                grid-template-columns: 1fr;
                gap: 1rem;
            }

            .section-header {
                flex-direction: column;
                gap: 1rem;
                align-items: flex-start;
            }
        }

.logout-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 2rem;
        border-radius: 16px;
        text-align: center;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 10px 30px rgba(220, 53, 69, 0.1);
        position: relative;
    }
    .logout-card {
        background: linear-gradient(135deg, #dc3545 0%, #c82333 100%) !important;
        color: white !important;
        border: 2px solid transparent !important;
    }
    
    .logout-card:hover {
        background: linear-gradient(135deg, #c82333 0%, #a71e2a 100%) !important;
        transform: translateY(-8px);
        box-shadow: 0 20px 40px rgba(220, 53, 69, 0.3) !important;
    }
    
    .logout-card .nav-card-icon {
        background: rgba(255, 255, 255, 0.2) !important;
        color: white !important;
    }
    
    .logout-card .nav-card-title,
    .logout-card .nav-card-desc {
        color: white !important;
    }
    
    .logout-card:hover .nav-card-icon {
        background: rgba(255, 255, 255, 0.3) !important;
        transform: scale(1.1);
    }

    .logout-admin {
        background: linear-gradient(135deg, #dc3545 0%, #c82333 100%) !important;
        color: white !important;
        margin-top: auto; /* Pousse le bouton vers le bas */
    }
    
    .logout-admin:hover {
        background: linear-gradient(135deg, #c82333 0%, #a71e2a 100%) !important;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4) !important;
    }
    
    .logout-admin i {
        color: white !important;
    }
    /* ==============================================
   DASHBOARD NAVIGATION STYLES
   ============================================== */

.dashboard-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
}

.nav-card {
    background: var(--background-light);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.nav-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--accent-color);
}

.nav-card.active {
    border-color: var(--accent-color);
    background: var(--accent-color);
    color: white;
}

.nav-card.active .nav-card-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.nav-card.active .nav-card-title,
.nav-card.active .nav-card-desc {
    color: white;
}

.nav-card-icon {
    background: var(--accent-color);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.nav-card-title {
    font-family: var(--font-title);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
    transition: color 0.3s ease;
}

.nav-card-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
    transition: color 0.3s ease;
}

/* Styles spéciaux pour la carte de déconnexion */
.logout-card {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%) !important;
    color: white !important;
    border: 2px solid #dc3545 !important;
}

.logout-card:hover {
    background: linear-gradient(135deg, #c82333 0%, #bd2130 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.3) !important;
}

.logout-icon {
    background: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
}

.logout-card .nav-card-title,
.logout-card .nav-card-desc {
    color: white !important;
}

/* Dashboard Hero Styles */
.dashboard-hero {
    background: var(--primary-color);
    color: white;
    padding: 3rem 2rem;
    border-radius: 20px;
    margin-bottom: 2rem;
    text-align: center;
}

.hero-greeting {
    font-family: var(--font-title);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.hero-stat {
    text-align: center;
}

.hero-stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.hero-stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dashboard-nav {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .nav-card {
        padding: 1.5rem;
    }
    
    .nav-card-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .nav-card-title {
        font-size: 1.1rem;
    }
    
    .nav-card-desc {
        font-size: 0.9rem;
    }
    
    .dashboard-hero {
        padding: 2rem 1rem;
    }
    
    .hero-greeting {
        font-size: 2rem;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .hero-stat-value {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-stats {
        grid-template-columns: 1fr;
    }
}

/* ==============================================
   DASHBOARD CONTENT SECTIONS STYLES
   ============================================== */

.dashboard-content {
    margin-top: 2rem;
}

.content-section {
    display: none;
}

.content-section.active {
    display: block;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-title {
    font-family: var(--font-title);
    font-size: 2rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.section-title i {
    color: var(--accent-color);
}

/* Profile Section Styles */
.profile-section {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    align-items: start;
}

.profile-card {
    background: var(--background-light);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 2px solid var(--background-tertiary);
}

.profile-avatar {
    width: 80px;
    height: 80px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.profile-name {
    font-family: var(--font-title);
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.profile-email {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.profile-badge {
    background: var(--background-secondary);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    display: inline-block;
}

.profile-info {
    background: var(--background-light);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 2px solid var(--background-tertiary);
}

/* Form Styles */
.info-grid {
    display: grid;
    gap: 1.5rem;
}

.info-field {
    position: relative;
}

.field-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

.field-label i {
    color: var(--accent-color);
    width: 16px;
}

.field-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--background-tertiary);
    border-radius: 12px;
    font-size: 1rem;
    background: white;
    transition: all 0.3s ease;
    font-family: var(--font-body);
}

.field-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(210, 105, 30, 0.1);
}

.field-input:disabled {
    background: var(--background-secondary);
    color: var(--text-secondary);
    cursor: not-allowed;
}

.edit-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--accent-color);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.edit-toggle:hover {
    background: rgba(210, 105, 30, 0.1);
}

/* Button Styles */
.btn-primary {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(74, 155, 142, 0.3); /* Sage moderne */
}

.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(168, 181, 162, 0.4); /* Vert sauge pour ombre */
}

.btn-secondary {
    background: var(--background-secondary);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 1rem 3.5rem; /* Même padding horizontal que .btn-primary.large-btn */
    min-width: 200px; /* Même largeur minimale que .btn-primary.large-btn */
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-family: var(--font-body);
    box-shadow: 0 4px 15px rgba(168, 181, 162, 0.3); /* Vert sauge pour ombre */
}
.btn-secondary,
.btn-primary {
    flex: 0; /* Ajout pour taille égale */
    width: 100%; /* Ajout pour largeur cohérente */
    margin: 0; /* Modification pour supprimer marges individuelles */
    padding: 1rem; /* Ajustement pour uniformité */
    font-size: 1rem; /* Ajustement pour uniformité */
    border-radius: 12px; /* Uniformité des coins */
    display: flex;
    align-items: center;
    justify-content: center; /* Centrage contenu */
    gap: 0.5rem; /* Espacement icône/texte */
}

/* Checkbox Styles */
input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-color);
    cursor: pointer;
}

/* Empty State Styles */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 4rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.empty-state h3 {
    font-family: var(--font-title);
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.empty-state p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Formation Cards */
.formations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.formation-card-enhanced {
    background: var(--background-light);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 2px solid var(--background-tertiary);
    transition: all 0.3s ease;
}

.formation-card-enhanced:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--accent-color);
}

.formation-thumbnail {
    background: var(--accent-color);
    color: white;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.formation-content {
    padding: 2rem;
}

.formation-title {
    font-family: var(--font-title);
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.formation-progress-section {
    margin: 1.5rem 0;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.progress-label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.progress-value {
    font-weight: 700;
    color: var(--accent-color);
    font-size: 0.9rem;
}

.progress-bar-modern {
    width: 100%;
    height: 8px;
    background: var(--background-tertiary);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill-modern {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-color), #E2725B);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.formation-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 0 1.5rem 1.5rem;
}

.action-button {
    flex: 1;
    min-width: 120px;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    text-decoration: none;
}

.action-primary {
    background: var(--accent-color);
    color: white;
}

.action-primary:hover {
    background: #B8540F;
    transform: translateY(-2px);
}

.action-secondary {
    background: var(--background-secondary);
    color: var(--text-primary);
    border: 2px solid var(--background-tertiary);
}

.action-secondary:hover {
    background: var(--background-tertiary);
    border-color: var(--accent-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .profile-section {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .formations-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .formation-card-enhanced {
        margin-bottom: 1rem;
    }
    
    .formation-actions {
        flex-direction: column;
    }
    
    .action-button {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .profile-card,
    .profile-info {
        padding: 1.5rem;
    }
    
    .formation-content {
        padding: 1.5rem;
    }
    
    .info-grid {
        gap: 1rem;
    }
}

:root {
    --header-height: 80px;
}

/* ==================== HEADER PRINCIPAL ==================== */
.modern-header {
    background: linear-gradient(135deg, #FFFDF9 0%, #F8F6F0 100%);
    border-bottom: 1px solid rgba(210, 105, 30, 0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.modern-header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    background: rgba(255, 253, 249, 0.95);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem; /* Espacement général entre les éléments */
}

/* ==================== LOGO & BRAND ==================== */
.brand-link {
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

.brand-link:hover {
    transform: translateY(-1px);
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-icon {
    width: 60px;
    height: 60px;
    transition: transform 0.3s ease;
}

.brand-text h1 {
    font-family: var(--font-title);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.2;
}

.brand-tagline {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 400;
    display: block;
    margin-top: -2px;
}

/* ==================== NAVIGATION ==================== */
.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 2.5rem; /* Espacement augmenté entre les boutons */
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem; /* Padding augmenté pour plus d'espace */
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    border-radius: 25px; /* Bordures plus arrondies */
    transition: all 0.3s ease;
    background: transparent;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(210, 105, 30, 0.1), transparent);
    transition: left 0.5s ease;
    z-index: -1;
}

.nav-link i {
    font-size: 1.1rem;
    opacity: 0.8;
}


.nav-link:hover {
    color: var(--accent-color);
    background: rgba(210, 105, 30, 0.05);
    border-color: rgba(210, 105, 30, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(210, 105, 30, 0.15);
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link.active {
    background: var(--accent-color);
    color: white;
    box-shadow: 0 4px 15px rgba(210, 105, 30, 0.3);
}

.nav-link.active i {
    color: white;
}

/* ==================== DROPDOWN ==================== */
.dropdown {
    position: relative;
}

.dropdown-arrow {
    font-size: 0.8rem;
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    display: none; /* Masqué par défaut */
    position: absolute;
    background: rgba(254, 252, 250, 0.98);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(232, 213, 196, 0.3); /* Beige doux */
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(44, 62, 42, 0.2);
    min-width: 180px;
    padding: 0.5rem 0;
    z-index: 100;
    top: 100%;
    left: 0;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none; 
}
.nav-item.dropdown.active .dropdown-menu {
    display: block; 
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0) scale(1);
}

.dropdown-content {
    padding: 1.5rem;
    display: none;
}

.dropdown-link-simple {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    text-decoration: none;
    color: var(--text-primary);
    padding: 1rem 1.25rem;
    border-radius: 15px;
    transition: all 0.3s ease;
    margin-bottom: 0.75rem;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.dropdown-link-simple::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, 
        rgba(210, 105, 30, 0.05) 0%, 
        rgba(210, 105, 30, 0.1) 50%, 
        rgba(210, 105, 30, 0.05) 100%);
    transition: left 0.4s ease;
    z-index: -1;
}

.dropdown-link-simple:hover::before {
    left: 0;
}

.dropdown-link-simple:hover {
    background: rgba(210, 105, 30, 0.05);
    border-color: rgba(210, 105, 30, 0.2);
    box-shadow: 0 6px 20px rgba(210, 105, 30, 0.15);
}
.dropdown-link-simple:last-child {
    margin-bottom: 0;
}

.dropdown-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--accent-color) 0%, #CD853F 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(210, 105, 30, 0.3);
    transition: all 0.3s ease;
}

.dropdown-link-simple:hover .dropdown-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 16px rgba(210, 105, 30, 0.4);
}

.dropdown-text strong {
    display: block;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.dropdown-text small {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.dropdown-price {
    margin-left: auto;
    background: var(--primary-color);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.dropdown-footer {
    border-top: 1px solid var(--background-tertiary);
    padding-top: 1rem;
    margin-top: 0.5rem;
}
.formation-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
    transition: color 0.3s ease;
}
.dropdown-link-simple:hover .formation-name {
    color: var(--accent-color);
}

.auth-section {
    display: flex;
    align-items: center;
    gap: 1.5rem; /* Espacement augmenté entre les boutons */
}

.login-btn {
    color: var(--accent-color);
    background: rgba(210, 105, 30, 0.08);
    border-color: rgba(210, 105, 30, 0.2);
}

.login-btn:hover {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(210, 105, 30, 0.25);
}

.register-btn {
    background: var(--accent-color);
    color: white;
    box-shadow: 0 4px 15px rgba(210, 105, 30, 0.3);
}

.register-btn:hover {
    background: #B8722B;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(210, 105, 30, 0.4);
}

.view-all-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    background: var(--accent-color);
    color: white;
    padding: 0.8rem;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.view-all-btn:hover {
    background: #B8540F;
    transform: translateY(-2px);
}

/* ==================== ACTIONS UTILISATEUR ==================== */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.auth-buttons {
    display: flex;
    gap: 0.8rem;
}

.btn-login,
.btn-register {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    padding: 0.7rem 1.2rem;
    border-radius: 12px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-login {
    background: var(--accent-color);
    color: white;
    border: 2px solid var(--accent-color);
    
}

.btn-login:hover {
    background: var(--primary-color); /* Couleur au choix */
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-register {
    background: var(--accent-color);
    color: white;
    border: 2px solid var(--accent-color);
}

.btn-register:hover {
    background: var(--primary-color); /* Couleur au choix */
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* ==================== USER MENU ==================== */
.user-menu {
    position: relative;
}

.user-btn {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.user-btn:hover {
    background: var(--background-secondary);
}

.user-avatar {
    width: 35px;
    height: 35px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.user-name {
    font-weight: 600;
    color: var(--text-primary);
}

.user-dropdown {
    background: var(--background-light);
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 40px rgba(46, 59, 78, 0.15); /* Bleu nuit pour ombre */
    border: 1px solid var(--background-tertiary);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.user-menu:hover .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    color: var(--text-primary);
    padding: 0.8rem 1rem;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    white-space: nowrap;
}

.user-link:hover {
    background: var(--background-secondary);
}

.user-link i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.user-link span {
    flex: 1;
}

.user-link.logout {
    color: #dc3545;
    border-top: 1px solid var(--background-tertiary);
    margin-top: 0.25rem;
    font-weight: 500;
}

.user-link.logout:hover {
    background: rgba(220, 53, 69, 0.1);
    color: #c82333;
}

.user-link.logout i {
    color: #dc3545;
}

/* ==================== MOBILE ==================== */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.6rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    z-index: 1002;
    position: relative;
}

.mobile-toggle span {
    width: 26px;
    height: 3px;
    background: var(--text-primary);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-toggle:hover {
    background: var(--background-secondary);
}

.mobile-toggle:active {
    transform: scale(0.95);
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1100;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    background: white;
    height: 100%;
    padding: 1.5rem;
    padding-top: calc(var(--header-height) + 1.5rem);
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 320px;
    width: 85%;
    overflow-y: auto;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.2);
}

.mobile-menu.active .mobile-menu-content {
    transform: translateX(0);
}

.mobile-nav {
    margin-bottom: 2rem;
}

.mobile-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--text-primary);
    padding: 1rem 1.2rem;
    margin-bottom: 0.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-size: 1.05rem;
    font-weight: 500;
}

.mobile-link:hover,
.mobile-link.active {
    background: var(--accent-color);
    color: white;
    transform: translateX(5px);
}

.mobile-link i {
    font-size: 1.2rem;
    width: 24px;
}

.mobile-dropdown-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    color: var(--text-primary);
    padding: 1rem 1.2rem;
    margin-bottom: 0.5rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.05rem;
    font-weight: 500;
}

.mobile-dropdown-btn:hover {
    background: var(--background-secondary);
}

.mobile-dropdown-btn i:first-child {
    font-size: 1.2rem;
    margin-right: 1rem;
}

.mobile-dropdown-btn i:last-child {
    transition: transform 0.3s ease;
}

.mobile-dropdown.active .mobile-dropdown-btn i:last-child {
    transform: rotate(180deg);
}

.mobile-dropdown-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-dropdown.active .mobile-dropdown-content {
    max-height: 300px;
}

.mobile-formation-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--text-secondary);
    padding: 0.9rem 1rem 0.9rem 2.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
}

.mobile-formation-link:hover {
    background: var(--background-secondary);
    color: var(--text-primary);
    transform: translateX(5px);
}

.mobile-formation-link i {
    font-size: 1.1rem;
    width: 20px;
}

.mobile-auth {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border-top: 1px solid var(--background-tertiary);
    padding-top: 2rem;
}

.mobile-auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    text-decoration: none;
    padding: 1.1rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.mobile-auth-btn.login {
    color: var(--text-primary);
    border: 2px solid var(--background-tertiary);
}

.mobile-auth-btn.login:hover {
    background: var(--background-secondary);
    border-color: var(--accent-color);
}

.mobile-auth-btn.register {
    background: var(--accent-color);
    color: white;
}

.mobile-auth-btn.register:hover {
    background: #B8732B;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(210, 105, 30, 0.3);
}

.mobile-auth-btn i {
    font-size: 1.1rem;
}

/* Ajustement du contenu principal pour le header fixe */
body {
    padding-top: var(--header-height);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .header-container {
        padding: 0 1.5rem;
    }
    
    .brand-text h1 {
        font-size: 1.3rem;
    }
    
    .nav-list {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .main-nav,
    .auth-buttons {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .brand-logo {
        gap: 0.6rem;
        max-width: 70%;
    }

    .brand-text h1 {
        font-size: 0.95rem;
        line-height: 1.2;
    }

    .brand-tagline {
        font-size: 0.65rem;
        line-height: 1.2;
    }

    .logo-icon {
        width: 40px;
        height: 40px;
        flex-shrink: 0;
    }

    .circular-logo {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0 0.8rem;
    }

    .brand-logo {
        gap: 0.5rem;
        max-width: 65%;
    }

    .brand-text h1 {
        font-size: 0.85rem;
        line-height: 1.2;
    }

    .brand-tagline {
        font-size: 0.6rem;
        line-height: 1.2;
    }

    .logo-icon {
        width: 35px;
        height: 35px;
    }

    .circular-logo {
        width: 35px;
        height: 35px;
    }
}

.user-btn-enhanced {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: white;
    border: 2px solid rgba(210, 105, 30, 0.2);
    padding: 0.75rem 1.25rem;
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    min-width: 180px;
}

.user-btn-enhanced:hover {
    border-color: var(--accent-color);
    box-shadow: 0 6px 20px rgba(210, 105, 30, 0.2);
    transform: translateY(-2px);
}

.user-avatar-enhanced {
    width: 45px;
    height: 45px;
    background:  #CD853F;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(210, 105, 30, 0.3);
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
}

.user-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.3;
}

.user-status {
    font-size: 0.8rem;
    color: var(--accent-color);
    font-weight: 500;
}

.dropdown-chevron {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.user-menu:hover .dropdown-chevron {
    transform: rotate(180deg);
    color: var(--accent-color);
}
.mobile-menu-btn {
    display: none;
    background: none;
    border: 2px solid rgba(210, 105, 30, 0.2);
    padding: 0.75rem;
    border-radius: 12px;
    cursor: pointer;
    color: var(--accent-color);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    background: rgba(210, 105, 30, 0.1);
    border-color: var(--accent-color);
}

/* Responsive pour user menu enhanced */
@media (max-width: 768px) {
    .user-btn-enhanced {
        padding: 0.5rem 0.9rem;
        gap: 0.8rem;
        min-height: 48px;
    }

    .user-avatar-enhanced {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }

    .user-name {
        font-size: 0.9rem;
    }

    .user-status {
        font-size: 0.75rem;
    }

    /* Menu utilisateur dropdown sur mobile */
    .user-dropdown {
        right: 0;
        left: auto;
        min-width: 200px;
    }

    .user-link {
        padding: 0.9rem 1.2rem;
        font-size: 0.95rem;
    }
}

/* ==================== TOAST NOTIFICATIONS ==================== */
.toast-container {
    position: fixed !important;
    top: 100px !important;
    right: 20px !important;
    z-index: 10000 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
    pointer-events: none;
}

.toast {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    padding: 1rem 1.5rem;
    min-width: 320px;
    max-width: 450px;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: all;
    border-left: 4px solid;
    position: relative;
    overflow: hidden;
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast > i {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.toast-content {
    flex: 1;
    min-width: 0;
}

.toast-title {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.toast-message {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.toast-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: currentColor;
    width: 100%;
    transform-origin: left;
}

/* Toast types */
.toast.success {
    border-left-color: var(--success-color);
}

.toast.success > i {
    color: var(--success-color);
}

.toast.success .toast-progress {
    background: var(--success-color);
}

.toast.error {
    border-left-color: var(--error-color);
}

.toast.error > i {
    color: var(--error-color);
}

.toast.error .toast-progress {
    background: var(--error-color);
}

.toast.warning {
    border-left-color: var(--warning-color);
}

.toast.warning > i {
    color: var(--warning-color);
}

.toast.warning .toast-progress {
    background: var(--warning-color);
}

.toast.info {
    border-left-color: var(--info-color);
}

.toast.info > i {
    color: var(--info-color);
}

.toast.info .toast-progress {
    background: var(--info-color);
}

/* Responsive toast */
@media (max-width: 768px) {
    .toast-container {
        top: 75px;
        right: 12px;
        left: 12px;
    }

    .toast {
        min-width: auto;
        max-width: none;
        padding: 1rem 1.2rem;
    }

    .toast > i {
        font-size: 1.3rem;
    }

    .toast-title {
        font-size: 0.95rem;
    }

    .toast-message {
        font-size: 0.9rem;
        line-height: 1.5;
    }
}