/* ============================================
   SORTIES POUR LES ENFANTS — Design V3
   Mobile-first responsive
   ============================================ */

/* ---------- RESET & BASE ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #333;
  background: #f5f5f5;
  line-height: 1.6;
  font-size: 17px;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* ---------- UTILITIES ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.text-center { text-align: center; }
.text-orange { color: #ff6600; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }

/* ---------- HEADER ---------- */
#header-v3 {
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
  position: sticky;
  top: 0;
  z-index: 50;
}
#header-v3 .header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
#header-v3 .logo {
  display: flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}
#header-v3 .logo-pin {
  line-height: 0;
  display: flex;
  align-items: center;
}
#header-v3 .logo-text {
  font-size: 16px;
  color: #444;
  font-weight: 700;
  line-height: 1.2;
}
#header-v3 .logo-text .orange { color: #ff6600; font-weight: 700; }

#header-v3 .nav-links {
  display: none;
  list-style: none;
  gap: 28px;
}
#header-v3 .nav-links a {
  text-decoration: none;
  color: #555;
  font-size: 16px;
  font-weight: 600;
  transition: color .2s;
}
#header-v3 .nav-links a:hover { color: #ff6600; }

#header-v3 .menu-btn {
  background: none;
  border: none;
  font-size: 28px;
  color: #555;
}

/* Mobile menu */
#header-v3 .mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,.5);
  z-index: 200;
}
#header-v3 .mobile-menu.open { display: block; }
#header-v3 .mobile-menu-inner {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 280px;
  background: #fff;
  padding: 20px;
  box-shadow: -4px 0 20px rgba(0,0,0,.15);
}
#header-v3 .mobile-menu-inner a {
  display: block;
  padding: 14px 0;
  font-size: 18px;
  font-weight: 600;
  color: #333;
  border-bottom: 1px solid #f0f0f0;
}
#header-v3 .mobile-menu-inner a:hover { color: #ff6600; }
#header-v3 .mobile-menu-close {
  background: none;
  border: none;
  font-size: 28px;
  color: #888;
  float: right;
}

