/* Je-Trouve.com (canonical) — refonte mobile-first 2026
 * Codename interne : jecherche (réseau Je-Cherche / Je-Trouve historique).
 * Palette : bleu nuit (#19198a, hommage au header legacy <font color="#19198A">)
 * + crème + accent ambre. Esprit "annuaire historique sérieux".
 */

:root {
  --jc-primary: #19198a;
  --jc-primary-dark: #0e0e5a;
  --jc-primary-light: #4646b8;
  --jc-accent: #f4a261;
  --jc-bg: #f6f7fb;
  --jc-text: #1c1c1c;
  --jc-muted: #5a6175;
  --jc-border: #d8dcec;
  --jc-card-bg: #ffffff;
}

* { box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--jc-bg);
  color: var(--jc-text);
  font-size: 15px;
  line-height: 1.5;
  margin: 0;
  padding: 0;
  padding-bottom: 64px; /* place pour bottom-nav mobile */
}
@media (min-width: 992px) {
  body { padding-bottom: 0; }
}

a { color: var(--jc-primary); text-decoration: none; }
a:hover { color: var(--jc-primary-dark); text-decoration: underline; }

/* ---- Topbar ---- */
.jc-topbar {
  background: #fff;
  border-bottom: 1px solid var(--jc-border);
  padding: .55rem 0;
  position: sticky;
  top: 0;
  z-index: 1020;
}
.jc-brand img { max-height: 40px; width: auto; }
.jc-cta-saisir {
  background: var(--jc-accent);
  color: #1c1c1c !important;
  border-radius: 999px;
  padding: .45rem 1.1rem;
  font-weight: 600;
  text-decoration: none;
}
.jc-cta-saisir:hover { background: #e08d3e; color: #1c1c1c !important; text-decoration: none; }

/* ---- Catnav (sous topbar) ---- */
.jc-catnav {
  background: var(--jc-primary);
  color: #fff;
  border-bottom: 3px solid var(--jc-accent);
}
.jc-catnav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}
.jc-catnav-list li { flex: 1 1 auto; }
.jc-catnav-list a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  padding: .65rem .5rem;
  color: #fff;
  font-size: .85rem;
  font-weight: 500;
  border-right: 1px solid rgba(255,255,255,.12);
  transition: background .15s ease;
}
.jc-catnav-list a:last-child { border-right: none; }
.jc-catnav-list a:hover, .jc-catnav-list a.active {
  background: var(--jc-primary-dark);
  color: #fff;
  text-decoration: none;
}
.jc-catnav-list a i { font-size: 1rem; }
@media (max-width: 575px) {
  .jc-catnav-list a span { display: none; }
  .jc-catnav-list a { padding: .65rem .35rem; }
  .jc-catnav-list a i { font-size: 1.15rem; }
}

/* ---- Hero ---- */
.jc-hero {
  background: linear-gradient(135deg, var(--jc-primary), var(--jc-primary-dark));
  color: #fff;
  padding: 1.75rem 1rem;
  margin: 0 -.5rem 1.25rem;
  border-radius: 0 0 14px 14px;
}
.jc-hero-inner { max-width: 760px; margin: 0 auto; text-align: center; }
.jc-hero h1 { font-size: 1.5rem; margin: 0 0 .35rem 0; font-weight: 800; }
.jc-hero .lead { font-size: .95rem; opacity: .92; margin: 0 0 1rem 0; }
.jc-hero-search {
  display: flex;
  gap: .35rem;
  background: #fff;
  padding: .35rem;
  border-radius: 12px;
  max-width: 460px;
  margin: 0 auto;
  box-shadow: 0 6px 20px rgba(0,0,0,.18);
}
.jc-hero-search input {
  flex: 1 1 auto;
  border: 0;
  outline: 0;
  padding: .55rem .75rem;
  font-size: .95rem;
  color: var(--jc-text);
  background: transparent;
}
.jc-hero-search button {
  background: var(--jc-primary);
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: .5rem 1rem;
  font-weight: 600;
}
.jc-hero-search button:hover { background: var(--jc-primary-dark); }

