/* =========================================================================
   Lieux d'attraction — liste
   -------------------------------------------------------------------------
   Chargée par views/reservation/attractions.php, servie telle quelle aux deux
   écrans (le balisage est écrit ici, pas hérité du thème). Même vocabulaire
   visuel que les voitures (css/voitures.css) : mêmes couleurs, même carte.
   ========================================================================= */

:root {
  --at-blue:  var(--yb-blue, #0d65c9);
  --at-navy:  var(--yb-navy, #0d233e);
  --at-cyan:  var(--yb-cyan, #29abe2);
  --at-ink:   #1f2937;
  --at-body:  #4b5563;
  --at-muted: #9ca3af;
  --at-line:  #e5e7eb;
  --at-page:  #f2f5fa;
}

.at-page { background: var(--at-page); padding-bottom: 56px; }

/* ---------- Bandeau ------------------------------------------------------- */

.at-hero {
  position: relative; overflow: hidden;
  padding: 54px 0 62px;
  background: linear-gradient(120deg, var(--at-navy) 0%, #143a6b 52%, var(--at-blue) 100%);
  color: #fff;
}
.at-hero::before,
.at-hero::after { content: ''; position: absolute; border-radius: 50%; pointer-events: none; }
.at-hero::before { width: 420px; height: 420px; right: -140px; top: -180px; background: radial-gradient(circle, rgba(255,255,255,.10), transparent 70%); }
.at-hero::after   { width: 300px; height: 300px; left: -100px; bottom: -160px; background: radial-gradient(circle, var(--at-cyan), transparent 72%); opacity: .18; }

.at-hero__in { position: relative; max-width: 720px; }
.at-hero__titre { margin: 0 0 12px; font-size: 34px; font-weight: 800; line-height: 1.2; }
.at-hero__titre span { color: var(--at-cyan); }
.at-hero__sub { margin: 0 0 26px; font-size: 15px; color: rgba(255,255,255,.82); max-width: 520px; }

.at-recherche {
  display: flex; flex-wrap: wrap; gap: 10px;
  background: #fff; padding: 10px; border-radius: 16px;
  box-shadow: 0 18px 40px rgba(8,20,40,.25);
  max-width: 640px;
}
.at-recherche__champ {
  flex: 1 1 200px; display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 10px; background: #f4f6fb;
}
.at-recherche__champ i { color: var(--at-blue); font-size: 15px; }
.at-recherche__champ input,
.at-recherche__champ select {
  border: 0; background: transparent; outline: none; width: 100%;
  font-size: 14px; color: var(--at-ink);
}
.at-recherche__champ--select { flex: 1 1 180px; }
.at-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border: 0; border-radius: 10px; padding: 12px 22px;
  font-size: 14px; font-weight: 700; cursor: pointer; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.at-btn--plein { background: var(--at-blue); color: #fff; box-shadow: 0 10px 22px rgba(29,88,183,.28); }
.at-btn--plein:hover { transform: translateY(-1px); box-shadow: 0 14px 26px rgba(29,88,183,.34); color: #fff; }

/* ---------- Filtre actif / vide -------------------------------------------- */

.at-filtre-actif {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  margin: 24px 0 6px; font-size: 13.5px; color: var(--at-body);
}
.at-filtre-actif strong { color: var(--at-ink); }
.at-filtre-actif a { color: var(--at-blue); font-weight: 600; display: inline-flex; align-items: center; gap: 5px; }

.at-vide {
  text-align: center; padding: 70px 20px; color: var(--at-muted);
}
.at-vide i { font-size: 46px; color: var(--at-line); margin-bottom: 14px; display: block; }
.at-vide p { margin: 0 0 18px; font-size: 15px; }

/* ---------- Grille de cartes ----------------------------------------------- */

.at-grille {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
  margin-top: 30px;
}

.at-carte {
  background: #fff; border-radius: 16px; overflow: hidden;
  box-shadow: 0 8px 24px rgba(15,35,70,.08);
  transition: transform .18s ease, box-shadow .18s ease;
  display: flex; flex-direction: column;
}
.at-carte:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(15,35,70,.14); }

.at-carte__media { position: relative; aspect-ratio: 4 / 3; background: #e7edf7; }
.at-carte__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.at-carte__media--vide { display: flex; align-items: center; justify-content: center; }
.at-carte__media--vide i { font-size: 42px; color: #b9c6de; }

.at-promo {
  position: absolute; left: 12px; top: 12px; margin: 0;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 12px; border-radius: 999px;
  background: #ef4444; color: #fff; font-size: 11.5px; font-weight: 700;
  box-shadow: 0 6px 14px rgba(239,68,68,.35);
}

.at-prix {
  position: absolute; left: 12px; bottom: 12px; margin: 0;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(9,15,28,.62); color: #fff; font-size: 12.5px;
}
.at-prix strong { font-size: 14px; margin-right: 4px; }
.at-prix__libre { font-weight: 700; color: #a7f3d0; }

.at-carte__corps { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.at-titre { margin: 0; font-size: 16.5px; font-weight: 750; line-height: 1.3; }
.at-titre a { color: var(--at-ink); }
.at-titre a:hover { color: var(--at-blue); }

.at-lieu { margin: 0; font-size: 13px; color: var(--at-body); }
.at-lieu i { color: var(--at-blue); margin-right: 4px; }

.at-desc { margin: 4px 0 10px; font-size: 13px; color: var(--at-muted); line-height: 1.5; flex: 1; }

.at-pied { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.at-pied .at-btn--plein { padding: 9px 16px; font-size: 13px; flex: 1; }
.at-detail { font-size: 13px; font-weight: 700; color: var(--at-blue); white-space: nowrap; }

/* ---------- Pagination ------------------------------------------------------ */

.at-pages { display: flex; justify-content: center; margin-top: 36px; }
.at-pages .pagination { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.at-pages .page-link {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px; border-radius: 9px;
  background: #fff; color: var(--at-ink); font-size: 13.5px; font-weight: 600;
  border: 1px solid var(--at-line); text-decoration: none;
}
.at-pages .active .page-link { background: var(--at-blue); border-color: var(--at-blue); color: #fff; }
.at-pages .disabled .page-link { color: var(--at-muted); }

/* ---------- Téléphone -------------------------------------------------------- */

@media (max-width: 860px) {
  .at-hero { padding: 34px 0 44px; }
  .at-hero__titre { font-size: 25px; }
  .at-recherche { max-width: none; flex-direction: column; }
  .at-grille { grid-template-columns: 1fr; }
}
@media (min-width: 861px) and (max-width: 1180px) {
  .at-grille { grid-template-columns: repeat(2, 1fr); }
}
