/* Variables CSS */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #64748b;
    --success-color: #059669;
    --danger-color: #dc2626;
    --warning-color: #d97706;
    --light-gray: #f8fafc;
    --medium-gray: #e2e8f0;
    --dark-gray: #334155;
    --text-color: #1e293b;
    --background-color: #ffffff;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --card-hover-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --border-radius: 0.5rem;
    --transition: all 0.3s ease;
}

/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-gray);
}

/* Utilitaires */
.hidden {
    display: none !important;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Page de connexion */
.login-page {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.login-container {
    width: 100%;
    max-width: 400px;
}

.login-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--card-hover-shadow);
    padding: 2rem;
    animation: fadeInUp 0.6s ease;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header h1 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.login-header p {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.9rem;
}

.form-control {
    padding: 0.75rem;
    border: 2px solid var(--medium-gray);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    background-color: white;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

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

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

.login-error {
    color: var(--danger-color);
    background-color: rgba(220, 38, 38, 0.1);
    padding: 0.75rem;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    text-align: center;
    border: 1px solid rgba(220, 38, 38, 0.2);
}

.login-info {
    margin-top: 1rem;
    text-align: center;
    padding: 1rem;
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
}

.login-info small {
    color: var(--secondary-color);
    font-size: 0.8rem;
}

/* Navigation principale */
.main-nav {
    background-color: white;
    border-bottom: 1px solid var(--medium-gray);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

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

.nav-brand h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.nav-menu {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.nav-item {
    padding: 0.5rem 1rem;
    border: none;
    background: none;
    color: var(--secondary-color);
    font-weight: 500;
    cursor: pointer;
    border-radius: var(--border-radius);
    transition: var(--transition);
    font-size: 0.95rem;
}

.nav-item:hover {
    background-color: var(--light-gray);
    color: var(--primary-color);
}

.nav-item.active {
    background-color: var(--primary-color);
    color: white;
}

.nav-item.logout {
    color: var(--danger-color);
    border: 1px solid var(--danger-color);
    margin-left: 1rem;
}

.nav-item.logout:hover {
    background-color: var(--danger-color);
    color: white;
}

/* Contenu principal */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.content-section {
    display: none;
    animation: fadeIn 0.5s ease;
}

.content-section.active {
    display: block;
}

.content-section h2 {
    color: var(--text-color);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Section héro */
.hero-section {
    text-align: center;
    padding: 3rem 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(29, 78, 216, 0.1) 100%);
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
}

.hero-section h1 {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
}

.hero-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.hero-card {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

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

.hero-card h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Grille de cartes */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.project-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid var(--medium-gray);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-hover-shadow);
    border-color: var(--primary-color);
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--medium-gray);
    background: linear-gradient(135deg, var(--light-gray) 0%, white 100%);
}

.card-header h3 {
    color: var(--text-color);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.card-period {
    color: var(--secondary-color);
    font-size: 0.9rem;
    font-weight: 500;
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    display: inline-block;
}

.card-content {
    padding: 1.5rem;
}

.card-content p {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Section CV */
.cv-container {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.cv-header {
    text-align: center;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--medium-gray);
    margin-bottom: 2rem;
}

.cv-header h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.cv-section {
    margin-bottom: 2rem;
}

.cv-section h4 {
    color: var(--text-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--medium-gray);
}

.cv-item {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--light-gray);
    border-radius: var(--border-radius);
}

.cv-item strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.5rem;
}

.cv-item span {
    color: var(--secondary-color);
    font-size: 0.9rem;
    float: right;
    background: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
}

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

.skill-category {
    background: var(--light-gray);
    padding: 1.5rem;
    border-radius: var(--border-radius);
}

.skill-category h5 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.skill-category ul {
    list-style: none;
}

.skill-category li {
    padding: 0.5rem 0;
    color: var(--secondary-color);
    border-bottom: 1px solid var(--medium-gray);
}

.skill-category li:last-child {
    border-bottom: none;
}

/* Bouton de téléchargement du CV */
.cv-download-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #edf2f7;
    display: flex;
    justify-content: center;
}

.cv-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 2.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.cv-download-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.cv-download-btn:hover::before {
    left: 100%;
}

.cv-download-btn:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.5);
}

.cv-download-btn:active {
    transform: translateY(-2px) scale(0.98);
}

.download-icon {
    font-size: 2rem;
    animation: bounce-icon 2s ease-in-out infinite;
}

.download-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
}

.download-text strong {
    font-size: 1.1rem;
}

.download-text small {
    font-size: 0.85rem;
    opacity: 0.9;
    font-weight: 400;
}

