/* === Découverte Page Styles (recherche seule, grille 4 colonnes) === */

/* ----------------------------
   Barre de recherche — stable en responsive
   (icône DANS la barre, bouton transparent)
   ---------------------------- */
.filters-section {
  padding: 40px 0;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
}

.search-filters {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: center;
  width: 100%;
}

/* ✅ bloc search-box (même logique que l’autre page) */
.search-box{
  position: relative;
  width: 100%;
  max-width: 720px;
}

/* input */
.filters-section .search-box input{
  width: 100%;
  height: 50px;
  padding: 12px 50px 12px 16px; /* place pour l’icône */
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  font-size: 1rem;
  background: #fff;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.filters-section .search-box input:focus{
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.08);
}

/* --- Bouton de recherche : transparent, sans fond --- */
.filters-section .search-box button {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: transparent;    /* <= pas de fond */
  color: #64748b;             /* gris neutre */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color .15s ease, background .15s ease, transform .02s ease;
}

.filters-section .search-box button:hover {
  color: #2563eb;             /* icône bleue au hover */
  background: #f3f4f6;        /* léger hover gris (pas bleu) */
}

.filters-section .search-box button:active {
  transform: translateY(-50%) scale(0.98);
}

.filters-section .search-box button:focus-visible {
  outline: 3px solid rgba(37,99,235,0.15);
  outline-offset: 2px;
}

.filters-section .search-box button svg {
  display: block;
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

/* Ajustements petits écrans */
@media (max-width: 600px){
  .filters-section .search-box input { height: 46px; padding-right: 46px; }
  .filters-section .search-box button { width: 38px; height: 38px; right: 6px; }
}

/* ----------------------------
   Section Activités / Grilles
   ---------------------------- */
.activities-grid-section {
  padding: 60px 0;
  background: #ffffff;
}

.activities-grid.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

@media (max-width: 1200px) {
  .activities-grid.grid-4 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .activities-grid.grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .activities-grid.grid-4 { grid-template-columns: 1fr; }
  .activities-grid-section { padding: 40px 0; }
}

/* ----------------------------
   Carte Activité
   ---------------------------- */
.activity-card {
  background: #ffffff;
  border: 1px solid #e6e9ee;
  border-radius: 16px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  min-height: 220px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.04);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  position: relative;
  color: inherit;
  text-decoration: none;
}

.activity-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(37,99,235,0.12);
  border-color: rgba(37,99,235,0.22);
}

/* Titre + résumé */
.activity-title {
  font-size: 1.125rem;
  font-weight: 800;
  color: #0f172a;
  margin: 6px 0 .5rem 0;
  line-height: 1.3;
}

.activity-title.truncate {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.activity-summary {
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0 0 1rem 0;
  max-height: 4.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.activity-summary--empty { color: #94a3b8; font-style: italic; }

/* Meta (durée, âge...) */
.activity-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1rem;
}

.meta-item {
  display: inline-flex;
  align-items: center;
  font-size: .87rem;
  color: #334155;
  background: #f8fafc;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid #eef2f7;
}

/* CTA */
.activity-btn {
  background: #2563eb;
  color: #ffffff;
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  transition: background .2s ease, transform .15s ease;
  border: none;
  cursor: pointer;
  line-height: 1;
  margin-top: auto;
  display: inline-block;
}

.activity-btn:hover { background: #1d4ed8; transform: translateY(-2px); }

.activity-btn:focus {
  outline: 3px solid rgba(37,99,235,0.25);
  outline-offset: 2px;
}

/* ----------------------------
   Petits écrans
   ---------------------------- */
@media (max-width: 420px) {
  .activity-card { padding: 1rem; min-height: 210px; }
  .activity-title { font-size: 1.05rem; }
  .activity-summary { font-size: 0.92rem; }
}

/* === ÉTATS VERROUILLÉS (si tu l’utilises plus tard) === */
.activity-card.is-locked{
  position: relative;
  filter: grayscale(0.3);
  opacity: 0.7;
  pointer-events: none;
}
.activity-card.is-locked .activity-btn--locked{
  pointer-events: auto;
}

.lock-overlay{
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(15,23,42,0.10), rgba(15,23,42,0.18));
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  text-align: center;
  padding: 1rem;
}

.lock-icon{
  width: 32px;
  height: 32px;
  display: inline-block;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 48 48'%3E%3Cdefs%3E%3ClinearGradient id='a' x1='24' y1='23.6' x2='24' y2='-6.5' gradientUnits='userSpaceOnUse'%3E%3Cstop offset='0' stop-color='%23f3c57a'/%3E%3Cstop offset='.49' stop-color='%23f39369'/%3E%3Cstop offset='1' stop-color='%23e94867'/%3E%3C/linearGradient%3E%3ClinearGradient id='c' x1='24' y1='11.67' x2='24' y2='31.36' xlink:href='%23a'/%3E%3ClinearGradient id='b' x1='24' y1='65' x2='24' y2='-28.49' gradientUnits='userSpaceOnUse'%3E%3Cstop offset='0' stop-color='%23273a9b'/%3E%3Cstop offset='.56' stop-color='%23202f65'/%3E%3Cstop offset='1' stop-color='%23021e2f'/%3E%3C/linearGradient%3E%3ClinearGradient id='d' y1='30.44' x2='24' y2='41' xlink:href='%23b'/%3E%3ClinearGradient id='e' x1='24' y1='46.55' x2='24' y2='24.04' xlink:href='%23a'/%3E%3ClinearGradient id='f' x1='24' y1='36.75' x2='24' y2='26.33' xlink:href='%23a'/%3E%3C/defs%3E%3Cpath d='M36 31.71H12V15a12 12 0 1 1 24 0zm-19.18-4.79h14.36V15a7.18 7.18 0 1 0-14.35 0z' fill='url(%23a)'/%3E%3Cpath d='M36 17.55a3.46 3.46 0 0 0-1.1-.19h-3.72v9.57H16.82v-9.58h-3.68a3.46 3.46 0 0 0-1.1.19v14.17H36z' fill='url(%23c)'/%3E%3Crect x='9' y='21' width='30' height='24' rx='3.89' ry='3.89' fill='url(%23b)'/%3E%3Cpath d='M12.89 21a3.88 3.88 0 0 0-3.68 2.67h29.57A3.88 3.88 0 0 0 35.11 21z' fill='url(%23d)'/%3E%3Cpath d='M27.24 31.74a3.24 3.24 0 0 0-6.39-.74 3.21 3.21 0 0 0 .63 2.81 1.72 1.72 0 0 1 .36 1.09v.48A2.16 2.16 0 0 0 24 37.5a2.16 2.16 0 0 0 2.16-2.16v-.48a1.78 1.78 0 0 1 .37-1.11 3.19 3.19 0 0 0 .71-2.01z' fill='url(%23e)'/%3E%3Cpath d='M27 32.88a3.23 3.23 0 0 0-3.88-2 3.2 3.2 0 0 0-2.16 2 3.24 3.24 0 0 0 .5.9 1.72 1.72 0 0 1 .36 1.09v.48a2.16 2.16 0 1 0 4.32 0v-.48a1.78 1.78 0 0 1 .37-1.11 3.24 3.24 0 0 0 .49-.88z' fill='url(%23f)'/%3E%3C/svg%3E");
}

.lock-text{
  font-size: .9rem;
  font-weight: 700;
  color: #0f172a;
  background: #ffffffcc;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}

.activity-btn.activity-btn--locked{
  background: #0b1220;
  color: #ffffff;
}
.activity-card.is-locked .activity-btn.activity-btn--locked:hover{
  background: #111827;
  transform: none;
}