/* RGPD Google Maps - Styles inspirés iOS */

.rgpd-google-maps-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rgpd-consent-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    animation: fadeInUp 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.rgpd-consent-content {
    max-width: 500px;
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* Icône */
.rgpd-consent-icon i,
.rgpd-consent-icon svg {
    width: 1em;
    height: 1em;
}

/* Image */
.rgpd-consent-image {
    display: block;
    margin: 0 auto 20px;
    max-width: 100%;
    height: auto;
}

.rgpd-consent-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Titre */
.rgpd-consent-title {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #1C1C1E;
    margin: 0 0 15px;
    letter-spacing: -0.3px;
}

/* Message */
.rgpd-consent-message {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #3C3C43;
    margin: 0 0 30px;
}

.rgpd-consent-message p {
    margin: 0 0 10px;
}

.rgpd-consent-message p:last-child {
    margin-bottom: 0;
}

/* Bouton style iOS */
.rgpd-consent-button {
    display: inline-block;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 17px;
    font-weight: 600;
    color: #FFFFFF;
    background: linear-gradient(135deg, #007AFF 0%, #0051D5 100%);
    border: none;
    border-radius: 14px;
    padding: 16px 32px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
    position: relative;
    overflow: hidden;
    letter-spacing: -0.2px;
}

.rgpd-consent-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.rgpd-consent-button:hover::before {
    left: 100%;
}

.rgpd-consent-button:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 122, 255, 0.4);
}

.rgpd-consent-button:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.3);
}

/* État de chargement */
.rgpd-consent-button.loading {
    pointer-events: none;
    opacity: 0.8;
}

.rgpd-consent-button.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spinner 0.8s linear infinite;
}

@keyframes spinner {
    to { transform: rotate(360deg); }
}

/* Carte Google Maps */
.elementor-custom-embed {
    width: 100%;
    height: 100%;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.elementor-custom-embed iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Responsive */
@media (max-width: 767px) {
    .rgpd-consent-container {
        padding: 15px;
    }
    
    .rgpd-consent-content {
        padding: 30px 20px;
    }
    
    .rgpd-consent-title {
        font-size: 20px;
    }
    
    .rgpd-consent-message {
        font-size: 14px;
    }
    
    .rgpd-consent-button {
        font-size: 15px;
        padding: 14px 24px;
        width: 100%;
        max-width: 280px;
    }
    
    .rgpd-consent-image {
        max-width: 200px;
    }
}

/* Mode sombre automatique */
@media (prefers-color-scheme: dark) {
    .elementor-element.elementor-element-edit-mode .rgpd-consent-container {
        background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    }
    
    .elementor-element.elementor-element-edit-mode .rgpd-consent-title {
        color: #F2F2F7;
    }
    
    .elementor-element.elementor-element-edit-mode .rgpd-consent-message {
        color: #C7C7CC;
    }
}

/* Animation d'apparition de la carte */
.rgpd-map-reveal {
    animation: mapReveal 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes mapReveal {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Style pour l'édition Elementor */
.elementor-editor-active .rgpd-google-maps-container {
    min-height: 300px;
}

/* Amélioration de l'accessibilité */
.rgpd-consent-button:focus {
    outline: 3px solid rgba(0, 122, 255, 0.5);
    outline-offset: 2px;
}

.rgpd-consent-button:focus:not(:focus-visible) {
    outline: none;
}

/* Support pour les navigateurs qui ne supportent pas backdrop-filter */
@supports not (backdrop-filter: blur(20px)) {
    .rgpd-consent-container {
        background: rgba(247, 248, 250, 0.98);
    }
}