/* Variables globales */
:root {
    /* Couleurs principales */
    --primary-color: #2C5282; /* Bleu foncé */
    --secondary-color: #EBF8FF; /* Bleu clair */
    --accent-color: #4299E1; /* Bleu vif */
    --text-color: #2D3748; /* Gris foncé */
    --light-bg: #F7FAFC; /* Fond clair */
    /* Couleurs sémantiques */
    --success-color: #48BB78; /* Vert */
    --warning-color: #ECC94B; /* Jaune */
    --danger-color: #F56565; /* Rouge */
    --info-color: #4299E1; /* Bleu info */
    /* Couleurs d'urgence */
    --emergency-primary: #DC2626; /* Rouge d'urgence */
    --emergency-light: #FEE2E2; /* Rouge clair */
    --emergency-dark: #991B1B; /* Rouge foncé */
    /* Transitions */
    --transition-fast: all 0.2s ease;
    --transition-normal: all 0.3s ease;
    --transition-slow: all 0.5s ease;
    /* Ombres */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 2px 15px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.14);
    --shadow-xl: 0 15px 45px rgba(0, 0, 0, 0.16);
    /* Bordures */
    --border-radius-sm: 0.5rem;
    --border-radius-md: 1rem;
    --border-radius-lg: 1.5rem;
    --border-radius-xl: 2rem;
}

/* Reset et styles de base */
body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
    background-color: var(--light-bg);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--primary-color);
}

p {
    color: var(--text-color);
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition-fast);
}

    a:hover {
        color: var(--accent-color);
    }

/* Classes utilitaires */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.text-accent {
    color: var(--accent-color) !important;
}

.bg-accent {
    background-color: var(--accent-color) !important;
}

/* éléments circulaires génériques */
.rounded-circle {
    width: 44px;
    height: 44px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    line-height: 1;
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    transition: var(--transition-normal);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

    .navbar.scrolled {
        padding: 0.75rem 0;
        box-shadow: var(--shadow-sm);
    }

        .navbar.scrolled .navbar-brand img {
            height: 60px;
        }


.navbar-brand {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.5rem;
}

    .navbar-brand img {
        transition: height .5s;
    }

.nav-link {
    font-weight: 500;
    position: relative;
    padding: 0.5rem 1rem;
    transition: var(--transition-fast);
}

    .nav-link::after {
        content: '';
        position: absolute;
        width: 0;
        height: 2px;
        bottom: 0;
        left: 50%;
        background-color: var(--accent-color);
        transition: var(--transition-normal);
    }

    .nav-link:hover::after {
        width: 100%;
        left: 0;
    }

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #FFFFFF 100%);
    padding: 11rem 0 6rem;
    position: relative;
    overflow: hidden;
}

    .hero::before {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 100%;
        height: 100%;
        background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><path fill="%234299E1" fill-opacity="0.1" d="M45.3,-77.5C59.9,-70.3,73.5,-59.7,81.1,-45.9C88.7,-32.1,90.4,-16.1,88.6,-1.1C86.8,14,81.5,27.9,73.8,40.5C66.1,53.1,56,64.3,43.4,71.7C30.8,79.1,15.4,82.7,-0.2,83C-15.8,83.4,-31.5,80.5,-44.8,73.2C-58.1,65.9,-68.9,54.2,-76.3,40.6C-83.7,27,-87.7,13.5,-87.1,0.3C-86.6,-12.8,-81.5,-25.7,-74.1,-37.4C-66.7,-49.2,-57,-59.9,-44.7,-68.3C-32.4,-76.7,-16.2,-82.9,-0.1,-82.7C16,-82.5,30.7,-84.8,45.3,-77.5Z" transform="translate(100 100)"></path></svg>') no-repeat center center;
        opacity: 0.1;
        z-index: 0;
    }

/* Service Cards */
.service-card {
    transition: var(--transition-normal);
    border: none;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    height: 100%;
    background: white;
}

    .service-card:hover {
        transform: translateY(-10px);
        box-shadow: var(--shadow-lg);
    }

/* Service Icons */
.service-icon {
    /*width: 60px;
    height: 60px;
    position: relative;
    border-radius: 50%;
    background-color: var(--secondary-color);
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;*/
    width: 180px;
    height: 180px;
    position: relative;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .service-icon img {
        width: 100%;
        height: auto;
    }

/* Testimonial Cards */
.testimonial-card {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    position: relative;
    margin-top: 3rem;
    transition: var(--transition-normal);
}

.testimonial-avatar {
    width: 80px;
    height: 80px;
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid white;
    border-radius: 50%;
    background-color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

    .testimonial-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

/* Forms */
.form-control {
    padding: 1rem;
    border-radius: var(--border-radius-md);
    border: 1px solid #E2E8F0;
    transition: var(--transition-fast);
}

    .form-control:focus {
        border-color: var(--accent-color);
        box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.2);
    }

/* Buttons */
.btn {
    padding: 0.8rem 2rem;
    border-radius: 2rem;
    font-weight: 500;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

    .btn-primary:hover {
        background-color: var(--accent-color);
        border-color: var(--accent-color);
        transform: translateY(-2px);
    }

/* WhatsApp Button */
.floating-whatsapp {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #25D366;
    color: white;
    font-size: 2rem;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-normal);
    z-index: 1000;
}

    .floating-whatsapp:hover {
        transform: scale(1.1);
        color: white;
    }

/* Animations */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(220, 38, 38, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0);
    }
}

.pulse-button {
    animation: pulse 2s infinite;
}

/* Media Queries */
@media (max-width: 992px) {
    .navbar {
        backdrop-filter: none;
        background: white;
    }

    .service-card:hover {
        transform: translateY(-5px);
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 6rem 0 4rem;
    }

    .navbar-brand {
        font-size: 1.25rem;
    }

    .testimonial-card {
        margin-top: 4rem;
    }

    .floating-whatsapp {
        bottom: 1rem;
        right: 1rem;
    }
}

@media (max-width: 576px) {
    .stats-number {
        font-size: 2rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .btn {
        padding: 0.6rem 1.5rem;
    }

    .service-icon {
        width: 50px;
        height: 50px;
    }

        .service-icon img {
            width: 50%;
        }

    .floating-whatsapp {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .floating-whatsapp,
    .btn {
        display: none !important;
    }

    .hero {
        padding: 2rem 0 !important;
        background: none !important;
    }

    .card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }

    .service-card:hover,
    .testimonial-card:hover {
        transform: none !important;
    }
}