/* ---------- HERO (homepage) ---------- */
.hero-v3 {
  background: linear-gradient(135deg, #ff6600 0%, #ff8533 100%);
  padding: 36px 16px 44px;
  color: #fff;
  text-align: center;
}
.hero-v3 h1 { font-size: 28px; font-weight: 700; margin-bottom: 10px; line-height: 1.25; }
.hero-v3 p { font-size: 18px; opacity: .9; margin-bottom: 28px; }
.search-box {
  max-width: 640px;
  margin: 0 auto;
  background: #fff;
  border-radius: 14px;
  padding: 5px;
  display: flex;
  box-shadow: 0 4px 24px rgba(0,0,0,.15);
}
.search-box input {
  flex: 1;
  border: none;
  padding: 12px 16px;
  font-size: 16px;
  border-radius: 12px;
  outline: none;
  font-family: inherit;
  color: #333;
  height: auto;
}
.search-box input::placeholder { color: #aaa; }
.search-box button, .search-box input[type="submit"] {
  background: #ff6600 !important;
  color: #fff !important;
  border: none !important;
  padding: 10px 20px !important;
  border-radius: 10px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  font-family: inherit;
  white-space: nowrap;
  height: auto !important;
  align-self: stretch;
}
.search-box form { display: flex; width: 100%; align-items: stretch; gap: 4px; }
.search-box button:hover, .search-box input[type="submit"]:hover { background: #e55a00; }

/* ---------- PAGE HEADER (inner pages) ---------- */
.page-header-v3 {
  background: #fff;
  padding: 20px 16px 16px;
  border-bottom: 1px solid #eee;
}
.page-header-v3 h1 {
  font-size: 26px;
  font-weight: 700;
  color: #ff6600;
  text-align: center;
  margin-bottom: 6px;
}
.page-header-v3 .subtitle {
  font-size: 18px;
  color: #666;
  text-align: center;
  margin-bottom: 8px;
}
.page-header-v3 .breadcrumb {
  font-size: 15px;
  color: #888;
  margin-top: 10px;
}
.page-header-v3 .breadcrumb a { color: #ff6600; }

/* ---------- INTRO TEXT + TOGGLE ---------- */
.intro-text-v3 {
  background: #fff;
  padding: 20px 16px;
  border-bottom: 1px solid #eee;
}
.intro-text-v3 p { font-size: 17px; line-height: 1.7; color: #444; }
.intro-text-v3 p strong { color: #333; }
.intro-text-v3 p a { color: #ff6600; text-decoration: underline; }
.toggle { display: none; }
.lien, .toggle-btn-v3 {
  display: inline-block;
  margin-top: 10px;
  color: #ff6600;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  padding: 0;
}
.lien:hover, .toggle-btn-v3:hover { text-decoration: underline; }

/* ---------- FILTERS ---------- */
.filters-bar-v3 {
  background: #fff;
  padding: 14px 16px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}
.filter-btn {
  flex-shrink: 0;
  background: #f5f5f5;
  border: 1.5px solid #e0e0e0;
  border-radius: 10px;
  padding: 8px 16px;
  font-size: 15px;
  font-family: inherit;
  color: #555;
  font-weight: 600;
  transition: all .2s;
}
.filter-btn.active { background: #ff6600; color: #fff; border-color: #ff6600; }
.filter-btn:hover:not(.active) { border-color: #ff6600; color: #ff6600; }

/* ---------- SECTION ---------- */
.section-v3 { max-width: 1200px; margin: 0 auto; padding: 28px 16px; }
.section-header-v3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.section-header-v3 h2 { font-size: 24px; font-weight: 700; color: #222; }
.section-header-v3 a { color: #ff6600; font-size: 16px; font-weight: 600; }

/* ---------- CATEGORY CARDS ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.cat-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16/10;
  display: flex;
  align-items: flex-end;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
  transition: transform .2s, box-shadow .2s;
}
.cat-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,.15); }
.cat-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cat-card .overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.65) 0%, transparent 60%); }
.cat-card .cat-label { position: relative; z-index: 1; padding: 14px 16px; color: #fff; font-size: 18px; font-weight: 700; text-shadow: 0 1px 4px rgba(0,0,0,.4); }

/* ---------- CITY SCROLL ---------- */
.city-scroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
}
.city-scroll::-webkit-scrollbar { display: none; }
.city-pill {
  flex-shrink: 0;
  background: #fff;
  border: 1.5px solid #e5e5e5;
  border-radius: 24px;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: 600;
  color: #444;
  transition: all .2s;
}
.city-pill:hover { border-color: #ff6600; color: #ff6600; background: #fff8f4; }
.city-pill .count { color: #ff6600; font-size: 14px; margin-left: 6px; }

/* ---------- 2-COLUMN LAYOUT ---------- */
.main-layout-v3 {
  max-width: 1200px !important;
  margin: 0 auto !important;
  display: flex !important;
  gap: 24px;
  padding: 20px 16px;
  width: 100%;
}
.results-col { flex: 1 !important; min-width: 0; }
.sidebar-col { display: none; width: 340px; flex-shrink: 0; }

/* ---------- RESULT CARDS ---------- */
.results-count { font-size: 16px; color: #888; margin-bottom: 14px; font-weight: 600; text-align: center; }
.results-count strong { color: #ff6600; }
.results-list { display: flex; flex-direction: column; gap: 14px; }

.result-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  display: flex;
  transition: transform .2s, box-shadow .2s;
  text-decoration: none;
  color: #333;
}
.result-card:hover { transform: translateY(-2px); box-shadow: 0 4px 14px rgba(0,0,0,.1); }
.result-card .result-img {
  width: 130px;
  min-height: 130px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  background: linear-gradient(135deg, #e3f2fd, #90caf9);
}
.result-card .result-body { padding: 14px 18px; flex: 1; min-width: 0; }
.result-card .result-body h3, .result-card .result-body h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 3px;
}
.result-card .result-body h3 a, .result-card .result-body h4 a { color: #333; }
.result-card .result-body h3 a:hover, .result-card .result-body h4 a:hover { color: #ff6600; }
.result-card .loc { font-size: 15px; color: #888; margin-bottom: 6px; }
.result-card .desc {
  font-size: 15px;
  color: #666;
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tag { background: #f0f0f0; border-radius: 5px; padding: 3px 10px; font-size: 13px; color: #666; display: inline-block; margin: 2px 4px 2px 0; }
.tag.premium { background: #ff6600; color: #fff; }
.tag.weather { background: #e3f2fd; color: #1565c0; }

/* ---------- TOP CARDS (homepage) ---------- */
.top-list { display: flex; flex-direction: column; gap: 14px; }
.top-card { background: #fff; border-radius: 14px; overflow: hidden; display: flex; box-shadow: 0 1px 4px rgba(0,0,0,.06); transition: transform .2s; text-decoration: none; color: #333; }
.top-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,.1); }
.top-card-img { width: 130px; min-height: 110px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 36px; }
.top-card-body { padding: 14px 18px; flex: 1; }
.top-card-body h3 { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.top-card-body .loc { font-size: 15px; color: #888; margin-bottom: 6px; }
.top-card-body .desc { font-size: 15px; color: #666; line-height: 1.4; }

/* ---------- SIDEBAR ---------- */
.sidebar-map {
  background: #e0e0e0;
  border-radius: 14px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  font-size: 16px;
  margin-bottom: 20px;
}
.sidebar-section {
  background: #fff;
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.sidebar-section h3 { font-size: 18px; font-weight: 700; margin-bottom: 12px; color: #222; }
.sidebar-section h3.orange { color: #ff6600; text-align: center; font-size: 22px; margin-bottom: 16px; }
.sidebar-links { display: flex; flex-wrap: wrap; gap: 6px; }
.sidebar-links a { background: #f5f5f5; border-radius: 6px; padding: 6px 14px; font-size: 14px; color: #555; transition: all .2s; }
.sidebar-links a:hover { background: #fff5f0; color: #ff6600; }
.sidebar-dept-links { text-align: center; line-height: 2; }
.sidebar-dept-links a { color: #888; font-size: 15px; margin: 0 4px; }
.sidebar-dept-links a:hover { color: #ff6600; }
.sidebar-dept-links a strong { color: #ff6600; }
.sidebar-top-item { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid #f0f0f0; }
.sidebar-top-item:last-child { border-bottom: none; }
.sidebar-top-num { width: 28px; height: 28px; background: #ff6600; color: #fff; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; flex-shrink: 0; }
.sidebar-top-info { font-size: 15px; font-weight: 600; }
.sidebar-top-info small { font-weight: 400; color: #888; }

/* ---------- NEARBY ---------- */
.nearby-v3 {
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  margin-top: 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.nearby-v3 h3 { font-size: 20px; font-weight: 700; margin-bottom: 14px; }
.nearby-v3 a {
  background: #f5f5f5;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 15px;
  color: #555;
  display: inline-block;
  margin: 4px;
}
.nearby-v3 a:hover { background: #fff5f0; color: #ff6600; }

/* ---------- PAGINATION ---------- */
.pagination-v3 { display: flex; justify-content: center; gap: 8px; padding: 24px 0; }
.pagination-v3 a, .pagination-v3 span {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px; font-size: 16px; font-weight: 600;
  color: #555; background: #fff; border: 1.5px solid #e0e0e0;
}
.pagination-v3 span.active, .pagination-v3 a.active { background: #ff6600; color: #fff; border-color: #ff6600; }

/* ---------- MAP TOGGLE MOBILE ---------- */
.map-toggle-v3 {
  position: fixed;
  bottom: 72px;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: #fff;
  border: none;
  border-radius: 24px;
  padding: 12px 22px;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  box-shadow: 0 2px 16px rgba(0,0,0,.3);
  z-index: 90;
}

/* ---------- FOOTER ---------- */
#footer-v3 {
  background: #2d2d2d;
  color: #bbb;
  padding: 32px 16px;
  margin-bottom: 60px; /* space for sticky ad mobile */
}
#footer-v3 .footer-inner { max-width: 1200px; margin: 0 auto; }
#footer-v3 h4 { color: #fff; font-size: 17px; margin-bottom: 12px; }
#footer-v3 a { color: #bbb; font-size: 15px; }
#footer-v3 a:hover { color: #ff6600; }
#footer-v3 .footer-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 20px; }
#footer-v3 .footer-grid { display: flex; flex-direction: column; gap: 24px; }
#footer-v3 .footer-bottom { border-top: 1px solid #444; padding-top: 16px; font-size: 14px; color: #777; margin-top: 8px; }

/* ---------- CTA ---------- */
.cta-v3 {
  background: linear-gradient(135deg, #ff6600, #ff8533);
  padding: 32px 16px;
  text-align: center;
  color: #fff;
}
.cta-v3 h3 { font-size: 22px; font-weight: 700; margin-bottom: 10px; }
.cta-v3 p { font-size: 16px; opacity: .9; margin-bottom: 16px; }
.cta-v3 a {
  display: inline-block;
  background: #fff;
  color: #ff6600;
  padding: 12px 28px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 16px;
}

/* ============================================
   DESKTOP (768px+)
   ============================================ */
@media (min-width: 768px) {
  #header-v3 .menu-btn { display: none; }
  #header-v3 .nav-links { display: flex; }

  .hero-v3 { padding: 52px 16px 60px; }
  .hero-v3 h1 { font-size: 40px; }
  .hero-v3 p { font-size: 20px; }
  .search-box input { font-size: 16px; padding: 12px 16px; }
  .search-box button, .search-box input[type="submit"] { padding: 10px 20px !important; font-size: 15px !important; }

  .page-header-v3 h1 { font-size: 34px; }
  .page-header-v3 .subtitle { font-size: 20px; }

  .cat-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .cat-card .cat-label { font-size: 20px; }

  .section-v3 { padding: 36px 24px; }
  .section-header-v3 h2 { font-size: 28px; }

  .result-card .result-img { width: 170px; min-height: 150px; }
  .result-card .result-body h3, .result-card .result-body h4 { font-size: 20px; }
  .result-card .desc { font-size: 16px; }

  .map-toggle-v3 { display: none; }

  #footer-v3 .footer-grid { flex-direction: row; gap: 48px; }
  #footer-v3 { margin-bottom: 0; }
}

@media (min-width: 768px) {
  .sidebar-col { display: block !important; width: 340px !important; flex-shrink: 0 !important; }
}

@media (max-width: 767px) {
  #header-v3 .logo-text { font-size: 14px; }
}

/* ============================================
   LEGACY COMPATIBILITY
   Styles pour les classes du contenu existant
   (activites-enfants.php, idee-sortie-enfant.php, etc.)
   ============================================ */

/* Legacy layout wrappers */
#main.container, section#main { max-width: 1200px; margin: 0 auto; padding: 20px 16px; display: block; }
/* Inside main-layout-v3, box should not constrain flex */
.main-layout-v3 .box { background: none; border-radius: 0; padding: 0; margin-bottom: 0; box-shadow: none; }
.box { background: #fff; border-radius: 14px; padding: 20px; margin-bottom: 16px; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.box.special { background: #fff; }

/* Legacy grid system (skel) */
.row { display: flex; flex-wrap: wrap; gap: 16px; margin: 0; }
.row > * { flex: 1; min-width: 0; }
[class*="6u"] { flex: 0 0 calc(50% - 8px); }
[class*="12u"] { flex: 0 0 100%; }
[class*="4u"] { flex: 0 0 calc(33.33% - 11px); }
[class*="3u"] { flex: 0 0 calc(25% - 12px); }
@media (max-width: 767px) {
  [class*="6u"], [class*="4u"], [class*="3u"] { flex: 0 0 100%; }
}

/* Legacy headings in content */
h2 { font-size: 24px; font-weight: 700; color: #222; margin-bottom: 12px; }
h3 { font-size: 20px; font-weight: 700; color: #333; margin-bottom: 10px; }
h3.presentation { font-size: 18px; font-weight: 400; color: #666; margin-bottom: 16px; }
h3.lateral { font-size: 22px; color: #ff6600; font-weight: 700; margin: 24px 0 16px; }
h4 { font-size: 17px; font-weight: 700; color: #333; margin-bottom: 8px; }
h4.small a { color: #ff6600; text-decoration: none; }
h4.small a:hover { text-decoration: underline; }

/* Legacy content elements */
.presentation { color: #666; font-size: 17px; line-height: 1.6; }
/* Réduire espaces autour de l'intro et "Plus de détails" */
.main-layout-v3 .box > br, .box > br { display: none; }
.box > p { margin: 8px 0; }
.lien { color: #ff6600; font-weight: 700; cursor: pointer; font-size: 16px; margin-top: 4px; display: inline-block; }
.lien:hover { text-decoration: underline; }
.toggle { display: none; }
/* currenttab et tab sont maintenant stylés via #nav et #sous-nav */
.currenttab { color: #ff6600; font-weight: 700; }
.tab a { color: #555; }
.tab a:hover { color: #ff6600; }

/* Legacy images & hover effects */
.hover01 { overflow: hidden; border-radius: 12px; margin-bottom: 12px; }
.hover01 figure { margin: 0; overflow: hidden; border-radius: 12px; }
.hover01 figure img { width: 100%; transition: transform .3s; border-radius: 12px; }
.hover01 figure:hover img { transform: scale(1.05); }
.activites_liens { color: #ff6600; font-weight: 700; font-size: 16px; display: block; margin-top: 8px; }
span.activites { display: block; text-align: center; margin-bottom: 16px; }

/* Legacy "La Une" articles */
#teasing-une { margin-bottom: 24px; }
#teaser-article { background: #fff; border-radius: 14px; padding: 16px; margin-bottom: 14px; box-shadow: 0 1px 4px rgba(0,0,0,.06); display: flex; gap: 16px; align-items: flex-start; }
#teaser-article h4 { margin: 0 0 8px; }
#teaser-article .image.left { flex-shrink: 0; width: 100px; }
#teaser-article .image.left img { border-radius: 8px; width: 100px; }
#teaser-article p { font-size: 15px; color: #666; line-height: 1.5; margin: 0; }
#teaser-article p a { color: #ff6600; font-weight: 600; }

/* Legacy navigation tabs (filter categories) */
#nav0 { display: none; } /* Accueil | Nouvelle recherche - inutile, masqué */

/* Filtres principaux (Nature, Culture, Jeux, Sports...) */
#nav {
  margin: 12px 0 16px;
  padding: 14px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
#nav span { margin: 0; }
#nav span a {
  display: inline-block;
  padding: 8px 16px;
  font-size: 16px;
  font-weight: 600;
  color: #555;
  background: #f5f5f5;
  border-radius: 8px;
  border: 1.5px solid #e0e0e0;
  transition: all .2s;
}
#nav span a:hover { border-color: #ff6600; color: #ff6600; background: #fff8f4; }
#nav .currenttab a {
  background: #ff6600 !important;
  color: #fff !important;
  border-color: #ff6600 !important;
}
#nav .tab a { background: #f5f5f5; }

/* Sous-filtres (sous-categories) */
#sous-nav {
  margin: 0 0 20px;
  padding: 10px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}
#sous-nav span { margin: 0; }
#sous-nav span a {
  display: inline-block;
  padding: 5px 12px;
  font-size: 14px;
  font-weight: 600;
  color: #777;
  background: #fafafa;
  border-radius: 6px;
  border: 1px solid #eee;
  transition: all .2s;
}
#sous-nav span a:hover { border-color: #ff6600; color: #ff6600; }
#sous-nav .currenttab a {
  background: #fff3e0 !important;
  color: #ff6600 !important;
  border-color: #ff6600 !important;
}

/* Titre "Filtrer les idées de sorties" — transformé en label discret */
.main-layout-v3 h4 { font-size: 14px; color: #999; font-weight: 600; margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.5px; }

/* Titre de categorie (ex: "Sorties nature enfants dans les Yvelines") */
.results-col > h3, .results-list + h3, .box h3:not(.presentation):not(.lateral):not(.orange) {
  font-size: 22px;
  font-weight: 700;
  color: #ff6600;
  margin: 20px 0 16px;
  padding-top: 12px;
  border-top: 2px solid #ff6600;
}

/* Legacy result items in activites-enfants */
.top-page, .top-page2 { display: none; } /* Hidden - replaced by page-header-v3 */

/* ========== RESULT CARDS V3 (restyle legacy HTML) ========== */
/* Each result is wrapped in a box/section with h4 + image + description */
.result-card-v3 {
  background: #fff;
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  overflow: hidden;
  display: flex;
  gap: 16px;
  transition: transform .2s, box-shadow .2s;
}
.result-card-v3:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0,0,0,.1);
}
.result-card-v3 .image.left,
.result-card-v3 .result-img-wrap {
  float: none !important;
  margin: 0 !important;
  flex-shrink: 0;
  width: 130px;
}
.result-card-v3 .image.left img,
.result-card-v3 .result-img-wrap img {
  width: 130px;
  height: 100px;
  object-fit: cover;
  border-radius: 10px;
}
.result-card-v3 .result-info {
  flex: 1;
  min-width: 0;
}
.result-card-v3 h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}
.result-card-v3 h4 a { color: #333; }
.result-card-v3 h4 a:hover { color: #ff6600; }
.result-card-v3 .result-location-v3 {
  font-size: 15px;
  color: #888;
  margin-bottom: 8px;
}
.result-card-v3 .result-desc-v3 {
  font-size: 15px;
  color: #666;
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.result-card-v3 .result-tags-v3 {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Tags age, temps, premium */
.tag-age {
  background: #e8f5e9;
  color: #2e7d32;
  border-radius: 6px;
  padding: 3px 12px;
  font-size: 13px;
  font-weight: 600;
  display: inline-block;
}
.tag-temps {
  border-radius: 6px;
  padding: 3px 12px;
  font-size: 13px;
  font-weight: 600;
  display: inline-block;
}
.tag-temps.soleil { background: #fff3e0; color: #e65100; }
.tag-temps.pluie { background: #e3f2fd; color: #1565c0; }
.tag-temps.tous { background: #f3e5f5; color: #6a1b9a; }
.tag-premium {
  background: #ff6600;
  color: #fff;
  border-radius: 6px;
  padding: 3px 12px;
  font-size: 13px;
  font-weight: 700;
  display: inline-block;
}
.small-premium {
  background: #ff6600 !important;
  color: #fff !important;
  border-radius: 6px !important;
  padding: 3px 12px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  display: inline-block !important;
}
.result-card-v3 .lire-suite {
  color: #ff6600;
  font-weight: 700;
  font-size: 14px;
}

/* Legacy button overrides for weather tags */
.result-card-v3 .button.icon {
  background: none !important;
  padding: 3px 12px !important;
  font-size: 13px !important;
  border-radius: 6px !important;
  display: inline-block !important;
}
.result-card-v3 .button.icon.fa-sun-o {
  background: #fff3e0 !important;
  color: #e65100 !important;
}
.result-card-v3 .button.icon.fa-umbrella {
  background: #e3f2fd !important;
  color: #1565c0 !important;
}
.result-card-v3 .button.icon.fa-child {
  background: #f3e5f5 !important;
  color: #6a1b9a !important;
}
.result-card-v3 ul { list-style: none; display: inline; }
.result-card-v3 ul li { display: inline-block; }

@media (max-width: 767px) {
  .result-card-v3 { flex-direction: column; }
  .result-card-v3 .image.left, .result-card-v3 .result-img-wrap { width: 100%; }
  .result-card-v3 .image.left img, .result-card-v3 .result-img-wrap img { width: 100%; height: 180px; }
}

/* Legacy forms */
form select { font-family: inherit; font-size: 16px; padding: 8px 12px; border-radius: 8px; border: 1.5px solid #e0e0e0; background: #fff; }
form input[type="text"], form input[type="email"], form textarea {
  font-family: inherit; font-size: 16px; padding: 10px 14px;
  border-radius: 8px; border: 1.5px solid #e0e0e0;
  width: 100%; margin-bottom: 8px;
}
form input[type="submit"], form button[type="submit"] {
  background: #ff6600; color: #fff; border: none;
  padding: 10px 20px; border-radius: 8px;
  font-size: 15px; font-weight: 700; font-family: inherit;
  cursor: pointer;
}
form input[type="submit"]:hover, form button[type="submit"]:hover { background: #e55a00; }

/* Legacy detail page (idee-sortie-enfant) */
.image.featured img { width: 100%; border-radius: 12px; margin-bottom: 16px; }
.image.left { float: left; margin: 0 16px 12px 0; }
.image.left img { border-radius: 8px; }
.image.right { float: right; margin: 0 0 12px 16px; }

/* Legacy buttons */
a.button, input.button, .button {
  background: #ff6600; color: #fff !important;
  padding: 8px 20px; border-radius: 8px;
  font-weight: 700; font-size: 15px;
  display: inline-block; border: none;
  text-decoration: none;
}
a.button:hover, .button:hover { background: #e55a00; }

/* Legacy maps */
#map { border-radius: 14px; overflow: hidden; margin-bottom: 16px; }

/* Legacy mobile visibility */
.mobileout { display: block; }
@media (max-width: 767px) {
  .mobileout { display: block; }
}

/* ---------- ADSENSE ---------- */
.adsbygoogle { display: block; margin: 16px auto; }
ins.adsbygoogle { background: transparent; }
/* Override old fixed-size ads to responsive */
ins.adsbygoogle[style*="728px"] { width: 100% !important; height: auto !important; }
ins.adsbygoogle[style*="336px"] { width: 100% !important; height: auto !important; }
