/* OFFIXIN Central - Modern UI Styles */

:root {
    --pharma-primary: #0088CC;
    --pharma-secondary: #00A859;
    --pharma-accent: #FF6B35;
    --pharma-success: #28A745;
    --pharma-success-light: #4CAF50;
    --pharma-warning: #FFC107;
    --pharma-danger: #DC3545;
    --pharma-light: #F8F9FA;
    --pharma-dark: #212529;
    --pharma-white: #FFFFFF;
    --pharma-border: #DEE2E6;
}

/* Couleur verte plus claire pour la caisse */
.bg-success {
    background-color: var(--pharma-success-light) !important;
}

.text-success {
    color: var(--pharma-success-light) !important;
}

.border-success {
    border-color: var(--pharma-success-light) !important;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #F5F7FA;
}

/* Navbar */
.pharma-navbar {
    background: linear-gradient(135deg, var(--pharma-primary) 0%, var(--pharma-secondary) 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 0.75rem 0;
}

.pharma-navbar .navbar-brand {
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--pharma-white) !important;
}

.pharma-navbar .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s;
    border-radius: 4px;
    margin: 0 0.25rem;
}

.pharma-navbar .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--pharma-white) !important;
}

.pharma-navbar .nav-link.active {
    background-color: rgba(255, 255, 255, 0.25);
    color: var(--pharma-white) !important;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Dropdown items active state */
.pharma-navbar .dropdown-item.active,
.pharma-navbar .dropdown-item:active {
    background: linear-gradient(135deg, var(--pharma-primary) 0%, var(--pharma-secondary) 100%) !important;
    color: var(--pharma-white) !important;
    font-weight: 600;
}

/* Login Page */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2rem;
}

.login-card {
    background: var(--pharma-white);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 3rem;
    width: 100%;
    max-width: 420px;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header .dropdown .btn-link {
    color: var(--pharma-primary);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s;
    border: 1px solid rgba(0, 136, 204, 0.2);
}

.login-header .dropdown .btn-link:hover {
    color: var(--pharma-secondary);
    background-color: rgba(0, 136, 204, 0.1);
    border-color: var(--pharma-primary);
}

.login-header .dropdown .btn-link:focus {
    color: var(--pharma-primary);
    box-shadow: 0 0 0 0.2rem rgba(0, 136, 204, 0.25);
}

.login-header .dropdown-menu {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 136, 204, 0.2);
    margin-top: 0.5rem;
}

.login-header .dropdown-item {
    padding: 0.5rem 1rem;
    transition: all 0.2s;
    color: var(--pharma-dark);
}

.login-header .dropdown-item:hover {
    background: linear-gradient(135deg, var(--pharma-primary) 0%, var(--pharma-secondary) 100%);
    color: white;
}

.login-title {
    color: var(--pharma-dark);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.login-subtitle {
    color: #6C757D;
    font-size: 0.9rem;
}

.pharma-btn-primary {
    background: linear-gradient(135deg, var(--pharma-primary) 0%, var(--pharma-secondary) 100%);
    border: none;
    font-weight: 600;
    padding: 0.75rem;
    transition: all 0.3s;
}

.pharma-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 136, 204, 0.3);
}

/* Main Content */
.main-content {
    padding: 2rem;
    min-height: calc(100vh - 70px);
}

/* Cards */
.pharma-card {
    background: var(--pharma-white);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 1.5rem;
    border: 1px solid var(--pharma-border);
}

.pharma-card-header {
    border-bottom: 2px solid var(--pharma-light);
    padding: 1rem 1.5rem;
    margin-bottom: 0;
}

.pharma-card-header.bg-success,
.pharma-card-header.bg-secondary {
    padding: 1rem 1.5rem;
    border-bottom: none;
}

.pharma-card-title {
    color: var(--pharma-dark);
    font-weight: 600;
    font-size: 1.25rem;
    margin: 0;
    padding: 0;
}

/* Texte blanc sur fond vert/gris pour meilleure visibilité */
.pharma-card-header.bg-success .pharma-card-title,
.pharma-card-header.bg-secondary .pharma-card-title {
    color: var(--pharma-white) !important;
}

