/* Styles personnalisés pour la plateforme statistique - Inspiré de stat-des.net */

/* Variables CSS - Palette STAT DES */
:root {
    --primary-color: #1e3a8a;        /* Bleu foncé principal */
    --primary-light: #3b82f6;        /* Bleu clair */
    --secondary-color: #2563eb;      /* Bleu moyen */
    --secondary-light: #60a5fa;      /* Bleu clair doux */
    --accent-color: #0ea5e9;         /* Bleu cyan */
    --success-color: #2563eb;        /* Bleu moyen */
    --info-color: #06b6d4;           /* Cyan */
    --warning-color: #f59e0b;        /* Jaune-orange */
    --danger-color: #ef4444;         /* Rouge moderne */
    --light-color: #ffffff;          /* Blanc */
    --dark-color: #1e293b;           /* Gris très foncé */
    --text-color: #1e293b;           /* Noir */
    --border-color: #e2e8f0;         /* Gris clair pour les bordures */
    --gradient-primary: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    --gradient-secondary: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    --gradient-stat-des: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-medium: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-large: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Styles généraux - Typographie moderne et professionnelle */
html {
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: #ffffff;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: -0.01em;
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
}

/* Amélioration de la lisibilité */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    font-weight: 800;
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
}

h3 {
    font-size: 2rem;
    font-weight: 600;
}

p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* Hero Carousel */
.hero-carousel {
    position: relative;
    width: 100%;
}

.hero-carousel .carousel-item {
    position: relative;
}

.hero-carousel-img {
    min-height: 65vh;
    max-height: 65vh;
    object-fit: cover;
}

.hero-carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30,58,138,0.3), rgba(37,99,235,0.2));
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-carousel-content {
    text-align: center;
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out;
}

.hero-flags {
    margin-top: 0.5rem;
}

.hero-flag-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.hero-flag-item img {
    width: 40px;
    height: 28px;
    object-fit: cover;
    border-radius: 4px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.hero-flag-burkina img {
    width: 60px;
    height: 42px;
}

.hero-flag-item span {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

@media (max-width: 576px) {
    .hero-flag-item img {
        width: 32px;
        height: 22px;
    }
    .hero-flag-item.hero-flag-burkina img {
        width: 44px;
        height: 31px;
    }
    .hero-flag-item span {
        font-size: 0.6rem;
    }
    .hero-flags {
        gap: 0.5rem !important;
    }
}

.hero-carousel .carousel-indicators {
    z-index: 10;
}

.hero-carousel .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.8);
    background: transparent;
    margin: 0 6px;
    transition: all 0.3s ease;
}

.hero-carousel .carousel-indicators button.active {
    background: #fff;
    transform: scale(1.2);
}

.hero-carousel .carousel-control-prev-icon,
.hero-carousel .carousel-control-next-icon {
    background-color: rgba(255,255,255,0.2);
    border-radius: 50%;
    padding: 1.2rem;
    background-size: 50%;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #ffffff;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5), 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: rgba(255,255,255,0.95);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Compteurs clés (bureaux, associés, collaborateurs) */
.key-numbers-section {
    max-width: 100%;
    margin-top: 3rem;
}

.key-number-card {
    padding: 0.75rem 0.5rem;
    text-align: center;
    color: #ffffff;
}

.key-number-icon {
    font-size: 1.3rem;
    opacity: 0.9;
}

.key-number {
    font-size: 1.6rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 0.2rem;
}

.key-number-label {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255,255,255,0.85);
    margin-bottom: 0;
}

/* Image équipe (page d'accueil) */
.equipe-image-section {
    padding: 2rem 0;
}

.equipe-image-section img {
    width: 100%;
    max-width: 900px;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Image À propos */
.about-page-image {
    margin: 2rem 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.about-page-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

/* Projets (header) */
.projets-header-section {
    background: #ffffff;
    max-width: 100%;
    overflow-x: hidden;
}

.projet-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.projet-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(30,58,138,0.15);
}

.projet-image {
    height: 200px;
    overflow: hidden;
}

.projet-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.projet-content {
    padding: 1.5rem;
    flex-grow: 1;
}

/* Bureaux */
.bureaux-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    max-width: 100%;
    overflow-x: hidden;
}

.bureau-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    height: 100%;
}

.bureau-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(30,58,138,0.15);
    border-color: var(--primary-color);
}

.bureau-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
    color: #ffffff;
}