/* ---- Breadcrumb ---- */
.jc-breadcrumb {
  font-size: .85rem;
  padding: .5rem 0;
  color: var(--jc-muted);
}
.jc-breadcrumb a { color: var(--jc-muted); }
.jc-breadcrumb a:hover { color: var(--jc-primary); }

/* ---- Grille catégories home ---- */
.jc-cat-grid { margin: 1rem 0; }
.jc-cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #fff;
  border: 1px solid var(--jc-border);
  border-radius: 14px;
  padding: 1.25rem .75rem;
  height: 100%;
  color: var(--jc-text);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.jc-cat-card:hover {
  transform: translateY(-2px);
  border-color: var(--jc-primary);
  box-shadow: 0 6px 18px rgba(25,25,138,.12);
  text-decoration: none;
  color: var(--jc-primary);
}
.jc-cat-card i { color: var(--jc-primary); font-size: 1.85rem; }
.jc-cat-card .jc-cat-label { margin-top: .65rem; font-weight: 700; font-size: .98rem; }
.jc-cat-card .jc-cat-sub { display: block; font-size: .76rem; color: var(--jc-muted); margin-top: .15rem; line-height: 1.25; }

/* ---- Block régions ---- */
.jc-regions-block {
  background: #fff;
  border: 1px solid var(--jc-border);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  margin: 1.5rem 0;
}
.jc-regions-block h2 { color: var(--jc-primary); margin: 0 0 .65rem 0; }
.jc-regions-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: .25rem .75rem;
}
.jc-regions-list a {
  display: block;
  padding: .25rem 0;
  font-size: .88rem;
}

/* ---- Card annonce listing ---- */
.jc-card {
  background: var(--jc-card-bg);
  border: 1px solid var(--jc-border);
  border-radius: 10px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease;
}
.jc-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,.1);
}
.jc-card a { color: inherit; text-decoration: none; display: flex; flex-direction: column; height: 100%; }
.jc-card-photo {
  width: 100%;
  aspect-ratio: 4/3;
  background: #eee center/cover no-repeat;
  position: relative;
}
.jc-card-price {
  position: absolute;
  bottom: .35rem;
  right: .35rem;
  background: rgba(255,255,255,.96);
  color: var(--jc-primary);
  font-weight: 700;
  font-size: .85rem;
  padding: .2rem .55rem;
  border-radius: 6px;
}
.jc-card-body { padding: .7rem; flex: 1; }
.jc-card-title {
  font-weight: 600;
  font-size: .92rem;
  line-height: 1.3;
  margin: 0 0 .25rem 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--jc-text);
}
.jc-card-meta {
  font-size: .78rem;
  color: var(--jc-muted);
  margin: 0;
}

