/* =============== DASHBOARD - STYLE PROFESSIONNEL =============== */
.container {
    margin: 0 auto;
    padding: 1rem;
}

.hero-section {
    margin: -20px;
    background: linear-gradient(145deg, #f9f9f9, #f0f0f0, #f1f1f1);
    color: #fff;
    padding: 2rem 3rem 4rem 3rem; /* Réduction encore plus importante */
    padding-top: calc(2rem + 71px); /* Compensation pour le header fixe de taille ajustée */
    margin-bottom: 0.5rem; /* Réduction de l'espace avec le contenu suivant */
    text-align: center;
    transition: all 0.3s ease-in-out;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.15), transparent 70%);
    transform: rotate(25deg);
    opacity: 1;
}

.hero-section::after {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image: repeating-linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.15) 0px,
        rgba(255, 255, 255, 0.15) 2px,
        transparent 2px,
        transparent 20px
    );
    opacity: 0.5;
    pointer-events: none;
    overflow: hidden;
}

.hero-section::after {
    position: relative;
}

.hero-section::before,
.hero-section::after {
    z-index: 0;
}

.hero-section .shine {
    position: absolute;
    top: 0; left: -150%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.6) 50%,
        rgba(255,255,255,0) 100%
    );
    transform: skewX(-20deg);
    animation: shine-move 5s infinite linear;
    z-index: 1;
    pointer-events: none;
}

@keyframes shine-move {
    0%   { left: -150%; }
    100% { left: 150%; }
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #111;
    margin-bottom: 0.75rem;
    letter-spacing: -1px;
    position: relative;
    z-index: 2;
}

.hero-description {
    font-size: 1.2rem;
    color: #444;
    margin-bottom: 2rem;
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

.hero-btn.yellow {
    background: linear-gradient(135deg, #ffd600, #ffb800);
    color: #111;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.9rem 2rem;
    border-radius: 2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    text-decoration: none;
}

.hero-btn.yellow:hover {
    background: linear-gradient(135deg, #f1c901, #e2a302);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 14px rgba(0,0,0,0.25);
    text-decoration: none;
}

.page-header {
    margin-bottom: 1rem; /* Réduction de l'espace sous le page-header */
    margin-top: 0; /* Suppression de l'espace au-dessus */
}

.page-title {
    font-size: 2rem;
    font-weight: bold;
    color: #0d1b2a;
    margin-bottom: 0.25rem;
}

.page-description {
    font-size: 1rem;
    color: #4b5563;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.card {
    background-color: #ffffff;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.metric-card {
    padding: 25px;
}

.metric-card.yellow-border {
    border-left: 4px solid #ffd600;
    background: linear-gradient(135deg, #ffffff 0%, #fffef8 100%);
}

.metric-card.green-border {
    border-left: 4px solid #28a745;
    background: linear-gradient(135deg, #ffffff 0%, #f8fff8 100%);
}

.metric-card.blue-border {
    border-left: 4px solid #0d1b2a;
    background: linear-gradient(135deg, #ffffff 0%, #eff6ff 100%);
}

.metric-card.red-border {
    border-left: 4px solid #dc2626;
    background: linear-gradient(135deg, #ffffff 0%, #fff8f8 100%);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.metric-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.icon {
    font-size: 1.25rem;
}

.icon.yellow { color: #ffd600; }
.icon.green { color: #28a745; }
.icon.blue { color: #0d1b2a; }

.card-content {
    padding: 0; 
}

.metric-value {
    font-size: 2.2rem;
    font-weight: 700;
    color: #0d1b2a;
    margin: 0;
    line-height: 1;
    margin-bottom: 8px;
}

.metric-change {
    font-size: 0.85rem;
    font-weight: 500;
}

.metric-change.positive { color: #28a745; }
.metric-change.warning { color: #f59e0b; }
.metric-change.danger { color: #dc2626; }

.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.full-width-container {
    margin-bottom: 2rem;
}

.events-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.event-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    border-radius: 0.5rem;
    border-left: 4px solid;
}

.event-item.yellow-accent { background-color: #fffbeb; border-left-color: #ffd600; }
.event-item.green-accent { background-color: #f0fdf4; border-left-color: #28a745; }
.event-item.blue-accent { background-color: #eff6ff; border-left-color: #0d1b2a; }

.event-date {
    text-align: center;
    min-width: 3rem;
}

.event-month {
    font-size: 0.75rem;
    font-weight: 500;
    color: #4b5563;
}

.event-day {
    font-size: 1.125rem;
    font-weight: bold;
    color: #0d1b2a;
}

.event-title {
    font-weight: 600;
    color: #0d1b2a;
    margin-bottom: 0.25rem;
}

.event-time {
    font-size: 0.875rem;
    color: #4b5563;
}

.actions-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.action-btn.yellow { background-color: #ffd600; color: #0d1b2a; }
.action-btn.yellow:hover { background-color: #e6c200; }
.action-btn.green { background-color: #28a745; color: #fff; }
.action-btn.green:hover { background-color: #218838; }
.action-btn.blue { background-color: #0d1b2a; color: #fff; }
.action-btn.blue:hover { background-color: #0a1419; }
.action-btn.gray { background-color: #f3f4f6; color: #0d1b2a; }
.action-btn.gray:hover { background-color: #e5e7eb; }

.history-card {
    background-color: #ffffff;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: box-shadow 0.2s;
}

.history-card:hover {
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.history-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    border-radius: 0.5rem;
    border-left: 4px solid;
}

.history-item.yellow-accent { background-color: #fffbeb; border-left-color: #ffd600; }
.history-item.green-accent { background-color: #f0fdf4; border-left-color: #28a745; }
.history-item.blue-accent { background-color: #eff6ff; border-left-color: #0d1b2a; }

.history-date {
    text-align: center;
    min-width: 3rem;
}

.history-day {
    font-size: 1.125rem;
    font-weight: bold;
    color: #0d1b2a;
}

.history-month {
    font-size: 0.75rem;
    font-weight: 500;
    color: #4b5563;
}

.history-details {
    flex: 1;
}

.history-title {
    font-weight: 600;
    color: #0d1b2a;
    margin-bottom: 0.25rem;
}

.history-description {
    font-size: 0.875rem;
    color: #4b5563;
    margin-bottom: 0.25rem;
}

.history-meta {
    font-size: 0.75rem;
    color: #6b7280;
}

@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    .hero-section {
        padding: 1.5rem;
    }
    .hero-title {
        font-size: 1.75rem;
    }
    .hero-description {
        font-size: 1rem;
    }
}