.bureau-flag {
    display: flex;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.bureau-flag img {
    height: 50px;
    width: auto;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

.bureau-info {
    text-align: left;
}

.bureau-info p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.bureau-info a {
    color: var(--text-color);
    transition: color 0.2s ease;
}

.bureau-info a:hover {
    color: var(--primary-color);
}

/* Cards - Style moderne stat-des.net */
.card {
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    background: #ffffff;
    max-width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-img-top {
    max-width: 100%;
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

@media (max-width: 1024px) {
    .card-img-top {
        height: 220px;
    }
}

@media (max-width: 768px) {
    .card-img-top {
        height: 200px;
    }
}

@media (max-width: 576px) {
    .card-img-top {
        height: 180px;
    }
}

@media (max-width: 400px) {
    .card-img-top {
        height: 160px;
    }
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-large);
    border-color: var(--primary-light);
}

.card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    color: var(--text-color);
}

.card-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 1rem;
    flex-grow: 1;
}

.card-header {
    background: linear-gradient(135deg, var(--light-color) 0%, #ffffff 100%);
    border-bottom: 1px solid var(--border-color);
    border-radius: 12px 12px 0 0 !important;
    font-weight: 600;
    color: var(--dark-color);
}

/* Badges - Style moderne */
.badge {
    font-size: 0.75em;
    padding: 0.5em 0.75em;
    border-radius: 6px;
    font-weight: 500;
    letter-spacing: 0.025em;
}

.badge.bg-primary {
    background: var(--gradient-primary) !important;
}

.badge.bg-success {
    background: var(--gradient-secondary) !important;
}

/* Buttons - Style professionnel STAT DES */
.btn {
    border-radius: 16px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    padding: 1rem 2.5rem;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.navbar .btn-navbar-pro {
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
}

.btn-primary {
    background: #ffffff;
    color: var(--primary-color);
    border: 2px solid transparent;
}

.btn-primary:hover {
    background: #ffffff;
    color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.2);
}

.btn-success {
    background: #ffffff;
    color: var(--secondary-color);
    border: 2px solid transparent;
}

.btn-success:hover {
    background: #ffffff;
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: #ffffff;
}

.btn-outline-primary:hover {
    background: #ffffff;
    color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Navigation - Style blanc professionnel STAT DES */
.navbar {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(15px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    padding: 0.75rem 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(30, 58, 138, 0.1);
    overflow-x: hidden;
    max-width: 100%;
}

.container-fluid {
    max-width: 100%;
    overflow-x: hidden;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 576px) {
    .container-fluid {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.99) !important;
    padding: 1rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.12);
}

/* Styles pour le logo et branding dans la navbar */
.logo-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-container img {
    height: 40px !important;
    width: auto !important;
    max-height: 40px;
    min-height: 40px;
    object-fit: contain;
    display: block;
    transition: all 0.3s ease;
    border: 2px solid rgba(30, 58, 138, 0.1);
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.2);
}

.navbar-brand:hover .logo-container img {
    transform: scale(1.05);
    border-color: var(--primary-color);
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.3);
}

.brand-text {
    margin-left: 0.3rem;
}

.brand-name {
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--primary-color) !important;
    line-height: 1.1;
    margin-bottom: 0;
}

.brand-subtitle {
    font-weight: 500;
    font-size: 0.75rem;
    color: var(--text-color) !important;
    margin-top: -2px;
    opacity: 0.8;
}

.navbar-brand {
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    transform: translateY(-1px);
}

.nav-link {
    font-weight: 600;
    transition: all 0.3s ease;
    color: var(--text-color) !important;
    padding: 0.5rem 0.75rem !important;
    border-radius: 8px;
    margin: 0 0.1rem;
    font-size: 0.8rem;
    position: relative;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--primary-color) !important;
    background: rgba(30, 58, 138, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.15);
}

.nav-link.active {
    background: var(--primary-color);
    color: white !important;
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* Footer professionnel */
footer {
    margin-top: auto;
    background: var(--dark-color);
    color: rgba(255, 255, 255, 0.85);
    padding: 3.5rem 0 0;
}

footer h5 {
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 0;
    font-size: 1.2rem;
}

footer h6 {
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 0;
    font-size: 1rem;
}

.footer-heading {
    position: relative;
    padding-bottom: 0.75rem;
    margin-bottom: 1.25rem;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-light);
}

