/* ==========================================================================
   Google Maps RGPD Widget Styles
   ========================================================================== */

.google-maps-rgpd-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Placeholder de consentement */
.maps-consent-placeholder {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    height: 100%;
    min-height: 300px;
    padding: 40px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
    transition: all 0.3s ease;
}

/* Superposition optionnelle */
.maps-consent-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.maps-consent-content {
    max-width: 500px;
    width: 100%;
    position: relative;
    z-index: 1;
}

/* Icône */
.maps-consent-icon {
    font-size: 48px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.maps-consent-icon i {
    font-size: inherit;
}

/* Titre */
.maps-consent-title {
    margin: 0 0 15px 0;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.2;
}

/* Message */
.maps-consent-message {
    margin: 0 0 25px 0;
    opacity: 0.9;
    line-height: 1.5;
    font-size: 16px;
}

/* Bouton */
.maps-consent-button {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.maps-consent-button:hover {
    background: white;
    color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.maps-consent-button:active {
    transform: translateY(0);
}

.maps-consent-button:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* Disclaimer */
.maps-consent-disclaimer {
    margin: 15px 0 0 0;
    font-size: 12px;
    opacity: 0.7;
    line-height: 1.4;
}

/* Carte chargée */
.maps-consent-map {
    width: 100%;
    height: 100%;
    position: relative;
}

.maps-consent-map iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
    display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
    .maps-consent-placeholder {
        padding: 30px 15px;
        min-height: 250px;
    }
    
    .maps-consent-icon {
        font-size: 40px;
        margin-bottom: 15px;
    }
    
    .maps-consent-title {
        font-size: 20px;
        margin-bottom: 12px;
    }
    
    .maps-consent-message {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .maps-consent-button {
        padding: 10px 24px;
        font-size: 14px;
    }
    
    .maps-consent-disclaimer {
        font-size: 11px;
        margin-top: 12px;
    }
}

@media (max-width: 480px) {
    .maps-consent-placeholder {
        padding: 25px 15px;
        min-height: 220px;
    }
    
    .maps-consent-content {
        max-width: 100%;
    }
    
    .maps-consent-icon {
        font-size: 36px;
        margin-bottom: 12px;
    }
    
    .maps-consent-title {
        font-size: 18px;
        margin-bottom: 10px;
    }
    
    .maps-consent-message {
        font-size: 13px;
        margin-bottom: 18px;
    }
    
    .maps-consent-button {
        padding: 9px 20px;
        font-size: 13px;
        border-radius: 40px;
    }
}

/* États spéciaux */
.maps-consent-placeholder.loading {
    opacity: 0.7;
    pointer-events: none;
}

.maps-consent-placeholder.loading .maps-consent-button {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Animation de chargement optionnelle */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.maps-consent-placeholder.loading .maps-consent-icon {
    animation: pulse 2s infinite;
}

/* Accessibilité */
@media (prefers-reduced-motion: reduce) {
    .maps-consent-placeholder,
    .maps-consent-map,
    .maps-consent-button {
        transition: none;
    }
    
    .maps-consent-placeholder.loading .maps-consent-icon {
        animation: none;
    }
}

/* Mode sombre */
@media (prefers-color-scheme: dark) {
    .maps-consent-placeholder {
        background: linear-gradient(135deg, #4c1d95 0%, #5b21b6 100%);
    }
    
    .maps-consent-button:hover {
        color: #4c1d95;
    }
}

/* Styles pour l'éditeur Elementor */
.elementor-editor-active .maps-consent-placeholder {
    min-height: 200px;
}

.elementor-editor-active .maps-consent-button {
    pointer-events: none;
}

/* RTL Support */
[dir="rtl"] .maps-consent-content {
    text-align: center;
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .maps-consent-placeholder {
        background: #000;
        border: 2px solid #fff;
    }
    
    .maps-consent-button {
        background: #fff;
        color: #000;
        border-color: #fff;
    }
    
    .maps-consent-button:hover {
        background: #000;
        color: #000;
    }
}