.download-arrow {
    font-size: 1.5rem;
    animation: bounce-arrow 1.5s ease-in-out infinite;
}

@keyframes bounce-icon {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

@keyframes bounce-arrow {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(5px);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .cv-download-btn {
        flex-direction: column;
        padding: 1.5rem 2rem;
        gap: 0.75rem;
        text-align: center;
    }
    
    .download-text {
        align-items: center;
    }
    
    .download-icon {
        font-size: 2.5rem;
    }
}

/* Section Veille */
.veille-container {
    max-width: 1200px;
    margin: 0 auto;
}

.veille-intro {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2.5rem;
    border-radius: 20px;
    color: white;
    margin-bottom: 2.5rem;
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
    position: relative;
    overflow: hidden;
}

.veille-intro::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%);
    animation: pulse 15s ease-in-out infinite;
}

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

.veille-intro h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 2rem;
    position: relative;
    z-index: 1;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.veille-intro p {
    margin: 0;
    line-height: 1.7;
    font-size: 1.15rem;
    position: relative;
    z-index: 1;
    opacity: 0.95;
}

/* Boutons de filtrage */
.veille-filter-controls {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: center;
    margin: 2rem 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 15px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.filter-label {
    font-weight: 600;
    color: #4a5568;
    font-size: 0.95rem;
    white-space: nowrap;
}

.filter-separator {
    width: 2px;
    height: 40px;
    background: linear-gradient(180deg, transparent, #cbd5e0, transparent);
}

.view-btn,
.language-btn {
    padding: 0.9rem 1.8rem;
    background: white;
    color: #4a5568;
    border: 2px solid #e2e8f0;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.language-btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
}

.view-btn:hover,
.language-btn:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
    border-color: #667eea;
}

.view-btn:hover .favorites-count,
.language-btn:hover .language-count {
    background: rgba(255, 255, 255, 0.25);
    color: white;
}

.view-btn.active,
.language-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.3);
}

