/* 
 * UCARE pharmacy pages - charte graphique complète
 * compatible avec elementor et responsive design
 * VERSION CORRIGÉE : carte pleine largeur centrée
 */

:root {
    /* couleurs principales UCARE */
    --ucare-primary: #00B6B5;
    --ucare-primary-dark: #009190;
    --ucare-primary-light: #33c4c3;
    
    /* couleurs secondaires */
    --ucare-secondary: #fafbfb;
    --ucare-accent: #f8f9fa;
    --ucare-highlight-bg: #ffffff;
    
    /* couleurs zonales */
    --ucare-phnom-penh: #1976d2;
    --ucare-phnom-penh-light: #e3f2fd;
    --ucare-provinces: #388e3c;
    --ucare-provinces-light: #e8f5e8;
    
    /* couleurs d'action */
    --ucare-call: #4caf50;
    --ucare-call-light: #e8f5e8;
    --ucare-telegram: #2196f3;
    --ucare-telegram-light: #e3f2fd;
    
    /* couleurs utilitaires */
    --ucare-white: #ffffff;
    --ucare-grey-50: #fafafa;
    --ucare-grey-100: #f5f5f5;
    --ucare-grey-200: #eeeeee;
    --ucare-grey-300: #e0e0e0;
    --ucare-grey-700: #616161;
    --ucare-grey-900: #212121;
    
    /* typographie */
    --ucare-font-family: -apple-system, BlinkMacSystemFont, "segoe ui", roboto, "helvetica neue", arial, sans-serif;
    --ucare-font-size-xs: 0.75rem;
    --ucare-font-size-sm: 0.875rem;
    --ucare-font-size-base: 1rem;
    --ucare-font-size-lg: 1.125rem;
    --ucare-font-size-xl: 1.25rem;
    --ucare-font-size-2xl: 1.5rem;
    --ucare-font-size-3xl: 1.875rem;
    --ucare-font-size-4xl: 2.25rem;
    
    /* espacements */
    --ucare-spacing-xs: 0.25rem;
    --ucare-spacing-sm: 0.5rem;
    --ucare-spacing-md: 1rem;
    --ucare-spacing-lg: 1.5rem;
    --ucare-spacing-xl: 2rem;
    --ucare-spacing-2xl: 3rem;
    
    /* bordures */
    --ucare-border-radius-sm: 4px;
    --ucare-border-radius-md: 8px;
    --ucare-border-radius-lg: 12px;
    --ucare-border-radius-xl: 16px;
    
    /* ombres */
    --ucare-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --ucare-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --ucare-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --ucare-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* reset et base */
.ucare-pharmacy-page {
    font-family: var(--ucare-font-family);
    line-height: 1.6;
    color: var(--ucare-grey-900);
    background-color: var(--ucare-grey-50);
}

.ucare-pharmacy-page * {
    box-sizing: border-box;
}

/* hero section */
.ucare-hero-section {
    background: linear-gradient(135deg, #00B6B5 0%, #009190 100%) !important;
    color: var(--ucare-white);
    padding: var(--ucare-spacing-2xl) var(--ucare-spacing-lg);
    border-radius: var(--ucare-border-radius-lg);
    margin-bottom: var(--ucare-spacing-xl);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.ucare-hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 2px,
        rgba(255, 255, 255, 0.03) 2px,
        rgba(255, 255, 255, 0.03) 4px
    );
    animation: shimmer 20s linear infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.ucare-hero-title {
    font-size: var(--ucare-font-size-4xl);
    font-weight: 700;
    margin: 0 0 var(--ucare-spacing-md) 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

.ucare-hero-subtitle {
    font-size: var(--ucare-font-size-xl);
    opacity: 0.9;
    margin: 0;
    font-weight: 400;
    position: relative;
    z-index: 1;
}

/* sections principales */
.ucare-section {
    background: var(--ucare-white);
    border-radius: var(--ucare-border-radius-lg);
    padding: var(--ucare-spacing-2xl);
    margin-bottom: var(--ucare-spacing-lg);
    box-shadow: var(--ucare-shadow-md);
    border-left: 4px solid var(--ucare-primary);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ucare-section:hover {
    transform: translateY(-2px);
    box-shadow: var(--ucare-shadow-lg);
}

.ucare-section h2 {
    color: var(--ucare-primary);
    font-size: var(--ucare-font-size-2xl);
    font-weight: 600;
    margin: 0 0 var(--ucare-spacing-lg) 0;
    padding-bottom: var(--ucare-spacing-md);
    border-bottom: 2px solid var(--ucare-grey-200);
    position: relative;
}

.ucare-section h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--ucare-primary);
    border-radius: 1px;
}

.ucare-section h3 {
    color: var(--ucare-grey-900);
    font-size: var(--ucare-font-size-xl);
    font-weight: 500;
    margin: var(--ucare-spacing-lg) 0 var(--ucare-spacing-md) 0;
}

/* boîtes de mise en évidence */
.ucare-highlight-box {
    background: var(--ucare-highlight-bg);
    border: 1px solid var(--ucare-accent);
    border-radius: var(--ucare-border-radius-md);
    padding: var(--ucare-spacing-lg);
    margin: var(--ucare-spacing-lg) 0;
    position: relative;
}

.ucare-highlight-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--ucare-primary), var(--ucare-primary-light));
    border-radius: var(--ucare-border-radius-md) var(--ucare-border-radius-md) 0 0;
}

