/* ===== MODERN STYLE CSS - GREI Investment ===== */
/* Ce fichier utilise les variables définies dans variables.css */

/* ===== RESET ET BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--white);
    overflow-x: hidden;
}

/* ===== TYPOGRAPHIE ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--gray-900);
}

.display-1, .display-2, .display-3, .display-4 {
    font-weight: 800;
    letter-spacing: -0.025em;
}

.lead {
    font-size: 1.125rem;
    font-weight: 400;
    color: var(--gray-600);
}

/* ===== NAVIGATION MODERNE ===== */
.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-200);
    padding: 1rem 0;
    transition: all var(--transition-normal);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: var(--shadow-lg);
    padding: 0.75rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
    text-decoration: none;
}

.navbar-brand img {
    height: 60px;
    transition: transform var(--transition-normal);
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.brand-text {
    font-size: 1.4rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.5px;
    transition: all var(--transition-normal);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}

.brand-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.navbar-brand:hover .brand-text {
    transform: translateY(-1px);
    filter: brightness(1.1);
}

.navbar-brand:hover .brand-text::before {
    opacity: 1;
}

/* Effet de brillance pour le texte de la marque */
.brand-text::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
}

.navbar-brand:hover .brand-text::after {
    left: 100%;
}

/* Animation de pulsation subtile */
@keyframes brandPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

.brand-text {
    animation: brandPulse 3s ease-in-out infinite;
    filter: drop-shadow(0 0 8px rgba(37, 99, 235, 0.3));
}

.navbar-brand:hover .brand-text {
    animation: none;
}

/* Responsive: masquer le texte de la marque sur mobile */
@media (max-width: 768px) {
    .brand-text {
        display: none;
    }
    
    .navbar-brand img {
        height: 50px;
    }
}

.nav-link {
    font-weight: 500;
    color: var(--gray-700) !important;
    padding: 0.5rem 1rem !important;
    border-radius: var(--radius);
    transition: all var(--transition-normal);
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color) !important;
    background-color: var(--gray-100);
    transform: translateY(-1px);
}

.nav-link.active {
    color: var(--white) !important;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    box-shadow: var(--shadow-md);
}

/* ===== HERO SECTION MODERNE ===== */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.9), rgba(16, 185, 129, 0.9)), 
                url('../images/hero-1.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    animation: float 20s ease-in-out infinite;
}

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

.hero-content {
    position: relative;
    z-index: 3;
    padding: 2rem 0;
    text-align: left;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    animation: slideInUp 1s ease-out;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2rem;
    animation: slideInUp 1s ease-out 0.2s both;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    max-width: 90%;
}

.hero-btn {
    padding: 1rem 2rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--transition-normal);
    animation: slideInUp 1s ease-out 0.4s both;
    position: relative;
    overflow: hidden;
}

.hero-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;
}

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

.btn-primary-modern {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    border: none;
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
    backdrop-filter: blur(10px);
}

.btn-primary-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(37, 99, 235, 0.4);
    color: var(--white);
}

.btn-secondary-modern {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.btn-secondary-modern:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

/* ===== SECTIONS MODERNES ===== */
.section-modern {
    padding: 5rem 0;
    position: relative;
}

.section-modern:nth-child(even) {
    background: var(--gray-50);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Style pour les titres de section dans stats-section */
.stats-section .section-title {
    font-size: 3rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1.5rem;
}

.section-subtitle {
    text-align: center;
    color: var(--gray-600);
    font-size: 1.125rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Style pour les sous-titres dans stats-section */
.stats-section .section-subtitle {
    color: var(--gray-600);
    font-size: 1.25rem;
    margin-bottom: 4rem;
}

/* ===== CARTES D'EXPERTISE MODERNES ===== */
.expertise-card-modern {
    background: var(--white);
    border: none;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-normal);
    overflow: hidden;
    position: relative;
    padding: 2.5rem 2rem;
    text-align: center;
    height: 100%;
}

.expertise-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

.expertise-card-modern:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-2xl);
}

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

.expertise-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--white);
    font-size: 2rem;
    transition: all var(--transition-normal);
    position: relative;
}

.expertise-card-modern:hover .expertise-icon {
    transform: scale(1.15) rotate(5deg);
    box-shadow: var(--shadow-xl);
}

.expertise-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.expertise-description {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.expertise-features {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
    text-align: left;
}

.expertise-features li {
    padding: 0.5rem 0;
    color: var(--gray-700);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

.expertise-features li i {
    color: var(--secondary-color);
    font-size: 0.875rem;
}

.expertise-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: all var(--transition-normal);
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--primary-color);
    border-radius: var(--radius-full);
    background: transparent;
}

.expertise-link:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ===== CARTES MODERNES ===== */
.card-modern {
    background: var(--white);
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: all var(--transition-normal);
    overflow: hidden;
    position: relative;
}

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

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

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

.card-modern .card-body {
    padding: 2rem;
}

.card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--white);
    font-size: 1.5rem;
    transition: all var(--transition-normal);
}

.card-modern:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
}

