/* Styles spécifiques pour la page Références */

/* Reference Cards */
.reference-card {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border-radius: 25px;
    padding: 2.5rem 2rem;
    box-shadow: 
        0 20px 40px rgba(0,0,0,0.1),
        0 0 0 1px rgba(255,255,255,0.8) inset;
    height: 100%;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 2px solid transparent;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.reference-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-color));
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 25px 25px 0 0;
}

.reference-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.reference-card:hover::before {
    transform: scaleX(1);
}

.reference-card:hover::after {
    opacity: 1;
}

.reference-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 
        0 30px 60px rgba(0,0,0,0.15),
        0 0 0 1px rgba(255,255,255,0.9) inset;
}

.reference-header {
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
}

.reference-logo {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    box-shadow: 
        0 15px 35px rgba(0,0,0,0.2),
        0 0 0 1px rgba(255,255,255,0.3) inset;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.reference-logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.reference-card:hover .reference-logo {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 
        0 20px 45px rgba(0,0,0,0.25),
        0 0 0 1px rgba(255,255,255,0.4) inset;
}

.reference-card:hover .reference-logo::before {
    opacity: 1;
}

.reference-logo i {
    font-size: 2.2rem;
    color: white;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    transition: transform 0.3s ease;
}

.reference-card:hover .reference-logo i {
    transform: scale(1.1);
}

.reference-header h3 {
    color: var(--gray-900);
    margin-bottom: 1.2rem;
    font-weight: 800;
    font-size: 1.6rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.reference-subtitle {
    color: var(--gray-600);
    font-size: 0.95rem;
    margin: 0;
    font-weight: 500;
}

.reference-content h5 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.reference-content h5 i {
    font-size: 1rem;
}

.reference-projects {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.reference-projects li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--gray-600);
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    padding: 0.7rem 1rem;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255,255,255,0.5);
}

.reference-projects li:hover {
    color: var(--primary-color);
    transform: translateX(8px);
    background: rgba(var(--primary-color-rgb), 0.05);
    border-color: rgba(var(--primary-color-rgb), 0.2);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.reference-projects i {
    color: var(--primary-color);
    font-size: 0.9rem;
    flex-shrink: 0;
    width: 22px;
    text-align: center;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
}

.reference-stats {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(var(--primary-color-rgb), 0.05), rgba(var(--primary-color-rgb), 0.05));
    border-radius: 15px;
    border: 1px solid rgba(var(--primary-color-rgb), 0.1);
}

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

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--gray-600);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Testimonial Cards */
.testimonial-card {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    box-shadow: 
        0 15px 35px rgba(0,0,0,0.1),
        0 0 0 1px rgba(255,255,255,0.8) inset;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.testimonial-card:hover::before {
    transform: scaleX(1);
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 
        0 25px 50px rgba(0,0,0,0.15),
        0 0 0 1px rgba(255,255,255,0.9) inset;
}

.testimonial-content {
    margin-bottom: 2rem;
    position: relative;
}

.testimonial-content p {
    font-style: italic;
    color: var(--gray-700);
    line-height: 1.8;
    margin: 0;
    font-size: 1rem;
    position: relative;
    padding: 0 1rem;
}

.testimonial-content p i:first-child {
    color: var(--primary-color);
    font-size: 1.5rem;
    position: absolute;
    top: -0.5rem;
    left: -0.5rem;
    opacity: 0.3;
}

.testimonial-content p i:last-child {
    color: var(--primary-color);
    font-size: 1.5rem;
    position: absolute;
    bottom: -0.5rem;
    right: -0.5rem;
    opacity: 0.3;
}

.testimonial-author {
    border-top: 2px solid rgba(var(--primary-color-rgb), 0.1);
    padding-top: 1.5rem;
}

.author-info h5 {
    color: var(--gray-900);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.author-info h5 i {
    color: var(--primary-color);
    font-size: 1rem;
}

.author-info span {
    color: var(--gray-600);
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.author-info span i {
    color: var(--primary-color);
    font-size: 0.8rem;
}

/* Stat Cards */
.stat-card {
    padding: 2.5rem 2rem;
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border-radius: 20px;
    box-shadow: 
        0 15px 35px rgba(0,0,0,0.1),
        0 0 0 1px rgba(255,255,255,0.8) inset;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 
        0 25px 50px rgba(0,0,0,0.15),
        0 0 0 1px rgba(255,255,255,0.9) inset;
}

.stat-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    box-shadow: 
        0 15px 35px rgba(0,0,0,0.2),
        0 0 0 1px rgba(255,255,255,0.3) inset;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat-card:hover .stat-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 
        0 20px 45px rgba(0,0,0,0.25),
        0 0 0 1px rgba(255,255,255,0.4) inset;
}

.stat-icon i {
    font-size: 2rem;
    color: white;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    transition: transform 0.3s ease;
}

.stat-card:hover .stat-icon i {
    transform: scale(1.1);
}

.stat-card .stat-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.stat-card .stat-label {
    color: var(--gray-600);
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-color)) !important;
    position: relative;
    overflow: hidden;
}

.cta-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"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.cta-section .container {
    position: relative;
    z-index: 10;
}

.cta-section h2 {
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cta-section h2 i {
    font-size: 1.5rem;
}

.cta-section .btn {
    border-radius: 15px;
    padding: 1rem 2rem;
    font-weight: 700;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.cta-section .btn::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 ease;
}

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

.cta-section .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
}

/* Badge styles */
.badge.badge-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-color));
    color: white;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border-radius: 25px;
    font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .reference-card,
    .testimonial-card,
    .stat-card {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .reference-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stat-item {
        display: flex;
        align-items: center;
        justify-content: space-between;
        text-align: left;
    }
    
    .stat-number {
        font-size: 1.5rem;
        margin-bottom: 0;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    .testimonial-content p {
        font-size: 0.9rem;
        padding: 0;
    }
    
    .stat-card .stat-number {
        font-size: 2.5rem;
    }
}

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

.reference-card {
    animation: fadeInUp 0.6s ease forwards;
}

.reference-card:nth-child(1) { animation-delay: 0.1s; }
.reference-card:nth-child(2) { animation-delay: 0.2s; }
.reference-card:nth-child(3) { animation-delay: 0.3s; }
.reference-card:nth-child(4) { animation-delay: 0.4s; }
.reference-card:nth-child(5) { animation-delay: 0.5s; }
.reference-card:nth-child(6) { animation-delay: 0.6s; }

.testimonial-card {
    animation: fadeInUp 0.6s ease forwards;
}

.testimonial-card:nth-child(1) { animation-delay: 0.7s; }
.testimonial-card:nth-child(2) { animation-delay: 0.8s; }
.testimonial-card:nth-child(3) { animation-delay: 0.9s; }

.stat-card {
    animation: fadeInUp 0.6s ease forwards;
}

.stat-card:nth-child(1) { animation-delay: 1.0s; }
.stat-card:nth-child(2) { animation-delay: 1.1s; }
.stat-card:nth-child(3) { animation-delay: 1.2s; }
.stat-card:nth-child(4) { animation-delay: 1.3s; }