.footer-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 0;
}

.footer-logo {
    height: 32px !important;
    width: 32px !important;
    object-fit: cover;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #ffffff;
    padding-left: 5px;
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact li i {
    color: var(--primary-light);
    margin-right: 0.75rem;
    margin-top: 0.2rem;
    min-width: 16px;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: #ffffff;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-social-link.facebook {
    background: #1877F2;
}

.footer-social-link.linkedin {
    background: #0A66C2;
}

.footer-social-link svg {
    flex-shrink: 0;
}

.footer-bottom-links a svg {
    flex-shrink: 0;
}

.footer-social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    color: #ffffff;
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 0;
}

.footer-bottom {
    padding: 1.25rem 0;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    margin-bottom: 0;
}

.footer-bottom-links {
    display: flex;
    gap: 0.75rem;
}

.footer-bottom-links a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-bottom-links a.fb-link,
.footer-bottom-links a.facebook {
    background: #1877F2;
}

.footer-bottom-links a.li-link,
.footer-bottom-links a.linkedin {
    background: #0A66C2;
}

.footer-bottom-links a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    color: #ffffff;
}

/* Formulaires - Style moderne */
.form-control {
    border-radius: 8px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
    outline: none;
}

.form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

/* Alerts - Style moderne */
.alert {
    border-radius: 12px;
    border: none;
    padding: 1rem 1.5rem;
    font-weight: 500;
}

.alert-success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    border-left: 4px solid var(--success-color);
}

.alert-info {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
    border-left: 4px solid var(--info-color);
}

.alert-warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    border-left: 4px solid var(--warning-color);
}

.alert-danger {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
    border-left: 4px solid var(--danger-color);
}

/* Tables - Style moderne */
.table {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.table thead th {
    background: var(--gradient-primary);
    color: white;
    border: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
    padding: 1rem;
}

.table tbody td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.table tbody tr:hover {
    background: var(--light-color);
}

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

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

/* Sections de services - Style stat-des.net */
.services-section {
    background: var(--light-color);
    padding: 5rem 0;
    max-width: 100%;
}

.service-card {
    background: white;
    border-radius: 24px;
    padding: 3.5rem 2.5rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(30, 58, 138, 0.1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-stat-des);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

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

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(30, 58, 138, 0.15);
    border-color: var(--primary-color);
}

.service-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
    position: relative;
}

.service-icon.primary {
    background: var(--gradient-primary);
}

.service-icon.success {
    background: linear-gradient(135deg, #0ea5e9 0%, #38bdf8 100%);
}

.service-icon.info {
    background: linear-gradient(135deg, var(--info-color) 0%, var(--accent-color) 100%);
}

/* (hero-title and hero-subtitle are defined above in the carousel section) */

/* Stats cards */
.stats-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.stats-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

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

/* Responsive - Améliorations professionnelles pour mobile et tablette */

/* Tablette (768px - 1024px) */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-carousel-img {
        min-height: 58vh;
        max-height: 58vh;
    }
    
    .key-number {
        font-size: 2.5rem;
    }
    
    .key-number-icon {
        font-size: 2rem;
    }
    
    .service-card {
        padding: 2rem 1.5rem;
    }
    
    .navbar-nav {
        margin-top: 1rem;
    }
    
    .brand-text {
        margin-left: 0.3rem;
    }
    
    .brand-name {
        font-size: 1.6rem;
    }
    
    .brand-subtitle {
        font-size: 0.8rem;
    }
}

/* Styles pour les partenaires */
.partner-card {
    background: white;
    border-radius: 12px;
    padding: 2rem 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.partner-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1);
}

.partner-logo img {
    transition: all 0.3s ease;
}

.partner-card:hover .partner-logo img {
    transform: scale(1.05);
}

.placeholder-logo {
    transition: all 0.3s ease;
}

.partner-card:hover .placeholder-logo {
    background: var(--primary-color) !important;
    color: white !important;
}

