/**
 * LabSQL - Styles page d'accueil
 */

/* ── Hero  */
.hero {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
    color: var(--brand-text);
    padding: 90px 0 70px;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 60px;
    background: #f8f9fa;
    clip-path: ellipse(55% 100% at 50% 100%);
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1.2rem;
    color: var(--brand-text);
}

.hero p.lead {
    font-size: 1.15rem;
    opacity: 0.85;
    max-width: 540px;
}

.hero-icon {
    font-size: clamp(8rem, 15vw, 15rem);
    opacity: 0.15;
    color: var(--brand-text);
}

/* Logo hero */
.hero-logo {
    max-width: 600px;
    opacity: 0.8;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.2));
}

/* ── Boutons hero */
.btn-hero {
    padding: 15px 40px;
    font-size: 1.1rem;
    border-radius: 50px;
    margin: 8px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.2);
}

.btn-hero-primary {
    background: white;
    color: var(--brand-dark);
    border: 2px solid white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.btn-hero-primary:hover {
    background: #fafafa;
    color: var(--brand-dark);
    border-color: #fafafa;
}

.btn-hero-outline {
    background: rgba(255,255,255,0.1);
    color: white;
    border: 2px solid white;
    backdrop-filter: blur(10px);
}

.btn-hero-outline:hover {
    background: white;
    color: var(--brand-dark);
    border-color: white;
}

/* ── Features */
.features { 
    padding: 80px 0; 
    background: #f8f9fa; 
}

.feature-card {
    text-align: center;
    padding: 36px 24px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    border-top: 4px solid var(--brand);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 32px rgba(0,0,0,0.12);
}

.feature-icon {
    font-size: 2.8rem;
    color: var(--brand);
    margin-bottom: 18px;
    display: block;
}

.feature-card h4 { 
    font-weight: 600; 
    margin-bottom: 12px; 
}

/* ── Stats */
.stats {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
    color: var(--brand-text);
    padding: 60px 0;
}

.stat-item { 
    text-align: center; 
}

.stat-number {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    display: block;
}

.stat-label { 
    font-size: 1rem; 
    opacity: 0.8; 
}

.stat-item + .stat-item { 
    border-left: 1px solid rgba(0,0,0,0.15); 
}

@media (max-width: 768px) {
    .stat-item + .stat-item { 
        border-left: none; 
    }
}

/* ── Showcase BDD */
.databases-showcase { 
    padding: 80px 0; 
}

.db-card {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

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

.db-card-header {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
    color: white;
    padding: 18px 20px;
    font-weight: 600;
    font-size: 1.05rem;
}

/* ── Bouton voir toutes */
.btn-voir-toutes {
    padding: 14px 36px;
    font-size: 1.1rem;
    border-radius: 50px;
    font-weight: 600;
    background: white;
    color: var(--brand-dark);
    border: 2px solid var(--brand);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-voir-toutes:hover {
    background: var(--brand);
    color: white;
    border-color: var(--brand-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(249, 177, 4, 0.3);
}

/* ── CTA */
.cta {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
    color: var(--brand-text);
    padding: 80px 0;
}

.cta h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 16px;
}
