/* ── OUTILS IA PAGE ── */

.outils-page {
  max-width: 1030px;
  margin: 0 auto;
  padding: 32px 20px 60px;
}

/* Hero */
.outils-hero {
  margin-bottom: 36px;
}
.outils-hero h1 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 10px;
}
.outils-hero-desc {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 640px;
  margin-bottom: 20px;
}
.outils-hero-desc strong {
  color: var(--ink);
  font-weight: 600;
}

/* Filter pills */
.outils-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.outils-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  background: var(--surface);
  font-family: var(--body);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all .15s ease;
}
.outils-filter-btn:hover {
  border-color: var(--blue-mid);
  color: var(--blue);
  background: var(--blue-pale);
}
.outils-filter-btn.active {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.outils-filter-btn.active .outils-count {
  background: rgba(255,255,255,.25);
  color: #fff;
}
.outils-count {
  font-size: 11px;
  font-weight: 700;
  background: var(--bg);
  color: var(--muted);
  border-radius: 10px;
  padding: 1px 7px;
  min-width: 20px;
  text-align: center;
}

/* Sections */
.outils-section {
  margin-bottom: 36px;
}
.outils-section-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}

/* Grid */
.outils-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

/* Card */
.outil-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-decoration: none;
  color: var(--ink);
  transition: all .2s ease;
  position: relative;
}
.outil-card:hover {
  border-color: var(--blue-mid);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.outil-card:hover .outil-arrow {
  opacity: 1;
  color: var(--blue);
}

.outil-card-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}
.outil-icon {
  font-size: 28px;
  line-height: 1;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border-radius: 12px;
}
.outil-name {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 2px;
}
.outil-pricing {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}
.outil-arrow {
  position: absolute;
  top: 18px;
  right: 18px;
  opacity: 0;
  color: var(--muted);
  transition: all .2s ease;
}
.outil-desc {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-2);
  flex: 1;
  margin-bottom: 14px;
}
.outil-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.outil-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  background: var(--bg);
  border-radius: 6px;
  padding: 3px 8px;
}

/* CTA */
.outils-cta {
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 20px;
  margin-top: 20px;
}
.outils-cta h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}
.outils-cta p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 20px;
}
.outils-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--blue);
  color: #fff;
  font-family: var(--body);
  font-size: 14px;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s ease;
}
.outils-cta-btn:hover {
  background: var(--blue-dark);
  color: #fff;
}

/* ── Dark mode ── */
[data-theme="dark"] .outils-hero-desc strong { color: #e5e5e5; }
[data-theme="dark"] .outil-card { background: var(--surface); border-color: var(--border); }
[data-theme="dark"] .outil-card:hover { border-color: rgba(59,130,246,.4); }
[data-theme="dark"] .outil-icon { background: rgba(255,255,255,.06); }
[data-theme="dark"] .outil-tag { background: rgba(255,255,255,.06); color: var(--muted); }
[data-theme="dark"] .outils-filter-btn { background: var(--surface); border-color: var(--border); }
[data-theme="dark"] .outils-filter-btn:hover { background: rgba(59,130,246,.1); }
[data-theme="dark"] .outils-count { background: rgba(255,255,255,.06); }
[data-theme="dark"] .outils-cta { background: var(--surface); border-color: var(--border); }
[data-theme="dark"] .outils-section-title { border-color: var(--border); }

/* ── Responsive ── */
@media (max-width: 640px) {
  .outils-page { padding: 20px 14px 40px; }
  .outils-hero h1 { font-size: 22px; }
  .outils-grid { grid-template-columns: 1fr; gap: 12px; }
  .outil-card { padding: 16px; }
  .outils-filter { gap: 6px; }
  .outils-filter-btn { padding: 6px 12px; font-size: 12px; }
  .outils-cta { padding: 28px 16px; }
}