.view-btn.active:hover,
.language-btn.active:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.favorites-count,
.language-count {
    background: rgba(0, 0, 0, 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.875rem;
    min-width: 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.view-btn.active .favorites-count,
.language-btn.active .language-count {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    font-weight: 700;
}

.veille-themes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 2.5rem;
}

.veille-error {
    background: linear-gradient(135deg, #fff5f5 0%, #fed7d7 100%);
    border: 2px solid #fc8181;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.veille-error p {
    color: #c53030;
    margin: 0;
    font-weight: 500;
}

.veille-theme {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.veille-theme:hover {
    box-shadow: 0 8px 35px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.theme-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #edf2f7;
}

.theme-header h4 {
    color: #2d3748;
    font-size: 1.35rem;
    margin: 0;
    font-weight: 700;
}

.articles-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}


.veille-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.veille-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--card-color, #667eea), transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.veille-card:hover::before {
    transform: scaleX(1);
}

.veille-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

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

.veille-card-header h3 {
    color: #1a202c;
    font-size: 1.6rem;
    margin: 0;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.veille-badge {
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-size: 0.875rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.veille-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.veille-description {
    color: #4a5568;
    margin-bottom: 2rem;
    line-height: 1.7;
    font-size: 1.05rem;
}

.veille-articles {
    margin-bottom: 1.5rem;
}

.veille-article {
    padding: 1.25rem;
    padding-right: 4rem; /* Espace pour le bouton favori */
    margin-bottom: 0.5rem;
    border-radius: 12px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.veille-article::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: linear-gradient(180deg, #667eea, #764ba2);
    transition: height 0.3s ease;
}

.veille-article:hover::before {
    height: 70%;
}

.veille-article:hover {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-color: #e2e8f0;
    transform: translateX(8px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.veille-article a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.veille-article h5 {
    color: #2d3748;
    margin: 0 0 0.75rem 0;
    font-size: 1.15rem;
    font-weight: 600;
    transition: all 0.3s ease;
    line-height: 1.4;
}

.veille-article:hover h5 {
    color: #667eea;
    transform: translateX(4px);
}

.article-date {
    color: #a0aec0;
    font-size: 0.875rem;
    margin: 0.5rem 0;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.article-date::before {
    content: '📅';
    font-size: 1rem;
}

.article-description {
    color: #718096;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-top: 0.75rem;
}

.veille-sources {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding-top: 1rem;
    border-top: 2px solid #edf2f7;
}

.veille-sources .source {
    background: linear-gradient(135deg, #edf2f7 0%, #e2e8f0 100%);
    color: #4a5568;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.veille-sources .source::before {
    content: '🔗';
    margin-right: 0.5rem;
}

.veille-sources .source:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3);
}

.loading {
    text-align: center;
    padding: 4rem;
    color: #718096;
    font-size: 1.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.loading::before {
    content: '⏳';
    font-size: 3rem;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error {
    color: #e53e3e;
    background: linear-gradient(135deg, #fff5f5 0%, #fed7d7 100%);
    border-radius: 15px;
    border: 2px solid #feb2b2;
    text-align: center;
    padding: 3rem;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(229, 62, 62, 0.2);
}

.error::before {
    content: '⚠️';
    display: block;
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Animation d'apparition des cartes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.veille-card {
    animation: fadeInUp 0.6s ease-out;
}

.veille-card:nth-child(1) {
    animation-delay: 0.1s;
}

.veille-card:nth-child(2) {
    animation-delay: 0.2s;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    overflow-y: auto;
    padding: 2rem 1rem;
}

.modal:not(.hidden) {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 15px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

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

.modal-header {
    padding: 2rem;
    border-bottom: 2px solid var(--medium-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
    border-radius: 15px 15px 0 0;
}

.modal-header h3 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--secondary-color);
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background-color: var(--light-gray);
    color: var(--danger-color);
    transform: rotate(90deg);
}

.modal-body {
    padding: 2rem;
}

.detail-section {
    margin-bottom: 2rem;
}

.detail-section:last-child {
    margin-bottom: 0;
}

.detail-section h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detail-section p {
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.detail-list {
    list-style: none;
    padding: 0;
}

.detail-list li {
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    background: var(--light-gray);
    border-radius: var(--border-radius);
    border-left: 3px solid var(--primary-color);
    transition: all 0.3s ease;
}

.detail-list li:hover {
    background: var(--medium-gray);
    transform: translateX(5px);
}

/* Responsive pour modal */
@media (max-width: 768px) {
    .modal-content {
        max-width: 95%;
        margin: 1rem;
    }

    .modal-header {
        padding: 1.5rem;
    }

    .modal-body {
        padding: 1.5rem;
    }

    .modal-header h3 {
        font-size: 1.2rem;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        height: auto;
        padding: 1rem;
        gap: 1rem;
    }

    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }

    .nav-item {
        padding: 0.5rem;
        font-size: 0.9rem;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .veille-themes {
        grid-template-columns: 1fr;
    }

    .main-content {
        padding: 1rem;
    }

    .cv-container {
        margin: 0 1rem;
        padding: 1.5rem;
    }

    .modal-content {
        margin: 1rem;
        max-height: 95vh;
    }

    .modal-body {
        padding: 1.5rem;
    }

    .veille-themes {
        grid-template-columns: 1fr;
    }
    
    .veille-card-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .veille-intro {
        padding: 2rem;
    }
    
    .veille-intro h3 {
        font-size: 1.6rem;
    }
    
    .veille-card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .login-card {
        padding: 1.5rem;
    }

    .hero-section {
        padding: 2rem 1rem;
    }

    .hero-cards {
        grid-template-columns: 1fr;
    }

    .card-header {
        padding: 1rem;
    }

    .card-content {
        padding: 1rem;
    }

    .veille-article:hover {
        transform: translateX(4px);
    }
}

/* Contrôles de la veille améliorés */
.veille-controls {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.view-toggle {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.language-toggle {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.view-btn {
    padding: 0.875rem 1.75rem;
    border: 2px solid #e2e8f0;
    background: white;
    color: #4a5568;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
}

.view-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: left 0.4s ease;
    z-index: 0;
}

.view-btn:hover::before {
    left: 0;
}

.view-btn .icon,
.view-btn .text,
.view-btn .badge {
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.view-btn:hover {
    border-color: #667eea;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.view-btn:hover .icon,
.view-btn:hover .text,
.view-btn:hover .badge {
    color: white;
}

.view-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.view-btn.active::before {
    display: none;
}

.view-btn .icon {
    font-size: 1.3rem;
}

.view-btn .badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    min-width: 30px;
    text-align: center;
}

.view-btn.active .badge {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    font-weight: 700;
}

.export-btn {
    padding: 0.875rem 1.75rem;
    border: 2px solid #059669;
    background: white;
    color: #059669;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.export-btn:hover {
    background: #059669;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.3);
}

.export-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Amélioration de la section no-articles */
.no-articles {
    text-align: center;
    color: #a0aec0;
    padding: 4rem 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin: 2rem 0;
}

.no-articles-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.no-articles h3 {
    font-size: 1.5rem;
    color: #4a5568;
    margin-bottom: 0.75rem;
}

.no-articles p {
    font-size: 1rem;
    color: #718096;
    margin: 0;
}

/* Bouton favori amélioré - sans superposition */
.veille-article {
    padding: 1.25rem;
    padding-right: 4rem; /* Espace pour le bouton favori */
    margin-bottom: 0.5rem;
    border-radius: 12px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.favorite-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
    flex-shrink: 0;
}

.favorite-btn:hover {
    background: #fff9e6;
    border-color: #fbbf24;
    transform: scale(1.15) rotate(15deg);
    box-shadow: 0 5px 15px rgba(251, 191, 36, 0.4);
}

.favorite-btn.active {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border-color: transparent;
    box-shadow: 0 5px 20px rgba(251, 191, 36, 0.5);
    animation: starPulse 1s ease-in-out;
}

@keyframes starPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2) rotate(10deg); }
}

.veille-article.is-favorite {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 2px solid #fbbf24;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.2);
}

/* Styles pour les badges de langue */
.article-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding-right: 0; /* Pas besoin d'espace supplémentaire, géré par le padding du parent */
}

.article-header h5 {
    flex: 1;
    margin-right: 0.5rem;
}

.language-badge {
    font-size: 1.2rem;
    flex-shrink: 0;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.veille-article:hover .language-badge {
    opacity: 1;
    transform: scale(1.1);
}

/* Responsive amélioré */
@media (max-width: 768px) {
    .veille-article {
        padding: 1rem;
        padding-right: 3.5rem; /* Moins d'espace sur mobile */
    }

    .favorite-btn {
        width: 40px;
        height: 40px;
        font-size: 1.4rem;
        top: 0.5rem;
        right: 0.5rem;
    }

    .article-header {
        gap: 0.5rem;
    }

    .article-header h5 {
        font-size: 1rem;
    }

    .language-badge {
        font-size: 1rem;
    }

    .veille-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .view-toggle {
        flex-direction: column;
        width: 100%;
    }

    .view-btn,
    .export-btn {
        width: 100%;
        justify-content: center;
    }

    .no-articles {
        padding: 3rem 1.5rem;
    }

    .no-articles-icon {
        font-size: 3rem;
    }

    .no-articles h3 {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .veille-article {
        padding: 0.875rem;
        padding-right: 3rem;
    }

    .favorite-btn {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
        top: 0.5rem;
        right: 0.5rem;
    }

    .article-header h5 {
        font-size: 0.95rem;
    }

    .veille-article:hover {
        transform: translateX(4px);
    }
}

/* Toast notification */
.toast-notification {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    font-weight: 600;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
}

.toast-notification.show {
    transform: translateY(0);
    opacity: 1;
}

/* Messages d'état vide pour favoris */
.no-favorites {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    text-align: center;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 15px;
    border: 2px dashed #cbd5e0;
    margin: 1rem 0;
}

.no-favorites-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
    animation: pulse 2s ease-in-out infinite;
}

.no-favorites h3 {
    color: #4a5568;
    margin: 0.5rem 0;
    font-size: 1.25rem;
}

.no-favorites p {
    color: #718096;
    margin: 0.5rem 0 0 0;
    font-size: 0.95rem;
}

.global-no-favorites {
    display: none;
    padding: 4rem 2rem;
    text-align: center;
    animation: fadeIn 0.5s ease;
}

.empty-favorites-illustration {
    max-width: 500px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.empty-star {
    font-size: 6rem;
    margin-bottom: 1.5rem;
    animation: bounce 2s ease-in-out infinite;
}

.empty-favorites-illustration h3 {
    color: #2d3748;
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.empty-favorites-illustration p {
    color: #718096;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.empty-favorites-illustration .view-btn {
    margin-top: 1rem;
}

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

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

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

@media (max-width: 768px) {
    .toast-notification {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
        text-align: center;
    }
    
    .veille-filter-controls {
        flex-direction: column;
        padding: 1rem;
        gap: 1.5rem;
    }
    
    .filter-group {
        width: 100%;
        justify-content: center;
    }
    
    .filter-separator {
        display: none;
    }
    
    .filter-label {
        width: 100%;
        text-align: center;
        margin-bottom: 0.5rem;
    }
    
    .view-btn,
    .language-btn {
        flex: 1;
        min-width: 140px;
        justify-content: center;
    }
    
    .empty-star {
        font-size: 4rem;
    }
    
    .empty-favorites-illustration {
        padding: 2rem 1.5rem;
    }
}