/* ═══════════════════════════════════════════════════════════
   EtherikMind — Bannière de consentement cookies (RGPD/CNIL)
   Chargée sur toutes les pages. Namespace .em-cc- pour ne rien
   entrer en collision avec le reste du thème.
═══════════════════════════════════════════════════════════ */

#em-cc-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 99999;
  background: #100D08;
  border-top: 1px solid rgba(224,152,32,0.35);
  padding: 20px 24px;
  font-family: 'Outfit', system-ui, sans-serif;
  box-shadow: 0 -8px 30px rgba(0,0,0,0.35);
  transform: translateY(110%);
  transition: transform .45s cubic-bezier(0.16,1,0.3,1);
}
#em-cc-banner.em-cc-visible { transform: translateY(0); }
#em-cc-banner[hidden] { display: none; }

.em-cc-in {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
}
.em-cc-text { flex: 1 1 380px; min-width: 240px; }
.em-cc-text p {
  margin: 0; font-size: 13.5px; line-height: 1.6;
  color: rgba(253,250,245,0.72); font-weight: 300;
}
.em-cc-text a {
  color: #E09820; text-decoration: none; border-bottom: 1px solid rgba(224,152,32,0.4);
}
.em-cc-text a:hover { color: #FFD050; }

.em-cc-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.em-cc-btn {
  font-family: 'Outfit', system-ui, sans-serif; font-size: 13px; font-weight: 500;
  letter-spacing: .01em; padding: 11px 22px; border-radius: 50px; cursor: pointer;
  border: 1px solid rgba(224,152,32,0.4); background: transparent; color: #FDFAF5;
  transition: all .25s cubic-bezier(0.16,1,0.3,1); white-space: nowrap;
}
.em-cc-btn:hover { border-color: #E09820; color: #FFD050; }
.em-cc-btn.em-cc-accept {
  background: #FFD050; border-color: #FFD050; color: #0E0B06;
}
.em-cc-btn.em-cc-accept:hover { background: #FFDE7A; box-shadow: 0 6px 18px rgba(224,152,32,.25); }
.em-cc-btn.em-cc-settings { border-color: transparent; text-decoration: underline; text-underline-offset: 3px; padding: 11px 6px; }

/* ── Panneau "Personnaliser" ── */
#em-cc-panel {
  position: fixed; inset: 0; z-index: 100000;
  background: rgba(14,11,6,0.72); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
#em-cc-panel[hidden] { display: none; }
.em-cc-panel-card {
  background: #17130D; border: 1px solid rgba(224,152,32,0.42); border-radius: 20px;
  max-width: 480px; width: 100%; padding: 32px; font-family: 'Outfit', system-ui, sans-serif;
}
.em-cc-panel-card h3 {
  font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 500; font-size: 22px;
  color: #FDFAF5; margin: 0 0 16px;
}
.em-cc-row {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 16px 0; border-bottom: 1px solid rgba(224,152,32,0.18);
}
.em-cc-row:last-of-type { border-bottom: none; }
.em-cc-row-txt strong { display: block; font-size: 14px; color: #FDFAF5; margin-bottom: 4px; }
.em-cc-row-txt span { display: block; font-size: 12.5px; line-height: 1.5; color: rgba(253,250,245,0.55); }

.em-cc-switch { position: relative; flex-shrink: 0; width: 42px; height: 24px; }
.em-cc-switch input { opacity: 0; width: 0; height: 0; }
.em-cc-switch .em-cc-slider {
  position: absolute; inset: 0; background: rgba(253,250,245,0.15); border-radius: 50px;
  cursor: pointer; transition: background .25s;
}
.em-cc-switch .em-cc-slider::before {
  content: ''; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px;
  background: #FDFAF5; border-radius: 50%; transition: transform .25s;
}
.em-cc-switch input:checked + .em-cc-slider { background: #E09820; }
.em-cc-switch input:checked + .em-cc-slider::before { transform: translateX(18px); }
.em-cc-switch input:disabled + .em-cc-slider { opacity: .5; cursor: not-allowed; }

.em-cc-panel-actions { display: flex; gap: 10px; margin-top: 24px; }
.em-cc-panel-actions .em-cc-btn { flex: 1; text-align: center; }

@media (max-width: 560px) {
  .em-cc-in { flex-direction: column; align-items: stretch; }
  .em-cc-actions { justify-content: stretch; }
  .em-cc-btn { flex: 1; text-align: center; }
}

/* Lien "Gérer les cookies" réutilisé dans les footers du thème */
.em-cc-reopen { cursor: pointer; background: none; border: none; padding: 0; font: inherit; color: inherit; }