/* Partenaires - défilement horizontal gauche vers droite */
.partners-scroll-wrapper {
    overflow: hidden;
    padding: 1rem 0;
}
.partners-scroll-track {
    display: flex;
    animation: partnersScroll 30s linear infinite;
    width: max-content;
}
.partners-scroll-track:hover {
    animation-play-state: paused;
}
.partner-scroll-item {
    flex-shrink: 0;
    padding: 0 1.5rem;
}
.partners-scroll-wrapper .partner-card {
    min-width: 180px;
}
@keyframes partnersScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Tablettes (max-width: 1024px) */
@media (max-width: 1024px) {
    /* Cards tablette */
    .card {
        margin-bottom: 1.5rem;
    }
    
    .card-img-top {
        height: 220px;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    .card-title {
        font-size: 1.15rem;
    }
    
    .card-text {
        font-size: 0.95rem;
    }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    /* Typography mobile */
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    p {
        font-size: 1rem;
    }
    
    /* Display classes responsive */
    .display-5 {
        font-size: 2rem !important;
    }
    
    .display-6 {
        font-size: 1.75rem !important;
    }
    
    .lead {
        font-size: 1rem !important;
    }
    
    /* Navigation mobile */
    .navbar {
        padding: 1rem 0;
    }
    
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .navbar-brand img,
    .logo-container img {
        height: 38px !important;
        min-width: 38px;
        max-height: 38px;
    }
    
    .brand-text {
        margin-left: 0.5rem;
    }
    
    .brand-name {
        font-size: 1.4rem;
    }
    
    .brand-subtitle {
        font-size: 0.75rem;
        display: none;
    }
    
    .navbar-nav {
        margin-top: 1rem;
        text-align: center;
    }
    
    .nav-link {
        padding: 0.5rem 1rem !important;
        margin: 0.2rem 0;
    }
    
    .navbar .d-flex {
        flex-direction: column;
        width: 100%;
    }
    
    .navbar .btn {
        width: 100%;
        margin: 0.25rem 0;
    }
    
    /* Hero carousel mobile */
    .hero-carousel-img {
        min-height: 45vh;
        max-height: 45vh;
    }
    
    .hero-title {
        font-size: 2.2rem;
        line-height: 1.1;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 1.5rem;
    }
    
    .hero-carousel-content {
        padding: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }
    
    /* Compteurs clés mobile */
    .key-number {
        font-size: 2rem;
    }
    
    .key-number-icon {
        font-size: 1.5rem;
    }
    
    .key-number-label {
        font-size: 0.85rem;
    }
    
    /* Bureau cards mobile */
    .bureau-card {
        padding: 1.5rem 1rem;
    }
}

/* Très petits écrans (max-width: 480px) */
@media (max-width: 480px) {
    .hero-carousel-img {
        min-height: 40vh;
        max-height: 40vh;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 250px;
        margin: 0.25rem 0;
    }
    
    .key-number {
        font-size: 1.75rem;
    }
    
    .key-number-icon {
        font-size: 1.25rem;
    }
    
    .key-number-label {
        font-size: 0.75rem;
    }
    
    /* Services mobile */
    .services-section {
        padding: 3rem 0;
    }
    
    .service-card {
        padding: 2rem 1.5rem;
        margin-bottom: 2rem;
    }
    
    .service-card h5 {
        font-size: 1.3rem;
    }
    
    .service-card p {
        font-size: 0.95rem;
    }
    
    /* Stats section mobile */
    .stats-section {
        padding: 3rem 0;
    }
    
    .stats-number {
        font-size: 2rem;
    }
    
    .stats-text {
        font-size: 0.9rem;
    }
    
    .stats-icon i {
        font-size: 2rem !important;
    }
    
    /* Cards responsive mobile */
    .card {
        margin-bottom: 1.5rem;
        border-radius: 10px;
    }
    
    .card-img-top {
        height: 200px !important;
        border-radius: 10px 10px 0 0;
    }
    
    .card-body {
        padding: 1.25rem !important;
    }
    
    .card-title {
        font-size: 1.1rem !important;
        margin-bottom: 0.5rem;
    }
    
    .card-text {
        font-size: 0.9rem !important;
        line-height: 1.5;
        margin-bottom: 0.75rem;
    }
    
    .card .btn-sm {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
        width: 100%;
        margin-top: 0.5rem;
    }
    
    .card small {
        font-size: 0.8rem;
    }
    
    .card .badge {
        font-size: 0.7rem;
        padding: 0.35rem 0.65rem;
    }
    
    /* Sections padding mobile */
    section {
        padding: 2.5rem 0 !important;
    }
    
    .py-5 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }
    
    /* Cards responsive */
    .card {
        margin-bottom: 1.5rem;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    /* Tables responsive */
    .table-responsive {
        font-size: 0.875rem;
    }
    
    .table th,
    .table td {
        padding: 0.5rem;
        white-space: nowrap;
    }
    
    /* Buttons mobile */
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .btn-group {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-group .btn {
        margin-bottom: 0.5rem;
        margin-right: 0;
        width: 100%;
    }
    
    /* Forms mobile */
    .form-control {
        font-size: 16px; /* Évite le zoom sur iOS */
    }
    
    /* Footer mobile */
    .footer {
        text-align: center;
    }
    
    .footer .row > div {
        margin-bottom: 2rem;
    }
}

/* Très petits écrans (max-width: 576px) */
@media (max-width: 576px) {
    /* Typography très petits écrans */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    p {
        font-size: 0.95rem;
    }
    
    .display-5 {
        font-size: 1.75rem !important;
    }
    
    .display-6 {
        font-size: 1.5rem !important;
    }
    
    .lead {
        font-size: 0.95rem !important;
    }
    
    /* Container padding */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
        max-width: 100%;
    }
    
    .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
        max-width: 100%;
    }
    
    /* Container padding */
.container {
    padding-left: 1rem;
    padding-right: 1rem;
    max-width: 100%;
    overflow-x: hidden;
}

@media (min-width: 576px) {
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}
    
    /* Navigation très petits écrans */
    .navbar-brand {
        font-size: 1rem;
    }
    
    .navbar-brand img,
    .logo-container img {
        height: 36px !important;
        min-width: 36px;
        max-height: 36px;
    }
    
    .brand-name {
        font-size: 1.2rem;
    }
    
    .brand-subtitle {
        display: none;
    }
    
    /* Hero carousel très petits écrans */
    .hero-carousel-img {
        min-height: 40vh;
        max-height: 40vh;
    }
    
    .hero-title {
        font-size: 1.75rem;
        line-height: 1.1;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    .hero-carousel-content .btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
    
    /* Services très petits écrans */
    .service-card {
        padding: 1.5rem 1rem;
        margin-bottom: 1.5rem;
    }
    
    .service-card h5 {
        font-size: 1.1rem;
    }
    
    .service-card p {
        font-size: 0.9rem;
    }
    
    /* Stats très petits écrans */
    .stats-number {
        font-size: 1.75rem;
    }
    
    .stats-text {
        font-size: 0.8rem;
    }
    
    .stats-icon i {
        font-size: 1.75rem !important;
    }
    
    /* Cards très petits écrans */
    .card {
        margin-bottom: 1.25rem;
        border-radius: 8px;
    }
    
    .card-img-top {
        height: 180px !important;
        border-radius: 8px 8px 0 0;
    }
    
    .card-body {
        padding: 1rem !important;
    }
    
    .card-title {
        font-size: 1rem !important;
        margin-bottom: 0.5rem;
        line-height: 1.3;
    }
    
    .card-text {
        font-size: 0.85rem !important;
        line-height: 1.5;
        margin-bottom: 0.75rem;
    }
    
    .card .btn-sm {
        font-size: 0.8rem;
        padding: 0.45rem 0.9rem;
        width: 100%;
    }
    
    .card small {
        font-size: 0.75rem;
    }
    
    .card .badge {
        font-size: 0.65rem;
        padding: 0.3rem 0.6rem;
    }
    
    /* Sections padding très petits écrans */
    section {
        padding: 2rem 0 !important;
    }
    
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    /* Gap responsive */
    .g-4 {
        --bs-gutter-y: 1rem;
        --bs-gutter-x: 1rem;
    }
    
    /* Buttons très petits écrans */
    .btn {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }
    
    /* Tables très petits écrans */
    .table th,
    .table td {
        padding: 0.25rem;
        font-size: 0.75rem;
    }
    
    /* Forms très petits écrans */
    .form-control {
        font-size: 16px;
        padding: 0.5rem;
    }
    
    .form-label {
        font-size: 0.9rem;
    }
}

/* Extra petits écrans (max-width: 400px) */
@media (max-width: 400px) {
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.85rem;
    }
    
    .hero-carousel-img {
        min-height: 40vh;
        max-height: 40vh;
    }
    
    .key-number {
        font-size: 1.5rem;
    }
    
    .service-card {
        padding: 1rem 0.75rem;
    }
    
    .navbar-brand img,
    .logo-container img {
        height: 34px !important;
        min-width: 34px;
        max-height: 34px;
    }
    
    .brand-name {
        font-size: 1rem;
    }
    
    .stats-number {
        font-size: 1.5rem;
    }
    
    .stats-icon i {
        font-size: 1.5rem !important;
    }
    
    .btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .card {
        margin-bottom: 1rem;
        border-radius: 8px;
    }
    
    .card-img-top {
        height: 160px !important;
        border-radius: 8px 8px 0 0;
    }
    
    .card-body {
        padding: 0.875rem !important;
    }
    
    .card-title {
        font-size: 0.95rem !important;
        margin-bottom: 0.4rem;
    }
    
    .card-text {
        font-size: 0.8rem !important;
        margin-bottom: 0.5rem;
    }
    
    .card .btn-sm {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
}

/* Classes utilitaires pour icônes responsive */
.stats-icon-size {
    font-size: 2rem;
}

@media (min-width: 768px) {
    .stats-icon-size {
        font-size: 3rem;
    }
}

/* Section Statistiques */
.stats-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    max-width: 100%;
    overflow-x: hidden;
}