/* grilles de services */
.ucare-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--ucare-spacing-lg);
    margin: var(--ucare-spacing-lg) 0;
}

.ucare-service-item {
    background: #1976d2 !important;
    color: white !important;
    padding: var(--ucare-spacing-lg);
    border-radius: var(--ucare-border-radius-md);
    border-left: 4px solid #1565c0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.ucare-service-item h4 {
    color: white !important;
    font-size: var(--ucare-font-size-lg);
    font-weight: 600;
    margin: 0 0 var(--ucare-spacing-sm) 0;
    text-transform: capitalize;
}

.ucare-service-item p {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: var(--ucare-font-size-sm);
    margin: 0;
    line-height: 1.5;
}

/* grille de contact */
.ucare-contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--ucare-spacing-lg);
    margin: var(--ucare-spacing-lg) 0;
}

.ucare-contact-item {
    text-align: center;
    padding: var(--ucare-spacing-xl);
    background: var(--ucare-white);
    border-radius: var(--ucare-border-radius-lg);
    border: 1px solid var(--ucare-grey-200);
    transition: all 0.3s ease;
    position: relative;
}

.ucare-contact-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--ucare-shadow-lg);
    border-color: var(--ucare-primary);
}

.ucare-contact-icon {
    font-size: 2.5rem;
    color: var(--ucare-primary);
    margin-bottom: var(--ucare-spacing-md);
    display: block;
}

.ucare-contact-item h4 {
    color: var(--ucare-grey-900);
    font-size: var(--ucare-font-size-lg);
    font-weight: 600;
    margin: 0 0 var(--ucare-spacing-sm) 0;
}

.ucare-contact-item p {
    color: var(--ucare-grey-700);
    font-size: var(--ucare-font-size-sm);
    margin: 0;
    line-height: 1.4;
}

/* CORRECTION CARTE - OPTION 3: CARTE INTÉGRÉE AVEC BORDURES */
.ucare-full-width-map {
    /* Annule tous les styles de pleine largeur existants */
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: auto !important;
    position: static !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    
    /* Nouveaux styles intégrés */
    background: #f8fafa;
    border-radius: var(--ucare-border-radius-lg);
    border-left: 4px solid var(--ucare-primary);
    padding: var(--ucare-spacing-2xl);
    margin: var(--ucare-spacing-2xl) 0;
    box-shadow: var(--ucare-shadow-md);
    transition: all 0.3s ease;
}

