/* TopSiteRencontre.ca - Modern CSS 2026
--------------------------------------------------------*/
:root {
  --primary: #d6336c;
  --primary-dark: #b52a5a;
  --primary-light: #f0e0e8;
  --accent: #0d6efd;
  --text-dark: #2d3436;
  --text-muted: #636e72;
  --bg-light: #f8f9fa;
  --bg-card: #ffffff;
  --border-light: #e9ecef;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-sm: 8px;
}

/* Base
--------------------------------------------------------*/
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-dark);
  line-height: 1.7;
  background: var(--bg-light);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.3;
}

h1 { font-size: 2.2rem; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.35rem; }

p { color: var(--text-muted); }

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; }

/* Navbar
--------------------------------------------------------*/
.navbar.bg-primary { background: linear-gradient(135deg, var(--primary), var(--primary-dark)) !important; }
.navbar-brand img { border-radius: 6px; }
.navbar .nav-link { font-weight: 500; letter-spacing: 0.3px; padding: 0.5rem 1rem !important; }
.navbar .nav-link:hover { opacity: 0.85; }

/* Hero Section
--------------------------------------------------------*/
.hero-section {
  background: linear-gradient(135deg, var(--primary) 0%, #8e44ad 100%);
  color: #fff;
  padding: 3rem 0 2.5rem;
  position: relative;
  overflow: hidden;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 40px;
  background: var(--bg-light);
  clip-path: ellipse(55% 100% at 50% 100%);
}

.hero-section h1 { color: #fff; font-size: 2rem; margin-bottom: 1rem; }
.hero-section p { color: rgba(255,255,255,0.9); font-size: 1.1rem; }

.reading-time {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.15);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.95);
  margin-bottom: 1rem;
}

.article-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 0.5rem;
}

/* Table of Contents
--------------------------------------------------------*/
.toc-box {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 2rem 0;
  box-shadow: var(--shadow-sm);
}

.toc-box h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.toc-box ol {
  margin: 0;
  padding-left: 1.2rem;
}

.toc-box ol li {
  padding: 4px 0;
}

.toc-box ol li a {
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.95rem;
}

.toc-box ol li a:hover {
  color: var(--primary);
}

/* Site Cards (Ranking)
--------------------------------------------------------*/
.site-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
  overflow: hidden;
  margin-bottom: 1.25rem;
  border: 1px solid var(--border-light);
}

.site-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.site-card.top-pick {
  border: 2px solid var(--primary);
  position: relative;
}

.site-card.top-pick::before {
  content: 'TOP 1';
  position: absolute;
  top: 12px;
  right: -28px;
  background: var(--primary);
  color: #fff;
  padding: 2px 30px;
  font-size: 0.75rem;
  font-weight: 700;
  transform: rotate(45deg);
  z-index: 2;
}

.site-card .card-body {
  padding: 1.25rem;
}

.site-card .rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.site-card .site-logo {
  max-height: 50px;
  width: auto;
  object-fit: contain;
}

.site-card .site-name {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
}

.site-card .site-rating {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
}

.site-card .site-rating small {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 400;
}

.site-card .features-list {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0;
}

.site-card .features-list li {
  padding: 3px 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.site-card .features-list li i {
  color: var(--primary);
  margin-right: 6px;
  width: 16px;
}

.btn-visit {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s, transform 0.1s;
  display: inline-block;
}

.btn-visit:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: scale(1.02);
}

.btn-review {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid var(--primary);
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  display: inline-block;
  transition: all 0.2s;
}

.btn-review:hover {
  background: var(--primary);
  color: #fff;
}

/* Content Sections
--------------------------------------------------------*/
.content-section {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  padding: 2rem;
  margin-bottom: 2rem;
}

.content-section h2 {
  position: relative;
  padding-bottom: 0.75rem;
  margin-bottom: 1.25rem;
}

.content-section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

/* Blog Cards
--------------------------------------------------------*/
.blog-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: transform 0.2s, box-shadow 0.2s;
  height: 100%;
}

.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-card .card-body {
  padding: 1.25rem;
}

.blog-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.blog-card h3 a {
  color: var(--text-dark);
}

.blog-card h3 a:hover {
  color: var(--primary);
}

.blog-card p {
  font-size: 0.9rem;
  line-height: 1.5;
}

/* FAQ Section
--------------------------------------------------------*/
.faq-section .accordion-item {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm) !important;
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.faq-section .accordion-button {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--bg-card);
  padding: 1rem 1.25rem;
}

.faq-section .accordion-button:not(.collapsed) {
  background: var(--primary-light);
  color: var(--primary-dark);
}

.faq-section .accordion-button:focus {
  box-shadow: none;
  border-color: var(--primary);
}

.faq-section .accordion-body {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Tips Cards
--------------------------------------------------------*/
.tip-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.5rem;
  border-left: 4px solid var(--primary);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1rem;
}

.tip-card h4 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.tip-card p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* Footer
--------------------------------------------------------*/
.site-footer {
  background: var(--text-dark);
  color: #ccc;
  padding: 3rem 0 1rem;
}

.site-footer h5 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.site-footer a {
  color: #adb5bd;
  transition: color 0.2s;
}

.site-footer a:hover {
  color: #fff;
}

.site-footer hr {
  border-color: rgba(255,255,255,0.1);
}

.site-footer .list-unstyled li {
  padding: 3px 0;
}

/* Breadcrumb
--------------------------------------------------------*/
.breadcrumb-nav {
  background: transparent;
  padding: 0.75rem 0;
}

.breadcrumb-nav .breadcrumb {
  background: transparent;
  margin: 0;
  padding: 0;
  font-size: 0.85rem;
}

.breadcrumb-nav .breadcrumb-item a {
  color: var(--text-muted);
}

.breadcrumb-nav .breadcrumb-item.active {
  color: var(--primary);
}

/* Responsive
--------------------------------------------------------*/
@media (max-width: 767.98px) {
  .hero-section { padding: 2rem 0 2rem; }
  .hero-section h1 { font-size: 1.5rem; }
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.35rem; }
  .content-section { padding: 1.25rem; }
  .site-card .card-body { padding: 1rem; }
  .site-card .site-logo { max-height: 40px; }
  .site-card .features-list { display: none; }
  .btn-visit { padding: 8px 16px; font-size: 0.85rem; }
  .blog-card img { height: 160px; }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-section h1 { font-size: 1.75rem; }
}

/* Utility
--------------------------------------------------------*/
.text-primary-custom { color: var(--primary) !important; }
.bg-primary-light { background: var(--primary-light) !important; }
.shadow-custom { box-shadow: var(--shadow-md); }
