/**
 * Thème République de Guinée - Design Moderne
 * Design élégant avec touches subtiles des couleurs nationales
 */

:root {
    /* Couleurs Principales - Subtiles */
    --primary-dark: #0f172a;
    --primary-blue: #1e40af;
    --primary-green: #059669;
    
    /* Couleurs Guinéennes - Touches d'accent uniquement */
    --guinea-red: #CE1126;
    --guinea-yellow: #FCD116;
    --guinea-green: #009460;
    
    /* Couleurs Neutres */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Gradients Modernes */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-success: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
    --gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --gradient-guinea-accent: linear-gradient(90deg, var(--guinea-red) 0%, var(--guinea-yellow) 50%, var(--guinea-green) 100%);
    
    /* Ombres */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* ===== ANIMATIONS ===== */

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

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

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

/* ===== NAVIGATION ===== */

.navbar-guinea {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
    border-bottom: 3px solid transparent;
    border-image: var(--gradient-guinea-accent) 1;
}

.navbar-guinea .navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.6s ease-out;
}

.navbar-guinea .nav-link {
    color: rgba(255, 255, 255, 0.95) !important;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 16px !important;
}

.navbar-guinea .nav-link:hover {
    color: white !important;
    transform: translateY(-2px);
}

.navbar-guinea .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: white;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-guinea .nav-link:hover::after {
    width: 80%;
}

/* ===== HERO SECTION ===== */

.hero-guinea {
    background: var(--gradient-hero);
    color: white;
    padding: 80px 20px;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out;
}

.hero-guinea::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255, 255, 255, 0.05) 10px,
        rgba(255, 255, 255, 0.05) 20px
    );
    animation: shimmer 20s linear infinite;
}

.hero-guinea > * {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4);
    margin-bottom: 20px;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-subtitle {
    font-size: 1.3rem;
    opacity: 0.95;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out 0.4s both;
}

/* ===== COUNTDOWN ===== */

.countdown-guinea {
    background: linear-gradient(135deg, var(--guinea-red) 0%, var(--guinea-yellow) 50%, var(--guinea-green) 100%);
    padding: 60px 30px;
    border-radius: 25px;
    box-shadow: var(--shadow-xl);
    animation: fadeInUp 1s ease-out 0.6s both;
    position: relative;
    overflow: hidden;
}

.countdown-guinea::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.countdown-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4);
    margin-bottom: 40px;
}

.countdown-box {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 30px 20px;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease-out both;
}

.countdown-box:nth-child(1) { animation-delay: 0.7s; }
.countdown-box:nth-child(2) { animation-delay: 0.8s; }
.countdown-box:nth-child(3) { animation-delay: 0.9s; }
.countdown-box:nth-child(4) { animation-delay: 1s; }

.countdown-box:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: var(--shadow-xl);
}

.countdown-value {
    font-size: 4rem;
    font-weight: 900;
    background: var(--gradient-guinea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    line-height: 1;
    animation: pulse 2s ease-in-out infinite;
}

.countdown-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--guinea-red);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
}

/* ===== CARDS ===== */

.card-guinea {
    border: none;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out both;
}

.card-guinea:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.card-guinea .card-header {
    background: var(--gradient-guinea);
    color: white;
    font-weight: 700;
    border: none;
    padding: 20px;
}

/* ===== BUTTONS ===== */

.btn-guinea {
    background: var(--gradient-guinea);
    border: none;
    color: white;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 50px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-guinea::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-guinea:hover::before {
    width: 300px;
    height: 300px;
}

.btn-guinea:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    color: white;
}

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

/* Boutons colorés individuels */
.btn-red {
    background: linear-gradient(135deg, var(--guinea-red) 0%, var(--guinea-red-light) 100%);
}

.btn-yellow {
    background: linear-gradient(135deg, var(--guinea-yellow-dark) 0%, var(--guinea-yellow) 100%);
    color: #333 !important;
}

.btn-green {
    background: linear-gradient(135deg, var(--guinea-green) 0%, var(--guinea-green-light) 100%);
}

/* ===== STATISTIQUES DASHBOARD ===== */

.stat-card {
    border: none;
    border-radius: 20px;
    padding: 25px;
    color: white;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out both;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
    transition: all 0.6s ease;
}

.stat-card:hover {
    transform: translateY(-10px) rotate(2deg);
    box-shadow: var(--shadow-xl);
}

.stat-card:hover::before {
    top: -30%;
    right: -30%;
    width: 150%;
    height: 150%;
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    display: block;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.95;
}