.pharma-card-header.bg-success .pharma-card-title i,
.pharma-card-header.bg-secondary .pharma-card-title i {
    color: var(--pharma-white) !important;
}

.pharma-card-body {
    padding: 1.5rem;
}

/* Nav Tabs - Onglets avec couleurs bleu-vert */
.nav-tabs {
    border-bottom: 2px solid var(--pharma-border);
}

.nav-tabs .nav-link {
    color: #6C757D;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s;
    background: transparent;
    margin-bottom: -2px;
}

.nav-tabs .nav-link:hover {
    color: var(--pharma-primary);
    border-bottom-color: var(--pharma-primary);
    background: rgba(0, 136, 204, 0.05);
}

.nav-tabs .nav-link.active {
    color: var(--pharma-primary);
    background: transparent;
    border-bottom-color: var(--pharma-primary);
    font-weight: 600;
}

.nav-tabs .nav-link.active:hover {
    color: var(--pharma-secondary);
    border-bottom-color: var(--pharma-secondary);
}

/* Tables */
.pharma-table {
    background: var(--pharma-white);
    border-radius: 8px;
    overflow: hidden;
}

.pharma-table thead {
    background: linear-gradient(135deg, var(--pharma-primary) 0%, var(--pharma-secondary) 100%);
    color: var(--pharma-white);
}

.pharma-table thead th {
    border: none;
    padding: 1rem;
    font-weight: 600;
}

.pharma-table tbody tr {
    transition: all 0.2s;
}

.pharma-table tbody tr:hover {
    background: rgba(0, 136, 204, 0.05);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--pharma-primary) 0%, var(--pharma-secondary) 100%) !important;
    border: none !important;
    color: var(--pharma-white) !important;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background: linear-gradient(135deg, #0077AA 0%, #008844 100%) !important;
    border: none !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 136, 204, 0.3);
}

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

.bg-primary {
    background-color: var(--pharma-primary) !important;
}

.border-primary {
    border-color: var(--pharma-primary) !important;
}

/* Outline primary buttons */
.btn-outline-primary {
    color: var(--pharma-primary) !important;
    border-color: var(--pharma-primary) !important;
    background: transparent !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
    background: linear-gradient(135deg, var(--pharma-primary) 0%, var(--pharma-secondary) 100%) !important;
    border-color: var(--pharma-primary) !important;
    color: var(--pharma-white) !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 136, 204, 0.2);
}

/* OFFIXIN Logo Styles */

/* Logo complet avec tagline (login, landing) */
.offixin-logo-full {
    max-width: 300px;
    height: auto;
    display: block;
    margin: 0 auto 1.5rem;
}

/* Logo compact (navbar) - Taille augmentée pour meilleure visibilité */
.offixin-logo-compact {
    height: 50px;
    width: auto;
    display: block;
}

/* Logo dans la navbar - fond blanc rectangulaire, taille 50px */
.pharma-navbar .offixin-logo-compact {
    height: 50px;
    width: auto;
    display: block;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 1);
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

/* Hover effect pour le logo */
.pharma-navbar .navbar-brand:hover .offixin-logo-compact {
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
    transform: scale(1.02);
}