/* ===== ÉLÉMENTS DE SERVICE ===== */
.service-features {
    margin-bottom: 1.5rem;
}

.feature-tag {
    font-size: 0.85rem;
    color: var(--gray-700);
    background: var(--gray-100);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    transition: all var(--transition-normal);
}

.feature-tag:hover {
    background: var(--primary-50);
    color: var(--primary-700);
    transform: translateX(2px);
}

.feature-tag i {
    font-size: 0.75rem;
    margin-right: 0.5rem;
}

.service-advantages {
    margin-bottom: 1.5rem;
}

.advantage-badge {
    font-size: 0.8rem;
    color: var(--gray-600);
    background: var(--white);
    padding: 0.4rem 0.6rem;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 1px solid var(--gray-200);
    transition: all var(--transition-normal);
    min-height: 2.5rem;
}

.advantage-badge:hover {
    background: var(--primary-50);
    border-color: var(--primary-200);
    color: var(--primary-700);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.advantage-badge i {
    font-size: 0.75rem;
    margin-right: 0.25rem;
}

/* Responsive pour les services */
@media (max-width: 768px) {
    .feature-tag {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
    }
    
    .advantage-badge {
        font-size: 0.75rem;
        padding: 0.3rem 0.5rem;
        min-height: 2.2rem;
    }
    
    .card-modern .card-body {
        padding: 1.5rem;
    }
}

/* ===== CARTES D'INNOVATION ===== */
.innovation-card {
    background: var(--white);
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: all var(--transition-normal);
    overflow: hidden;
    position: relative;
    padding: 2rem;
    text-align: center;
}

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

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

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

.innovation-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--white);
    font-size: 2rem;
    transition: all var(--transition-normal);
}

.innovation-card:hover .innovation-icon {
    transform: scale(1.15) rotate(5deg);
    box-shadow: var(--shadow-xl);
}

.innovation-features {
    text-align: left;
}

.innovation-feature {
    padding: 0.5rem 0;
    color: var(--gray-700);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

.innovation-feature i {
    color: var(--secondary-color);
    font-size: 0.875rem;
    min-width: 20px;
}

/* ===== STATISTIQUES MODERNES ===== */
.stats-section {
    background: var(--gray-50);
    color: var(--gray-900);
    position: relative;
    overflow: hidden;
    padding: 6rem 0;
    min-height: 400px;
}

.stats-section::before {
    display: none;
}

.stat-card {
    background: var(--white);
    border: none;
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all var(--transition-normal);
    position: relative;
    z-index: 2;
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

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

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

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

.stat-card:hover .stat-number {
    transform: scale(1.05);
    transition: transform var(--transition-normal);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    display: block;
    color: var(--gray-900);
    text-align: center;
}

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

.stat-description {
    font-size: 0.9rem;
    color: var(--gray-500);
    margin-top: 0.5rem;
    line-height: 1.4;
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: var(--white);
    font-size: 1.5rem;
    transition: all var(--transition-normal);
}

.stat-card:hover .stat-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--shadow-lg);
}

.achievement-highlight {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: var(--shadow-lg);
    animation: pulse 2s infinite;
}

.highlight-text {
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

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

/* ===== TÉMOIGNAGES MODERNES ===== */
.testimonial-card-modern {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-normal);
    position: relative;
    border: 1px solid var(--gray-200);
}

.testimonial-card-modern::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.2;
    font-family: serif;
}

.testimonial-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 3px solid var(--primary-color);
    margin-bottom: 1rem;
}

.testimonial-text {
    font-style: italic;
    color: var(--gray-700);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.testimonial-author {
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.testimonial-position {
    color: var(--primary-color);
    font-size: 0.875rem;
    font-weight: 500;
}

/* ===== ANIMATIONS ===== */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-slideInUp {
    animation: slideInUp 0.6s ease-out;
}

.animate-slideInLeft {
    animation: slideInLeft 0.6s ease-out;
}

.animate-fadeIn {
    animation: fadeIn 0.6s ease-out;
}

.animate-scaleIn {
    animation: scaleIn 0.6s ease-out;
}

/* ===== TOAST NOTIFICATIONS ===== */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.toast-modern {
    background: var(--white);
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border-left: 4px solid var(--primary-color);
    margin-bottom: 1rem;
    min-width: 300px;
    animation: slideInRight 0.3s ease-out;
}

.toast-modern.success {
    border-left-color: var(--secondary-color);
}

.toast-modern.error {
    border-left-color: #ef4444;
}

.toast-modern.warning {
    border-left-color: var(--accent-color);
}

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

/* ===== PROJECT CARDS ===== */
.project-card-modern {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all var(--transition-normal);
    height: 100%;
    border: 1px solid rgba(37, 99, 235, 0.1);
}

.project-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
    border-color: rgba(37, 99, 235, 0.2);
}

.project-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.project-card-modern:hover .project-image img {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.8), rgba(16, 185, 129, 0.8));
    display: flex;
    align-items: flex-end;
    padding: 1rem;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.project-card-modern:hover .project-overlay {
    opacity: 1;
}

.project-category {
    background: var(--white);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
}

