/**
 * Styles CSS UNIQUEMENT pour la version embed
 * AUCUNE duplication avec map-styles.css !
 */

/* Structure HTML spécifique embed */
body { 
  margin: 0; 
  padding: 0; 
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #f8f9fa;
  height: 100vh;
  overflow: hidden;
}

.embed-container {
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Header avec boutons */
.embed-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 8px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.embed-title {
  font-size: 1.1em;
  font-weight: 600;
  margin: 0;
}

.embed-actions {
  display: flex;
  gap: 8px;
}

.embed-btn {
  background: rgba(255,255,255,0.2);
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: background 0.3s ease;
}

.embed-btn:hover {
  background: rgba(255,255,255,0.3);
  color: white;
}

/* Adaptations spécifiques embed */
.certified-students-map-container { 
  margin: 0; 
  border-radius: 0; 
  box-shadow: none; 
  flex: 1;
  display: flex;
  flex-direction: column;
}

#certified-students-map { 
  flex: 1; 
  height: auto !important; 
  min-height: 400px;
}

/* Masquer les stats en embed */
.map-summary { 
  display: none !important; 
}

/* EMBED : Espacement amélioré pour l'encart filtres */
/* Couvre MOBILE + DESKTOP RÉDUIT (≤800px selon isMobile JS) */
@media (max-width: 800px) {
  .mobile-filters-container {
    margin: 15px 0 !important; /* Plus d'espacement vertical */
  }

  .mobile-filters-container .formation-layers-control {
    width: 100% !important; /* UX optimale : utilise tout l'espace */
    max-width: none !important; /* Override max-width: 300px de map-styles.css */
    min-width: auto !important; /* Override min-width: 220px aussi */
    margin: 0 !important;
    border-radius: 8px !important; /* Plus joli en embed */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12) !important; /* Shadow plus douce */
  }
}

/* FIX : Override des media queries mobile qui cassent l'alignement en embed */
.formation-layers-control .layer-checkbox {
  display: flex !important;
  align-items: center !important;
  width: auto !important;
  margin: 8px 0 !important;
  vertical-align: initial !important;
}

.formation-layers-control .layer-checkbox label {
  display: flex !important;
  align-items: center !important;
  font-size: 14px !important;
} 