/* Logo vertical (page d'accueil, loading) */
.offixin-logo-vertical {
    max-width: 200px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Icône monochrome (favicon, footer) */
.offixin-icon {
    height: 30px;
    width: auto;
    opacity: 0.8;
}

/* Responsive logos */
@media (max-width: 768px) {
    .offixin-logo-compact {
        height: 45px;
    }
    
    .pharma-navbar .offixin-logo-compact {
        height: 45px;
        padding: 4px 8px;
    }
    
    .offixin-logo-full {
        max-width: 250px;
    }
    
    .offixin-logo-vertical {
        max-width: 150px;
    }
}

@media (max-width: 480px) {
    .offixin-logo-compact {
        height: 40px;
    }
    
    .pharma-navbar .offixin-logo-compact {
        height: 40px;
        padding: 3px 6px;
    }
    
    .offixin-logo-full {
        max-width: 200px;
    }
    
    .offixin-logo-vertical {
        max-width: 120px;
    }
}

/* Landing Page Styles */
.landing-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #0088CC 0%, #00A859 50%, #667eea 100%);
    position: relative;
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.landing-top-bar {
    position: absolute;
    top: 2rem;
    left: 2rem;
    right: 2rem;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.landing-logo {
    display: flex;
    align-items: center;
}

.landing-top-logo {
    height: 50px;
    width: auto;
    display: block;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 1);
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.landing-logo:hover .landing-top-logo {
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
    transform: scale(1.02);
}

.landing-top-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.landing-language-selector {
    display: inline-block;
}

.landing-language-selector .btn-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s;
    background: rgba(255, 255, 255, 0.1);
}

.landing-login-button .btn {
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.landing-login-button .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.landing-language-selector .btn-link:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.landing-language-selector .dropdown-menu {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: none;
    margin-top: 0.5rem;
}

.landing-language-selector .dropdown-item {
    padding: 0.5rem 1rem;
    transition: all 0.2s;
}

.landing-language-selector .dropdown-item:hover {
    background: linear-gradient(135deg, var(--pharma-primary) 0%, var(--pharma-secondary) 100%);
    color: white;
}

.landing-language-selector .dropdown-item i {
    width: 20px;
    text-align: center;
}

.hero-section {
    padding: 4rem 0;
    color: white;
}

.hero-logo-container {
    display: inline-block;
    background: white;
    padding: 1.5rem 2rem;
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
    transition: all 0.3s;
    margin-bottom: 2rem;
}

.hero-logo-container:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.hero-logo {
    max-width: 320px;
    height: auto;
    display: block;
}

.hero-tagline {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1.5rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    line-height: 1.7;
    font-weight: 400;
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
}

.feature-icon {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero-actions .btn {
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    transition: all 0.3s;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.hero-actions .btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    perspective: 1000px;
}

.hero-screenshot {
    max-width: 100%;
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5), 0 0 0 8px rgba(255, 255, 255, 0.3);
    transform: perspective(1000px) rotateY(-5deg) rotateX(3deg);
    transition: all 0.5s;
    background: white;
    padding: 0.5rem;
    border: 3px solid rgba(255, 255, 255, 0.5);
}

.hero-screenshot:hover {
    transform: perspective(1000px) rotateY(-2deg) rotateX(1deg) scale(1.02);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6), 0 0 0 10px rgba(255, 255, 255, 0.4);
}

.preview-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.preview-card {
    height: 80px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf0 100%);
    border-radius: 8px;
    border-left: 4px solid var(--pharma-primary);
}

.features-section {
    background: white;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--pharma-dark);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #6C757D;
}

.feature-card {
    text-align: center;
    padding: 2.5rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
    border-color: var(--pharma-primary);
}

.feature-card-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--pharma-primary) 0%, var(--pharma-secondary) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: white;
    box-shadow: 0 6px 20px rgba(0, 136, 204, 0.3);
    transition: all 0.3s;
}

.feature-card:hover .feature-card-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 24px rgba(0, 136, 204, 0.4);
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--pharma-dark);
    margin-bottom: 1rem;
}

.feature-card p {
    color: #6C757D;
    line-height: 1.6;
}

/* Testimonials Section */
.testimonials-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 6rem 0;
}

.testimonial-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.testimonial-rating {
    color: #FFC107;
    font-size: 1.2rem;
}

.testimonial-rating .fa-star {
    margin-right: 0.2rem;
}

.testimonial-text {
    color: #495057;
    font-size: 1.05rem;
    line-height: 1.8;
    font-style: italic;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 2px solid #E9ECEF;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pharma-primary) 0%, var(--pharma-secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
}

.testimonial-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.testimonial-info h5 {
    margin: 0;
    color: var(--pharma-dark);
    font-weight: 600;
    font-size: 1.1rem;
}

.testimonial-role {
    margin: 0.25rem 0 0 0;
    color: #6C757D;
    font-size: 0.9rem;
}

.cta-section {
    background: linear-gradient(135deg, var(--pharma-primary) 0%, var(--pharma-secondary) 100%);
    color: white;
    position: relative;
    overflow: hidden;
    padding: 7rem 0 !important;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
}

.cta-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

.cta-subtitle {
    font-size: 1.3rem;
    opacity: 0.95;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.cta-section .btn {
    background: white;
    color: var(--pharma-primary);
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    transition: all 0.3s;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
}

.cta-section .btn:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
    color: var(--pharma-primary);
}

