/* Styles pour la page veille.html */
:root {
    --primary-color: #1f262b;
    --primary-color-light: #2a3338;
    --secondary-color: #32494e;
    --accent-color: #96eec8;
    --accent-color-light: #bdf5dc;
    --accent-gradient: linear-gradient(135deg, #96eec8, #65c8a4);
    --text-color: #ffffff;
    --light-gray: #f5f5f5;
    --dark-gray: #333333;
    --shadow-light: 0 5px 15px rgba(150, 238, 200, 0.2);
    --shadow-medium: 0 8px 25px rgba(0, 0, 0, 0.15);
    --shadow-dark: 0 10px 30px rgba(0, 0, 0, 0.25);
    --bg-color: #32494e;
}

/* Variables pour le thème clair */
[data-theme="light"] {
    --primary-color: #f5f7f6;
    --primary-color-light: #fafbfa;
    --secondary-color: #f0f4f2;
    --accent-color: #2e7d32;
    --accent-color-light: #4caf50;
    --accent-gradient: linear-gradient(135deg, #2e7d32, #4caf50);
    --text-color: #1a1a1a;
    --light-gray: #e8ebe9;
    --dark-gray: #2d2d2d;
    --shadow-light: 0 5px 15px rgba(46, 125, 50, 0.15);
    --shadow-medium: 0 8px 25px rgba(0, 0, 0, 0.08);
    --shadow-dark: 0 10px 30px rgba(0, 0, 0, 0.12);
    --bg-color: #f0f4f2;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    font-size: 16px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* En-tête */
.veille-header {
    background: linear-gradient(135deg, rgba(31, 38, 43, 0.95), rgba(50, 73, 78, 0.95));
    padding: 30px 20px;
    text-align: center;
    border-bottom: 3px solid var(--accent-color);
    position: relative;
    transition: background 0.3s ease;
}

[data-theme="light"] .veille-header {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(245, 247, 246, 0.95));
}

.header-content h1 {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 10px;
    font-weight: 700;
}

.header-content h1 i {
    margin-right: 15px;
}

.header-subtitle {
    font-size: 1.1rem;
    color: var(--text-color);
    opacity: 0.9;
    margin-top: 10px;
}

.back-home-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 10px 20px;
    background: var(--accent-gradient);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
    display: flex;
    align-items: center;
    gap: 8px;
}

[data-theme="light"] .back-home-btn {
    color: #ffffff;
}

.back-home-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

/* Sections */
.veille-section {
    margin-bottom: 50px;
    background: linear-gradient(135deg, rgba(31, 38, 43, 0.95), rgba(50, 73, 78, 0.95));
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow-medium);
    transition: all 0.3s ease;
}

[data-theme="light"] .veille-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(245, 247, 246, 0.95));
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.section-title {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--accent-color);
}

.section-title i {
    font-size: 1.8rem;
}

/* Carte définition */
.definition-card {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 15px;
    border-left: 4px solid var(--accent-color);
    transition: all 0.3s ease;
}

[data-theme="light"] .definition-card {
    background: rgba(46, 125, 50, 0.08);
    border-left-color: var(--accent-color);
}

.definition-card:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-light);
}

.definition-icon {
    font-size: 3rem;
    color: var(--accent-color);
    flex-shrink: 0;
}

.definition-content {
    flex: 1;
}

.definition-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--text-color);
}

.definition-text strong {
    color: var(--accent-color);
    font-weight: 600;
}

.definition-list {
    list-style: none;
    padding-left: 0;
    margin-top: 20px;
}

.definition-list li {
    padding: 12px 0;
    padding-left: 40px;
    position: relative;
    color: var(--text-color);
    font-size: 1rem;
    border-bottom: 1px solid rgba(150, 238, 200, 0.1);
    transition: all 0.3s ease;
}

[data-theme="light"] .definition-list li {
    border-bottom-color: rgba(46, 125, 50, 0.2);
}

.definition-list li:last-child {
    border-bottom: none;
}

.definition-list li i {
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-size: 1.2rem;
}

.definition-list li:hover {
    padding-left: 45px;
    color: var(--accent-color-light);
}

/* Contenu veille */
.veille-content {
    margin-top: 30px;
}

.veille-intro {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    transition: background 0.3s ease;
}

[data-theme="light"] .veille-intro {
    background: rgba(46, 125, 50, 0.05);
}

.veille-icon-large {
    font-size: 4rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.intro-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-color);
    max-width: 800px;
    margin: 0 auto;
}

.intro-text strong {
    color: var(--accent-color);
    font-weight: 600;
}

/* Grille veille */
.veille-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.veille-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid rgba(150, 238, 200, 0.2);
    position: relative;
    overflow: hidden;
}

[data-theme="light"] .veille-card {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(46, 125, 50, 0.3);
}

.veille-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.veille-card:hover::before {
    transform: scaleX(1);
}

.veille-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
    border-color: var(--accent-color);
}

.veille-card-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.veille-card:hover .veille-card-icon {
    transform: scale(1.1) rotate(5deg);
}

.veille-card-title {
    font-size: 1.4rem;
    color: var(--accent-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.veille-card-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-color);
    opacity: 0.9;
}

/* Section Pourquoi */
.veille-why {
    margin-top: 40px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    border-left: 4px solid var(--accent-color);
    transition: all 0.3s ease;
}

[data-theme="light"] .veille-why {
    background: rgba(46, 125, 50, 0.08);
}

.why-title {
    font-size: 1.6rem;
    color: var(--accent-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.why-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--text-color);
}

.why-text strong {
    color: var(--accent-color);
}

.why-list {
    list-style: none;
    padding-left: 0;
    margin-top: 20px;
}

.why-list li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.6;
}

.why-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Sources */
.sources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.source-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid rgba(150, 238, 200, 0.2);
}

[data-theme="light"] .source-card {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(46, 125, 50, 0.3);
}

.source-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-light);
    border-color: var(--accent-color);
}

.source-card i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.source-card h3 {
    font-size: 1.2rem;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.source-card p {
    font-size: 0.95rem;
    color: var(--text-color);
    opacity: 0.8;
}

/* Footer */
.veille-footer {
    text-align: center;
    padding: 30px 20px;
    background-color: var(--primary-color);
    border-top: 2px solid var(--accent-color);
    margin-top: 50px;
    transition: background-color 0.3s ease;
}

[data-theme="light"] .veille-footer {
    background-color: var(--primary-color);
    border-top-color: var(--accent-color);
}

.back-link {
    display: inline-block;
    margin-bottom: 15px;
    padding: 12px 30px;
    background: var(--accent-gradient);
    color: var(--primary-color);
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
}

[data-theme="light"] .back-link {
    color: #ffffff;
}

.back-link:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.copyright {
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.7;
    margin-top: 10px;
}

/* Bouton retour en haut */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--accent-gradient);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: var(--shadow-medium);
    z-index: 1000;
    border: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

[data-theme="light"] .back-to-top {
    color: #ffffff;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: var(--shadow-dark);
}

/* Responsive */
@media (max-width: 768px) {
    .veille-header h1 {
        font-size: 2rem;
    }
    
    .back-home-btn {
        position: relative;
        top: auto;
        right: auto;
        margin-top: 20px;
        display: inline-block;
    }
    
    .veille-section {
        padding: 25px;
    }
    
    .definition-card {
        flex-direction: column;
        text-align: center;
    }
    
    .veille-grid,
    .sources-grid {
        grid-template-columns: 1fr;
    }
}

