/* ===================================
   Trajecto Platform - Page d'accueil
   =================================== */

/* === NAVIGATION === */
.navbar {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 15px 0;
    animation: fadeInUp 0.6s ease-out;
}

.navbar-brand {
    color: white !important;
    font-size: 1.8rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.navbar-brand i {
    margin-right: 10px;
    color: #ffd700;
}

/* === STATS SECTION === */
.stats-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 60px;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.5s both;
}

.stat-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px 40px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    min-width: 150px;
}

.stat-card .stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.stat-card .stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

/* === CATEGORY SECTION === */
.category-section {
    margin-bottom: 50px;
}

.category-title {
    color: white;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    gap: 15px;
}

.category-title::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(to right, rgba(255,255,255,0.5), transparent);
}

/* === TOOLS GRID === */
.tools-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

/* === TOOL CARDS === */
.tool-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.tool-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    transform: scale(0);
    transition: transform 0.6s ease;
}

.tool-card:hover::before {
    transform: scale(1);
}

.tool-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
    text-decoration: none;
}

.tool-icon {
    font-size: 4.5rem;
    margin-bottom: 20px;
    text-align: center;
    transition: transform 0.4s ease;
}

.tool-card:hover .tool-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Couleurs par type d'outil */
.tool-card.conversion .tool-icon { color: #3498db; filter: drop-shadow(0 4px 8px rgba(52, 152, 219, 0.3)); }
.tool-card.analysis .tool-icon { color: #2ecc71; filter: drop-shadow(0 4px 8px rgba(46, 204, 113, 0.3)); }
.tool-card.visualization .tool-icon { color: #e74c3c; filter: drop-shadow(0 4px 8px rgba(231, 76, 60, 0.3)); }
.tool-card.database .tool-icon { color: #f39c12; filter: drop-shadow(0 4px 8px rgba(243, 156, 18, 0.3)); }
.tool-card.export .tool-icon { color: #9b59b6; filter: drop-shadow(0 4px 8px rgba(155, 89, 182, 0.3)); }

.tool-card h3 {
    font-size: 1.6rem;
    font-weight: bold;
    margin-bottom: 15px;
    text-align: center;
    color: #2c3e50;
}

.tool-card p {
    font-size: 1rem;
    color: #555;
    text-align: center;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* === BADGES === */
.badge-status {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 10px;
}

.badge-new {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    box-shadow: 0 3px 10px rgba(245, 87, 108, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

.badge-stable {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: white;
    box-shadow: 0 3px 10px rgba(46, 204, 113, 0.3);
}

.badge-maybe {
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
    color: white;
    box-shadow: 0 3px 10px rgba(230, 126, 34, 0.3);
}

/* Style pour les cartes désactivées */
.tool-card.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
    filter: grayscale(30%);
}

.tool-card.disabled::after {
    animation: none;
}

.tool-card.disabled:hover {
    transform: none;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

/* === ABOUT SECTION === */
.about-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 50px;
    margin: 60px 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeInUp 1s ease-out 0.7s both;
}

.about-section h2 {
    color: white;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 30px;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.feature-item {
    text-align: center;
    color: white;
}

.feature-item i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #ffd700;
    filter: drop-shadow(0 4px 8px rgba(255, 215, 0, 0.3));
}

.feature-item h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: bold;
}

.feature-item p {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* === FOOTER === */
.footer {
    text-align: center;
    color: white;
    margin-top: 60px;
    padding: 30px;
    opacity: 0.9;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
    animation: fadeInUp 1s ease-out 0.8s both;
}

.footer p {
    margin-bottom: 10px;
}

.footer-links {
    margin-top: 15px;
}

.footer-links a {
    color: white;
    margin: 0 15px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* Effet de brillance sur les cartes */
.tool-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    animation: shine 3s ease-in-out infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .category-title { font-size: 1.5rem; }
    .tools-container { grid-template-columns: 1fr; }
    .stats-container { flex-direction: column; gap: 20px; }
    .about-section { padding: 30px; }
}
