/* Variables CSS pour le bandeau cookies */
:root {
  --cookie-primary: #360C0C;
  --cookie-secondary: #8b4513;
  --cookie-accent: #d4a574;
  --cookie-text: #333;
  --cookie-text-light: #666;
  --cookie-bg-light: #f8f9fa;
  --cookie-dark: #222;
  --cookie-white: #ffffff;
  --cookie-shadow: 0 4px 25px rgba(0,0,0,0.1);
  --cookie-shadow-hover: 0 8px 35px rgba(0,0,0,0.15);
  --cookie-border-radius: 15px;
  --cookie-border-radius-lg: 20px;
  --cookie-transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --cookie-card-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  --cookie-card-shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.15);
  --cookie-border-radius-md: 12px;
  --cookie-transition-smooth: all 0.3s ease;
}

/* Bandeau cookies moderne avec thème équestre */
.cookie-banner {
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100% !important;
  z-index: 999999 !important;
  background: linear-gradient(135deg, var(--cookie-primary) 0%, var(--cookie-secondary) 50%, var(--cookie-dark) 100%) !important;
  color: var(--cookie-white) !important;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
  box-shadow: var(--cookie-card-shadow-hover) !important;
  backdrop-filter: blur(10px) !important;
  border-top: 2px solid var(--cookie-accent) !important;
  /* Force un nouveau contexte de superposition */
  transform: translate3d(0, 0, 0) !important;
  -webkit-transform: translate3d(0, 0, 0) !important;
  will-change: transform !important;
  /* Override pour tous les styles inline */
  display: block !important;
}

.cookie-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 25px;
  gap: 25px;
}

.cookie-icon {
  font-size: 2.8rem;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.4));
  color: var(--cookie-accent);
}

.cookie-text {
  flex: 1;
  margin: 0 20px;
}

.cookie-text h4 {
  margin: 0 0 10px 0;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--cookie-white);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.cookie-text p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--cookie-accent);
  opacity: 0.95;
}

.cookie-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.cookie-actions button {
  padding: 16px 32px;
  border: none;
  border-radius: var(--cookie-border-radius-md);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--cookie-transition);
  font-family: inherit;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  min-width: 150px;
}

.cookie-actions button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(212, 165, 116, 0.4), transparent);
  transition: left 0.6s ease;
}

.cookie-actions button:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--cookie-accent) 0%, #e6c18a 100%);
  color: var(--cookie-primary);
  box-shadow: var(--cookie-shadow-hover), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  border: 2px solid var(--cookie-accent);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #e6c18a 0%, var(--cookie-accent) 100%);
  transform: translateY(-4px) scale(1.03);
  box-shadow: var(--cookie-card-shadow-hover), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  color: var(--cookie-dark);
}

.btn-primary:active {
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--cookie-shadow);
}

.btn-secondary {
  background: linear-gradient(135deg, rgba(212, 165, 116, 0.15) 0%, rgba(212, 165, 116, 0.08) 100%);
  color: var(--cookie-accent);
  border: 2px solid var(--cookie-accent);
  box-shadow: var(--cookie-shadow), inset 0 1px 0 rgba(212, 165, 116, 0.2);
  backdrop-filter: blur(12px);
}

.btn-secondary:hover {
  background: linear-gradient(135deg, rgba(212, 165, 116, 0.25) 0%, rgba(212, 165, 116, 0.15) 100%);
  border-color: var(--cookie-white);
  color: var(--cookie-white);
  transform: translateY(-4px) scale(1.03);
  box-shadow: var(--cookie-card-shadow-hover), inset 0 1px 0 rgba(212, 165, 116, 0.3);
}

.btn-secondary:active {
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--cookie-shadow);
}

/* Effet de pulsation pour le bouton principal avec couleurs équestres */
.btn-primary {
  animation: pulseEquestre 4s infinite;
}

@keyframes pulseEquestre {
  0% {
    box-shadow: var(--cookie-shadow-hover), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  }
  50% {
    box-shadow: var(--cookie-card-shadow-hover), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  }
  100% {
    box-shadow: var(--cookie-shadow-hover), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  }
}

/* Effet de focus pour l'accessibilité avec thème équestre */
.cookie-actions button:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.6);
}

.btn-primary:focus {
  box-shadow: var(--cookie-shadow-hover), 0 0 0 3px rgba(212, 165, 116, 0.6);
}

.btn-secondary:focus {
  box-shadow: var(--cookie-shadow), 0 0 0 3px rgba(212, 165, 116, 0.5);
}

/* Animation d'apparition */
.cookie-banner {
  animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .cookie-banner {
    /* Force la superposition sur mobile */
    z-index: 9999999 !important;
    position: fixed !important;
    transform: translate3d(0, 0, 0) !important;
    -webkit-transform: translate3d(0, 0, 0) !important;
    will-change: transform;
  }
  
  .cookie-content {
    flex-direction: column;
    text-align: center;
    padding: 20px 15px;
    gap: 15px;
  }
  
  .cookie-text {
    margin: 0;
  }
  
  .cookie-text h4 {
    font-size: 1.1rem;
  }
  
  .cookie-text p {
    font-size: 0.9rem;
  }
  
  .cookie-actions {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .cookie-actions button {
    flex: 1;
    min-width: 120px;
  }
}

@media (max-width: 480px) {
  .cookie-banner {
    /* Force maximale sur petits mobiles */
    z-index: 99999999 !important;
    position: fixed !important;
    transform: translate3d(0, 0, 0) !important;
    -webkit-transform: translate3d(0, 0, 0) !important;
    will-change: transform;
    /* Assure que le bandeau reste en bas même avec le clavier virtuel */
    bottom: 0 !important;
  }
  
  .cookie-content {
    padding: 15px 10px;
  }
  
  .cookie-icon {
    font-size: 2rem;
  }
  
  .cookie-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .cookie-actions button {
    width: 100%;
    margin: 0;
  }
}
