/* Design moderne pour l'en-tête card-waves */

.header-modern {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
    border: none;
}

/* Variante CARFO avec couleur rouge/danger */
.header-modern.header-carfo {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 50%, #bd2130 100%);
    box-shadow: 0 20px 60px rgba(220, 53, 69, 0.3);
}

/* Effet de vague en arrière-plan */
.header-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23ffffff' fill-opacity='0.1' d='M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,160C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E") no-repeat bottom;
    background-size: cover;
    opacity: 0.3;
    pointer-events: none;
}

/* Corps de la carte avec padding moderne */
.header-modern .card-body {
    position: relative;
    z-index: 1;
    padding: 2.5rem 2rem;
}

/* Container du logo et titre */
.header-logo-section {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.header-logo {
    width: 90px;
    height: 90px;
    background: white;
    border-radius: 50%;
    padding: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Titre principal moderne */
.header-title {
    flex: 1;
    min-width: 250px;
}

.header-title h1 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    color: white;
    margin: 0;
    line-height: 1.2;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.5px;
}

.header-title .subtitle {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    color: rgba(255, 255, 255, 0.95);
    margin-top: 0.5rem;
    font-weight: 400;
}

/* Badge moderne */
.header-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Box d'information avec effet glassmorphism */
.header-info-box {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.header-info-box p {
    color: white;
    margin: 0;
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    line-height: 1.6;
    font-weight: 400;
}

.header-info-box i {
    font-size: 1.3rem;
    margin-right: 0.8rem;
    opacity: 0.9;
}

/* Image d'illustration moderne */
.header-illustration {
    position: relative;
    text-align: center;
}

.header-illustration img {
    max-width: 200px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
    animation: fadeInRight 1s ease-out;
}

/* Navigation moderne avec effet glassmorphism */
.header-nav {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.header-nav .nav-link {
    color: white !important;
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.header-nav .nav-link:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.header-nav .nav-link.active {
    background: white;
    color: #dc3545 !important;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.header-nav .nav-link i {
    font-size: 1rem;
}

/* Boutons d'action dans l'en-tête */
.header-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.header-action-btn {
    background: white;
    color: #dc3545;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 2px solid white;
}

.header-action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    color: #dc3545;
}

.header-action-btn.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.header-action-btn.btn-outline:hover {
    background: white;
    color: #dc3545;
}

/* Stats ou indicateurs */
.header-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.header-stat-item {
    text-align: center;
    color: white;
}

.header-stat-value {
    font-size: 2rem;
    font-weight: 700;
    display: block;
    line-height: 1;
}

.header-stat-label {
    font-size: 0.85rem;
    opacity: 0.9;
    margin-top: 0.3rem;
    display: block;
}

/* Responsive Design */
@media (max-width: 992px) {
    .header-modern .card-body {
        padding: 2rem 1.5rem;
    }
    
    .header-logo {
        width: 70px;
        height: 70px;
        padding: 12px;
    }
    
    .header-illustration img {
        max-width: 150px;
    }
}

@media (max-width: 768px) {
    .header-modern .card-body {
        padding: 1.5rem 1rem;
    }
    
    .header-logo-section {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .header-title {
        text-align: center;
    }
    
    .header-title h1 {
        font-size: 1.5rem;
    }
    
    .header-info-box {
        padding: 1.2rem;
    }
    
    .header-nav .nav-link {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .header-illustration img {
        max-width: 120px;
    }
}

/* Animation d'entrée */
@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Effet de brillance subtile */
.header-modern::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: shine 10s infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

