/* Outilo - CSS complémentaires (Tailwind via CDN est chargé avant) */

html { scroll-behavior: smooth; }
[x-cloak] { display: none !important; }
body { background-color: #f8fafc; color: #0f172a; font-family: 'Inter', system-ui, -apple-system, sans-serif; }

/* Header glass */
.glass-nav {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Cartes outils */
.tool-card {
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  border: 1px solid #e2e8f0;
}
.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.06), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
  border-color: #cbd5e1;
}

/* Inputs premium */
.input-premium {
  width: 100%;
  border-radius: 0.5rem;
  border: 1px solid #cbd5e1;
  background: #fff;
  padding: 0.75rem 1rem;
  color: #0f172a;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input-premium:focus {
  outline: none;
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
}

.label-premium {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #334155;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  background-color: #0f172a;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  transition: background-color 0.15s, transform 0.15s;
}
.btn-primary:hover { background-color: #1e293b; }
.btn-primary:focus-visible { outline: 2px solid #0f172a; outline-offset: 2px; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  background: #fff;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #0f172a;
  border: 1px solid #e2e8f0;
  transition: background-color 0.15s, border-color 0.15s;
}
.btn-secondary:hover { background-color: #f1f5f9; border-color: #cbd5e1; }

/* FAQ */
[data-faq-body] {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
[data-faq-item].is-open [data-faq-chevron] { transform: rotate(180deg); }
[data-faq-chevron] { transition: transform 0.2s; }

/* Focus visible global */
:focus-visible { outline: 2px solid #10b981; outline-offset: 2px; border-radius: 4px; }

/* Prose brand (links) */
.prose a { color: #059669; text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: #047857; }

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  background: #f1f5f9;
  color: #475569;
}
.badge-brand { background: #d1fae5; color: #047857; }

/* Range slider */
input[type=range].range-premium {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: #e2e8f0;
  outline: none;
}
input[type=range].range-premium::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #10b981;
  cursor: pointer;
  border: 3px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
input[type=range].range-premium::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%;
  background: #10b981; cursor: pointer; border: 3px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
