/**
 * Styles personnalisés pour HARPO
 * Site: harpo.datalib.fr
 */

/* Variables CSS */
:root {
    --harpo-primary: #0d6efd;
    --harpo-secondary: #6c757d;
    --harpo-success: #198754;
    --harpo-danger: #dc3545;
    --harpo-warning: #ffc107;
    --harpo-info: #0dcaf0;
    --harpo-light: #f8f9fa;
    --harpo-dark: #212529;
    --harpo-gradient: linear-gradient(135deg, #0d6efd 0%, #6610f2 100%);
}

/* Reset et base */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--harpo-light);
}

/* Liens */
a {
    transition: color 0.3s ease;
}

a:hover {
    text-decoration: none;
}

/* Navbar personnalisée */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-size: 1.5rem;
}

.nav-link {
    transition: all 0.3s ease;
    border-radius: 0.375rem;
    margin: 0 0.25rem;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Hero Section */
.hero-section {
    background: var(--harpo-gradient);
    padding: 6rem 0;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-section::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" preserveAspectRatio="none"><polygon fill="rgba(255,255,255,0.05)" points="0,100 100,0 100,100"/></svg>');
    background-size: cover;
}

.hero-content {
    position: relative;
    z-index: 1;
}

/* Cards personnalisées */
.card {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--harpo-gradient);
    color: white;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
}

/* Boutons personnalisés */
.btn {
    border-radius: 0.5rem;
    padding: 0.625rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--harpo-gradient);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.4);
}

.btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1.125rem;
}

/* Sections */
.section {
    padding: 5rem 0;
}

.section-title {
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--harpo-gradient);
    margin-top: 0.75rem;
    border-radius: 2px;
}

.section-title.text-center::after {
    margin-left: auto;
    margin-right: auto;
}

/* Features */
.feature-box {
    padding: 2rem;
    text-align: center;
}

.feature-icon {
    font-size: 3rem;
    color: var(--harpo-primary);
    margin-bottom: 1.5rem;
}

/* Stats Section */
.stats-section {
    background: var(--harpo-dark);
    color: white;
}

.stat-item {
    text-align: center;
    padding: 2rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--harpo-primary);
}

.stat-label {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Formulaires */
.form-control,
.form-select {
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--harpo-primary);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

/* Alertes */
.alert {
    border: none;
    border-radius: 0.75rem;
    padding: 1rem 1.5rem;
}

/* Footer */
footer a:hover {
    color: var(--harpo-primary) !important;
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 4rem 0;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .section {
        padding: 3rem 0;
    }

    .stat-number {
        font-size: 2rem;
    }
}

/* Utilitaires */
.bg-gradient-primary {
    background: var(--harpo-gradient);
}

.text-gradient {
    background: var(--harpo-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Loading spinner */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
