/* ==========================================================================
   Annuaire des Pharmacies - Redesigned Page Styles
   ========================================================================== */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Playfair+Display:wght@400;500;600;700&display=swap');

:root {
    --pharma-primary: #202B6D;
    --pharma-secondary: #2F4ACD;
    --pharma-accent: #A7DBEE;
    --pharma-coral: #F75C48;
    --pharma-yellow: #F5C842;
    --pharma-light: #F8FAFB;
    --pharma-white: #ffffff;
    --pharma-text: #4A5568;
    --pharma-dark: #131A45;
}

/* ==========================================================================
   Header Styles
   ========================================================================== */
.pharma-topbar {
    background: #F5E6E0;
    padding: 10px 20px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 30px;
}

.pharma-topbar-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    color: var(--pharma-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.pharma-topbar-item:hover {
    color: var(--pharma-coral);
}

.pharma-header {
    background: var(--pharma-primary);
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pharma-logo img {
    height: 45px;
    width: auto;
}

.pharma-nav {
    display: flex;
    align-items: center;
    gap: 40px;
}

.pharma-nav-link {
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: var(--pharma-white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.pharma-nav-link:hover {
    color: var(--pharma-accent);
}

.pharma-cta-btn {
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--pharma-primary);
    background: var(--pharma-yellow);
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pharma-cta-btn:hover {
    background: #e5b832;
    transform: translateY(-2px);
}

/* ==========================================================================
   Hero Section - Split Screen Design
   ========================================================================== */
.annuaire-hero-split {
    background: linear-gradient(135deg, var(--pharma-primary) 0%, var(--pharma-dark) 100%);
    min-height: 85vh;
    display: flex;
    align-items: center;
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.annuaire-hero-split::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(167, 219, 238, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.annuaire-hero-split::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -150px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(245, 200, 66, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-split-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* Left Content */
.hero-split-content {
    padding-right: 20px;
}

.annuaire-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.annuaire-breadcrumb a {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.annuaire-breadcrumb a:hover {
    color: var(--pharma-yellow);
}

.annuaire-breadcrumb .separator {
    color: rgba(255, 255, 255, 0.5);
    font-size: 10px;
}

.annuaire-breadcrumb .current {
    color: var(--pharma-yellow);
    font-weight: 600;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
}

.hero-split-title {
    font-family: 'Playfair Display', serif;
    font-size: 52px;
    font-weight: 700;
    color: var(--pharma-white);
    margin: 0 0 25px;
    line-height: 1.15;
}

.hero-split-title .title-accent {
    color: var(--pharma-yellow);
}

.hero-split-subtitle {
    font-family: 'DM Sans', sans-serif;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin: 0 0 35px;
    max-width: 500px;
}

/* Hero Search */
.hero-search-wrapper {
    margin-bottom: 40px;
}

.hero-search-box {
    display: flex;
    align-items: center;
    background: var(--pharma-white);
    border-radius: 60px;
    padding: 8px 8px 8px 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    max-width: 520px;
}

.hero-search-box i {
    color: var(--pharma-primary);
    font-size: 18px;
    margin-right: 12px;
}

.hero-search-box input {
    flex: 1;
    border: none;
    background: transparent;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    color: var(--pharma-primary);
    outline: none;
}

.hero-search-box input::placeholder {
    color: #94a3b8;
}

.hero-search-box .search-btn {
    background: var(--pharma-yellow);
    color: var(--pharma-primary);
    border: none;
    padding: 14px 28px;
    border-radius: 50px;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-search-box .search-btn:hover {
    background: #e5b832;
    transform: translateY(-2px);
}

.search-hint {
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
    margin-top: 12px;
}

/* Quick Stats */
.hero-quick-stats {
    display: flex;
    gap: 40px;
}

.quick-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.quick-stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--pharma-accent);
}

.quick-stat-label {
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Right Visual */
.hero-split-visual {
    position: relative;
}

.hero-visual-wrapper {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.3);
}

.hero-visual-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

.hero-floating-card {
    position: absolute;
    bottom: 30px;
    left: -30px;
    background: var(--pharma-white);
    border-radius: 16px;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    animation: floatCard 4s ease-in-out infinite;
}

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

.floating-card-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--pharma-secondary) 0%, var(--pharma-accent) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-card-icon i {
    font-size: 20px;
    color: var(--pharma-white);
}

.floating-card-title {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--pharma-primary);
    display: block;
}

.floating-card-text {
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    color: #22c55e;
    display: block;
}

/* ==========================================================================
   Pharmacies Grid Section
   ========================================================================== */
.annuaire-pharmacies-grid {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    padding: 100px 20px;
}

.pharmacies-grid-container {
    max-width: 1400px;
    margin: 0 auto;
}

.pharmacies-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 50px;
    flex-wrap: wrap;
    gap: 30px;
}

.section-header-left {
    max-width: 600px;
}

.section-badge-pill {
    display: inline-block;
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: var(--pharma-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
    padding: 8px 16px;
    background: rgba(47, 74, 205, 0.1);
    border-radius: 30px;
}

.section-badge-pill.light {
    background: rgba(255, 255, 255, 0.15);
    color: var(--pharma-white);
}

.section-badge-pill.dark {
    background: var(--pharma-primary);
    color: var(--pharma-white);
}

.section-title-large {
    font-family: 'Playfair Display', serif;
    font-size: 44px;
    font-weight: 700;
    color: var(--pharma-primary);
    margin: 0 0 12px;
    line-height: 1.2;
}

.section-subtitle-text {
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    color: #64748b;
    margin: 0;
}

/* Carousel Navigation */
.carousel-nav {
    display: flex;
    gap: 15px;
}

.carousel-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid var(--pharma-primary);
    background: transparent;
    color: var(--pharma-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.carousel-btn:hover {
    background: var(--pharma-primary);
    color: var(--pharma-white);
    transform: scale(1.05);
}

/* Carousel */
.pharmacies-carousel-wrapper {
    overflow: hidden;
    margin: 0 -15px;
    padding: 0 15px;
}

.pharmacies-carousel-track {
    display: flex;
    gap: 30px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* New Pharmacy Card */
.pharmacy-card-new {
    flex: 0 0 calc(33.333% - 20px);
    min-width: calc(33.333% - 20px);
    background: var(--pharma-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #f1f5f9;
    opacity: 0;
    transform: translateY(20px);
}

.pharmacy-card-new.visible {
    opacity: 1;
    transform: translateY(0);
}

.pharmacy-card-new:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(32, 43, 109, 0.15);
}

.pharmacy-card-new .pharmacy-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.pharmacy-card-new .pharmacy-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.pharmacy-card-new:hover .pharmacy-card-image img {
    transform: scale(1.08);
}

.pharmacy-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.5));
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.pharmacy-location-tag {
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: var(--pharma-white);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 6px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.pharmacy-location-tag i {
    font-size: 10px;
}

.pharmacy-status-tag {
    font-family: 'DM Sans', sans-serif;
    font-size: 11px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pharmacy-status-tag.busy {
    background: rgba(245, 158, 11, 0.9);
    color: var(--pharma-white);
}

.pharmacy-status-tag .status-dot {
    width: 6px;
    height: 6px;
    background: var(--pharma-white);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.pharmacy-card-body {
    padding: 24px;
}

.pharmacy-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.rating-stars {
    display: flex;
    gap: 2px;
}

.rating-stars i {
    font-size: 12px;
    color: #fbbf24;
}

.rating-count {
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
}

.pharmacy-card-new .pharmacy-card-name {
    font-family: 'DM Sans', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--pharma-primary);
    margin: 0 0 6px;
}

.pharmacy-card-region {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    color: #64748b;
    margin: 0 0 16px;
}

.pharmacy-card-features {
    margin-bottom: 20px;
}

.feature-tag {
    font-family: 'DM Sans', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: var(--pharma-secondary);
    background: rgba(47, 74, 205, 0.08);
    padding: 6px 12px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.feature-tag i {
    font-size: 10px;
}

.pharmacy-card-new .pharmacy-card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--pharma-white);
    background: #2F4ACD;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pharmacy-card-new .pharmacy-card-btn:hover {
    background: #202B6D;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(47, 74, 205, 0.4);
}

.pharmacy-card-new .pharmacy-card-btn i {
    font-size: 11px;
    transition: transform 0.3s ease;
}

.pharmacy-card-new .pharmacy-card-btn:hover i {
    transform: translateX(3px);
}

/* ==========================================================================
   Map Section - Split Layout
   ========================================================================== */
.annuaire-map-section {
    background: var(--pharma-primary);
    padding: 100px 20px;
    position: relative;
    overflow: hidden;
}

.annuaire-map-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(167, 219, 238, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.map-section-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.map-content-wrapper {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.map-info-panel {
    padding-right: 20px;
}

.map-section-title {
    font-family: 'Playfair Display', serif;
    font-size: 38px;
    font-weight: 700;
    color: var(--pharma-white);
    margin: 0 0 20px;
    line-height: 1.25;
}

.map-section-text {
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
    margin: 0 0 30px;
}

.map-search-wrapper {
    margin-bottom: 30px;
}

.map-search-box {
    display: flex;
    align-items: center;
    background: var(--pharma-white);
    border-radius: 12px;
    padding: 14px 18px;
    max-width: 300px;
}

.map-search-box i {
    color: #94a3b8;
    font-size: 14px;
    margin-right: 12px;
}

.map-search-box input {
    flex: 1;
    border: none;
    background: transparent;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    color: var(--pharma-primary);
    outline: none;
}

.map-search-box input::placeholder {
    color: #94a3b8;
}

.map-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--pharma-primary);
    background: var(--pharma-yellow);
    padding: 16px 32px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.map-cta-btn:hover {
    background: #e5b832;
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(245, 200, 66, 0.3);
}

.map-cta-btn i {
    transition: transform 0.3s ease;
}

.map-cta-btn:hover i {
    transform: translateX(5px);
}

.map-visual-panel {
    position: relative;
}

.map-wrapper {
    background: var(--pharma-white);
    border-radius: 20px;
    overflow: hidden;
    min-height: 500px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.map-wrapper .flourish-embed {
    width: 100%;
    min-height: 500px;
}


/* ==========================================================================
   Statistics Section - Modern Cards
   ========================================================================== */
.annuaire-stats-section {
    background: linear-gradient(180deg, #f0f4f8 0%, #ffffff 100%);
    padding: 100px 20px;
}

.stats-section-container {
    max-width: 1200px;
    margin: 0 auto;
}

.stats-header {
    text-align: center;
    margin-bottom: 60px;
}

.stats-section-title {
    font-family: 'Playfair Display', serif;
    font-size: 44px;
    font-weight: 700;
    color: var(--pharma-primary);
    margin: 0;
    line-height: 1.2;
}

.stats-cards-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.stat-card-modern {
    position: relative;
    border-radius: 24px;
    padding: 45px 35px;
    text-align: center;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(30px);
}

.stat-card-modern.visible {
    opacity: 1;
    transform: translateY(0);
}

.stat-card-modern:hover {
    transform: translateY(-10px);
}

.stat-card-modern.primary {
    background: linear-gradient(135deg, var(--pharma-primary) 0%, #2a3a8a 100%);
}

.stat-card-modern.secondary {
    background: linear-gradient(135deg, var(--pharma-coral) 0%, #ff8578 100%);
}

.stat-card-modern.accent {
    background: linear-gradient(135deg, #0099cc 0%, #00c9ff 100%);
}

.stat-card-inner {
    position: relative;
    z-index: 2;
}

.stat-icon-wrap {
    font-size: 44px;
    color: var(--pharma-white);
    margin-bottom: 20px;
    opacity: 0.9;
}

.stat-data {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    margin-bottom: 12px;
}

.stat-number-large {
    font-family: 'Playfair Display', serif;
    font-size: 60px;
    font-weight: 700;
    color: var(--pharma-white);
    line-height: 1;
}

.stat-prefix,
.stat-unit {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--pharma-white);
}

.stat-description {
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.stat-card-bg {
    position: absolute;
    bottom: -40px;
    right: -40px;
    width: 140px;
    height: 140px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.stats-cta-wrapper {
    text-align: center;
}

.stats-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--pharma-primary);
    background: var(--pharma-yellow);
    padding: 18px 40px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.stats-cta-btn:hover {
    background: #e5b832;
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(245, 200, 66, 0.4);
}

.stats-cta-btn i {
    transition: transform 0.3s ease;
}

.stats-cta-btn:hover i {
    transform: translateX(5px);
}

/* ==========================================================================
   Certifications Section
   ========================================================================== */
.annuaire-certifications {
    background: var(--pharma-accent);
    padding: 80px 20px;
    overflow: hidden;
}

.certifications-container {
    max-width: 1200px;
    margin: 0 auto;
}

.certifications-header {
    text-align: center;
    margin-bottom: 50px;
}

.certifications-title {
    font-family: 'Playfair Display', serif;
    font-size: 40px;
    font-weight: 700;
    color: var(--pharma-primary);
    margin: 0;
}

.certifications-marquee {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
}

.certifications-marquee::before,
.certifications-marquee::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 150px;
    z-index: 2;
    pointer-events: none;
}

.certifications-marquee::before {
    left: 0;
    background: linear-gradient(90deg, var(--pharma-accent) 0%, transparent 100%);
}

.certifications-marquee::after {
    right: 0;
    background: linear-gradient(-90deg, var(--pharma-accent) 0%, transparent 100%);
}

.certifications-track {
    display: flex;
    gap: 30px;
    animation: marquee 40s linear infinite;
    width: max-content;
}

.cert-logo {
    flex-shrink: 0;
    width: 180px;
    height: 120px;
    background: var(--pharma-white);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.cert-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.cert-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */
@media (max-width: 1200px) {
    .hero-split-container {
        gap: 50px;
    }

    .hero-split-title {
        font-size: 44px;
    }

    .map-content-wrapper {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 1024px) {
    .hero-split-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .hero-split-content {
        padding-right: 0;
        text-align: center;
    }

    .annuaire-breadcrumb {
        justify-content: center;
    }

    .hero-split-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-search-box {
        margin: 0 auto;
    }

    .hero-quick-stats {
        justify-content: center;
    }

    .hero-split-visual {
        max-width: 600px;
        margin: 0 auto;
    }

    .hero-floating-card {
        left: 20px;
    }

    .pharmacy-card-new {
        flex: 0 0 calc(50% - 15px);
        min-width: calc(50% - 15px);
    }

    .map-content-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .map-info-panel {
        padding-right: 0;
        text-align: center;
    }

    .map-search-box {
        margin: 0 auto 30px;
    }

    .stats-cards-wrapper {
        gap: 20px;
    }

    .stat-number-large {
        font-size: 50px;
    }
}

@media (max-width: 768px) {
    .pharma-topbar {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .pharma-header {
        flex-direction: column;
        padding: 15px 20px;
        gap: 15px;
    }

    .pharma-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .annuaire-hero-split {
        min-height: auto;
        padding: 60px 0;
    }

    .hero-split-container {
        padding: 0 20px;
    }

    .hero-split-title {
        font-size: 34px;
    }

    .hero-split-subtitle {
        font-size: 16px;
    }

    .hero-search-box {
        flex-direction: column;
        padding: 16px;
        border-radius: 20px;
        gap: 12px;
    }

    .hero-search-box input {
        width: 100%;
        text-align: center;
    }

    .hero-search-box i {
        display: none;
    }

    .hero-search-box .search-btn {
        width: 100%;
    }

    .hero-quick-stats {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

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

    .pharmacies-section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .section-title-large {
        font-size: 32px;
    }

    .pharmacy-card-new {
        flex: 0 0 calc(50% - 15px);
        min-width: calc(50% - 15px);
    }

    .carousel-btn {
        width: 48px;
        height: 48px;
        font-size: 16px;
    }

    .map-section-title {
        font-size: 28px;
    }

    .stats-section-title {
        font-size: 32px;
    }

    .stats-cards-wrapper {
        grid-template-columns: 1fr;
    }

    .stat-card-modern {
        padding: 35px 25px;
    }

    .stat-number-large {
        font-size: 48px;
    }

    .certifications-title {
        font-size: 30px;
    }
}

@media (max-width: 480px) {
    .hero-split-title {
        font-size: 28px;
    }

    .pharmacy-card-new {
        flex: 0 0 100%;
        min-width: 100%;
    }

    .section-title-large {
        font-size: 26px;
    }

    .map-section-title {
        font-size: 24px;
    }

    .stats-section-title {
        font-size: 26px;
    }

    .stat-number-large {
        font-size: 42px;
    }

    .stat-prefix,
    .stat-unit {
        font-size: 22px;
    }

    .stats-cta-btn {
        padding: 16px 30px;
        font-size: 14px;
        width: 100%;
        justify-content: center;
    }

    .cert-logo {
        width: 140px;
        height: 100px;
        padding: 12px;
    }

    .certifications-marquee::before,
    .certifications-marquee::after {
        width: 50px;
    }
}
