/* ========================================
   BULLETINS SIM - STYLES ULTRA-MODERNES
   ======================================== */

/* Variables CSS pour la cohérence */
:root {
    --primary-color: #22c55e;
    --primary-dark: #16a34a;
    --secondary-color: #3b82f6;
    --accent-color: #f59e0b;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow-light: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 20px 40px rgba(0, 0, 0, 0.15);
    --gradient-primary: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    --gradient-secondary: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    --gradient-accent: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

/* ========================================
   ANIMATIONS AVANCÉES
   ======================================== */

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

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

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(34, 197, 94, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(34, 197, 94, 0.6);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* ========================================
   HERO SECTION ULTRA-MODERNE
   ======================================== */

.hero-section {
    background: linear-gradient(135deg, #1a472a 0%, #2d5a3d 25%, #4a7c59 50%, #6b9b7a 75%, #8db88a 100%);
    position: relative;
    overflow: hidden;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255,255,255,0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255,255,255,0.08) 0%, transparent 50%);
    animation: float 8s ease-in-out infinite;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.4;
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 1.2s ease-out;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 50%, #e0f2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 6px 12px rgba(0,0,0,0.3);
    margin-bottom: 2rem;
    line-height: 1.1;
    letter-spacing: -2px;
}

.hero-subtitle {
    font-size: 1.8rem;
    color: rgba(255,255,255,0.95);
    font-weight: 600;
    margin-bottom: 1.5rem;
    animation: slideInLeft 1s ease-out 0.4s both;
}

.hero-description {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.85);
    line-height: 1.7;
    animation: slideInLeft 1s ease-out 0.7s both;
    max-width: 600px;
}

.hero-icon {
    font-size: 15rem;
    color: rgba(255,255,255,0.12);
    animation: float 6s ease-in-out infinite;
    position: relative;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.2));
}

.hero-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 4s ease-in-out infinite;
}

.hero-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    animation: rotate 20s linear infinite;
}

/* ========================================
   FILTRES SECTION ULTRA-STYLÉE
   ======================================== */

.filters-section {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 5rem 0;
    position: relative;
}

.filters-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--gradient-primary);
}

.filters-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.filter-card {
    background: var(--bg-white);
    border-radius: 25px;
    box-shadow: var(--shadow-heavy);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.filter-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 40px 80px rgba(0,0,0,0.2);
}

.filter-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.filter-header {
    background: var(--gradient-primary);
    color: white;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.filter-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transform: translate(50px, -50px);
    animation: float 6s ease-in-out infinite;
}

.filter-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100px;
    height: 100px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    transform: translate(-30px, 30px);
    animation: pulse 4s ease-in-out infinite;
}

.filter-title {
    font-size: 2rem;
    font-weight: 800;
    margin: 0;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.filter-form {
    padding: 3rem;
}

.form-group {
    margin-bottom: 2rem;
}

.form-label {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
}

.form-label i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.form-control, .form-select {
    border: 2px solid var(--border-color);
    border-radius: 15px;
    padding: 1rem 1.25rem;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    background: var(--bg-white);
    box-shadow: var(--shadow-light);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.1);
    outline: none;
    transform: translateY(-2px);
}

.btn-filter {
    background: var(--gradient-primary);
    border: none;
    border-radius: 15px;
    padding: 1.25rem 3rem;
    font-weight: 800;
    font-size: 1.1rem;
    color: white;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: var(--shadow-medium);
}

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

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

.btn-filter:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(34, 197, 94, 0.4);
}

.btn-filter:active {
    transform: translateY(-2px);
}

/* ========================================
   RESULTS SECTION ULTRA-MODERNE
   ======================================== */

.results-section {
    padding: 5rem 0;
    background: var(--bg-white);
    position: relative;
}

.no-results {
    text-align: center;
    padding: 5rem 3rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 25px;
    border: 3px dashed #d1d5db;
    position: relative;
    overflow: hidden;
}

.no-results::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="25" height="25" patternUnits="userSpaceOnUse"><circle cx="12.5" cy="12.5" r="3" fill="rgba(34,197,94,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    opacity: 0.6;
}

.no-results-icon {
    font-size: 8rem;
    color: var(--primary-color);
    margin-bottom: 2.5rem;
    animation: pulse 3s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

.no-results-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.no-results-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.no-results-description {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    line-height: 1.8;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 2;
}

.action-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.btn-action {
    padding: 1.25rem 2.5rem;
    border-radius: 15px;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.4s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-medium);
}

.btn-primary-action {
    background: var(--gradient-primary);
    color: white;
    border: none;
}

.btn-secondary-action {
    background: var(--bg-white);
    color: var(--primary-color);
    border: 3px solid var(--primary-color);
}

.btn-action::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;
}

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

.btn-action:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
    text-decoration: none;
    color: inherit;
}

.btn-primary-action:hover {
    color: white;
}

.btn-secondary-action:hover {
    color: var(--primary-dark);
    background: #f0fdf4;
    border-color: var(--primary-dark);
}

/* ========================================
   RESPONSIVE DESIGN ULTRA-OPTIMISÉ
   ======================================== */

@media (max-width: 1200px) {
    .hero-title {
        font-size: 4rem;
    }
    
    .hero-icon {
        font-size: 12rem;
    }
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .hero-icon {
        font-size: 10rem;
    }
    
    .filter-form {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 60vh;
        padding: 3rem 0;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .hero-icon {
        font-size: 8rem;
    }
    
    .filter-header {
        padding: 2rem;
    }
    
    .filter-title {
        font-size: 1.5rem;
    }
    
    .filter-form {
        padding: 1.5rem;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-action {
        width: 100%;
        max-width: 350px;
        justify-content: center;
    }
    
    .no-results {
        padding: 3rem 2rem;
    }
    
    .no-results-title {
        font-size: 2rem;
    }
    
    .no-results-description {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-icon {
        font-size: 6rem;
    }
    
    .filter-header {
        padding: 1.5rem;
    }
    
    .filter-title {
        font-size: 1.3rem;
    }
    
    .filter-form {
        padding: 1rem;
    }
    
    .no-results {
        padding: 2rem 1rem;
    }
    
    .no-results-title {
        font-size: 1.8rem;
    }
    
    .no-results-description {
        font-size: 1rem;
    }
    
    .btn-action {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

/* ========================================
   ANIMATIONS D'ENTRÉE AVANCÉES
   ======================================== */

.fade-in {
    animation: fadeInUp 1s ease-out;
}

.slide-in-left {
    animation: slideInLeft 1s ease-out;
}

.slide-in-right {
    animation: slideInRight 1s ease-out;
}

/* Délais d'animation pour un effet cascade */
.fade-in:nth-child(1) { animation-delay: 0.1s; }
.fade-in:nth-child(2) { animation-delay: 0.2s; }
.fade-in:nth-child(3) { animation-delay: 0.3s; }
.fade-in:nth-child(4) { animation-delay: 0.4s; }

/* ========================================
   EFFETS SPÉCIAUX
   ======================================== */

.glow-effect {
    animation: glow 2s ease-in-out infinite;
}

.bounce-effect {
    animation: bounce 2s ease-in-out infinite;
}

.shimmer-effect {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    background-size: 200% 100%;
    animation: shimmer 2s ease-in-out infinite;
}

/* ========================================
   OPTIMISATIONS DE PERFORMANCE
   ======================================== */

* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.hero-section, .filters-section, .results-section {
    will-change: transform;
}

.hero-icon, .no-results-icon {
    will-change: transform;
}

/* Réduction des animations sur les appareils mobiles */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}