.project-content {
    padding: 2rem;
}

.project-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.project-description {
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.project-stats {
    display: flex;
    gap: 2rem;
    justify-content: space-between;
}

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

.project-stat .stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.project-stat .stat-label {
    font-size: 0.875rem;
    color: var(--gray-500);
    font-weight: 500;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .stats-section .section-title {
        font-size: 2.5rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-card {
        padding: 2rem 1.5rem;
        margin-bottom: 1rem;
    }
    
    .navbar-collapse {
        background: var(--white);
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-lg);
        margin-top: 1rem;
        padding: 1rem;
    }
    
    .expertise-card-modern {
        padding: 2rem 1.5rem;
    }
    
    .expertise-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .expertise-title {
        font-size: 1.25rem;
    }
    
    .project-card-modern {
        margin-bottom: 2rem;
    }
    
    .project-stats {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .card-modern .card-body {
        padding: 1.5rem;
    }
    
    .stats-section {
        padding: 4rem 0;
    }
    
    .stats-section .section-title {
        font-size: 2rem;
    }
    
    .stats-section .section-subtitle {
        font-size: 1.1rem;
    }
    
    .stat-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 1rem;
    }
    
    .expertise-card-modern {
        padding: 1.5rem 1rem;
    }
}

/* ===== LOADING ANIMATION ===== */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--gray-200);
    border-top: 4px solid var(--primary-color);
    border-radius: var(--radius-full);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== CAROUSEL HERO ===== */
.hero-carousel {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-carousel .carousel-inner {
    min-height: 100vh;
    border-radius: 0;
}

.hero-carousel .carousel-item {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.95), rgba(16, 185, 129, 0.95));
}

/* Backgrounds spécifiques pour chaque slide */
.hero-carousel .carousel-item:nth-child(1) {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.9), rgba(16, 185, 129, 0.9)), 
                url('../images/hero-1.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-carousel .carousel-item:nth-child(2) {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.9), rgba(37, 99, 235, 0.9)), 
                url('../images/hero-2.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-carousel .carousel-item:nth-child(3) {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.9), rgba(16, 185, 129, 0.9)), 
                url('../images/hero-3.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-carousel .carousel-item:nth-child(4) {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.9), rgba(168, 85, 247, 0.9)), 
                url('../images/hero-1n.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Overlay avec pattern */
.hero-carousel .carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    animation: float 20s ease-in-out infinite;
    z-index: 1;
}

.hero-carousel .carousel-item .row {
    position: relative;
    z-index: 2;
}

/* Indicateurs du carousel hero */
.hero-indicators {
    bottom: 20px;
    margin-bottom: 0;
    z-index: 10;
}

.hero-indicators button {
    width: 14px;
    height: 14px;
    border-radius: var(--radius-full);
    background-color: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.6);
    margin: 0 8px;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.hero-indicators button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--white);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all var(--transition-normal);
}

.hero-indicators button.active {
    background: transparent;
    border-color: var(--white);
    transform: scale(1.3);
}

.hero-indicators button.active::before {
    width: 8px;
    height: 8px;
}

.hero-indicators button:hover {
    background-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.2);
}

/* Contrôles du carousel hero */
.hero-control {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-full);
    border: 2px solid rgba(255, 255, 255, 0.3);
    top: 50%;
    transform: translateY(-50%);
    transition: all var(--transition-normal);
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.hero-control::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.hero-control:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.hero-control:hover::before {
    opacity: 1;
}

.hero-control .carousel-control-prev-icon,
.hero-control .carousel-control-next-icon {
    width: 24px;
    height: 24px;
    background-size: 24px 24px;
    filter: brightness(0) invert(1);
    position: relative;
    z-index: 2;
}

.hero-control-prev {
    left: 10px;
}

.hero-control-next {
    right: 10px;
}


/* Amélioration des images hero */
.hero-image {
    position: relative;
    z-index: 3;
    padding: 2rem 0;
    text-align: center;
}

.hero-image img {
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.hero-image img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(37, 99, 235, 0.1), rgba(16, 185, 129, 0.1));
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.hero-image:hover img {
    transform: scale(1.02) rotate(1deg);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
}

.hero-image:hover img::before {
    opacity: 1;
}

/* Effet de parallax amélioré */
.hero-image.parallax {
    transform: translateZ(0);
    will-change: transform;
}

/* Responsive pour le carousel hero */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
        text-align: center;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        text-align: center;
        max-width: 100%;
    }
    
    .hero-content {
        text-align: center;
        padding: 1rem 0;
    }
    
    .hero-image {
        padding: 1rem 0;
    }
    
    .hero-control {
        width: 40px;
        height: 40px;
    }
    
    .hero-control-prev {
        left: 5px;
    }
    
    .hero-control-next {
        right: 5px;
    }
    
}

@media (max-width: 576px) {
    .hero-control {
        width: 45px;
        height: 45px;
    }
    
    .hero-control-prev {
        left: 0px;
    }
    
    .hero-control-next {
        right: 0px;
    }
}

/* ===== SCROLLBAR PERSONNALISÉE ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary-dark));
}