.ucare-full-width-map:hover {
    transform: translateY(-2px);
    box-shadow: var(--ucare-shadow-lg);
}

/* Style du contenu de la carte */
.ucare-full-width-map .ucare-map-content {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
}

/* Titre de la section carte */
.ucare-full-width-map h2 {
    color: var(--ucare-primary);
    text-align: center;
    margin-bottom: var(--ucare-spacing-lg);
    font-size: var(--ucare-font-size-2xl);
    font-weight: 600;
}

/* Texte descriptif */
.ucare-full-width-map p {
    text-align: center;
    color: var(--ucare-grey-700);
    margin-bottom: var(--ucare-spacing-xl);
    font-style: italic;
    font-size: var(--ucare-font-size-lg);
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: var(--ucare-spacing-xl);
}

/* Container de la carte avec effets visuels */
.ucare-full-width-map [class*="ucare_individual_locator"],
.ucare-full-width-map .ucare-locator-container,
.ucare-full-width-map .ucare-individual-locator {
    border-radius: var(--ucare-border-radius-md);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--ucare-grey-300);
    transition: all 0.3s ease;
    background: var(--ucare-white);
    margin: var(--ucare-spacing-lg) 0;
}

/* Effet hover sur la carte */
.ucare-full-width-map [class*="ucare_individual_locator"]:hover,
.ucare-full-width-map .ucare-locator-container:hover,
.ucare-full-width-map .ucare-individual-locator:hover {
    box-shadow: 0 6px 30px rgba(0, 182, 181, 0.15);
    border-color: var(--ucare-primary);
    transform: translateY(-2px);
}

/* Styles pour les iframes de cartes */
.ucare-full-width-map iframe {
    border-radius: var(--ucare-border-radius-sm);
    transition: filter 0.3s ease;
}

.ucare-full-width-map:hover iframe {
    filter: brightness(1.05);
}


/* Corrections pour shortcodes dans la section */
.ucare-full-width-map .ucare-pharmacy-card {
    max-width: 100% !important;
    margin: 0 !important;
    border-radius: var(--ucare-border-radius-md);
}

.ucare-full-width-map .ucare-individual-map-container {
    width: 100% !important;
    margin: var(--ucare-spacing-lg) 0 !important;
}

.ucare-full-width-map .ucare-individual-map {
    width: 100% !important;
    border-radius: var(--ucare-border-radius-md) !important;
}

/* Responsive design */
@media (max-width: 768px) {
    .ucare-full-width-map {
        padding: var(--ucare-spacing-xl) var(--ucare-spacing-lg);
        margin: var(--ucare-spacing-xl) 0;
        border-radius: var(--ucare-border-radius-md);
    }
    
    .ucare-full-width-map h2 {
        font-size: var(--ucare-font-size-xl);
    }
    
    .ucare-full-width-map p {
        font-size: var(--ucare-font-size-base);
        margin-bottom: var(--ucare-spacing-lg);
    }
    
    .ucare-full-width-map [class*="ucare_individual_locator"],
    .ucare-full-width-map .ucare-locator-container,
    .ucare-full-width-map .ucare-individual-locator {
        border-radius: var(--ucare-border-radius-sm);
        box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    }
    
    .ucare-full-width-map::before {
        left: 20px;
        top: -12px;
        width: 24px;
        height: 24px;
        font-size: 12px;
    }
}

/* Supprime toutes les corrections de thèmes pour la pleine largeur */
.elementor-widget-container .ucare-full-width-map,
.wp-block-group .ucare-full-width-map,
.content-area .ucare-full-width-map,
.site-content .ucare-full-width-map,
.site-inner .ucare-full-width-map,
.wrap .ucare-full-width-map,
.ast-container .ucare-full-width-map,
.container .ucare-full-width-map,
.inside-article .ucare-full-width-map {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: auto !important;
    position: static !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
}