/* Couleurs des cartes stats */
.stat-red { background: linear-gradient(135deg, var(--guinea-red) 0%, var(--guinea-red-dark) 100%); }
.stat-yellow { background: linear-gradient(135deg, var(--guinea-yellow) 0%, var(--guinea-yellow-dark) 100%); color: #333 !important; }
.stat-green { background: linear-gradient(135deg, var(--guinea-green) 0%, var(--guinea-green-dark) 100%); }
.stat-gradient { background: var(--gradient-guinea); }

/* ===== TABLES ===== */

.table-guinea {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.table-guinea thead {
    background: var(--gradient-guinea);
    color: white;
}

.table-guinea thead th {
    border: none;
    padding: 15px;
    font-weight: 600;
}

.table-guinea tbody tr {
    transition: all 0.3s ease;
}

.table-guinea tbody tr:hover {
    background-color: rgba(252, 209, 22, 0.1);
    transform: scale(1.01);
}

/* ===== BADGES ===== */

.badge-guinea {
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
}

.badge-guinea-red {
    background: var(--guinea-red);
    color: white;
}

.badge-guinea-yellow {
    background: var(--guinea-yellow);
    color: #333;
}

.badge-guinea-green {
    background: var(--guinea-green);
    color: white;
}

/* ===== FORMS ===== */

.form-control-guinea {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px 20px;
    transition: all 0.3s ease;
}

.form-control-guinea:focus {
    border-color: var(--guinea-green);
    box-shadow: 0 0 0 0.2rem rgba(0, 148, 96, 0.25);
    transform: translateY(-2px);
}

/* ===== SCANNER QR ===== */

.scanner-container {
    animation: fadeInUp 0.8s ease-out;
}

#reader {
    border: 5px solid var(--guinea-green);
    border-radius: 25px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    animation: pulse 3s ease-in-out infinite;
}

.scan-frame {
    position: relative;
}

.scan-frame::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 3px solid var(--guinea-yellow);
    border-radius: 20px;
    pointer-events: none;
    animation: pulse 2s ease-in-out infinite;
}

/* ===== VERIFICATION PAGE ===== */

.verification-card {
    border: none;
    border-radius: 30px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out;
}

.verification-success {
    border: 5px solid var(--guinea-green);
    background: linear-gradient(135deg, rgba(0, 148, 96, 0.1) 0%, rgba(0, 148, 96, 0.05) 100%);
}

.verification-error {
    border: 5px solid var(--guinea-red);
    background: linear-gradient(135deg, rgba(206, 17, 38, 0.1) 0%, rgba(206, 17, 38, 0.05) 100%);
}

.verification-icon {
    font-size: 6rem;
    animation: fadeIn 0.5s ease-out, pulse 2s ease-in-out infinite;
}

.invitee-photo {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 50%;
    border: 6px solid white;
    box-shadow: var(--shadow-lg);
    animation: fadeIn 0.8s ease-out 0.3s both;
}

/* ===== EVENT INFO CARDS ===== */

.event-info-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow-md);
    transition: all 0.4s ease;
    animation: fadeInUp 0.6s ease-out both;
}

.event-info-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.event-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--gradient-guinea);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    box-shadow: var(--shadow-md);
    animation: float 3s ease-in-out infinite;
}

/* ===== LOGO ===== */

.logo-guinea {
    max-height: 80px;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
    animation: fadeInUp 0.6s ease-out;
}

/* ===== FOOTER ===== */

.footer-guinea {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    border-top: 4px solid;
    border-image: var(--gradient-guinea) 1;
}

/* ===== ALERT BOXES ===== */

.alert-guinea {
    border-radius: 15px;
    border-left: 5px solid;
    box-shadow: var(--shadow-sm);
    animation: slideInRight 0.5s ease-out;
}

.alert-guinea.alert-success {
    border-left-color: var(--guinea-green);
    background: linear-gradient(135deg, rgba(0, 148, 96, 0.1) 0%, rgba(0, 148, 96, 0.05) 100%);
}

.alert-guinea.alert-danger {
    border-left-color: var(--guinea-red);
    background: linear-gradient(135deg, rgba(206, 17, 38, 0.1) 0%, rgba(206, 17, 38, 0.05) 100%);
}

.alert-guinea.alert-warning {
    border-left-color: var(--guinea-yellow);
    background: linear-gradient(135deg, rgba(252, 209, 22, 0.15) 0%, rgba(252, 209, 22, 0.08) 100%);
}

/* ===== RESPONSIVE ===== */

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .countdown-value {
        font-size: 3rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
}

/* ===== LOADING SPINNER ===== */

.spinner-guinea {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(0, 0, 0, 0.1);
    border-top-color: var(--guinea-red);
    border-right-color: var(--guinea-yellow);
    border-bottom-color: var(--guinea-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* ===== DECORATIVE ELEMENTS ===== */

.guinea-pattern {
    background-image: 
        linear-gradient(30deg, var(--guinea-red) 12%, transparent 12.5%, transparent 87%, var(--guinea-red) 87.5%, var(--guinea-red)),
        linear-gradient(150deg, var(--guinea-red) 12%, transparent 12.5%, transparent 87%, var(--guinea-red) 87.5%, var(--guinea-red)),
        linear-gradient(30deg, var(--guinea-yellow) 12%, transparent 12.5%, transparent 87%, var(--guinea-yellow) 87.5%, var(--guinea-yellow)),
        linear-gradient(150deg, var(--guinea-yellow) 12%, transparent 12.5%, transparent 87%, var(--guinea-yellow) 87.5%, var(--guinea-yellow)),
        linear-gradient(60deg, var(--guinea-green) 25%, transparent 25.5%, transparent 75%, var(--guinea-green) 75%, var(--guinea-green)),
        linear-gradient(60deg, var(--guinea-green) 25%, transparent 25.5%, transparent 75%, var(--guinea-green) 75%, var(--guinea-green));
    background-size: 80px 140px;
    background-position: 0 0, 0 0, 40px 70px, 40px 70px, 0 0, 40px 70px;
    opacity: 0.05;
}

/* ===== ACCESSIBILITY ===== */

.focus-guinea:focus {
    outline: 3px solid var(--guinea-yellow);
    outline-offset: 2px;
}

/* ===== PRINT STYLES ===== */

@media print {
    .navbar-guinea,
    .footer-guinea,
    .btn-guinea {
        display: none !important;
    }
}