.stats-card {
    padding: 2rem 1rem;
    transition: all 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-5px);
}

.stats-icon {
    transition: all 0.3s ease;
}

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

.stats-number {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stats-label {
    font-size: 1.1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Effet de scroll pour la navbar */
.navbar {
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.99) !important;
    padding: 0.8rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.12);
}

/* Utilitaires */
.text-gradient {
    background: linear-gradient(135deg, #ffffff, #bfdbfe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

/* Classes spécifiques STAT DES */
.bg-stat-des {
    background: var(--gradient-stat-des) !important;
}

.text-stat-des {
    color: var(--primary-color) !important;
}

.border-stat-des {
    border-color: var(--secondary-color) !important;
}

.btn-stat-des {
    background: var(--gradient-stat-des);
    border: none;
    color: white;
    transition: all 0.3s ease;
}

.btn-stat-des:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    color: white;
}

.btn-outline-stat-des {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
    transition: all 0.3s ease;
}

.btn-outline-stat-des:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.shadow-soft {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

.border-left-primary {
    border-left: 4px solid var(--primary-color) !important;
}

.border-left-success {
    border-left: 4px solid var(--success-color) !important;
}

.border-left-info {
    border-left: 4px solid var(--info-color) !important;
}

.border-left-warning {
    border-left: 4px solid var(--warning-color) !important;
}

/* Icônes */
.fa {
    transition: transform 0.3s ease;
}

.btn:hover .fa {
    transform: scale(1.1);
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0056b3;
}

/* Pagination - Style moderne */
.pagination {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.pagination .page-link {
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    background: #ffffff;
    padding: 0.5rem 0.75rem;
    margin: 0 0.25rem;
    border-radius: 16px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.pagination .page-link:hover {
    background: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(30, 58, 138, 0.2);
}

.pagination .page-item.active .page-link {
    background: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

.pagination .page-item.disabled .page-link {
    background: #f8f9fa;
    color: #6c757d;
    border-color: #dee2e6;
    cursor: not-allowed;
    opacity: 0.6;
}

.pagination .page-item.disabled .page-link:hover {
    transform: none;
    box-shadow: none;
}

@media (max-width: 576px) {
    .pagination .page-link {
        padding: 0.4rem 0.6rem;
        font-size: 0.875rem;
        margin: 0 0.15rem;
    }
    
    .pagination .page-item:first-child .page-link,
    .pagination .page-item:last-child .page-link {
        display: none;
    }
}

/* Prévention du défilement horizontal */
* {
    box-sizing: border-box;
}

/* max-width appliqué uniquement aux conteneurs principaux, pas aux éléments internes du carousel */
.container,
.container-fluid,
section,
main,
footer,
.card,
.service-card,
.partner-card,
.bureau-card,
.projet-card,
.stats-card {
    max-width: 100%;
}

img, video, iframe, embed, object {
    max-width: 100%;
    height: auto;
}

.row {
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
}

[class*="col-"] {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    max-width: 100%;
}

@media (max-width: 575.98px) {
    [class*="col-"] {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

/* Assurer que tous les éléments ne dépassent pas */
main {
    max-width: 100%;
    overflow-x: hidden;
}

footer {
    max-width: 100%;
    overflow-x: hidden;
}

/* Correction pour les éléments positionnés */
.position-fixed {
    max-width: calc(100vw - 40px);
}