.contact-section {
    background: #F8F9FA;
}

.contact-card {
    background: white;
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.contact-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 2rem;
    background: linear-gradient(135deg, var(--pharma-primary) 0%, var(--pharma-secondary) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    box-shadow: 0 8px 24px rgba(0, 136, 204, 0.3);
}

.contact-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--pharma-dark);
    margin-bottom: 1rem;
}

.contact-subtitle {
    font-size: 1.1rem;
    color: #6C757D;
    margin-bottom: 2rem;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    background: #F8F9FA;
    border-radius: 12px;
    transition: all 0.3s;
    height: 100%;
}

.contact-info-item:hover {
    background: linear-gradient(135deg, rgba(0, 136, 204, 0.05) 0%, rgba(0, 168, 89, 0.05) 100%);
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.contact-info-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--pharma-primary) 0%, var(--pharma-secondary) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.contact-info-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--pharma-dark);
    margin-bottom: 0.5rem;
}

.contact-info-content p {
    color: #6C757D;
    margin: 0;
    font-size: 1rem;
}

.contact-section .btn-outline-primary {
    border: 2px solid var(--pharma-primary);
    color: var(--pharma-primary);
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    transition: all 0.3s;
}

.contact-section .btn-outline-primary:hover {
    background: linear-gradient(135deg, var(--pharma-primary) 0%, var(--pharma-secondary) 100%);
    border-color: var(--pharma-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 136, 204, 0.3);
}