/* ---- Détail annonce ---- */
.jc-detail-title {
  font-size: 1.4rem;
  margin: 0 0 .5rem 0;
  color: var(--jc-primary-dark);
}
.jc-detail-meta {
  font-size: .85rem;
  color: var(--jc-muted);
  margin-bottom: 1rem;
}
.jc-detail-meta span { display: inline-block; margin-right: 1rem; }
.jc-detail-price {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--jc-primary);
  margin: .5rem 0;
}
.jc-detail-photo {
  width: 100%;
  border-radius: 10px;
  margin-bottom: .5rem;
}
.jc-gallery {
  display: flex;
  gap: .5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: .5rem;
  margin-bottom: 1rem;
}
.jc-gallery img {
  flex: 0 0 auto;
  max-height: 90px;
  border-radius: 6px;
  scroll-snap-align: start;
  cursor: pointer;
  border: 1px solid var(--jc-border);
}
.jc-detail-desc {
  font-size: 1rem;
  background: #fff;
  border: 1px solid var(--jc-border);
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 1rem;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.jc-specs {
  background: #fff;
  border: 1px solid var(--jc-border);
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 1rem;
}
.jc-specs dt { font-weight: 600; color: var(--jc-muted); }
.jc-specs dd { margin-bottom: .5rem; }

.jc-cta {
  display: block;
  width: 100%;
  background: var(--jc-primary);
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: .75rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: .5rem;
  cursor: pointer;
}
.jc-cta:hover { background: var(--jc-primary-dark); color: #fff; text-decoration: none; }
.jc-cta-secondary {
  background: #fff;
  color: var(--jc-primary);
  border: 1px solid var(--jc-primary);
}
.jc-cta-secondary:hover { background: var(--jc-primary); color: #fff; }
.jc-phone-reveal { margin-bottom: .5rem; }
.jc-phone-reveal summary { list-style: none; cursor: pointer; }
.jc-phone-reveal summary::-webkit-details-marker { display: none; }
.jc-phone-reveal[open] summary { background: var(--jc-primary); color: #fff; }

/* ---- Pagination ---- */
.jc-pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .25rem;
  margin: 1.5rem 0;
}
.jc-pagination a, .jc-pagination span {
  display: inline-block;
  padding: .4rem .75rem;
  border: 1px solid var(--jc-border);
  border-radius: 6px;
  color: var(--jc-text);
  background: #fff;
  font-size: .9rem;
}
.jc-pagination a:hover { background: var(--jc-primary); color: #fff; text-decoration: none; border-color: var(--jc-primary); }
.jc-pagination .active { background: var(--jc-primary); color: #fff; border-color: var(--jc-primary); }

/* ---- Footer ---- */
.jc-footer {
  background: #1a1d2e;
  color: #c9cdd6;
  padding: 2rem 1rem 1rem 1rem;
  margin-top: 2rem;
  font-size: .85rem;
}
.jc-footer a { color: #fff; }
.jc-footer a:hover { color: var(--jc-accent); }
.jc-footer h5 { color: #fff; font-size: .95rem; margin-bottom: .75rem; }
.jc-footer-cols { columns: 2; -webkit-columns: 2; }
.jc-footer-bottom {
  border-top: 1px solid #333a52;
  margin-top: 1.5rem;
  padding-top: 1rem;
  text-align: center;
  font-size: .8rem;
  color: #8c93a3;
}

/* ---- Bottom-nav mobile ---- */
.jc-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid var(--jc-border);
  display: flex;
  justify-content: space-around;
  padding: .35rem 0;
  z-index: 1030;
  box-shadow: 0 -2px 8px rgba(0,0,0,.06);
}
.jc-bottom-nav .jc-nav-item {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--jc-muted);
  font-size: .68rem;
  padding: .25rem .15rem;
}
.jc-bottom-nav .jc-nav-item i { font-size: 1.15rem; margin-bottom: .15rem; }
.jc-bottom-nav .jc-nav-item:hover, .jc-bottom-nav .jc-nav-item[aria-current="page"] {
  color: var(--jc-primary);
  text-decoration: none;
}
@media (min-width: 992px) {
  .jc-bottom-nav { display: none; }
}

/* ---- Pubs ---- */
.jc-promo-block {
  background: #fff;
  border: 1px solid var(--jc-border);
  border-radius: 10px;
  padding: 1rem;
  margin: 1rem 0;
}
.jc-promo-block h6 {
  font-size: .8rem;
  color: var(--jc-muted);
  font-weight: 400;
  text-align: center;
  margin: 0 0 .5rem 0;
}

/* ---- Responsive tweaks ---- */
@media (min-width: 768px) {
  .jc-hero h1 { font-size: 1.85rem; }
  .jc-hero .lead { font-size: 1rem; }
  .jc-detail-title { font-size: 1.7rem; }
}
@media (max-width: 575px) {
  .jc-card-title { font-size: .85rem; }
  .jc-card-meta { font-size: .72rem; }
  .jc-cat-card .jc-cat-label { font-size: .9rem; }
  .jc-cat-card .jc-cat-sub { font-size: .7rem; }
}
