/* ========================================
   Revolution AR - Système de partage AR avec QR Code (thématisé)
   ======================================== */

.ar-share-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  background: var(--gradient-primary);
  color: var(--dark-bg);
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  margin: 0 auto 15px auto;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  width: 100%;
  max-width: 400px;
}

.ar-share-button:hover { transform: translateY(-2px); box-shadow: var(--shadow-primary); }
.ar-share-button:active { transform: translateY(0); }

.ar-icon { font-size: 20px; }

.ar-share-modal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.85);
  display: flex; align-items: center; justify-content: center;
  z-index: 10000; animation: fadeIn 0.3s ease; backdrop-filter: blur(5px);
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }

.ar-share-content {
  background: var(--dark-bg);
  border: 2px solid var(--primary-30);
  border-radius: 20px; padding: 0;
  width: 90%; max-width: 500px; max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow-primary); animation: slideUp 0.4s ease;
}

@keyframes slideUp { from { transform: translateY(50px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.ar-share-header {
  padding: 20px; display: flex; justify-content: space-between; align-items: center;
  border-bottom: 2px solid var(--primary-30);
}
.ar-share-header h3 { margin: 0; color: var(--primary); font-size: 22px; display: flex; align-items: center; gap: 10px; font-weight: 700; }

.ar-close-button {
  background: var(--primary-10); border: 1px solid var(--primary-30); color: var(--primary);
  width: 35px; height: 35px; border-radius: 50%; font-size: 24px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: all 0.3s; line-height: 1;
}
.ar-close-button:hover { background: var(--primary-20); box-shadow: var(--shadow-primary); transform: rotate(90deg); }

.ar-share-body { padding: 25px; }

.ar-qrcode-container { background: white; border-radius: 15px; padding: 20px; display: flex; flex-direction: column; align-items: center; margin-bottom: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.ar-qrcode-wrapper { display: flex; justify-content: center; align-items: center; min-height: 200px; }
#qrcode { display: inline-block; }
#qrcode canvas, #qrcode img { border-radius: 10px; max-width: 100%; height: auto; }

.ar-qrcode-info { text-align: center; margin-top: 15px; color: #ccc; }
.ar-qrcode-info h4 { margin: 0 0 8px 0; font-size: 18px; color: var(--primary); font-weight: 700; }
.ar-model-price { display: inline-block; background: var(--gradient-primary); color: var(--dark-bg); padding: 5px 15px; border-radius: 20px; font-weight: bold; font-size: 16px; margin-top: 8px; }

.qr-loader { display: flex; flex-direction: column; align-items: center; gap: 15px; }
.qr-spinner { width: 50px; height: 50px; border: 4px solid rgba(255,255,255,0.18); border-top-color: var(--primary, #00ffcc); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.qr-loader-text { color: #ccc; font-size: 14px; }

.ar-instructions { background: var(--primary-05); border: 1px solid var(--primary-20); border-radius: 10px; padding: 15px; margin-bottom: 20px; backdrop-filter: blur(10px); text-align: center; }
.ar-instructions p { color: white; margin: 8px 0; font-size: 14px; line-height: 1.6; }

.ar-platform-note { font-size: 12px !important; color: rgba(255,255,255,0.8) !important; font-style: italic; }
.ar-platform-icons { display: flex; justify-content: center; gap: 30px; margin-top: 12px; }
.platform-icon { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.platform-icon-circle { width: 50px; height: 50px; background: var(--primary-10); border: 1px solid var(--primary-30); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; transition: all 0.3s; }
.platform-icon:hover .platform-icon-circle { background: var(--primary-20); box-shadow: var(--shadow-primary); transform: scale(1.1); }
.platform-icon span { color: white; font-size: 12px; font-weight: 500; }

.ar-share-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ar-option-button { padding: 14px; border: none; background: white; border-radius: 12px; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; transition: all 0.2s; font-size: 14px; font-weight: 500; color: #333; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.ar-option-button:hover { transform: translateY(-3px); box-shadow: 0 4px 12px rgba(0,0,0,0.2); }
.ar-option-button:active { transform: translateY(-1px); }
.ar-option-button span:first-child { font-size: 24px; }
.ar-option-button.instagram { background: var(--gradient-primary); color: var(--dark-bg); font-weight: 700; }
.ar-option-button.whatsapp { background: var(--gradient-primary); color: var(--dark-bg); font-weight: 700; }

.ar-toast { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(100px); background: rgba(0,0,0,0.9); color: white; padding: 15px 25px; border-radius: 30px; z-index: 10001; opacity: 0; transition: all 0.3s; display: flex; align-items: center; gap: 10px; font-size: 14px; box-shadow: 0 5px 20px rgba(0,0,0,0.3); }
.ar-toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.ar-toast-icon { font-size: 20px; }
.ar-share-actions { margin-top: 0; margin-bottom: 15px; display: flex; justify-content: center; width: 100%; }

@media (max-width: 768px) {
  .ar-share-content { width: 95%; max-height: 95vh; }
  .ar-share-header h3 { font-size: 18px; }
  .ar-share-body { padding: 20px; }
  .ar-platform-icons { gap: 20px; }
  .platform-icon-circle { width: 45px; height: 45px; font-size: 20px; }
}

@media (max-width: 480px) {
  .ar-share-options { grid-template-columns: 1fr; }
  .ar-qrcode-container { padding: 15px; }
  .ar-share-header h3 { font-size: 16px; }
}

@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.05); } }
.ar-share-button.highlight { animation: pulse 2s infinite; }