.landing-footer {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #6C757D;
    border-top: 1px solid #E9ECEF;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-section {
        padding: 3rem 0;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .cta-title {
        font-size: 2.5rem;
    }
    
    .cta-subtitle {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .landing-top-bar {
        top: 1rem;
        left: 1rem;
        right: 1rem;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .landing-top-logo {
        height: 40px;
        padding: 3px 6px;
    }
    
    .landing-top-right {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .landing-login-button .btn {
        font-size: 0.875rem;
        padding: 0.4rem 1rem;
    }
    
    .hero-section {
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.1;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
        line-height: 1.6;
    }
    
    .hero-features {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .feature-item {
        font-size: 1rem;
    }
    
    .feature-icon {
        font-size: 1.3rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .cta-section {
        padding: 4rem 0 !important;
    }
    
    .cta-title {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }
    
    .cta-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    
    .cta-section .btn {
        font-size: 1rem;
        padding: 0.875rem 2rem;
    }
    
    .cta-section .d-flex {
        gap: 1rem;
    }
    
    .hero-logo-container {
        padding: 1rem 1.5rem;
    }
    
    .hero-logo {
        max-width: 250px;
    }
    
    .hero-image {
        margin-top: 2rem;
    }
    
    .hero-screenshot {
        transform: none;
        max-width: 100%;
    }
    
    .hero-screenshot:hover {
        transform: none;
    }
    
    .testimonials-section {
        padding: 4rem 0;
    }
    
    .testimonial-card {
        padding: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .testimonial-text {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .testimonial-avatar {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .contact-section {
        padding: 4rem 0;
    }
    
    .contact-card {
        padding: 2rem;
    }
    
    .contact-title {
        font-size: 2rem;
    }
    
    .contact-subtitle {
        font-size: 1rem;
    }
    
    .contact-info-item {
        flex-direction: column;
        text-align: center;
        padding: 1.25rem;
    }
    
    .contact-info-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
        margin: 0 auto;
    }
    
    .contact-section .btn-outline-primary {
        width: 100%;
    }
    
    .contact-section .d-flex {
        gap: 1rem;
    }
    
    .feature-card {
        padding: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .feature-card-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
    
    .feature-card h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .landing-top-bar {
        top: 0.75rem;
        left: 0.75rem;
        right: 0.75rem;
        gap: 0.75rem;
    }
    
    .landing-top-logo {
        height: 35px;
        padding: 2px 4px;
    }
    
    .landing-language-selector .btn-link {
        font-size: 0.8rem;
        padding: 0.4rem 0.75rem;
    }
    
    .landing-login-button .btn {
        font-size: 0.8rem;
        padding: 0.35rem 0.875rem;
    }
    
    .hero-section {
        padding: 1.5rem 0;
    }
    
    .hero-title {
        font-size: 1.75rem;
        line-height: 1.1;
        margin-bottom: 0.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        line-height: 1.5;
    }
    
    .hero-features {
        gap: 0.75rem;
        margin-bottom: 1.25rem;
    }
    
    .feature-item {
        font-size: 0.9rem;
        gap: 0.5rem;
    }
    
    .feature-icon {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-subtitle {
        font-size: 0.95rem;
    }
    
    .cta-section {
        padding: 3rem 0 !important;
    }
    
    .cta-title {
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
    }
    
    .cta-subtitle {
        font-size: 1rem;
        margin-bottom: 1.25rem;
    }
    
    .cta-section .btn {
        font-size: 0.9rem;
        padding: 0.75rem 1.5rem;
    }
    
    .hero-logo-container {
        padding: 0.75rem 1.25rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-logo {
        max-width: 200px;
    }
    
    .testimonials-section {
        padding: 3rem 0;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .testimonial-text {
        font-size: 0.95rem;
    }
    
    .contact-section {
        padding: 3rem 0;
    }
    
    .contact-card {
        padding: 1.5rem;
    }
    
    .contact-title {
        font-size: 1.75rem;
    }
    
    .contact-subtitle {
        font-size: 0.95rem;
    }
    
    .contact-info-item {
        padding: 1rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .feature-card-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .feature-card h3 {
        font-size: 1.2rem;
    }
    
    .feature-card p {
        font-size: 0.9rem;
    }
    
    .hero-image {
        margin-top: 1.5rem;
    }
    
    .features-section {
        padding: 3rem 0;
    }
    
    .testimonials-section {
        padding: 2.5rem 0;
    }
}

/* Améliorations générales pour la responsivité */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .row {
        margin-left: -0.5rem;
        margin-right: -0.5rem;
    }
    
    .row > * {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .row {
        margin-left: -0.375rem;
        margin-right: -0.375rem;
    }
    
    .row > * {
        padding-left: 0.375rem;
        padding-right: 0.375rem;
    }
}

/* Dashboard Stat Cards */
.stat-card {
    background: var(--pharma-white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--pharma-border);
    transition: all 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--pharma-primary) 0%, var(--pharma-secondary) 100%);
}

.stat-card.success::before {
    background: var(--pharma-success-light);
}

.stat-card.info::before {
    background: var(--pharma-primary);
}

.stat-card.warning::before {
    background: var(--pharma-warning);
}

.stat-card.danger::before {
    background: var(--pharma-danger);
}

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

.stat-icon {
    font-size: 2.5rem;
    color: var(--pharma-primary);
    margin-bottom: 1rem;
    opacity: 0.8;
}

.stat-card.success .stat-icon {
    color: var(--pharma-success-light);
}

.stat-card.info .stat-icon {
    color: var(--pharma-primary);
}

.stat-card.warning .stat-icon {
    color: var(--pharma-warning);
}

.stat-card.danger .stat-icon {
    color: var(--pharma-danger);
}

.stat-label {
    font-size: 0.9rem;
    color: #6C757D;
    font-weight: 500;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--pharma-dark);
    line-height: 1.2;
}

.stat-sublabel {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #6C757D;
}

.stat-sublabel strong {
    color: var(--pharma-dark);
    font-weight: 600;
}

/* Pagination - liens actifs en blanc */
.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, var(--pharma-primary) 0%, var(--pharma-secondary) 100%) !important;
    border-color: var(--pharma-primary) !important;
    color: var(--pharma-white) !important;
}

.pagination .page-item.active .page-link:hover,
.pagination .page-item.active .page-link:focus {
    background: linear-gradient(135deg, var(--pharma-primary) 0%, var(--pharma-secondary) 100%) !important;
    border-color: var(--pharma-primary) !important;
    color: var(--pharma-white) !important;
}

/* Modal de détails d'achat - agrandir en largeur */
.modal-xl {
    max-width: 90% !important;
}

@media (min-width: 1200px) {
    .modal-xl {
        max-width: 1140px !important;
    }
}

@media (min-width: 1400px) {
    .modal-xl {
        max-width: 1300px !important;
    }
}

