/* CREATIVE AGENCY THEME - Un thème élégant pour les stratèges créatifs et media buyers */

:root {
    /* Palette de couleurs professionnelle */
    --primary: #3a6df0;         /* Bleu vif pour les actions principales */
    --primary-light: #5a89f7;   /* Version plus claire du bleu principal */
    --secondary: #4f5e7b;       /* Bleu-gris pour les éléments secondaires */
    --accent: #ff7a5a;          /* Orange-corail pour les accents */
    --success: #4caf50;         /* Vert pour les succès */
    --warning: #ff9800;         /* Orange pour les avertissements */
    --danger: #f44336;          /* Rouge pour les erreurs */
    --dark: #1f1f2b;            /* Fond sombre */
    --dark-light: #2f2f3b;      /* Fond sombre plus clair */
    --light: #f5f5f7;           /* Texte clair */
    --gray: #8a8a8a;            /* Texte secondaire */
    --border: rgba(255, 255, 255, 0.1); /* Bordures subtiles */
    
    /* Ombres et effets */
    --card-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    --hover-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
    --button-shadow: 0 4px 12px rgba(58, 109, 240, 0.3);
    --inset-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* === RESET ET BASE === */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    transition: all 0.3s ease;
}

body {
    font-family: 'Inter', 'Segoe UI', Roboto, sans-serif;
    background-color: var(--dark);
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(58, 109, 240, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(255, 122, 90, 0.05) 0%, transparent 50%);
}

a {
    text-decoration: none;
    color: var(--primary-light);
}

/* === STRUCTURE === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
}

/* === HEADER === */
header {
    text-align: center;
    padding: 2rem 0;
    margin-bottom: 2rem;
    background-color: var(--dark-light);
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
}

header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

header h1 {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 0.5rem;
}

header p {
    color: var(--gray);
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* === NAVIGATION === */
nav {
    margin-bottom: 2rem;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

nav li {
    margin: 0.5rem;
}

/* === BOUTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.5rem;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--button-shadow);
    transition: all 0.2s ease;
    gap: 8px;
}

.btn i {
    font-size: 1.1em;
}

.btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: all 0.6s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(58, 109, 240, 0.4);
}

.btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 8px rgba(58, 109, 240, 0.3);
}

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

.btn.secondary {
    background-color: var(--secondary);
    box-shadow: 0 4px 12px rgba(79, 94, 123, 0.3);
}

.btn.secondary:hover {
    box-shadow: 0 6px 15px rgba(79, 94, 123, 0.4);
}

.btn.accent {
    background-color: var(--accent);
    box-shadow: 0 4px 12px rgba(255, 122, 90, 0.3);
}

.btn.accent:hover {
    box-shadow: 0 6px 15px rgba(255, 122, 90, 0.4);
}

.btn.large {
    font-size: 1.1rem;
    padding: 1rem 2rem;
}

/* === SECTIONS ET CARTES === */
section {
    background-color: var(--dark-light);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    position: relative;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border);
}

section h2 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

section h2 i {
    color: var(--accent);
}

/* === FORMULAIRES === */
form {
    max-width: 800px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--light);
    font-weight: 500;
}

input[type="text"],
input[type="number"],
textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--light);
    font-family: inherit;
    transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="number"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(58, 109, 240, 0.2);
}

/* === GRILLE D'IMAGES === */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.image-card {
    background-color: var(--dark-light);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid var(--border);
}

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

.image-card img {
    width: 100%;
    height: auto;
    display: block;
    transition: all 0.3s ease;
}

.image-card:hover img {
    filter: brightness(1.1);
}

.image-card .card-actions {
    padding: 1rem;
    display: flex;
    justify-content: space-between;
}

/* === BARRE DE PROGRESSION === */
.task-progress-container {
    width: 100%;
    height: 16px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin: 1.5rem 0;
    overflow: hidden;
    position: relative;
}

.task-progress-bar {
    height: 100%;
    position: relative;
}

.task-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    width: 0%;
    position: relative;
    transition: width 0.5s ease;
}

.task-progress-fill::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.15) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.15) 75%,
        transparent 75%
    );
    background-size: 20px 20px;
    animation: progressStripes 1s linear infinite;
}

@keyframes progressStripes {
    0% { background-position: 0 0; }
    100% { background-position: 20px 0; }
}

.task-progress-percent {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.8);
    z-index: 1;
}

/* === MESSAGES === */
.error-message {
    background-color: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.3);
    color: #f44336;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    position: relative;
}

.success-message {
    background-color: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: #4caf50;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

/* === ANIMATIONS === */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.03); }
    100% { transform: scale(1); }
}

.pulse {
    animation: pulse 2s infinite;
}

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

.fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

/* === FOOTER === */
footer {
    text-align: center;
    padding: 2rem 0;
    margin-top: 2rem;
    color: var(--gray);
    font-size: 0.9rem;
}

/* === ÉLÉMENTS DE JEU === */
.agency-stats {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: var(--dark-light);
    border-radius: 12px;
    padding: 1rem;
    font-size: 0.9rem;
    z-index: 100;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-item i {
    color: var(--accent);
    font-size: 1.1em;
}

.stat-value {
    color: white;
    font-weight: 600;
}

/* Barre d'expérience */
.experience-bar {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.05);
    height: 6px;
    border-radius: 3px;
    margin: 8px 0;
    overflow: hidden;
}

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

/* Carte de campagne */
.campaign-card {
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.campaign-card:hover {
    background-color: rgba(255, 255, 255, 0.05);
    transform: translateY(-3px);
    box-shadow: var(--hover-shadow);
}

.campaign-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.campaign-type {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 1px;
}

.campaign-difficulty {
    font-size: 0.8rem;
    color: var(--gray);
}

.campaign-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: white;
}

.campaign-description {
    color: var(--gray);
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.campaign-rewards {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.reward {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.reward i {
    color: var(--accent);
}

/* Bouton de campagne */
.campaign-btn {
    background: linear-gradient(45deg, var(--primary), var(--accent));
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(58, 109, 240, 0.3);
}

.campaign-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(58, 109, 240, 0.4);
}

.campaign-btn:active {
    transform: translateY(1px);
}

/* Notification */
.agency-notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--dark-light);
    border-left: 4px solid var(--accent);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    color: var(--light);
    z-index: 1000;
    box-shadow: var(--card-shadow);
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    max-width: 90%;
    width: 400px;
}

.agency-notification.show {
    opacity: 1;
}

.agency-notification i {
    color: var(--accent);
    font-size: 1.2rem;
}

/* Tableau de bord */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
}

.stat-card-title {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-card-title i {
    color: var(--accent);
}

.stat-card-value {
    font-size: 2rem;
    font-weight: 700;
    color: white;
}

.stat-card-trend {
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.trend-up {
    color: var(--success);
}

.trend-down {
    color: var(--danger);
}

/* Compétences */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.skill-card {
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.skill-card:hover {
    background-color: rgba(255, 255, 255, 0.05);
    transform: translateY(-3px);
}

.skill-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(58, 109, 240, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.skill-icon i {
    color: var(--primary);
    font-size: 1.5rem;
}

.skill-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: white;
}

.skill-description {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.skill-level {
    display: flex;
    gap: 4px;
    margin-top: 0.5rem;
}

.skill-point {
    width: 20%;
    height: 6px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.skill-point.active {
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .agency-stats {
        position: static;
        margin-bottom: 1.5rem;
    }
}
